/* SharpCue — sharpcue.css
   Single stylesheet for all pages.
   Design: dark trading terminal aesthetic.
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Scrollbars: thin & unobtrusive ────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(42,58,88,0.6) transparent;
}
*::-webkit-scrollbar          { width: 3px; height: 3px; }
*::-webkit-scrollbar-track    { background: transparent; }
*::-webkit-scrollbar-thumb    { background: rgba(42,58,88,0.6); border-radius: 2px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(42,58,88,1); }
*::-webkit-scrollbar-corner   { background: transparent; }

:root {
  --bg:           #0a0f1a;
  --surface:      #131c2e;
  --surface2:     #1a2540;
  --border:       #2a3a58;
  --border2:      #1e2d45;
  --text:         #f0f4ff;
  --muted:        #a8b8d4;
  --muted2:       #8a9dbe;
  --muted3:       #6a7ea0;
  --accent:       #00ff9d;
  --accent-dim:   rgba(0,255,157,0.10);
  --accent-glow:  rgba(0,255,157,0.35);
  --accent-glow2: rgba(0,255,157,0.18);
  --blue:         #7eb8ff;
  --blue-glow:    rgba(126,184,255,0.4);
  --red:          #ff7b7b;
  --red-glow:     rgba(255,123,123,0.4);
  --yellow:       #ffd166;
  --yellow-dim:   rgba(255,209,102,0.12);
  --yellow-glow:  rgba(255,209,102,0.35);
  --font-mono:    'Copperplate', 'Copperplate Gothic Light', 'Cinzel', fantasy;
  --font-sans:    'Copperplate', 'Copperplate Gothic Light', 'Cinzel', fantasy;
  --radius:       10px;
  --radius-sm:    6px;
  --radius-xs:    4px;
  --sandbox:      #f59e0b;
  --sandbox-dim:  rgba(245,158,11,0.10);
  --sandbox-glow: rgba(245,158,11,0.35);
}

body {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(0,100,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(0,255,157,0.03) 0%, transparent 60%);
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.8; }

/* ── Utility ────────────────────────────────────────────────── */
.mono { font-family: var(--font-mono); }
.green  { color: var(--accent); }
.blue   { color: var(--blue); }
.yellow { color: var(--yellow); }
.red    { color: var(--red); }
.muted  { color: var(--muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-brand span { color: var(--accent); }
.nav-brand-icon { width: 22px; height: 22px; margin-right: 8px; flex-shrink: 0; }
.me-2 { margin-right: 0.5rem; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 17px; transition: color 0.15s; }
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.live-indicator { display: flex; align-items: center; gap: 6px; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
.live-text { color: var(--muted2); font-size: 14px; letter-spacing: 1px; font-family: var(--font-mono); }
.nav-user { font-size: 16px; color: var(--muted); font-family: var(--font-mono); }

/* ── Auto-trade navbar badge ──────────────────────────────── */
.nav-autotrade-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 12px;
  font-size: 9px; font-family: var(--font-mono); font-weight: 700; letter-spacing: 1.5px;
  color: var(--accent); border: 1px solid var(--accent-glow);
  background: rgba(0,255,157,0.07);
  animation: at-badge-glow 2.2s ease-in-out infinite;
  cursor: default;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-autotrade-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: at-dot-blink 1.6s ease-in-out infinite;
}
@keyframes at-badge-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(0,255,157,0.18); }
  50%       { box-shadow: 0 0 14px rgba(0,255,157,0.45), 0 0 24px rgba(0,255,157,0.12); }
}
@keyframes at-dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Nav dropdown ─────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-dropdown-btn:hover { color: var(--text); border-color: var(--muted); }
.nav-dropdown-btn .dd-caret { font-size: 10px; opacity: 0.6; transition: transform 0.15s; }
.nav-dropdown.open .dd-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 170px;
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown-menu a:hover { background: var(--bg); color: var(--text); }
.nav-dropdown-menu a i { font-size: 13px; }
.nav-dropdown-menu a.danger { color: #f87171; }
.nav-dropdown-menu a.danger:hover { background: rgba(248,113,113,0.08); color: #fca5a5; }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Main layout ────────────────────────────────────────────── */
.main { max-width: 1600px; margin: 0 auto; padding: 24px 16px; }

/* ── Flash messages ─────────────────────────────────────────── */
.flash { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 15px; }
.flash.error   { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: #fca5a5; }
.flash.success { background: rgba(0,255,157,.08); border: 1px solid var(--accent-glow); color: var(--accent); }
.flash.warning { background: var(--yellow-dim); border: 1px solid var(--yellow-glow); color: var(--yellow); }
.flash.info    { background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.3); color: var(--blue); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.badge-high       { background: rgba(0,255,157,.1);  color: var(--accent); border: 1px solid var(--accent-glow); }
.badge-medium     { background: var(--yellow-dim);   color: var(--yellow); border: 1px solid var(--yellow-glow); }
.badge-low        { background: rgba(74,90,122,.15); color: var(--muted);  border: 1px solid var(--border); }
.badge-kalshi     { background: rgba(96,165,250,.12);  color: #60a5fa;  border: 1px solid rgba(96,165,250,.4); }
.badge-polymarket { background: rgba(167,139,250,.12); color: #a78bfa;  border: 1px solid rgba(167,139,250,.4); }
.badge-autotrade  { background: rgba(0,255,157,.08);   color: var(--accent); border: 1px solid var(--accent-glow); font-family: var(--font-mono); letter-spacing: 0.5px; }
/* Live score / context chip shown on cards and in detail panel */
.live-score-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}
.live-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.live-score-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: live-pulse 1.4s ease-in-out infinite;
}
.live-refresh-btn {
  background: none;
  border: none;
  color: var(--muted3);
  font-size: 15px;
  cursor: pointer;
  padding: 0 3px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
  font-family: sans-serif;
}
.live-refresh-btn:hover { color: var(--accent); }
.live-refresh-btn.spinning {
  color: var(--accent);
  animation: live-spin 0.8s linear infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
/* ── Related picks / game grouping ───────────────────────────────────── */
.game-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted2);
  padding: 10px 4px 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 8px;
}
.game-group-header:first-child {
  border-top: none;
  margin-top: 0;
}
.game-group-icon { font-size: 11px; }
.game-group-count {
  color: var(--accent);
  font-weight: 700;
  margin-left: 4px;
}
.related-game-link-row {
  padding: 8px 0 2px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 10px;
}
.related-game-link-row--pos {
  margin-top: 8px;
  margin-bottom: 2px;
}
.related-game-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.75;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.related-game-link:hover { opacity: 1; text-decoration: underline; }
.related-game-link--inline {
  display: inline;
  font-size: 11px;
  vertical-align: baseline;
  margin-left: 4px;
}

/* ── Game filter banner ───────────────────────────────────────────────── */
.game-filter-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: rgba(0,255,157,0.05);
  border: 1px solid rgba(0,255,157,0.2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.5px;
}
.game-filter-banner strong { color: var(--accent); font-weight: 600; }
.game-filter-clear {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: border-color 0.15s, color 0.15s;
}
.game-filter-clear:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ── Live game indicator ─────────────────────────────────────────────── */
.live-game-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.live-game-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.badge-win        { background: rgba(0,255,157,.1);  color: var(--accent); border: 1px solid var(--accent-glow); }
.badge-loss       { background: rgba(248,113,113,.1);color: var(--red);    border: 1px solid rgba(248,113,113,.3); }
.badge-push       { background: rgba(74,90,122,.15); color: var(--muted);  border: 1px solid var(--border); }
/* Recommendation badge */
.badge-rec {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
  letter-spacing: 0.5px; text-transform: uppercase;
  white-space: nowrap;
  /* reset for when rendered as <button> */
  cursor: pointer; background-clip: padding-box;
  -webkit-appearance: none; appearance: none;
  outline: none; box-shadow: none;
}
button.badge-rec:hover { filter: brightness(1.15); }
.badge-rec-yes { background: rgba(0,255,157,.12); color: var(--accent); border: 1px solid var(--accent-glow); }
.badge-rec-no  { background: rgba(248,113,113,.12); color: var(--red);   border: 1px solid rgba(248,113,113,.3); }
.badge-sandbox    { background: var(--sandbox-dim);  color: var(--sandbox);border: 1px solid var(--sandbox-glow); }

/* ── Mode toggle (Real Bets | SANDBOX) ──────────────────────── */
.mode-toggle {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  cursor: default;
}
.mode-toggle-btn {
  padding: 3px 12px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted2);
  transition: all 0.2s;
}
.mode-toggle-btn.active {
  background: var(--surface2);
  color: var(--text);
}
.mode-toggle-btn.sandbox-btn.active {
  background: var(--sandbox-dim);
  color: var(--sandbox);
  box-shadow: 0 0 8px var(--sandbox-glow);
}
.mode-toggle-btn.trial-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Earthy amber background in sandbox / paper mode */
body.sandbox-mode {
  --bg:       #1c1200;
  --surface:  #261a00;
  --surface2: #302200;
  background: #1c1200;
}

/* Nav: amber underline when in sandbox mode */
.sandbox-mode .nav {
  background: #1f1700;
  border-bottom-color: var(--sandbox);
  box-shadow: 0 2px 12px rgba(245,158,11,0.18);
}

/* Live indicator switches to orange dot + PAPER label in sandbox */
.sandbox-mode .live-dot {
  background: var(--sandbox);
  box-shadow: 0 0 8px var(--sandbox);
}
.sandbox-mode .live-text { color: var(--sandbox); }

/* Server-rendered sandbox indicator for level-0 users */
.live-indicator--sandbox .live-dot { background: var(--sandbox); box-shadow: 0 0 8px var(--sandbox); }
.live-indicator--sandbox .live-text { color: var(--sandbox); }

/* ── Sandbox mode: orange borders on ALL cards ──────────────── */
.sandbox-mode .pick-card               { border-color: rgba(245,158,11,0.25); }
.sandbox-mode .pick-card:hover         { border-color: rgba(245,158,11,0.50); }
.sandbox-mode .pick-card.selected      { border-color: var(--sandbox); background: rgba(245,158,11,0.04); }
.sandbox-mode .pick-card.selected::before {
  background: linear-gradient(90deg, transparent, var(--sandbox), transparent);
}
.sandbox-mode .detail-panel            { border-color: rgba(245,158,11,0.30); }
.sandbox-mode .stat-item,
.sandbox-mode .stat-card               { border-color: rgba(245,158,11,0.25); }
.sandbox-mode .bankroll-card           { border-color: rgba(245,158,11,0.25); }
.sandbox-mode .detail-stat             { border-color: rgba(245,158,11,0.20); }
.sandbox-mode .sandbox-stat            { border-color: rgba(245,158,11,0.25); }
.sandbox-mode .equity-chart            { border-color: rgba(245,158,11,0.25); }
.sandbox-mode .filter-btn.active,
.sandbox-mode .filter-btn:hover        { background: var(--sandbox-dim); border-color: var(--sandbox-glow); color: var(--sandbox); }
.sandbox-mode .tab.active              { border-color: rgba(245,158,11,0.40); color: var(--sandbox); }

/* Sandbox stats bar */
.sandbox-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.sandbox-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.sandbox-stat-label { font-size: 12px; color: var(--muted3); letter-spacing: 0.8px; text-transform: uppercase; font-family: var(--font-mono); }
.sandbox-stat-value { font-size: 22px; font-weight: 700; font-family: var(--font-mono); margin-top: 2px; }
.sandbox-stat-value.positive { color: var(--accent); }
.sandbox-stat-value.negative { color: var(--red); }
.sandbox-stat-value.neutral  { color: var(--sandbox); }

/* Equity curve chart container */
.equity-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.equity-chart-title {
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.equity-chart svg { width: 100%; display: block; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--accent);
  color: #060b14;
}
.btn-primary:hover { opacity: 0.87; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent-glow); color: var(--text); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.stat-card, .stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.stat-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-mono);
}
.stat-sub { color: var(--muted3); font-size: 10px; margin-top: 4px; }

