/* Betist.ai — design tokens & components (dark-first)
   Deliverable per design brief §7. Vanilla CSS, no build tools. */

/* ── Tokens ── */
:root {
  --bg: #07090f;
  --sf: #0d1117;      /* surface / panel */
  --sf2: #131a26;     /* raised surface */
  --bdr: #1e2a3a;     /* border */
  --tx: #e2e8f4;      /* text */
  --mu: #6b7d96;      /* muted text */
  --ac: #2fbf71;      /* brand accent (green) */
  --ac-fg: #06130c;   /* text on accent */
  --safe: #22c55e;
  --normal: #4c7eff;
  --risk: #f97316;
  --won: #22c55e;
  --lost: #ef4444;
  --font-ui: 'Space Grotesk', system-ui, sans-serif;
  --font-num: 'JetBrains Mono', monospace;
  --radius: 12px;
}
[data-theme="light"] {
  --bg: #f8fafc; --sf: #ffffff; --sf2: #f1f5f9; --bdr: #e2e8f0;
  --tx: #0f172a; --mu: #64748b; --ac: #15915a; --ac-fg: #ffffff;
  --safe: #16a34a; --normal: #3b6eff; --risk: #ea6c0a;
  --won: #16a34a; --lost: #dc2626;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-ui); background: var(--bg); color: var(--tx); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: var(--ac); }
a:hover { opacity: .8; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
select { -webkit-appearance: none; appearance: none; }
.num { font-family: var(--font-num); }

/* ── Layout ── */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
main.page { padding: 28px 20px 64px; }  /* horizontal padding must match .container (this rule outranks it) */

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--bg); border-bottom: 1px solid var(--bdr); height: 58px; display: flex; align-items: center; }
.site-header .container { display: flex; align-items: center; gap: 0; }
.logo { display: flex; align-items: baseline; margin-right: 32px; flex-shrink: 0; }
.logo .word { font-size: 20px; font-weight: 700; letter-spacing: -.04em; color: var(--tx); }
.logo .dot { font-size: 20px; font-weight: 700; color: var(--ac); }
.logo .tld { font-size: 13px; font-weight: 500; color: var(--mu); }
.main-nav { display: flex; gap: 2px; flex: 1; }
.main-nav a { padding: 6px 13px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--mu); }
.main-nav a.active, .main-nav a:hover { background: var(--sf2); color: var(--tx); opacity: 1; }
.header-controls { display: flex; align-items: center; gap: 8px; }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap select { background: var(--sf); color: var(--tx); border: 1px solid var(--bdr); border-radius: 8px; padding: 6px 28px 6px 10px; font-size: 14px; font-weight: 500; outline: none; cursor: pointer; }
.select-wrap::after { content: "▼"; position: absolute; right: 9px; pointer-events: none; font-size: 9px; color: var(--mu); }
.theme-toggle { display: flex; align-items: center; gap: 5px; background: var(--sf); border: 1px solid var(--bdr); border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ── Buttons ── */
.btn-primary { background: var(--ac); color: var(--ac-fg); border-radius: 12px; padding: 14px 32px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.btn-secondary { background: var(--sf); color: var(--tx); border: 1px solid var(--bdr); border-radius: 12px; padding: 14px 28px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.btn-small { background: var(--sf); color: var(--tx); border: 1px solid var(--bdr); border-radius: 10px; padding: 9px 18px; font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ── Stat tiles ── */
.stat-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.stat-tile { background: var(--sf); border: 1px solid var(--bdr); border-radius: var(--radius); padding: 14px 18px; min-width: 128px; }
.stat-tile .label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--mu); margin-bottom: 6px; }
.stat-tile .value { font-family: var(--font-num); font-size: 24px; font-weight: 600; line-height: 1; }
.stat-tile .value.pos { color: var(--won); }
.stat-tile .value.neg { color: var(--lost); }
.stat-tile .value.ac { color: var(--ac); }
.stat-tile .sub { font-size: 12px; color: var(--mu); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
/* Next Kickoff tile: match name primary (≤2 lines), tip secondary, countdown small */
.kick-tile { min-width: 200px; max-width: 280px; }
.kick-tile .kick-match { font-size: 17px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kick-tile .kick-tip { font-size: 13px; font-weight: 600; color: var(--ac); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Tier badges (reused everywhere) ── */
.tier-badge { display: inline-flex; border-radius: 5px; padding: 3px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; flex-shrink: 0; white-space: nowrap; }
.tier-badge.lg { padding: 4px 10px; font-size: 12px; border-radius: 6px; }

/* ── Bet card (see §4 of brief — the core component) ── */
.bet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.bet-card { background: var(--sf); border: 1px solid var(--bdr); border-radius: var(--radius); padding: 13px 14px; }
.bet-card.won  { border-color: color-mix(in srgb, var(--won) 20%, transparent); }
.bet-card.lost { border-color: color-mix(in srgb, var(--lost) 18%, transparent); }
.bet-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.bet-card .meta { min-width: 0; flex: 1; margin-right: 8px; }
.bet-card .competition { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--mu); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bet-card .match { font-size: 16px; font-weight: 700; line-height: 1.25; }

/* ── Tier group headers (picks page) ── */
.tier-group { margin-bottom: 26px; }
.tier-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tier-group-head .sub { font-size: 13px; color: var(--mu); }

/* ── Chart panel ── */
.chart-panel { background: var(--sf); border: 1px solid var(--bdr); border-radius: 16px; padding: 22px 24px; margin-bottom: 28px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.chart-title { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.chart-caption { font-size: 13px; color: var(--mu); }
.chart-controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.chart-legend { display: flex; gap: 14px; align-items: center; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mu); }
.legend-swatch { width: 22px; height: 2.5px; border-radius: 2px; flex-shrink: 0; }
.segmented { display: flex; gap: 2px; background: var(--sf2); border: 1px solid var(--bdr); border-radius: 10px; padding: 3px; flex-shrink: 0; }
.segmented button { padding: 5px 11px; border-radius: 7px; font-size: 13px; color: var(--mu); }
.segmented button.active { background: var(--sf); color: var(--tx); font-weight: 600; }
#equity-chart svg { width: 100%; height: 200px; display: block; overflow: visible; }

/* ── Filters row ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filters input[type="text"] { background: var(--sf); color: var(--tx); border: 1px solid var(--bdr); border-radius: 8px; padding: 7px 12px; font-size: 15px; outline: none; min-width: 150px; flex: 1; max-width: 220px; }
.filters select { background: var(--sf); color: var(--tx); border: 1px solid var(--bdr); border-radius: 8px; padding: 7px 26px 7px 11px; font-size: 14px; outline: none; cursor: pointer; }
.tier-filter-btn { padding: 5px 11px; border-radius: 6px; font-size: 13px; border: 1px solid var(--bdr); background: var(--sf); color: var(--mu); white-space: nowrap; }
.tier-filter-btn.active { font-weight: 600; }
.tier-filter-btn.active[data-tier="all"]    { background: var(--sf2); color: var(--tx); }
.tier-filter-btn.active[data-tier="safe"]   { background: color-mix(in srgb, var(--safe) 13%, transparent);   color: var(--safe);   border-color: color-mix(in srgb, var(--safe) 27%, transparent); }
.tier-filter-btn.active[data-tier="normal"] { background: color-mix(in srgb, var(--normal) 13%, transparent); color: var(--normal); border-color: color-mix(in srgb, var(--normal) 27%, transparent); }
.tier-filter-btn.active[data-tier="risky"]  { background: color-mix(in srgb, var(--risk) 13%, transparent);   color: var(--risk);   border-color: color-mix(in srgb, var(--risk) 27%, transparent); }

/* ── Multi-select dropdown, tag-style (createMultiSelect in app.js) ── */
.mselect { position: relative; }
.mselect-ctl { display: flex; align-items: center; gap: 6px; background: var(--sf); border: 1px solid var(--bdr); border-radius: 8px; padding: 4px 28px 4px 6px; min-height: 36px; font-size: 14px; cursor: pointer; position: relative; max-width: 100%; }
.mselect-ctl:focus-visible { outline: 2px solid var(--ac); outline-offset: 1px; }
.mselect-ctl .caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--mu); transition: transform .15s ease; }
.mselect.open .mselect-ctl { border-color: color-mix(in srgb, var(--ac) 45%, var(--bdr)); }
.mselect.open .mselect-ctl .caret { transform: translateY(-50%) rotate(180deg); }
.mselect-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.mselect-placeholder { color: var(--tx); font-weight: 500; padding: 2px 5px; white-space: nowrap; }
.mschip { display: inline-flex; align-items: center; gap: 3px; background: var(--sf2); border: 1px solid var(--bdr); border-radius: 6px; padding: 2px 3px 2px 8px; font-size: 13px; font-weight: 500; white-space: nowrap; max-width: 150px; }
.mschip .txt { overflow: hidden; text-overflow: ellipsis; }
.mschip .x { border-radius: 4px; padding: 0 5px; color: var(--mu); font-size: 15px; line-height: 1.25; }
.mschip .x:hover { background: var(--bdr); color: var(--tx); }
.mselect-panel { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 150; min-width: 200px; max-width: min(300px, calc(100vw - 32px)); max-height: 320px; overflow-y: auto; background: var(--sf); border: 1px solid var(--bdr); border-radius: 10px; padding: 6px; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.mselect-panel.align-right { left: auto; right: 0; }
.mselect.open .mselect-panel { display: block; }
/* extra specificity: must beat `.filters input[type="text"]` when nested in .filters */
.mselect-panel input.mselect-search { width: 100%; min-width: 0; max-width: none; flex: none; background: var(--sf2); border: 1px solid var(--bdr); border-radius: 7px; padding: 7px 10px; font-size: 15px; color: var(--tx); outline: none; margin-bottom: 6px; }
.mselect-panel input.mselect-search:focus { border-color: color-mix(in srgb, var(--ac) 45%, var(--bdr)); }
.mselect-item { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; font-size: 14px; color: var(--tx); text-align: left; }
.mselect-item:hover, .mselect-item:focus-visible { background: var(--sf2); }
.mselect-item:focus-visible { outline: 2px solid var(--ac); outline-offset: -2px; }
.mselect-item .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mselect-item .swatch { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mselect-item .tick { color: var(--ac); font-weight: 700; visibility: hidden; flex-shrink: 0; }
.mselect-item.sel { background: color-mix(in srgb, var(--ac) 9%, transparent); }
.mselect-item.sel .tick { visibility: visible; }
.mselect-item.sel:hover { background: color-mix(in srgb, var(--ac) 14%, transparent); }
.mselect-item.all { font-weight: 600; }
.mselect-sep { height: 1px; background: var(--bdr); margin: 5px 2px; }

/* ── Chart footer stats (inside .chart-panel — same range + tier scope as the chart) ── */
.chart-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--bdr); margin-top: 18px; padding-top: 16px; }
.chart-stats:empty { display: none; }
.chart-stats .cs-tile { padding: 0 18px; border-left: 1px solid var(--bdr); min-width: 0; }
.chart-stats .cs-tile:first-child { border-left: none; padding-left: 0; }
.chart-stats .label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--mu); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-stats .value { font-family: var(--font-num); font-size: 23px; font-weight: 600; line-height: 1.1; }
.chart-stats .value.pos { color: var(--won); }
.chart-stats .value.neg { color: var(--lost); }
.chart-stats .sub { font-size: 12px; color: var(--mu); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── "Tracking since" badge (public ledger start) ── */
.since-badge { display: inline-flex; align-items: center; margin-top: 8px; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); background: color-mix(in srgb, var(--ac) 8%, transparent); border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ac); white-space: nowrap; }

/* ── History table: THE ROOT CAUSE of defect 4's mobile overflow ──
   This whole block is the ORIGINAL, pre-item-9 classic desktop table
   (hand-scrollable, hence min-width:700px to force horizontal scroll on
   phones). item-16-ext moved results.js onto the shared .tp-table/.tpt-*
   system months ago and scoreboard.css's own dead copy of this was found
   and removed — but THIS copy, in a DIFFERENT file, was missed: min-width
   on a property scoreboard.css's `.tp-table {width:100%}` never touches
   (width and min-width don't override each other — min-width is a floor
   width can never go below) kept forcing the table to 700px regardless of
   viewport, pushing odds/stake/result off-screen on mobile. Found via
   live getMatchedCSSRules() inspection after the scoreboard.css fix alone
   didn't resolve it. `.history-table` stays on the markup as a hook with
   TRULY zero CSS now (verified: no other rule in either stylesheet
   targets it). .pnl/.status-badge are dead here too — same fate as their
   scoreboard.css duplicates, daily.js's day-expansion rows (defect 5)
   moved onto .tpt-res/resMark(), the only place either was still used. */

/* ── Pagination (results history + daily report) ── */
.load-more-wrap { display: flex; justify-content: center; margin-top: 14px; }
.daily-more { display: block; width: 100%; padding: 13px; font-size: 14px; font-weight: 600; color: var(--ac); text-align: center; }
.daily-more:hover { background: var(--sf2); }

/* ── Daily report ── */
.daily-panel { background: var(--sf); border: 1px solid var(--bdr); border-radius: var(--radius); overflow: hidden; }
.daily-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--bdr); }
.daily-row:hover { background: var(--sf2); }
.daily-row .date { font-family: var(--font-num); font-size: 13px; color: var(--mu); min-width: 74px; flex-shrink: 0; }
.daily-row .picks { font-size: 13px; color: var(--mu); min-width: 56px; flex-shrink: 0; }
.daily-row .wl { font-family: var(--font-num); font-size: 13px; font-weight: 600; min-width: 58px; flex-shrink: 0; }
.daily-row .staked { font-size: 13px; color: var(--mu); min-width: 78px; flex-shrink: 0; }
.daily-row .profit { font-family: var(--font-num); font-size: 14px; font-weight: 700; min-width: 76px; flex-shrink: 0; }
.daily-row .profit.pos { color: var(--won); } .daily-row .profit.neg { color: var(--lost); }
.daily-row .bar-track { flex: 1; height: 4px; background: var(--sf2); border-radius: 2px; overflow: hidden; min-width: 40px; }
.daily-row .bar { height: 100%; border-radius: 2px; background: var(--won); }
.daily-row .bar.neg { background: var(--lost); }

