/* ============================================================
   style.css — RagePicks dark sports theme
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Backgrounds — pitch-black base; page uses --bg-page gradient (Option A) */
  --bg:             #08090b;
  --bg-page:        radial-gradient(circle at 50% 0%, #12151b 0%, #08090b 70%);
  /* Carbon surfaces — neutral charcoal (no navy blue) */
  --surface:        #12151b;
  --surface-alt:    #12151b;
  --surface-card:   #0d0f14;
  --surface-glass:  rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.08);
  --border:         rgba(255, 255, 255, 0.08);
  --filter-border:  rgba(255, 255, 255, 0.1);
  --filter-text:    rgba(255, 255, 255, 0.6);
  --filter-active:  #1e232d;
  --accent:         #00E676;
  /* Accent greens */
  --green:        #42BDA6;
  --green-mid:    #2FAF97;
  --green-dark:   #1D7862;
  /* Semantic */
  --red:          #EF4444;
  --amber:        #F59E0B;
  --market-gold:  #f5c542;
  --coral:        #FF6B4A;
  /* Primary = green accent */
  --primary:      #42BDA6;
  --primary-h:    #2FAF97;
  /* Text */
  --text:         #E2E8F0;
  --muted:        #94A3B8;
  /* Nav — match pitch-black chrome (no midnight blue) */
  --nav-bg:       #08090b;
  /* Layout */
  --radius:       0px;
  --shadow:       0 2px 16px rgba(0,0,0,0.5);
  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Sports palette — badge text/border on pick cards, history, performance */
  --sport-basketball: #FF9F68; /* NBA, NCAAB, WNBA */
  --sport-football:   #FF5500; /* NFL, NCAAF */
  --sport-tennis:     #CCFF00; /* ATP, WTA */
  --sport-soccer:     #00E676; /* Soccer, Parlays */
  --sport-baseball:   #389FFF; /* MLB */
  --sport-hockey:     #00E5FF; /* NHL */
  --sport-combat:     #8E9AAF; /* MMA, Boxing, UFC */
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background-color: var(--bg); }
body {
  background-color: var(--bg);
  background-image: var(--bg-page);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Typography: Barlow Condensed for all headings ────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Utility classes ──────────────────────────────────────── */
.mono       { font-family: var(--font-mono); }
.positive   { color: var(--green); }
.negative   { color: var(--red); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-muted { color: var(--muted); }
.text-amber { color: var(--amber); }
.text-white { color: var(--text); }

/* ── DB outage banner ─────────────────────────────────────── */
.db-unavailable-banner {
  margin: 1rem auto 0;
  max-width: 1100px;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

/* ── Carbon surface utilities ─────────────────────────────── */
.surface-panel {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
}
.surface-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.surface-card--lift {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Layout ────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.main-content { flex: 1; padding-bottom: 4rem; }

/* Title + intro copy only — do not apply to filters, tables, or grids */
.page-header {
  text-align: center;
  margin-bottom: 1.15rem;
}
.page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.page-header p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
.page-header p + p {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.page-header .btn {
  display: inline-block;
  margin-top: 0.9rem;
}
.page-header-link,
.page-header a {
  color: var(--primary);
  text-decoration: none;
}
.page-header-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* ── Nav ───────────────────────────────────────────────────── */
.site-header {
  background: rgba(8, 9, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.25rem; }
.nav-logo img { height: 52px; width: auto; margin-right: 0; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.nav-logo-rage { font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); }
.nav-beta { font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green); line-height: 1; display: flex; align-items: center; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom-color: var(--green-dark); }
.nav-links .nav-cta a {
  background: var(--green);
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: 0;
  font-weight: 700;
  border-bottom: none;
}
.nav-links .nav-cta a:hover { background: var(--green-dark); color: #fff; }
.nav-burger { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; margin-left: auto; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 1.5rem 1.25rem 1rem;
}
.hero-logo { width: 150px; margin: 0 auto 0.75rem; }
.hero-sub {
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 800;
  line-height: 1.3;
  max-width: 640px;
  margin: 0 auto 0.75rem;
}
.hero-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Shared section width — matches nav ─────────────────────── */
.stats-section,
.free-pick-section,
.recent-section,
.content-section,
.cart-page {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ── Stats Section ─────────────────────────────────────────── */
.stats-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.stats-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: 0;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat-value.green { color: var(--green); }
.stats-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.stats-caption { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }

/* ── CTA Button Row ────────────────────────────────────────── */
.cta-row {
  text-align: center;
  margin: 1.5rem 0;
}

/* Login-gated feature teaser (performance extras, live scores) */
.feature-paywall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto 1.5rem;
  padding: 0.95rem 1.15rem;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.feature-paywall-copy {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
/* Primary action CTAs — bright green, rounded, dark label (matches .btn-cta) */
.btn-primary,
.btn-cta {
  background: linear-gradient(135deg, #00E676 0%, #00A854 100%);
  color: #050b07;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: box-shadow 0.15s, filter 0.15s, transform 0.1s;
}
.btn-primary:hover,
.btn-cta:hover {
  color: #050b07;
  filter: brightness(1.05);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ── Free Pick Card ────────────────────────────────────────── */
.free-pick-section {
  margin-bottom: 2rem;
}
.free-picks-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.free-picks-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
  .free-picks-grid--2 {
    grid-template-columns: 1fr;
  }
}
.free-pick-card {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.08);
}
.free-pick-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}
.free-pick-game { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.free-pick-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.free-pick-meta span { display: flex; align-items: center; gap: 0.3rem; }
.free-pick-caption { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }

/* ── Edge Pick Card ────────────────────────────────────────── */
.epc-card {
  background:
    radial-gradient(135% 90% at 50% -10%, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 38%, transparent 62%),
    linear-gradient(180deg, #14171c 0%, #0a0c10 72%);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow:
    0 12px 32px -8px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.28);
  display: flex;
  flex-direction: column;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.epc-card--clickable { cursor: pointer; transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
.epc-card--clickable:hover {
  border-color: var(--primary-h);
  box-shadow:
    0 18px 42px -6px rgba(0, 0, 0, 0.95),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}
/* Homepage card: team names left, tail count right with more aggressive spacing */
.epc-card .pick-game-row,
.edge-modal-card .pick-game-row {
  padding-left: 0;
  padding-right: 0;
  gap: 1rem;
}
.epc-card .admin-signal-badges-row {
  padding-left: 0;
  margin-top: -0.35rem;
  margin-bottom: 0.15rem;
}

/* Homepage free-pick row: EDGE and ODDS boxes share layout (value top, label bottom) */
.epc-card .pick-edge-badge,
.epc-card .pick-odds-box {
  padding: 4px 10px;
  min-width: 64px;
  gap: 1px;
}
.epc-card .pick-odds-val {
  font-weight: 800;
  font-size: 22px;
  color: #42BDA6;
  line-height: 1;
}
.epc-card .pick-odds-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #42BDA6;
  margin-top: 1px;
}
/* Header */
.epc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.epc-header-left { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; }
.epc-sport-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1.5px solid;
  white-space: nowrap;
}
.epc-sport-badge.epc-sport-badge--basketball, .epc-sport-badge.epc-sport-badge--peach,
.sport-badge.sport-badge--basketball, .sport-badge.sport-badge--peach,
.pc2-sport-badge.pc2-sport-badge--basketball, .pc2-sport-badge.pc2-sport-badge--peach,
.m-sport-pill.m-sport-pill--basketball {
  color: var(--sport-basketball);
  border-color: var(--sport-basketball);
  background: color-mix(in srgb, var(--sport-basketball) 12%, transparent);
}
.epc-sport-badge.epc-sport-badge--football, .epc-sport-badge.epc-sport-badge--amber,
.sport-badge.sport-badge--football, .sport-badge.sport-badge--amber,
.pc2-sport-badge.pc2-sport-badge--football, .pc2-sport-badge.pc2-sport-badge--amber,
.m-sport-pill.m-sport-pill--football {
  color: var(--sport-football);
  border-color: var(--sport-football);
  background: color-mix(in srgb, var(--sport-football) 12%, transparent);
}
.epc-sport-badge.epc-sport-badge--tennis, .epc-sport-badge.epc-sport-badge--yellow,
.sport-badge.sport-badge--tennis, .sport-badge.sport-badge--yellow,
.pc2-sport-badge.pc2-sport-badge--tennis, .pc2-sport-badge.pc2-sport-badge--yellow,
.m-sport-pill.m-sport-pill--tennis {
  color: var(--sport-tennis);
  border-color: var(--sport-tennis);
  background: color-mix(in srgb, var(--sport-tennis) 12%, transparent);
}
.epc-sport-badge.epc-sport-badge--soccer, .epc-sport-badge.epc-sport-badge--green, .epc-sport-badge.epc-sport-badge--teal,
.sport-badge.sport-badge--soccer, .sport-badge.sport-badge--green, .sport-badge.sport-badge--teal,
.pc2-sport-badge.pc2-sport-badge--soccer, .pc2-sport-badge.pc2-sport-badge--green, .pc2-sport-badge.pc2-sport-badge--teal,
.m-sport-pill.m-sport-pill--soccer {
  color: var(--sport-soccer);
  border-color: var(--sport-soccer);
  background: color-mix(in srgb, var(--sport-soccer) 12%, transparent);
}
.epc-sport-badge.epc-sport-badge--baseball, .epc-sport-badge.epc-sport-badge--blue,
.sport-badge.sport-badge--baseball, .sport-badge.sport-badge--blue,
.pc2-sport-badge.pc2-sport-badge--baseball, .pc2-sport-badge.pc2-sport-badge--blue,
.m-sport-pill.m-sport-pill--baseball {
  color: var(--sport-baseball);
  border-color: var(--sport-baseball);
  background: color-mix(in srgb, var(--sport-baseball) 12%, transparent);
}
.epc-sport-badge.epc-sport-badge--hockey,
.sport-badge.sport-badge--hockey,
.pc2-sport-badge.pc2-sport-badge--hockey,
.m-sport-pill.m-sport-pill--hockey {
  color: var(--sport-hockey);
  border-color: var(--sport-hockey);
  background: color-mix(in srgb, var(--sport-hockey) 12%, transparent);
}
.epc-sport-badge.epc-sport-badge--combat, .epc-sport-badge.epc-sport-badge--slate, .epc-sport-badge.epc-sport-badge--maroon,
.sport-badge.sport-badge--combat, .sport-badge.sport-badge--slate, .sport-badge.sport-badge--maroon,
.pc2-sport-badge.pc2-sport-badge--combat, .pc2-sport-badge.pc2-sport-badge--slate, .pc2-sport-badge.pc2-sport-badge--maroon,
.m-sport-pill.m-sport-pill--combat {
  color: var(--sport-combat);
  border-color: var(--sport-combat);
  background: color-mix(in srgb, var(--sport-combat) 12%, transparent);
}
.epc-free-badge {
  background: rgba(66,189,166,0.12);
  border: 1px solid rgba(66,189,166,0.45);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.6rem;
  border-radius: 0;
  white-space: nowrap;
}
.epc-time { font-size: 0.72rem; color: #fff; }
/* Matchup */
.epc-game { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.25rem; line-height: 1.25; font-family: var(--font); }
/* Play block */
.epc-play-block {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
}
.epc-play-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.25rem; }
.epc-play-value { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 0.15rem; white-space: normal; overflow-wrap: break-word; word-break: break-word; }
.epc-play-market { font-size: 0.8rem; color: #e8e6dc; font-weight: 700; letter-spacing: 0.01em; }
.epc-odds-pill {
  text-align: center;
  background: rgba(66,189,166,0.08);
  border: 1px solid rgba(66,189,166,0.3);
  border-radius: 0;
  padding: 0.5rem 1rem;
  min-width: 76px;
  flex-shrink: 0;
}
.epc-odds-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.15rem; }
.epc-odds-value { font-size: 1.2rem; font-weight: 900; color: var(--green); font-family: var(--font-mono); }
/* Inline opening line pill (used in modal play block) */
.epc-opening-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.3rem 0.7rem;
  text-align: center;
  flex-shrink: 0;
}
.epc-opening-line-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.1rem;
}
.epc-opening-line-value {
  font-size: 1rem;
  color: var(--text);
  display: block;
}
/* .epc-card override: pick-info-row sits naturally within card padding */
.epc-card .pick-info-row {
  margin-top: 0.25rem;
  margin-bottom: 0;
  padding: 12px 0;
  background: transparent;
  border: none;
}

/* Hide line-movement boxes on homepage cards (edge % stays visible in pick-info-row) */
.epc-card .pick-line-boxes {
  display: none;
}

/* ── Tail badge (coral pill, clickable) ─────────────────────── */
.pick-game-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.pick-game-copy {
  min-width: 0;
  flex: 1;
}
.pick-game-row .pick-game,
.pick-game-row .epc-game {
  margin-bottom: 0;
}
.epc-tournament {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin: 0.15rem 0 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.pick-game-row-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-self: center;
}

/* Shared with /picks cards — homepage does not load picks.css */
.pc2-units-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 1;
  color: #42BDA6;
  background: rgba(66,189,166,.12);
  border: 1px solid rgba(66,189,166,.3);
  border-radius: 8px;
  padding: 0.28rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.pick-tail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  width: fit-content;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
  line-height: inherit;
  appearance: none;
  opacity: 1;
  color: #F0997B;
  background: rgba(240, 153, 123, 0.12);
  border: 1px solid rgba(240, 153, 123, 0.5);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s ease, opacity 0.15s ease;
}
.pick-tail-badge:hover { background: rgba(240, 153, 123, 0.2); }
.pick-tail-badge:active { background: rgba(240, 153, 123, 0.28); }
.pick-tail-badge:disabled,
.pick-tail-badge[data-tailed="1"] {
  cursor: default;
  opacity: .7;
}

@keyframes tailPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.pick-tail-count.tail-pop {
  display: inline-block;
  animation: tailPop .3s ease;
}

/* ── Pick Info Row (three-box layout) ───────────────────────────────────── */
.pick-info-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 8px 1.25rem;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

/* Left cell — grows to fill, vertically centered */
.pick-position {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

/* Center: line boxes wrapper */
.pick-line-boxes {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Individual line box */
.line-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #04342C;
  border: none;
  border-radius: 8px;
  min-width: 48px;
  gap: 2px;
}
.line-box:hover {
  background: #05423a;
}

/* Color variants */
.line-box-green {
  background: #04342C;
}
.line-box-red {
  background: #04342C;
}
.line-box-neutral {
  background: #2C2C2A;
}
.line-box-neutral .line-box-label {
  color: #888780;
}
.line-box-neutral .line-box-val {
  color: #B4B2A9;
}

/* Line box text */
.line-box-label {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1;
}
.line-box-val {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}
.line-box-delta {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
}
.line-arrow {
  font-size: 11px;
  line-height: 1;
}
.line-box-source {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 1px;
}

/* Odds box — always last, never shrinks */
.pick-odds-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #04342C;
  border: none;
  border-radius: 8px;
  min-width: 54px;
  flex-shrink: 0;
  gap: 3px;
}
.pick-odds-label {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5DCAA5;
  line-height: 1;
}
.pick-odds-val {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: #5DCAA5;
  line-height: 1;
}

/* ── Edge badge (replaces line boxes on pick cards) ── */
.pick-edge-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: #04342C;
  border: none;
  border-radius: 8px;
  min-width: 64px;
  flex-shrink: 0;
  gap: 1px;
}
.pick-edge-pct {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: #F5C842;
}
.pick-edge-badge--pick .pick-edge-pct {
  color: #42BDA6;
}
.pick-edge-badge--neutral .pick-edge-pct {
  color: #F5C842;
}
.pick-edge-sub {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-top: 1px;
}
.pick-edge-sub--pick {
  color: #42BDA6;
}
.pick-edge-sub--neutral {
  color: #F5C842;
}

/* Modal overrides — pull pick-info-row flush with modal card edges (padding 1.75rem) */
.edge-modal-card .pick-info-row {
  margin-left: -1.75rem;
  margin-right: -1.75rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

/* Modal overrides — narrower container */
.edge-modal-card .line-box,
.edge-modal-card .pick-odds-box {
  min-width: 64px;
  padding: 8px 10px;
}
.edge-modal-card .line-box-val,
.edge-modal-card .pick-odds-val {
  font-size: 15px;
}

/* ── MOBILE: position full-width, line boxes + odds share bottom row ── */
@media (max-width: 639px) {
  .pick-info-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Position cell takes full width on mobile */
  .pick-position {
    flex: 1 1 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 2px;
  }

  /* Line boxes share left side of bottom row */
  .pick-line-boxes {
    flex: 1;
    flex-direction: row;
    gap: 6px;
  }

  /* Edge badge shares left side of bottom row on mobile */
  .pick-edge-badge {
    flex: 1;
  }

  /* Odds pinned to right */
  .pick-odds-box {
    margin-left: auto;
    min-width: 64px;
  }

  /* Tighter padding on mobile — already small at base, keep as-is */
  .line-box,
  .pick-odds-box {
    padding: 5px 7px;
  }

  .line-box-val,
  .pick-odds-val {
    font-size: 12px;
  }

  .pick-edge-pct {
    font-size: 14px;
  }

  .epc-card .pick-odds-val,
  .epc-card .pick-edge-pct {
    font-size: 14px;
  }

  /* Modal: keep the pick name and odds on one row. A full-width wrap
     drops the odds box onto its own line and pushes the card down. */
  .edge-modal-overlay {
    align-items: flex-start;
    padding: 0.5rem;
  }
  .edge-modal-card {
    padding: 1rem 0.85rem 0.75rem;
    max-height: 94vh;
  }
  .edge-modal-close {
    top: 0.55rem;
    right: 0.55rem;
  }
  .edge-modal-card .epc-header {
    margin-bottom: 0.4rem;
  }
  .edge-modal-card .pick-game-row {
    margin-bottom: 0.25rem;
    gap: 0.4rem;
  }
  .edge-modal-card .epc-game {
    font-size: 1.05rem;
  }
  .edge-modal-card .epc-tournament {
    font-size: 0.78rem;
  }
  .edge-modal-card .pick-info-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    padding: 6px 0.85rem;
  }
  .edge-modal-card .pick-position {
    flex: 1 1 auto;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .edge-modal-card .pick-line-boxes {
    flex: 0 0 auto;
    margin-left: 0;
    gap: 4px;
  }
  .edge-modal-card .pick-odds-box {
    margin-left: 0;
  }
  .edge-modal-card .line-box,
  .edge-modal-card .pick-odds-box {
    min-width: 48px;
    padding: 4px 6px;
  }
  .edge-modal-card .epc-metrics,
  .edge-modal-card .epc-conviction,
  .edge-modal-card .epc-reasons-block {
    margin-bottom: 0.65rem;
  }
  .edge-modal-card .epc-metric-cell {
    padding: 0.45rem 0.3rem;
  }
  .edge-modal-card .epc-metric-label {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
  }
  .edge-modal-card .epc-metric-value {
    font-size: 1.05rem;
  }
  .edge-modal-card .buy-links-rows {
    gap: 0.3rem;
  }
  .edge-modal-card .buy-link-row {
    gap: 0.5rem;
    padding: 0.38rem 0.5rem;
  }
  .edge-modal-card .buy-link-name {
    font-size: 0.84rem;
  }
  .edge-modal-card .buy-link-promo {
    font-size: 0.64rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ── VERY NARROW (<360px): tighten further ── */
@media (max-width: 359px) {
  .pick-info-row {
    flex-wrap: wrap;
    padding: 8px;
    gap: 5px;
  }
  .pick-position {
    flex: 1 1 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 4px;
  }
  .pick-line-boxes {
    flex: 1;
    gap: 4px;
  }
  .pick-edge-badge {
    flex: 1;
    padding: 5px 6px;
    min-width: 60px;
  }
  .pick-odds-box {
    margin-left: auto;
  }
  .line-box,
  .pick-odds-box {
    padding: 5px 6px;
    min-width: 46px;
  }
  .line-box-val,
  .pick-odds-val {
    font-size: 12px;
  }
}

/* 3-col metrics grid */
.epc-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 1.1rem;
  background-color: rgba(255, 255, 255, 0.03);
}
.epc-metric-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.7rem 0.5rem;
}
.epc-metric-cell + .epc-metric-cell { border-left: 1px solid var(--border); }
.epc-metric-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 0.2rem; }
.epc-metric-value { font-size: 1.3rem; font-weight: 900; color: var(--text); }
.epc-metric-value--accent { color: var(--green); }
.epc-metric-value--strong { color: #00e676; }
.epc-metric-value--market { color: #f5c542 !important; }
.epc-metric-value--wait { color: #f5a623; font-size: 1.0rem; }
.epc-metric-value--muted { color: var(--muted); font-size: 1.0rem; }
.epc-metric-sub { font-size: 0.58rem; color: var(--muted); opacity: 0.75; margin-top: 0.1rem; }
/* PICK / LEAN / PASS tier badge pill */
.edge-tier-badge { display: inline-block; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.08em; padding: 0.1rem 0.3rem; border-radius: 3px; vertical-align: middle; margin-right: 0.3rem; line-height: 1.4; }
.edge-tier-badge--pick { background: rgba(0, 230, 118, 0.15); color: #00e676; }
.edge-tier-badge--lean { background: rgba(245, 166, 35, 0.15); color: #f5a623; }
.edge-tier-badge--pass { background: rgba(150, 150, 150, 0.12); color: var(--muted); }

/* Modal stat row (for line movement section) */
.modal-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
}
.modal-stat-cell {
  background: var(--surface-alt);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-stat-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-stat-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--text);
}
.modal-stat-sub {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* Conviction bar */
.epc-conviction { margin-bottom: 1.1rem; }
.epc-conviction-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.epc-conviction-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.epc-conviction-score { font-size: 0.85rem; font-weight: 800; color: var(--green); font-family: var(--font-mono); }
.epc-conviction-track { height: 6px; background: var(--border); border-radius: 0; overflow: hidden; margin-bottom: 0.3rem; }
.epc-conviction-fill {
  height: 100%;
  background: var(--green);
  border-radius: 0;
  transition: width 0.4s ease;
}
.epc-conviction-scale { display: flex; justify-content: space-between; font-size: 0.58rem; color: var(--muted); opacity: 0.65; margin-bottom: 0.6rem; }
.epc-units-rec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.4rem 0.75rem;
}
.epc-units-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.epc-units-value { font-size: 0.88rem; font-weight: 800; color: #f5c542; }

/* Units recommendation footer (bottom-left of card) */
.epc-units-footer {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: #42BDA6;
  background: rgba(66, 189, 166, 0.12);
  border: 1px solid rgba(66, 189, 166, 0.3);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}
.epc-units-icon {
  font-size: 0.85rem;
  line-height: 1;
}
.epc-units-content {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.epc-units-amount {
  font-size: 0.72rem;
  font-weight: 700;
  color: #42BDA6;
  font-family: var(--font-mono);
}
.epc-units-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #42BDA6;
}
/* Edge reasons */
.epc-reasons-block { margin-bottom: 1.1rem; }
.epc-reasons-heading { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }
.epc-reasons { list-style: none; display: flex; flex-direction: column; }
.epc-reasons li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text);
  padding: 0.4rem 0;
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
}
.epc-reasons li:last-child { border-bottom: none; }
.epc-reasons--fade > li:nth-child(2),
.epc-reasons-block:not(.is-expanded) .epc-reasons--collapsible > li:nth-child(2) {
  max-height: 1.55rem;
  overflow: hidden;
  border-bottom: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0.4rem, transparent 1.45rem);
  mask-image: linear-gradient(to bottom, #000 0.4rem, transparent 1.45rem);
}
.epc-reasons--fade > li:nth-child(n + 3),
.epc-reasons-block:not(.is-expanded) .epc-reasons--collapsible > li:nth-child(n + 3) {
  display: none;
}
.epc-reasons-block.is-expanded .epc-reasons--collapsible > li:nth-child(2) {
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.epc-reasons-toggle {
  background: none;
  border: 0;
  color: var(--green);
  cursor: pointer;
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0.15rem auto 0;
  padding: 0.25rem 0 0;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}
.epc-reasons-toggle:hover {
  color: var(--text);
}
.epc-dot { width: 6px; height: 6px; border-radius: 0; background: var(--green); flex-shrink: 0; margin-top: 0.42rem; }
.epc-reason-text { flex: 1; }
/* Record snapshot — full-width bar below the picks grid */
.epc-record {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.75rem;
  margin-bottom: 1.1rem;
  background-color: rgba(255, 255, 255, 0.03);
}
.epc-snap { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.6rem 0.4rem; }
.epc-snap + .epc-snap { border-left: 1px solid var(--border); }
.epc-snap-label { font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.25rem; }
.epc-snap-value { font-size: 1rem; font-weight: 800; color: var(--text); }
.epc-snap-value--green { color: var(--green); }
/* CTA */
.epc-cta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.9rem 1rem;
}
.epc-cta-heading { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 0.4rem; }
.epc-cta-list { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.epc-cta-list li { font-size: 0.78rem; color: var(--text); display: flex; align-items: center; gap: 0.4rem; }
.epc-lock { opacity: 0.65; }
.epc-cta-right { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.epc-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #00E676 0%, #00A854 100%);
  color: #050b07;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: box-shadow 0.15s, filter 0.15s, transform 0.1s;
}
.epc-cta-btn:hover {
  color: #050b07;
  filter: brightness(1.05);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.epc-cta-sub { font-size: 0.6rem; color: var(--muted); text-align: center; }
/* Standalone Full Board CTA section (below free-pick card) */
.full-board-cta-section { max-width: 540px; margin: 0 auto 1.5rem; padding: 0 1rem; }
/* Stats chips (modal footer) */
.epc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.epc-chip { font-size: 0.72rem; color: var(--muted); background: var(--surface-alt); border: none; border-radius: 8px; padding: 0.35rem 0.65rem; white-space: nowrap; font-weight: 500; }
.epc-chip--sharp { color: #F5A623; background: rgba(245, 166, 35, 0.12); }
.epc-chip--units { color: #42BDA6; background: rgba(66, 189, 166, 0.12); }

/* Line Movement Block */
.epc-line-movement-block {
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(66,189,166,0.08) 0%, rgba(66,189,166,0.04) 100%);
  border: 1px solid rgba(66,189,166,0.3);
  border-radius: 0;
  padding: 0.9rem;
}
.epc-line-movement-heading {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.epc-line-movement-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.epc-line-locked,
.epc-line-current {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  padding: 0.5rem;
  background: var(--surface-alt);
  border-radius: 0;
  border: 1px solid var(--border);
}
.epc-line-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.epc-line-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.epc-line-locked .epc-line-value {
  color: #f59e0b;
}
.epc-line-current .epc-line-value {
  color: var(--green);
}
.epc-line-arrow {
  font-size: 1.2rem;
  color: var(--muted);
  opacity: 0.6;
}
.epc-line-movement-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.7rem;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.28);
  border-radius: 0;
  min-width: 50px;
}
.epc-movement-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-mono);
}
.epc-movement-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* Edge Context Modal */
.edge-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.15s ease;
}
.edge-modal-overlay.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.edge-modal-card {
  position: relative;
  background:
    radial-gradient(135% 90% at 50% -10%, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 38%, transparent 62%),
    linear-gradient(180deg, #14171c 0%, #0a0c10 72%);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 1.75rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 18px 48px -8px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.28);
  animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.edge-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}
.edge-modal-close:hover { color: var(--text); border-color: var(--muted); }
.epc-section-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.35rem 0 0.85rem;
}
.buy-links-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 2.1rem;
}
.buy-links-started {
  align-items: center;
  color: #f5c542;
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.35rem;
  letter-spacing: 0.02em;
  margin: 0;
}
.buy-links-started-icon {
  flex-shrink: 0;
  height: 0.95rem;
  width: 0.95rem;
}
.buy-links-meta {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
}
.buy-links-delay {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0;
}
.buy-links-refresh {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
}
.buy-links-refresh:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.buy-links-refresh:disabled {
  cursor: wait;
  opacity: 0.55;
}
.buy-links-enable {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}
.buy-links-enable:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--text);
}
.buy-links-enable.is-loading,
.buy-links-enable:disabled {
  cursor: default;
  opacity: 0.65;
}
.buy-links-enable.is-empty {
  border-style: dashed;
  cursor: default;
}
.buy-links-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.buy-link-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}
.buy-link-row:hover {
  border-color: rgba(66, 189, 166, 0.45);
}
.buy-link-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
}
.buy-link-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.buy-link-name {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
}
.buy-link-promo {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}
.buy-link-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 0.55rem;
}
.buy-link-price {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  min-width: 2.4rem;
  text-align: right;
  white-space: nowrap;
}
.buy-quote-spinner {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: buy-quote-spin 0.55s linear infinite;
  vertical-align: -0.05em;
  opacity: 0.85;
}
@keyframes buy-quote-spin {
  to { transform: rotate(360deg); }
}
.buy-link-cta {
  border: 1px solid rgba(66, 189, 166, 0.55);
  border-radius: 999px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.72rem;
  white-space: nowrap;
}
.buy-link-row:hover .buy-link-cta {
  border-color: var(--green);
}
.epc-modal-disclaimer {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.25rem;
  opacity: 0.7;
}


