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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:           #0B1120;
  --surface:      #111827;
  --surface-alt:  #1A2332;
  --border:       #1E293B;
  /* Accent greens */
  --green:        #42BDA6;
  --green-mid:    #2FAF97;
  --green-dark:   #1D7862;
  /* Semantic */
  --red:          #EF4444;
  --amber:        #F59E0B;
  --market-gold:  #f5c542;
  /* Primary = green accent */
  --primary:      #42BDA6;
  --primary-h:    #2FAF97;
  /* Text */
  --text:         #E2E8F0;
  --muted:        #94A3B8;
  /* Nav */
  --nav-bg:       #060D1B;
  /* 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;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  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); }

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

/* ── Nav ───────────────────────────────────────────────────── */
.site-header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo img { height: 36px; width: auto; margin-right: 0.5rem; }
.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.7rem; 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.5rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.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: 3rem 1.25rem 1.5rem;
}
.hero-logo { width: 220px; margin: 0 auto 1rem; }
.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 {
  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);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.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;
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-h); color: #fff; }

/* ── Free Pick Card ────────────────────────────────────────── */
.free-pick-section {
  margin-bottom: 2rem;
}
.free-pick-card {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(59,130,246,0.15);
}
.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: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: 0 0 24px rgba(59,130,246,0.12);
}
.epc-card--clickable { cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.epc-card--clickable:hover {
  border-color: var(--primary-h);
  box-shadow: 0 0 32px rgba(59,130,246,0.25);
}
/* 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 {
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 0;
  display: inline-block;
}
.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: var(--muted); }
/* Matchup */
.epc-game { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.25; }
/* 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.75rem; color: var(--muted); }
.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: pull pick-info-row flush with card edges (padding 1.5rem) */
.epc-card .pick-info-row {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  border-left: none;
  border-right: none;
  padding: 12px 1.5rem;
  margin-bottom: 0.75rem;
}

/* ── Pick Info Row (three-box layout) ───────────────────────────────────── */
.pick-info-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
}

/* 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;
}

/* Individual line box */
.line-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border: 1px solid rgba(229, 231, 235, 0.20);
  min-width: 48px;
  gap: 2px;
}
.line-box:hover {
  border-color: rgba(229, 231, 235, 0.45);
}

/* Color variants */
.line-box-green {
  border-color: rgba(66, 189, 166, 0.40);
  background: rgba(66, 189, 166, 0.04);
}
.line-box-red {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}

/* Line box text */
.line-box-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}
.line-box-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
  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: 5px 8px;
  border: 1px solid rgba(229, 231, 235, 0.20);
  min-width: 54px;
  flex-shrink: 0;
  gap: 3px;
}
.pick-odds-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}
.pick-odds-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  line-height: 1;
}

/* 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;
  }

  /* 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;
  }
}

/* ── 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-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;
}
.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; }
/* 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-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 */
.epc-record {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.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: var(--green);
  color: #000;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.1rem;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.epc-cta-btn:hover { opacity: 0.85; color: #0f1117; }
.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: 1px solid var(--border); border-radius: 0; padding: 0.2rem 0.6rem; white-space: nowrap; }
.epc-chip--sharp { color: var(--amber); border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.08); }
.epc-chip--units { color: var(--green); border-color: rgba(66,189,166,0.4); background: rgba(66,189,166,0.08); }