/* ── Tabs row ───────────────────────────────────────────────── */
.tabs-row {
  margin-bottom: 8px;
}
.tabs-row .tabs { margin-bottom: 0; }

/* ── Market filters bar (inside #tab-markets) ──────────────── */
.market-filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.market-filters .filter-btns { margin-bottom: 0; }

/* Three layout groups: left, center (auto-centered), right */
.mf-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.mf-center {
  align-self: center;
}

/* Label + control stacked vertically */
.mf-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mf-label {
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--muted3);
}

/* Search widget */
.mf-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 160px;
  transition: border-color 0.2s;
}
.mf-search-wrap:focus-within { border-color: var(--accent-glow); }
.mf-search-icon {
  position: absolute;
  left: 8px;
  font-size: 11px;
  color: var(--muted3);
  pointer-events: none;
}
.mf-search {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 5px 26px 5px 26px;
  font-size: 12px;
  font-family: var(--font-mono);
  width: 100%;
  outline: none;
}
.mf-search::placeholder { color: var(--muted3); }
.mf-search-clear {
  position: absolute;
  right: 5px;
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted3);
  font-size: 10px;
  cursor: pointer;
  padding: 2px 3px;
  line-height: 1;
  transition: color 0.15s;
}
.mf-search-clear:hover { color: var(--text); }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 20px;
}
.tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.2s;
  font-family: var(--font-mono);
}
.tab.active {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text);
}
.tab-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  vertical-align: middle;
  letter-spacing: 0;
}
.tab.active .tab-count {
  background: rgba(0,255,157,0.12);
  color: var(--accent);
}
.tab-count:empty { display: none; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Dashboard viewport lock (cards + detail scroll independently) ── */
body.dashboard {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.dashboard .main {
  flex: 1;
  min-height: 0;
  width: min(100%, 1600px);
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  padding-bottom: 0;
  overflow: hidden;
}
body.dashboard .tab-panel.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 12px;
}
body.dashboard #tab-markets.tab-panel.active {
  overflow-y: hidden;
  padding-bottom: 0;
}
/* Two-column layout fills remaining height, both columns scroll */
body.dashboard .picks-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 16px;
  overflow: hidden;
}
body.dashboard .picks-list {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 12px;
}
/* Cards must not shrink — they define the scroll height */
body.dashboard .picks-list .pick-card {
  flex-shrink: 0;
}
body.dashboard .detail-panel {
  width: 360px;
  flex-shrink: 0;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: static;
  align-self: auto;
  max-height: none;
  padding-bottom: 12px;
}