/* Green badge used in pick-edge modal header */
.epc-edge-badge {
  background: rgba(66,189,166,0.12);
  border: 1px solid rgba(66,189,166,0.45);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.6rem;
  border-radius: 0;
  white-space: nowrap;
}


/* ── Pick Cards (picks page) ───────────────────────────────── */
.picks-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem 1rem;
  margin-top: 2rem;
}
.pick-card {
  background:
    radial-gradient(135% 90% at 50% -10%, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 38%, transparent 62%),
    linear-gradient(180deg, #14171c 0%, #0a0c10 72%);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 1.25rem 0 0 0;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.25s ease, transform 0.25s ease;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* clip gate badge + specular within rounded corners */
  box-shadow:
    0 12px 32px -8px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.28);
}
/* pick-info-row always sits flush at the bottom of the card */
.pick-card .pick-info-row {
  margin-top: auto;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0 0 10px 10px;
  background: transparent;
  border: none;
}
.pick-card:hover {
  border-color: var(--primary);
  box-shadow:
    0 18px 42px -6px rgba(0, 0, 0, 0.95),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}
.pick-card--free:hover { border-color: #42BDA6; }
.pick-card--pro:hover { border-color: #7c3aed; }
.pick-card.pick-win  { border-left: 4px solid var(--green); }
.pick-card.pick-loss { border-left: 4px solid var(--red); }
.pick-card.pick-push { border-left: 4px solid var(--amber); }
.pick-card.pick-pending { border-left: 4px solid var(--primary); }

.pick-header-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding: 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.pick-sport-badge {
  display: inline-block;
  background: #04342C;
  color: #5DCAA5;
  border: none;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-weight: 600;
  flex-shrink: 0;
}


.pick-game-time {
  display: inline-block;
  background: none;
  color: #888780;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0;
  flex-shrink: 0;
}
.pick-game { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text); font-family: var(--font); }
.pick-line {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pick-meta { font-size: 0.82rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Compact single meta line inside pick-info-row ── */
.pick-meta-compact {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: #888780;
  font-weight: 500;
  flex-wrap: wrap;
  white-space: normal;
  overflow: visible;
  margin-top: 3px;
  font-family: var(--font);
  min-width: 0;
}
.pick-meta-compact > span {
  flex-shrink: 1;
  min-width: 0;
}
.pick-conv {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: #888780;
  white-space: normal;
  flex-shrink: 1;
  min-width: 0;
}
.pick-conv::before {
  content: "Conv ";
  display: inline;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 11px;
  text-transform: uppercase;
}

/* FREE / PRO gate badges — muted pills, absolute inside card top-right (Fix 3) */
.gate-free,
.gate-pro {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
.gate-free {
  background: transparent;
  color: #42BDA6;
  border: 1px solid #42BDA6;
  letter-spacing: 0.07em;
}
.gate-pro {
  background: transparent;
  color: #a78bfa;
  border: 1px solid #6d4fb5;
  letter-spacing: 0.07em;
}
/* Keep legacy classes working for non-picks pages */
.badge-free,
.badge-pro {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.75rem;
  border-radius: 6px 6px 0 0;
  border: 1.5px solid transparent;
  border-bottom: none;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.badge-free {
  border-color: #42BDA6;
  background: #42BDA6;
  color: #0d2b25;
}
.badge-pro {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #fff;
}

.result-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 0;
}
.result-badge.win     { background: rgba(66,189,166,0.15); color: var(--green); }
.result-badge.loss    { background: rgba(248,113,113,0.15);  color: var(--red); }
.result-badge.push    { background: rgba(245,158,11,0.15); color: var(--amber); }
.result-badge.pending { background: rgba(0, 230, 118, 0.1); color: var(--accent); }

/* ── Sport Filter Tabs ─────────────────────────────────────── */
.sport-tabs {
  width: 100%;
  max-width: 1080px;
  margin: 1.5rem auto 0;
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  box-sizing: border-box;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.tab {
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  border: 1px solid var(--filter-border);
  color: var(--filter-text);
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.tab:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #08090b;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ── Section headers ───────────────────────────────────────── */
.section-header {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

/* ── Recent Picks Table ────────────────────────────────────── */
.recent-section {
  margin-bottom: 2rem;
}
.picks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.picks-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.picks-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); }
.picks-table tr:last-child td { border-bottom: none; }
.td-win  { color: var(--green); font-weight: 700; }
.td-loss { color: var(--red);   font-weight: 700; }
.td-push { color: var(--amber); font-weight: 700; }
/* Margin cell color coding */
.result-margin { font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.margin-pos { color: #42BDA6; }
.margin-neg { color: #f87171; }
.margin-push { color: #94a3b8; }
.margin-pending { color: #475569; }
.result-margin-cell { text-align: right; min-width: 3.5rem; }

/* ── About / FAQ Sections ──────────────────────────────────── */
.content-section {
  margin-bottom: 2rem;
}
.faq-item { border-top: 1px solid var(--border); padding: 1rem 0; }
.faq-question { font-weight: 700; margin-bottom: 0.4rem; }
.faq-answer { color: var(--muted); font-size: 0.93rem; line-height: 1.7; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--surface-border);
  padding: 2rem 1.25rem;
  margin-top: auto;
}
.footer-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.footer-brand { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-links { display: flex; justify-content: center; gap: 1.25rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-tagline { font-size: 0.82rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; letter-spacing: 0.03em; }
.footer-legal { font-size: 0.8125rem; font-style: italic; color: var(--muted); max-width: 720px; margin: 0 auto 0.45rem; line-height: 1.5; text-align: center; }
.footer-legal em { font-style: italic; }
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* ── No Picks State ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-state .emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* ── History page ──────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 0; border: 1px solid var(--surface-border); background: var(--surface-glass); }
.picks-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.picks-table thead { background: var(--surface-card); }
.picks-table th { padding: 0.65rem 0.9rem; text-align: left; font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--surface-border); white-space: nowrap; }
.picks-table td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--surface-border); color: var(--text); vertical-align: middle; }
.picks-table tbody tr:last-child td { border-bottom: none; }
.picks-table tbody tr:hover { background: rgba(255,255,255,.03); }
.td-date   { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.td-game   { max-width: 220px; }
.td-pick   { font-weight: 600; }
.td-market { color: var(--muted); font-size: 0.82rem; }
.td-odds   { font-family: monospace; }
.td-win    { color: var(--green); font-weight: 700; }
.td-loss   { color: var(--red);   font-weight: 700; }
.td-push   { color: var(--muted); font-weight: 600; }
.sport-badge { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: .1em; padding: 0.2rem 0.55rem; border-radius: 0; background: rgba(66,189,166,.12); color: var(--green); border: 1px solid rgba(66,189,166,.28); text-transform: uppercase; white-space: nowrap; }
/* Sport-family colors live with .epc-sport-badge / .pc2-sport-badge above. */
.table-caption { font-size: 0.8rem; color: var(--muted); text-align: center; padding: 0.75rem 0 0.25rem; }
.table-caption a { color: var(--primary); text-decoration: none; }

/* ── Terms page ────────────────────────────────────────────── */
.terms-page h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.25rem; }
.terms-page h2 { font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 0.5rem; color: var(--text); }
.terms-page p  { color: var(--muted); line-height: 1.8; font-size: 0.93rem; margin-bottom: 0.75rem; }
.terms-page ul { color: var(--muted); line-height: 1.8; font-size: 0.93rem; padding-left: 1.4rem; margin-bottom: 0.75rem; }
.terms-page a:not(.btn)  { color: var(--primary); text-decoration: none; }
.terms-page a:not(.btn):hover { text-decoration: underline; }
.terms-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.25rem; }

/* ── Nav auth elements ─────────────────────────────────────── */
.nav-email {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  display: inline-block;
  vertical-align: middle;
}

/* ── User dropdown menu ────────────────────────────────────── */
.nav-user-dropdown {
  position: relative;
  display: inline-block;
}

.nav-user-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: inherit;
  transition: color 0.2s ease;
}

.nav-user-btn:hover {
  color: var(--text);
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}

.nav-user-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  min-width: 120px;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.nav-user-dropdown.active .nav-user-menu {
  display: flex;
}

.nav-user-link {
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
  border: none;
}

.nav-user-link:first-child {
  border-radius: 0;
}

.nav-user-link:last-child {
  border-radius: 0;
}

.nav-user-link:hover {
  background-color: var(--border);
}

.nav-login { color: var(--primary) !important; font-weight: 600; }
.nav-login:hover { color: var(--primary-h) !important; }

.nav-cart { list-style: none; }
.nav-links .nav-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-bottom: none;
  color: var(--muted);
  padding: 0.25rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  text-decoration: none;
  cursor: pointer;
}
.nav-links .nav-cart-btn:hover { color: var(--text); }
.nav-links .nav-cart-btn.is-empty { opacity: 0.4; }
.nav-cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--green);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
}

/* ── Bracket nav dropdown ───────────────────────────────────── */
.nav-bracket-dropdown { position: relative; list-style: none; }
.nav-bracket-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-bracket-btn:hover,
.nav-bracket-btn.active { color: var(--text); }
.nav-bracket-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 140px;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-direction: column;
}
.nav-bracket-dropdown.active .nav-bracket-menu { display: flex; }
.nav-bracket-link {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
  border-bottom: 1px solid var(--border);
}
.nav-bracket-link:last-child { border-bottom: none; }
.nav-bracket-link:hover,
.nav-bracket-link.active { background: var(--border); color: var(--primary); }

/* ── Subscribe / Pricing ────────────────────────────────────── */
.subscribe-hero {
  text-align: center;
  padding: 2.5rem 1.25rem 1.5rem;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}
.subscribe-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.subscribe-sub { color: var(--muted); margin: 0 auto 0.75rem; }
.subscribe-record-proof { margin: 0 auto 0.75rem; font-size: 0.9rem; color: var(--muted); text-align: center; }
.subscribe-record-link { color: #42BDA6; font-weight: 600; text-decoration: none; margin-left: 0.4rem; }
.subscribe-record-link:hover { text-decoration: underline; }
.subscribe-login-hint { margin-top: 0.75rem; text-align: center; color: var(--muted); font-size: 0.95rem; }

/* ── Track Record Banner ──────────────────────────────────────── */
.pricing-trackrecord-banner {
  display: flex;
  justify-content: center;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.pricing-trackrecord-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(66, 189, 166, 0.08), rgba(66, 189, 166, 0.04));
  border: 1px solid rgba(66, 189, 166, 0.25);
  border-radius: 6px;
  width: fit-content;
}

.pricing-trackrecord-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: rgba(66, 189, 166, 0.15);
  border: 1px solid var(--green);
  padding: 0.35rem 0.65rem;
  border-radius: 3px;
  white-space: nowrap;
}

