/*!
 * Oddvia — front site styles ("Floodlight" theme)
 * Colours are CSS variables: the accent colour can be changed in
 * Admin > Settings > Appearance; everything else is below.
 */

/* Barlow and Barlow Condensed, SIL Open Font License 1.1 (assets/fonts/OFL.txt) */
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/barlow-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/barlow-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/barlow-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/barlow-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/barlow-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/barlow-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/barlow-condensed-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/barlow-condensed-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/barlow-condensed-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/barlow-condensed-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/barlow-condensed-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/barlow-condensed-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0b1820;
  --bg-deep: #07121a;
  --panel: #0f222c;
  --panel-2: #122833;
  --raised: #173543;
  --raised-2: #1e4251;
  --line: #1b3442;
  --line-2: #26495b;
  --text: #e4f1f4;
  --text-2: #a9c5cd;
  --muted: #6e939d;
  --accent: #2fe08a;
  --accent-hover: #4be89c;
  --accent-ink: #04261a;
  --accent-soft: rgba(47, 224, 138, .12);
  --accent-line: rgba(47, 224, 138, .38);
  --gold: #f6c453;
  --gold-deep: #d99a1e;
  --gold-ink: #3b2800;
  --live: #ff4d4f;
  --live-soft: rgba(255, 77, 79, .15);
  --up: #34e48f;
  --down: #ff6b5e;
  --info: #4ab8ff;
  --warn: #ffb547;
  --danger: #ff5c5c;
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .38);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .28);
  --font-head: 'Barlow Condensed', 'Avenir Next Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Avenir Next', 'Segoe UI', Roboto, system-ui, sans-serif;
  --header-h: 64px;
  --sidebar-w: 236px;
  --slip-w: 328px;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: .2px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 20px;
  background:
    radial-gradient(600px 120px at 18% -40px, rgba(47, 224, 138, .16), transparent 70%),
    linear-gradient(180deg, #102733, #0d1f29);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 25px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.brand-name b { color: var(--accent); font-weight: 700; }
.brand-img { height: 36px; width: auto; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius); align-items: center; justify-content: center; color: var(--text-2); }
.menu-toggle:hover { background: var(--raised); color: #fff; }

.mainnav { display: flex; align-items: center; gap: 4px; margin-inline-start: 6px; }
.mainnav a {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 13px; border-radius: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: .4px; text-transform: uppercase;
  color: var(--text-2);
  transition: color .15s, background .15s;
}
.mainnav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.mainnav a.is-active { color: #fff; background: var(--raised); box-shadow: inset 0 -2px 0 var(--accent); }
.mainnav .count { background: var(--live); color: #fff; font-size: 12px; line-height: 18px; min-width: 20px; padding: 0 6px; border-radius: 10px; text-align: center; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

.topbar-search { flex: 1; max-width: 340px; margin-inline-start: auto; position: relative; }
.topbar-search input {
  width: 100%; height: 38px; padding-block: 0; padding-inline: 38px 12px;
  background: rgba(7, 18, 26, .65); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--text); outline: none; transition: border-color .15s, background .15s;
}
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search input:focus { border-color: var(--accent-line); background: var(--bg-deep); }
.topbar-search .icon { position: absolute; inset-inline-start: 11px; top: 9px; color: var(--muted); }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px 0 6px; border-radius: 20px;
  background: linear-gradient(180deg, #1b3d4c, #153342);
  border: 1px solid #2a5367;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .3px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.balance-chip img { width: 28px; height: 28px; }
.balance-chip small { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--text-2); letter-spacing: 0; }
.balance-chip.bump { animation: bump .6s ease; }
@keyframes bump { 30% { transform: scale(1.08); box-shadow: 0 0 0 4px var(--accent-soft); } }

.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); background: transparent; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--raised); color: #fff; }
.icon-btn .dot { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--live); color: #fff; font-size: 11px; font-weight: 600; line-height: 17px; text-align: center; border: 2px solid #0f2530; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(135deg, #2b6a5a, #1a4a5c); color: #dffcef;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .5px;
  border: 2px solid rgba(255, 255, 255, .08);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }

/* ---------- Dropdowns ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 220px; padding: 6px;
  background: #112a35; border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .14s, transform .14s, visibility .14s;
}
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; text-align: start;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--raised); color: #fff; }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.dropdown-head { padding: 10px; display: flex; gap: 10px; align-items: center; }
.dropdown-head strong { display: block; font-size: 15px; }
.dropdown-head small { color: var(--muted); }
.dropdown-menu .is-current { color: var(--accent); }
.dropdown-label { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.dropdown-menu .hint { margin-inline-start: auto; color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .3px; }
.dropdown-menu .is-current .hint { color: var(--accent); }

/* Odds format and language menu in the header */
.prefs-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 9px 0 11px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(7, 18, 26, .45); color: var(--text-2);
  font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .5px;
  transition: color .15s, border-color .15s;
}
.prefs-btn:hover, .prefs.is-open .prefs-btn { color: #fff; border-color: var(--accent-line); }
.prefs-btn .sep { width: 1px; height: 16px; margin: 0 3px; background: var(--line-2); }
.prefs-btn .odds-sample { color: #fff; }
.prefs-btn .caret { opacity: .6; transition: transform .15s; }
.prefs.is-open .caret { transform: rotate(180deg); }
.prefs-menu { min-width: 230px; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; scrollbar-width: thin; }
.prefs-menu a { padding: 8px 10px; }

/* ---------- Shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--slip-w);
  gap: 18px;
  max-width: 1600px; margin: 0 auto; padding: 18px 20px 40px;
  align-items: start;
}
.shell.no-slip { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.shell.plain { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.content { min-width: 0; }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
.side-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; margin-bottom: 14px; }
.side-title { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.side-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px; color: var(--text-2); font-weight: 500;
  transition: background .15s, color .15s;
}
.side-link:hover { background: var(--panel-2); color: #fff; }
.side-link.is-active { background: var(--raised); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
/* Arabic letters must join: no letter spacing or capitals in right-to-left languages. */
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--font-body); }
[dir="rtl"] .side-link.is-active { box-shadow: inset -3px 0 0 var(--accent); }
[dir="rtl"] .slip-item-top { padding-inline-end: 22px; }
.side-link .icon { color: var(--muted); }
.side-link.is-active .icon, .side-link:hover .icon { color: var(--accent); }
.side-link .num { margin-inline-start: auto; font-size: 12px; color: var(--muted); background: var(--bg-deep); border-radius: 10px; padding: 1px 8px; }
.side-link .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px var(--live-soft); margin-inline-start: auto; animation: pulse 1.6s infinite; }
.league-logo { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }

@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

/* ---------- Cards and sections ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 18px; }
.section { margin-bottom: 22px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 22px; text-transform: uppercase; letter-spacing: .8px; display: flex; align-items: center; gap: 10px; }
.section-head h2 .icon { color: var(--accent); }
.section-head .more { margin-inline-start: auto; color: var(--text-2); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.section-head .more:hover { color: var(--accent); }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.page-head h1 { font-size: 34px; text-transform: uppercase; letter-spacing: .6px; display: flex; align-items: center; gap: 12px; }
.page-head h1 .icon { width: 30px; height: 30px; color: var(--accent); }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.page-head .actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .icon { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .6px; text-transform: uppercase;
  background: var(--raised); color: #fff; border: 1px solid var(--line-2);
  transition: background .15s, transform .08s, box-shadow .15s, border-color .15s;
  white-space: nowrap; user-select: none;
}
.btn:hover { background: var(--raised-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 6px 18px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 22px rgba(47, 224, 138, .25); }
.btn-gold { background: linear-gradient(180deg, #ffd879, var(--gold)); color: var(--gold-ink); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-gold:hover { background: #ffd56b; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { background: var(--panel-2); color: #fff; }
.btn-danger { background: rgba(255, 92, 92, .12); color: #ff8b8b; border-color: rgba(255, 92, 92, .35); }
.btn-danger:hover { background: rgba(255, 92, 92, .2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 15px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 20px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--accent); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; letter-spacing: .2px; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--bg-deep); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a9c5cd' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 36px; }
[dir="rtl"] .select { background-position: left 14px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: rgba(255, 92, 92, .7); }
.field-error { color: #ff8b8b; font-size: 13px; margin-top: 6px; }
.field-help { color: var(--muted); font-size: 13px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.password-wrap { position: relative; }
.password-wrap .input { padding-inline-end: 44px; }
.password-wrap button { position: absolute; inset-inline-end: 6px; top: 6px; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.password-wrap button:hover { color: #fff; background: var(--raised); }

/* ---------- Alerts and badges ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.alert .icon { margin-top: 1px; }
.alert-success { background: rgba(47, 224, 138, .1); border-color: rgba(47, 224, 138, .35); color: #b9f6d6; }
.alert-error { background: rgba(255, 92, 92, .1); border-color: rgba(255, 92, 92, .35); color: #ffc2c2; }
.alert-info { background: rgba(74, 184, 255, .1); border-color: rgba(74, 184, 255, .3); color: #c5e7ff; }
.alert-warn { background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .35); color: #ffe0ae; }
.alert a { text-decoration: underline; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: .3px; background: var(--raised); color: var(--text-2); white-space: nowrap; }
.badge-live { background: var(--live); color: #fff; text-transform: uppercase; }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.badge-won { background: rgba(47, 224, 138, .16); color: var(--accent); }
.badge-lost { background: rgba(255, 92, 92, .14); color: #ff8b8b; }
.badge-void { background: rgba(169, 197, 205, .14); color: var(--text-2); }
.badge-open { background: rgba(74, 184, 255, .15); color: #8fd2ff; }
.badge-cashed_out { background: rgba(246, 196, 83, .16); color: var(--gold); }
.badge-gold { background: rgba(246, 196, 83, .16); color: var(--gold); }
.badge-outline { background: transparent; border: 1px solid var(--line-2); }

/* ---------- Tabs and chips ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .4px; text-transform: uppercase;
  color: var(--text-2);
}
.tabs a:hover, .tabs button:hover { color: #fff; }
.tabs .is-active { background: var(--raised); color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.tabs .num { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text-2); font-weight: 500; font-size: 14px;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--accent-line); color: #fff; }
.chip.is-active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip .icon { width: 17px; height: 17px; }

/* ---------- Hero / banners ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 20px; border: 1px solid #23505f;
  min-height: 236px; padding: 30px 34px;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(420px 260px at 88% 0%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(520px 300px at 70% 120%, rgba(47, 224, 138, .28), transparent 65%),
    linear-gradient(120deg, #0e2a35 0%, #10394a 45%, #0b5d4b 100%);
  margin-bottom: 22px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, .07) 49.6%, rgba(255, 255, 255, .07) 50.4%, transparent 50.4%),
    radial-gradient(circle at 50% 50%, transparent 74px, rgba(255, 255, 255, .07) 75px, rgba(255, 255, 255, .07) 77px, transparent 78px);
  mask-image: linear-gradient(90deg, transparent 30%, #000 70%);
}
.hero-art { position: absolute; inset-inline-end: 30px; bottom: 0; height: 100%; width: auto; max-width: 46%; object-fit: contain; object-position: bottom; pointer-events: none; }
.hero-body { position: relative; max-width: 56%; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.hero h1 { font-size: 44px; line-height: 1.02; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero p { color: #cfe6ea; font-size: 16px; margin-bottom: 18px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 18, 26, .92) 0%, rgba(7, 18, 26, .55) 55%, rgba(7, 18, 26, .1) 100%); }
.hero.has-image .hero-body { z-index: 1; }
.hero-dots { position: absolute; bottom: 14px; inset-inline-start: 34px; display: flex; gap: 6px; z-index: 2; }
.hero-dots button { width: 22px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.hero-dots button.is-active { background: var(--accent); width: 34px; }
.slider { position: relative; }
.slider .hero { margin-bottom: 0; }
.slider-wrap { margin-bottom: 22px; }

/* ---------- Event lists ---------- */
.league-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 14px; overflow: hidden; }
.league-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.league-head .icon { color: var(--accent); }
.league-head a { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: .4px; }
.league-head a:hover { color: var(--accent); }
.league-head .country { color: var(--muted); font-size: 13px; }
.league-head .cols { margin-inline-start: auto; display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .5px; }
.league-head .cols.c2 { grid-template-columns: repeat(2, 64px); }