/* ── Filter buttons ─────────────────────────────────────────── */
.filters, .filter-btns { display: flex; gap: 8px; margin-bottom: 0; flex-wrap: wrap; }
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  transition: all 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent-glow);
  color: var(--accent);
}
.kalshi-btn.active, .kalshi-btn:hover {
  background: rgba(96,165,250,.12);
  border-color: rgba(96,165,250,.4);
  color: #60a5fa;
}
.polymarket-btn.active, .polymarket-btn:hover {
  background: rgba(167,139,250,.12);
  border-color: rgba(167,139,250,.4);
  color: #a78bfa;
}
/* ── Category tree picker ──────────────────────────────────────────── */
.cat-picker { position: relative; }
.cat-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
  min-width: 150px;
}
.cat-trigger:hover,
.cat-trigger.open,
.cat-trigger.filtered {
  border-color: var(--accent-glow);
  color: var(--accent);
}
.cat-trigger.filtered { background: var(--accent-dim); }
.cat-trigger-caret {
  font-size: 9px;
  color: var(--muted3);
  transition: transform 0.2s;
  line-height: 1;
}
.cat-trigger.open .cat-trigger-caret { transform: rotate(180deg); }
.cat-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 300;
  padding: 4px 0;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  overflow: hidden;
}
.cat-panel.open { display: block; }
.cat-all {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  text-align: left;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s;
  margin-bottom: 2px;
}
.cat-all:hover { color: var(--text); }
.cat-all.active { color: var(--accent); }
.cat-group-hdr {
  display: flex;
  align-items: center;
  padding: 5px 10px 4px 8px;
  gap: 2px;
}
.cat-group-toggle {
  background: none;
  border: none;
  color: var(--muted3);
  font-size: 9px;
  cursor: pointer;
  padding: 3px 5px 3px 3px;
  line-height: 1;
  font-family: var(--font-mono);
  flex-shrink: 0;
  transition: color 0.15s;
}
.cat-group-toggle:hover { color: var(--muted); }
.cat-group-name {
  background: none;
  border: none;
  color: var(--muted3);
  font-size: 12px;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
  padding: 3px 0;
  flex: 1;
  text-align: left;
  font-weight: 700;
  transition: color 0.15s;
}
.cat-group-name:hover { color: var(--muted); }
.cat-group-name.g-active { color: var(--accent); }
.cat-leaves { padding-bottom: 2px; }
.cat-leaf {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  text-align: left;
  padding: 6px 14px 6px 30px;
  font-size: 13px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: color 0.15s;
  letter-spacing: 0.4px;
}
.cat-leaf:hover { color: var(--text); }
.cat-leaf.active { color: var(--accent); font-weight: 600; }
.cat-divider { height: 1px; background: var(--border); margin: 2px 0; }
.cat-count {
  display: inline-block; margin-left: 5px; padding: 1px 5px;
  border-radius: 8px; font-size: 10px; font-family: var(--font-mono);
  background: rgba(255,255,255,0.07); color: var(--muted); vertical-align: middle;
}
.cat-leaf.active .cat-count,
.cat-group-name.g-active .cat-count,
.cat-all.active .cat-count { background: rgba(0,255,157,0.10); color: var(--accent); }

/* ── Picks layout ───────────────────────────────────────────── */
.picks-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
}
.picks-list { display: flex; flex-direction: column; gap: 12px; }