.pricing-trackrecord-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.pricing-trackrecord-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

.pricing-trackrecord-link:hover {
  color: var(--green-mid);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .pricing-trackrecord-content {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
  }
  .pricing-trackrecord-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pricing-trackrecord-banner {
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
  }
  .pricing-trackrecord-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
  }
  .pricing-trackrecord-text {
    font-size: 0.8rem;
  }
}

.pricing-card {
  background: var(--surface-alt);
  border: none;
  border-radius: 0;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.pricing-card--featured {
  background: var(--surface-alt);
}

.pricing-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.75rem;
  display: inline-block;
  width: fit-content;
}
.pricing-badge--best {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pricing-badge--warm {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
}
.pricing-badge--purple {
  background: #a78bfa;
  color: #1e0a3c;
  border-color: #a78bfa;
}

.pricing-plan { font-size: 1.25rem; font-weight: 700; }
.pricing-original-price { font-size: 1rem; color: var(--muted); text-decoration: line-through; margin-bottom: -0.75rem; }
.pricing-price { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.pricing-price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.pricing-savings { font-size: 0.82rem; color: var(--green); font-weight: 600; margin-top: -0.5rem; }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.pricing-features li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-top: calc((1.6em - 5px) / 2);
  background: var(--green);
  flex-shrink: 0;
  align-self: flex-start;
}

.pricing-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pricing-disclosure { font-size: 11px !important; line-height: 1.4; color: #6b7280; opacity: 0.75; }
.pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  background: linear-gradient(135deg, #00E676 0%, #00A854 100%);
  color: #050b07;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pricing-cta:hover {
  color: #050b07;
  filter: brightness(1.05);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
a.pricing-cta { text-decoration: none; }

/* Subscribe positioning block */
.subscribe-positioning {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  text-align: center;
}
.subscribe-positioning-h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.subscribe-positioning-p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 768px) {
  .subscribe-positioning {
    max-width: 700px;
    padding: 0 1rem;
  }
}

/* Urgency line under quarterly pricing */
.pricing-urgency {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.5rem;
  text-align: center;
}

/* Trust block */
.subscribe-trust {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
}

@media (max-width: 768px) {
  .subscribe-trust {
    max-width: 560px;
  }
}
.subscribe-trust-h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.subscribe-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.subscribe-trust-list li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.subscribe-trust-list li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green);
  flex-shrink: 0;
}