/* 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(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.4);
  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: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 0;
  padding: 1.75rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(59,130,246,0.25);
  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-modal-disclaimer {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.25rem;
  opacity: 0.7;
}
/* ── Premium badge (picks page) ──────────────────────────── */
.badge-premium {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Gold — high conviction (confidence >= 4) */
.badge-premium-gold {
  color: #F5C542;
  background: rgba(197, 160, 45, 0.10);
  border: 1px solid #C9A227;
}

/* Silver — standard conviction (confidence < 4) */
.badge-premium-silver {
  color: #C0C0C8;
  background: rgba(192, 192, 200, 0.08);
  border: 1px solid #8A8A96;
}

/* Subtle shimmer on hover — future per-pick buy signal */
.badge-premium-gold:hover {
  background: rgba(197, 160, 45, 0.18);
  border-color: #F5C542;
  cursor: default;
}
.badge-premium-silver:hover {
  background: rgba(192, 192, 200, 0.14);
  border-color: #C0C0C8;
  cursor: default;
}

/* 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: 1rem;
  margin-top: 1.25rem;
}
.pick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.25rem 1.25rem 0 0.75rem;
  position: relative;
  transition: border-color 0.2s;
  min-height: 130px;
  display: flex;
  flex-direction: column;
}
/* pick-info-row always sits flush at the bottom of the card */
.pick-card .pick-info-row {
  margin-top: auto;
  margin-bottom: 0;
}
.pick-card:hover { border-color: var(--primary); }
.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: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.pick-sport-badge {
  display: inline-block;
  background: rgba(66, 189, 166, 0.12);
  color: var(--green);
  border: 1px solid rgba(66, 189, 166, 0.28);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 0;
  font-weight: 800;
  flex-shrink: 0;
}


.pick-game-time {
  display: inline-block;
  background: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0;
  flex-shrink: 0;
}
.pick-game { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.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: 11px;
  color: var(--muted);
  font-weight: 600;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  margin-top: 3px;
}
.pick-meta-compact > span {
  flex-shrink: 0;
}
.pick-conv {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.pick-conv::before {
  content: "Conv ";
  display: inline;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 9px;
  text-transform: uppercase;
}

.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(59,130,246,0.12); color: var(--primary); }

/* ── Sport Filter Tabs ─────────────────────────────────────── */
.sport-tabs {
  max-width: 1080px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tab {
  padding: 0.4rem 0.9rem;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}
.tab:hover { border-color: var(--primary); color: var(--text); }
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── 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; }

/* ── 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(--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-disclaimer { font-size: 0.78rem; color: var(--muted); max-width: 520px; margin: 0 auto 0.75rem; line-height: 1.5; }
.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(--border); }
.picks-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.picks-table thead { background: var(--surface); }
.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(--border); white-space: nowrap; }
.picks-table td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--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; }
.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; }

/* ── 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: 3rem 1rem 2rem;
}
.subscribe-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.subscribe-sub { color: var(--muted); max-width: 520px; margin: 0 auto 1.5rem; }
.subscribe-login-hint { margin-top: 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.subscribe-login-hint .btn { background: #42BDA6; color: #fff; border: none; }
.subscribe-login-hint .btn:hover { background: #35a892; color: #fff; }

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

.extended-plans-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 2rem auto 0;
  max-width: 900px;
  padding: 0 1.5rem;
}

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

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: border-color 0.2s;
}
.pricing-card:hover { border-color: var(--primary); }
.pricing-card--featured {
  border-color: var(--primary);
  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: 0;
  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-plan { font-size: 1.25rem; font-weight: 700; }
.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: center;
  gap: 0.55rem;
}
.pricing-features li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green);
  flex-shrink: 0;
}

.pricing-cta { margin-top: auto; text-align: center; }

/* Subscribe positioning block */
.subscribe-positioning {
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  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;
}

/* 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: 560px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
}
.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: 600px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ── Performance Dashboard ─────────────────────────────────── */
.perf-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.25rem 2rem;
}
.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;
}
.perf-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
}

/* 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);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.25rem 1rem;
  text-align: center;
}
.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); }
.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(--border);
  white-space: nowrap;
}
.perf-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--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);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.5rem 1.25rem 0.75rem;
  overflow-x: auto;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 130px;
  min-width: 480px;
}
.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  flex: 1;
  min-width: 32px;
}
.chart-val {
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}
.chart-val-pos { color: var(--green); }
.chart-val-neg { color: var(--red); }
.chart-bar-wrap {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: flex-end;
}
.chart-bar {
  width: 100%;
  min-height: 3px;
  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.65rem;
  color: var(--muted);
  margin-top: 0.25rem;
  white-space: nowrap;
}
.perf-chart-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* ── Scores ────────────────────────────────────────────────── */
.scores-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.5rem;
}
.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;
}
.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(--border);
}
.scores-empty {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}
.scores-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
}
.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: #3b82f6;
  color: #fff;
  border: 1px solid #3b82f6;
}

/* ── 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(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--primary-h);
}
.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: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; 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: 160px; }
  .scores-grid { grid-template-columns: repeat(2, 1fr); }
  .account-layout { grid-template-columns: 1fr; }
}

/* ── Account Page ──────────────────────────────────────────── */
.account-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--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);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.75rem;
}
.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--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; }

/* 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: #3b82f6;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.4);
}
.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;
}