/* ── Pick card ──────────────────────────────────────────────── */
.pick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.pick-card:hover { border-color: var(--muted3); }
.pick-card.selected {
  background: rgba(0,255,157,0.04);
  border-color: var(--accent-glow);
}
.pick-card.selected::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.question-text {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.question-meta { color: var(--muted3); font-size: 13px; margin-top: 3px; font-family: var(--font-mono); letter-spacing: 0.3px; }
.closes-countdown { color: #fff; font-weight: 600; }
.card-top-right { text-align: right; }
.pos-card-icon-row { display: flex; gap: 4px; justify-content: flex-end; margin-top: 6px; }
.direction-yes,
.direction-over { color: var(--blue); font-family: var(--font-mono); font-weight: 700; font-size: 19px; text-shadow: 0 0 12px var(--blue-glow); }
.direction-no,
.direction-under { color: var(--red); font-family: var(--font-mono); font-weight: 700; font-size: 19px; text-shadow: 0 0 12px var(--red-glow); }
.platform-label { color: var(--muted); font-size: 10px; font-family: var(--font-mono); }
.card-body { display: flex; align-items: center; gap: 16px; }
.card-stats { flex: 1; }
.edge-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.edge-label { color: var(--muted); font-size: 14px; letter-spacing: 1px; font-family: var(--font-mono); }
.edge-value { color: var(--accent); font-size: 16px; font-weight: 700; font-family: var(--font-mono); }
.edge-bar-bg { background: var(--border2); border-radius: 4px; height: 6px; overflow: hidden; margin-bottom: 12px; }
.edge-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-glow), var(--accent));
  border-radius: 4px;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.6s ease;
}
.mini-stats { display: flex; gap: 16px; }
.mini-stat-label { color: var(--muted); font-size: 9px; letter-spacing: 1px; font-family: var(--font-mono); }
.mini-stat-val  { color: var(--muted2); font-size: 14px; font-family: var(--font-mono); }
/* Mini bet button — right-justified in card stats row */
.mini-bet-btn {
  margin-left: auto;
  padding: 3px 10px;
  background: var(--sandbox);
  color: #0a0f1a;
  border: none;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  align-self: center;
  transition: opacity 0.15s;
}
.mini-bet-btn:hover { opacity: 0.8; }
.bet-mini-placed {
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  align-self: center;
}

/* ── Sandbox stats bar (above picks list in sandbox mode) ───────── */
.sandbox-bar {
  align-items: center;
  gap: 28px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.22);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sb-stat { display: flex; flex-direction: column; gap: 3px; }
.sb-label { font-size: 9px; letter-spacing: 1px; color: var(--muted3); font-family: var(--font-mono); text-transform: uppercase; }
.sb-val { font-size: 17px; font-family: var(--font-mono); font-weight: 700; color: var(--sandbox); }
.sb-val.positive { color: var(--accent); }
.sb-val.negative { color: var(--red); }
.sb-val.neutral  { color: var(--muted2); }
.sb-hint { margin-left: auto; font-size: 11px; color: var(--muted3); font-family: var(--font-mono); align-self: center; }