.subscribe-disclaimer {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .subscribe-disclaimer {
    max-width: 600px;
    padding: 0 1rem;
  }
}

/* ── Performance Dashboard ─────────────────────────────────── */
.perf-hero {
  background: transparent;
  border-bottom: 1px solid var(--surface-border);
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
}
.perf-breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.perf-breadcrumb a { color: var(--muted); }
.perf-breadcrumb a:hover { color: var(--text); }
.perf-h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.perf-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
.perf-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

/* KPI row */
.perf-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
}
.kpi-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.kpi-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.kpi-value.kpi-pos { color: var(--green); }
.kpi-value.kpi-neg { color: var(--red); }
.kpi-sub { font-size: 0.72rem; color: var(--muted); margin-top: 0.25rem; }

/* Section containers */
.perf-section { padding-top: 2rem; padding-bottom: 0.5rem; }
.perf-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

/* Performance table */
.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.perf-table thead { background: var(--surface-card); }
.perf-table th {
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--surface-border);
  white-space: nowrap;
}
.perf-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--surface-border);
  vertical-align: middle;
}
.perf-table tbody tr:last-child td { border-bottom: none; }
.perf-table tbody tr:hover { background: rgba(255,255,255,.03); }
.perf-period-label { font-weight: 600; }
.td-muted { color: var(--muted); }