.event-row {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto 46px; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.event-row:last-child { border-bottom: 0; }
.event-row:hover { background: rgba(255, 255, 255, .015); }
.event-time { font-size: 13px; color: var(--text-2); line-height: 1.3; }
.event-time strong { display: block; color: #fff; font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: .3px; }
.event-time .live-clock { color: var(--live); font-weight: 600; font-family: var(--font-head); font-size: 16px; display: flex; align-items: center; gap: 6px; }
.event-time .live-clock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: blink 1.2s infinite; }
.event-teams { min-width: 0; display: grid; gap: 4px; }
.team-line { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 500; }
.team-line span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-line .score { margin-inline-start: auto; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; min-width: 18px; text-align: end; }
.team-line.is-winner .name { color: #fff; font-weight: 600; }
.event-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-teams a:hover .name, .event-title:hover { color: var(--accent); }
.crest { width: 22px; height: 22px; flex: none; }
.crest-lg { width: 64px; height: 64px; }
.crest-md { width: 36px; height: 36px; }
.event-odds { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; }
.event-odds.c2 { grid-template-columns: repeat(2, 64px); }
.event-more {
  height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 13px; font-weight: 600; background: var(--bg-deep); border: 1px solid var(--line);
}
.event-more:hover { color: var(--accent); border-color: var(--accent-line); }

/* Odds buttons */
.odd {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 0; height: 42px; padding: 0 6px; border-radius: 9px;
  background: var(--raised); border: 1px solid transparent; color: #fff;
  transition: background .15s, transform .08s, border-color .15s, box-shadow .15s;
  overflow: hidden;
}
.odd:hover { background: var(--raised-2); border-color: var(--line-2); }
.odd:active { transform: scale(.97); }
.odd-label { font-size: 11px; color: var(--muted); line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odd-value { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.05; letter-spacing: .3px; }
.odd.is-picked { background: linear-gradient(180deg, var(--accent-hover), var(--accent)); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(47, 224, 138, .25); }
.odd.is-picked .odd-label { color: rgba(4, 38, 26, .7); }
.odd.is-locked, .odd[disabled] { pointer-events: none; background: var(--panel-2); color: var(--muted); }
.odd.is-locked .odd-value::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-inline-end: 3px; vertical-align: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.odd.up::after, .odd.down::after { content: ''; position: absolute; top: 4px; inset-inline-end: 4px; border: 5px solid transparent; }
.odd.up::after { border-bottom-color: var(--up); border-top-width: 0; }
.odd.down::after { border-top-color: var(--down); border-bottom-width: 0; }
.odd.flash-up { animation: flashUp 1.4s ease; }
.odd.flash-down { animation: flashDown 1.4s ease; }
@keyframes flashUp { 0%, 40% { box-shadow: inset 0 0 0 2px var(--up); } }
@keyframes flashDown { 0%, 40% { box-shadow: inset 0 0 0 2px var(--down); } }
.odd-empty { height: 42px; border-radius: 9px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Featured match cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.match-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #13303c, var(--panel));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 14px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.match-card:hover { border-color: #2f5d70; box-shadow: var(--shadow-sm); }
.match-card-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.match-card-top .icon { width: 15px; height: 15px; color: var(--accent); }
.match-card-top .when { margin-inline-start: auto; color: var(--text-2); font-weight: 500; }
.match-card-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; margin-bottom: 14px; }
.match-card-teams .team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.match-card-teams .team .crest { width: 46px; height: 46px; }
.match-card-teams .team span { font-weight: 600; font-size: 14px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-card-teams .vs { font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 18px; }
.match-card-teams .scoreline { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: #fff; letter-spacing: 1px; }
.match-card .event-odds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.match-card .event-odds.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Event page */
.scoreboard {
  position: relative; overflow: hidden;
  border-radius: 20px; border: 1px solid #23505f; padding: 22px;
  background:
    radial-gradient(500px 200px at 50% -60px, rgba(255, 255, 255, .12), transparent 70%),
    linear-gradient(180deg, #12394a, #0f2a36);
  margin-bottom: 18px;
}
.scoreboard-meta { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-2); font-size: 13px; margin-bottom: 16px; flex-wrap: wrap; }
.scoreboard-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.scoreboard-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.scoreboard-team .name { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: .4px; line-height: 1.1; }
.scoreboard-center { text-align: center; }
.scoreboard-center .score { font-family: var(--font-head); font-weight: 700; font-size: 54px; line-height: 1; letter-spacing: 2px; color: #fff; }
.scoreboard-center .kickoff { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: #fff; }
.scoreboard-center small { display: block; color: var(--text-2); margin-top: 6px; font-size: 14px; }
.scoreboard-center .clock { color: var(--live); font-family: var(--font-head); font-weight: 600; font-size: 18px; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }
.scoreboard-center .clock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: blink 1.2s infinite; }
.countdown { display: inline-flex; gap: 6px; margin-top: 8px; }
.countdown span { background: rgba(7, 18, 26, .55); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 8px; font-family: var(--font-head); font-weight: 700; font-size: 18px; min-width: 44px; }
.countdown span small { display: block; font-size: 10px; color: var(--muted); font-family: var(--font-body); font-weight: 500; letter-spacing: .5px; margin: 0; }

.market { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; }
.market-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; user-select: none; }
.market-head h3 { font-size: 17px; letter-spacing: .3px; }
.market-head .icon { margin-inline-start: auto; color: var(--muted); transition: transform .2s; }
.market.is-collapsed .market-head .icon { transform: rotate(-90deg); }
.market.is-collapsed .market-body { display: none; }
.market-body { padding: 0 16px 16px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.market-body.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.market-body.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.market-body .odd { flex-direction: row; justify-content: space-between; height: 46px; padding: 0 14px; gap: 10px; }
.market-body .odd-label { font-size: 14px; color: var(--text-2); }
.market-body .odd.is-picked .odd-label { color: var(--accent-ink); }
.market .badge { margin-inline-start: 4px; }

/* ---------- Bet slip ---------- */
.slip-col { position: sticky; top: calc(var(--header-h) + 18px); }
.slip {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 36px);
  box-shadow: var(--shadow-sm);
}
.slip-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.slip-head h2 { font-size: 20px; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.slip-head h2 .icon { color: var(--accent); }
.slip-count { background: var(--accent); color: var(--accent-ink); border-radius: 12px; min-width: 24px; height: 22px; padding: 0 7px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.slip-head .slip-close { margin-inline-start: auto; display: none; }
.slip-head.has-tabs { padding: 8px 10px; gap: 6px; }
.slip-tabs { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.slip-tab {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; border-radius: 10px; min-width: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-2);
  transition: color .15s, background .15s;
}
.slip-tab .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip-tab .icon { color: var(--muted); }
.slip-tab:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.slip-tab.is-active { color: #fff; background: var(--raised); box-shadow: inset 0 -2px 0 var(--accent); }
.slip-tab.is-active .icon { color: var(--accent); }
.slip-tab .slip-count { flex: none; height: 20px; min-width: 22px; font-size: 12px; font-family: var(--font-body); letter-spacing: 0; }
.slip-tab .slip-count.is-open-bets { background: rgba(74, 184, 255, .18); color: #8fd2ff; }
.slip-head.has-tabs .slip-clear { width: 32px; height: 32px; justify-content: center; border-radius: 8px; flex: none; }
.slip-head.has-tabs .slip-clear span { display: none; }
.slip-head.has-tabs .slip-clear:hover { background: rgba(255, 92, 92, .1); }
.slip-pane { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.slip-loading { display: flex; justify-content: center; padding: 48px 0; color: var(--accent); }
.slip-loading .spinner { width: 26px; height: 26px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.slip-subhead { margin: 16px 2px 8px; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.slip-note { margin: 4px 2px 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Compact bet cards in the "My bets" tab */
.mini-bet { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.mini-bet.is-won { border-color: rgba(47, 224, 138, .35); }
.mini-bet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mini-bet-head .type { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; }
.mini-bet-head .badge { height: 20px; padding: 0 7px; font-size: 11px; }
.mini-bet-head .code { margin-inline-start: auto; color: var(--muted); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mini-bet-head .code:hover { color: var(--text-2); }
.mini-leg { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; }
.mini-leg .leg-state { width: 18px; height: 18px; }
.mini-leg .leg-state .icon { width: 11px; height: 11px; }
.mini-leg .name { font-weight: 600; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-leg .meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-leg .odds { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.mini-more { display: block; padding-inline-start: 26px; font-size: 12px; color: var(--muted); }
.mini-more:hover { color: var(--text-2); }
.mini-bet-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.mini-bet-foot strong { margin-inline-start: 4px; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: #fff; }
.mini-bet-foot strong.pos { color: var(--accent); }
.mini-bet .btn-cashout { margin-top: 9px; }
[dir="rtl"] .flip-x { transform: scaleX(-1); }
.slip-clear { margin-inline-start: auto; color: var(--muted); font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.slip-clear:hover { color: #ff8b8b; }
.slip-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 12px 16px 0; padding: 4px; background: var(--bg-deep); border-radius: 10px; }
.slip-modes button { height: 32px; border-radius: 8px; font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-2); }
.slip-modes button.is-active { background: var(--raised); color: #fff; }
.slip-modes button:disabled { opacity: .4; cursor: not-allowed; }
.slip-body { overflow-y: auto; padding: 12px 16px; flex: 1; scrollbar-width: thin; }
.slip-empty { text-align: center; padding: 26px 10px 18px; color: var(--text-2); }
.slip-empty img { width: 92px; height: 92px; margin: 0 auto 12px; }
.slip-empty strong { display: block; font-family: var(--font-head); font-size: 19px; color: #fff; letter-spacing: .4px; margin-bottom: 4px; }
.slip-empty p { font-size: 14px; }
.slip-item { position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; }
.slip-item.is-bad { border-color: rgba(255, 92, 92, .5); background: rgba(255, 92, 92, .06); }
.slip-item.is-changed { border-color: rgba(255, 181, 71, .55); }
.slip-item-top { display: flex; gap: 8px; align-items: flex-start; padding-inline-end: 22px; }
.slip-item-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.slip-item-odds { margin-inline-start: auto; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--accent); flex: none; }
.slip-item-odds .was { color: var(--muted); text-decoration: line-through; font-size: 14px; margin-inline-end: 4px; }
.slip-item-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.slip-item-meta a:hover { color: var(--text-2); }
.slip-item-remove { position: absolute; top: 8px; inset-inline-end: 8px; width: 22px; height: 22px; border-radius: 6px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.slip-item-remove:hover { color: #fff; background: var(--raised); }
.slip-item .stake-row { margin-top: 9px; }
.slip-item-note { font-size: 12px; margin-top: 6px; color: #ffb3a9; }
.slip-item .badge-live { height: 18px; font-size: 10px; padding: 0 6px; margin-top: 4px; }
.stake-input { position: relative; }
.stake-input input { width: 100%; height: 42px; padding-block: 0; padding-inline: 40px 12px; background: var(--bg-deep); border: 1px solid var(--line-2); border-radius: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 19px; outline: none; }
.stake-input input:focus { border-color: var(--accent-line); }
.stake-input img { position: absolute; inset-inline-start: 9px; top: 9px; width: 24px; height: 24px; }
.stake-input .payout { position: absolute; inset-inline-end: 12px; top: 0; height: 42px; display: flex; align-items: center; font-size: 12px; color: var(--muted); pointer-events: none; }
.quick-stakes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.quick-stakes button { height: 30px; border-radius: 8px; background: var(--raised); font-size: 13px; font-weight: 600; color: var(--text-2); }
.quick-stakes button:hover { color: #fff; background: var(--raised-2); }
.slip-foot { border-top: 1px solid var(--line); padding: 14px 16px 16px; background: linear-gradient(180deg, transparent, rgba(7, 18, 26, .35)); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.slip-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.slip-line strong { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .3px; }
.slip-line.win strong { color: var(--accent); font-size: 22px; }
.slip-accept { margin: 10px 0 12px; }
.slip-accept select { height: 34px; font-size: 13px; }
.slip-message { font-size: 13px; padding: 9px 11px; border-radius: 9px; margin-bottom: 10px; }
.slip-message.error { background: rgba(255, 92, 92, .1); color: #ffb3b3; }
.slip-message.warn { background: rgba(255, 181, 71, .1); color: #ffd99c; }
.slip-share { display: flex; gap: 8px; margin-top: 10px; }
.slip-share .btn { flex: 1; }
.booking-form { display: flex; gap: 6px; margin-top: 12px; }
.booking-form .input { height: 36px; font-size: 14px; text-transform: uppercase; }
.booking-form .btn { height: 36px; }
.slip-fab {
  position: fixed; z-index: 45; inset-inline-end: 18px; bottom: 18px;
  display: none; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 28px;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent)); color: var(--accent-ink);
  font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .6px; text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 4px rgba(47, 224, 138, .15);
}
.slip-fab .slip-count { background: var(--accent-ink); color: var(--accent); }
.slip-backdrop { position: fixed; inset: 0; background: rgba(3, 9, 13, .65); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
body.slip-open .slip-backdrop, body.menu-open .slip-backdrop { opacity: 1; visibility: visible; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .015); }
.table .num { text-align: end; font-family: var(--font-head); font-weight: 600; font-size: 16px; white-space: nowrap; }
.pos { color: var(--accent); }
.neg { color: #ff8b8b; }

/* ---------- Bets ---------- */
.bet-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; }
.bet-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.bet-card-head .type { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .5px; text-transform: uppercase; }
.bet-card-head .code { color: var(--muted); font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.bet-card-head .when { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.bet-leg { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 11px 16px; border-bottom: 1px dashed var(--line); align-items: center; }
.bet-leg:last-child { border-bottom: 0; }
.bet-leg .leg-name { font-weight: 600; }
.bet-leg .leg-meta { font-size: 13px; color: var(--muted); }
.bet-leg .leg-odds { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.leg-state { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--raised); color: var(--muted); }
.leg-state .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.leg-state.won { background: rgba(47, 224, 138, .18); color: var(--accent); }
.leg-state.lost { background: rgba(255, 92, 92, .16); color: #ff8b8b; }
.leg-state.void { background: rgba(169, 197, 205, .14); color: var(--text-2); }
.bet-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 12px 16px; border-top: 1px solid var(--line); }
.bet-card-foot .stat small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.bet-card-foot .stat strong { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.bet-card-foot .actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-cashout { background: linear-gradient(180deg, #ffd879, var(--gold)); color: var(--gold-ink); border-color: transparent; }
.btn-cashout:hover { background: #ffd56b; }

/* ---------- Outrights (futures) ---------- */
.outright-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.outright-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.outright-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; }
.outright-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(246, 196, 83, .2), rgba(246, 196, 83, .06)); color: var(--gold); border: 1px solid rgba(246, 196, 83, .25); }
.outright-title { min-width: 0; flex: 1; }
.outright-title a { display: block; font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: .3px; line-height: 1.15; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outright-title a:hover { color: var(--accent); }
.outright-title span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outright-head .badge { flex: none; }
.outright-card .market-body { padding: 0 16px 14px; }
.outright-more { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.outright-more:hover { color: #fff; background: rgba(255, 255, 255, .02); }
.outright-empty { padding: 0 16px 16px; font-size: 14px; color: var(--muted); }

/* ---------- Stats tiles ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.stat-tile .tile-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.stat-tile .tile-icon img { width: 34px; height: 34px; }
.stat-tile small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.stat-tile strong { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: .3px; }

/* ---------- Leaderboard ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 18px; }
.podium-spot { text-align: center; background: linear-gradient(180deg, #153744, var(--panel)); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 12px 16px; position: relative; }
.podium-spot.first { padding-top: 26px; border-color: rgba(246, 196, 83, .45); background: linear-gradient(180deg, #2a3a2a, #13281f 40%, var(--panel)); }
.podium-spot .medal { width: 44px; height: 44px; margin: 0 auto 8px; }
.podium-spot .avatar { margin: 0 auto 8px; width: 58px; height: 58px; font-size: 21px; }
.podium-spot.first .avatar { width: 70px; height: 70px; border-color: var(--gold); }
.podium-spot strong { display: block; font-family: var(--font-head); font-size: 19px; letter-spacing: .3px; }
.podium-spot .profit { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--accent); }
.podium-spot .prize { margin-top: 6px; }
.rank-cell { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text-2); width: 50px; }
.player-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.me-row { background: var(--accent-soft) !important; }
.my-rank { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; }

/* ---------- Rewards ---------- */
.reward-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.reward-card { position: relative; overflow: hidden; background: linear-gradient(180deg, #143340, var(--panel)); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; }
.reward-card h3 { font-size: 22px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.reward-card p { color: var(--text-2); font-size: 14px; }
.reward-card .art { position: absolute; inset-inline-end: -6px; top: -6px; width: 112px; height: 112px; opacity: .95; pointer-events: none; }
.reward-card .body { position: relative; max-width: 72%; }
.daily-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 14px 0 16px; }
.daily-day { border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); padding: 8px 4px 9px; text-align: center; }
.daily-day small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.daily-day img { width: 30px; height: 30px; margin: 4px auto; }
.daily-day strong { font-family: var(--font-head); font-size: 15px; }
.daily-day.is-claimed { opacity: .55; }
.daily-day.is-claimed img { filter: grayscale(.4); }
.daily-day.is-today { border-color: var(--gold); background: rgba(246, 196, 83, .1); box-shadow: 0 0 0 3px rgba(246, 196, 83, .12); }
.daily-day.is-big img { width: 36px; height: 36px; margin: 1px auto; }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side {
  position: relative; overflow: hidden; padding: 56px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(500px 300px at 70% 20%, rgba(255, 255, 255, .12), transparent 60%),
    radial-gradient(600px 380px at 30% 110%, rgba(47, 224, 138, .3), transparent 60%),
    linear-gradient(160deg, #0f3242, #0a4a3e);
  border-inline-end: 1px solid var(--line);
}
.auth-side img.art { position: absolute; inset-inline-end: 6%; top: 8%; width: 58%; max-width: 420px; }
.auth-side h2 { position: relative; font-size: 44px; text-transform: uppercase; line-height: 1.02; margin-bottom: 12px; }
.auth-side p { position: relative; color: #cfe6ea; max-width: 420px; }
.auth-side ul { position: relative; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.auth-side li { display: flex; gap: 10px; align-items: center; color: #e2f5f2; }
.auth-side li .icon { color: var(--accent); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 36px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.auth-card > p { color: var(--text-2); margin-bottom: 22px; }
.auth-card .switch { text-align: center; margin-top: 18px; color: var(--text-2); font-size: 14px; }
.social-buttons { display: grid; gap: 10px; }
.btn-social { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); color: #fff; font-weight: 600; transition: border-color .15s, background .15s; }
.btn-social:hover { border-color: var(--accent-line); background: var(--panel-2); }
.btn-social .mono { width: 28px; height: 28px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 16px; letter-spacing: 0; text-transform: none; }
.btn-social span:last-child { flex: 1; text-align: center; padding-inline-end: 28px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.social-list { display: grid; gap: 10px; }
.social-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.social-row .mono { width: 32px; height: 32px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.social-row div { flex: 1; min-width: 0; }
.social-row small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome-bonus { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(246, 196, 83, .1); border: 1px solid rgba(246, 196, 83, .35); margin-bottom: 18px; font-size: 14px; color: #ffe4a6; }
.welcome-bonus img { width: 38px; height: 38px; }
.welcome-bonus strong { color: var(--gold); font-family: var(--font-head); font-size: 18px; letter-spacing: .3px; }

/* ---------- Account ---------- */
.account-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 18px); }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; }
.account-nav a:hover { background: var(--panel-2); color: #fff; }
.account-nav a.is-active { background: var(--raised); color: #fff; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px; }
.panel > h2 { font-size: 21px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.panel > .lead { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.limit-bar { height: 8px; border-radius: 4px; background: var(--bg-deep); overflow: hidden; margin-top: 6px; }
.limit-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 4px; }
.qr-box { background: #fff; border-radius: 12px; padding: 10px; width: 200px; }
.codes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--bg-deep); border-radius: 10px; padding: 12px; }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty img { width: 120px; height: 120px; margin: 0 auto 14px; }
.empty h3 { font-size: 22px; color: #fff; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.prose { color: #d4e6ea; line-height: 1.7; }
.prose h2, .prose h3 { margin: 22px 0 10px; color: #fff; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.prose td, .prose th { border: 1px solid var(--line-2); padding: 8px 10px; }
.prose blockquote { border-inline-start: 3px solid var(--accent); margin: 14px 0; padding: 4px 16px; color: var(--text-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 4px; font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { margin-inline-start: auto; color: var(--muted); transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--accent); }
.faq-item .prose { padding: 0 4px 16px; }

/* ---------- Browser notifications ---------- */
.push-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: linear-gradient(90deg, rgba(47, 224, 138, .08), var(--panel) 55%); }
.push-box[data-state="on"] { background: var(--panel); border-color: var(--line); }
.push-box[data-state="blocked"], .push-box[data-state="unsupported"] { background: var(--panel); }
.push-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.push-box div { flex: 1; min-width: 0; }
.push-box strong { display: block; color: #fff; }
.push-box p { margin: 2px 0 0; color: var(--text-2); font-size: 13.5px; }
.panel .push-box { margin: 4px 0 18px; }

/* ---------- Identity verification ---------- */
.kyc-status { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); max-width: 760px; }
.kyc-status strong { display: block; font-family: var(--font-head); font-size: 20px; letter-spacing: .3px; color: #fff; }
.kyc-status p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.kyc-badge { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--raised); color: var(--text-2); }
.kyc-status.is-verified { border-color: rgba(47, 224, 138, .4); background: linear-gradient(90deg, rgba(47, 224, 138, .1), var(--panel) 60%); }
.kyc-status.is-verified .kyc-badge { background: var(--accent-soft); color: var(--accent); }
.kyc-status.is-pending { border-color: rgba(246, 196, 83, .35); }
.kyc-status.is-pending .kyc-badge { background: rgba(246, 196, 83, .14); color: var(--gold); }
.kyc-status.is-rejected { border-color: rgba(255, 92, 92, .4); }
.kyc-status.is-rejected .kyc-badge { background: rgba(255, 92, 92, .12); color: #ff8b8b; }
.verified-mark { display: inline-flex; vertical-align: -3px; margin-inline-start: 4px; color: var(--accent); }
.verified-mark .icon { width: 16px; height: 16px; }

/* ---------- Support tickets ---------- */
.ticket-link { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticket-link strong { color: #fff; font-weight: 600; }
.ticket-link:hover strong { color: var(--accent); }
.ticket-link small { color: var(--muted); font-size: 12.5px; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.thread-msg { max-width: 82%; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.thread-msg.is-player { align-self: flex-end; border-end-end-radius: 6px; background: linear-gradient(180deg, #14303c, #112a35); border-color: var(--line-2); }
.thread-msg.is-staff { align-self: flex-start; border-end-start-radius: 6px; border-inline-start: 3px solid var(--accent); }
.thread-who { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.thread-who strong { font-size: 14px; }
.thread-who small { margin-inline-start: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.thread-who .avatar.staff { background: var(--accent-soft); color: var(--accent); }
.thread-text { color: #d4e6ea; line-height: 1.6; overflow-wrap: anywhere; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.attachment { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 11px; border-radius: 9px; background: var(--bg-deep); border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); }
.attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.attachment small { color: var(--muted); }
.attachment:hover { border-color: var(--accent-line); color: #fff; }
.file-input { height: auto; padding: 10px 12px; }
.file-input::file-selector-button { margin-inline-end: 12px; padding: 7px 12px; border: 0; border-radius: 8px; background: var(--raised); color: #fff; font-weight: 600; cursor: pointer; }

/* ---------- News & Updates ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-bottom: 18px; }
.post-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.post-card.is-lead { grid-column: 1 / -1; flex-direction: row; }
.post-card.is-lead .post-cover { flex: 0 0 50%; aspect-ratio: auto; min-height: 270px; }
.post-card.is-lead .post-card-body { padding: 24px 26px; justify-content: center; }
.post-card.is-lead h3 { font-size: 30px; }
.post-card.is-lead p { font-size: 15.5px; }
.post-cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.post-cover > img { width: 100%; height: 100%; object-fit: cover; }
.post-cover > img.art { position: relative; z-index: 1; width: auto; height: 56%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .45)); transition: transform .35s ease; }
.post-card:hover .post-cover > img.art { transform: scale(1.06) rotate(-3deg); }
.post-cover[class*="art-"] {
  background:
    radial-gradient(circle at 28% 20%, rgba(var(--glow), .42), transparent 60%),
    radial-gradient(circle at 85% 95%, rgba(var(--glow), .18), transparent 50%),
    linear-gradient(135deg, var(--deep), #0a1820);
}
.post-cover[class*="art-"]::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(255, 255, 255, .05) 30.4%, rgba(255, 255, 255, .05) 31%, transparent 31.4%),
    linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, .05) 49.8%, rgba(255, 255, 255, .05) 50.2%, transparent 50.2%);
}
.post-cover.art-0 { --glow: 47, 224, 138; --deep: #0f3b33; }
.post-cover.art-1 { --glow: 246, 196, 83; --deep: #3a2f12; }
.post-cover.art-2 { --glow: 74, 184, 255; --deep: #12304a; }
.post-cover.art-3 { --glow: 167, 123, 255; --deep: #2b1f4a; }
.post-cover.art-4 { --glow: 56, 214, 214; --deep: #0d3540; }
.post-cover.art-5 { --glow: 255, 122, 92; --deep: #3b1f1c; }
.post-cover.art-6 { --glow: 120, 230, 120; --deep: #183a1e; }
.post-cover.art-7 { --glow: 255, 214, 102; --deep: #23344a; }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; min-width: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.post-cat { color: var(--accent); font-weight: 600; font-size: 11.5px; letter-spacing: .7px; text-transform: uppercase; }
.post-card h3 { font-size: 21px; line-height: 1.18; letter-spacing: .2px; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.post-more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--accent); }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.post-head { padding: 26px 28px 20px; }
.post-head h1 { margin-top: 10px; font-size: 40px; line-height: 1.08; letter-spacing: .3px; }
.post-lead { margin-top: 12px; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.post > .post-cover { aspect-ratio: 21 / 9; }
.post-body { padding: 24px 28px 6px; font-size: 16px; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.post-body p { margin: 0 0 14px; }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 16px 28px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; }
.pagination a:hover { border-color: var(--accent-line); color: #fff; }
.pagination .is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pagination .is-disabled { opacity: .4; }
.notice-row { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notice-row.is-unread { background: rgba(47, 224, 138, .04); }
.notice-row .notice-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--raised); display: flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.notice-row strong { display: block; }
.notice-row p { margin: 2px 0 4px; color: var(--text-2); font-size: 14px; }
.notice-row small { color: var(--muted); }
.date-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.date-strip a { flex: none; min-width: 70px; text-align: center; padding: 8px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text-2); line-height: 1.2; }
.date-strip a small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.date-strip a strong { font-family: var(--font-head); font-size: 18px; color: #fff; }
.date-strip a.is-active { border-color: var(--accent-line); background: var(--accent-soft); }
.result-score { font-family: var(--font-head); font-weight: 700; font-size: 20px; text-align: center; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 34px 20px 90px; margin-top: 10px; }
.footer-inner { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 26px; }
.footer h4 { font-family: var(--font-head); font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.footer a { display: block; color: var(--muted); padding: 4px 0; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer .about p { color: var(--muted); font-size: 14px; max-width: 420px; }
.footer-bottom { max-width: 1600px; margin: 22px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.footer-bottom .age { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #ff8b8b; color: #ff8b8b; font-weight: 700; font-size: 13px; }
.footer-bottom .disclaimer { flex: 1; min-width: 260px; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 0; }

/* ---------- Toasts and modals ---------- */
.toasts { position: fixed; z-index: 100; top: calc(var(--header-h) + 12px); inset-inline-end: 16px; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #13303c; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; animation: toastIn .25s ease; }
.toast .icon { color: var(--accent); margin-top: 1px; }
.toast.error .icon { color: var(--danger); }
.toast.leaving { opacity: 0; transform: translateY(-6px); transition: .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 9, 13, .7); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); text-align: center; transform: translateY(8px) scale(.98); transition: transform .2s; }
.modal.is-open .modal-card { transform: none; }
.modal-card img.art { width: 120px; height: 120px; margin: -70px auto 6px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45)); }
.modal-card h3 { font-size: 26px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.modal-card p { color: var(--text-2); }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.bet-codes { display: grid; gap: 6px; margin: 12px 0; }
.bet-codes a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: var(--bg-deep); font-size: 14px; }
.bet-codes a span { color: var(--muted); }
.cookie-bar { position: fixed; z-index: 74; bottom: 16px; inset-inline-start: 16px; max-width: 420px; background: #13303c; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 14px; color: var(--text-2); display: flex; gap: 12px; align-items: center; }
.impersonating { background: var(--gold); color: var(--gold-ink); font-weight: 600; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 8px 12px; }
.impersonating button { text-decoration: underline; font-weight: 700; }
.demo-bar { background: linear-gradient(90deg, #13303c, #0f3b33); border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 13px; text-align: center; padding: 7px 12px; }
.demo-bar strong { color: var(--accent); }
.ad-slot { margin: 0 0 18px; text-align: center; overflow: hidden; }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  :root { --sidebar-w: 214px; --slip-w: 300px; }
  .topbar-search { max-width: 240px; min-width: 150px; }
  .mainnav a { padding: 0 10px; font-size: 16px; }
  .mainnav a > .icon { display: none; }
}
@media (max-width: 1180px) {
  .shell, .shell.no-slip { grid-template-columns: minmax(0, 1fr) var(--slip-w); }
  .shell.no-slip { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; z-index: 75; top: 0; bottom: 0; inset-inline-start: 0; width: 280px; max-height: none;
    background: var(--bg); padding: 16px; transform: translateX(-100%); transition: transform .25s ease; border-inline-end: 1px solid var(--line);
  }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  body.menu-open .sidebar { transform: none; }
  .menu-toggle { display: inline-flex; }
  .mainnav { display: none; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr) !important; padding: 14px 14px 30px; }
  .slip-col {
    position: fixed; z-index: 76; inset-inline: 0; bottom: 0; top: auto;
    transform: translateY(105%); transition: transform .28s ease;
  }
  body.slip-open .slip-col { transform: none; }
  .slip { border-radius: 20px 20px 0 0; max-height: 86vh; }
  .slip-head .slip-close { display: inline-flex; }
  .slip-clear { margin-inline-start: 0; }
  .slip-fab { display: inline-flex; }
  .slip-fab[data-empty="1"] { display: none; }
  .topbar-search { display: none; }
  .hero-body { max-width: 100%; }
  .hero-art { opacity: .28; max-width: 70%; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .account-grid { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .account-nav a { flex: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .podium { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
}
@media (max-width: 720px) {
  :root { --header-h: 58px; }
  body { font-size: 14px; }
  .topbar { padding: 0 10px; gap: 8px; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 30px; height: 30px; }
  .balance-chip { font-size: 16px; padding: 0 10px 0 4px; height: 34px; }
  .balance-chip img { width: 24px; height: 24px; }
  .balance-chip small { display: none; }
  .topbar-actions .hide-sm { display: none; }
  .hero { padding: 22px 20px 38px; min-height: 200px; }
  .hero h1 { font-size: 32px; }
  .page-head h1 { font-size: 28px; }
  .event-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time more" "teams teams" "odds odds"; gap: 8px; padding: 12px 14px; }
  .event-row .event-time { grid-area: time; display: flex; gap: 8px; align-items: baseline; }
  .event-row .event-time strong { display: inline; font-size: 15px; }
  .event-row .event-teams { grid-area: teams; }
  .event-row .event-odds { grid-area: odds; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-row .event-odds.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-row .event-more { grid-area: more; height: 28px; padding: 0 10px; }
  .league-head .cols { display: none; }
  .scoreboard-team .name { font-size: 18px; }
  .scoreboard-center .score { font-size: 40px; }
  .crest-lg { width: 48px; height: 48px; }
  .market-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-body.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-body .odd { padding: 0 10px; }
  .footer { padding-bottom: 110px; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .daily-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reward-card .body { max-width: 100%; }
  .reward-card .art { opacity: .35; }
  .table th, .table td { padding: 10px; }
  .thread-msg { max-width: 100%; }
  .post-card.is-lead { flex-direction: column; }
  .post-card.is-lead .post-cover { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .post-card.is-lead .post-card-body { padding: 14px 16px 16px; }
  .post-card.is-lead h3 { font-size: 23px; }
  .post-head { padding: 18px 16px 14px; }
  .post-head h1 { font-size: 30px; }
  .post-body { padding: 18px 16px 4px; font-size: 15px; }
  .post-foot { padding: 14px 16px 18px; }
  .tabbar {
    position: fixed; z-index: 50; inset-inline: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: 64px; padding-bottom: env(safe-area-inset-bottom);
    background: rgba(13, 31, 41, .97); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; }
  .tabbar .is-active { color: var(--accent); }
  .tabbar .badge-dot { position: absolute; top: 7px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
  .slip-fab { bottom: 76px; }
  .cookie-bar { bottom: 76px; inset-inline-end: 16px; }
}