/* ── Modal overlay ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.modal-box {
  background: var(--surface);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 12px;
  padding: 28px;
  width: 520px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 60px rgba(245,158,11,0.08);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; }
.modal-tag {
  background: rgba(245,158,11,0.15);
  color: var(--sandbox);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid rgba(245,158,11,0.3);
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted3);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }
.modal-question { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.55; }
.modal-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bet-modal-price-note { font-size: 10px; font-family: var(--font-mono); letter-spacing: 1px; min-height: 14px; text-align: right; }
.modal-stat {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.modal-stat-label { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); font-family: var(--font-mono); margin-bottom: 6px; text-transform: uppercase; }

/* ── Custom tooltip ─────────────────────────────────────────────────────── */
.sc-tip { position: relative; cursor: help; }
.sc-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #e0e0e0;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
}
.sc-tip:hover::after { opacity: 1; }
.modal-stat-val { font-size: 20px; font-family: var(--font-mono); font-weight: 700; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form-row { display: flex; gap: 20px; align-items: flex-end; }
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-field-label { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; }
.side-toggle { display: flex; border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.side-btn {
  flex: 1;
  padding: 7px 20px;
  background: transparent;
  border: none;
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.side-btn.active { background: var(--sandbox); color: #0a0f1a; }
.modal-contracts-input {
  width: 90px;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: center;
}
.modal-contracts-input:focus { outline: none; border-color: var(--sandbox); }
.modal-cost-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.modal-cost-cell { flex: 1; padding: 12px 16px; border-right: 1px solid var(--border); }
.modal-cost-cell:last-child { border-right: none; }
.modal-cost-label { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); font-family: var(--font-mono); margin-bottom: 5px; text-transform: uppercase; }
.modal-cost-val { font-size: 18px; font-family: var(--font-mono); font-weight: 700; color: var(--text); }
.modal-cost-val.accent { color: var(--accent); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
.modal-cancel {
  padding: 9px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.modal-cancel:hover { border-color: var(--muted); color: var(--text); }
.modal-submit {
  padding: 9px 24px;
  background: var(--sandbox);
  border: none;
  border-radius: 4px;
  color: #0a0f1a;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.modal-submit:hover:not(:disabled) { opacity: 0.85; }
.modal-submit:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Detail panel ───────────────────────────────────────────── */
.detail-panel {
  position: sticky;
  top: 76px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-empty {
  text-align: center;
  color: var(--muted3);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 40px 0;
}
.detail-section-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
.detail-question { color: var(--muted); font-weight: 700; font-size: 15px; line-height: 1.45; font-family: var(--font-mono); letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-meta     { color: var(--muted); font-size: 14px; margin-top: 4px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-stat {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid var(--border);
}
.detail-stat-label { color: var(--muted); font-size: 9px; letter-spacing: 1.5px; font-family: var(--font-mono); margin-bottom: 6px; text-transform: uppercase; }
.detail-stat-value { font-size: 22px; font-family: var(--font-mono); font-weight: 700; }
.factors-list { display: flex; flex-direction: column; }
.factor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border2);
}
.factor-row:last-child { border-bottom: none; }
.factor-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}
.factor-text { color: var(--muted); font-size: 16px; }
.action-box {
  background: linear-gradient(135deg, rgba(0,255,157,0.05), rgba(0,100,255,0.05));
  border: 1px solid var(--accent-glow2);
  border-radius: var(--radius);
  padding: 16px;
}
.action-text { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ── Bet rationale callout ──────────────────────────────────── */
.bet-rationale-callout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  flex-wrap: wrap;
}
.bet-rationale-side {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bet-rationale-side--yes { color: var(--accent); }
.bet-rationale-side--no  { color: var(--blue); }
.bet-rationale-callout--no { border-left-color: var(--blue); }
.bet-rationale-why {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Results cards ──────────────────────────────────────────── */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.result-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.result-card--win  { border-color: rgba(0,255,157,0.2); }
.result-card--win::before  { background: linear-gradient(90deg, transparent, rgba(0,255,157,0.65), transparent); }
.result-card--win:hover  { border-color: rgba(0,255,157,0.4); }
.result-card--loss { border-color: rgba(255,100,100,0.2); }
.result-card--loss::before { background: linear-gradient(90deg, transparent, rgba(255,100,100,0.55), transparent); }
.result-card--loss:hover { border-color: rgba(255,100,100,0.4); }

.result-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.result-verdict {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.result-verdict--win {
  color: var(--accent);
  background: rgba(0,255,157,0.1);
  border: 1px solid rgba(0,255,157,0.35);
  text-shadow: 0 0 10px rgba(0,255,157,0.6);
}
.result-verdict--loss {
  color: #ff6464;
  background: rgba(255,100,100,0.1);
  border: 1px solid rgba(255,100,100,0.3);
}
.result-head-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted3);
  text-transform: uppercase;
  margin-left: auto;
}
.result-question-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 14px;
}
.result-fin-item--right {
  margin-left: auto;
  align-items: flex-end;
}
.result-financials {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.result-fin-sep {
  width: 1px; height: 28px;
  background: var(--border);
  align-self: center;
  flex-shrink: 0;
}
.result-fin-item  { display: flex; flex-direction: column; gap: 3px; }
.result-fin-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: var(--muted3); text-transform: uppercase; }
.result-fin-val   { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--muted2); }
.result-fin-val--muted { color: var(--muted3); font-weight: 400; }
.result-pnl--pos  { color: var(--accent); }
.result-pnl--neg  { color: #ff6464; }

/* ── Bankroll tab ───────────────────────────────────────────── */
.bankroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bankroll-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.bankroll-label { color: var(--muted2); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; font-family: var(--font-mono); }
.bankroll-value { font-size: 32px; font-family: var(--font-mono); font-weight: 700; }
.bankroll-note  { color: #8a9ab8; font-size: 15px; line-height: 1.8; }
.full-width { grid-column: 1 / -1; }

/* ── Empty states ───────────────────────────────────────────── */
.empty, .empty-state { text-align: center; padding: 60px 20px; }
.empty h3, .empty-title { font-size: 18px; margin-bottom: 8px; font-family: var(--font-mono); color: var(--muted); }
.empty p, .empty-sub  { font-size: 15px; color: var(--muted2); line-height: 1.7; }
.empty-icon { font-size: 28px; margin-bottom: 12px; opacity: 0.3; }

/* ── Detail placeholder ──────────────────────────────────────── */
.detail-placeholder { text-align: center; padding: 50px 20px; }
.placeholder-icon { font-size: 28px; opacity: 0.2; margin-bottom: 10px; }
.placeholder-text { color: var(--muted3); font-size: 15px; font-family: var(--font-mono); }

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.auth-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.auth-logo span { color: var(--accent); }
.auth-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

/* ── Form elements ──────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
  font-family: var(--font-sans);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-glow);
}

/* ── Trial blur & gates ─────────────────────────────────────── */
.trial-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

/* Trial notice bar */
.trial-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  flex-wrap: wrap;
}
.trial-notice-active {
  background: rgba(0,255,157,0.05);
  border: 1px solid rgba(0,255,157,0.2);
  color: var(--accent);
}
.trial-notice-expired {
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--sandbox);
}
.trial-notice-remaining { color: var(--muted); }
.trial-notice-btn {
  background: var(--sandbox);
  color: #0a0f1a;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.trial-notice-btn:hover { opacity: 0.85; }

/* Upgrade gate (replaces action-box when trial exhausted) */
.upgrade-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 20px;
  background: rgba(245,158,11,0.05);
  border: 1px dashed rgba(245,158,11,0.35);
  border-radius: 10px;
  text-align: center;
}
.upgrade-gate-icon { font-size: 22px; color: var(--sandbox); margin-bottom: 4px; }
.upgrade-gate-title {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--sandbox);
}
.upgrade-gate-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 260px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  margin-top: 32px;
  color: var(--muted3);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-align: center;
  padding-bottom: 24px;
}

/* ── Sort buttons ───────────────────────────────────────────── */
.sort-btns { display: flex; gap: 4px; }
.sort-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted3);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  transition: all 0.2s;
}
.sort-btn.active,
.sort-btn:hover {
  border-color: var(--muted3);
  color: var(--text);
}

/* ── Sort order box ─────────────────────────────────────────── */
.sort-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  justify-self: center;
}
.sort-box-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted3);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* ── Positions tab ──────────────────────────────────────────── */

.position-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.position-card:hover { border-color: rgba(245,158,11,0.4); }
.position-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.5), transparent);
}
/* side badge — reused by both markets and positions */
.pos-side-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.pos-side-yes {
  background: rgba(245,158,11,0.15);
  color: var(--sandbox);
  border: 1px solid rgba(245,158,11,0.3);
}
.pos-side-no {
  background: rgba(91,156,246,0.12);
  color: #5b9cf6;
  border: 1px solid rgba(91,156,246,0.25);
}