/* ── Marketing (home) ── */
.hero { text-align: center; padding-block: 96px 72px; }   /* width: shell */
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--sf); border: 1px solid var(--bdr); border-radius: 20px; padding: 5px 14px 5px 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--ac); margin-bottom: 28px; white-space: nowrap; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ac); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.hero h1 { font-size: clamp(42px, 7.5vw, 84px); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; margin-bottom: 22px; text-wrap: balance; }
.hero h1 .accent { color: var(--ac); }
.hero p { font-size: 19px; color: var(--mu); line-height: 1.65; max-width: 540px; margin: 0 auto 40px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.band { background: var(--sf); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); padding: 40px 24px; }
.proof-band { max-width: 900px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 64px; }
.proof-stat { text-align: center; }
.proof-stat .value { font-family: var(--font-num); font-size: 40px; font-weight: 700; color: var(--ac); line-height: 1; margin-bottom: 6px; }
.proof-stat .label { font-size: 14px; color: var(--mu); }
.section { padding-block: 80px; }   /* width: shell */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: 38px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--mu); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.step-card { background: var(--sf); border: 1px solid var(--bdr); border-radius: 16px; padding: 32px; position: relative; overflow: hidden; }
.step-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ac); opacity: .35; }
.step-num { font-family: var(--font-num); font-size: 12px; font-weight: 600; color: var(--ac); margin-bottom: 18px; opacity: .8; }
.step-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.step-card p { font-size: 15px; color: var(--mu); line-height: 1.65; text-wrap: pretty; }
.tier-card { display: flex; flex-direction: column; border: 1px solid var(--bdr); border-radius: 16px; padding: 32px; position: relative; overflow: hidden; background: var(--bg); }
.tier-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.tier-card.safe::before   { background: var(--safe); }
.tier-card.normal::before { background: var(--normal); }
.tier-card.risky::before  { background: var(--risk); }
.tier-card.safe   { border-color: color-mix(in srgb, var(--safe) 20%, transparent); }
.tier-card.normal { border-color: color-mix(in srgb, var(--normal) 20%, transparent); }
.tier-card.risky  { border-color: color-mix(in srgb, var(--risk) 20%, transparent); }
.tier-card .tier-badge { align-self: flex-start; margin-bottom: 18px; }
.tier-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.2; }
.tier-card p { font-size: 15px; color: var(--mu); line-height: 1.65; margin-bottom: 16px; text-wrap: pretty; flex: 1; }
.tier-card .volume { font-size: 13px; color: var(--mu); }
.tier-card .volume strong { font-family: var(--font-num); }
.tier-card.safe .volume strong { color: var(--safe); }
.tier-card.normal .volume strong { color: var(--normal); }
.tier-card.risky .volume strong { color: var(--risk); }
.cta-band { text-align: center; padding: 72px 24px 8px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 10px; }
.cta-band p { font-size: 17px; color: var(--mu); margin-bottom: 28px; }
.trust-section { padding-block: 72px; text-align: center; }   /* width: shell */
.trust-card { background: var(--sf); border: 1px solid var(--bdr); border-radius: 20px; padding: 40px 44px; }
.trust-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ac); margin-bottom: 20px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.trust-chip { background: var(--sf2); border: 1px solid var(--bdr); border-radius: 7px; padding: 6px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.trust-card .legal { font-size: 14px; color: var(--mu); line-height: 1.7; text-wrap: pretty; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--bdr); padding: 28px 24px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--mu); }
.copyright { font-size: 13px; color: var(--mu); }

