/* Midnight Pro palette. Loaded last; overrides theme variables and hard-coded accents. Remove the midnight.css link in index.html to undo. */
html body.sx.bk {
  --t-bg: #0B0F17;
  --t-bg2: #0E131D;
  --t-surf: #131A28;
  --t-surf2: #1B2436;
  --t-surf3: #222D42;
  --t-line: #26324A;
  --t-line2: #33415E;
  --t-text: #E8EDF5;
  --t-muted: #9AA6BA;
  --t-dim: #6B778C;
  --t-lime: #22C55E;   /* brand action: emerald */
  --t-lime2: #34D399;
  --t-lime-d: #16A34A;
  --t-teal: #4C9AFF;   /* AI: blue */
  --t-red: #F0505A;    /* live */
  --t-amber: #F5B83D;  /* premium / jackpot */
  --mp-ink: #04140A;   /* dark text on emerald */
  background: var(--t-bg) !important;
}
html body.sx.bk::before { display: none !important; }
::selection { background: rgba(34,197,94,.35); }

/* Header: glass, emerald underline instead of filled pill */
html body.sx.bk .sx-header { background: rgba(11,15,23,.85) !important; }
html body.sx.bk .sx-header::after {
  background: linear-gradient(90deg, transparent, rgba(34,197,94,.45) 35%, rgba(76,154,255,.35) 65%, transparent) !important;
}
html body.sx.bk .bk-nav-links a.active {
  color: var(--t-text) !important;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 var(--t-lime) !important;
  border-radius: 0 !important;
}
html body.sx.bk .bk-search:focus-within { box-shadow: 0 0 0 3px rgba(34,197,94,.15) !important; }
html body.sx.bk .dep-btn, html body.sx.bk .bk-reg, html body.sx.bk .btn.primary {
  background: var(--t-lime) !important; color: var(--mp-ink) !important;
  box-shadow: 0 6px 18px rgba(34,197,94,.22) !important;
}

/* Surfaces: three clear levels, flat cards */
html body.sx.bk .sx-hub, html body.sx.bk .card, html body.sx.bk .panel,
html body.sx.bk .nx-rcard, html body.sx.bk .nx-row, html body.sx.bk .nx-x {
  background: var(--t-surf) !important;
}
html body.sx.bk .sx-hub-pills a.on, html body.sx.bk .sx-hub-pills button.on,
html body.sx.bk .nx-rlist a.on {
  border-color: rgba(34,197,94,.5) !important; color: var(--t-lime) !important;
  background: rgba(34,197,94,.08) !important;
}
html body.sx.bk .bk-ai-chip.conf-high {
  background: rgba(76,154,255,.10) !important; color: var(--t-teal) !important;
  border-color: rgba(76,154,255,.35) !important;
}

/* Odds buttons: neutral tiles, white tabular numbers, emerald when picked */
html body.sx.bk .odd, html body.sx.bk .nx-tile .odd {
  background: var(--t-surf2) !important; border: 1px solid var(--t-line) !important;
  color: var(--t-text) !important; font-variant-numeric: tabular-nums;
}
html body.sx.bk .odd:hover, html body.sx.bk .nx-tile .odd:hover { border-color: var(--t-lime) !important; background: var(--t-surf3) !important; }
html body.sx.bk .odd.picked, html body.sx.bk .odd.on, html body.sx.bk .odd.sel, html body.sx.bk .odd.active,
html body.sx.bk .nx-tile .odd.picked {
  background: var(--t-lime) !important; border-color: var(--t-lime) !important; color: var(--mp-ink) !important;
}
html body.sx.bk .odd.picked *, html body.sx.bk .odd.on *, html body.sx.bk .odd.sel *, html body.sx.bk .odd.active * { color: var(--mp-ink) !important; }

