/* ==========================================================================
   x2bet site header — the SAME header as the homepage (css/x2.css), for the app.
   Every rule is scoped to .site-header so nothing leaks into the rest of the app
   (Bootstrap's .btn etc. stay untouched). Keep in step with css/x2.css "Header".
   ========================================================================== */

.site-header {
  --pitch: #06122A; --stand: #0D1E3D; --stand-2: #132a54; --seam: #1C3360;
  --chalk: #EEF3FF; --chalk-2: #A9B8D6; --chalk-3: #7C8DB0; --turf: #1FD07F;
  --r-chip: 8px; --header-h: 64px; --ease-out: cubic-bezier(.16, 1, .3, 1);
  position: sticky; top: 0; z-index: 1000;
  background: var(--pitch);
  border-bottom: 1px solid var(--seam);
  font-family: "Archivo", system-ui, sans-serif;
}
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
.site-header ul { list-style: none; margin: 0; padding: 0; }
.site-header a { text-decoration: none; }
.site-header button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.site-header .site-header__bar {
  max-width: 1560px; margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.site-header .logo {
  flex: none; display: block;
  width: 150px; height: 42px;
  background: url("/img/logo.svg") left center / contain no-repeat;
}

.site-header .main-nav { flex: 1; min-width: 0; }
.site-header .main-nav__list { display: flex; align-items: center; gap: 2px; }
.site-header .main-nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-chip);
  font-weight: 500; font-size: 14px; line-height: 1.5;
  color: var(--chalk-2);
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.site-header .main-nav__link:hover { color: var(--chalk); background: var(--stand); }
.site-header .main-nav__link[aria-current="page"] { color: var(--chalk); background: var(--stand-2); }
.site-header .main-nav__mobile { display: none; }

.site-header .header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-header .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; margin: 0;
  border: 0; border-radius: 999px; box-shadow: none;
  font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1;
  white-space: nowrap;
  transition: transform .12s var(--ease-out), background-color .15s, border-color .15s;
}
.site-header .btn:active { transform: scale(.97); }
.site-header .btn__icon { width: 18px; height: 18px; flex: none; }
.site-header .btn--ghost { color: var(--chalk); border: 1px solid var(--seam); background: transparent; }
.site-header .btn--ghost:hover { border-color: var(--chalk-3); color: var(--chalk); }
.site-header .btn--turf { background: var(--turf); color: #03240F; }
.site-header .btn--turf:hover { background: #3BE095; color: #03240F; }

.site-header .burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-chip);
  border: 1px solid var(--seam);
  align-items: center; justify-content: center;
}
.site-header .burger span, .site-header .burger span::before, .site-header .burger span::after {
  display: block; width: 18px; height: 2px;
  background: var(--chalk); border-radius: 2px;
  transition: transform .2s var(--ease-out), background-color .2s;
  position: relative;
}
.site-header .burger span::before, .site-header .burger span::after { content: ""; position: absolute; left: 0; }
.site-header .burger span::before { top: -6px; }
.site-header .burger span::after { top: 6px; }
.site-header .burger[aria-expanded="true"] span { background: transparent; }
.site-header .burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.site-header .burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.site-header :focus-visible { outline: 2px solid #2468E8; outline-offset: 2px; }

@media (max-width: 1360px) {
  .site-header .main-nav__link { padding: 8px 9px; font-size: 13.5px; }
}
@media (max-width: 1080px) {
  .site-header .burger { display: inline-flex; }
  .site-header .main-nav__mobile { display: list-item; }
  .site-header .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    background: var(--pitch);
    border-bottom: 1px solid var(--seam);
    padding: 12px 16px 20px;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility 0s .18s;
  }
  .site-header .main-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
  }
  .site-header .main-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-header .main-nav__link { padding: 14px 12px; font-size: 16px; }
}
@media (max-width: 899px) {
  .site-header .site-header__bar { padding: 0 16px; gap: 12px; }
}
@media (max-width: 520px) {
  .site-header .logo { width: 116px; }
  .site-header .header-actions { gap: 6px; }
  .site-header .header-actions .btn { padding: 0 12px; height: 38px; font-size: 14px; }
  .site-header .header-actions .btn .btn__icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .main-nav, .site-header .burger span, .site-header .burger span::before, .site-header .burger span::after, .site-header .btn { transition: none; }
}

/* App-only controls that used to live in the header: Live / Upcoming and odds format, above the games. */
.x2-bettools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.x2-bettools__tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--x2-stand, #0D1E3D); border: 1px solid var(--x2-seam, #1C3360); }
.x2-bettools__tab { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--x2-chalk-2, #A9B8D6) !important; }
.x2-bettools__tab:hover { color: var(--x2-chalk, #EEF3FF) !important; }
.x2-bettools__tab.is-active { background: var(--x2-flood, #2468E8); color: #fff !important; }
.x2-bettools__tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--x2-flare, #FF5A6B); }
.x2-bettools__tab.is-active .dot { background: #fff; }
.x2-bettools__opts { display: flex; gap: 8px; }
.x2-bettools__opts .form-select { height: 38px; min-height: 38px; padding: 0 34px 0 12px; border-radius: 999px; font-size: 14px; width: auto; }
@media (max-width: 1024px) { .x2-bettools__opts .form-select { font-size: 16px; } }

/* Account pages: the shell sits under the site header (65px: 64px bar + 1px border). */
.x2-shell--under-header { min-height: calc(100vh - 65px); }
.x2-shell--under-header .x2-shell__nav { top: 65px; height: calc(100vh - 65px); }
.x2-shell--under-header .x2-shell__brand { display: none; } /* the logo is already in the site header */
.x2-shell--under-header .x2-shell__top { top: 65px; }
@media (max-width: 991px) {
  .x2-shell--under-header .x2-shell__nav { top: 65px; height: calc(100vh - 65px); z-index: 999; }
}

/* Betting pages: things that stick under the header, placed for the new 65px header (was 60–72px). */
.x2-side { top: 65px !important; max-height: calc(100vh - 77px) !important; }
.sports-category { top: 65px !important; }
.sports-sub-category { top: 127px !important; }
.sub-category-drawer { top: 65px !important; }
