:root {
  --bg: #141414;
  --panel: #1b1b1b;
  --card: #202020;
  --line: #2c2c2c;
  --text: #f5f5f5;
  --muted: #ababab;
  --gold: #1bd093;
  --gold-2: #f0d52e;
  --ink: #f5f5f5;
  --teal: #1bd093;
  --danger: #e62c2c;
  --ok: #1bd093;
  --hero: #013424;
  --header: #013424;
}

:root[data-theme="light"] {
  --bg: #f3eee6;
  --panel: #fffdf8;
  --card: #ffffff;
  --line: #e4d8c4;
  --text: #1b242c;
  --muted: #66727c;
  --hero: linear-gradient(120deg, #1d2a36, #3a2a14);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 18px 14px 90px;
  overflow: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 800;
}
.logo.compact { margin: 0; }
.mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #97f600;
  color: #0e1910;
  font-weight: 900;
}
.word { letter-spacing: 0.02em; font-weight: 800; }
.word span { color: #97f600; }

.side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.side-grid a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-label {
  margin: 16px 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 8px;
  border-radius: 8px;
  color: var(--text);
}
.side-row:hover, .side-row.active { background: var(--card); }
.side-row em {
  font-style: normal;
  background: #7a1d2a;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
}
.side-sport {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  font-size: 13px;
  color: var(--muted);
}
.side-sport b { color: var(--text); font-weight: 600; }

.main { min-width: 0; padding-bottom: 78px; }
.head-sticky {
  position: sticky;
  top: 0;
  z-index: 9;
  background: #091a0d;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  padding: 0 12px;
  background: #091a0d;
  color: #f6f9f6;
  max-width: 1024px;
  margin: 0 auto;
}
.topbar .word { color: #fff; font-size: 25px; font-weight: 800; letter-spacing: 0; }
.topbar .word span { color: #dfbb00; }
.topbar .icon-btn { border: 0; background: transparent; color: #f6f9f6; width: 36px; height: 36px; }
.menu-only { margin-left: 0; }
.subnav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: auto;
  height: 48px;
  padding: 0 8px;
  background: #141414;
  border-bottom: 0;
  color: #f5f5f5;
  max-width: 1024px;
  margin: 0 auto;
}
.subnav a {
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #f5f5f5;
  border-bottom: 0;
  border-radius: 999px;
}
.subnav a.on { background: #f5f5f5; color: #111; }
.sub-search { margin-left: auto; border: 0; background: transparent; width: 32px; height: 32px; font-size: 16px; cursor: pointer; }
.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
}
.auth-links { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pill-join, .pill-login {
  height: 32px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 800; background: transparent;
}
.pill-join { border: 1px solid #dfbb00; color: #dfbb00; }
.pill-login { border: 1px solid rgba(151,246,0,.6); color: #f6f9f6; }
.auth-links a, .ghost, .primary {
  border-radius: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.auth-links .join, .primary, .btn-green {
  background: #97f600;
  color: #0e1910;
  border: 0;
  font-weight: 800;
}
.topbar .btn-ghost { color: #f6f9f6; border-color: transparent; background: transparent; }
.btn-green, .btn-ghost {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}
.btn-ghost { color: var(--text); }
.bal { font-weight: 800; font-size: 13px; align-self: center; white-space: nowrap; }
.ghost { background: transparent; color: var(--text); }

.hero {
  margin: 14px;
  padding: 28px 22px;
  border-radius: 18px;
  background: var(--hero);
  color: #f7f1e6;
}
.hero h1 { margin: 0; font-size: 32px; line-height: 1.15; }
.hero h1 em { color: var(--gold-2); font-style: normal; }
.hero p { margin: 8px 0 0; color: #d7cbb6; font-size: 14px; }
.pills { display: flex; gap: 12px; margin-top: 10px; color: #cbbfa8; font-size: 12px; }

.card {
  margin: 0 14px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  background: var(--card);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}
.tabs button.on {
  background: #97f600;
  color: #0e1910;
  font-weight: 700;
}

label.field {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 6px;
}
.input, select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 12px;
}
.phone-row { display: flex; gap: 8px; }
.phone-row .cc {
  width: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pass-wrap { position: relative; }
.pass-wrap button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; }
.wide {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.wide.gold { background: #97f600; color: #0e1910; }
.wide:disabled { opacity: 0.55; cursor: default; }
.error { color: var(--danger); font-size: 13px; min-height: 18px; }
.ok { color: var(--ok); }
.linkish { color: var(--gold); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 14px 18px;
}
.stats div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.stats b { display: block; color: var(--gold); }
.stats span { font-size: 11px; color: var(--muted); }
.legal { text-align: center; color: var(--muted); font-size: 11px; padding: 8px 16px 20px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 16px; }
.sec-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.sec-head a, .sec-head span { color: #535e55; font-size: 13px; font-weight: 700; }
.welcome-banner {
  display: flex; align-items: center; gap: 10px; margin: 12px 16px;
  padding: 16px; border-radius: 16px; background: #091a0d; color: #f6f9f6;
}
.welcome-banner span { font-size: 11px; letter-spacing: .08em; font-weight: 800; color: #97f600; }
.welcome-banner b { flex: 1; font-size: 16px; }
.welcome-banner em { font-style: normal; font-weight: 800; color: #97f600; }

.banners { display: grid; gap: 10px; margin: 14px; }
.banner {
  border-radius: 16px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.banner strong { display: block; font-size: 18px; }
.league-head {
  margin: 16px 14px 8px;
  font-size: 15px;
  font-weight: 800;
}
.filters { display: flex; gap: 8px; overflow: auto; padding: 0 14px 10px; }
.filters button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.filters button.on { background: #97f600; color: #0e1910; border-color: transparent; }

.match {
  margin: 0 14px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.match .meta { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; }
.teams { margin: 8px 0; font-weight: 700; }
.odds { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.odds button {
  border: 2px solid #f0d52e;
  background: #111;
  color: #f0d52e;
  border-radius: 10px;
  padding: 8px;
  min-height: 44px;
  cursor: pointer;
}
.odds button span { display: block; font-size: 11px; color: #f0d52e; }
.odds button.on, .markets button.on, .odd-btn.on {
  background: #f0d52e;
  color: #111;
  border-color: #f0d52e;
}
.odds button.on span, .markets button.on span, .odd-btn.on span { color: #111; }
.odd-btn.odd-up { box-shadow: inset 0 0 0 2px #22c55e; }
.odd-btn.odd-down { box-shadow: inset 0 0 0 2px #ef4444; }
.odds button b, .markets button b { font-size: 15px; font-weight: 800; }

.slip {
  position: sticky;
  bottom: 70px;
  margin: 12px 14px;
  background: #1b140c;
  color: #f7f1e6;
  border-radius: 14px;
  padding: 12px;
}
.account-box { margin: 14px; }
.row-k {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.bottom {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #111;
  border-top: 1px solid #f0d52e;
  grid-template-columns: repeat(5, 1fr);
  height: 64px;
  z-index: 12;
}
.bottom a, .bottom button {
  height: 64px;
  text-align: center;
  padding: 8px 2px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.bottom a.on, .bottom button.on { color: #f0d52e; }
.bottom button { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nav-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #97f600;
  color: #0e1910;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 20;
}

.empty { margin: 30px 16px; color: var(--muted); text-align: center; }
.game-stage {
  margin: 20px 14px;
  min-height: 240px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 20%, #2a1c0c, #0b1218 70%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.game-stage b { font-size: 42px; color: var(--gold); }

.topnav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow: auto;
  margin: 0 8px;
}
.topnav a {
  white-space: nowrap;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 8px;
}
.topnav a.on { color: var(--gold); background: var(--card); }
.wallet-chip {
  background: #1b140c;
  color: var(--gold-2);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.side-muted { color: var(--muted); font-size: 12px; padding: 0 8px; }
.market-label { margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.markets.wrap { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.markets button, .odds button {
  font-size: 12px;
  min-height: 52px;
}
.markets button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 4px;
  cursor: pointer;
}
.markets button span { display: block; font-size: 11px; color: var(--muted); }
.markets button.more-m,
.more-m {
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  min-height: 52px;
  cursor: pointer;
}
.more-markets { margin-top: 10px; }
.more-markets .match { margin: 0 0 8px; }
.market-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.market-head .teams { margin: 0; }
.market-cancel {
  border: 1px solid #ef5b5b;
  background: transparent;
  color: #ef5b5b;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.market-card { background: var(--card); }

#betslipDock[hidden] { display: none !important; }
#betslipDock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 28; }
.slip-bar {
  width: min(560px, calc(100% - 24px));
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: #22c55e;
  color: #fff;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.slip-count {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #121212;
  color: #fff;
}
.slip-bar-title { flex: 1; text-align: left; }
.slip-scrim {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.45);
  z-index: 28;
}
.slip-sheet {
  position: relative;
  z-index: 29;
  width: min(560px, 100%);
  margin: 0 auto;
  max-height: min(78vh, 640px);
  overflow: auto;
  background: #fff;
  color: #18181b;
  border-radius: 18px 18px 0 0;
  padding: 12px 14px 16px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.18);
}
.slip-empty { padding: 16px; }
.slip-empty h3 { margin: 0 0 6px; }
.slip-empty p { margin: 0; color: var(--muted); font-size: 13px; }
.slip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slip-head-btn {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 0;
}
.slip-picks { display: grid; gap: 8px; margin: 8px 0; }
.slip-pick {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  background: #f4f4f5;
  color: #18181b;
  border-radius: 12px;
  padding: 10px;
}
.slip-x {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #18181b;
  font-weight: 800;
  cursor: pointer;
}
.slip-pick-main { min-width: 0; }
.slip-pick-main strong, .slip-pick-main span { display: block; }
.slip-pick-main span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.slip-odd { color: var(--gold-2); }
.stake-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 14px; }
.stake-chips button {
  border: 2px solid #000;
  background: #f0d52e;
  color: #000;
  border-radius: 14px;
  min-height: 56px;
  padding: 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
}
.stake-chips button.on { background: #000; color: #f0d52e; border-color: #000; }
.stake-label { margin: 16px 0 0; font-weight: 800; font-size: 16px; color: #111; }
.stake-row span {
  color: #000;
  background: #f0d52e;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
}
.stake-input, #stakeInput {
  background: #f0d52e;
  color: #000;
  border: 2px solid #000;
  min-height: 56px;
  font-size: 20px;
  font-weight: 800;
  width: 100%;
  max-width: none;
}
.payout-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  font-size: 16px;
  font-weight: 700;
}
.payout-line b { font-size: 24px; color: #111; }
.slip-share-one {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #333;
  font-weight: 800;
  cursor: pointer;
}
.slip-loading { margin: 8px 0 4px; font-size: 18px; font-weight: 800; }
.slip-sheet .slip-odd { color: #111; font-size: 18px; }
#placeBet { min-height: 58px; font-size: 18px; margin-top: 4px; }
.pay-sheet {
  margin: 18px 12px 36px;
  padding: 22px 18px 28px;
}
.pay-sheet h2 { margin: 10px 0 0; font-size: 26px; }
.pay-sheet .hint { margin: 10px 0 6px; line-height: 1.5; }
.pay-sheet label.field { margin: 18px 0 8px; }
.pay-sheet .input { min-height: 52px; font-size: 16px; margin: 0; }
.pay-sheet .net-grid { gap: 10px; margin: 14px 0 10px; }
.pay-sheet .net-grid button { padding: 12px 14px; }
.pay-sheet .wide { margin-top: 20px; min-height: 50px; }
.pay-sheet .tabs { margin-bottom: 10px; }
body.has-slip .main { padding-bottom: 84px; }
.live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.live-stats div {
  background: var(--card);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}
.live-stats span { display: block; color: var(--muted); font-size: 11px; }
.live-dot { color: #ef4444; font-weight: 800; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 14px; }
.game-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 12px;
  min-height: 110px;
}
.game-tile em { font-style: normal; background: #7a1d2a; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 999px; }
.promo-card { margin: 12px 14px; }
.stake-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.stake-row input { max-width: 140px; margin: 0; }
.reels { font-size: 36px; letter-spacing: 8px; margin: 12px 0; }
.mine-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 280px; margin: 12px auto; }
.mine-grid button { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.mine-grid button.safe { background: #143d32; color: var(--ok); }
.mine-grid button.boom { background: #4a1a1a; color: var(--danger); }
.notice { margin: 8px 14px; color: var(--ok); }
.pay-wait { text-align: center; padding: 28px 18px; }
.pay-wait .notice, .pay-wait .error { margin: 14px 0; font-size: 16px; font-weight: 800; }
.pay-spin {
  width: 36px; height: 36px; margin: 0 auto 16px;
  border: 3px solid #334; border-top-color: var(--ok); border-radius: 50%;
  animation: payspin .8s linear infinite;
}
@keyframes payspin { to { transform: rotate(360deg); } }
.wd-live { text-align: center; padding: 36px 18px 28px; }
.wd-orbit {
  width: 132px; height: 132px; margin: 0 auto 18px; position: relative;
  display: grid; place-items: center;
}
.wd-orbit span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 5px solid #222; border-top-color: #f0d52e; border-right-color: #97f600;
  animation: payspin .7s linear infinite;
}
.wd-orbit b { position: relative; font-size: 15px; white-space: nowrap; animation: wdfloat 1.1s ease-in-out infinite; }
.wd-tick {
  width: 132px; height: 132px; margin: 0 auto 16px; border-radius: 50%;
  background: #97f600; color: #0e1910; font-size: 78px; line-height: 1; font-weight: 800;
  display: grid; place-items: center; animation: wdpop .5s cubic-bezier(.2, 1.5, .4, 1) both;
}
.wd-live h2 { margin: 8px 0 4px; font-size: 28px; }
.wd-phone { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .03em; }
@keyframes wdpop { 0% { transform: scale(.15); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes wdfloat { 0%, 100% { transform: translateY(6px); opacity: .7; } 50% { transform: translateY(-8px); opacity: 1; } }
.code-box { margin-top: 8px; }
.code-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
}
.code-line b { letter-spacing: 0.12em; color: var(--gold-2); }
.net-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.net-grid button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
}
.net-grid button.on { border-color: var(--gold); color: var(--gold); }
.wrap-row { flex-wrap: wrap; }
.phone-row { display: flex; gap: 8px; align-items: center; }
.phone-row .cc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  white-space: nowrap;
}
.phone-row .input { flex: 1; margin: 0; }

.av-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 14px 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(120deg, #2a0f14, #1a140c 55%, #0e1a16);
  border: 1px solid #5a2a2a;
  font-weight: 700;
}
.av-bar b { margin-left: auto; color: var(--gold-2); font-size: 22px; }
.av-bar span:last-child { color: var(--gold); font-size: 12px; }
.av-page { padding: 8px 14px 24px; }
.av-hist {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding: 6px 0 10px;
}
.av-hist span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--card);
}
.av-hist .low { color: #ef5b5b; }
.av-hist .mid { color: var(--gold-2); }
.av-hist .high { color: var(--teal); }
.av-sky {
  position: relative;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(215,164,65,.18), transparent 40%),
    linear-gradient(180deg, #17324a 0%, #0b1520 55%, #140c0c 100%);
  border: 1px solid var(--line);
}
.av-sky.is-crash { background: linear-gradient(180deg, #3a1414, #140808); }
.av-sky.is-wait { background: linear-gradient(180deg, #102030, #0b1520); }
.av-clouds {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.08) 0 40px, transparent 41px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,.06) 0 50px, transparent 51px);
  animation: drift 8s linear infinite;
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-40px); }
}
.av-curve { position: absolute; inset: 0; width: 100%; height: 100%; }
.av-plane {
  position: absolute;
  left: 6%;
  bottom: 10%;
  font-size: 28px;
  transform: rotate(-18deg);
  transition: left .12s linear, bottom .12s linear, opacity .2s;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.4));
}
.av-readout {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.av-live { font-size: 12px; letter-spacing: .12em; color: #f3c2c2; }
.av-readout b { display: block; font-size: 54px; color: #fff; line-height: 1; }
.av-readout b.crash { color: #ef4444; }
.av-readout p { margin: 8px 0 0; color: var(--gold-2); }
.av-bets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.av-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.av-panel-h { font-weight: 700; margin-bottom: 8px; }
.av-panel .input { margin: 0 0 8px; }
.av-panel button.cash { background: var(--teal); color: #062018; }
.av-panel button.wait { opacity: .7; }
.av-players {
  margin-top: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
  max-height: 220px;
  overflow: auto;
}
.av-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.av-row:last-child { border: 0; }
.av-row.mine { color: var(--gold-2); }
.av-row b { color: var(--teal); min-width: 64px; text-align: right; }

.load-top {
  z-index: 2;
  border: 1px solid var(--gold);
}
.load-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 8px;
}
.load-head span { color: var(--muted); font-size: 12px; }
.placed-live { margin: 8px 14px 0; }
.placed-h { font-weight: 800; margin: 4px 0 8px; }
.ticket {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0 12px;
}
.placed-live .ticket { margin: 8px 0; }
.ticket.won { border-color: var(--ok); }
.ticket.lost { border-color: var(--danger); }
.ticket.live { border-color: #ef4444; }
.ticket-leg { margin: 8px 0; font-size: 13px; }
.win-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.win-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  background: #f4f4f5;
  border-radius: 10px;
  padding: 10px;
}
.win-box span { display: block; color: var(--muted); font-size: 11px; }
.win-box b { color: #18181b; font-size: 15px; }
.your-ticket {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 8px;
}
.st-won { color: var(--ok); font-weight: 800; }
.st-lost { color: var(--danger); font-weight: 800; }
.st-live, .st-open { color: #ef4444; font-weight: 800; }
.st-void { color: var(--muted); font-weight: 800; }
button.gold-lite {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
.error a { color: var(--gold); }

@media (max-width: 700px) {
  .av-bets { grid-template-columns: 1fr; }
  .av-sky { height: 220px; }
  .av-readout b { font-size: 40px; }
}

@media (max-width: 1100px) {
  .topnav { display: none; }
  .markets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    transform: translateX(-105%);
    transition: transform .2s ease;
    z-index: 30;
  }
  .sidebar.open { transform: none; }
  .bottom { display: grid; }
  #betslipDock { bottom: 62px; }
  body.has-slip .main { padding-bottom: 150px; }
  body.slip-open #betslipDock { bottom: 0; z-index: 40; }
  body.slip-open .bottom { z-index: 12; }
  .stats { grid-template-columns: 1fr 1fr; }
}

.install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 72px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  background: linear-gradient(120deg, #15222d, #1a140c);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.install-bar[hidden] { display: none !important; }
.install-bar > div {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.install-bar b { font-size: .95rem; }
.install-bar span { color: var(--muted); font-size: .78rem; }
.install-link {
  background: linear-gradient(160deg, var(--gold-2), var(--gold));
  color: #1a1206;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
}
@media (min-width: 861px) {
  .install-bar { bottom: 18px; max-width: 520px; left: auto; right: 18px; }
}

.filters .input, .search-bar .input { width: 100%; flex: 1 1 100%; min-height: 48px; font-size: 16px; }
.search-bar { padding: 12px 14px 4px; }
.search-bar .input {
  background: #111;
  color: #fff;
  border: 2px solid #f0d52e;
  border-radius: 12px;
}
.rb-match { padding: 12px 12px 8px; border-bottom: 1px solid #2a2a2a; }
.rb-match-top, .rb-match-row { display: flex; align-items: center; gap: 8px; }
.rb-min {
  min-width: 58px; padding: 6px 8px; border-radius: 8px; background: #111;
  color: #f0d52e; border: 1px solid #f0d52e; font-size: 13px; font-weight: 800; text-align: center;
}
.rb-league { flex: 1; color: #d7d7d7; font-size: 12px; font-weight: 700; }
.rb-more { border: 0; background: transparent; color: #1bd093; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.more-markets { margin-top: 8px; display: grid; gap: 8px; }
.more-markets .market-card { margin: 0; background: #1b1b1b; border: 1px solid #2c2c2c; }
.more-markets .markets { display: flex; flex-wrap: wrap; gap: 6px; }
.more-markets .odd-btn { min-width: 72px; min-height: 44px; border: 2px solid #f0d52e; border-radius: 8px; background: #111; color: #f0d52e; }
.more-markets .odd-btn b { color: #f0d52e; }
.rb-teams { flex: 1; display: grid; gap: 6px; min-width: 0; font-weight: 700; font-size: 14px; }
.rb-teams span { white-space: normal; }
.rb-score { color: #f0d52e; font-size: 14px; min-width: 36px; text-align: center; }
.rb-match .odds { display: grid; grid-template-columns: repeat(3, minmax(44px, 1fr)); gap: 6px; }
.rb-match .odd-btn {
  min-height: 44px; border: 2px solid #f0d52e; border-radius: 8px; background: #111; color: #f0d52e;
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
}
.rb-match .odd-btn b { color: #f0d52e; font-size: 15px; }
.rb-match .odd-btn.on { background: #f0d52e; }
.rb-match .odd-btn.on b, .rb-match .odd-btn.on span { color: #111; }
.event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  margin: 0;
  padding: 10px 12px;
  background: #202020;
  border-bottom: 1px solid var(--line);
}
.event-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.event-teams { display: grid; gap: 3px; margin-top: 4px; font-weight: 750; font-size: 14px; }
.event .odds { grid-template-columns: repeat(3, minmax(52px, 68px)); gap: 4px; }
.event .odds button { min-height: 44px; padding: 4px 2px; border-radius: 6px; background: #111; color: #f0d52e; border: 2px solid #f0d52e; }
.more-link {
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: #16a34a;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  justify-self: end;
}
.more-markets { grid-column: 1 / -1; }

body[data-page="account"] .head-sticky { display: none; }
body[data-page="account"] .main { background: #f3f6f3; }
.acct { max-width: 768px; margin: 0 auto; padding: 0 0 28px; color: #0e1910; }
.acct-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.acct-head h1 { margin: 0; font-size: 20px; font-weight: 800; }
.acct-x {
  width: 40px; height: 40px; border-radius: 999px; background: #e8ede7;
  display: grid; place-items: center; font-size: 16px;
}
.acct-card { margin: 0 16px; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(14,25,16,.06); }
.acct-bal { padding: 16px; text-align: center; }
.acct-bal > p { margin: 0; color: #535e55; font-size: 13px; }
.acct-bal > b { display: block; margin-top: 4px; font-size: 28px; line-height: 1.15; font-weight: 800; white-space: nowrap; }
.acct-phone { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #535e55; font-size: 14px; }
.acct-badge { width: 20px; height: 20px; border-radius: 999px; background: #97f600; color: #0e1910; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.acct-bonus { margin: 8px 0 0; color: #535e55; font-size: 13px; }
.acct-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-actions a, .acct-split a {
  height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
}
.acct-actions .ghost { border: 1px solid #ced7ce; background: #fff; }
.acct-actions .go, .acct-split .go { background: #97f600; color: #0e1910; }
.acct-label { margin: 24px 16px 8px; font-size: 13px; font-weight: 600; color: #535e55; }
.acct-list { margin: 0 16px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(14,25,16,.06); }
.acct-row {
  width: 100%; height: 52px; display: flex; align-items: center; gap: 12px;
  padding: 0 16px; border: 0; border-bottom: 1px solid #ced7ce; background: #fff;
  color: #0e1910; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
}
.acct-row:last-child { border-bottom: 0; }
.acct-row i { width: 8px; height: 8px; border-radius: 999px; background: #97f600; flex: 0 0 auto; }
.acct-row span { flex: 1; min-width: 0; }
.acct-row .chev { font-style: normal; color: #535e55; font-size: 18px; }
.acct-row .tag { font-style: normal; background: #e8ede7; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 800; }
.acct-logout {
  display: flex; width: calc(100% - 32px); margin: 24px 16px 0; height: 52px;
  align-items: center; justify-content: center; border: 0; border-radius: 16px;
  background: #fff; color: #e62c2c; font-weight: 800; cursor: pointer;
  box-shadow: 0 1px 2px rgba(14,25,16,.06);
}
.acct-toast { margin: 12px 16px 0; min-height: 1.2em; text-align: center; color: #535e55; font-size: 13px; }
.acct-guest { padding: 16px; }
.acct-who { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #ced7ce; }
.acct-avatar { width: 48px; height: 48px; border-radius: 999px; background: #97f600; display: grid; place-items: center; font-size: 22px; }
.acct-who h2 { margin: 0; font-size: 18px; font-weight: 800; }
.acct-who p, .acct-note { margin: 2px 0 0; color: #535e55; font-size: 12px; }
.acct-note { margin-top: 14px; font-size: 14px; }
.acct-split { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-split a { border: 1px solid #ced7ce; }
.acct-modal { position: fixed; inset: 0; z-index: 40; background: rgba(243,246,243,.72); display: flex; align-items: flex-end; justify-content: center; }
.acct-sheet { width: min(100%, 420px); background: #fff; border-radius: 16px 16px 0 0; padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.acct-sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.acct-sheet-h h2 { margin: 0; font-size: 16px; font-weight: 800; }
.acct-sheet-h button { border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.acct-sheet .input { margin-bottom: 10px; }
.acct-save { width: 100%; height: 48px; border: 0; border-radius: 12px; background: #97f600; color: #0e1910; font-weight: 800; cursor: pointer; }
@media (min-width: 640px) {
  .acct-modal { align-items: center; }
  .acct-sheet { border-radius: 16px; }
}
.skeleton .sk-line, .skeleton .sk-odds { background: #e4e4e7; border-radius: 6px; }
.skeleton .sk-line { height: 12px; margin: 8px 0; }
.skeleton .sk-line.short { width: 42%; }
.skeleton .sk-odds { height: 44px; width: 180px; }
.skeleton { animation: sk 1.1s ease-in-out infinite; }
@keyframes sk { 50% { opacity: .45; } }
@media (max-width: 1099px) {
  #betslipDock.empty { display: none !important; }
}
@media (min-width: 1100px) {
  .app { grid-template-columns: 220px minmax(0, 1fr) 320px; }
  .subnav { display: none; }
  #betslipDock {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: 100vh;
    overflow: auto;
    z-index: 6;
    background: #fff;
    border-left: 1px solid var(--line);
  }
  #betslipDock.empty { display: block !important; }
  .slip-sheet { max-height: none; border-radius: 0; box-shadow: none; width: 100%; }
  body.has-slip .main { padding-bottom: 24px; }
}

.rb-sporthead { padding: 12px; border-bottom: 1px solid #ced7ce; background: rgba(227,234,227,.45); }
.rb-sporthead-top { display: flex; justify-content: space-between; align-items: center; }
.rb-sporthead h1 { margin: 0; font-size: 14px; font-weight: 800; }
.rb-sporthead-top span { font-size: 10px; color: #535e55; }
.rb-sportlinks { display: flex; gap: 20px; margin-top: 12px; font-size: 12px; font-weight: 800; }
.rb-sportlinks a.on { color: #152318; }
.rb-sportlinks span { margin-left: 4px; color: #535e55; font-weight: 700; }
.rb-loading { margin: 8px 12px 20px; color: #535e55; font-size: 12px; }
.rb-all {
  display: flex; align-items: center; justify-content: center; height: 40px;
  margin: 8px; border-radius: 6px; background: #e3eae3; font-size: 12px; font-weight: 800;
}
.rb-code { font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.promo-card {
  position: relative; margin: 16px 8px 0; min-height: 96px; border-radius: 6px;
  background: linear-gradient(90deg, #091a0d, #1d3a24); color: #f6f9f6; padding: 16px;
}
.promo-card p { margin: 0; font-size: 9px; font-weight: 800; color: #97f600; letter-spacing: .04em; }
.promo-card h2 { margin: 4px 0 0; font-size: 14px; }
.promo-card span { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; color: #dfbb00; }
.promo-dots { position: absolute; right: 12px; bottom: 8px; display: flex; gap: 4px; }
.promo-dots button { width: 6px; height: 6px; border: 0; border-radius: 999px; background: #535e55; padding: 0; }
.promo-dots button.on { background: #97f600; }
.bottom { height: 64px; }
.bottom a, .bottom button { height: 64px; font-size: 10px; font-weight: 800; }

.slip-live { display: block; margin-top: 4px; color: #1bd093; font-style: normal; font-size: 11px; font-weight: 800; }
.odd-was { display: block; color: #8d8d8d; font-size: 10px; font-weight: 700; text-decoration: line-through; }
.slip-share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.book-code a { color: #f0d52e; word-break: break-all; }
.cashout-line {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  padding: 8px 10px; border-radius: 8px; background: #013424; color: #f6f9f6;
}
.cashout-line b { color: #f0d52e; margin-right: auto; }
.cashout-line button { width: auto; min-width: 96px; }
.cashout-line em { color: #8d8d8d; font-style: normal; font-size: 12px; }
.welcome-bonus {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: rgba(0, 0, 0, .72); animation: welcomeIn .35s ease;
}
.welcome-card {
  width: min(340px, calc(100% - 32px)); text-align: center; padding: 28px 20px 22px;
  border-radius: 18px; background: #013424; color: #f6f9f6;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45); animation: welcomePop .55s cubic-bezier(.2, 1.4, .4, 1);
}
.welcome-kicker { margin: 0; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: #1bd093; font-weight: 800; }
.welcome-card h2 { margin: 8px 0; font-size: 34px; color: #f0d52e; }
.welcome-card p { margin: 0 0 16px; color: #d5e6da; }
.welcome-card button { min-width: 140px; }
.welcome-coins { height: 72px; position: relative; overflow: hidden; margin-bottom: 8px; }
.welcome-coins::before, .welcome-coins::after {
  content: "TZS"; position: absolute; left: 50%; top: -20px; font-weight: 900; color: #f0d52e;
  animation: coinFall 1.4s ease-in infinite;
}
.welcome-coins::after { margin-left: 36px; animation-delay: .35s; color: #1bd093; }
@keyframes welcomeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcomePop { from { transform: scale(.7); } to { transform: scale(1); } }
@keyframes coinFall { to { transform: translateY(90px); opacity: .2; } }

.bets-title { margin: 18px 16px 8px; font-size: 26px; }
.bet-placed { font-size: 18px; font-weight: 800; }
.ticket {
  margin: 14px 16px 18px;
  padding: 18px 16px;
}
.ticket-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ticket-status { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.ticket-code { color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.ticket-match { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #2c2c2c; }
.ticket-match strong { display: block; font-size: 17px; line-height: 1.35; }
.ticket-pick { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.ticket-now { text-align: right; min-width: 64px; }
.ticket-now b { display: block; font-size: 22px; color: #f0d52e; }
.ticket-now span { color: var(--muted); font-size: 13px; }
.ticket-money { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.ticket-money div { background: #141414; border-radius: 12px; padding: 12px; }
.ticket-money span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.ticket-money b { font-size: 16px; }
.ticket-trophy {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -6px -4px 12px;
  padding: 14px 12px;
  border-radius: 14px;
  background: #111;
  border: 2px solid #f0d52e;
}
.ticket-trophy span { display: block; color: #f0d52e; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ticket-trophy span[aria-hidden] { display: block; font-size: 42px; line-height: 1; letter-spacing: 0; text-transform: none; }
.ticket-trophy b { display: block; margin-top: 2px; color: #fff; font-size: 26px; line-height: 1.1; }
.ticket-money .is-win { background: #111; border: 2px solid #f0d52e; }
.ticket-money .is-win span, .ticket-money .is-win b { color: #f0d52e; }
.ticket.won { border: 2px solid #f0d52e; }
.cash-btn { margin-top: 14px; min-height: 52px; }
.slip-sheet { padding: 18px 16px 28px; }
.slip-picks { gap: 14px; margin: 14px 0; }
.slip-pick { padding: 12px 0; }

@media (max-width: 860px) {
  .topbar { height: 72px; padding: 0 16px; }
  .subnav { height: 56px; gap: 10px; padding: 0 12px; }
  .main { padding-bottom: 108px; }
  .sec-head { margin: 22px 16px 10px; }
  .sec-head h2 { font-size: 16px; }
  .event, .rb-match {
    margin: 0 12px 12px;
    padding: 14px 12px 12px;
    border: 1px solid #2c2c2c;
    border-radius: 16px;
  }
  .event-teams, .rb-teams { font-size: 13px; gap: 8px; }
  .event .odds { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rb-match .odds { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event .odds button, .rb-match .odd-btn, .filters button, .search-bar .input { min-height: 44px; }
  .filters { gap: 8px; padding: 8px 14px 14px; }
  .filters button { padding: 10px 12px; font-size: 13px; }
  .bottom { height: 64px; }
  .bottom a, .bottom button { height: 64px; font-size: 11px; padding: 8px 2px; }
  #betslipDock { bottom: 64px; }
  .notice, .empty { margin: 12px 14px; font-size: 14px; line-height: 1.35; }
  .bets-title { font-size: 18px; }
  .ticket-match strong { font-size: 14px; }
  .ticket-now b, .payout-line b { font-size: 16px; }
  .stake-chips button, .stake-input, #stakeInput { font-size: 16px; }
  .account-box, .pay-sheet { margin: 18px 14px 28px; }
  .rb-sporthead { padding: 16px 16px 8px; }
}
