/* ============================================================
   Profitland Punting — design system
   Dark sportsbook meets Sunday league banter.
   ============================================================ */

:root {
  --bg: #0D0D0D;
  --surface: #1A1A1A;
  --surface-raised: #242424;
  --surface-inset: #141414;
  --accent: #00E676;
  --accent-dark: #00C853;
  --accent-dim: rgba(0, 230, 118, 0.13);
  --gold: #FFD600;
  --danger: #FF1744;
  --warning: #FF9100;
  --info: #40C4FF;
  --text: #F0F0F0;
  --text-secondary: #9E9E9E;
  --text-tertiary: #616161;
  --border: #333333;
  --border-accent: rgba(0, 230, 118, 0.33);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.75);
  --bottomnav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
}

button { cursor: pointer; font: inherit; border: none; border-radius: var(--radius-sm); background: none; color: inherit; }
button:disabled { cursor: not-allowed; opacity: 0.55; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hidden { display: none !important; }
.accent { color: var(--accent); }
.muted { color: var(--text-secondary); }
.error { color: var(--danger); font-size: 0.85rem; }

.money, .odds, .tabular { font-variant-numeric: tabular-nums; }

h1, h2, h3 { line-height: 1.2; }

.label-caps {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

input, select, textarea {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder { color: var(--text-tertiary); }

/* number input spinners off */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- Buttons ---------- */
.btn-cta {
  background: var(--accent);
  color: #00351a;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 48px;
  font-size: 0.95rem;
  transition: filter 0.15s, transform 0.1s;
}
.btn-cta:hover:not(:disabled) { filter: brightness(1.1); }
.btn-cta:active:not(:disabled) { transform: scale(0.985); }
.btn-cta.confirming { background: var(--gold); color: #3a2f00; }

.btn-secondary {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 0.55rem 1rem;
}
.btn-secondary:hover { border-color: var(--border-accent); }

.btn-danger { background: var(--danger); color: #fff; font-weight: 700; padding: 0.7rem 1.1rem; border-radius: var(--radius-sm); }
.btn-danger:hover:not(:disabled) { filter: brightness(1.12); }

.btn-icon { background: none; color: var(--text-secondary); font-size: 1.05rem; padding: 0.2rem 0.4rem; }
.btn-icon:hover { color: var(--text); }

.btn-link { color: var(--accent); font-weight: 600; padding: 0.2rem 0; }

/* ============================================================
   Login gate
   ============================================================ */
.login-screen {
  position: fixed; inset: 0; z-index: 100;
  overflow-y: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(0, 230, 118, 0.08), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(0, 200, 83, 0.07), transparent 55%),
    linear-gradient(160deg, #0A1A0F 0%, #0D0D0D 55%);
}
.login-screen::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 119px, rgba(0, 230, 118, 0.05) 120px, transparent 121px),
    linear-gradient(rgba(0, 230, 118, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 56px;
  pointer-events: none;
}
.login-inner {
  position: relative;
  width: min(92vw, 400px);
  text-align: center;
  animation: rise 0.45s ease both;
}
.login-crest { margin-bottom: 0.9rem; filter: drop-shadow(0 6px 24px rgba(0, 230, 118, 0.25)); }
.login-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 0.95;
  display: flex; flex-direction: column;
}
.login-title span { color: var(--accent); }
.login-sub { color: var(--text-secondary); margin: 0.9rem 0 1.6rem; }

#login-form { display: flex; flex-direction: column; gap: 0.7rem; }
#login-name { height: 48px; border-radius: 12px; text-align: center; font-size: 1.05rem; }

.login-error { color: var(--danger); margin-top: 0.7rem; font-size: 0.88rem; }
.login-error.shake { animation: shake 0.4s; }

.login-fine { color: var(--text-tertiary); font-size: 0.8rem; margin-top: 1.4rem; line-height: 1.6; }
.login-fine strong { color: var(--text-secondary); }

.recent-punters { margin-top: 1.6rem; }
.recent-label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 0.55rem; }
.recent-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.recent-chips button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.recent-chips button:hover { border-color: var(--border-accent); color: var(--text); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ============================================================
   App shell
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 1rem;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo-lockup { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.08em; }
.tagline { font-size: 9.5px; color: var(--text-tertiary); letter-spacing: 0.04em; white-space: nowrap; }

.nav-pills { display: flex; gap: 0.25rem; }
.nav-pill {
  position: relative;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-pill:hover { color: var(--text); }
.nav-pill.active { background: var(--surface-raised); color: var(--accent); }

.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px;
  border-radius: 999px;
  background: var(--accent);
  color: #00351a;
  font-size: 10.5px;
  font-weight: 800;
  padding: 0 4px;
  vertical-align: 2px;
  margin-left: 2px;
}

.user-cluster { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.nav-name {
  font-weight: 600; font-size: 0.9rem; color: var(--text-secondary);
  max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.balance-chip {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.balance-chip:hover { border-color: var(--border-accent); }
.balance-chip.bump { animation: bump 0.5s; }
.balance-chip.flash-up { border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 214, 0, 0.35); }
.balance-chip.flash-down { border-color: var(--danger); box-shadow: 0 0 14px rgba(255, 23, 68, 0.3); }
.balance-chip.low { border-color: var(--warning); color: var(--warning); }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

main {
  padding: 1.25rem 1rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.tab-panel { animation: panel-in 0.2s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 1.5rem 0 0.8rem;
}

/* ---------- Bottom nav (mobile) ---------- */
.bottomnav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.bn-item {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-tertiary);
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 0;
}
.bn-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bn-item.active { color: var(--accent); }
.bn-item .nav-badge { position: absolute; top: 6px; right: calc(50% - 22px); margin: 0; }
.bn-wrench { position: absolute; top: 5px; right: calc(50% - 20px); font-size: 10px; color: var(--gold); }

/* ============================================================
   Matches — hero fixture
   ============================================================ */
.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(0, 230, 118, 0.1), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.hero-carousel {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-bottom: 1.25rem;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.hero-carousel .hero-card {
  flex: 0 0 min(100%, 480px);
  scroll-snap-align: center;
  margin-bottom: 0;
}
.hero-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 1rem; }

.hero-teams { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; flex: 1; max-width: 200px; }
.hero-team-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-vs { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 700; }

.crest-badge {
  width: 52px; height: 58px;
  display: flex; align-items: center; justify-content: center;
}
.crest-badge img { width: 100%; height: 100%; }
.opp-badge {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.hero-countdown-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.hero-countdown {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  margin: 0.15rem 0;
}
.hero-countdown.warn { color: var(--warning); }
.hero-countdown.danger { color: var(--danger); }
.hero-kickoff { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.1rem; }

.hero-odds { display: flex; gap: 0.6rem; justify-content: center; max-width: 460px; margin: 0 auto 0.9rem; }
.hero-odds .odds-btn { flex: 1; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0.4rem; }
.hero-odds .odds-btn .o { font-size: 1.15rem; }

/* ---------- Activity ticker ---------- */
.ticker {
  display: flex; align-items: center;
  height: 34px;
  overflow: hidden;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.ticker-track { display: inline-flex; gap: 2.5rem; padding-left: 1rem; animation: marquee 30s linear infinite; }
.ticker-track strong { color: var(--text); font-weight: 600; }
.ticker-track .accent { font-weight: 700; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Match cards
   ============================================================ */
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
}

.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; }
.mc-close { font-size: 0.8rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.mc-close.warn { color: var(--warning); font-weight: 600; }
.mc-close.danger { color: var(--danger); font-weight: 700; }

.mc-title { font-size: 1.05rem; font-weight: 700; }
.mc-title .opp { font-weight: 800; }
.mc-sub { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.15rem; }

.mc-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.mc-mini-odds { font-size: 0.85rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.mc-mini-odds b { color: var(--text); font-weight: 700; }
.mc-expand { color: var(--accent); font-weight: 700; font-size: 0.85rem; padding: 0.35rem 0.6rem; border-radius: var(--radius-sm); background: var(--accent-dim); }

.mc-markets { margin-top: 0.5rem; animation: accordion 0.25s ease both; overflow: hidden; }
@keyframes accordion { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.market { margin-top: 1rem; }
.market h4 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 0.5rem;
}

/* ---------- Odds buttons ---------- */
.odds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.odds-grid.scorers { grid-template-columns: repeat(3, 1fr); }
.odds-grid.scores { grid-template-columns: repeat(4, 1fr); }

.odds-btn {
  position: relative;
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 44px;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.odds-btn .sel { font-size: 0.8rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odds-btn .pos { font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; }
.odds-btn .o { color: var(--accent); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.odds-btn:hover:not(:disabled) { border-color: var(--border-accent); }
.odds-btn.selected {
  border: 2px solid var(--accent);
  background: var(--accent-dim);
  transform: scale(1.02);
}
.odds-btn.selected::after {
  content: "✓";
  position: absolute; top: 2px; right: 5px;
  font-size: 10px; font-weight: 800; color: var(--accent);
}
.odds-btn.hot { border-color: rgba(255, 214, 0, 0.5); }
.odds-btn.hot::before {
  content: "HOT";
  position: absolute; top: -7px; left: 8px;
  background: var(--gold); color: #3a2f00;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.06em;
  padding: 1px 5px; border-radius: 4px;
}
.odds-btn:disabled { opacity: 0.45; }

.market-search { position: relative; margin-bottom: 0.5rem; }
.market-search input { padding-left: 2.1rem; font-size: 0.9rem; height: 38px; }
.market-search::before {
  content: ""; position: absolute; left: 0.7rem; top: 50%; width: 13px; height: 13px;
  transform: translateY(-62%);
  border: 1.6px solid var(--text-tertiary); border-radius: 50%;
}
.market-search::after {
  content: ""; position: absolute; left: calc(0.7rem + 11px); top: calc(50% + 3px); width: 6px; height: 1.6px;
  background: var(--text-tertiary); transform: rotate(45deg);
}

/* ---------- Status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.open { background: var(--accent-dim); color: var(--accent); }
.pill.closed { background: #2c2c2c; color: var(--text-secondary); }
.pill.pending { background: #2c2c2c; color: var(--text-secondary); }
.pill.won { background: var(--accent); color: #00351a; }
.pill.lost { background: var(--danger); color: #fff; }
.pill.voided { background: #555; color: #ddd; }
.pill.cancelled { background: #3a3a3a; color: var(--text-secondary); }
.pill.gold { background: rgba(255, 214, 0, 0.16); color: var(--gold); }

/* ---------- Skeletons / empty states ---------- */
.skeleton-card {
  height: 150px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 40%, var(--surface-raised) 50%, var(--surface) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  margin-bottom: 0.9rem;
}
.skeleton-card.short { height: 90px; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -80% 0; } }

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
}
.empty-state .art { margin-bottom: 1rem; opacity: 0.8; }
.empty-state h3 { color: var(--text); font-size: 1.1rem; margin-bottom: 0.4rem; }
.empty-state p { font-size: 0.9rem; max-width: 360px; margin: 0 auto 1rem; }

/* ============================================================
   Betslip
   ============================================================ */
.betslip {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 45;
  width: min(94vw, 360px);
  max-height: 72vh;
  overflow-y: auto;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 230, 118, 0.09);
  animation: slip-in 0.22s ease both;
}
@keyframes slip-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.betslip-handle { display: none; }

.betslip-head { display: flex; align-items: center; gap: 0.5rem; }
.betslip-head strong { font-family: var(--font-display); letter-spacing: 0.08em; font-size: 1rem; }
.betslip-count {
  background: var(--accent); color: #00351a;
  font-size: 11px; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.betslip-head .btn-icon { margin-left: auto; }

.betslip-fixture { font-size: 0.85rem; font-weight: 600; }
.betslip-market { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-top: -0.45rem; }

.betslip-selection-row {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
}
.betslip-selection { font-weight: 700; }
.betslip-odds { font-size: 0.85rem; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

.betslip-stake-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: -0.4rem; }
.stake-field { position: relative; }
.stake-prefix {
  position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-weight: 700;
}
.stake-field input { padding-left: 1.9rem; font-weight: 700; font-size: 1.1rem; height: 46px; font-variant-numeric: tabular-nums; }
.stake-field input.invalid { border-color: var(--danger); }

.quick-stakes { display: flex; gap: 0.4rem; }
.quick-stakes button {
  flex: 1;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.quick-stakes button:hover { border-color: var(--border-accent); color: var(--text); }
.quick-stakes button.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.betslip-calc { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.88rem; }
.calc-row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.calc-row span:last-child { font-weight: 700; }
.calc-row.profit span:last-child { color: var(--accent); }
.calc-row.muted { color: var(--text-secondary); font-size: 0.8rem; }
.calc-row.muted span:last-child { font-weight: 500; }

/* mobile peek bar */
.betslip-peek {
  position: fixed; left: 0.75rem; right: 0.75rem; z-index: 44;
  bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px) + 0.6rem);
  display: none;
  align-items: center; gap: 0.6rem;
  background: var(--accent);
  color: #00351a;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.25);
}
.bp-dot { width: 8px; height: 8px; border-radius: 50%; background: #00351a; }
.bp-chevron { margin-left: auto; font-size: 0.7rem; }

/* ============================================================
   My Bets
   ============================================================ */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.summary-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.stat-tile .stat-label { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.2rem; }
.stat-tile .stat-value { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-value.pos { color: var(--accent); }
.stat-value.neg { color: var(--danger); }

.segmented {
  display: inline-flex;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 1rem;
  gap: 2px;
}
.segmented button {
  border-radius: 999px;
  padding: 0.38rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.segmented button.active { background: var(--accent); color: #00351a; }

.bet-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-tertiary);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 0.85rem 1.05rem;
  margin-bottom: 0.7rem;
}
.bet-card.won { border-left-color: var(--accent); }
.bet-card.lost { border-left-color: var(--danger); }
.bet-card.voided { border-left-color: #555; }
.bet-card.cancelled { border-left-color: #555; }
.bet-cancel { margin-top: 0.65rem; width: 100%; font-size: 0.82rem; padding: 0.45rem 0.75rem; }

.bc-top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.45rem; }
.bc-pl { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bc-pl.pos { color: var(--accent); }
.bc-pl.neg { color: var(--danger); }
.bc-pl.zero { color: var(--text-secondary); }

.bc-fixture { font-weight: 700; font-size: 0.95rem; display: flex; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.bc-final { color: var(--text-secondary); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.bc-market { color: var(--text-secondary); font-size: 0.87rem; margin-top: 0.1rem; }
.bc-market b { color: var(--text); }
.bc-money { font-size: 0.87rem; margin-top: 0.45rem; font-variant-numeric: tabular-nums; }
.bc-meta { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 0.3rem; }

/* ============================================================
   Results
   ============================================================ */
.month-heading {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-secondary);
  margin: 1.4rem 0 0.7rem;
}
.month-heading:first-child { margin-top: 0; }

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.result-card:hover { border-color: var(--border-accent); }
.rc-meta { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.7rem; }
.rc-line { display: flex; align-items: baseline; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.rc-team { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.rc-score { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.rc-score.win { color: var(--accent); }
.rc-score.loss { color: var(--danger); }
.rc-scorers { font-size: 0.87rem; color: var(--text-secondary); margin-top: 0.55rem; }
.rc-agg { font-size: 0.82rem; color: var(--text-tertiary); margin-top: 0.55rem; }
.rc-agg b { color: var(--text-secondary); }
.rc-yourbets { margin-top: 0.7rem; }
.rc-yourbets-list { margin-top: 0.6rem; text-align: left; }

/* ============================================================
   Leaderboard
   ============================================================ */
.lb-hero {
  background:
    radial-gradient(500px 200px at 20% -40%, rgba(0, 230, 118, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.lb-hero h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.lb-hero h2 .crown { color: var(--gold); }
.lb-hero p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; font-variant-numeric: tabular-nums; }

.lb-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.lb-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.lb-table th, .lb-table td { padding: 0.65rem 0.75rem; text-align: left; font-size: 0.88rem; white-space: nowrap; }
.lb-table th { background: var(--surface-raised); color: var(--text-secondary); text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.07em; }
.lb-table td { border-top: 1px solid #222; font-variant-numeric: tabular-nums; }
.lb-table .num { text-align: right; }
.lb-table tr.you td { background: var(--surface-raised); font-weight: 700; }
.lb-table tr.rank-1 td:first-child { border-left: 4px solid var(--gold); }
.lb-table tr.rank-2 td:first-child { border-left: 4px solid #C0C0C0; }
.lb-table tr.rank-3 td:first-child { border-left: 4px solid #CD7F32; }
.lb-roi.pos, .lb-bal { color: var(--accent); }
.lb-roi.neg { color: var(--danger); }

.lb-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1rem; }
.lb-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.lb-side-card .stat-label { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.25rem; }
.lb-side-card .stat-body { font-size: 0.9rem; font-weight: 600; }

/* ============================================================
   Profile / wallet
   ============================================================ */
.profile-header { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; flex-wrap: wrap; }
.profile-header h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; letter-spacing: 0.03em; }
.profile-header .since { color: var(--text-tertiary); font-size: 0.82rem; width: 100%; margin-top: -0.5rem; }

.wallet-card {
  background:
    radial-gradient(420px 180px at 85% -30%, rgba(0, 230, 118, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.wallet-card .balance-big { font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }
.wallet-card .wallet-sub { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.2rem; font-variant-numeric: tabular-nums; }

.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 1.3rem; }
.profile-stats .stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
}

.txn-day { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin: 1rem 0 0.4rem; }
.txn-row {
  display: flex; justify-content: space-between; align-items: center; gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}
.txn-row .txn-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txn-row .txn-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.txn-amt.credit { color: var(--accent); }
.txn-amt.debit { color: var(--danger); }
.txn-amt.neutral { color: var(--text-secondary); }

.logout-row { margin-top: 1.6rem; text-align: center; }

/* ============================================================
   Admin
   ============================================================ */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.1rem;
}
.admin-card > h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.admin-step {
  background: var(--accent); color: #00351a;
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  font-family: var(--font-body);
}

.form-row { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.8rem; }
.form-row label { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); }
.inline { display: flex; gap: 0.5rem; }
.inline > * { flex: 1; min-width: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem; }

.adm-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 0.9rem; margin: 1rem 0 0.6rem;
}
.adm-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.adm-section-toolbar .btn-secondary {
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: 0;
}

.scorer-odds-list { max-height: 260px; overflow-y: auto; background: var(--surface-inset); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; }
.scorer-odds-row { display: flex; gap: 0.5rem; align-items: center; padding: 0.18rem 0; }
.scorer-odds-row span { flex: 1; font-size: 0.85rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorer-odds-row .sor-pos { flex: 0 0 34px; color: var(--text-tertiary); font-size: 0.72rem; text-transform: uppercase; }
.scorer-odds-row input { width: 84px; flex: none; padding: 0.35rem 0.5rem; font-size: 0.9rem; }

.score-odds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.score-odds-grid .scorer-odds-row { background: var(--surface-inset); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.3rem 0.5rem; }
.score-odds-grid .scorer-odds-row span { font-variant-numeric: tabular-nums; }
.score-odds-grid input { width: 64px; }

.checks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.3rem;
  max-height: 220px; overflow-y: auto;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  padding: 0.6rem; border-radius: var(--radius-sm);
}
.checks label { display: flex; gap: 0.45rem; align-items: center; font-size: 0.85rem; cursor: pointer; }
.checks input { width: auto; accent-color: var(--accent); }

.user-admin-list {
  max-height: 280px; overflow-y: auto;
  background: var(--surface-inset); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.5rem 0.7rem;
}
.user-admin-row {
  display: flex; gap: 0.6rem; align-items: center; padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.user-admin-row:last-child { border-bottom: none; }
.uar-name { flex: 1; font-size: 0.9rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uar-balance { font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.uar-bets { font-size: 0.78rem; min-width: 52px; text-align: right; }
.uar-remove { flex: none; padding: 0.35rem 0.65rem; font-size: 0.78rem; }

.adm-actions { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.adm-actions .btn-cta, .adm-actions .btn-danger { flex: 1; min-width: 180px; }

.settle-preview {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  margin-top: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.settle-preview b { color: var(--accent); }

/* ============================================================
   Modals
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  animation: fade-in 0.15s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modal);
  width: min(94vw, 480px);
  max-height: 84vh;
  overflow-y: auto;
  padding: 1.25rem 1.3rem;
  position: relative;
  animation: rise 0.2s ease both;
}
.modal h3 { font-family: var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; font-size: 1.05rem; margin-bottom: 0.8rem; }
.modal .modal-close { position: absolute; top: 0.7rem; right: 0.8rem; }
.modal-actions { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.modal-actions > * { flex: 1; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px) + 1.4rem);
  z-index: 90;
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  max-width: min(92vw, 440px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.25s ease both;
}
.toast.bad { border-color: var(--danger); border-left-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============================================================
   Confetti
   ============================================================ */
#confetti-root { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -12px;
  width: 9px; height: 13px;
  border-radius: 2px;
  animation: confetti-fall 1.6s ease-in forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(105vh) rotate(660deg); opacity: 0.6; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 639px) {
  .nav-pills { display: none; }
  .nav-name { display: none; }
  .tagline { display: none; }
  .bottomnav { display: flex; }
  main { padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px) + 2rem); }

  .odds-grid.scorers { grid-template-columns: repeat(2, 1fr); }
  .odds-grid.scores { grid-template-columns: repeat(3, 1fr); }
  .summary-grid { gap: 0.5rem; }
  .stat-tile .stat-value { font-size: 1.05rem; }
  .lb-side { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .score-odds-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-countdown { font-size: 1.7rem; }

  /* Betslip becomes a bottom sheet */
  .betslip {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.1rem);
    animation: sheet-up 0.25s ease both;
  }
  .betslip-handle { display: flex; justify-content: center; padding: 0 0 0.3rem; cursor: grab; touch-action: none; }
  .betslip-handle span { width: 42px; height: 4px; border-radius: 999px; background: var(--border); }
  .betslip-peek:not(.hidden) { display: flex; }
}
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0.5; } to { transform: none; opacity: 1; } }

@media (min-width: 640px) {
  .betslip-peek { display: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
}