/* ── Subscription Modal ─────────────────────────────────────── */
.sub-modal-box { max-width: 740px; width: 100%; }
.sub-modal-heading { text-align: center; margin: 4px 0 20px; }
.sub-modal-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  text-transform: uppercase;
}
.sub-modal-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.4px;
}
.sub-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.sub-plan-card {
  position: relative;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sub-plan-card.featured {
  border-color: var(--sandbox);
  background: rgba(245,158,11,0.04);
  box-shadow: 0 0 18px rgba(245,158,11,0.08);
}
.sub-plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sandbox);
  color: #000;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.sub-plan-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sub-plan-card.featured .sub-plan-name { color: var(--sandbox); }
.sub-plan-price-row { display: flex; align-items: baseline; gap: 2px; }
.sub-plan-price {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.sub-plan-period-inline {
  font-size: 15px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.sub-plan-period {
  font-size: 11px;
  color: var(--muted3);
  margin-top: 3px;
  margin-bottom: 2px;
}
.sub-plan-savings {
  font-size: 11px;
  color: var(--sandbox);
  font-weight: 600;
  margin-bottom: 2px;
}
.sub-plan-divider {
  border: none;
  border-top: 1px solid var(--border2);
  margin: 12px 0;
}
.sub-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.sub-plan-features li {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.sub-plan-features li::before {
  content: '✓';
  font-size: 11px;
  font-weight: 700;
  color: #22c55e;
  flex-shrink: 0;
}
.sub-plan-features li.feat-no { color: var(--muted3); }
.sub-plan-features li.feat-no::before { content: '✕'; color: var(--muted3); }
.sub-plan-features li.feat-pad::before { content: ''; }
.sub-plan-cta {
  width: 100%;
  padding: 9px 0;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
  margin-top: auto;
}
.sub-plan-cta.current {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: default;
}
.sub-plan-cta.primary {
  background: var(--accent);
  color: #000;
}
.sub-plan-cta.primary:hover { opacity: 0.85; }
.sub-plan-cta.featured-cta {
  background: var(--sandbox);
  color: #000;
}
.sub-plan-cta.featured-cta:hover { opacity: 0.85; }
.sub-modal-footer {
  text-align: center;
  font-size: 11px;
  color: var(--muted3);
  letter-spacing: 0.4px;
  padding-top: 4px;
  min-height: 18px;
  transition: color 0.2s;
}
/* Billing interval toggle */
.sub-interval-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
  margin: 0 auto 18px;
}
.sub-interval-btn {
  padding: 6px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.sub-interval-btn.active { background: var(--accent); color: #000; }
.sub-interval-btn:not(.active):hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sub-save-badge {
  font-size: 9px;
  background: rgba(245,158,11,0.15);
  color: var(--sandbox);
  border-radius: 10px;
  padding: 1px 6px;
  margin-left: 5px;
  vertical-align: middle;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .picks-layout { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
  .bankroll-grid { grid-template-columns: 1fr; }
  .tabs-row { display: flex; flex-direction: column; align-items: flex-start; }
  .sub-plans-grid { grid-template-columns: 1fr; }
  .sub-modal-box { max-width: 400px; }
}
@media (max-width: 600px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; }
}

/* ── Bankroll section headers ───────────────────────────────── */
.bankroll-section {
  margin-top: 24px;
}
.bankroll-section-title {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--muted2);
  margin-bottom: 10px;
}

/* ── Sandbox balance reset control ─────────────────────────── */
.sandbox-balance-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sandbox-balance-label {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--muted2);
  white-space: nowrap;
}
.sandbox-balance-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  width: 120px;
  outline: none;
}
.sandbox-balance-input:focus {
  border-color: var(--accent);
}
.sandbox-balance-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
}
.sandbox-balance-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── Bankroll period filter ─────────────────────────────────── */
.br-custom-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.br-date-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  width: 120px;
  outline: none;
  color-scheme: dark;
}
.br-date-input:focus { border-color: var(--accent); }
.br-range-sep { color: var(--muted3); font-size: 12px; }

/* ── Transaction / category table ──────────────────────────── */
.tx-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: var(--font-mono);
  font-size: 14px;
}
.tx-table th {
  color: var(--muted3);
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 500;
}
.tx-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--muted);
}
.tx-table tr:hover td { background: rgba(255,255,255,0.02); }
.tx-date  { font-size: 13px; white-space: nowrap; }
.tx-q     { width: 100%; }
.tx-q-inner { display: flex; align-items: flex-start; gap: 10px; }
.tx-q-text  { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; }
.tx-note-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted3);
  width: 26px; height: 26px;
  border-radius: 3px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: color 0.15s, border-color 0.15s;
}
.tx-note-btn:hover { color: var(--muted); border-color: rgba(255,255,255,0.25); }
.tx-note-btn--active { color: var(--sandbox); border-color: rgba(245,158,11,0.4); }
.tx-note-btn--active:hover { color: var(--sandbox); border-color: rgba(245,158,11,0.7); }
.tx-auto-icon { display: inline-flex; align-items: center; color: var(--accent); font-size: 12px; margin-left: 5px; opacity: 0.85; flex-shrink: 0; }
.tx-right { text-align: right; }
.tx-center { text-align: center; }
.tx-cat   { text-transform: capitalize; }
.tx-empty { text-align: center; padding: 20px; color: var(--muted3); font-size: 14px; }
/* tx-table-wide scrolls horizontally on narrow screens */
.tx-table-wide { min-width: 560px; }
.bankroll-section:has(.tx-table-wide) { overflow-x: auto; }
/* Side badge */
.tx-side {
  font-size: 10px; padding: 2px 7px; border-radius: 3px; letter-spacing: 0.5px;
}
.tx-side-yes { background: rgba(0,255,157,0.1);   color: var(--accent); border: 1px solid rgba(0,255,157,0.2); }
.tx-side-no  { background: rgba(255,123,123,0.1); color: var(--red);    border: 1px solid rgba(255,123,123,0.2); }
/* Result badge */
.tx-badge {
  font-size: 10px; padding: 2px 7px; border-radius: 3px; letter-spacing: 0.5px;
}
.tx-win     { background: rgba(0,255,157,0.1);   color: var(--accent); border: 1px solid rgba(0,255,157,0.2); }
.tx-loss    { background: rgba(255,123,123,0.1); color: var(--red);    border: 1px solid rgba(255,123,123,0.2); }
td.positive { color: var(--accent); }
td.negative { color: var(--red); }

