/* fck the vig — "Electric Violet" app design (direction D) */
:root {
  --bg: #110a24;
  --bg-2: #0c0719;
  --surface: #1d1439;
  --surface-2: #2a1f50;
  --line: #2d2352;
  --text: #f6f3ff;
  --muted: #b4aad8;
  --dim: #8a80b0;
  --accent: #9b74ff;
  --accent-ink: #14062e;
  --accent-soft: rgba(155, 116, 255, .18);
  --warn: #ffcf5c;
  --warn-soft: rgba(255, 207, 92, .12);
  --bad: #ff7b9a;
  --bad-soft: rgba(255, 123, 154, .12);
  --radius: 22px;
  --font: Sora, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 28px; background: rgba(17, 10, 36, .88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 50px; letter-spacing: -2px; line-height: 1; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.brand-mark { width: 68px; height: 68px; flex: none; margin-right: 14px; filter: drop-shadow(0 4px 18px rgba(155, 116, 255, .4)); }
.brand span { color: var(--accent); }
.top-right { display: flex; align-items: center; gap: 10px; }
.state-btn { background: var(--surface); border: 0; border-radius: 999px; padding: 11px 16px; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.state-btn:hover { background: var(--surface-2); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.status.live .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.status.sample .dot { background: var(--warn); }
.status.stale .dot { background: var(--bad); }

.banner { max-width: 1440px; margin: 14px auto 0; padding: 12px 16px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; background: var(--warn-soft); }
.banner strong { color: var(--warn); }

/* ---------- three panels ---------- */
.app { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) minmax(340px, 420px); gap: 22px; max-width: 1440px; margin: 0 auto; padding: 22px 28px 40px; align-items: start; }
.panel { min-width: 0; }
.panel-today, .panel-results { position: sticky; top: 104px; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; }
.panel-results { background: var(--surface); border-radius: 28px; padding: 22px; }
.eyebrow { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
h1, .panel-title { margin: 0 0 6px; font-weight: 800; letter-spacing: -.8px; line-height: 1.1; }
h1 { font-size: 30px; }
.panel-title { font-size: 26px; }
.lede { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

/* today: price gaps */
.gaps { display: grid; gap: 10px; }
.gap { width: 100%; text-align: left; cursor: pointer; background: var(--surface); border: 2px solid transparent; border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; }
.gap:hover { border-color: var(--line); }
.gap.on { border-color: var(--accent); }
.gap-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gap-pick { font-weight: 700; font-size: 15.5px; }
.gap-game { font-size: 12px; color: var(--muted); margin-top: -4px; }
.gap-badge { flex: none; font-size: 12px; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.gap-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.gap-row strong { color: var(--text); }
.gaps .none { color: var(--muted); font-size: 14px; padding: 8px 2px; }

.vig-card { margin-top: 16px; background: var(--surface); border-radius: var(--radius); padding: 16px 18px; }
.vig-card h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.vig-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.vig-list li { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 4px 10px; align-items: center; font-size: 13.5px; }
.vig-list .bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.vig-list .bar i { display: block; height: 6px; border-radius: 99px; background: var(--muted); }
.vig-list li.low .bar i { background: var(--accent); }
.vig-list .pct { text-align: right; font-weight: 700; }

/* build: board */
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; }
.tab { border: 0; background: var(--surface); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; font-weight: 700; font-size: 14px; white-space: nowrap; }
.tab .count { color: var(--muted); font-weight: 600; margin-left: 4px; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.tab[aria-selected="true"] .count { color: var(--accent-ink); opacity: .7; }
.fresh { font-size: 12px; color: var(--muted); }
/* date picker */
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding-bottom: 2px; }
.days::-webkit-scrollbar { display: none; }
.dchip { flex: none; display: grid; gap: 1px; justify-items: start; border: 2px solid transparent; background: var(--surface); color: var(--text); border-radius: 14px; padding: 7px 12px; min-height: 44px; min-width: 64px; cursor: pointer; font: inherit; text-align: left; }
.dchip .d-top { font-weight: 700; font-size: 14px; line-height: 1.2; }
.dchip .d-bot { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.dchip .d-bot b { font-weight: 700; color: var(--muted); }
.dchip.zero { opacity: .5; }
.dchip:hover { border-color: var(--line); }
.dchip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.dchip[aria-pressed="true"] .d-bot, .dchip[aria-pressed="true"] .d-bot b { color: var(--accent-ink); }
.days-today { margin: 6px 0 14px; }
@media (min-width: 861px) { .days-today { display: none; } }
.empty-msg .jump { display: block; margin-top: 6px; color: var(--accent); font-weight: 700; font-size: 14px; }
.games { display: grid; gap: 12px; }
.day { color: var(--muted); font-size: 13px; font-weight: 600; margin: 8px 4px 0; }
.game { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; }
.game.empty-msg { color: var(--muted); }
.game-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.chip-time { font-weight: 700; color: var(--text); }
.chip-live { color: var(--bad); font-weight: 700; }
.chip-props { color: var(--accent); font-weight: 700; }
.books-count { margin-left: auto; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(84px, 112px)); gap: 7px; align-items: center; }
.grid .h { font-size: 11px; color: var(--dim); text-align: center; font-weight: 600; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.team .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .at { color: var(--dim); font-weight: 500; }
.team .short { display: none; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff; }
.pick {
  position: relative; height: 52px; border-radius: 14px; border: 2px solid transparent; background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; line-height: 1.15;
  transition: border-color .12s, background .12s;
}
.pick:hover { border-color: var(--line); }
.pick .ln { font-size: 11.5px; color: var(--muted); }
.pick .pr { font-weight: 700; font-size: 14.5px; }
.pick .bb { position: absolute; right: 7px; bottom: 4px; font-size: 8.5px; font-weight: 700; color: var(--dim); }
.pick.on { border-color: var(--accent); background: var(--accent-soft); }
.pick.on .ln, .pick.on .bb { color: var(--text); }
.pick[disabled] { opacity: .3; cursor: default; }

.props-toggle { margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 0; border-radius: 14px; padding: 12px 14px; min-height: 44px; cursor: pointer; font-weight: 700; font-size: 13.5px; }
.props-toggle .count { color: var(--muted); font-weight: 500; }
.props-toggle .chev { margin-left: auto; color: var(--muted); }
.props-toggle svg { color: var(--accent); }
.props { margin-top: 12px; }
.props-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 0; background: var(--surface-2); border-radius: 999px; padding: 9px 14px; min-height: 40px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.psearch { margin-left: auto; background: var(--surface-2); border: 2px solid transparent; border-radius: 999px; padding: 9px 14px; color: var(--text); font: inherit; font-size: 13px; width: 180px; outline: none; }
.psearch:focus { border-color: var(--accent); }
.prop-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(84px, 112px)); gap: 7px; align-items: center; }
.prop-grid.yn { grid-template-columns: minmax(0, 1fr) minmax(84px, 112px); }
.prop-grid .h { font-size: 11px; color: var(--dim); text-align: center; font-weight: 600; }
.prop-grid .h.left { text-align: left; }
.player { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cta { display: block; width: 100%; border: 0; border-radius: 20px; padding: 17px; min-height: 54px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 16px; cursor: pointer; text-align: center; text-decoration: none; }
.cta:hover { filter: brightness(1.08); }
.cta.light { background: var(--text); color: var(--bg); }
.see-best { display: none; }

/* results */
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 13px; padding: 6px 0; }
.link-btn:hover { color: var(--text); }
.legs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.leg { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 18px; padding: 10px 10px 10px 16px; }
.leg .what { font-weight: 700; font-size: 14px; display: block; }
.leg .game-l { font-size: 12px; color: var(--muted); }
.leg .best { font-weight: 700; color: var(--accent); }
.leg .x { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--bg); color: var(--muted); font-size: 20px; cursor: pointer; }
.leg .x:hover { color: var(--text); }
.leg .bell { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--bg); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.leg .bell:hover { color: var(--accent); }
.empty { color: var(--muted); font-size: 14px; }
.empty-head { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.empty-head img { width: 48px; height: 48px; flex: none; }
.empty-head b { color: var(--text); }
.steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--accent); color: var(--accent-ink); }
.steps b { color: var(--text); }

.stake-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stake-chips { display: flex; gap: 6px; }
.stake-chips button { border: 0; background: var(--surface-2); border-radius: 14px; padding: 10px 12px; min-height: 44px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.stake-chips button.on { background: var(--accent); color: var(--accent-ink); }
.stake-wrap { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; background: var(--surface-2); border-radius: 14px; padding: 10px 12px; color: var(--muted); }
.stake-wrap input { width: 56px; background: none; border: 0; color: var(--text); font: 700 14px var(--font); outline: none; }

.note { font-size: 12.5px; padding: 11px 13px; border-radius: 16px; margin-top: 12px; line-height: 1.5; }
.note.warn { background: var(--warn-soft); }
.note.warn strong { color: var(--warn); }
.note.info { background: var(--surface-2); color: var(--muted); }

.payout { margin-top: 14px; background: var(--accent); color: var(--accent-ink); border-radius: 26px; padding: 20px 22px; display: grid; gap: 4px; }
.payout .lbl { font-size: 14px; font-weight: 700; }
.payout .big { font-size: 58px; font-weight: 800; letter-spacing: -2.5px; line-height: 1; }
.payout .sub { font-size: 14px; font-weight: 600; }

.rank { margin-top: 16px; }
.rank h3 { font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 600; display: flex; justify-content: space-between; }
.row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.bchip { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 10px; color: #fff; grid-row: span 2; }
.row .bk { font-weight: 700; display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.row .bk .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px; flex: none; }
.badge.book { background: var(--surface-2); color: var(--muted); }
.badge.ex { background: var(--accent-soft); color: var(--text); }
.badge.chk { background: var(--warn-soft); color: var(--warn); }
.row .money { text-align: right; grid-row: span 2; display: grid; }
.row .pay { font-weight: 800; font-size: 18px; }
.row .odds { font-size: 12px; color: var(--muted); }
.row.best .pay { color: var(--accent); }
.meter { grid-column: 2 / 3; display: grid; gap: 6px; }
.meter .bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter .bar i { display: block; height: 8px; border-radius: 99px; background: var(--muted); }
.row.best .meter .bar i { background: var(--accent); }
.legp { display: flex; flex-wrap: wrap; gap: 4px; font-size: 11.5px; }
.lp { color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 2px 7px; text-decoration: none; }
a.lp:hover { color: var(--text); }
.lp.off { color: var(--warn); }
.lp .ext { opacity: .6; margin-left: 2px; }
.missing, .hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.open-best { margin-top: 14px; }

/* tab bar (phone only) */
.tabbar { display: none; }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; margin-left: 4px; }

/* footer */
.foot { max-width: 1440px; margin: 0 auto; padding: 24px 28px 48px; color: var(--muted); font-size: 12.5px; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.foot p { margin: 0; }
.foot b { color: var(--text); }
.rg { color: var(--dim); }

/* dialogs */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 32px); }
.modal::backdrop { background: rgba(8, 4, 20, .75); backdrop-filter: blur(4px); }
.modal-card { width: 460px; max-width: 100%; background: var(--surface); border-radius: 28px; padding: 24px; }
.modal-card.wide { width: 760px; max-height: 82vh; overflow: auto; }
.modal-card h3 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.modal-card select { width: 100%; margin-top: 12px; background: var(--surface-2); color: var(--text); border: 0; border-radius: 16px; padding: 14px; font: inherit; font-size: 15px; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.modal-actions .cta { width: auto; padding: 14px 22px; }
.state-preview { margin-top: 12px; font-size: 13.5px; }
.state-preview .grp { margin-top: 10px; }
.state-preview .grp > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.bk-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bk-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 12.5px; font-weight: 600; }
.bk-pill i { width: 18px; height: 18px; border-radius: 6px; display: inline-block; }
.bk-pill.warn { box-shadow: inset 0 0 0 1px var(--warn); }
.no-h { color: var(--bad) !important; }
.chk-h { color: var(--warn) !important; }
.block-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.block-list li { padding: 8px 11px; border-radius: 12px; background: var(--bad-soft); }
.block-list.chk li { background: var(--warn-soft); }
.no-t { color: var(--bad); font-weight: 600; }
.chk-t { color: var(--warn); font-weight: 600; }
.about-h { margin: 18px 0 6px; font-size: 16px; font-weight: 700; }
.about-scroll { max-height: 46vh; overflow: auto; border-radius: 14px; background: var(--bg-2); }
.about-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.about-table th, .about-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.about-table th { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.about-scroll thead th { position: sticky; top: 0; background: var(--bg-2); }
.about-table a { color: var(--accent); word-break: break-all; }

/* ---------- section nav (desktop) ---------- */
.views { display: flex; gap: 4px; background: var(--surface); border-radius: 999px; padding: 4px; margin: 0 auto 0 32px; }
.views button { border: 0; background: none; border-radius: 999px; padding: 9px 16px; min-height: 40px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; }
.views button:hover { color: var(--text); }
.views button[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.views button[aria-current="page"] .tab-badge { background: var(--accent-ink); color: var(--accent); }
.acct-btn { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* one section at a time on desktop */
@media (min-width: 861px) {
  .app[data-view="games"] .panel-season, .app[data-view="games"] .panel-bets, .app[data-view="games"] .panel-money { display: none; }
  .app[data-view="season"], .app[data-view="bets"], .app[data-view="money"] { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
  .app[data-view="season"] .panel-today, .app[data-view="season"] .panel-build, .app[data-view="season"] .panel-results,
  .app[data-view="bets"] .panel-today, .app[data-view="bets"] .panel-build, .app[data-view="bets"] .panel-results,
  .app[data-view="money"] .panel-today, .app[data-view="money"] .panel-build, .app[data-view="money"] .panel-results { display: none; }
  .app[data-view="season"] .panel-bets, .app[data-view="bets"] .panel-season,
  .app[data-view="season"] .panel-money, .app[data-view="bets"] .panel-money, .app[data-view="money"] .panel-season, .app[data-view="money"] .panel-bets { display: none; }
}

.cta.ghost { background: var(--surface-2); color: var(--text); margin-top: 12px; }
.cta.ghost:hover { background: var(--line); filter: none; }
.danger, .link-btn.danger { color: var(--bad); }
.cta.danger-cta { background: var(--bad); color: #2a0610; }

/* ---------- season ---------- */
.season-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.market-list { display: grid; gap: 14px; position: sticky; top: 104px; }
.mgroup h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .6px; }
.mitems { display: grid; gap: 4px; }
.mitem { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; border-radius: 12px; padding: 10px 12px; min-height: 42px; cursor: pointer; font-weight: 600; font-size: 14px; }
.mitem:hover { background: var(--surface); }
.mitem[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.mcount { font-size: 11.5px; color: var(--dim); font-weight: 600; white-space: nowrap; }
.market-view { background: var(--surface); border-radius: 28px; padding: 20px; min-width: 0; }
.mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.mtitle { margin: 0 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.mhead .psearch { margin-left: 0; }
.market-view .note { margin-top: 8px; }
.frows { margin-top: 10px; }
.frow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(130px, auto) minmax(0, 1.4fr) auto; gap: 6px 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.fname { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fbest { display: grid; line-height: 1.25; }
.fbest a { text-decoration: none; }
.fbest b { font-size: 16px; color: var(--accent); }
.fbook { font-size: 12.5px; font-weight: 600; }
.fpct { font-size: 11.5px; color: var(--dim); }
.fothers { min-width: 0; }
.fsave { min-height: 38px; }

/* ---------- my bets ---------- */
.panel-bets { max-width: 860px; width: 100%; justify-self: center; }
.acct-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 14px; }
.acct-box > div:first-child { display: grid; gap: 2px; min-width: 0; }
.acct-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bet-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border-radius: 18px; padding: 12px 14px; display: grid; gap: 2px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.stat .v.up { color: var(--accent); }
.stat .v.down { color: var(--bad); }
.bets-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chip .count { color: var(--muted); margin-left: 4px; font-weight: 600; }
.chip[aria-pressed="true"] .count { color: var(--bg); opacity: .7; }
.bet-list { display: grid; gap: 12px; }
.bet { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; border: 2px solid transparent; }
.bet.st-won { border-color: var(--accent); }
.bet.st-review { border-color: var(--warn); }
.bet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bet-h { display: grid; gap: 2px; min-width: 0; }
.bet-title { font-weight: 800; font-size: 16px; }
.bet-meta { font-size: 12.5px; color: var(--muted); }
.bet-badge { flex: none; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.b-won { background: var(--accent); color: var(--accent-ink); }
.b-lost { background: var(--bad-soft); color: var(--bad); }
.b-review { background: var(--warn-soft); color: var(--warn); }
.b-open { background: var(--accent-soft); color: var(--text); }
.bet-legs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.bl { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: start; font-size: 13.5px; }
.bl .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.bl.won .ic { background: var(--accent); color: var(--accent-ink); }
.bl.lost .ic { background: var(--bad-soft); color: var(--bad); }
.bl.review .ic { background: var(--warn-soft); color: var(--warn); }
.bl-main { display: grid; min-width: 0; }
.bl-l { font-weight: 600; }
.bl-s { font-size: 12px; color: var(--muted); }
.bl-p { font-weight: 700; font-size: 13px; }
.bet-money { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.bet-money b { color: var(--text); }
.bet-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.settle summary { list-style: none; display: inline; }
.settle summary::-webkit-details-marker { display: none; }
.settle[open] .chips { margin-top: 6px; }
.bet-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.bet-edit input[type="number"], .bet-edit input[type="text"] { width: 90px; background: var(--surface-2); border: 0; border-radius: 10px; padding: 9px 10px; color: var(--text); font: 600 14px var(--font); margin-left: 4px; }

/* ---------- forms in dialogs ---------- */
.field { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select { width: 100%; background: var(--surface-2); color: var(--text); border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; font: 500 15px var(--font); outline: none; }
.field input:focus, .field select:focus { border-color: var(--accent); }
.field input:disabled { opacity: .5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.chk input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.save-title { margin: 0; font-weight: 800; font-size: 16px; }
.save-legs { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.save-win { margin: 12px 0 0; font-weight: 700; color: var(--accent); min-height: 1em; }
.form-err { margin: 8px 0 0; color: var(--bad); font-size: 13.5px; min-height: 1em; }
.form-ok { margin: 8px 0 0; color: var(--accent); font-size: 14px; font-weight: 600; }
.form-ok:empty { display: none; }
.modal-actions { gap: 16px; align-items: center; }
.modal-card p { line-height: 1.5; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); text-align: center; }

/* ---------- tablet: two columns ---------- */
@media (max-width: 1180px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
  .panel-today { grid-column: 1 / -1; position: static; max-height: none; overflow: visible; }
  .gaps { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (min-width: 861px) and (max-width: 1340px) {
  .topbar .status { display: none; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .brand { font-size: 36px; letter-spacing: -1.3px; }
  .brand-mark { width: 52px; height: 52px; margin-right: 11px; }
  .views { margin-left: 20px; }
}
@media (min-width: 861px) and (max-width: 1020px) {
  .brand { font-size: 25px; letter-spacing: -.7px; }
  .brand-mark { width: 38px; height: 38px; margin-right: 9px; }
  .views { margin-left: 14px; }
}
/* ---------- phone: one screen at a time with a tab bar ---------- */
@media (max-width: 860px) {
  .topbar { padding: 10px 16px; }
  .brand { font-size: 24px; letter-spacing: -.6px; }
  .brand-mark { width: 36px; height: 36px; margin-right: 9px; }
  .status { display: none; }
  .banner { margin: 10px 16px 0; }
  .app { display: block; padding: 16px 16px 120px; }
  .panel { display: none; }
  .app[data-tab="today"] .panel-today, .app[data-tab="build"] .panel-build, .app[data-tab="results"] .panel-results,
  .app[data-tab="season"] .panel-season, .app[data-tab="bets"] .panel-bets, .app[data-tab="money"] .panel-money { display: block; }
  .views { display: none; }
  .acct-btn { max-width: 120px; }
  .season-grid { grid-template-columns: minmax(0, 1fr); }
  .market-list { position: static; gap: 10px; }
  .mitems { display: flex; flex-wrap: wrap; gap: 6px; }
  .mitem { width: auto; background: var(--surface); border-radius: 999px; padding: 8px 12px; min-height: 40px; font-size: 13px; }
  .mitem .mcount { display: none; }
  .mitem[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
  .market-view { padding: 16px; border-radius: 22px; }
  .frow { grid-template-columns: minmax(0, 1fr) auto; }
  .fothers { grid-column: 1 / -1; }
  .fsave { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .fbest { grid-column: 1; }
  .bet-stats { gap: 6px; }
  .stat { padding: 10px; border-radius: 14px; }
  .stat .k { font-size: 11px; }
  .stat .v { font-size: 16px; letter-spacing: -.3px; }
  .field-row { grid-template-columns: 1fr; }
  .toast { bottom: 96px; }
  .panel-today, .panel-results { position: static; max-height: none; overflow: visible; }
  .panel-results { background: none; padding: 0; border-radius: 0; }
  .gaps { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .grid { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(62px, 84px)); gap: 5px; }
  .prop-grid { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(70px, 92px)); gap: 5px; }
  .prop-grid.yn { grid-template-columns: minmax(0, 1fr) minmax(70px, 92px); }
  .avatar { width: 26px; height: 26px; font-size: 10px; border-radius: 8px; }
  .team { gap: 8px; font-size: 14px; }
  .team .full { display: none; }
  .team .short { display: inline; }
  .pick { height: 48px; }
  .pick .bb { display: none; }
  .psearch { width: 100%; margin-left: 0; }
  .see-best:not([hidden]) { display: block; position: sticky; bottom: 92px; margin-top: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
  .foot { padding-bottom: 110px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(17, 10, 36, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar button { background: none; border: 0; padding: 14px 0; min-height: 52px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
  .tabbar .tab-badge { margin-left: 2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10px; }
  .tabbar button[aria-current="page"] { color: var(--accent); font-weight: 800; }
  .payout .big { font-size: 52px; }
}

/* ---------- share / save buttons ---------- */
.cta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 12px; }
.cta-row .cta.ghost { margin-top: 0; }
.share-bet { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding-left: 20px; padding-right: 20px; }
#shareUrl { font-size: 13px; }

/* ---------- stats breakdown ---------- */
.breakdown { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.bd-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bd-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.bd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bd-table th { text-align: left; color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.bd-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.bd-table td:first-child { font-weight: 700; }
.bd-table th:not(:first-child), .bd-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.bd-table tr.sep td { padding: 2px; border-bottom: 0; }
.bd-table .up, .up { color: var(--accent); }
.bd-table .down { color: var(--bad); }

/* ---------- free money ---------- */
.panel-money { max-width: 980px; width: 100%; justify-self: center; }
.mb-sec { margin-top: 22px; }
.mb-sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mb-sec-h h3 { margin: 0 0 2px; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.mb-sec-h p { margin: 0; }
.mb-total { margin-left: 0; }
.mb-total input { width: 70px; }
.mb-list { display: grid; gap: 10px; }
.mb-card { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; }
.mb-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mb-game { font-size: 12.5px; color: var(--muted); min-width: 0; }
.mb-badge { flex: none; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.mb-card.value .mb-badge { background: var(--accent-soft); color: var(--text); }
.mb-mk { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .5px; }
.mb-side { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(120px, auto) auto; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 14px; padding: 8px 10px 8px 12px; }
.mb-pick { min-width: 0; font-size: 14px; }
.mb-price { font-weight: 800; color: var(--accent); display: grid; text-align: right; line-height: 1.2; }
.mb-fee { font-size: 10.5px; color: var(--dim); font-weight: 600; }
.mb-book { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; font-weight: 600; min-width: 0; }
.mb-book .bchip { width: 26px; height: 26px; border-radius: 8px; font-size: 9px; grid-row: auto; flex: none; }
.mb-book .ext { opacity: .6; }
.mb-stake { font-size: 13px; color: var(--muted); white-space: nowrap; }
.mb-stake b { color: var(--text); }
.mb-foot { font-size: 13px; color: var(--muted); }
.mb-foot b { color: var(--text); }
.mb-foot b.up { color: var(--accent); }
.mb-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mb-actions .link-btn { display: inline-flex; align-items: center; gap: 6px; }
.panel-money .none { color: var(--muted); font-size: 14px; background: var(--surface); border-radius: var(--radius); padding: 16px; margin: 0; }

/* ---------- alerts ---------- */
.alerts-box { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.al-head h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.al-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.al { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 14px; padding: 8px 8px 8px 14px; }
.al-main { display: grid; min-width: 0; }
.al-l { font-weight: 700; font-size: 14px; }
.al-s { font-size: 12px; color: var(--muted); }
.al-badge { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); }
.al.st-sent .al-badge { background: var(--accent); color: var(--accent-ink); }
.al.st-expired { opacity: .65; }
.al .x { width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--bg); color: var(--muted); font-size: 18px; cursor: pointer; }
.al-modes { border: 0; padding: 0; margin: 12px 0 0; }
.al-modes legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; }
.al-modes .chk { align-items: center; margin-top: 8px; color: var(--text); flex-wrap: wrap; }
.al-target { width: 80px; background: var(--surface-2); color: var(--text); border: 2px solid transparent; border-radius: 10px; padding: 6px 8px; font: 700 14px var(--font); }
.al-target:focus { border-color: var(--accent); outline: none; }

@media (max-width: 860px) {
  .mb-side { grid-template-columns: minmax(0, 1fr) auto; }
  .mb-book, .mb-stake { grid-column: auto; }
  .mb-stake { text-align: right; }
  .cta-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bd-table { font-size: 12.5px; }
  .bd-table th, .bd-table td { padding: 8px 4px; }
}

/* ---------- game tabs + search ---------- */
.gtabs { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.gtitle { font-weight: 800; font-size: 14px; flex-basis: 100%; min-width: 0; margin-bottom: 2px; }
.gtitle .at { color: var(--muted); font-weight: 600; }
.gtab { border: 0; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 8px 13px; min-height: 38px; font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.gtab svg { color: var(--accent); }
.gtab .count { font-weight: 600; opacity: .8; }
.gtab.none { opacity: .7; }
.gtab[aria-selected="true"] { background: var(--text); color: var(--bg); }
.gtab[aria-selected="true"] svg { color: var(--bg); }
.props-empty { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 16px; padding: 14px; font-size: 14px; }
.props-empty svg { color: var(--accent); flex: none; margin-top: 2px; }
.board-search { margin: 0 0 10px; }
.bsearch { width: 100%; background: var(--surface); color: var(--text); border: 2px solid transparent; border-radius: 16px; padding: 13px 16px; font: 500 15px var(--font); outline: none; }
.bsearch:focus { border-color: var(--accent); }
.search-note { margin: -2px 0 10px; font-size: 13px; color: var(--muted); }
.tabs.dim { opacity: .45; }
.sr-player { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.sr-player svg { color: var(--accent); }
.prop-grid.sr .player { color: var(--muted); font-size: 13px; }
.al-modes .chk input.al-target { width: 84px; height: auto; margin: 0 2px; accent-color: auto; }
@media (max-width: 419px) {
  .brand { font-size: 19px; white-space: nowrap; }
  .brand-mark { width: 26px; height: 26px; margin-right: 7px; }
  .topbar .state-btn { padding: 10px 12px; font-size: 13px; }
  .acct-btn { max-width: 96px; }
}
@media (max-width: 340px) {
  .brand { font-size: 0; }
  .brand-mark { width: 32px; height: 32px; margin-right: 0; }
}

/* ---------- my books + bet slip (v9) ---------- */
.mine-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--muted); border-radius: 999px; padding: 8px 13px; min-height: 36px; font: 600 13px var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.row .bk .betbtn { margin-left: auto; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--text); font: 700 12px var(--font); padding: 6px 12px; min-height: 30px; cursor: pointer; }
.row .bk .betbtn:hover { background: var(--accent); color: var(--accent-ink); }
.row.best .bk .betbtn { background: var(--accent); color: var(--accent-ink); }
button.open-best { font-family: var(--font); }
.mybooks-line { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.slip-h { font-size: 13px; color: var(--muted); font-weight: 600; margin: 16px 0 6px; }
.slip-legs { list-style: none; margin: 0; padding: 0; counter-reset: sl; }
.slip-legs li { counter-increment: sl; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.slip-legs li::before { content: counter(sl); width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.sl-what { display: grid; gap: 2px; min-width: 0; }
.sl-what b { font-size: 14px; overflow-wrap: anywhere; }
.sl-px { font-weight: 700; font-size: 14px; }
.slip-add { text-decoration: none; color: var(--text); display: inline-grid; place-items: center; white-space: nowrap; }
.slip-add.done { background: var(--accent-soft); color: var(--muted); }
.slip-all { margin-top: 14px; }
.hl { color: var(--accent); }
.slip-actions { gap: 10px; flex-wrap: wrap; align-items: center; }
.slip-actions .cta.ghost { margin-top: 0; width: auto; padding: 12px 16px; min-height: 44px; font-size: 14px; }
.mb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mb-item { display: flex; align-items: center; gap: 9px; background: var(--surface-2); border-radius: 14px; padding: 9px 11px; cursor: pointer; min-height: 48px; flex-wrap: wrap; }
.mb-item input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.mb-item .bchip { width: 26px; height: 26px; border-radius: 8px; font-size: 9px; grid-row: auto; flex: none; }
.mb-item .mb-name { font-weight: 600; font-size: 14px; }
.mb-item.na { opacity: .7; }
.mb-item:has(input:checked) { outline: 2px solid var(--accent); }
#myBooksDialog .modal-card, #betDialog .modal-card { max-height: 88vh; overflow: auto; }
@media (max-width: 480px) {
  .mb-grid { grid-template-columns: 1fr; }
  .slip-legs li { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .slip-legs li .slip-add, .slip-legs li > .muted { grid-column: 2 / -1; justify-self: start; }
  .modal-card { padding: 20px 18px; }
}

/* iPhone notch / status bar: keep the top bar clear of it (installed web app and the iPhone app) */
.topbar { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
/* 21+ gate (iPhone app) */
.age-btns { gap: 14px; align-items: center; }
#ageDialog .rg { margin-top: 16px; font-size: 12.5px; }

/* ---------- "Good to know" panel ---------- */
.know-btn { display: inline-flex; align-items: center; gap: 7px; }
.know-btn svg { color: var(--accent); flex: none; }
.know-card { position: relative; }
.know-jump { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; }
.know-jump .chip { min-height: 36px; padding: 7px 12px; font-size: 12.5px; }
.know-jump .chip:hover { background: var(--accent-soft); }
.know-now { margin-top: 14px; background: var(--bg-2); border-radius: 18px; padding: 14px 16px; }
.know-now h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.know-now ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.know-now li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.45; }
.know-now p { margin: 10px 0 0; }
.know-sec { border-radius: 16px; padding: 2px 10px; margin: 0 -10px; }
.know-sec.flash { animation: knowflash 1.6s ease-out; }
@keyframes knowflash { 0% { background: var(--accent-soft); } 100% { background: transparent; } }
.know-list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 9px; }
.know-list li { font-size: 14px; line-height: 1.5; color: var(--muted); }
.know-list li::marker { color: var(--accent); }
.know-list li b { color: var(--text); }
.know-list .link-btn { padding: 0; font-size: inherit; color: var(--accent); }
.know-foot { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.foot-know { padding: 0; font-size: 12.5px; color: var(--text); }
.props-empty .link-btn, .empty-msg .link-btn, .panel-money .lede .link-btn, .al-field .link-btn { padding: 0; font-size: inherit; color: var(--accent); }
@media (max-width: 480px) {
  .know-now li { grid-template-columns: 1fr; gap: 0; }
  .know-now li b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .know-sec.flash { animation: none; } }
.know-pill { display: none; align-items: center; gap: 7px; border: 0; background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 8px 13px; min-height: 36px; font: 600 12.5px var(--font); cursor: pointer; text-align: left; margin: 2px 0 12px; }
.know-pill svg { color: var(--accent); flex: none; }
@media (max-width: 1100px) { .know-txt { display: none; } .know-btn { padding: 0; width: 44px; justify-content: center; } }
@media (max-width: 860px) { .topbar .know-btn { display: none; } .know-pill { display: inline-flex; } }

/* share dialog: preview of the picture texts will show */
.share-preview { position: relative; margin: 14px 0 6px; aspect-ratio: 1200 / 630; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.share-preview img { display: block; width: 100%; height: 100%; }
.share-preview img[hidden] { display: none; }
.share-preview span { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.share-preview span[hidden] { display: none; }
.share-preview img:not([hidden]) + span { top: auto; bottom: 10px; transform: none; padding: 8px 10px; border-radius: 10px; background: rgba(17, 10, 36, .88); color: var(--text); }
.share-preview.loading { animation: share-pulse 1.2s ease-in-out infinite alternate; }
@keyframes share-pulse { from { opacity: .55; } to { opacity: 1; } }
#shareDialog .modal-actions { flex-wrap: wrap; gap: 10px 14px; }
#shareDialog .modal-actions .cta.ghost { margin-top: 0; }
#shareDialog .cta:disabled { opacity: .55; cursor: default; }
@media (max-width: 420px) { #shareDialog .modal-actions .cta { padding: 13px 16px; } }

/* membership */
.plan-line { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.plan-badge { display: inline-block; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
.plan-chip { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.acct-actions a.link-btn { display: inline-block; }
.save-quota:empty { display: none; }
.plan-card { max-height: 90vh; overflow: auto; }
.plan-kicker { margin: 0 0 10px; background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.plan-intervals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 12px; }
.plan-int { display: grid; gap: 2px; text-align: left; background: var(--surface-2); border: 2px solid transparent; border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.plan-int b { font-size: 18px; }
.plan-int span { font-size: 12.5px; color: var(--muted); }
.plan-int[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.plan-card .cta:disabled { opacity: .55; cursor: default; }
.plan-note { margin: 8px 0 0; text-align: center; }
.plan-note:empty { display: none; }
.plan-h { margin: 18px 0 6px; font-size: 15px; }
.plan-compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan-compare th { text-align: left; font-weight: 500; padding: 7px 0; border-bottom: 1px solid var(--line); }
.plan-compare td { text-align: right; padding: 7px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.plan-compare tr.me th, .plan-compare tr.me td { color: var(--accent); font-weight: 800; }
.plan-code { margin-top: 6px; }
.plan-code-row { display: flex; gap: 8px; }
.plan-code-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .5px; }
