/* ================================================================
   Guest browsing + Login popup  (BluFair)
   Brand accent: #00e7ff
   ================================================================ */

/* ---------- Login modal ---------- */
#glg-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:flex-start; justify-content:center;
  z-index:2147483000;
}
#glg-overlay.glg-show{ display:flex; }

#glg-modal{
  background:#fff;
  width:88%; max-width:340px;
  margin-top:20vh;
  border-radius:6px;
  overflow:hidden;
  box-shadow:0 12px 45px rgba(0,0,0,.45);
  font-family:inherit;
  animation:glg-pop .16s ease-out;
}
@keyframes glg-pop{ from{ transform:translateY(-12px) scale(.97); opacity:0 } to{ transform:none; opacity:1 } }

#glg-head{
  background:#2b2b2b; color:#fff;
  padding:13px 16px;
  font-size:20px; font-weight:600;
  display:flex; align-items:center; justify-content:space-between;
}
#glg-close{
  background:none; border:none; color:#fff;
  font-size:24px; line-height:1; cursor:pointer;
  padding:0 2px; margin:0;
}
#glg-close:hover{ color:#00e7ff; }

#glg-form{ padding:22px 20px 26px; }

.glg-field{ position:relative; margin-bottom:16px; }
.glg-field input{
  width:100%; box-sizing:border-box;
  border:1px solid #cfcfcf; border-radius:4px;
  padding:14px 42px 14px 14px;
  font-size:15px; color:#222;
  outline:none; background:#fff;
}
.glg-field input::placeholder{ color:#9aa0a6; }
.glg-field input:focus{
  border-color:#00e7ff;
  box-shadow:0 0 0 2px rgba(0,231,255,.30);
}
#glg-eye{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  background:none; border:none; cursor:pointer;
  color:#333; font-size:15px; padding:8px;
}

#glg-submit{
  display:block; width:72%;
  margin:6px auto 0;
  background:#00e7ff; color:#00323b;
  border:none; border-radius:4px;
  padding:13px 10px;
  font-size:15px; font-weight:700; letter-spacing:.6px;
  cursor:pointer;
}
#glg-submit:hover{ filter:brightness(1.05); }
#glg-submit:disabled{ opacity:.65; cursor:progress; }

#glg-err{
  display:none;
  background:#ffe6e6; color:#c0000f;
  border:1px solid #f2b8b8; border-radius:4px;
  padding:8px 10px; font-size:13px; margin-bottom:14px;
}
#glg-err.glg-show-err{ display:block; }

/* ---------- injected guest LOGIN button in navbar ---------- */
#glg-navbtn{
  background:#00e7ff; color:#00323b !important;
  border:none; border-radius:4px;
  padding:7px 20px; margin:4px 8px;
  font-weight:700; letter-spacing:.5px;
  cursor:pointer; text-transform:uppercase;
  font-size:14px; line-height:1;
}
#glg-navbtn:hover{ filter:brightness(1.06); color:#00323b; }

/* ================================================================
   #00e7ff brand recolor  ("blue sab jagah")
   ================================================================ */