/* Monthly P&L bar chart */
.chart-wrapper {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 1.5rem 1.25rem 0.75rem;
  overflow-x: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 190px;
  width: 100%;
}
.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}
.chart-val {
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
}
.chart-val-pos { color: var(--green); }
.chart-val-neg { color: var(--red); }
.chart-bar-wrap {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: flex-end;
}
.chart-bar {
  width: 100%;
  min-height: 4px;
  border-radius: 0;
  transition: opacity 0.2s;
}
.chart-bar:hover { opacity: 0.8; }
.bar-pos { background: var(--green); }
.bar-neg { background: var(--red); }
.chart-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.3rem;
  white-space: nowrap;
}
.perf-chart-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* Weekly P&L chart overrides — more bars, each narrower.
   Scrolls horizontally when the bar count exceeds the viewport.
   Uses a zero-baseline layout: positive bars grow up, negative grow down.
   Flex row: y-axis label column + scrollable bars column. */
.chart-wrapper--weekly {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 1.5rem;
}
.chart-wrapper--weekly .chart-bars {
  flex: 1;         /* fill remaining width after y-axis column */
  min-width: 0;    /* don't force horizontal scroll — bars share available width */
  gap: 0.35rem;
  align-items: stretch; /* cols fill full height */
  height: 240px;
}
.chart-wrapper--weekly .chart-col {
  flex: 1;          /* bars fill container width equally */
  min-width: 28px;  /* floor so very wide date ranges stay legible */
  justify-content: flex-start; /* bar-area fills middle, label at bottom */
  gap: 0.15rem;
}
/* unit value labels above bars — hidden; units shown only on hover via title */
.chart-wrapper--weekly .chart-val {
  display: none;
}
.chart-wrapper--weekly .chart-label {
  font-size: 0.58rem;
  white-space: nowrap;
}