/* ── Contact ── */
.contact-page { padding-block: 80px; }   /* width: shell */
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ac); margin-bottom: 16px; }
.eyebrow.mu { color: var(--mu); }
.contact-page h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 20px; }
.contact-page .pitch { font-size: 18px; color: var(--mu); line-height: 1.7; text-wrap: pretty; }
.contact-email { font-size: clamp(24px, 4vw, 42px); font-weight: 700; letter-spacing: -.03em; color: var(--ac); display: block; line-height: 1.15; }
/* ── Contact form ── */
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-bottom: 52px; background: var(--sf); border: 1px solid var(--bdr); border-radius: 16px; padding: 28px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.cf-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--mu); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { background: var(--sf2); color: var(--tx); border: 1px solid var(--bdr); border-radius: 10px; padding: 11px 13px; font-size: 15px; font-family: inherit; outline: none; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { border-color: color-mix(in srgb, var(--ac) 45%, var(--bdr)); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.cf-count { position: absolute; right: 2px; top: 0; font-size: 11px; color: var(--mu); }
.cf-challenge input { max-width: 140px; }
.cf-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.cf-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cf-actions .btn-primary:disabled { opacity: .6; cursor: default; }
.cf-status { font-size: 14px; color: var(--mu); }
.cf-status.err { color: var(--lost); }
.cf-success { padding: 14px 4px; font-size: 16px; font-weight: 600; color: var(--won); }

.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: flex; align-items: center; gap: 8px; background: var(--sf); border: 1px solid var(--bdr); border-radius: 10px; padding: 12px 18px; font-size: 15px; font-weight: 500; color: var(--tx); white-space: nowrap; }

/* ── Page headers (picks/results) ── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.page-head .live-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.page-head .live-label { font-size: 13px; color: var(--mu); }
.page-head .intro { font-size: 15px; color: var(--mu); max-width: 520px; }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.history-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
/* OWNER (2026-07-23): on narrow widths .history-head wraps its two children
   (title, toolbar) onto separate lines -- justify-content: space-between has
   nothing to distribute once a line holds only one item, so the toolbar fell
   back to flex-start (left) instead of staying right-aligned. margin-left:auto
   pins it right regardless of how the parent wraps. */
.history-toolbar-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--mu); font-size: 15px; font-weight: 600; }