:root{ --glg-blue:#00e7ff; }

/* primary / info / success surfaces -> brand cyan */
.btn-primary,.btn-info,.btn-success,
.bg-primary,.bg-info,.bg-success,
.badge-primary,.badge-info,.badge-success{
  background-color:#00e7ff !important;
  border-color:#00e7ff !important;
  color:#00323b !important;
}
.btn-outline-primary,.btn-outline-info,.btn-outline-success{
  color:#0093a6 !important; border-color:#00e7ff !important;
}
.btn-outline-primary:hover,.btn-outline-info:hover,.btn-outline-success:hover{
  background-color:#00e7ff !important; color:#00323b !important;
}
.text-primary,.text-info,.text-success{ color:#00b9cf !important; }

a{ color:#00b9cf; }
a:hover{ color:#0093a6; }

/* custom theme buttons used across the app */
.man_btn,.btn.man_btn,
button.man_btn,
.login_btn,.btn-login,
.dwbtn,.place-bet,.placebet,.btn-place{
  background:#00e7ff !important;
  border-color:#00e7ff !important;
  color:#00323b !important;
}

/* nav / header bar -> solid black (as before) */
.navbar.static-top,
nav.navbar-dark.static-top,
.navbar-dark.bg-dark{
  background:#000000 !important;
}

/* generic active tab / underline accents
   (the .menu2 quick-menu and the left sports list are handled separately and stay WHITE) */
.nav-pills .nav-link.active,
.tab-active,.active-tab,
.highlight-bar,.slick-active{
  border-color:#00e7ff !important;
  color:#00e7ff !important;
}
.nav-tabs22 li.active,.right_navtab .nav-link.active{
  color:#00e7ff !important;
}

/* form focus rings site-wide */
.form-control:focus{
  border-color:#00e7ff !important;
  box-shadow:0 0 0 .2rem rgba(0,231,255,.25) !important;
}

/* spinners / loaders accent */
.spinner-border.text-primary,.spinner-grow.text-primary{ color:#00e7ff !important; }

/* in-play / live pills */
.inplay,.in-play,.live-badge,.badge-live{
  background:#00e7ff !important; color:#00323b !important;
}

/* ================================================================
   Header / navbar tidy-up  (logo was hard-coded to 300px wide)
   ================================================================ */
nav.navbar.static-top{
  padding:.25rem .5rem !important;
  min-height:52px;
  flex-wrap:nowrap;
  align-items:center;
}
nav.navbar.static-top .navbar-brand{
  margin-right:.5rem !important;
  padding:0;
  display:flex; align-items:center;
}
nav.navbar.static-top .navbar-brand .fa-home{ display:none; }   /* stray home icon before logo */
nav.navbar.static-top .logoman,
nav.navbar.static-top .logoman2{
  width:150px !important;
  max-width:42vw;
  height:auto !important;
  object-fit:contain;
}
nav.navbar.static-top .right_nav{
  align-items:center;
  flex-wrap:nowrap;
}
nav.navbar.static-top .right_nav > li{
  display:flex; align-items:center;
  padding:0 4px;
}
nav.navbar.static-top .marquee_box{ margin-left:auto !important; }

/* mobile: even tighter */
@media (max-width:576px){
  nav.navbar.static-top{ min-height:46px; padding:.2rem .35rem !important; }
  nav.navbar.static-top .logoman,
  nav.navbar.static-top .logoman2{ width:120px !important; }
  nav.navbar.static-top .search input{ width:96px !important; }
  #glg-navbtn{ padding:6px 12px; margin:2px 4px; font-size:12px; }
}

/* ================================================================
   Horizontal quick-menu under header (Home / Cricket / Tennis ...)
   -> BLACK bg, WHITE text (matches app's own theme, no blue)
   ================================================================ */
.menu2,.menu2 ul,.menu2 ul.nav{ background:#000000 !important; }
.menu2 li a,
.menu2 li a.active,
.menu2 li.active > a,
.menu2 li a:hover,
.menu2 li a:focus{ color:#ffffff !important; }

/* keep the app's own left menu (.sidebar/.left_ul/.tree) grey with white text */
.sidebar .nav-item .nav-link,
.left_ul li a,.left_ul li a:hover,
.tree li,.tree li a,
.sidebar-title,.all_sp{ color:#ffffff !important; }
.left_ul li.active > a,
.sidebar .nav-item .nav-link.active{ color:#00e7ff !important; }

/* ================================================================
   Injected SPORTS drawer  (#glg-sports)  - slides in from the left
   ================================================================ */
#glg-sports{ position:fixed; inset:0; z-index:2147482600; pointer-events:none; }
#glg-sports.show{ pointer-events:auto; }

#glg-sports-back{
  position:absolute; inset:0;
  z-index:1;
  background:rgba(0,0,0,.55);
  opacity:0; transition:opacity .2s ease;
}
#glg-sports.show #glg-sports-back{ opacity:1; }

#glg-sports-panel{
  position:absolute; top:0; left:0; bottom:0;
  z-index:2;
  width:82%; max-width:330px;
  background:#3a3a3a;
  display:flex; flex-direction:column;
  transform:translateX(-102%);
  transition:transform .25s ease;
  box-shadow:2px 0 20px rgba(0,0,0,.55);
}
#glg-sports.show #glg-sports-panel{ transform:translateX(0); }

#glg-sports-head{
  flex:0 0 auto;
  background:#000000; color:#fff;
  font-size:18px; font-weight:600;
  padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between;
}
#glg-sports-close{
  background:none; border:0; color:#fff;
  font-size:24px; line-height:1; cursor:pointer; padding:0 4px;
}
#glg-sports-close:hover{ color:#00e7ff; }

#glg-sports-list{
  list-style:none; margin:0; padding:0;
  overflow-y:auto; flex:1 1 auto;
  -webkit-overflow-scrolling:touch;
}
#glg-sports-list li{
  display:flex; align-items:center;
  border-bottom:1px solid #4a4a4a;
}
#glg-sports-list li.active{ background:#2c2c2c; }
#glg-sports-list li > a{
  flex:1 1 auto;
  display:flex; align-items:center; gap:14px;
  padding:13px 14px;
  color:#ffffff !important; text-decoration:none;
  font-size:14px;
}
#glg-sports-list li.active > a{ color:#00e7ff !important; }
#glg-sports-list li > a > i{ width:20px; text-align:center; font-size:16px; color:#00e7ff; }
#glg-sports-list li.active > a > i{ color:#00e7ff; }
.glg-star{
  background:none; border:0; cursor:pointer;
  padding:12px 14px; color:#8a8a8a; font-size:15px;
}
.glg-star.on{ color:#ffc107; }

body.glg-drawer-open{ overflow:hidden; }

/* ================================================================
   Header search box: hidden by default, shown when footer Search tapped
   ================================================================ */
li.nav-item.search{ display:none !important; }
body.glg-search-on li.nav-item.search{
  display:flex !important;
  position:fixed; left:0; right:0;
  top:52px;
  background:#000; padding:8px 12px;
  z-index:2147481900;
  align-items:center; gap:8px;
}
body.glg-search-on li.nav-item.search input{
  width:100% !important; flex:1 1 auto;
  padding:9px 12px; border-radius:4px; border:1px solid #00e7ff;
  background:#111; color:#fff; font-size:14px;
}
@media (max-width:576px){
  body.glg-search-on li.nav-item.search{ top:46px; }
}

/* ================================================================
   Injected mobile FOOTER nav  (#glg-footer)  - Home / Sports / Bet List / Search
   ================================================================ */
#glg-footer{
  position:fixed; left:0; right:0; bottom:0;
  height:56px;
  display:flex;
  background:#000000;
  border-top:1px solid #1c1c1c;
  z-index:2147482000;
}
#glg-footer button{
  flex:1 1 0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:3px;
  background:transparent; border:0; outline:0;
  color:#c8c8c8;
  font-size:11px; font-weight:600;
  cursor:pointer;
  padding:6px 2px 5px;
}
#glg-footer button i{ font-size:18px; line-height:1; }
#glg-footer button.active{ background:#00e7ff; color:#00222a; }
#glg-footer button.active i{ color:#00222a; }

/* only show the footer bar on mobile widths, and pad the page so it doesn't cover content */
@media (max-width:991px){
  #glg-footer{ display:flex; }
  body{ padding-bottom:56px !important; }
}
@media (min-width:992px){
  #glg-footer{ display:none; }
}
