:root {
  --bg: #0a1210;
  --bg2: #0f1a17;
  --card: #13211d;
  --card2: #182a25;
  --line: #22362f;
  --text: #e8f1ec;
  --muted: #8ea89c;
  --green: #1fbf6a;
  --green2: #12994f;
  --gold: #f5c542;
  --red: #ef4444;
  --blue: #3b82f6;
  --radius: 12px;
  --top: 60px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top);
  display: flex; align-items: center; gap: 24px; padding: 0 20px;
  background: linear-gradient(180deg, #0d1916, #0a1411);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-ball { font-size: 22px; }
.brand-name b { color: var(--green); margin-left: 2px; }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; position: relative; }
.topnav a:hover { color: var(--text); background: var(--card); }
.topnav a.active { color: var(--text); background: var(--card2); }
.live-count, .open-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; font-size: 11px; font-weight: 700; font-style: normal; margin-left: 4px;
}
.live-count { background: var(--red); color: #fff; }
.open-count { background: var(--gold); color: #1a1400; }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--card2); border: 1px solid var(--line); font-weight: 800; font-size: 15px;
}
.balance small { color: var(--muted); font-weight: 600; font-size: 11px; }
.balance.bump { animation: bump .6s ease; }
@keyframes bump { 30% { transform: scale(1.12); border-color: var(--green); } }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), #0e7a43); font-weight: 800; color: #fff;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; font-weight: 700; background: var(--card2); border: 1px solid var(--line);
}
.btn:hover { border-color: #33514a; }
.btn-primary { background: var(--green); border-color: var(--green); color: #04170c; }
.btn-primary:hover { background: #27d679; }
.btn-primary:disabled { background: #2b4a3d; border-color: #2b4a3d; color: var(--muted); cursor: not-allowed; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a1400; }
.btn-block { width: 100%; padding: 13px; font-size: 15px; }

/* ---------- layout ---------- */
.layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 330px; gap: 18px;
  max-width: 1400px; margin: 0 auto; padding: 18px 20px 60px;
}
.sidebar, .slip-col { position: sticky; top: calc(var(--top) + 18px); align-self: start; max-height: calc(100vh - var(--top) - 36px); overflow: auto; }
.sidebar::-webkit-scrollbar, .slip-col::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.main { min-width: 0; outline: none; }

/* sidebar leagues */
.side-group { margin-bottom: 14px; }
.side-title { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; }
.lg-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  text-align: left; color: #cfe0d7;
}
.lg-item:hover { background: var(--card); }
.lg-item.active { background: var(--card2); color: #fff; box-shadow: inset 3px 0 0 var(--green); }
.lg-flag { width: 22px; text-align: center; font-size: 16px; }
.lg-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-count { color: var(--muted); font-size: 12px; }
.lg-live { color: #fff; background: var(--red); border-radius: 6px; padding: 0 5px; font-size: 11px; font-weight: 700; }
.lg-item.zero { opacity: .45; }

/* chips (mobile league filter) */
.chips { display: none; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: #cfe0d7; font-weight: 600; white-space: nowrap;
}
.chip.active { background: var(--green); border-color: var(--green); color: #04170c; }

/* day tabs */
.days { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; min-width: 66px; padding: 8px 10px; border-radius: 10px; background: var(--card);
  border: 1px solid var(--line); text-align: center; line-height: 1.15;
}
.day b { display: block; font-size: 13px; }
.day small { color: var(--muted); font-size: 11px; }
.day.active { background: var(--card2); border-color: var(--green); }
.day.active small { color: var(--green); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 14px; }
.page-head h1 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { padding: 6px 14px; border-radius: 8px; color: var(--muted); font-weight: 700; }
.seg button.active { background: var(--card2); color: var(--text); }

/* ---------- league block + match rows ---------- */
.league-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.league-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card2);
  font-weight: 700; border-bottom: 1px solid var(--line);
}
.league-head .mk { margin-left: auto; display: grid; grid-template-columns: repeat(3, 62px); gap: 6px; color: var(--muted); font-size: 12px; text-align: center; font-weight: 600; }
.match { border-top: 1px solid var(--line); }
.match:first-of-type { border-top: 0; }
.match-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; }
.match-row:hover { background: #15251f; }
.m-time { color: var(--muted); font-size: 12px; text-align: center; line-height: 1.2; cursor: pointer; }
.m-time b { display: block; color: var(--text); font-size: 13px; }
.m-time.live b { color: var(--red); }
.m-teams { min-width: 0; cursor: pointer; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 0; }
.team img, .team .noimg { width: 20px; height: 20px; object-fit: contain; flex: none; border-radius: 3px; }
.team .noimg { background: var(--line); }
.team-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.team-score { font-weight: 800; min-width: 18px; text-align: right; font-size: 15px; }
.team.win .team-name { color: #fff; }
.team.lose .team-name { color: var(--muted); }
.m-odds { display: flex; align-items: center; gap: 6px; }
.m-odds .three { display: grid; grid-template-columns: repeat(3, 62px); gap: 6px; }
.odd {
  height: 40px; border-radius: 9px; background: #1c3029; border: 1px solid #25403a; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.05; transition: background .15s, transform .1s;
}
.odd small { color: var(--muted); font-size: 10px; font-weight: 600; }
.odd b { font-size: 14px; font-weight: 800; }
.odd:hover { background: #24423a; border-color: #2f5a4e; }
.odd:active { transform: scale(.96); }
.odd.sel { background: var(--green); border-color: var(--green); color: #04170c; }
.odd.sel small { color: #0a3a1f; }
.odd.up b { color: #4ade80; } .odd.down b { color: #f87171; }
.odd.sel.up b, .odd.sel.down b { color: #04170c; }
.odd.locked { opacity: .5; cursor: not-allowed; }
.more-btn { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 12px; }
.more-btn:hover, .more-btn.open { color: var(--text); background: var(--card2); }
.locked-note { color: var(--muted); font-size: 12px; min-width: 198px; text-align: center; }
.livebadge { display: inline-flex; align-items: center; gap: 5px; color: var(--red); font-weight: 800; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.markets { padding: 4px 14px 14px 90px; display: grid; gap: 10px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }
.mkt-title { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.mkt-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
.mkt-opts .odd { flex-direction: row; justify-content: space-between; padding: 0 10px; gap: 6px; }
.mkt-opts .odd small { font-size: 12px; color: #cfe0d7; }
.mkt-opts.two { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 761px) { .mkt-opts.two { grid-template-columns: repeat(6, 1fr); } .mkt-opts.two .odd small { font-size: 11px; } }

/* ---------- empty + loading ---------- */
.empty { text-align: center; color: var(--muted); padding: 50px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .big { font-size: 34px; margin-bottom: 6px; }
.skel { height: 64px; border-radius: 10px; margin-bottom: 8px; background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- bet slip ---------- */
.slip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.slip-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--card2); border-bottom: 1px solid var(--line); font-weight: 800; }
.slip-head .count { background: var(--green); color: #04170c; border-radius: 9px; padding: 0 7px; font-size: 12px; }
.slip-head .clear { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; }
.slip-head .clear:hover { color: var(--red); }
.slip-empty { padding: 26px 18px; text-align: center; color: var(--muted); }
.slip-empty .big { font-size: 30px; }
.leg { position: relative; padding: 11px 38px 11px 14px; border-bottom: 1px solid var(--line); }
.leg .lm { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg .lp { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; margin-top: 2px; }
.leg .lp span:last-child { color: var(--gold); }
.leg .x { position: absolute; right: 10px; top: 12px; width: 22px; height: 22px; border-radius: 6px; color: var(--muted); }
.leg .x:hover { background: var(--line); color: var(--text); }
.leg.bad { background: rgba(239, 68, 68, .08); }
.leg.changed .lp span:last-child { animation: flash 1s 2; }
@keyframes flash { 50% { color: #fff; } }
.slip-body { padding: 14px; display: grid; gap: 10px; }
.slip-type { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; }
.slip-type b { color: var(--gold); font-size: 16px; }
.stake { display: flex; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.stake:focus-within { border-color: var(--green); }
.stake span { color: var(--muted); font-weight: 700; }
.stake input { flex: 1; background: none; border: 0; outline: none; padding: 12px 8px; font-size: 17px; font-weight: 800; width: 100%; }
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.quick button { padding: 7px 0; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); font-weight: 700; font-size: 12px; }
.quick button:hover { border-color: var(--green); }
.towin { display: flex; justify-content: space-between; font-weight: 700; }
.towin b { color: var(--green); font-size: 18px; }
.slip-msg { padding: 9px 11px; border-radius: 9px; font-size: 13px; background: rgba(239, 68, 68, .12); color: #fecaca; border: 1px solid rgba(239, 68, 68, .3); }
.slip-msg.ok { background: rgba(31, 191, 106, .12); color: #bbf7d0; border-color: rgba(31, 191, 106, .35); }

/* mobile fab + sheet */
.slip-fab {
  position: fixed; right: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px;
  background: var(--green); color: #04170c; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.fab-count { background: #04170c; color: var(--green); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; }
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; animation: up .25s ease; padding-bottom: env(safe-area-inset-bottom); background: var(--card); }
@keyframes up { from { transform: translateY(100%); } }

/* ---------- my bets ---------- */
.bet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.bet-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card2); border-bottom: 1px solid var(--line); }
.bet-head .t { font-weight: 800; }
.bet-head .d { color: var(--muted); font-size: 12px; }
.badge { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.badge.pending { background: rgba(245, 197, 66, .15); color: var(--gold); }
.badge.won { background: rgba(31, 191, 106, .18); color: #4ade80; }
.badge.lost { background: rgba(239, 68, 68, .15); color: #f87171; }
.badge.void { background: rgba(142, 168, 156, .15); color: var(--muted); }
.bleg { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bleg:last-child { border-bottom: 0; }
.st-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.st-icon.pending { border: 2px solid var(--gold); color: var(--gold); }
.st-icon.won { background: var(--green); color: #04170c; }
.st-icon.lost { background: var(--red); color: #fff; }
.st-icon.void { background: var(--line); color: var(--muted); }
.bleg .pick { font-weight: 700; }
.bleg .pick em { font-style: normal; color: var(--gold); margin-left: 6px; }
.bleg .game { color: var(--muted); font-size: 12px; margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.minis { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--muted); }
.livescore { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 7px; background: var(--bg2); font-weight: 800; color: var(--text); font-size: 13px; }
.livescore.on { box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .5); }
.bet-foot { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 14px; background: var(--bg2); gap: 8px; }
.bet-foot div { font-size: 12px; color: var(--muted); }
.bet-foot b { display: block; color: var(--text); font-size: 15px; }
.bet-foot .green { color: #4ade80; }

/* ---------- leaderboard ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 16px; }
.pod { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px; text-align: center; }
.pod .medal { font-size: 30px; }
.pod .n { font-weight: 800; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .p { font-size: 18px; font-weight: 900; margin-top: 2px; }
.pod.first { padding: 24px 10px; border-color: rgba(245, 197, 66, .5); background: linear-gradient(180deg, rgba(245, 197, 66, .12), var(--card)); }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--card2); }
.table th:nth-child(2), .table td:nth-child(2) { text-align: left; width: 100%; }
.table th:first-child, .table td:first-child { text-align: center; width: 44px; }
.table tr.me td { background: rgba(31, 191, 106, .1); }
.pos { color: #4ade80; } .neg { color: #f87171; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.modal-panel { position: relative; width: 100%; max-width: 420px; max-height: 90vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; animation: pop .2s ease; }
.modal-panel.wide { max-width: 560px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); font-size: 18px; }
.modal-close:hover { background: var(--card2); color: var(--text); }
.auth h2 { margin: 0 0 4px; font-size: 22px; }
.auth p { color: var(--muted); margin: 0 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 700; font-size: 13px; }
.field input { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; outline: none; font-size: 16px; }
.field input:focus { border-color: var(--green); }
.pin-input { letter-spacing: .5em; font-weight: 800; }
.hint { color: var(--muted); font-size: 12px; }
.auth .switch { margin-top: 14px; text-align: center; color: var(--muted); }
.auth .switch button { color: var(--green); font-weight: 700; }
.perks { display: grid; gap: 6px; margin: 0 0 16px; padding: 12px; border-radius: 10px; background: var(--bg2); font-size: 13px; }

/* match detail */
.md-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; margin: 6px 0 16px; }
.md-team img, .md-team .noimg { width: 52px; height: 52px; margin: 0 auto 6px; object-fit: contain; }
.md-team .noimg { background: var(--line); border-radius: 8px; }
.md-team b { display: block; }
.md-score { font-size: 34px; font-weight: 900; }
.md-status { color: var(--muted); font-size: 13px; text-align: center; margin-top: -8px; margin-bottom: 14px; }
.timeline { display: grid; gap: 6px; margin-bottom: 14px; }
.ev { display: grid; grid-template-columns: 1fr 50px 1fr; align-items: center; gap: 8px; font-size: 13px; }
.ev .l { text-align: right; } .ev .c { text-align: center; color: var(--muted); font-weight: 700; }
.md-league { color: var(--muted); text-align: center; font-size: 13px; }

/* toasts */
.toasts { position: fixed; top: calc(var(--top) + 12px); left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 380px); }
.toast { padding: 12px 14px; border-radius: 12px; background: #1d3a30; border: 1px solid #2c5a4a; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: drop .3s ease; }
.toast.err { background: #3a1d1d; border-color: #5a2c2c; }
.toast.win { background: linear-gradient(90deg, #14532d, #166534); border-color: var(--green); }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 10px 20px 90px; }
.bottomnav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 210px minmax(0, 1fr) 300px; gap: 14px; padding: 14px; }
  .m-odds .three, .league-head .mk { grid-template-columns: repeat(3, 54px); }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .sidebar { display: none; }
  .chips { display: flex; }
}
@media (max-width: 760px) {
  :root { --top: 54px; }
  .topbar { padding: 0 12px; gap: 10px; }
  .topnav { display: none; }
  .brand { font-size: 18px; }
  .layout { display: block; padding: 12px 10px 20px; }
  .slip-col { display: none; }
  .slip-fab:not([hidden]) { display: flex; }
  .match-row { grid-template-columns: 46px minmax(0, 1fr); gap: 8px; padding: 10px; }
  .m-odds { grid-column: 1 / -1; }
  .m-odds .three { flex: 1; grid-template-columns: repeat(3, 1fr); }
  .league-head .mk { display: none; }
  .markets { padding: 4px 10px 12px; }
  .locked-note { flex: 1; min-width: 0; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: #0d1916; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0 9px; color: var(--muted); font-size: 11px; font-weight: 700; }
  .bottomnav a span { font-size: 18px; line-height: 1; }
  .bottomnav a.active { color: var(--green); }
  .bottomnav i { position: absolute; top: 4px; left: calc(50% + 6px); }
  .balance { padding: 6px 10px; font-size: 14px; }
  .balance small { display: none; }
  .table th:nth-child(5), .table td:nth-child(5), .table th:nth-child(6), .table td:nth-child(6) { display: none; }
  .podium .pod .p { font-size: 15px; }
}

/* ---------- v2: help tooltips, market tabs, bet types, cash out ---------- */
.help {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid #3b5f53; color: var(--muted); font-size: 11px; font-weight: 800; cursor: help;
  vertical-align: middle; margin-left: 4px; line-height: 1; flex: none; user-select: none;
}
.help:hover, .help:focus { color: #04170c; background: var(--gold); border-color: var(--gold); outline: none; }
.tip {
  position: fixed; z-index: 100; padding: 12px 14px; border-radius: 12px; background: #0f1f1a; border: 1px solid #3b5f53;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55); font-size: 13px; line-height: 1.45; color: #dbe9e2; pointer-events: none;
}
.tip b { display: block; color: var(--gold); margin-bottom: 4px; font-size: 14px; }
.tip p { margin: 0 0 3px; }

.mtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mtabs::-webkit-scrollbar { display: none; }
.mtabs button { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 12px; }
.mtabs button.active { background: var(--card2); color: var(--text); border-color: var(--green); }
.mkt-title { display: flex; align-items: center; gap: 2px; }
.mkt-opts.three { grid-template-columns: repeat(3, 1fr); }
.mkt-opts.two { grid-template-columns: repeat(2, 1fr); }
.mkt-opts.pairs { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 761px) { .mkt-opts.pairs { grid-template-columns: repeat(4, 1fr); } }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cs-col { display: grid; gap: 6px; align-content: start; }
.cs-col .hint { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.markets.in-modal { padding: 0; margin-top: 6px; }

.stypes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.stypes button { padding: 8px 4px; border-radius: 8px; color: var(--muted); font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 2px; }
.stypes button.active { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--green); }
.stypes button:disabled { opacity: .4; cursor: not-allowed; }
.sysks { display: flex; gap: 6px; flex-wrap: wrap; }
.sysks button { padding: 6px 10px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); font-weight: 800; line-height: 1.1; }
.sysks button small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; }
.sysks button.active { border-color: var(--gold); color: var(--gold); }
.stake-note { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.badge.cashout { background: rgba(245, 197, 66, .15); color: var(--gold); }
.co-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.co-row .btn { flex: 1; }
.co-btn { background: rgba(245, 197, 66, .12); border-color: rgba(245, 197, 66, .45); color: var(--gold); }
.co-btn:hover { background: rgba(245, 197, 66, .2); }
.co-wait { flex: 1; color: var(--gold); font-weight: 700; }
.bet-head .help { margin-left: 0; }
.mkt-opts .odd small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mkt-opts { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.mkt-opts.three, .cs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mkt-opts.two, .mkt-opts.pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 761px) { .mkt-opts.pairs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mkt-opts > *, .cs-col > * { min-width: 0; }
.markets { min-width: 0; overflow: hidden; }
@media (max-width: 760px) {
  .mkt-opts .odd { flex-direction: column; justify-content: center; gap: 1px; padding: 0 6px; height: 46px; }
  .mkt-opts .odd small { font-size: 11px; max-width: 100%; }
  .co-row .btn { padding: 10px 8px; }
}