/* ── Responsive (360px → 1440px) ── */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  main.page { padding: 20px 16px 56px; }

  /* Header: two rows — logo + controls on top, full-width scrollable nav below.
     Currency + theme stay reachable; nav links get ≥44px tap height. */
  .site-header { height: auto; padding-top: 8px; }
  .site-header .container { flex-wrap: wrap; }
  .logo { margin-right: auto; }
  .header-controls { flex-shrink: 0; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin-top: 4px; padding-bottom: 6px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { display: inline-flex; align-items: center; white-space: nowrap; padding: 10px 12px; font-size: 14px; min-height: 44px; }

  /* Tap targets ≥ 44px for the interactive controls. The header sign-in / CTA
     links must match the selects' 44px here or the header row sits uneven on
     mobile (owner 2026-08-05: "sign-in button not on the same level"). */
  .select-wrap select, .theme-toggle, .mselect-ctl, .filters input[type="text"],
  .header-controls .account-link, .header-controls .sb-header-cta { min-height: 44px; }
  .segmented button { padding: 9px 12px; }
  .mselect-item { padding: 12px 10px; }
  .mschip .x { padding: 2px 7px; }
  .mselect-panel input.mselect-search { font-size: 16px; }  /* ≥16px so mobile browsers don't zoom on focus */

  /* Results filter bar: full-width search row, then the three dropdowns
     sharing one compact row (placeholders/chips truncate) */
  .filters .mselect .mselect-ctl { width: 100%; }
  .filters .mselect .mschip { max-width: 100%; }

  /* Chart card: tighter padding, natural SVG height (mobile viewBox is 420 wide) */
  .chart-panel { padding: 16px 14px; }
  #equity-chart svg { height: auto; }

  /* Stat band inside the chart card → 2×2 grid */
  .chart-stats { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .chart-stats .cs-tile { border-left: none; padding: 0 12px 0 0; }
  .chart-stats .cs-tile:nth-child(even) { border-left: 1px solid var(--bdr); padding: 0 0 0 14px; }
  .chart-stats .value { font-size: 20px; }

  /* Stat strip (picks page) → 2×2 grid; 1fr rows keep tile heights consistent
     even when the Next Kickoff tile carries more content */
  .stat-strip { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }
  .stat-tile { min-width: 0; padding: 12px 14px; }
  .stat-tile .value { font-size: 21px; }

  /* History: table layout is swapped to cards by JS; hide its toggle */
  .bet-grid { grid-template-columns: 1fr 1fr; }

  /* Daily report rows: compact so nothing forces horizontal scroll at 360px */
  .daily-row { gap: 10px; padding: 10px 14px; }
  .daily-row .date { min-width: 56px; }
  .daily-row .picks { min-width: 48px; }
  .daily-row .wl { min-width: 48px; }
  .daily-row .staked { display: none; }
  .daily-row .profit { min-width: 62px; }
  .daily-row .bar-track { min-width: 28px; }

  /* Marketing (index): stack with sane spacing */
  .hero { padding: 56px 16px 44px; }
  .hero p { font-size: 17px; margin-bottom: 32px; }
  .section { padding: 56px 16px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 30px; }
  .band { padding: 32px 16px; }
  .proof-band { gap: 24px 36px; }
  .proof-stat .value { font-size: 32px; }
  .step-card, .tier-card { padding: 24px; }
  .trust-card { padding: 28px 22px; }
  .cta-band { padding: 56px 16px 8px; }

  /* Page head (picks): stack title block and CTA */
  .page-head { align-items: flex-start; }

  /* Contact */
  .contact-page { padding: 56px 16px; }
  .contact-form { padding: 20px 16px; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { font-size: 16px; }  /* no mobile zoom */
}
@media (max-width: 480px) {
  /* 360–430px: single-column cards everywhere */
  .bet-grid { grid-template-columns: 1fr; }
  .theme-toggle span.txt { display: none; }
}