/* Zero-baseline bar area (replaces chart-bar-wrap in weekly chart) */
.chart-bar-area {
  flex: 1;
  width: 100%;
  position: relative;
  min-height: 0;
}
/* Zero line is drawn by JS buildAxis as .chart-grid-zero at the correct
   asymmetric position — no static ::after pseudo needed. */
/* Bars inside bar-area use absolute positioning from the zero line */
.chart-bar-area .chart-bar {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 3px;
  z-index: 1;
}
/* bar-pos/bar-neg anchor is set dynamically by buildAxis JS
   based on the asymmetric zero-line position (--zero-pct).
   Fallback to 50% for charts with no JS yet. */
.chart-bar-area .bar-pos {
  bottom: 50%;
}
.chart-bar-area .bar-neg {
  top: 50%;
}

/* ── Y-axis label column ───────────────────────────────────────────────── */
.chart-yaxis {
  position: relative;
  width: 24px;
  flex-shrink: 0;
  /* Matches the chart-bars height so labels align correctly */
  height: 240px;
  /* Exclude the x-axis label row height (~0.9rem) */
  margin-bottom: calc(0.9rem);
}
.chart-yaxis-label {
  position: absolute;
  right: 2px;
  font-size: 0.50rem;
  color: rgba(148, 163, 184, 0.65);
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  line-height: 1;
}
.chart-yaxis-zero {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

/* ── Horizontal grid lines inside each bar-area ────────────────────────── */
.chart-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 0;
  pointer-events: none;
}
.chart-grid-zero {
  background: rgba(255, 255, 255, 0.18);
}