/* Market boards: one neutral background, thin muted category tag */
html body.sx.bk .nx-tile { background: var(--t-bg2) !important; border: 1px solid var(--t-line) !important; border-left-width: 1px !important; }
html body.sx.bk .nx-tile .t { position: relative; padding-left: 9px; color: var(--t-muted) !important; }
html body.sx.bk .nx-tile .t::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: #4A5670; }
html body.sx.bk .nx-tile[data-cat="Main"] .t::before { background: var(--t-lime); }
html body.sx.bk .nx-tile[data-cat="Goals"] .t::before { background: #3E7C6A; }
html body.sx.bk .nx-tile[data-cat="First Half"] .t::before, html body.sx.bk .nx-tile[data-cat="Halves"] .t::before { background: #4E6595; }
html body.sx.bk .nx-tile[data-cat="Handicap"] .t::before { background: #8A7445; }
html body.sx.bk .nx-tile[data-cat="Score"] .t::before, html body.sx.bk .nx-tile[data-cat="Combos"] .t::before { background: #6C5A92; }
html body.sx.bk .nx-tile[data-cat="Time"] .t::before { background: #44708F; }
html body.sx.bk .nx-tile[data-cat="Corners"] .t::before { background: #4C7A55; }
html body.sx.bk .nx-tile[data-cat="Cards"] .t::before { background: #8C4E52; }
html body.sx.bk .nx-tile[data-cat="Players"] .t::before { background: #87597A; }

/* AI = blue, live = red, premium = gold */
html body.sx.bk .nx-x-prob i.h { background: var(--t-lime) !important; }
html body.sx.bk .nx-x-prob i.d { background: #5B667C !important; color: var(--t-text) !important; }
html body.sx.bk .nx-x-prob i.a { background: var(--t-teal) !important; }
html body.sx.bk .nx-rpick { border-left-color: var(--t-teal) !important; }
html body.sx.bk .nx-rlive .tm em { color: var(--t-text) !important; }

/* Betslip dock */
@media (min-width: 961px) {
  html body.sx.bk .betslip { background: rgba(19,26,40,.92) !important; box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(34,197,94,.10) !important; }
  html body.sx.bk .dock-bar .bk-sliptabs button.on { background: var(--t-lime) !important; color: var(--mp-ink) !important; }
}
html body.sx.bk input:focus, html body.sx.bk select:focus, html body.sx.bk textarea:focus { box-shadow: 0 0 0 3px rgba(34,197,94,.15) !important; }

/* ---- Pass 2: legacy variables, hard-coded lime, jackpot banner, contrast ---- */
html body.sx.bk, html body.bk {
  --bk-lime: #22C55E; --bk-lime-d: #16A34A; --nx-lime: #22C55E; --lime: #22C55E; --lime2: #34D399; --lime-d: #16A34A;
  --t-dim: #8792A6; --dim: #8792A6; --nx-mute: #8792A6;
}
html body.sx.bk .nx-teams em, html body.sx.bk .nx-rlive .tm em { color: var(--t-text) !important; }
html body.sx.bk .bk-login { color: var(--t-lime) !important; }
html body.sx.bk .daystrip.nx-days .day.on {
  background: rgba(34,197,94,.12) !important; border-color: rgba(34,197,94,.55) !important; box-shadow: none !important;
}
html body.sx.bk .daystrip.nx-days .day.on, html body.sx.bk .daystrip.nx-days .day.on * { color: var(--t-text) !important; }
html body.sx.bk .daystrip.nx-days .day.on .wd { color: var(--t-lime) !important; }
html body.sx.bk .sx-list a.on .bk-lg-ico, html body.sx.bk .bk-mstrip a.on i { background: rgba(34,197,94,.14) !important; color: var(--t-lime) !important; }
html body.sx.bk .sx-list a .n, html body.sx.bk .sx-hpill .n { color: var(--t-muted) !important; background: rgba(255,255,255,.05) !important; border-color: transparent !important; }
/* Jackpot banner: gold is reserved for jackpots, on a calm dark surface */
html body.sx.bk .bk-promo.s-jp {
  background: radial-gradient(600px 160px at 85% 50%, rgba(245,184,61,.16), transparent 70%), linear-gradient(105deg, #131A28 0%, #1A2233 60%, #221F1A 100%) !important;
  border: 1px solid rgba(245,184,61,.35) !important;
}
html body.sx.bk .bk-promo.s-jp .bk-promo-top, html body.sx.bk .bk-promo.s-jp .bk-promo-sub { color: #F5B83D !important; }
html body.sx.bk .bk-promo.s-jp .bk-promo-num { color: #FFFFFF !important; }
html body.sx.bk .bk-promo.s-jp .bk-promo-hl { background: rgba(245,184,61,.16) !important; color: #F5B83D !important; }
html body.sx.bk .bk-promo.s-jp .bk-promo-cta { background: #F5B83D !important; color: #1A1204 !important; }

/* ---- Pass 3: hard-coded old lime (#9af927, #a6f43c) and gradient picked state ---- */
html:has(body.sx.bk), html body.sx.bk {
  background:
    radial-gradient(900px 480px at -10% 30%, rgba(76,154,255,.04), transparent 60%),
    #0B0F17 !important;
  background-attachment: fixed !important;
}
/* Selected odds: theme.css paints a lime gradient with a more specific selector */
html body.sx.bk .nx-odds .odd.picked,
html body.sx.bk .nx-x-odds .odd.picked,
html body.sx.bk .nx-tile .odd.picked,
html body.sx.bk .odd.evodd.picked,
html body.sx.bk .odd.picked {
  background: var(--t-lime) !important; background-image: none !important;
  border-color: var(--t-lime) !important; color: var(--mp-ink) !important;
  box-shadow: 0 6px 18px rgba(34,197,94,.28) !important;
}
html body.sx.bk .nx-odds .odd.picked *, html body.sx.bk .nx-x-odds .odd.picked *,
html body.sx.bk .nx-tile .odd.picked * { color: var(--mp-ink) !important; }
html body.sx.bk .nx-odds .odd:hover, html body.sx.bk .nx-x-odds .odd:hover {
  border-color: var(--t-lime) !important; background: var(--t-surf3) !important;
}
html body.sx.bk .nx-tile[data-cat="Main"] { border-left-color: var(--t-line) !important; }
/* Leftover accents in the base stylesheets */
html body.sx.bk .sx-list a.on .bk-sp-ico, html body.sx.bk .sx-list a.on .bk-lg-ico,
html body.sx.bk .dock-ico {
  background: rgba(34,197,94,.14) !important; color: var(--t-lime) !important;
}
html body.sx.bk .bk-days-toggle.open, html body.sx.bk .sx-hub-cats button.on {
  background: rgba(34,197,94,.12) !important; border-color: rgba(34,197,94,.5) !important; color: var(--t-lime) !important;
}
html body.sx.bk .nx-x-chip.ok { color: var(--t-lime) !important; border-color: rgba(34,197,94,.35) !important; }
html body.sx.bk .nx-rlist a.on { background: rgba(34,197,94,.10) !important; color: var(--t-lime) !important; }
html body.sx.bk .sx-hdot[style*="9AF927" i] { background: var(--t-lime) !important; }
html body.sx.bk .jp-ticket-preview { color: #F5B83D !important; }
html body.sx.bk .bk-nav-links a.active { box-shadow: inset 0 -2px 0 var(--t-lime) !important; }
html body.sx.bk .nx-x-stat .sb i.h { background: var(--t-lime) !important; }

/* ---- Pass 4: base palette variables from sportnexa.css :root, picked+hover ---- */
html body.sx.bk, html body.bk {
  --blue: #22C55E; --blue2: #34D399; --cyan: #4C9AFF; --green: #22C55E; --home: #22C55E;
  --lime-bg: rgba(34,197,94,.08);
  --glow: 0 0 0 1px rgba(34,197,94,.30), 0 0 24px rgba(34,197,94,.10);
}
/* A picked button stays emerald while the cursor is over it */
html body.sx.bk .odd.picked:hover,
html body.sx.bk .nx-odds .odd.picked:hover,
html body.sx.bk .nx-x-odds .odd.picked:hover,
html body.sx.bk .nx-tile .odd.picked:hover {
  background: var(--t-lime2) !important; background-image: none !important;
  border-color: var(--t-lime2) !important; color: var(--mp-ink) !important;
}
html body.sx.bk .bal-chip { border-color: rgba(34,197,94,.35) !important; }
html body.sx.bk .odd.up { box-shadow: inset 0 -2px 0 var(--t-lime) !important; }
html body.sx.bk .ai-chip {
  background: rgba(76,154,255,.08) !important; color: var(--t-teal) !important;
  border-color: rgba(76,154,255,.30) !important;
}

/* ---- Pass 5: last hard-coded old lime in sportnexa.css ---- */
html body.sx.bk .sx-promo a.p1 {
  background: radial-gradient(400px 160px at 85% 10%, rgba(34,197,94,.18), transparent), linear-gradient(135deg, #131A28, #0B0F17) !important;
}
html body.sx.bk .sx-bottom .slip-fab { box-shadow: 0 6px 18px rgba(34,197,94,.25) !important; }

/* ---- Slogan: "Intelligence Behind Every Bet" - stacked under the logo ---- */
html body .sx-bar .sx-brand { display: inline-flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; gap: 3px !important; line-height: 1; }
html body .sx-slogan { display: block; margin: 0; padding: 0; border: 0; font: 600 9px/1 'Inter', system-ui, sans-serif; color: #8792A6; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
html body .sx-slogan b, html body .sx-foot-slogan b, html body .auth-slogan b { color: #22C55E; font-weight: 700; }
@media (max-width: 480px) { html body .sx-slogan { font-size: 8px; letter-spacing: .05em; } }
@media (max-width: 380px) { html body .sx-slogan { display: none; } }
@media (min-width: 768px) { html body .sx-slogan { font-size: 10px; } }
@media (min-width: 1920px) { html body .sx-slogan { font-size: 11px; letter-spacing: .16em; } }
html body .sx-foot-slogan b, html body .auth-slogan b { color: #22C55E; font-weight: 600; }
html body .sx-foot-slogan { margin: 0; font: 600 14px/1.3 'Space Grotesk', 'Inter', sans-serif; color: #E8EDF5; letter-spacing: .01em; white-space: nowrap; }
html body .auth-slogan { margin: -6px 0 16px; text-align: center; font: 600 15px/1.3 'Space Grotesk', 'Inter', sans-serif; color: #9AA6BA; letter-spacing: .01em; }

/* ---- Slogan v2: aligned under the "winodds.app" wordmark at every width (same as phones) ---- */
html body .sx-bar .sx-brand { display: inline-flex !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: flex-start !important; justify-content: center !important; gap: 2px !important; }
html body .sx-bar .sx-brand .nx-logo { order: 0 !important; }
html body .sx-bar .sx-brand .sx-slogan { order: 1 !important; display: flex !important; align-items: center; gap: 6px; position: static !important; margin: 0 !important; border: 0 !important; padding: 0 0 0 25px !important; width: auto !important; }
html body .sx-bar .sx-brand .sx-slogan::before { content: ""; display: inline-block; width: 10px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #22C55E, #4C9AFF); flex: 0 0 auto; }
@media (max-width: 380px) { html body .sx-bar .sx-brand .sx-slogan { display: none !important; } }
@media (min-width: 768px) { html body .sx-bar .sx-brand .sx-slogan { padding-left: 37px !important; gap: 7px; } html body .sx-bar .sx-brand .sx-slogan::before { width: 14px; } }
/* Phones: keep the slogan under the wordmark but drop the accent dash and tighten spacing so the header never overflows */
@media (max-width: 480px) { html body .sx-bar .sx-brand .sx-slogan { gap: 0 !important; letter-spacing: .03em !important; } html body .sx-bar .sx-brand .sx-slogan::before { display: none !important; } }

/* ---- Brand v3: icon tile + live 'WinOdds' wordmark (no .app), slogan under the name ---- */
html body .sx-bar a.sx-brand.wo-brand { display: inline-flex !important; flex-direction: row !important; align-items: center !important; gap: 0 !important; text-decoration: none !important; min-width: 0; }
html body .wo-mark { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
html body .wo-mark .wo-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; background: radial-gradient(120% 120% at 30% 20%, #1B2436 0%, #0B0F17 70%); box-shadow: 0 0 0 1px rgba(34,197,94,.35), 0 0 18px rgba(34,197,94,.18); padding: 2px; object-fit: contain; transition: box-shadow .25s ease, transform .25s ease; }
html body a.wo-brand:hover .wo-icon { box-shadow: 0 0 0 1px rgba(34,197,94,.7), 0 0 24px rgba(34,197,94,.35); transform: translateY(-1px); }
html body .wo-word { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1; }
html body .wo-name { font: 700 21px/1 'Space Grotesk', 'Inter', system-ui, sans-serif; letter-spacing: -.02em; color: #E8EDF5; white-space: nowrap; }
html body .wo-name em { font-style: normal; background: linear-gradient(90deg, #22C55E 0%, #34D399 55%, #4C9AFF 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html body .sx-bar .sx-brand.wo-brand .sx-slogan.wo-slogan { display: block !important; order: 0 !important; position: static !important; margin: 4px 0 0 !important; padding: 0 !important; font: 600 9px/1 'Inter', system-ui, sans-serif !important; letter-spacing: .16em !important; text-transform: uppercase; color: #8792A6; white-space: nowrap; }
html body .sx-bar .sx-brand.wo-brand .sx-slogan.wo-slogan::before { content: none !important; display: none !important; }
/* small logos (side menu, footer) */
html body .wo-mark.wo-sm { gap: 8px; }
html body .wo-mark.wo-sm .wo-icon { width: 26px; height: 26px; border-radius: 8px; }
html body .wo-mark.wo-sm .wo-name { font-size: 17px; }
/* auth pages */
html body .wo-auth { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px auto 10px; }
html body .wo-auth .wo-icon { width: 60px; height: 60px; border-radius: 16px; background: radial-gradient(120% 120% at 30% 20%, #1B2436 0%, #0B0F17 70%); box-shadow: 0 0 0 1px rgba(34,197,94,.4), 0 0 30px rgba(34,197,94,.22); padding: 3px; }
html body .wo-auth .wo-name { font-size: 36px; }
/* responsive */
@media (max-width: 480px) { html body .wo-mark.wo-hdr { gap: 8px; } html body .wo-mark.wo-hdr .wo-icon { width: 30px; height: 30px; border-radius: 9px; } html body .wo-mark.wo-hdr .wo-name { font-size: 18px; } html body .sx-bar .sx-brand.wo-brand .sx-slogan.wo-slogan { font-size: 7.5px !important; letter-spacing: .08em !important; margin-top: 3px !important; } }
@media (max-width: 380px) { html body .sx-bar .sx-brand.wo-brand .sx-slogan.wo-slogan { display: none !important; } html body .wo-mark.wo-hdr .wo-icon { width: 28px; height: 28px; } html body .wo-mark.wo-hdr .wo-name { font-size: 17px; } }
@media (min-width: 1024px) { html body .wo-mark.wo-hdr .wo-icon { width: 38px; height: 38px; border-radius: 11px; } html body .wo-mark.wo-hdr .wo-name { font-size: 23px; } html body .sx-bar .sx-brand.wo-brand .sx-slogan.wo-slogan { font-size: 9.5px !important; } }
@media (min-width: 1920px) { html body .wo-mark.wo-hdr { gap: 12px; } html body .wo-mark.wo-hdr .wo-icon { width: 42px; height: 42px; border-radius: 12px; } html body .wo-mark.wo-hdr .wo-name { font-size: 26px; } html body .sx-bar .sx-brand.wo-brand .sx-slogan.wo-slogan { font-size: 10.5px !important; letter-spacing: .2em !important; } }
/* Brand v3 phone fit: keep Login/Register inside the screen at 381-480px */
@media (max-width: 480px) {
  html body .wo-mark.wo-hdr { gap: 6px !important; }
  html body .wo-mark.wo-hdr .wo-icon { width: 28px !important; height: 28px !important; border-radius: 8px !important; padding: 1px !important; }
  html body .wo-mark.wo-hdr .wo-name { font-size: 17px !important; }
  html body .sx-bar .sx-brand.wo-brand .sx-slogan.wo-slogan { font-size: 7px !important; letter-spacing: .03em !important; }
}
