/* BetPlus account area: login page + player dashboard (BetixPro-style shell). */

:root {
  color-scheme: dark;
  --font: "Barlow", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Barlow", "Segoe UI", sans-serif;
  --bg: #0b1120;
  --bg-deep: #070d18;
  --ticker: #080e19;
  --topbar: #101a2d;
  --quicknav: #0b1220;
  --sidebar: #101a2d;
  --surface: #0f1a2d;
  --surface-2: #132238;
  --surface-3: #1a2b43;
  --input: #0c1627;
  --border: #1e3350;
  --border-2: #263953;
  --text: #f4f7fb;
  --text-2: #dce6f3;
  --link: #a8c4e0;
  --muted: #8fa8c6;
  --dim: #6f829d;
  --gold: #f5c518;
  --gold-hover: #ffd52f;
  --gold-soft: rgba(245, 197, 24, 0.12);
  --gold-border: rgba(245, 197, 24, 0.45);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --red: #f05252;
  --red-soft: rgba(240, 82, 82, 0.14);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.14);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --sidebar-width: 240px;
  --slip-width: 320px;
  --header-height: 134px;

  /* Type scale: change sizes here, not per component. */
  --fs-meta: 11px;      /* league labels, kick-off, "+N markets", badges */
  --fs-small: 12px;
  --fs-team: 13px;      /* team names, slip items */
  --fs-nav: 13px;       /* sidebar links, nav tabs */
  --fs-body: 14px;
  --fs-odds: 14px;      /* odds values */
  --fs-section: 16px;   /* panel titles */
  --fs-amount: 22px;    /* potential win */

  /* Spacing */
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font: var(--fs-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { display: block; flex: none; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }

/* ---------------- Buttons & inputs ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border: 1px solid var(--border-2); border-radius: 10px;
  background: var(--surface-2); color: var(--text); cursor: pointer;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, filter .15s ease, opacity .15s ease;
}
.btn:hover { border-color: #3a5378; background: var(--surface-3); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn-gold { border-color: var(--gold); background: var(--gold); color: #15191f; }
.btn-gold:hover { border-color: var(--gold-hover); background: var(--gold-hover); }
.btn-gold:disabled { background: #8c7a28; border-color: #8c7a28; color: #2a2511; opacity: .9; }
.btn-green { border-color: var(--green); background: var(--green); color: #052e14; }
.btn-green:hover { filter: brightness(1.08); background: var(--green); }
.btn-outline-gold { border-color: var(--gold-border); background: var(--gold-soft); color: var(--gold); }
.btn-danger { border-color: rgba(240, 82, 82, .45); background: rgba(127, 29, 29, .35); color: #ff9b9b; }
.btn-danger:hover { border-color: var(--red); background: rgba(127, 29, 29, .5); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 50px; font-size: 16px; }

.field { display: grid; gap: 8px; }
.field > label, .field-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.field-hint { color: var(--dim); font-size: 12px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon, .input-prefix { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.input-prefix { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: 12px;
  background: var(--input); color: var(--text); outline: none; font-size: 15px;
}
.input-wrap .input { padding-left: 44px; }
.input-wrap.has-prefix .input { padding-left: 70px; }
.input-wrap.has-toggle .input { padding-right: 48px; }
.input::placeholder { color: #66788f; }
.input::-ms-reveal, .input::-ms-clear { display: none; }
.input:focus { border-color: var(--gold-border); box-shadow: 0 0 0 3px rgba(245, 197, 24, .12); }
.input[readonly] { color: var(--text-2); }
.input-toggle { position: absolute; right: 8px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.input-toggle:hover { color: var(--text); }
select.input { appearance: none; cursor: pointer; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--link); font-size: 13px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--gold); }
.checkbox a { color: var(--gold); font-weight: 700; text-decoration: none; }
.form-message { min-height: 0; border-radius: 10px; font-size: 14px; }
.form-message:empty { display: none; }
.form-message[data-tone] { padding: 10px 12px; }
.form-message[data-tone="error"] { border: 1px solid rgba(240, 82, 82, .4); background: var(--red-soft); color: #ffb4b4; }
.form-message[data-tone="success"] { border: 1px solid rgba(34, 197, 94, .35); background: var(--green-soft); color: #9ff0bd; }
.form-message[data-tone="info"] { border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); }

.switch { position: relative; display: inline-flex; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #2a3b55; transition: background .15s ease; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .15s ease; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: #ff8f8f; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-grey { background: rgba(148, 163, 184, .14); color: #c2cede; }
.badge-live { background: transparent; border: 1px solid var(--green); color: var(--green); border-radius: 99px; font-size: 11px; }
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--gold); }
.dot-red { background: #e54b4b; }
.dot-green { background: var(--green); }

/* ---------------- Login page ---------------- */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(245, 197, 24, .08), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(37, 99, 235, .14), transparent 60%),
    var(--bg-deep);
}
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 max(16px, calc((100% - 1200px) / 2)); border-bottom: 1px solid #16243a; background: rgba(16, 26, 45, .7); }
.auth-top .logo img { display: block; height: 40px; width: auto; }
.auth-top a.back { display: inline-flex; align-items: center; gap: 8px; color: var(--link); font-size: 14px; font-weight: 600; text-decoration: none; }
.auth-top a.back:hover { color: var(--gold); }
.auth-main { display: grid; flex: 1; place-items: center; padding: 32px 16px 48px; }
.auth-card {
  width: min(100%, 440px); padding: 28px 32px 26px; border: 1px solid #2a4a7a; border-radius: 22px;
  background: linear-gradient(160deg, #1d3d6b 0%, #142c50 45%, #0f2241 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.auth-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.auth-head-icon { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 12px; background: var(--gold); color: #15191f; }
.auth-head h1 { font-size: 24px; line-height: 1.2; }
.auth-head p { color: var(--link); font-size: 14px; }
.auth-form { display: grid; gap: 16px; }
.auth-card > .form-message { margin-bottom: 16px; }
.auth-form .field > label { color: #e6eefa; font-size: 13px; letter-spacing: 0; text-transform: none; }
.auth-form .input { min-height: 46px; border-color: #335687; background: rgba(12, 28, 54, .75); }
.auth-form .input:focus { border-color: var(--gold); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.auth-link { border: 0; background: none; padding: 0; color: var(--gold); cursor: pointer; font-weight: 700; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(96, 140, 200, .3); color: var(--link); font-size: 13px; text-align: center; }
.phone-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 8px; }
.phone-row .phone-code { padding-left: 12px; font-size: 14px; }
.auth-form .field-hint { color: #9db6d6; }
.auth-form .field-hint[data-tone="error"] { color: #ffb4b4; }
.auth-form .field-hint[data-tone="success"] { color: #9ff0bd; }
.label-optional { color: var(--dim); font-weight: 500; }
.ref-input { text-transform: uppercase; letter-spacing: .04em; }
.password-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: -4px 0 0; padding: 0; list-style: none; color: var(--dim); font-size: 12px; }
.password-rules li::before { content: "○ "; }
.password-rules li.is-met { color: var(--green); }
.password-rules li.is-met::before { content: "● "; }
.captcha-note { color: var(--link); font-size: 12px; }

/* ---------------- Legal pages (terms.html, privacy.html) ---------------- */
.legal-main { flex: 1; padding: 32px 16px 56px; }
.legal-card { width: min(100%, 820px); margin: 0 auto; padding: 32px 36px 36px; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(170deg, #111d32, #0d1729); box-shadow: var(--shadow); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.legal-card h1 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 36px); }
.legal-lead { margin-bottom: 26px; color: var(--link); font-size: 17px; line-height: 1.6; }
.legal-card section { padding: 20px 0; border-top: 1px solid var(--border); }
.legal-card h2 { margin-bottom: 8px; color: var(--gold); font-size: 19px; }
.legal-card section p { color: var(--text-2); line-height: 1.7; }
.legal-updated { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* ---------------- Dashboard shell ---------------- */
.shell { min-height: 100vh; }
.shell-header { position: sticky; top: 0; z-index: 40; background: var(--topbar); }
.ticker { display: flex; height: 24px; align-items: center; gap: 10px; overflow: hidden; border-bottom: 1px solid rgba(141, 162, 188, .12); background: var(--ticker); padding: 0 8px; }
.ticker-pill { flex: none; border-radius: 99px; background: var(--gold); padding: 1px 8px; color: #111827; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.ticker-viewport { min-width: 0; flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; gap: 28px; width: max-content; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 6px; color: #e6eefa; font-size: 12px; font-weight: 700; text-decoration: none; }
.ticker-item b { color: var(--green); font-size: 11px; }
.ticker-empty { color: #b9c7d9; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.topbar { display: flex; height: 64px; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid #1a2a40; }
.topbar .logo { display: inline-flex; flex: none; align-items: center; }
.topbar .logo img { display: block; height: 42px; width: auto; }
.topbar-search { position: relative; flex: 1 1 540px; max-width: 640px; margin: 0 auto; }
.search-box { position: relative; display: flex; align-items: center; min-height: 42px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--input); }
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 24, .1); }
.search-box input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; padding: 0 14px; color: var(--text); font-size: var(--fs-body); }
.search-box input::placeholder { color: #8292a8; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box .icon { margin-right: 14px; color: #8292a8; }
.search-clear { display: grid; width: 28px; height: 28px; margin-right: 4px; place-items: center; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--text-2); cursor: pointer; }
.search-clear:hover { background: #2a3d5a; }
.topbar-actions { display: flex; flex: none; align-items: center; gap: 10px; margin-left: auto; }
.top-btn {
  position: relative; display: inline-flex; min-height: 40px; align-items: center; gap: var(--space-3);
  border: 1px solid var(--border-2); border-radius: 12px; background: #0e1829; padding: 0 var(--space-5);
  color: var(--text); cursor: pointer; font-size: var(--fs-nav); font-weight: 800; text-decoration: none; white-space: nowrap;
}
.top-btn:hover { border-color: #3a5378; background: var(--surface-2); }
.top-btn.is-open, .top-btn.is-gold { border-color: var(--gold); color: var(--gold); }
.bets-btn { font-family: var(--font-display); letter-spacing: .02em; }
.bets-count { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 99px; background: var(--gold); padding: 0 6px; color: #15191f; font-size: 11px; font-weight: 800; }
.wallet-chip { display: grid; min-height: 40px; align-content: center; border: 1px solid var(--gold-border); border-radius: 12px; background: rgba(245, 197, 24, .06); padding: 0 12px; line-height: 1.15; text-decoration: none; }
.wallet-chip small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.wallet-chip strong { color: var(--text); font-family: var(--font-display); font-size: var(--fs-body); }
.icon-btn { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover, .icon-btn.is-open { background: var(--surface-2); color: var(--gold); }
.icon-btn .count { position: absolute; top: 4px; right: 4px; display: grid; min-width: 17px; height: 17px; place-items: center; border: 2px solid var(--topbar); border-radius: 99px; background: #e54b4b; padding: 0 4px; color: #fff; font-size: 9px; font-weight: 800; }
.menu-anchor { position: relative; }
.hamburger, .search-toggle { display: none; }

.dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; width: 260px;
  overflow: hidden; border: 1px solid var(--border-2); border-radius: 14px; background: #101b2e; box-shadow: var(--shadow);
}
.dropdown-user { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border-2); }
.avatar-dot { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 50%; background: var(--gold); color: #15191f; font-size: 11px; font-weight: 800; }
.dropdown-user strong { display: block; font-family: var(--font-display); font-size: 14px; }
.dropdown-user small { display: block; max-width: 180px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-group { padding: 4px 0; border-bottom: 1px solid var(--border-2); }
.dropdown-group:last-child { border-bottom: 0; }
.dropdown-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 20px; border: 0; background: transparent; color: var(--link); cursor: pointer; font-size: 15px; font-weight: 500; text-align: left; text-decoration: none; }
.dropdown-item:hover, .dropdown-item.is-active { background: rgba(245, 197, 24, .08); color: var(--text); }
.dropdown-item.is-danger { color: #ff7b7b; }
.notif-panel { width: 340px; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-2); }
.notif-head strong { display: block; font-family: var(--font-display); }
.notif-head small { color: var(--muted); font-size: 12px; }
.notif-head .badge { border: 1px solid #2c4a73; background: #13284a; color: var(--link); }
.notif-list { max-height: 360px; overflow-y: auto; padding: 8px; }
.notif-item { display: grid; gap: 2px; padding: 10px; border-radius: 10px; text-decoration: none; }
.notif-item:hover { background: var(--surface-2); }
.notif-item strong { font-size: 13px; }
.notif-item span { color: var(--link); font-size: 12px; }
.notif-item small { color: var(--dim); font-size: 11px; }
.notif-item.is-unread strong::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.notif-empty { padding: 28px 12px; border-radius: 10px; background: #0d1626; color: var(--muted); font-size: 14px; text-align: center; }

.quicknav { position: relative; display: flex; height: 46px; align-items: center; gap: var(--space-1); overflow-x: auto; border-bottom: 1px solid #1c2a3f; background: var(--quicknav); padding: 0 52px 0 var(--space-6); scrollbar-width: none; }
.quicknav::-webkit-scrollbar { display: none; }
.qn-link { display: inline-flex; flex: none; height: 32px; align-items: center; gap: var(--space-2); border: 1px solid transparent; border-radius: 9px; padding: 0 var(--space-5); color: #91a8c4; font-size: var(--fs-nav); font-weight: 600; text-decoration: none; white-space: nowrap; }
.qn-link .icon { width: 15px; height: 15px; }
.qn-link.is-pill { border-color: #1f3150; background: #101b2e; color: #c5d4e8; }
.qn-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.qn-link.is-active { border-color: var(--gold-border); background: var(--gold-soft); color: var(--gold); }
.qn-sep { width: 1px; height: 24px; flex: none; margin: 0 10px; background: #1e2c41; }
.qn-close { position: absolute; top: 50%; right: 14px; display: grid; width: 28px; height: 28px; place-items: center; transform: translateY(-50%); border: 1px solid #26364d; border-radius: 50%; background: var(--topbar); color: #8292a8; cursor: pointer; }
.qn-close:hover { color: var(--text); }
.hide-quicknav .quicknav { display: none; }

.layout { display: flex; align-items: stretch; }
.sidebar {
  position: sticky; top: var(--header-height); display: flex; width: var(--sidebar-width); height: calc(100vh - var(--header-height)); flex: 0 0 var(--sidebar-width);
  flex-direction: column; border-right: 1px solid #1e2d43; background: var(--sidebar);
}
.hide-quicknav .sidebar { top: 88px; height: calc(100vh - 88px); }
.side-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: var(--space-5) 0 var(--space-2); scrollbar-width: thin; scrollbar-color: #253650 transparent; }
.side-section { padding-bottom: var(--space-3); }
.side-section + .side-section { border-top: 1px solid rgba(141, 162, 188, .12); padding-top: var(--space-4); }
.side-heading { display: flex; align-items: center; gap: var(--space-3); margin: 0; padding: 0 var(--space-6) var(--space-2); color: var(--gold); font: 800 10px/1.4 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.side-heading::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.side-link { display: flex; min-height: 36px; align-items: center; gap: var(--space-4); border-left: 3px solid transparent; padding: 0 var(--space-5) 0 var(--space-6); color: var(--link); font-size: var(--fs-nav); text-decoration: none; }
.side-link > .icon { width: 17px; height: 17px; }
.side-link > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link:hover { background: rgba(255, 255, 255, .045); color: #fff; }
.side-link.is-active { border-left-color: var(--gold); background: rgba(245, 197, 24, .1); color: var(--gold); font-weight: 700; }
.side-link .tag { margin-left: auto; border-radius: 5px; background: #d84545; padding: 1px 6px; color: #fff; font-size: 10px; font-weight: 800; }
.side-link .count-tag { margin-left: auto; min-width: 24px; border-radius: 6px; background: rgba(245, 197, 24, .15); padding: 1px 6px; color: var(--gold); font-size: var(--fs-meta); font-weight: 700; text-align: center; }
.side-link .live-pulse { margin-left: auto; }
.side-link .live-pulse + .count-tag { margin-left: var(--space-3); }
.count-tag.count-live { background: var(--red-soft); color: #ff9b9b; }
.side-bottom { padding: 12px 16px 16px; border-top: 1px solid rgba(141, 162, 188, .12); }
.side-logout { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 12px; border: 1px solid #263953; border-radius: 12px; background: transparent; padding: 0 16px; color: var(--link); cursor: pointer; font-size: 15px; }
.side-logout:hover { border-color: rgba(240, 82, 82, .5); color: #ff9b9b; }
.side-backdrop { display: none; }

.main { min-width: 0; flex: 1; }
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px 20px 40px; }
.page-narrow { max-width: 760px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; }
.page-head p { margin-top: 6px; color: var(--link); }
.loading-block { display: grid; place-items: center; min-height: 40vh; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid #253650; border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, #121e33, #1a2a43, #121e33); background-size: 200% 100%; animation: shimmer 1.2s ease infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice { margin-bottom: 18px; padding: 12px 16px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.notice-red { border-color: rgba(240, 82, 82, .45); background: var(--red-soft); color: #ffb4b4; }
.notice-gold { border-color: var(--gold-border); background: var(--gold-soft); color: #f7e3a1; }

.card { min-width: 0; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(170deg, #111d32, #0d1729); }
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 18px; }
.card-head p { color: var(--muted); font-size: 13px; }
.card-head-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border: 1px solid var(--gold-border); border-radius: 12px; background: rgba(245, 197, 24, .08); color: var(--gold); }
.card-title { display: flex; align-items: center; gap: 14px; }
.card-body { padding: 22px 24px 24px; }
.stack { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.pill-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-tab { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; border: 1px solid var(--border-2); border-radius: 10px; background: transparent; padding: 0 14px; color: var(--link); cursor: pointer; font-size: 13px; font-weight: 700; text-decoration: none; }
.pill-tab:hover { border-color: #3a5378; color: var(--text); }
.pill-tab.is-active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.pill-tab .count { min-width: 20px; border-radius: 99px; background: rgba(255, 255, 255, .08); padding: 0 6px; font-size: 11px; text-align: center; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; border: 1px dashed #2b4161; border-radius: 18px; color: var(--muted); text-align: center; }
.empty-icon { display: grid; width: 64px; height: 64px; margin-bottom: 8px; place-items: center; border: 1px solid #2b4161; border-radius: 50%; background: #16243a; color: var(--link); }
.empty strong { color: var(--text); font-family: var(--font-display); font-size: 17px; }
.empty .btn { margin-top: 12px; }

/* ---------------- Payments ---------------- */
.pay-card { width: min(100%, 700px); margin: 26px auto 0; }
.mpesa-mark { display: inline-flex; align-items: center; gap: 2px; color: #2fb54a; font: 900 26px/1 var(--font-display); letter-spacing: .02em; }
.mpesa-mark i { display: inline-grid; width: 16px; height: 26px; place-items: center; margin: 0 2px; border-radius: 4px; background: #e8eef7; color: #d6262f; font-size: 10px; font-style: normal; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-amount { min-height: 40px; border: 1px solid var(--border-2); border-radius: 10px; background: #0e1829; padding: 0 16px; color: var(--link); cursor: pointer; font-weight: 700; }
.quick-amount:hover { border-color: #3a5378; color: var(--text); }
.quick-amount.is-active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.summary-rows { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #0b1424; font-size: 14px; }
.summary-rows div { display: flex; justify-content: space-between; gap: 12px; color: var(--link); }
.summary-rows div strong { color: var(--text); }
.summary-rows .total { padding-top: 8px; border-top: 1px solid var(--border); }
.summary-rows .total strong { color: var(--gold); }
.pay-status { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--gold-border); border-radius: 12px; background: var(--gold-soft); }
.pay-status.is-success { border-color: rgba(34, 197, 94, .4); background: var(--green-soft); }
.pay-status.is-failed { border-color: rgba(240, 82, 82, .45); background: var(--red-soft); }
.pay-status strong { display: block; }
.pay-status small { color: var(--link); }
.method-tabs { width: min(100%, 700px); margin: 26px auto 0; }
.method-tabs + .pay-card, .method-tabs + .pay-card[hidden] + .pay-card { margin-top: 14px; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.coin-chip { display: flex; min-width: 0; align-items: center; gap: 10px; border: 1px solid var(--border-2); border-radius: 10px; background: #0e1829; padding: 8px 10px; color: var(--link); cursor: pointer; text-align: left; }
.coin-chip:hover { border-color: #3a5378; color: var(--text); }
.coin-chip.is-active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.coin-chip > span:last-child { display: grid; min-width: 0; }
.coin-chip strong { font-size: 13px; }
.coin-chip small { overflow: hidden; color: var(--dim); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.coin-avatar { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text); font-weight: 800; font-size: 13px; }
.coin-more { grid-column: 1 / -1; }
.crypto-pay { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: start; }
.crypto-qr { display: grid; aspect-ratio: 1; place-items: center; border-radius: 12px; background: #fff; padding: 8px; color: #0b1120; text-align: center; }
.crypto-qr svg { display: block; width: 100%; height: auto; }
.copy-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; background: #0b1424; padding: 10px 12px; }
.copy-row > div { display: grid; min-width: 0; flex: 1; gap: 2px; }
.copy-row small { color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.copy-row code { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.copy-row .btn { flex: none; }
.input-mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.pay-card { scroll-margin-top: calc(var(--header-height) + 12px); }
.chip-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tx-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.tx-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.tx-row:last-child { border-bottom: 0; }
.tx-icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--link); }
.tx-icon.in { background: var(--green-soft); color: var(--green); }
.tx-icon.out { background: var(--red-soft); color: #ff8f8f; }
.tx-main { min-width: 0; flex: 1; }
.tx-main strong { display: block; font-size: 15px; }
.tx-main small { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tx-side { display: grid; justify-items: end; gap: 4px; }
.tx-side strong { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------------- Bets ---------------- */
.bets-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.bets-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--link); font-size: 13px; }
.bets-controls .input { width: auto; min-height: 40px; min-width: 130px; font-size: 14px; }
.bet-card { border: 1px solid var(--border); border-radius: 16px; background: #0e1829; overflow: hidden; }
.bet-card + .bet-card { margin-top: 12px; }
.bet-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.bet-top .mono { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.bet-legs { padding: 6px 18px; }
.bet-leg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #213551; }
.bet-leg:last-child { border-bottom: 0; }
.bet-leg strong { display: block; font-size: 15px; }
.bet-leg small { display: block; color: var(--muted); font-size: 12px; }
.bet-leg .pick { color: var(--gold); font-weight: 700; }
.bet-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 18px; background: #0b1424; }
.bet-foot span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bet-foot strong { font-family: var(--font-display); font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------------- Matches & markets ---------------- */
.live-counter { display: grid; justify-items: end; min-width: 84px; padding: 10px 14px; border: 1px solid var(--border-2); border-radius: 14px; background: #0e1829; line-height: 1.1; }
.live-counter small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.live-counter strong { font-family: var(--font-display); font-size: 26px; }
.refresh-btn { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 12px; background: var(--gold); color: #15191f; cursor: pointer; }
.refresh-btn:hover { background: var(--gold-hover); }
.refresh-btn.is-spinning .icon { animation: spin .8s linear infinite; }
.section-card { border: 1px solid var(--border); border-radius: 20px; background: #0c1626; overflow: hidden; }
.section-card + .section-card { margin-top: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border); }
.section-head h2 { color: var(--gold); font: 800 var(--fs-section)/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.section-head .num { color: var(--link); font-weight: 700; }
.league-group { padding: var(--space-5) var(--space-5) var(--space-1); }
.league-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin: 0 4px var(--space-4); color: var(--muted); font-size: var(--fs-meta); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.league-head span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.league-head .count { min-width: 20px; border-radius: 99px; background: #182840; padding: 0 6px; color: var(--link); letter-spacing: 0; text-align: center; }
.league-head time { color: var(--dim); letter-spacing: 0; text-transform: none; }
.match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-4); }
.match-card { min-width: 0; border: 1px solid #22385a; border-radius: 14px; background: linear-gradient(170deg, #12203a, #0e1a2f); padding: var(--space-4); }
.match-card:hover { border-color: #2f4b75; }
.match-top { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.match-league { display: inline-flex; min-width: 0; flex: 1; align-items: center; gap: var(--space-2); color: var(--text-2); font-size: var(--fs-meta); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.match-league span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-chips { display: flex; flex: none; align-items: center; gap: var(--space-1); margin-left: auto; }
.mini-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; border: 1px solid #2a4064; border-radius: 6px; padding: 0 var(--space-2); color: var(--link); font-size: var(--fs-meta); font-weight: 700; text-decoration: none; white-space: nowrap; background: transparent; cursor: pointer; }
.mini-chip:hover { border-color: #3d5a86; color: var(--text); }
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid #1d3150; text-decoration: none; }
.match-teams strong { overflow: hidden; font-size: var(--fs-team); text-overflow: ellipsis; white-space: nowrap; }
.match-teams strong:last-child { text-align: right; }
.vs { display: grid; height: 20px; min-width: 26px; place-items: center; border: 1px solid rgba(245, 197, 24, .4); border-radius: 6px; color: var(--gold); font-size: var(--fs-meta); font-weight: 800; }
.score { color: #ff8c8c; font-family: var(--font-display); font-size: 16px; font-weight: 800; white-space: nowrap; }
.match-clock { margin: 8px 2px 0; color: var(--muted); font-size: var(--fs-small); }
.odds-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-4); }
.odds-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.odd-btn {
  position: relative; display: grid; min-height: 44px; align-content: center; justify-items: center; gap: 1px;
  border: 1px solid #22385a; border-radius: 10px; background: #142339; color: var(--text); cursor: pointer; padding: var(--space-1);
}
.odd-btn small { color: var(--link); font-size: var(--fs-meta); font-weight: 700; text-align: center; }
.odd-btn strong { color: var(--text); font: 800 var(--fs-odds)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.odd-btn:hover:not(:disabled) { border-color: #3d5a86; background: #182a44; }
.odd-btn.is-selected { border-color: var(--gold); background: linear-gradient(180deg, rgba(245, 197, 24, .18), rgba(245, 197, 24, .05)); }
.odd-btn.is-selected small, .odd-btn.is-selected strong { color: var(--gold); }
.odd-btn:disabled { cursor: not-allowed; opacity: .45; }
.odd-btn .boost { position: absolute; top: 4px; right: 6px; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.odd-btn.is-gold strong { color: var(--gold); }

.event-hero { padding: 20px 24px 22px; }
.event-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 12px; }
.team { display: grid; justify-items: center; gap: 10px; text-align: center; }
.team-badge { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #2b4161; border-radius: 50%; background: #16243a; font: 800 18px/1 var(--font-display); }
.team strong { font-size: 16px; }
.event-center { display: grid; justify-items: center; gap: 4px; text-align: center; }
.event-center small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.event-center strong { color: var(--green); font: 800 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.event-center strong.is-live { color: #ff8c8c; }
.market-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.market-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 1px solid var(--border-2); border-radius: 99px; background: #101b2e; padding: 0 16px; color: var(--link); cursor: pointer; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.market-tab .count { color: var(--muted); }
.market-tab.is-active { border-color: var(--gold); background: var(--gold); color: #15191f; }
.market-tab.is-active .count { color: #3d3307; }
.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.market-card { border: 1px solid #22385a; border-radius: 14px; background: #13223a; overflow: hidden; }
.market-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #22385a; }
.market-card-head h3 { color: #a8c4e0; font: 800 14px/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.market-card-head .mini-chip { cursor: default; }
.market-odds { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; padding: 12px; }
.market-odds .odd-btn strong { color: var(--gold); }

/* ---------------- Profile ---------------- */
.profile-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.profile-id { display: flex; align-items: center; gap: 18px; }
.profile-avatar { position: relative; display: grid; width: 64px; height: 64px; flex: none; place-items: center; border-radius: 14px; background: linear-gradient(160deg, #f8d23a, #e3ad0b); color: #2b2205; font: 800 26px/1 var(--font-display); }
.profile-avatar::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border: 3px solid #101b2e; border-radius: 50%; background: var(--green); }
.profile-id h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 22px; }
.profile-id p { color: var(--muted); font-size: 13px; }
.profile-balance { display: flex; align-items: center; gap: 22px; }
.profile-balance > div { display: grid; justify-items: end; }
.profile-balance small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.profile-balance strong { color: var(--green); font: 800 28px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.profile-balance .divider { width: 1px; height: 44px; background: var(--border-2); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: #0b1424; }
.setting-row > div { display: flex; align-items: center; gap: 14px; }
.setting-row strong { display: block; font-family: var(--font-display); }
.setting-row small { color: var(--muted); }
.action-tile { display: flex; align-items: center; gap: 18px; min-height: 104px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(170deg, #111d32, #0d1729); text-decoration: none; }
.action-tile:hover { border-color: #2f4b75; }
.action-tile .tile-icon { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 12px; }
.action-tile .tile-icon.green { background: rgba(34, 197, 94, .14); color: var(--green); }
.action-tile .tile-icon.gold { background: rgba(245, 197, 24, .14); color: var(--gold); }
.action-tile strong { display: block; font-family: var(--font-display); font-size: 19px; }
.action-tile small { color: var(--link); font-size: 14px; }
.action-tile .chev { margin-left: auto; color: var(--dim); }
.stat-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: #0e1829; }
.stat-tile .tile-icon { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 10px; background: rgba(245, 197, 24, .1); color: var(--gold); }
.stat-tile small { display: block; color: var(--muted); font-size: 12px; }
.stat-tile strong { font-family: var(--font-display); font-size: 17px; }
.signout-wide { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(240, 82, 82, .4); border-radius: 14px; background: rgba(127, 29, 29, .25); color: #ff8f8f; cursor: pointer; font-weight: 700; }
.signout-wide:hover { background: rgba(127, 29, 29, .4); }
.detail-list { display: grid; gap: 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.detail-list div:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); }
.detail-list strong { overflow-wrap: anywhere; text-align: right; }

/* ---------------- How it works ---------------- */
.hiw-intro { max-width: 720px; margin: 0 auto 30px; color: var(--link); text-align: center; }
.hiw-intro h1 { margin-bottom: 12px; color: var(--text); font-size: clamp(28px, 4vw, 38px); }
.hiw-title { margin: 6px 0 26px; font-size: 28px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.step { border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(170deg, #132341, #0f1c34); overflow: hidden; }
.step button { display: flex; width: 100%; align-items: center; gap: 18px; padding: 24px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.step-icon { display: grid; width: 56px; height: 56px; flex: none; place-items: center; border-radius: 14px; background: var(--gold); color: #15191f; }
.step small { display: block; color: var(--gold); font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.step strong { display: block; font-family: var(--font-display); font-size: 20px; }
.step .chev { margin-left: auto; color: var(--gold); transition: transform .15s ease; }
.step.is-open .chev { transform: rotate(180deg); }
.step-body { padding: 22px 24px; border-top: 1px solid var(--border); background: #0b1424; color: var(--link); }
.cta-card { margin-top: 56px; padding: 44px 24px; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(170deg, #111d32, #0d1729); text-align: center; }
.cta-card h2 { font-size: 30px; }
.cta-card p { max-width: 560px; margin: 12px auto 24px; color: var(--link); }

/* Help Center (FAQs). Change --help-accent to restyle the page's highlights. */
.help { --help-accent: var(--gold); --help-accent-soft: var(--gold-soft); --help-accent-ink: #15191f; max-width: 880px; margin: 0 auto; }
.help h1, .help h2, .help h3 { color: var(--text); }
.help-hero { padding: 12px 0 8px; text-align: center; }
.help-eyebrow { display: inline-block; margin-bottom: 12px; color: var(--help-accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.help-hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; }
.help-hero > p { max-width: 520px; margin: 12px auto 26px; color: var(--muted); font-size: 16px; }
.help-search { position: relative; display: flex; max-width: 640px; min-height: 58px; align-items: center; gap: 12px; margin: 0 auto; border: 1px solid var(--border-2); border-radius: 16px; background: var(--input); padding: 0 8px 0 18px; color: var(--muted); }
.help-search:focus-within { border-color: var(--help-accent); box-shadow: 0 0 0 3px var(--help-accent-soft); }
.help-search input { min-width: 0; flex: 1; height: 56px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.help-search input::placeholder { color: var(--muted); }
.help-search input::-webkit-search-cancel-button { display: none; }
.help-search-clear { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.help-search-clear:hover { background: var(--surface-2); color: var(--text); }
.help-search-clear[hidden] { display: none; }
.help-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 8px; }
.help-chip { min-height: 44px; border: 1px solid var(--border-2); border-radius: 999px; background: transparent; padding: 0 16px; color: var(--link); cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
.help-chip:hover { border-color: #3a5378; color: var(--text); }
.help-chip.is-active { border-color: var(--help-accent); background: var(--help-accent); color: var(--help-accent-ink); }
.help-results { min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.help-section { margin-top: 34px; }
.help-section[hidden] { display: none; }
.help-section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.help-num { flex: none; min-width: 34px; color: var(--help-accent); font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 28px; }
.help-section-text { min-width: 0; flex: 1; }
.help-section-text h2 { font-size: 21px; line-height: 28px; }
.help-section-text p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.help-qcount { flex: none; border: 1px solid var(--border-2); border-radius: 999px; padding: 4px 10px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.help-accordion { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.help-item + .help-item { border-top: 1px solid var(--border); }
.help-item[hidden] { display: none; }
.help-item h3 { font-family: var(--font); font-size: inherit; letter-spacing: 0; }
.help-q { display: flex; width: 100%; min-height: 60px; align-items: center; gap: 16px; border: 0; background: transparent; padding: 14px 18px 14px 20px; color: var(--text); cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; text-align: left; }
.help-q:hover { background: rgba(255, 255, 255, .025); }
.help-q:focus-visible { outline: 2px solid var(--help-accent); outline-offset: -2px; }
.help-q > span:first-child { min-width: 0; flex: 1; }
.help-toggle { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border: 1px solid var(--border-2); border-radius: 50%; color: var(--muted); }
.help-item.is-open .help-toggle { border-color: var(--help-accent); background: var(--help-accent); color: var(--help-accent-ink); }
.help-a { padding: 0 20px 18px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.help-a > p { max-width: 68ch; margin: 0; }
.help-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; color: var(--muted); font-size: 14px; }
.help-feedback > span { margin-right: 4px; }
.help-feedback button { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; border: 1px solid var(--border-2); border-radius: 10px; background: transparent; padding: 0 14px; color: var(--link); cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
.help-feedback button:hover { border-color: var(--help-accent); color: var(--text); }
.help-feedback-done { display: flex; min-height: 44px; align-items: center; gap: 8px; margin: 0; color: var(--text-2); }
.help-feedback-done .icon { flex: none; color: var(--green); }
.help-feedback-done a { color: var(--help-accent); }
.help-empty { margin-top: 30px; border: 1px dashed var(--border-2); border-radius: 16px; padding: 36px 20px; text-align: center; }
.help-empty[hidden] { display: none; }
.help-empty-icon { display: inline-grid; width: 56px; height: 56px; place-items: center; margin-bottom: 12px; border: 1px solid var(--border-2); border-radius: 50%; color: var(--muted); }
.help-empty h2 { font-size: 20px; }
.help-empty p { max-width: 440px; margin: 8px auto 18px; color: var(--muted); }
.help-rg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-top: 48px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 24px; }
.help-age { display: grid; width: 60px; height: 60px; place-items: center; border: 2px solid var(--help-accent); border-radius: 50%; color: var(--help-accent); font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.help-rg-text h2 { font-size: 21px; }
.help-rg-text p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.help-rg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.help .btn { min-height: 44px; }
.help-btn-outline { border: 1px solid var(--border-2); background: transparent; color: var(--text); }
.help-btn-outline:hover { border-color: var(--help-accent); color: var(--text); }
.help-contact { margin-top: 48px; scroll-margin-top: calc(var(--header-height) + 16px); }
.help-contact h2 { font-size: 26px; text-align: center; outline: none; }
.help-contact-lead { margin: 8px 0 22px; color: var(--muted); text-align: center; }
.help-contact .notice { margin-bottom: 16px; }
.help-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.help-contact-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 20px; }
.help-contact-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 14px; border: 1px solid var(--border-2); border-radius: 12px; color: var(--help-accent); }
.help-contact-card h3 { font-size: 17px; }
.help-contact-card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.help-contact-time { display: flex; align-items: center; gap: 6px; }
.help-contact-time .icon { flex: none; }
.help-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.help-contact-actions .btn { flex: 1; }
.help-contact-off { display: flex; min-height: 44px; align-items: center; color: var(--muted); font-size: 13px; font-style: italic; }
.help-footer { margin-top: 48px; border-top: 1px solid var(--border); padding: 18px 0 8px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.help-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.help-footer-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--link); text-decoration: none; }
.help-footer-links a:hover { color: var(--text); text-decoration: underline; }
.help-footer p { max-width: 620px; margin: 6px auto 0; }
@media (max-width: 760px) {
  .help-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .help-rg { grid-template-columns: auto minmax(0, 1fr); }
  .help-rg-actions { grid-column: 1 / -1; }
  .help-rg-actions .btn { flex: 1; }
}
@media (max-width: 480px) {
  .help-section-head { flex-wrap: wrap; }
  .help-qcount { margin-left: 48px; }
  .help-q { padding-left: 16px; padding-right: 14px; }
  .help-a { padding: 0 16px 16px; }
  .help-rg { padding: 20px 16px; }
  .help-chips { justify-content: flex-start; }
}

/* ---------------- Bet slip drawer, modal, toasts ---------------- */
.slip {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; display: flex; width: min(400px, 100vw); flex-direction: column;
  border-left: 1px solid var(--border-2); background: #0e1829; box-shadow: var(--shadow); transform: translateX(105%); transition: transform .2s ease;
}
.slip.is-open { transform: none; }
.slip-backdrop { position: fixed; inset: 0; z-index: 85; background: rgba(2, 6, 14, .6); }
.slip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border-2); }
.slip-head h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.slip-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.slip-item { position: relative; padding: 12px 40px 12px 14px; border: 1px solid var(--border-2); border-radius: 12px; background: #101d32; }
.slip-item + .slip-item { margin-top: 10px; }
.slip-item strong { display: block; font-size: 14px; }
.slip-item small { display: block; color: var(--muted); font-size: 12px; }
.slip-item .pick { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--gold); font-weight: 700; }
.slip-remove { position: absolute; top: 8px; right: 8px; display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.slip-remove:hover { background: var(--red-soft); color: #ff9b9b; }
.slip-foot { display: grid; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--border-2); background: #0b1424; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--border-2); border-left: 4px solid var(--green); border-radius: 12px; background: #101b2e; box-shadow: var(--shadow); font-size: 14px; animation: rise .18s ease; }
.toast.is-error { border-left-color: var(--red); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
dialog.modal { width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border-2); border-radius: 18px; background: #101b2e; color: var(--text); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(2, 6, 14, .7); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border-2); }
.modal-head h2 { font-size: 19px; }
.modal-body { display: grid; gap: 14px; padding: 20px; color: var(--link); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border-2); }

/* ---------------- Header: visitor vs. player controls ---------------- */
.guest-actions, .member-actions { display: flex; align-items: center; gap: 10px; }
.guest-actions .btn { min-height: 38px; padding: 0 var(--space-6); font-size: var(--fs-nav); font-weight: 700; }
.side-link-small { min-height: 30px; font-size: var(--fs-small); }

/* ---------------- Home: hero carousel ---------------- */
.hero { position: relative; min-height: 170px; margin-bottom: var(--space-6); overflow: hidden; border: 1px solid var(--gold-border); border-radius: 18px;
  background: radial-gradient(600px 260px at 88% 10%, rgba(245, 197, 24, .28), transparent 65%), linear-gradient(120deg, #13233f 0%, #0d1a30 55%, #1b1a10 100%); }
.hero-track { position: relative; min-height: 170px; }
.hero-slide { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: var(--space-2); padding: 20px 24px 34px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero-slide small { color: var(--gold); font-size: var(--fs-meta); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero-slide h1 { max-width: 520px; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.05; }
.hero-slide p { max-width: 460px; margin-bottom: var(--space-1); color: var(--link); font-size: var(--fs-team); }
.hero-slide .btn { min-height: 36px; padding: 0 16px; font-size: var(--fs-team); }
.hero-dots { position: absolute; bottom: 12px; left: 24px; display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .28); cursor: pointer; transition: width .2s ease; }
.hero-dots button[aria-current="true"] { width: 26px; background: var(--gold); }

/* ---------------- Home: league filter ---------------- */
.league-bar { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); }
.chip-scroll { display: flex; min-width: 0; flex: 1; gap: var(--space-2); overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.league-chip { display: inline-flex; flex: none; min-height: 32px; align-items: center; gap: var(--space-2); border: 1px solid var(--border-2); border-radius: 99px; background: #101b2e; padding: 0 var(--space-5); color: var(--link); cursor: pointer; font-size: var(--fs-small); font-weight: 700; white-space: nowrap; }
.league-chip:hover { border-color: #3a5378; color: var(--text); }
.league-chip.is-active { border-color: var(--gold); background: var(--gold); color: #15191f; }
.league-chip.is-active .dot { background: #15191f !important; }
.chip-arrow { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border: 1px solid var(--border-2); border-radius: 50%; background: #101b2e; color: var(--link); cursor: pointer; }
.chip-arrow:hover { border-color: var(--gold-border); color: var(--gold); }

/* ---------------- Home: panels ---------------- */
.panel-title { display: flex; align-items: center; gap: var(--space-3); }
.panel-title .icon { display: grid; width: 28px; height: 28px; padding: 5px; border: 1px solid var(--gold-border); border-radius: 50%; color: var(--gold); }
.panel-count { display: grid; min-width: 24px; height: 24px; place-items: center; border: 1px solid var(--gold-border); border-radius: 50%; color: var(--gold); font-size: var(--fs-meta); font-weight: 800; }
.panel-boosted { border-color: rgba(245, 197, 24, .3); background: linear-gradient(170deg, #17202c, #0c1626 40%); }
.panel-grid { padding: var(--space-5); margin: 0; }
.panel-empty { padding: var(--space-6); }
.upcoming-head h2 { color: var(--text); }
.panel-date { margin-top: 2px; color: var(--muted); font-size: var(--fs-meta); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fixtures-box { display: grid; justify-items: end; min-width: 72px; padding: var(--space-2) var(--space-5); border: 1px solid var(--border-2); border-radius: 10px; background: #0e1829; line-height: 1.1; }
.fixtures-box small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.fixtures-box strong { font: 800 20px/1.1 var(--font-display); }
.match-card.is-boosted { border-color: rgba(245, 197, 24, .55); background: linear-gradient(170deg, #1a2333, #0f1a2d); }
.boost-tag { display: inline-flex; margin-bottom: var(--space-3); border: 1px solid var(--gold-border); border-radius: 99px; background: rgba(245, 197, 24, .1); padding: 1px 8px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* ---------------- Live ---------------- */
.live-tag { display: inline-flex; align-items: center; border-radius: 5px; background: var(--red); padding: 1px 6px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.live-minute { border-color: rgba(240, 82, 82, .5); color: #ff9b9b; font-variant-numeric: tabular-nums; }
.match-card.is-live { border-color: rgba(240, 82, 82, .35); }
.live-pulse { position: relative; display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--red); animation: live-pulse 1.6s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 82, 82, .6); } 70% { box-shadow: 0 0 0 7px rgba(240, 82, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 82, 82, 0); } }
.odd-btn.is-locked { cursor: not-allowed; opacity: .8; }
.odd-btn.is-locked strong { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font: 700 var(--fs-meta)/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; }
.ticker-item.is-live i { border-radius: 4px; background: var(--red); padding: 0 4px; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; }
.ticker-item .ticker-score { color: #ff9b9b; font-size: 12px; }

/* ---------------- Betslip button & badges ---------------- */
.bets-count.is-bumped, .slip-bar-count.is-bumped { animation: badge-bump .45s ease; }
@keyframes badge-bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.slip.is-flash { animation: slip-flash 1.2s ease; }
@keyframes slip-flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 28px rgba(245, 197, 24, .35); } }

/* ---------------- Bet slip ---------------- */
/* The list takes the free height and scrolls; stake and summary stay pinned below it. */
.slip-head { gap: var(--space-3); padding: var(--space-4) var(--space-6); }
.slip-head h2 { display: flex; align-items: center; gap: var(--space-3); color: var(--text); font-size: var(--fs-team); letter-spacing: .14em; text-transform: uppercase; }
.slip-clear { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: var(--fs-small); font-weight: 700; text-decoration: underline; }
.slip-clear:hover { color: #ff9b9b; }
.slip-head .slip-close { width: 32px; height: 32px; }
.slip-body { min-height: 0; padding: var(--space-4) var(--space-5); }
.slip-list { display: grid; gap: var(--space-2); }
.slip-item { display: grid; gap: 2px; padding: var(--space-3) 30px var(--space-3) var(--space-4); border-radius: 10px; }
.slip-item + .slip-item { margin-top: 0; }
.slip-item-title { overflow: hidden; font-size: var(--fs-team); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.slip-item-pick { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); color: var(--muted); font-size: var(--fs-meta); }
.slip-item-pick span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip-item-pick b { flex: none; color: var(--gold); font: 800 var(--fs-odds)/1 var(--font-display); }
.slip-remove { top: 6px; right: 4px; width: 24px; height: 24px; transform: none; }
.slip-empty { display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding: 28px 8px; color: var(--muted); font-size: var(--fs-team); text-align: center; }
.slip-notice { display: flex; gap: var(--space-4); margin-bottom: var(--space-4); padding: var(--space-4); border: 1px solid rgba(34, 197, 94, .4); border-radius: 10px; background: var(--green-soft); }
.slip-notice .icon { color: var(--green); }
.slip-notice strong { display: block; font-size: var(--fs-team); }
.slip-notice span { display: block; color: var(--link); font-size: var(--fs-small); }
.slip-notice a { color: var(--gold); font-size: var(--fs-small); font-weight: 700; }
.slip-foot { gap: var(--space-3); padding: var(--space-4) var(--space-5) var(--space-5); }
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border: 1px solid var(--border-2); border-radius: 10px; background: #0e1829; }
.mode-toggle button { min-height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--link); cursor: pointer; font-size: var(--fs-small); font-weight: 800; }
.mode-toggle button[aria-pressed="true"] { background: var(--gold); color: #15191f; }
.stake-group { display: grid; gap: var(--space-1); }
.stake-box { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--border-2); border-radius: 10px; background: var(--input); }
.stake-box:focus-within { border-color: var(--gold-border); }
.stake-box label { padding: 0 var(--space-5); color: var(--muted); font-size: var(--fs-small); font-weight: 700; }
.stake-box input { min-width: 0; flex: 1; min-height: 38px; border: 0; border-left: 1px solid var(--border-2); background: transparent; padding: 0 var(--space-5); font: 800 17px/1 var(--font-display); text-align: center; outline: none; }
.stake-hint { color: #ff9b9b; font-size: var(--fs-meta); font-weight: 700; }
.stake-hint:empty { display: none; }
.stake-adds { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-1); }
.stake-adds button { min-height: 28px; border: 1px solid var(--border-2); border-radius: 8px; background: #0e1829; color: var(--link); cursor: pointer; font-size: var(--fs-meta); font-weight: 700; }
.stake-adds button:hover { border-color: var(--gold-border); color: var(--gold); }
.win-box { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid rgba(34, 197, 94, .35); border-radius: 12px; background: linear-gradient(170deg, rgba(34, 197, 94, .08), rgba(34, 197, 94, .02)); }
.win-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.win-top small { color: var(--muted); font-size: var(--fs-meta); font-weight: 700; }
.win-amount { color: var(--green); font: 800 var(--fs-amount)/1.1 var(--font-display); white-space: nowrap; }
.win-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px var(--space-5); margin: 0; padding-top: var(--space-2); border-top: 1px solid rgba(34, 197, 94, .2); }
.win-grid div { display: flex; min-width: 0; justify-content: space-between; gap: var(--space-2); font-size: var(--fs-meta); }
.win-grid dt { color: var(--muted); white-space: nowrap; }
.win-grid dd { margin: 0; overflow: hidden; color: var(--text-2); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.win-note { color: var(--muted); font-size: var(--fs-meta); }
.slip-message { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.slip-message:empty { display: none; }
.slip-message .is-error { color: #ff9b9b; font-size: var(--fs-small); font-weight: 700; }
.slip-message .btn { min-height: 30px; padding: 0 12px; font-size: var(--fs-small); }
.place-bet { min-height: 40px; font-family: var(--font-display); font-size: var(--fs-body); letter-spacing: .04em; }
.slip-bar { position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 80; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-5); border: 1px solid var(--gold-border); border-radius: 14px; background: #111d31; box-shadow: var(--shadow); color: var(--text); cursor: pointer; text-align: left; }
.slip-bar-count { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 9px; background: var(--gold); color: #15191f; font: 800 15px/1 var(--font-display); }
.slip-bar-text, .slip-bar-win { display: grid; line-height: 1.2; }
.slip-bar-text { min-width: 0; flex: 1; font-size: var(--fs-team); }
.slip-bar small { color: var(--muted); font-size: var(--fs-meta); font-weight: 700; }
.slip-bar-win { justify-items: end; }
.slip-bar-win strong { color: var(--green); font-family: var(--font-display); font-size: var(--fs-body); }
body.has-slip-bar .toast-stack { bottom: 80px; }
body.has-slip-bar .main { padding-bottom: 68px; }
body.has-slip-bar .site-footer { padding-bottom: 72px; }

/* Desktop: the slip is the sticky right-hand column, fitted to the viewport. */
@media (min-width: 1200px) {
  .slip {
    position: sticky; top: var(--header-height); z-index: 1; width: var(--slip-width); height: calc(100vh - var(--header-height)); max-height: calc(100vh - var(--header-height)); flex: 0 0 var(--slip-width);
    border-left: 1px solid #1e2d43; box-shadow: none; transform: none; transition: none;
  }
  .hide-quicknav .slip { top: 88px; height: calc(100vh - 88px); max-height: calc(100vh - 88px); }
  .slip-close, .slip-bar, .slip-backdrop { display: none !important; }
  body.has-slip-bar .toast-stack { bottom: 20px; }
  body.has-slip-bar .main { padding-bottom: 0; }
}
/* Tablet and phone: the column is hidden; the slip slides up from the bottom. */
@media (max-width: 1199px) {
  .slip {
    top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-width: 560px; height: auto; max-height: 88dvh; margin: 0 auto;
    border: 1px solid var(--border-2); border-bottom: 0; border-radius: 18px 18px 0 0; transform: translateY(105%);
  }
  .slip.is-open { transform: none; }
  .slip-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; transform: translateX(-50%); border-radius: 99px; background: #2b4161; }
  .slip-head { position: relative; padding-top: var(--space-5); }
}

/* ---------------- Search results (shared with the homepage) ---------------- */
.site-search-panel {
  position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 90; max-height: 420px; overflow-y: auto;
  padding: 8px; border: 1px solid var(--border-2, #263953); border-radius: 14px; background: #101a2d; box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
.site-search-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: #f4f7fb; text-decoration: none; }
.site-search-row:hover, .site-search-row.is-active { background: #172740; }
.site-search-icon { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 8px; background: #1b2b45; color: #f5c518; }
.site-search-meta { display: grid; min-width: 0; flex: 1; gap: 2px; }
.site-search-name { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.site-search-league { overflow: hidden; color: #8fa8c6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.site-search-live { color: #22c55e; font-size: 10px; letter-spacing: .06em; }
.site-search-row mark { border-radius: 3px; background: rgba(245, 197, 24, .22); color: inherit; }
.site-search-odds { flex: none; min-width: 48px; border: 1px solid rgba(245, 197, 24, .45); border-radius: 8px; background: rgba(245, 197, 24, .1); padding: 4px 8px; color: #f5c518; font-size: 13px; font-weight: 800; text-align: center; }
.site-search-state { display: grid; gap: 4px; padding: 20px 14px; color: #8fa8c6; font-size: 13px; text-align: center; }
.site-search-state strong { color: #f4f7fb; font-size: 14px; }

/* ---------------- Responsive ---------------- */
/* Agent referrals */
.ref-share { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.ref-code { display: grid; gap: 4px; padding-right: 24px; border-right: 1px solid var(--border); }
.ref-code small { color: var(--muted); font-size: 12px; }
.ref-code strong { color: var(--gold); font-family: var(--font-display); font-size: 30px; letter-spacing: .04em; }
.ref-link { display: grid; min-width: 0; gap: 8px; }
.ref-link .input { font-size: 14px; }
.ref-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-whatsapp { border-color: rgba(37, 211, 102, .45); color: #5fe397; }
.btn-whatsapp:hover { border-color: #25d366; color: #8af0b5; }
.ref-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.ref-range { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)) auto minmax(0, 1fr); gap: 14px; align-items: end; }
.ref-range-result { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; color: var(--muted); font-size: 14px; }
.ref-range-result strong { color: var(--text); font-family: var(--font-display); font-size: 17px; }
@media (max-width: 700px) {
  .ref-share { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ref-code { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--border); }
  .ref-range { grid-template-columns: 1fr 1fr; }
  .ref-range .btn { grid-column: 1 / -1; }
  .ref-range-result { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 1100px) {
  .match-grid, .market-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .topbar { gap: 10px; height: 60px; padding: 0 12px; }
  .topbar .logo img { height: 34px; }
  .topbar-search { position: absolute; top: 100%; right: 0; left: 0; z-index: 60; display: none; max-width: none; padding: 10px 12px; border-bottom: 1px solid #1a2a40; background: var(--topbar); }
  .shell.search-open .topbar-search { display: block; }
  .hamburger, .search-toggle { display: grid; }
  .top-btn { min-height: 38px; padding: 0 10px; border-radius: 10px; }
  .wallet-chip { min-height: 38px; padding: 0 9px; border-radius: 10px; }
  .wallet-chip strong { font-size: 13px; }
  .icon-btn { width: 38px; height: 38px; }
  .top-btn .label { display: none; }
  .quicknav { height: 46px; padding-left: 10px; }
  .qn-link { height: 32px; padding: 0 10px; font-size: 13px; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; height: 100vh; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .hide-quicknav .sidebar { top: 0; height: 100vh; }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .side-backdrop { position: fixed; inset: 0; z-index: 95; display: block; background: rgba(2, 6, 14, .65); }
  .page { padding: 20px 16px 48px; }
  .grid-2, .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .bets-btn .bets-word { display: none; }
  .wallet-chip small { display: none; }
  .topbar { gap: 6px; padding: 0 8px; }
  .topbar .logo img { height: 28px; }
  .topbar-actions { gap: 4px; }
  .top-btn { padding: 0 9px; }
  #account-toggle > span:last-child { display: none; }
  .wallet-chip { padding: 0 7px; }
  .wallet-chip strong { font-size: 12px; }
  .icon-btn { width: 34px; }
  .grid-3 { grid-template-columns: 1fr; }
  .card-head, .card-body, .card-pad { padding-right: 16px; padding-left: 16px; }
  .auth-card { padding: 24px 20px; }
  .legal-card { padding: 24px 20px; }
  .phone-row { grid-template-columns: 112px minmax(0, 1fr); }
  .password-rules { grid-template-columns: 1fr; }
  .profile-balance { width: 100%; justify-content: space-between; }
  .profile-balance > div { justify-items: start; }
  .profile-balance .divider { display: none; }
  .bet-foot { grid-template-columns: 1fr 1fr; }
  .event-teams { gap: 8px; }
  .team-badge { width: 46px; height: 46px; font-size: 15px; }
  .event-center strong { font-size: 18px; }
  .ticker-track { animation-duration: 40s; }
  .guest-actions { gap: 6px; }
  .member-actions { gap: 4px; }
  .guest-actions .btn { min-height: 36px; padding: 0 10px; font-size: 13px; }
  .hero, .hero-track { min-height: 190px; }
  .hero-slide { padding: 22px 20px 38px; }
  .hero-dots { left: 20px; }
  .chip-arrow { display: none; }
  .upcoming-head { align-items: flex-start; }
  .crypto-pay { grid-template-columns: 1fr; }
  .crypto-qr { width: min(220px, 100%); margin: 0 auto; }
  .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; }
}