/* ── Chart Highlights row (4-col stat card below the P&L chart) ── */
.chart-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.chart-highlight-cell {
  padding: 1.1rem 1.4rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.chart-highlight-cell:last-child { border-right: none; }

.ch-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.ch-value {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 0.2rem;
  font-family: var(--font); /* match body font */
}
/* Best Month — same green as wins/streak */
.ch-value.ch-gold   { color: var(--green); }
/* Largest Win — bright green */
.ch-value.ch-pos    { color: var(--green); }
/* Largest Loss — red */
.ch-value.ch-neg    { color: var(--red); }
/* Win Streak — mid green */
.ch-value.ch-streak { color: var(--green-mid, #2FAF97); }
/* fallback empty state */
.ch-value.ch-muted  { color: var(--muted); font-size: 1rem; font-weight: 600; }

.ch-sub {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .chart-highlights { grid-template-columns: repeat(2, 1fr); border-radius: 8px; }
  .chart-highlight-cell:nth-child(2)  { border-right: none; }
  .chart-highlight-cell:nth-child(3)  { border-top: 1px solid var(--border); }
  .chart-highlight-cell:nth-child(4)  { border-top: 1px solid var(--border); border-right: none; }
}

/* ── Scores ────────────────────────────────────────────────── */
.scores-hero {
  background: transparent;
  border-bottom: 1px solid var(--surface-border);
  padding: 2rem 0 1.5rem;
  text-align: center;
}
.scores-h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.scores-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
.scores-section {
  padding: 2rem 0;
}
.scores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  width: 100%;
}
.scores-col {
  min-width: 0;
}
.scores-sport-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--surface-border);
}
.scores-empty {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}
.scores-error {
  color: #b45309;
  font-style: normal;
}
.scores-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.scores-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 0.5rem;
}
.scores-status-final { color: var(--muted); }
.scores-status-upcoming { color: var(--muted); }
.scores-status-live { }
.scores-live-badge {
  background: var(--red);
  color: #fff;
  padding: 1px 6px;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 700;
}
.scores-teams { display: flex; flex-direction: column; gap: 0.25rem; }
.scores-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
}
.scores-team-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--text);
}
.scores-team-score {
  font-weight: 700;
  font-size: 1rem;
  min-width: 22px;
  text-align: right;
  flex-shrink: 0;
  color: var(--text);
}