/* ── Position card action row (cancel + note) ────────────────────────── */
.pos-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pos-cancel-btn {
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.35);
  color: #ff6b6b;
  padding: 5px 14px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pos-cancel-btn:hover {
  background: rgba(255,80,80,0.2);
  border-color: rgba(255,80,80,0.6);
}
.pos-note-btn {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--sandbox);
  padding: 5px 14px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pos-note-btn:hover {
  background: rgba(245,158,11,0.18);
  border-color: rgba(245,158,11,0.55);
}
.pos-note-btn--active {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.6);
  color: var(--sandbox);
  font-weight: 800;
}
.pos-note-btn--active:hover {
  background: rgba(245,158,11,0.25);
  border-color: rgba(245,158,11,0.8);
}
/* Keep mini-bet-btn flush with note/cancel when inside action row */
.pos-action-row .mini-bet-btn { margin-left: 0; }

/* ── Result card note row ────────────────────────────────────────────── */
.result-note-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: flex-end;
}
.result-note-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted2);
  padding: 5px 12px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.result-note-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
}
.result-note-btn--active {
  color: var(--sandbox);
  border-color: rgba(245,158,11,0.4);
}
.result-note-btn--active:hover {
  color: var(--sandbox);
  border-color: rgba(245,158,11,0.7);
}

/* ── Note modal textarea ─────────────────────────────────────────────── */
.note-modal-question {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.55;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}
.note-modal-textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  resize: vertical;
  box-sizing: border-box;
}
.note-modal-textarea:focus {
  outline: none;
  border-color: var(--sandbox);
}
.tx-pending { background: rgba(90,106,138,0.15); color: var(--muted2); border: 1px solid rgba(90,106,138,0.25); }

/* ── Social panel ───────────────────────────────────────────── */
.social-panel { padding: 20px 0; }
.social-coming-soon {
  text-align: center;
  padding: 40px 20px 28px;
}
.social-coming-icon {
  font-size: 34px;
  color: var(--muted3);
  margin-bottom: 12px;
}
.social-coming-title {
  font-size: 15px;
  letter-spacing: 2px;
  font-family: var(--font-mono);
  color: var(--muted2);
  margin-bottom: 8px;
}
.social-coming-sub {
  font-size: 13px;
  color: var(--muted3);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}
.social-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.social-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
}
.social-card-icon  { font-size: 26px; color: var(--muted3); margin-bottom: 12px; }
.social-card-title {
  font-size: 13px;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
  color: var(--muted2);
  margin-bottom: 10px;
}
.social-card-body  { font-size: 14px; color: var(--muted3); line-height: 1.6; margin-bottom: 16px; }
.social-card-badge {
  display: inline-block;
  background: rgba(90,106,138,0.15);
  border: 1px solid rgba(90,106,138,0.3);
  color: var(--muted2);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.8px;
}

/* ── Toast notifications ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.4px;
  pointer-events: all;
  min-width: 240px;
  max-width: 380px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  animation: toast-in 0.2s ease;
  transition: opacity 0.35s ease, transform 0.35s ease;
  line-height: 1.4;
}
.toast-icon { flex-shrink: 0; font-size: 14px; margin-top: 1px; }
.toast-msg  { flex: 1; }
.toast-success { background: #0a2e1f; border: 1px solid rgba(0,255,157,0.5); color: var(--accent); }
.toast-error   { background: #2e1010; border: 1px solid rgba(248,113,113,0.5); color: #fca5a5; }
.toast-warning { background: #2a2000; border: 1px solid var(--yellow-glow); color: var(--yellow); }
.toast-info    { background: #1a1e2a; border: 1px solid rgba(168,184,212,0.35); color: var(--muted); }
.toast.toast-out { opacity: 0; transform: translateX(20px); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Result card: verdict + side badge row ───────────────────────────── */
.result-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}
.side-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 3px;
  line-height: 1;
}
.side-badge--yes {
  background: rgba(0, 255, 157, 0.10);
  border: 1px solid rgba(0, 255, 157, 0.28);
  color: var(--accent);
}
.side-badge--no {
  background: rgba(255, 123, 123, 0.10);
  border: 1px solid rgba(255, 123, 123, 0.28);
  color: var(--red);
}

/* ── Stat card: trigger button on pick cards ─────────────────────────── */
.stat-card-btn {
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid rgba(0, 255, 157, 0.25);
  color: rgba(0, 255, 157, 0.70);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  animation: stat-btn-pulse 2.4s ease-in-out infinite;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.stat-card-btn:hover {
  background: rgba(0, 255, 157, 0.15);
  color: rgba(0, 255, 157, 1);
  animation: none;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.55), 0 0 20px rgba(0, 255, 157, 0.25);
}
@keyframes stat-btn-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(0, 255, 157, 0.20); }
  50%       { box-shadow: 0 0 10px rgba(0, 255, 157, 0.55), 0 0 18px rgba(0, 255, 157, 0.20); }
}

/* ── Stat card: modal content ────────────────────────────────────────── */