/* ── Slate Banner & Pick Badges ────────────────────────────── */
.slate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1a2a1a 0%, #0f1f0f 100%);
  border: 1px solid #2d5a2d;
  border-radius: 0;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.875rem;
}
.slate-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e0e0e0;
}
.slate-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.slate-cta {
  background: #2d5a2d;
  color: #fff;
  padding: 6px 14px;
  border-radius: 0;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.slate-cta:hover { background: #3a6e3a; }

.pick-badge {
  position: absolute;
  top: 9px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 4px;
  border-radius: 0;
  z-index: 10;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.pick-badge--free {
  background: var(--green);
  color: #000;
  border: 1px solid var(--green);
}
.pick-badge--locked {
  background: var(--surface-card);
  color: var(--muted);
  border: 1px solid var(--surface-border);
}
.pick-badge--pro {
  background: transparent;
  color: #a78bfa;
  border: 1px solid #6d4fb5;
}

/* ── TTQ Badge (scores page — NCAAB only) ──────────────────── */
.ttq-badge {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 0;
  text-transform: uppercase;
}
.ttq-badge--elite {
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #a78bfa;
}
.ttq-badge--high-quality {
  background: rgba(56, 159, 255, 0.1);
  border: 1px solid rgba(56, 159, 255, 0.35);
  color: var(--sport-baseball);
}
.ttq-badge--low-major {
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: var(--muted);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-container { gap: 0.65rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links a { font-size: 0.78rem; letter-spacing: 0.03em; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 96px; left: 0; right: 0; background: var(--nav-bg); border-bottom: 1px solid var(--border); padding: 1rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .stat-value { font-size: 1.4rem; }
  .picks-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 80px; }
  .scores-grid { grid-template-columns: repeat(2, 1fr); }
  .account-layout { grid-template-columns: 1fr; }
}

/* ── Account Page ──────────────────────────────────────────── */
.account-hero {
  background: transparent;
  border-bottom: 1px solid var(--surface-border);
  padding: 2.5rem 1.25rem 2rem;
}
.account-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.account-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.account-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem 1.25rem;
}

.account-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.account-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.account-card-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0;
}
.account-logout-btn {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.account-logout-btn:hover { color: var(--primary-h); }

/* Subscription badges */
.account-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 0;
  margin-bottom: 0.75rem;
}
.account-badge--active   { background: rgba(66,189,166,0.15);  color: var(--green); border: 1px solid rgba(66,189,166,0.3); }
.account-badge--free     { background: rgba(66,189,166,0.15);  color: var(--green); border: 1px solid rgba(66,189,166,0.3); }
.account-badge--inactive { background: var(--surface-alt); color: var(--muted); border: 1px solid var(--border); }
.account-badge--admin    { background: rgba(245,158,11,0.12); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }

.account-plan-detail { font-size: 0.9rem; color: var(--text); margin-bottom: 0.3rem; }
.account-plan-meta   { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.account-manage-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: -0.1rem;
}
.account-action-btn {
  text-align: center;
  width: 100%;
}

/* Profile form */
.account-form { display: flex; flex-direction: column; gap: 1.25rem; }
.account-field { display: flex; flex-direction: column; gap: 0.4rem; }
.account-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.account-input {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  width: 100%;
  transition: border-color 0.2s;
}
.account-input:focus {
  outline: none;
  border-color: var(--primary);
}
.account-input--readonly {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}
.account-hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
.account-save-btn { margin-top: 0.5rem; width: fit-content; }

/* Success banner */
.account-success {
  background: rgba(66,189,166,0.1);
  border: 1px solid rgba(66,189,166,0.3);
  border-radius: 0;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

/* Outline button variant */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-secondary {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ── Line Movement Signal (free pick card only) ─────────────────────────── */
.line-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  width: fit-content;
}
/* Moderate movement (1.5–2.9 pts): amber */
.line-signal--moderate {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}
/* Strong movement (3.0+ pts): orange */
.line-signal--strong {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.35);
  color: #fb923c;
}
/* Sharp Pinnacle signal: red — overrides strength classes */
.line-signal--sharp {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}
.line-signal-icon { font-size: 0.8rem; flex-shrink: 0; }
.line-signal-text { text-transform: uppercase; line-height: 1.2; }

/* ── 3-State Line Movement (pick cards) ─────────────────────────────────── */
/* .pick-card padding: 1.25rem 1.25rem 1.25rem 0.75rem                       */


/* ── Torvik Contradiction Warning Banner ─────────────────────────────────── */
.conflict-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.75rem 0 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  border: 1px solid transparent;
}
/* High severity: direction conflict — amber background */
.conflict-banner--high {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #b45309;
}
@media (prefers-color-scheme: dark) {
  .conflict-banner--high { color: #fbbf24; }
}
/* Moderate severity: spread gap — subtle muted border */
.conflict-banner--moderate {
  background: rgba(148, 163, 184, 0.07);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--muted);
}
.conflict-icon { font-size: 0.85rem; flex-shrink: 0; margin-top: 0.05rem; }
.conflict-msg { flex: 1; }

/* ── Signals page tier badges ──────────────────────────────────────────────── */
.tier-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 0;
  display: inline-block;
  white-space: nowrap;
}
.tier-gold {
  color: #F5C542;
  background: rgba(197,160,45,0.10);
  border: 1px solid #C9A227;
}
.tier-green {
  color: var(--green);
  background: rgba(66,189,166,0.08);
  border: 1px solid var(--green);
}
.tier-green-dim {
  color: var(--green-mid);
  background: rgba(47,175,151,0.06);
  border: 1px solid var(--green-dark);
}
.tier-blue {
  color: var(--sport-baseball);
  background: rgba(56, 159, 255, 0.08);
  border: 1px solid rgba(56, 159, 255, 0.35);
}
.tier-muted {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
}
.tier-data {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: help;
}

/* ── Admin cost dashboard: per-sport charts grid ─────────────────────────── */
.sport-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) {
  .sport-charts-grid { grid-template-columns: 1fr; }
}
.sport-chart-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.sport-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .6rem;
}
.sport-chart-head h3 {
  font-size: .85rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  margin: 0;
}
.sport-chart-total {
  font-size: .95rem;
  font-weight: 700;
  color: var(--green);
}
.sport-chart-canvas-wrap { position: relative; height: 160px; }

/* ── Admin cost dashboard: collapsible Recent Runs accordion ────────────── */
.accordion summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.15rem;
  font-weight: 600;
  padding: .25rem 0;
  color: var(--text);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: '▸';
  display: inline-block;
  margin-right: .5rem;
  color: var(--green);
  transition: transform .15s ease;
}
.accordion[open] summary::before { transform: rotate(90deg); }
.accordion-body { padding-top: .85rem; overflow: visible; }