/* Player hero banner at the top of stat cards */
.sc-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 4px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.sc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
}
.sc-hero--nba::before { background: radial-gradient(ellipse at 0% 50%, rgba(0,255,157,1) 0%, transparent 70%); }
.sc-hero--nfl::before { background: radial-gradient(ellipse at 0% 50%, rgba(255,209,102,1) 0%, transparent 70%); }
.sc-hero-shot-wrap {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sc-hero-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.sc-hero--nba .sc-hero-shot-wrap { border-color: rgba(0,255,157,0.35); box-shadow: 0 0 18px rgba(0,255,157,0.18); }
.sc-hero--nfl .sc-hero-shot-wrap { border-color: rgba(255,209,102,0.35); box-shadow: 0 0 18px rgba(255,209,102,0.18); }
@keyframes sc-hero-pop {
  from { transform: scale(0.55) translateX(-20px); opacity: 0; }
  to   { transform: scale(1)    translateX(0);     opacity: 1; }
}
.sc-hero-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.sc-hero-shot-placeholder {
  font-size: 36px;
  line-height: 1;
}
.sc-hero-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  animation: sc-hero-slide 0.4s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sc-hero-slide {
  from { transform: translateX(22px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.sc-hero-name {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  line-height: 1.15;
}
.sc-hero-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.sc-hero-pos {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted3);
  text-transform: uppercase;
}
.sc-hero-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted2);
  text-transform: uppercase;
}
.sc-badge-sport {
  background: rgba(0, 255, 157, 0.10);
  border: 1px solid rgba(0, 255, 157, 0.28);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 2px 7px;
  border-radius: 3px;
}
.sc-hero--nfl .sc-badge-sport {
  background: rgba(255,209,102,0.10);
  border-color: rgba(255,209,102,0.28);
  color: var(--yellow);
}

/* Averages tile row */
.sc-tiles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sc-tile {
  flex: 1;
  min-width: 70px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 10px 12px 8px;
  text-align: center;
  transition: border-color 0.15s;
  cursor: default;
}
.sc-tile--active {
  background: rgba(0, 255, 157, 0.07);
  border-color: rgba(0, 255, 157, 0.30);
}
.sc-tile-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.sc-tile--active .sc-tile-val {
  color: var(--accent);
}
.sc-tile-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted2);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Verdict strip */
.sc-verdict {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 7px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}
.sc-verdict--pos {
  background: rgba(0, 255, 157, 0.07);
  border-color: rgba(0, 255, 157, 0.25);
  color: var(--accent);
}
.sc-verdict--neg {
  background: rgba(255, 123, 123, 0.07);
  border-color: rgba(255, 123, 123, 0.25);
  color: #ff9a9a;
}

/* Bar chart wrapper */
.sc-chart {
  margin-bottom: 6px;
}
/* Bar chart legend */
.sc-chart-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sc-leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted2);
}
.sc-leg-swatch {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  flex-shrink: 0;
}
.sc-leg-green { background: rgba(0,255,157,0.55); border: 1px solid rgba(0,255,157,0.9); }
.sc-leg-red   { background: rgba(255,123,123,0.50); border: 1px solid rgba(255,123,123,0.9); }
.sc-leg-dash-sample {
  width: 20px;
  height: 0;
  border-top: 2px dashed rgba(255,209,102,0.85);
  flex-shrink: 0;
}

/* Footer */
.sc-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-footer-q {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.5;
}
.sc-footer-rec {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Loading / error states */
.stat-card-loading,
.stat-card-error {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--muted2);
  padding: 24px 0;
  text-align: center;
}
.stat-card-error {
  color: #ff9a9a;
}

/* ── Matchup card: trigger button on pick cards ──────────────────────── */
.matchup-card-btn {
  background: rgba(99, 179, 237, 0.06);
  border: 1px solid rgba(99, 179, 237, 0.28);
  color: rgba(99, 179, 237, 0.78);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  animation: matchup-btn-pulse 2.6s ease-in-out infinite;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.matchup-card-btn:hover {
  background: rgba(99, 179, 237, 0.16);
  color: rgba(99, 179, 237, 1);
  animation: none;
  box-shadow: 0 0 10px rgba(99, 179, 237, 0.55), 0 0 20px rgba(99, 179, 237, 0.20);
}
@keyframes matchup-btn-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(99, 179, 237, 0.15); }
  50%       { box-shadow: 0 0 10px rgba(99, 179, 237, 0.50), 0 0 18px rgba(99, 179, 237, 0.18); }
}

/* ── Matchup card: modal content ─────────────────────────────────────── */

/* Hero header with team logos */
.mc-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 6px;
}
.mc-hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.mc-logo-wrap--left  { animation: mc-slide-left  0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.mc-logo-wrap--right { animation: mc-slide-right 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes mc-slide-left {
  from { transform: translateX(-44px) scale(0.78); opacity: 0; }
  to   { transform: translateX(0)      scale(1);    opacity: 1; }
}
@keyframes mc-slide-right {
  from { transform: translateX(44px) scale(0.78); opacity: 0; }
  to   { transform: translateX(0)    scale(1);    opacity: 1; }
}
.mc-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.10));
}
.mc-logo--player {
  filter: drop-shadow(0 0 18px rgba(99, 179, 237, 0.50)) drop-shadow(0 0 6px rgba(99, 179, 237, 0.28));
}
.mc-hero-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 54px;
  flex-shrink: 0;
  height: 54px;
}
.mc-vs-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 179, 237, 0.30);
  animation: mc-ring-pulse 2.4s ease-in-out infinite;
}
.mc-vs-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(99, 179, 237, 0.12);
  animation: mc-ring-pulse 2.4s ease-in-out 0.5s infinite;
}
@keyframes mc-ring-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.5; }
  50%       { transform: scale(1.20); opacity: 1;   }
}
.mc-vs-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(99, 179, 237, 0.95);
  position: relative;
  z-index: 1;
  animation: mc-vs-appear 0.55s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes mc-vs-appear {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.mc-hero-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}
.mc-hero-name--player { color: rgba(99, 179, 237, 1); }
.mc-hero-edge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--muted3);
}
.mc-hero-edge--lead {
  color: rgba(0, 255, 157, 0.75);
  font-weight: 700;
}
.mc-th-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
  opacity: 0.85;
}
.mc-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted2);
  text-align: center;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.mc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}
.mc-table th {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted2);
  text-transform: uppercase;
  padding: 6px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mc-table th.mc-th-team {
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.5px;
}
.mc-table th.mc-th-team--player {
  color: rgba(99, 179, 237, 1);
}
.mc-table td {
  padding: 7px 10px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mc-table td.mc-td-label {
  text-align: left;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted2);
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 180px;
}
.mc-table td.mc-td-better {
  color: #fff;
  font-weight: 700;
  background: rgba(0, 255, 157, 0.08);
}
.mc-table tr:last-child td {
  border-bottom: none;
}
.mc-player-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted2);
  letter-spacing: 0.8px;
  margin-top: 12px;
}
.mc-player-note span {
  color: rgba(99, 179, 237, 0.8);
}
