:root {
  --bg-1: #07111f;
  --bg-2: #0c1728;
  --bg-3: #101b2e;
  --panel: rgba(12, 24, 44, 0.82);
  --panel-border: rgba(122, 160, 255, 0.16);
  --text: #e9f1ff;
  --soft: rgba(233, 241, 255, 0.72);
  --muted: #9eb4d5;
  --cyan: #63d6ff;
  --cyan-dark: #03131c;
  --blue: #74a7ff;
  --green: #44e2a8;
  --yellow: #ffd466;
  --orange: #ffae63;
  --red: #ff7676;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(72, 123, 255, 0.18), transparent 25%),
    radial-gradient(circle at top right, rgba(54, 217, 164, 0.12), transparent 18%),
    linear-gradient(180deg, var(--bg-1), #040811 70%);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  opacity: 0.9;
}

.page-shell {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 34px 22px 70px;
}

/* ================================
   TOP BAR / HEADER
================================ */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;

  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 12, 22, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 26px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #06111d;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 10px 25px rgba(68, 226, 168, 0.24);
}

.brand-kicker {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.brand-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.brand-accent {
  color: #59d2ff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a {
  color: #c7d8f5;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: rgba(99, 214, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

/* ================================
   HERO
================================ */

.hero {
  padding: 18px 0 12px;
}

.hero-compact {
  padding-top: 8px;
}

.hero-docs {
  padding-bottom: 8px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 12px;
}

.hero .eyebrow {
  font-size: 18px;
  letter-spacing: 2px;
}

.hero h1 {
  margin: 0;
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 980px;
}

.hero-text {
  margin-top: 16px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 930px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ================================
   BUTTONS
================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #06111d;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 12px 25px rgba(68, 226, 168, 0.18);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(122, 160, 255, 0.18);
}

.update-form {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.btn-update {
  background: linear-gradient(135deg, #67e8f9, #3b82f6);
  color: #021018;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(59, 130, 246, 0.35),
    0 0 12px rgba(103, 232, 249, 0.25);
  transition: all 0.25s ease;
}

.btn-update:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 12px 32px rgba(59, 130, 246, 0.45),
    0 0 18px rgba(103, 232, 249, 0.35);
}

.btn-update:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-update.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ================================
   PANELS / CARDS
================================ */

.panel,
.stat-card,
.pick-card,
.side-panel,
.table-panel,
.overview-card,
.code-panel,
.docs-sidebar-panel,
.docs-section-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.panel {
  padding: 18px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
}

.stat-card {
  padding: 20px;
}

.pick-card {
  padding: 22px;
}

.side-panel,
.table-panel,
.code-panel,
.overview-card,
.docs-section-card {
  padding: 22px;
}

.side-panel {
  padding: 20px;
}

/* ================================
   STATUS GRID / PAGE STATUS
================================ */

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.status-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-align: center;
  width: 100%;
}

.status-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  width: 100%;
}

.label {
  color: #8ea7cb;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.value {
  margin-top: 10px;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.12;
}

.value-small {
  font-size: 22px;
}

.stat-card .label,
.stat-card .value {
  text-align: center;
  width: 100%;
}

.stat-card .label {
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 1px;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 700;
}

/* ================================
   SECTIONS / LAYOUT
================================ */

.section-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 6px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 28px;
}

.section-caption {
  color: var(--muted);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.terminal-layout {
  display: grid;
  grid-template-columns: 2.1fr 0.9fr;
  gap: 20px;
  margin-top: 24px;
}

.terminal-side {
  display: grid;
  gap: 18px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

/* ================================
   PICK CARDS / GAME META
================================ */

.pick-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.pick {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 800;
  color: white;
}

.game-title,
.game-pick {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.game-stats {
  font-size: 14px;
  opacity: 0.85;
}

.game-meta {
  font-size: 14px;
  opacity: 0.7;
}

.meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: #d0def8;
  font-size: 14px;
}

.submeta {
  margin-top: 12px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
}

.card-note {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.card-header-meta {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(180, 200, 255, 0.75);
  display: flex;
  gap: 10px;
}

.game-date {
  opacity: 0.85;
}

.game-time {
  color: #7fdcff;
  font-weight: 500;
}

.bet-card-meta,
.bet-card-summary,
.bet-card-subtle {
  font-family: "SF Mono", "Menlo", monospace;
}

/* ================================
   SIDE PANELS / SNAPSHOTS
================================ */

.side-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.notes-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.snapshot-row {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  margin: 0 auto;
}

.snapshot-row:last-child {
  border-bottom: 0;
}

.snapshot-row strong {
  color: var(--text);
}

.snapshot-sub {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.full-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.full-board-time {
  font-size: 2rem;
  font-weight: 700;
  color: #cfe2ff;
  letter-spacing: -0.02em;
}

/* ================================
   TABLES
================================ */

.table-wrap,
.docs-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.table-dark-custom,
.terminal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.table-dark-custom th {
  text-align: left;
  padding: 12px 10px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.table-dark-custom td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  vertical-align: top;
  font-size: 0.94rem;
}

.table-dark-custom th.center,
.table-dark-custom td.center,
.table-dark-custom th.col-center,
.table-dark-custom td.col-center {
  text-align: center !important;
  vertical-align: middle !important;
}

.terminal-table th,
.terminal-table td {
  padding: 14px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-weight: 800;
}

.terminal-table tr {
  transition: background 0.2s ease;
}

.terminal-table tbody tr:hover,
.terminal-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.terminal-table td {
  vertical-align: middle;
}

.terminal-table td:last-child,
.terminal-table th:last-child {
  padding-right: 24px;
}

.docs-table td {
  vertical-align: top;
}

/* ================================
   NUMBER / CONFIDENCE COLUMNS
================================ */

.num-col {
  text-align: right;
  white-space: nowrap;
}

.text-end {
  font-variant-numeric: tabular-nums;
}

.confidence-cell {
  text-align: right;
  width: 100px;
  padding-right: 18px;
  font-variant-numeric: tabular-nums;
}

.edge-col {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  text-align: right;
  padding-right: 16px;
  font-variant-numeric: tabular-nums;
}

.confidence-col {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  text-align: right;
  padding-right: 20px;
  font-variant-numeric: tabular-nums;
}

.conf-high,
.confidence-high {
  color: #21c999;
  font-weight: 600;
}

.conf-mid,
.confidence-medium {
  color: #f4c430;
  font-weight: 600;
}

.conf-low,
.confidence-low {
  color: #ff6b6b;
  font-weight: 500;
}

/* ================================
   STATUS / PILLS
================================ */

.status,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.status-pill {
  min-width: 90px;
}

.status-wrap {
  display: inline-block;
}

.status-cell,
td.status {
  text-align: center;
  vertical-align: middle;
}

.pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 110px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(143, 231, 251, 0.12);
  border: 1px solid rgba(143, 231, 251, 0.30);
  color: var(--cyan);
}

.table-dark-custom td.col-center .pill {
  justify-content: center;
  min-width: 110px;
}

.status-best-bet,
.status-pill.status-best-bet {
  background: rgba(0, 255, 170, 0.15);
  color: #00ffaa;
}

.status-watch,
.status-pill.status-watch {
  background: rgba(180, 180, 180, 0.12);
  color: #cbd5e1;
}

.status-lean,
.status-pill.status-lean {
  background: rgba(255, 209, 102, 0.15);
  color: #ffd166;
}

.status-avoid,
.status-pill.status-avoid {
  background: rgba(255, 118, 118, 0.16);
  color: #ff9a9a;
}

.model-best-bet {
  background: rgba(33, 201, 153, 0.15);
  color: #62e8ff;
}

.model-pass {
  background: rgba(255, 255, 255, 0.06);
  color: #9db2cc;
}

.mode-pill.strict {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ================================
   ROW HIGHLIGHTS
================================ */

.ai-top6-row {
  background: linear-gradient(90deg,
      rgba(0, 180, 255, 0.06),
      rgba(0, 180, 255, 0.02));
  border-left: 3px solid rgba(0, 180, 255, 0.6);
}

.conflict-row {
  background: linear-gradient(90deg,
      rgba(255, 80, 80, 0.06),
      rgba(255, 80, 80, 0.02));
  border-left: 3px solid rgba(255, 80, 80, 0.7);
}

.ai-top6-row.conflict-row {
  border-left: 3px solid #ffcc00;
}

/* ================================
   MINI FLAGS / NOTES
================================ */

.mini-flag {
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 6px;
  background: rgba(0, 180, 255, 0.15);
  color: #66ccff;
  font-weight: 600;
}

.mini-flag.danger {
  background: rgba(255, 80, 80, 0.15);
  color: #ff7b7b;
}

.ai-note,
.ai-view {
  color: #9ec5ff;
}

.ai-view {
  text-align: center;
  vertical-align: middle;
}

.ai-summary-row {
  background: rgba(255, 255, 255, 0.02);
}

.ai-summary-cell {
  padding: 12px 16px;
  font-size: 14px;
  color: #cfe3ff;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.notes {
  color: var(--soft) !important;
  min-width: 260px;
  line-height: 1.45;
}

.empty-state {
  color: var(--soft);
  padding: 8px 0;
}

/* ================================
   DOCS / API PAGE
================================ */

.docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.docs-sidebar {
  position: relative;
}

.docs-sidebar-panel {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.docs-nav a {
  color: #d8e7ff;
  padding: 10px 12px;
  border-radius: 12px;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.docs-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 214, 255, 0.2);
}

.docs-main {
  display: grid;
  gap: 20px;
}

.docs-section-card {
  scroll-margin-top: 96px;
}

.docs-code {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #9fd6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

/* ================================
   OVERVIEW / CODE PANELS
================================ */

.overview-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
}

.overview-card p,
.overview-card li {
  color: var(--muted);
  line-height: 1.65;
}

.code-panel h2 {
  margin-top: 0;
}

.code-panel pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d7e6ff;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 18px;
  overflow-x: auto;
}

.code-panel-error {
  border-color: rgba(255, 118, 118, 0.24);
}

/* ================================
   SORT TOGGLES
================================ */

.sort-toggle-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.sort-toggle {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c7d2e3;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.sort-toggle.active {
  color: #ffffff;
  border-color: rgba(66, 153, 225, 0.55);
  background: rgba(66, 153, 225, 0.16);
}

/* ================================
   FOOTER
================================ */

.site-footer-premium {
  margin-top: 60px;
  padding: 28px 24px;
  background: linear-gradient(180deg,
      rgba(10, 14, 25, 0.9),
      rgba(5, 8, 15, 1));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-shell {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-kicker {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6f8bb8;
  margin-bottom: 6px;
}

.footer-mainline {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 13px;
  line-height: 1.5;
  color: #9fb3d1;
}

.footer-email {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  color: #7fd6ff;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-email:hover {
  color: #a8e6ff;
  text-shadow: 0 0 8px rgba(127, 214, 255, 0.4);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .terminal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar-panel {
    position: static;
  }
}

@media (max-width: 900px) {

  .status-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 18px;
  }

  .stats-grid,
  .cards-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .page-shell {
    padding: 24px 14px 54px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .value {
    font-size: 28px;
  }
}

/* =========================================
   MLB TABLE CENTERING FIX
   For table:
   Matchup | Bet | Edge | AI Score | Tier | Why
========================================= */

.table-dark-custom {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-dark-custom th,
.table-dark-custom td {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.table-dark-custom th {
  text-align: left;
  color: var(--cyan);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

/* General class-based centering */
.table-dark-custom th.center,
.table-dark-custom td.center {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Column widths + centering by exact position
   1 Matchup
   2 Bet
   3 Edge
   4 AI Score
   5 Tier
   6 Why
*/
.table-dark-custom th:nth-child(3),
.table-dark-custom td:nth-child(3) {
  width: 120px;
  text-align: center;
}

.table-dark-custom th:nth-child(4),
.table-dark-custom td:nth-child(4) {
  width: 140px;
  text-align: center;
}

.table-dark-custom th:nth-child(5),
.table-dark-custom td:nth-child(5) {
  width: 170px;
  text-align: center;
}

.table-dark-custom th:nth-child(6),
.table-dark-custom td:nth-child(6) {
  width: 280px;
}

/* Numeric polish */
.table-dark-custom td:nth-child(3),
.table-dark-custom td:nth-child(4) {
  font-variant-numeric: tabular-nums;
}

/* Tier pill */
.table-dark-custom td:nth-child(5) .pill,
.table-dark-custom td.center .pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 140px;
  margin: 0 auto;
}

/* Optional row hover */
.table-dark-custom tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* FORCE center alignment for numeric columns */
.table-dark-custom th.center,
.table-dark-custom td.center {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Make pills perfectly centered */
.table-dark-custom td.center .pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Optional: make numbers visually centered (pro look) */
.table-dark-custom td.center {
  font-variant-numeric: tabular-nums;
}

.card-stats-row {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 28px;
  align-items: start;
  margin-top: 14px;
}

.card-stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-stat-value {
  font-size: 18px;
  font-weight: 800;
  margin-top: 4px;
}

.pick-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pick-card.best-bet {
  border-color: rgba(68, 226, 168, 0.34);
  box-shadow: 0 0 0 1px rgba(68, 226, 168, 0.08), 0 20px 60px rgba(0, 0, 0, 0.35);
}

.card-note {
  margin-top: auto;
  padding-top: 18px;
}

.cell-center {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cell-center .pill {
  margin: 0 auto;
}

.cell-center {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cell-center .pill {
  margin: 0 auto;
}

/* FORCE TRUE CENTERING */
.table-dark-custom th.col-center,
.table-dark-custom td.col-center {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Ensure pill centers properly */
.table-dark-custom td.col-center .pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Wins = green */
.value-win {
  color: #22c55e;
  font-weight: 700;
}

/* Losses = red */
.value-loss {
  color: #ef4444;
  font-weight: 700;
}

/* Win rate = subtle green tint */
.value-winrate {
  color: rgba(34, 197, 94, 0.9);
  font-weight: 600;
}

.th-ai-score {
  white-space: nowrap;
  min-width: 90px;
  text-align: center;
}

.section-title-row {
  margin-top: 2rem;
}

/* PASS — de-emphasized */
.status-pass {
  .status-watch {
    background: rgba(90, 110, 140, 0.18);
    color: #9fb3c8;
    border: 1px solid rgba(130, 150, 180, 0.20);
  }

  background-color: rgba(255, 255, 255, 0.06);
  /* very light gray */
  color: rgba(255, 255, 255, 0.45);
  /* soft text */
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* subtle outline */
}

.pill-pass {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-pass {
  .status-watch {
    background: rgba(90, 110, 140, 0.18);
    color: #9fb3c8;
    border: 1px solid rgba(130, 150, 180, 0.20);
  }

  background: transparent;
  color: rgba(255, 255, 255, 0.35);
}

/* Center numeric + badge columns */
.table td:nth-child(2),
/* EDGE */
.table td:nth-child(3),
/* AI SCORE */
.table td:nth-child(4) {
  /* TIER */
  text-align: center;
}

/* Make sure headers match */
.table th:nth-child(2),
.table th:nth-child(3),
.table th:nth-child(4) {
  text-align: center;
}

.table td {
  vertical-align: middle;
}

.table td:nth-child(2),
.table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
}

/* CENTER numeric + tier columns */
.terminal-table td.edge-col,
.terminal-table td.ai-pick-col,
.terminal-table td.status-cell {
  text-align: center;
}

/* Match headers */
.terminal-table th.edge-col,
.terminal-table th.ai-pick-col {
  text-align: center;
}

/* Keep text columns left */
.terminal-table td.matchup-cell,
.terminal-table td.why-cell {
  text-align: left;
}

/* Center the TIER column header */
.terminal-table th:nth-child(7) {
  text-align: center;
}

/* Center the whole TIER cell */
.terminal-table td.status-cell {
  text-align: center;
  vertical-align: middle;
}

/* Center the pill itself */
.terminal-table td.status-cell .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.terminal-table th:nth-child(6) {
  white-space: nowrap;
}

/* Center Tier column */
.terminal-table td.tier-cell,
.terminal-table th:nth-child(6) {
  text-align: center;
  vertical-align: middle;
}

/* Ensure pill centers perfectly */
.tier-cell .status-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

/* Center columns cleanly */
.edge-col,
.ai-pick-col,
.tier-cell,
.result-cell {
  text-align: center;
}

/* WIN = green */
.status-win {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

/* LOSS = red */
.status-loss {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* PASS / VOID (light gray) */
.status-pass {
  .status-watch {
    background: rgba(90, 110, 140, 0.18);
    color: #9fb3c8;
    border: 1px solid rgba(130, 150, 180, 0.20);
  }

  background: rgba(148, 163, 184, 0.12);
  color: #cbd5f5;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.full-width-section {
  width: 100%;
  max-width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

.table-panel {
  margin-top: 32px;
}

.card-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  /* adds space before the matchup text */
}

.status-pill {
  display: inline-block;
  margin-bottom: 8px;
  /* adjust to taste (6–12px sweet spot) */
  margin-right: 5px;
}

/* Center STATUS column (last column) */
.table td:last-child,
.table th:last-child {
  text-align: center;
}

td:last-child,
th:last-child {
  text-align: center;
}

.board-image-box {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background: #08152f;
  border: 1px solid rgba(110, 170, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.board-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.board-image-empty {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #89a7d8;
  font-size: 1rem;
}

/* =========================
   DEBUG LAYOUT MODE
========================= */

body.debug-layout * {
  box-sizing: border-box;
}

body.debug-layout section,
body.debug-layout main,
body.debug-layout aside,
body.debug-layout div,
body.debug-layout article,
body.debug-layout header,
body.debug-layout footer,
body.debug-layout table,
body.debug-layout thead,
body.debug-layout tbody,
body.debug-layout tr,
body.debug-layout td,
body.debug-layout th,
body.debug-layout ul,
body.debug-layout li {
  outline: 1px solid rgba(255, 0, 0, 0.35);
}

body.debug-layout .terminal-layout {
  outline: 3px solid #ff4d4f !important;
}

body.debug-layout .terminal-main {
  outline: 3px solid #40a9ff !important;
}

body.debug-layout .terminal-side {
  outline: 3px solid #73d13d !important;
}

body.debug-layout .cards-grid {
  outline: 3px solid #faad14 !important;
}

body.debug-layout .pick-card {
  outline: 3px solid #b37feb !important;
}

body.debug-layout .side-panel {
  outline: 3px solid #13c2c2 !important;
}

body.debug-layout .board-image-panel,
body.debug-layout .board-image-box {
  outline: 4px solid #ff85c0 !important;
}

body.debug-layout .table-panel {
  outline: 3px solid #ffd666 !important;
}

body.debug-layout .table-wrap {
  outline: 3px solid #95de64 !important;
}

body.debug-layout .terminal-table {
  outline: 3px solid #69c0ff !important;
}

body.debug-layout img {
  outline: 3px dashed #ffffff !important;
}

.board-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
}

.board-image-empty {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #89a7d8;
}

.subtext {

  margin-top: 10px;

  font-weight: 400;

  color: rgba(255, 255, 255, 0.55);
  /* slightly stronger than typical muted */

  letter-spacing: 0.2px;

}

.section-title-row h2 .subtext-inline {

  display: inline-block;

  margin-top: 6px;

  font-size: 0.65em;

  font-weight: 400;

  opacity: 0.6;

}

.terminal-main {
  margin-bottom: 24px;
  padding-bottom: 0;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.section-title-row h2 {
  margin: 0;
}

.system-notes-panel {
  flex: 0 0 360px;
}

.terminal-main {
  margin-bottom: 24px;
}

.board-image {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* REMOVE harsh border */
  border: none;

  /* Match your dark UI */
  background: #0b1220;

  /* Smooth edge blending */
  border-radius: 18px;

  /* Soft glow instead of border */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.6);
}

.image-card {
  border: none;
  background: transparent;
  padding: 0;
}

.board-image {
  width: 100%;
  height: 100%;
  object-fit: cover;

  border: none;
  outline: none;
  box-shadow: none;

  border-radius: inherit;
  /* matches card */
}

.image-card,
.board-image {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.image-card,
.image-card img,
.board-image {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.image-card {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 28px;
  /* keep only if you want rounded corners */
}

.board-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.pick-card.image-card {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.pick-card.image-card {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 28px;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.image-only {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  border-radius: 28px;
  /* optional */
}

.image-only img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  border: none;
  outline: none;
  box-shadow: none;
}

.pick-card.image-only {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.image-card,
.pick-card.image-card {
  border: 1px solid #0b1220 !important;
  /* match your background */
}

.image-card,
.pick-card.image-card {
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.image-card,
.pick-card.image-card {
  border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgba(11, 18, 32, 1);
  /* fake border using bg color */
}

.pick-card.image-card {
  border: 1px solid rgba(255, 255, 255, 0.02) !important;
}

.pick-card.image-card {
  box-shadow: none !important;
  outline: none !important;
}

.pick-card.image-card,
.image-card,
.image-card * {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.pick-card.image-card,
.image-card {
  background: transparent !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  /* keep only if you want rounded corners */
}

.board-image,
.image-card img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: inherit !important;
}

.image-slot {
  background: transparent;
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  overflow: hidden;
  border-radius: 28px;
}

.image-slot .board-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: inherit;
}

.image-slot {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  overflow: hidden !important;
  border-radius: 7px;

  /* ↓ REDUCED SHADOW (50%) */
  /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25) !important; */
}

.terminal-table th:nth-child(4),
.terminal-table td:nth-child(4) {
  text-align: center;
}

.stat-card {
  text-align: left;
  /* ← key change */
  padding: 18px 20px;
  /* slightly tighter */
}

.section-title-row {
  display: flex;
  justify-content: flex-start;
  /* ← LEFT ALIGN EVERYTHING */
  align-items: center;
  gap: 16px;
}

.image-panel,
.image-panel img {

  box-shadow: none !important;

  filter: none !important;

  -webkit-filter: none !important;

}

.image-slot,
.image-slot .board-image,
.board-image,
.image-card,
.pick-card.image-card {
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  background: transparent !important;
}

/* Very soft image blend — no heavy shadow */
.image-slot,
.image-card,
.pick-card.image-card {
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  border-radius: 28px !important;
}

.board-image,
.image-slot .board-image,
.image-card img {
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;

  /* very soft edge blend */
  -webkit-mask-image: radial-gradient(circle,
      rgba(0, 0, 0, 1) 94%,
      rgba(0, 0, 0, 0.88) 100%) !important;

  mask-image: radial-gradient(circle,
      rgba(0, 0, 0, 1) 94%,
      rgba(0, 0, 0, 0.88) 100%) !important;
}

.board-image {
  /* soft cinematic shadow (very subtle) */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

  /* gentle edge blend */
  -webkit-mask-image: radial-gradient(circle,
      rgba(0, 0, 0, 1) 92%,
      rgba(0, 0, 0, 0.82) 100%);
  mask-image: radial-gradient(circle,
      rgba(0, 0, 0, 1) 92%,
      rgba(0, 0, 0, 0.82) 100%);
}

.status-pass {
  .status-watch {
    background: rgba(90, 110, 140, 0.18);
    color: #9fb3c8;
    border: 1px solid rgba(130, 150, 180, 0.20);
  }

  opacity: 0.6;
  filter: grayscale(40%);
}

.longshot-table th,
.longshot-table td {
  text-align: left;
}

.longshot-table .text-end {
  text-align: right;
}

.longshot-signal-cell {
  color: #7dd3fc;
  font-weight: 900;
}

.longshot-matchup {
  color: #dbeafe;
}

.longshot-pick {
  color: #f8fafc;
  font-weight: 800;
}

.longshot-odds {
  color: #67e8f9;
  font-weight: 900;
}

.longshot-edge {
  color: #a7f3d0;
  font-weight: 900;
}

.longshot-ai {
  color: #c4b5fd;
  font-weight: 900;
}

.longshot-score {
  color: #fde68a;
  font-weight: 900;
}

.longshot-win {
  color: #93c5fd;
  font-weight: 900;
}

.longshot-ev {
  color: #38bdf8;
  font-weight: 900;
}

.longshot-why {
  color: #e5e7eb;
  text-align: left;
  line-height: 1.35;
}

.status-ice {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.18), rgba(0, 120, 255, 0.18));
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.15);
}

.longshot-panel {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.08);
}

.longshot-panel tr:hover {
  background: rgba(56, 189, 248, 0.05);
}

.longshot-subtitle {
  margin-top: -6px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  opacity: 0.7;
  color: #9bb3c9;
}

.longshot-subtitle {
  margin-top: -6px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  opacity: 0.7;
  color: #9bb3c9;
}

.longshot-subtitle {
  margin-top: 6px;
  margin-bottom: 18px;

  font-size: 1.1rem;
  /* 🔥 bigger */
  font-weight: 500;
  /* slightly stronger */
  line-height: 1.5;

  color: #b9d4ea;
  /* ✅ matches your brighter UI tone */
  opacity: 0.95;
  /* less faded */

  letter-spacing: 0.2px;
}

.longshot-subtitle {

  margin-top: -6px;
  /* pull it UP closer to title */

  margin-bottom: 14px;

  font-size: 1.15rem;

  color: #9fb3c8;

}

.section-subtitle {
  margin-top: 6px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.section-subtitle {
  margin-top: 4px;
  margin-bottom: 20px;
  color: rgba(120, 180, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.paywall-box {
  margin: 22px 0;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 28, 42, 0.96), rgba(5, 8, 14, 0.96));
  border: 1px solid rgba(120, 220, 255, 0.25);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  color: #f4f8ff;
}

.paywall-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7ee7ff;
  margin-bottom: 8px;
}

.paywall-box h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.paywall-box p {
  max-width: 720px;
  color: rgba(244, 248, 255, 0.78);
  margin-bottom: 16px;
}

.paywall-button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  color: #061018;
  background: #7ee7ff;
  text-decoration: none;
  font-weight: 800;
}

.longshot-premium-panel {
  margin: 42px 0;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(88, 211, 255, 0.35);
  background:
    radial-gradient(circle at top left, rgba(88, 211, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(8, 18, 38, 0.98), rgba(9, 14, 30, 0.98));
  box-shadow:
    0 0 40px rgba(20, 168, 255, 0.14),
    inset 0 0 40px rgba(255, 255, 255, 0.02);
}

.longshot-premium-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.longshot-kicker {
  color: #67e8ff;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.longshot-premium-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: #edf5ff;
}

.longshot-premium-header p {
  margin-top: 10px;
  color: rgba(220, 232, 255, 0.68);
  font-size: 1.15rem;
  font-weight: 600;
}

.longshot-card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.35fr;
  gap: 28px;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(18, 31, 58, 0.95), rgba(8, 14, 30, 0.95));
  border: 1px solid rgba(120, 220, 255, 0.18);
}

.longshot-left h3 {
  margin: 22px 0 10px;
  font-size: 1.65rem;
  color: #f2f7ff;
}

.longshot-pick-main {
  font-size: 2.15rem;
  line-height: 1.05;
  font-weight: 950;
  color: #ffffff;
  margin-bottom: 18px;
}

.longshot-reason {
  color: rgba(225, 236, 255, 0.76);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 760px;
}

.longshot-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
}

.metric-tile {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(205, 222, 255, 0.58);
  font-weight: 800;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 950;
  color: #eaf3ff;
}

.odds-value {
  color: #67e8ff;
}

.edge-value,
.ev-value {
  color: #b7ffd8;
}

.ai-value {
  color: #c7b7ff;
}

.score-value {
  color: #ffe987;
}

.featured-metric {
  background: linear-gradient(135deg, rgba(255, 224, 104, 0.12), rgba(88, 211, 255, 0.08));
  border-color: rgba(255, 232, 120, 0.32);
}

.longshot-empty {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(230, 240, 255, 0.82);
  font-size: 1.2rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .longshot-card {
    grid-template-columns: 1fr;
  }

  .longshot-metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

.longshot-premium-panel {
  margin: 28px 0;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(88, 211, 255, 0.35);
  background:
    radial-gradient(circle at top left, rgba(88, 211, 255, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(8, 18, 38, 0.98), rgba(9, 14, 30, 0.98));
  box-shadow: 0 0 30px rgba(20, 168, 255, 0.12);
}

.longshot-premium-header {
  margin-bottom: 18px;
}

.longshot-kicker {
  color: #67e8ff;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.longshot-premium-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  color: #edf5ff;
}

.longshot-premium-header p {
  margin-top: 8px;
  color: rgba(220, 232, 255, 0.68);
  font-size: 0.98rem;
  font-weight: 600;
}

.longshot-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.35fr;
  gap: 20px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(18, 31, 58, 0.95), rgba(8, 14, 30, 0.95));
  border: 1px solid rgba(120, 220, 255, 0.18);
}

.longshot-left h3 {
  margin: 16px 0 8px;
  font-size: 1.3rem;
  color: #f2f7ff;
}

.longshot-pick-main {
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 950;
  color: #ffffff;
  margin-bottom: 12px;
}

.longshot-reason {
  color: rgba(225, 236, 255, 0.76);
  font-size: 0.88rem;
  line-height: 1.45;
}

.longshot-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  gap: 12px;
}

.metric-tile {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(205, 222, 255, 0.58);
  font-weight: 800;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 950;
  color: #eaf3ff;
}

.odds-value {
  color: #67e8ff;
}

.edge-value {
  color: #b7ffd8;
}

.ai-value {
  color: #c7b7ff;
}

.score-value {
  color: #ffe987;
}

.win-value {
  color: #8dbbff;
}

.ev-value {
  color: #b7ffd8;
}

.metric-tile {
  cursor: help;
}

.longshot-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.longshot-meta-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(103, 232, 255, 0.08);
  border: 1px solid rgba(103, 232, 255, 0.18);
  color: #9ee8ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.profit-positive {
  color: #00ff9f;
  text-shadow: 0 0 18px rgba(0, 255, 159, 0.35);
}

.metric-tile {
  position: relative;
  cursor: help;
}

.metric-tile:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
}

.metric-tile,
.status-ice,
.longshot-meta-row span {
  position: relative;
  cursor: help;
}

/* TOOLTIP BOX */
.metric-tile:hover::after,
.status-ice:hover::after,
.longshot-meta-row span:hover::after {
  content: attr(data-tip);
  position: absolute;

  /* 🔥 CHANGE IS HERE */
  bottom: 100%;
  /* anchor above element */
  left: 50%;
  transform: translateX(-50%) translateY(-8px);

  background: rgba(2, 8, 18, 0.96);
  color: #eaf6ff;
  border: 1px solid rgba(103, 232, 255, 0.28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);

  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 9px;
  white-space: nowrap;

  z-index: 9999;
  pointer-events: none;
}

/* TOOLTIP ARROW */
.metric-tile:hover::before,
.status-ice:hover::before,
.longshot-meta-row span:hover::before {
  content: "";
  position: absolute;

  /* 🔥 also flipped */
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(2px);

  border: 6px solid transparent;
  border-top-color: rgba(2, 8, 18, 0.96);

  z-index: 9999;
  pointer-events: none;
}

/* ================================
   LONG SHOT MOBILE FIX
================================ */

.longshot-card {
  overflow: hidden;
}

.longshot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 22px;
}

.longshot-left {
  min-width: 0;
}

.longshot-right {
  min-width: 0;
}

/* iPhone / mobile layout */
@media (max-width: 700px) {
  .longshot-card {
    display: block;
    padding: 28px 22px;
  }

  .longshot-left {
    width: 100%;
  }

  .longshot-right {
    width: 100%;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .longshot-metric-card,
  .longshot-stat-card,
  .longshot-score-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .longshot-matchup,
  .longshot-pick {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .longshot-matchup {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    line-height: 1.08;
  }

  .longshot-pick {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
    line-height: 1.05;
  }
}

/* extra-small iPhones */
@media (max-width: 430px) {
  .longshot-premium-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .longshot-card {
    padding: 24px 18px;
    border-radius: 28px;
  }

  .longshot-right {
    grid-template-columns: 1fr;
  }

  .longshot-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ================================
   LONG SHOT WIDTH / GRID FIX
================================ */

.longshot-premium-panel,
.longshot-card {
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.longshot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: stretch;
}

.longshot-left {
  min-width: 0;
}

.longshot-right {
  min-width: 0;
  max-width: 420px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.longshot-metric-card,
.longshot-stat-card,
.longshot-score-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.longshot-matchup,
.longshot-pick,
.longshot-summary {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* MacBook Air / narrower desktop */
@media (max-width: 1200px) {
  .longshot-card {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
  }

  .longshot-right {
    max-width: 300px;
    gap: 14px;
  }
}

/* tablet + phone */
@media (max-width: 900px) {
  .longshot-card {
    display: block;
  }

  .longshot-right {
    max-width: none;
    margin-top: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* small phones */
@media (max-width: 430px) {
  .longshot-premium-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .longshot-card {
    padding: 24px 18px;
  }

  .longshot-right {
    grid-template-columns: 1fr;
  }
}

/* Final Score column alignment */
.final-score-col,
.final-score-cell {
  text-align: left !important;
}

/* Ensure header aligns too */
th.final-score-col {
  text-align: left !important;
}

.terminal-table th.final-score-col,
.terminal-table td.final-score-cell {
  text-align: left !important;
}

.learning-divider {
  height: 1px;
  margin: 26px 0 22px;
  background: linear-gradient(90deg,
      transparent,
      rgba(88, 217, 255, 0.35),
      transparent);
}

.learning-kicker {
  color: #8dffcf;
}

.learning-summary {
  margin: 10px 0 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(214, 231, 255, 0.82);
}

.learning-change-card {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(141, 255, 207, 0.18);
  background: rgba(5, 18, 26, 0.58);
}

.learning-param {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8dffcf;
  font-weight: 800;
}

.learning-values {
  margin-top: 5px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}

.learning-copy {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(214, 231, 255, 0.78);
}

.learning-copy strong {
  color: #ffffff;
}

.learning-meta,
.learning-empty {
  margin-top: 9px;
  font-size: 0.78rem;
  color: rgba(169, 196, 230, 0.68);
}

/* PICK column only (4th column in your table) */
.terminal-table th:nth-child(4),
.terminal-table td:nth-child(4) {
  text-align: left !important;
}

/* WHY / Decision Logic column */
.terminal-table th:nth-child(8),
.terminal-table td:nth-child(8) {
  text-align: left !important;
  padding-left: 14px;
}

/* Make sure text wraps nicely */
.terminal-table td.why-cell {
  text-align: left !important;
  line-height: 1.4;
}

/* Center RESULT header */
.terminal-table th:nth-child(4) {
  text-align: center !important;
}

/* Center RESULT cells */
.terminal-table td:nth-child(4) {
  text-align: center !important;
}

.premium-lock-banner {
  position: relative;
  margin: 28px 0;
  padding: 3px;
  border-radius: 28px;
  background: linear-gradient(120deg,
      #ff4fd8,
      #6a5cff,
      #24d7ff,
      #39ff88,
      #fff04a);
  box-shadow:
    0 0 28px rgba(36, 215, 255, 0.35),
    0 0 44px rgba(255, 79, 216, 0.22);
}

.premium-lock-content {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  border-radius: 25px;
  padding: 54px 64px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 28px;
  background:
    radial-gradient(circle at 78% 48%, rgba(255, 195, 55, 0.26), transparent 20%),
    radial-gradient(circle at 90% 20%, rgba(57, 255, 136, 0.12), transparent 24%),
    radial-gradient(circle at 10% 0%, rgba(255, 79, 216, 0.10), transparent 28%),
    linear-gradient(135deg, #07152e 0%, #061121 48%, #031216 100%);
}

.premium-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: #48dfff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.premium-lock-left h2 {
  max-width: 980px;
  margin: 0 0 24px;
  color: #f4f7ff;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.premium-lock-left p {
  max-width: 760px;
  margin: 0 0 34px;
  color: rgba(238, 244, 255, 0.92);
  font-size: clamp(19px, 2.1vw, 32px);
  line-height: 1.35;
}

.premium-unlock-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 34px;
  border-radius: 18px;
  color: white;
  text-decoration: none;
  font-size: 25px;
  font-weight: 900;
  background: linear-gradient(100deg, #19c8ff, #6a46ff 48%, #ff35dc);
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 24px rgba(255, 53, 220, 0.45),
    inset 0 0 18px rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.premium-unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 34px rgba(255, 53, 220, 0.65),
    0 0 28px rgba(25, 200, 255, 0.4);
}

.premium-unlock-btn .arrow {
  font-size: 34px;
  line-height: 1;
}

.premium-lock-graphic {
  position: relative;
  min-height: 260px;
}

.glow-burst {
  position: absolute;
  width: 330px;
  height: 330px;
  right: 60px;
  top: 5px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 211, 87, 0.9), rgba(255, 132, 0, 0.26) 36%, transparent 68%);
  filter: blur(4px);
}

.treasure-box {
  position: absolute;
  right: 85px;
  top: 72px;
  width: 230px;
  height: 145px;
  transform: rotate(2deg);
  filter: drop-shadow(0 0 28px rgba(255, 196, 58, 0.65));
}

.box-lid {
  position: absolute;
  left: 16px;
  top: -34px;
  width: 205px;
  height: 74px;
  border-radius: 28px 28px 10px 10px;
  background: linear-gradient(145deg, #18284a, #f6bd38 48%, #16223b 70%);
  border: 3px solid #ffd369;
}

.box-body {
  position: absolute;
  inset: 28px 0 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #101b33, #061126);
  border: 4px solid #ffcc55;
}

.baseball-icon {
  position: absolute;
  left: 82px;
  top: 38px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #ffcc55;
  font-size: 34px;
}

.lock-icon {
  position: absolute;
  left: 92px;
  top: 12px;
  font-size: 54px;
  z-index: 3;
}

.chart-bars {
  position: absolute;
  right: 0;
  bottom: 40px;
  display: flex;
  align-items: end;
  gap: 10px;
}

.chart-bars span {
  width: 18px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(#ff4fe8, #7b5cff);
  box-shadow: 0 0 16px rgba(255, 79, 232, 0.65);
}

.chart-bars span:nth-child(1) {
  height: 42px;
}

.chart-bars span:nth-child(2) {
  height: 70px;
}

.chart-bars span:nth-child(3) {
  height: 100px;
}

.chart-bars span:nth-child(4) {
  height: 136px;
}

.up-arrow {
  position: absolute;
  right: 24px;
  top: 10px;
  color: #66ff72;
  font-size: 110px;
  font-weight: 900;
  text-shadow: 0 0 22px rgba(102, 255, 114, 0.85);
}

@media (max-width: 900px) {
  .premium-lock-content {
    grid-template-columns: 1fr;
    padding: 34px 24px;
  }

  .premium-lock-graphic {
    display: none;
  }

  .premium-unlock-btn {
    width: 100%;
    justify-content: center;
    font-size: 21px;
  }
}

.ou-hero-panel {
  margin: 26px 0;
  padding: 34px 38px;
  border-radius: 26px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  background:
    radial-gradient(circle at 85% 35%, rgba(45, 212, 191, .22), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .98));
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 24px;
  overflow: hidden;
}

.ou-hero-copy h2 {
  margin: 10px 0 12px;
  font-size: 44px;
  line-height: 1;
  color: #f8fbff;
}

.ou-hero-copy p {
  color: #aab7cc;
  font-size: 18px;
  max-width: 760px;
}

.ou-hero-image {
  position: relative;
  min-height: 190px;
}

.ou-ball {
  position: absolute;
  right: 110px;
  top: 28px;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  font-size: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 50px rgba(103, 232, 249, .35);
}

.ou-bars {
  position: absolute;
  right: 20px;
  bottom: 26px;
  display: flex;
  gap: 10px;
  align-items: end;
}

.ou-bars span {
  width: 18px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(#67e8f9, #a78bfa);
  box-shadow: 0 0 18px rgba(103, 232, 249, .4);
}

.ou-bars span:nth-child(1) {
  height: 44px;
}

.ou-bars span:nth-child(2) {
  height: 70px;
}

.ou-bars span:nth-child(3) {
  height: 96px;
}

.ou-bars span:nth-child(4) {
  height: 130px;
}

.ou-bet-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 18px;
}

.ou-bet-card {
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(8, 13, 28, .98));
  box-shadow: 0 0 28px rgba(0, 0, 0, .28);
}

.ou-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ou-date {
  color: #8da2c0;
  font-size: 12px;
  font-weight: 800;
}

.ou-bet-card h3 {
  color: #f8fbff;
  font-size: 20px;
  line-height: 1.15;
  margin: 0 0 14px;
}

.ou-pick-line {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: #67e8f9;
  margin-bottom: 20px;
}

.ou-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ou-metrics div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
}

.ou-metrics span {
  display: block;
  color: #8da2c0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  margin-bottom: 6px;
}

.ou-metrics strong {
  color: #f8fbff;
  font-size: 20px;
}

.ou-notes {
  margin: 16px 0 0;
  color: #9daac0;
  font-size: 13px;
  line-height: 1.4;
}

.empty-panel {
  grid-column: 1 / -1;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  background: rgba(15, 23, 42, .86);
  color: #dbeafe;
}

@media (max-width: 1100px) {
  .ou-bet-grid {
    grid-template-columns: 1fr;
  }

  .ou-hero-panel {
    grid-template-columns: 1fr;
  }

  .ou-hero-image {
    display: none;
  }
}

.highlight-row {
  background: rgba(94, 234, 212, 0.08);
  box-shadow: inset 3px 0 0 rgba(94, 234, 212, 0.8);
}

.learning-layer-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  background: linear-gradient(90deg,
      #67e8f9 0%,
      #38bdf8 35%,
      #22d3ee 70%,
      #6ee7ff 100%);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  margin-bottom: 1.25rem;
}

.learning-layer-copy {
  color: rgba(230, 240, 255, .92);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.learning-layer-box {
  border-top: 1px solid rgba(90, 180, 255, .18);
  padding-top: 1.5rem;
}

.learning-layer-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg,
      #7dd3fc 0%,
      #38bdf8 35%,
      #22d3ee 70%,
      #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.35rem;
  text-shadow:
    0 0 10px rgba(56, 189, 248, .18),
    0 0 24px rgba(34, 211, 238, .10);
}

.learning-layer-copy {
  color: rgba(220, 228, 240, 0.94);
  font-size: 1.18rem;
  line-height: 1.52;
  font-weight: 500;
  margin-bottom: 0;
}

.learning-layer-box {
  border-top: 1px solid rgba(90, 180, 255, .18);
  padding-top: 1.5rem;
}

.learning-layer-box {
  border-top: 1px solid rgba(90, 180, 255, .18);

  padding-top: 2.2rem;
  /* was 1.5rem */
  margin-top: 1.2rem;
}

.learning-layer-title {
  font-size: 1.55rem;
  font-weight: 800;

  letter-spacing: 0.10em;

  text-transform: uppercase;

  background: linear-gradient(90deg,
      #7dd3fc 0%,
      #38bdf8 35%,
      #22d3ee 70%,
      #67e8f9 100%);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  margin-bottom: 1.6rem;

  text-shadow:
    0 0 10px rgba(56, 189, 248, .18),
    0 0 24px rgba(34, 211, 238, .10);
}

.learning-layer-title {
  color: #67dfff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.learning-layer-copy {
  color: #a9bbd6;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 0;
}

.learning-layer-box {
  border-top: 1px solid rgba(90, 180, 255, .22);
  padding-top: 1.8rem;
  margin-top: 1.8rem;
}

.learning-layer-copy {
  color: rgba(185, 200, 225, 0.92);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 0;
}

.learning-layer-copy p {
  margin-bottom: 1.25rem;
}

.learning-layer-copy p:last-child {
  margin-bottom: 0;
}

.learning-layer-small {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 1rem;
}

.learning-layer-small strong {
  color: #67dfff;
  font-weight: 800;
}

.ou-top-card-section {
  margin-top: 2rem;
  margin-bottom: 2.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(80, 180, 255, 0.22);
  border-radius: 22px;
  background: rgba(10, 18, 36, 0.82);
}

.ou-top-card-section h3 {
  margin: 0 0 0.35rem;
  color: #f2f7ff;
  font-size: 1.25rem;
  font-weight: 800;
}

.ou-muted {
  color: rgba(180, 198, 225, 0.88);
  margin: 0 0 1.25rem;
}

.ou-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.ou-pick-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(103, 223, 255, 0.22);
  background: rgba(4, 10, 24, 0.72);
}

.ou-pick-rank {
  color: #67dfff;
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.ou-pick-matchup {
  color: #d8e4f5;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  min-height: 2.6rem;
}

.ou-pick-main {
  margin-top: 0.9rem;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}

.ou-pick-metrics {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.25rem;
  color: rgba(175, 195, 225, 0.9);
  font-size: 0.85rem;
}

.full-ou-board {
  margin-top: 2rem;
}

@media (max-width: 1000px) {
  .ou-card-grid {
    grid-template-columns: 1fr;
  }
}

.ou-top-card-section {
  margin-top: 2rem;
  margin-bottom: 2.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(80, 180, 255, 0.22);
  border-radius: 22px;
  background: rgba(10, 18, 36, 0.82);
}

.ou-top-card-section h3 {
  margin: 0 0 0.35rem;
  color: #f2f7ff;
  font-size: 1.25rem;
  font-weight: 800;
}

.ou-muted {
  color: rgba(180, 198, 225, 0.88);
  margin: 0 0 1.25rem;
}

.ou-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.ou-pick-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(103, 223, 255, 0.22);
  background: rgba(4, 10, 24, 0.72);
}

.ou-pick-rank {
  color: #67dfff;
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.ou-pick-matchup {
  color: #d8e4f5;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  min-height: 2.6rem;
}

.ou-pick-main {
  margin-top: 0.9rem;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}

.ou-pick-metrics {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.25rem;
  color: rgba(175, 195, 225, 0.9);
  font-size: 0.85rem;
}

.full-ou-board {
  margin-top: 2rem;
}

@media (max-width: 1000px) {
  .ou-card-grid {
    grid-template-columns: 1fr;
  }
}

.ou-pending-panel {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.matchup-cell,
.pick-cell,
.logic-cell {
  text-align: left;
}

.edge-cell,
.ai-cell {
  text-align: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}

.brand-link:hover {
  color: inherit;
  text-decoration: none;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 46px;
}

.final-score-cell {
  text-align: left;
  line-height: 1.25;
  min-width: 260px;
}

.terminal-table td.text-center,
.terminal-table th.text-center {
  text-align: center;
}

.title-date {
  display: inline-block;
  margin-left: 14px;
  color: #67e8f9;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (max-width: 700px) {
  .title-date {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    font-size: 0.62em;
  }
}

.title-date {
  display: inline-block;
  margin-left: 14px;
  color: #67e8f9;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.results-subtitle-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;

  margin-top: 10px;
  margin-bottom: 26px;
}

.results-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(220, 230, 255, 0.82);
  line-height: 1.4;
}

.results-date {
  font-size: 1.05rem;
  font-weight: 700;
  color: #67e8f9;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .results-subtitle-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.terminal-table tbody td {
  font-size: 1.18rem;
  font-weight: 500;
  color: rgba(235, 242, 255, 0.96);

  padding-top: 28px;
  padding-bottom: 28px;

  line-height: 1.35;
}

.terminal-table tbody td:nth-child(2),
.terminal-table tbody td:nth-child(3) {
  font-weight: 500;
}

.date-cell {
  font-weight: 450;
  color: rgba(220, 230, 255, 0.92);
}

.text-center {
  text-align: center;
}

.final-score-complete {
  color: #7ee7ff;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(126, 231, 255, 0.18);
}

.final-score-cell {
  color: rgba(235, 242, 255, 0.92);
}

.final-score-complete {
  color: #67e8f9 !important;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(103, 232, 249, 0.28);
}

.final-score-col {
  text-align: left !important;
  padding-left: 18px;
  min-width: 320px;
}

.final-score-cell {
  text-align: left !important;
  padding-left: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.final-score-complete {
  color: #66e6ff;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(102, 230, 255, 0.25);
}

.final-score-col {
  text-align: left !important;
  padding-left: 24px !important;
}

.final-score-cell {
  text-align: left !important;
  justify-content: flex-start !important;
  padding-left: 24px !important;
  white-space: nowrap;
  font-weight: 600;
}

.final-score-complete {
  color: #67e8ff;
  text-shadow: 0 0 14px rgba(103, 232, 255, 0.22);
}

.final-score-col {
  text-align: left !important;
  padding-left: 28px !important;
  min-width: 360px;
}

.final-score-cell {
  text-align: left !important;
  padding-left: 28px !important;
}

.final-score-inner {
  width: 100%;
  text-align: left !important;
  display: flex;
  justify-content: flex-start !important;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
}

.final-score-complete .final-score-inner {
  color: #67e8ff;
  text-shadow: 0 0 14px rgba(103, 232, 255, 0.24);
}

.final-score-col {
  text-align: left !important;
  padding-left: 140px !important;
}

.final-score-cell {
  padding-left: 140px !important;
}

.final-score-inner {
  display: flex;
  justify-content: flex-start !important;
  text-align: left !important;
}

.premium-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.premium-feature-card {
  position: relative;
  padding: 20px 20px 22px;
  min-height: 170px;

  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(14, 24, 48, 0.96), rgba(5, 10, 24, 0.98));

  border: 1px solid rgba(100, 220, 255, 0.22);

  box-shadow:
    0 0 26px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-feature-card .feature-num {
  position: absolute;
  top: 14px;
  left: 14px;

  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 999px;
  border: 1px solid currentColor;

  font-size: 0.78rem;
  font-weight: 900;
}

.premium-feature-card .feature-icon {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 2rem;
}

.premium-feature-card strong {
  display: block;
  color: #f4f7ff;
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.premium-feature-card p {
  margin: 0;
  color: rgba(222, 232, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.blue {
  color: #2fe7ff;
}

.green {
  color: #39ff8a;
}

.purple {
  color: #bd68ff;
}

.gold {
  color: #ffd84d;
}

.orange {
  color: #ff9a42;
}

.cyan {
  color: #46f4ff;
}

@media (max-width: 900px) {
  .premium-feature-row {
    grid-template-columns: 1fr;
  }
}

.final-score-header,
.final-score-cell {
  text-align: left !important;
}

.final-score-cell {
  padding-left: 40px !important;
}

.final-score-inner {
  display: flex;
  justify-content: flex-start !important;
  align-items: center;

  width: 100%;

  text-align: left !important;
}

.final-score-complete {
  color: #63e8ff;
  font-weight: 800;

  text-shadow:
    0 0 12px rgba(80, 220, 255, 0.22);
}

.terminal-table .final-score-header,
.terminal-table .final-score-cell {
  text-align: left !important;
}

.terminal-table th:nth-child(4),
.terminal-table td:nth-child(4) {
  text-align: left !important;
  padding-left: 0 !important;
}

.terminal-table td:nth-child(4) .final-score-inner {
  text-align: left !important;
  justify-content: flex-start !important;
  margin-left: 0 !important;
}

.premium-feature-wall {
  margin: 48px 0;
  padding: 42px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(40, 210, 255, 0.14), transparent 32%),
    linear-gradient(135deg, #071327 0%, #020814 100%);
  border: 1px solid rgba(94, 228, 255, 0.22);
  box-shadow:
    0 0 60px rgba(40, 210, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-header {
  margin-bottom: 32px;
}

.premium-kicker {
  color: #5fe1ff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.premium-header h2 {
  margin: 0 0 18px;
  color: #f4f8ff;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.02;
  max-width: 980px;
}

.premium-header p {
  margin: 0;
  max-width: 980px;
  color: rgba(220, 230, 255, 0.76);
  font-size: 1.1rem;
  line-height: 1.7;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.premium-box {
  min-height: 215px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg,
      rgba(18, 28, 52, 0.95),
      rgba(4, 10, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.18s ease;
}

.premium-box:hover {
  transform: translateY(-4px);
}

.box-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.box-title {
  color: rgba(220, 232, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.box-value {
  color: white;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.box-text {
  color: rgba(220, 232, 255, 0.68);
  line-height: 1.55;
  font-size: 0.94rem;
}

.premium-box.cyan {
  border-color: rgba(92, 234, 255, 0.40);
}

.premium-box.blue {
  border-color: rgba(90, 140, 255, 0.40);
}

.premium-box.purple {
  border-color: rgba(185, 120, 255, 0.40);
}

.premium-box.green {
  border-color: rgba(60, 255, 145, 0.34);
}

.premium-box.orange {
  border-color: rgba(255, 145, 70, 0.34);
}

.premium-box.gold {
  border-color: rgba(255, 220, 100, 0.34);
}

.premium-cta-button {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 68px;
  padding: 0 34px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
  background:
    linear-gradient(135deg,
      #16d9ff 0%,
      #2c8cff 55%,
      #8d54ff 100%);
  box-shadow:
    0 0 35px rgba(70, 210, 255, 0.28);
}

@media (max-width: 1200px) {
  .premium-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

@media (max-width: 900px) {
  .premium-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {

  .premium-feature-wall {
    padding: 26px;
    border-radius: 26px;
  }

  .premium-grid {
    grid-template-columns: 1fr;
  }

  .premium-cta-button {
    width: 100%;
  }
}

@media (max-width: 900px) {

  .comparison-subtext {
    white-space: normal;
    font-size: 1.05rem;
  }

}

.premium-cta-button {
  margin-top: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-height: 84px;
  padding: 0 42px;

  border-radius: 28px;

  text-decoration: none;

  color: white;

  /* KEEP button text same size */
  font-size: 1.15rem;
  font-weight: 900;

  background:
    linear-gradient(135deg,
      #16d9ff 0%,
      #2c8cff 55%,
      #8d54ff 100%);

  box-shadow:
    0 0 38px rgba(70, 210, 255, 0.28);

  white-space: nowrap;
}

.comparison-subtext {
  color: rgba(220, 232, 255, 0.82);

  /* BIGGER TEXT */
  font-size: 1.22rem;

  font-weight: 700;

  line-height: 1.4;

  /* FORCE SINGLE LINE */
  white-space: nowrap;

  margin-top: 10px;
}

.premium-cta-row {
  margin-top: 34px;

  display: flex;
  align-items: center;
  gap: 28px;

  flex-wrap: wrap;
}

.premium-inline-text {
  color: rgba(235, 242, 255, 0.92);

  font-size: 1.9rem;
  font-weight: 800;

  line-height: 1.2;
}

@media (max-width: 900px) {

  .premium-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .premium-inline-text {
    font-size: 1.18rem;
    text-align: center;
  }

}

.premium-cta-row {
  margin-top: 34px;

  display: flex;
  align-items: center;
  /* vertical center */
  gap: 26px;

  flex-wrap: wrap;
}

.premium-inline-text {
  display: flex;
  align-items: center;
  /* keeps text centered to button */

  color: rgba(235, 242, 255, 0.92);

  /* slightly smaller */
  font-size: 1.55rem;

  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 900px) {

  .premium-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .premium-inline-text {
    justify-content: center;
    text-align: center;
    font-size: 1.08rem;
  }

}

.premium-cta-row {
  margin-top: 38px;

  display: flex;
  align-items: center;
  /* center text vertically */
  gap: 34px;

  flex-wrap: nowrap;
}

.premium-cta-button {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* slightly larger */
  min-height: 108px;
  min-width: 640px;

  padding: 0 48px;

  border-radius: 34px;

  font-size: 1.22rem;
  font-weight: 900;

  text-decoration: none;
  color: white;

  background:
    linear-gradient(135deg,
      #1ad9ff 0%,
      #398cff 52%,
      #8d5bff 100%);

  box-shadow:
    0 0 42px rgba(70, 210, 255, 0.28);
}

.premium-inline-text {

  display: flex;
  align-items: center;

  /* perfect optical alignment */
  min-height: 108px;

  color: rgba(235, 242, 255, 0.94);

  font-size: 1.48rem;
  font-weight: 800;

  line-height: 1.2;
}

@media (max-width: 1100px) {

  .premium-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .premium-cta-button {
    min-width: 100%;
    min-height: 84px;
  }

  .premium-inline-text {
    min-height: auto;
    justify-content: center;
    text-align: center;
    font-size: 1.08rem;
  }

}

.premium-cta-button {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 96px;
  min-width: 640px;

  padding: 0 48px;

  border-radius: 34px;

  text-decoration: none;
  color: white;

  /* larger button text */
  font-size: 1.45rem;

  font-weight: 900;

  background:
    linear-gradient(135deg,
      #1ad9ff 0%,
      #398cff 52%,
      #8d5bff 100%);

  box-shadow:
    0 0 42px rgba(70, 210, 255, 0.28);
}

.premium-cta-button {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* slightly smaller */
  min-height: 84px;
  min-width: 560px;

  padding: 0 40px;

  border-radius: 30px;

  text-decoration: none;
  color: white;

  font-size: 1.32rem;
  font-weight: 900;

  background:
    linear-gradient(135deg,
      #1ad9ff 0%,
      #398cff 52%,
      #8d5bff 100%);

  box-shadow:
    0 0 38px rgba(70, 210, 255, 0.24);
}

.free-users-highlight {

  display: inline-block;

  padding: 4px 12px;

  border-radius: 12px;

  color: #ffffff;

  font-weight: 900;

  background:
    linear-gradient(135deg,
      rgba(27, 217, 255, 0.24),
      rgba(76, 119, 255, 0.24));

  border: 1px solid rgba(103, 232, 255, 0.32);

  box-shadow:
    0 0 18px rgba(70, 210, 255, 0.12);
}

.date-cell {
  white-space: nowrap !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 118px;
  padding: 10px 16px;

  border-radius: 999px;

  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.status-best-bet {
  background: linear-gradient(135deg,
      rgba(0, 255, 170, 0.22),
      rgba(0, 190, 255, 0.18));

  color: #8fffd8;
  border: 1px solid rgba(0, 255, 170, 0.35);
}

.status-lean {
  background: rgba(255, 193, 7, 0.14);
  color: #ffd86b;
  border: 1px solid rgba(255, 193, 7, 0.28);
}

.status-watch {
  background: rgba(0, 162, 255, 0.12);
  color: #7fd6ff;
  border: 1px solid rgba(0, 162, 255, 0.22);
}

.status-pass {
  .status-watch {
    background: rgba(90, 110, 140, 0.18);
    color: #9fb3c8;
    border: 1px solid rgba(130, 150, 180, 0.20);
  }

  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-tip {
  position: relative;
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;

  margin-left: 6px;

  border-radius: 50%;

  background: rgba(0, 195, 255, 0.14);
  border: 1px solid rgba(0, 195, 255, 0.22);

  color: #74d7ff;

  font-size: 0.68rem;
  font-weight: 800;

  cursor: help;

  transition: all 0.18s ease;
}

.info-tip:hover {
  background: rgba(0, 195, 255, 0.24);
  transform: scale(1.08);
}

.info-tip::after {
  content: attr(data-tip);

  position: absolute;

  bottom: 145%;
  left: 50%;

  transform: translateX(-50%);

  width: 240px;

  padding: 12px 14px;

  border-radius: 12px;

  background: rgba(5, 12, 24, 0.97);

  border: 1px solid rgba(0, 195, 255, 0.18);

  color: rgba(255, 255, 255, 0.92);

  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;

  text-align: left;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.18s ease;

  z-index: 9999;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45);
}

.info-tip:hover::after {
  opacity: 1;
}

.terminal-table td.text-center,
.terminal-table th.text-center {
  text-align: center;
  vertical-align: middle;
}

.terminal-table th,
.terminal-table td {
  vertical-align: middle;
}

.terminal-table th.text-center,
.terminal-table td.text-center {
  text-align: center;
}

.bullpen-col {
  text-align: center;
  vertical-align: middle;
}

.bullpen-col {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
}

td.bullpen-col,
th.bullpen-col {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.side-col {
  text-align: center !important;
  vertical-align: middle !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.status-top-5 {
  background: rgba(0, 180, 255, 0.14);
  border: 1px solid rgba(0, 180, 255, 0.45);
  color: #63d5ff;
  box-shadow: inset 0 0 12px rgba(0, 180, 255, 0.08);
}

.premium-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 360px;
  padding: 22px 42px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #22d3ee, #3b82f6, #8b5cf6);
  box-shadow:
    0 0 28px rgba(56, 189, 248, 0.28),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.premium-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -35%;
  width: 28%;
  height: 180%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.65),
      transparent);
  transform: rotate(18deg);
  animation: cta-sweep 3.4s ease-in-out infinite;
}

.premium-cta span {
  position: relative;
  z-index: 1;
}

.premium-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 38px rgba(56, 189, 248, 0.42),
    0 0 18px rgba(139, 92, 246, 0.28),
    inset 0 0 20px rgba(255, 255, 255, 0.16);
}

@keyframes cta-sweep {
  0% {
    left: -35%;
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  45% {
    left: 110%;
    opacity: 0.9;
  }

  100% {
    left: 110%;
    opacity: 0;
  }
}

.time-col,
.time-cell {
  white-space: nowrap;
  width: 140px;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  margin-bottom: 12px;

  background: linear-gradient(180deg, #0a1a2f, #081524);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 10px;

  font-size: 13px;
  letter-spacing: 1px;
  color: #7dd3fc;
}

.terminal-title-left {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  opacity: 0.6;
}

.terminal-title-center {
  font-weight: 600;
  color: #67e8f9;
}

.terminal-title-right {
  font-size: 11px;
  color: #22c55e;
  letter-spacing: 1.5px;
}

.title-date {
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(103, 232, 249, 0.35);
  color: #dbeafe;
  font-weight: 700;
}

.terminal-title-main {
  font-size: 28px;
  /* match your big header */
  font-weight: 700;
  color: #e6edf3;
  /* your clean white (not pure white) */
  letter-spacing: -0.3px;
}

.status-box {
  background: rgba(14, 165, 233, 0.18);
  color: #67e8f9;
  border-color: rgba(14, 165, 233, 0.55);
  text-decoration: none;
}

.status-box:hover {
  background: rgba(14, 165, 233, 0.28);
}

.terminal-table th:hover {
  color: #ffffff;
}

.container,
.main-panel,
.page-wrap {
  max-width: 1400px;
  /* increase this */
  width: 95%;
}

/* widen main terminal content */
main,
.content,
.page-content,
.terminal-layout,
.terminal-main,
.table-panel,
.longshot-premium-panel {
  max-width: none !important;
  width: 96vw !important;
}

/* center but keep wide */
.table-panel,
.longshot-premium-panel {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* allow table to use full width */
.table-wrap {
  width: 100% !important;
  overflow-x: auto;
}

.terminal-table {
  width: 100% !important;
  min-width: 1450px;
}

/* active sorted column */
.sorted-col {
  background: rgba(56, 189, 248, 0.10);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
  border-radius: 6px;
}

/* header highlight */
.sorted-header {
  color: #67e8f9;
  text-shadow: 0 0 6px rgba(103, 232, 249, 0.5);
}

/* default AI column highlight (before click) */
.default-ai-col {
  background: rgba(56, 189, 248, 0.08);
}

.sorted-col {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.sorted-header {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(103, 232, 249, 0.8);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.10);
}

.has-tip {
  position: relative;
  cursor: help;
}

/* TOOLTIP BOX */
.has-tip .tip {
  display: none;
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;

  padding: 12px 14px;

  font-size: 13px;
  line-height: 1.5;

  color: #ffffff;
  /* ← WHITE TEXT */
  text-align: left;
  /* ← LEFT ALIGN */

  background: rgba(8, 18, 35, 0.97);
  border: 1px solid rgba(80, 180, 255, 0.35);
  border-radius: 10px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);

  z-index: 999;

  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* SHOW ON HOVER */
.has-tip:hover .tip {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

th.active-sort::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 3px;
  height: 3px;
  background: linear-gradient(90deg, #00e5ff, #00ffcc);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
  border-radius: 3px;
}

th.sorted {
  background: none;
  border: none;
  position: relative;
  color: #ffffff;
}

/* underline instead of box */
th.sorted::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 4px;
  height: 2px;
  background: #00e5ff;
  border-radius: 2px;
}

/* REMOVE ANY EXISTING SORT BOX */
th.sorted,
th.active,
th.sort-active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* MAKE SURE POSITIONING WORKS */
th.sorted,
th.active,
th.sort-active {
  position: relative;
  color: #ffffff;
}

/* ADD UNDERLINE */
th.sorted::after,
th.active::after,
th.sort-active::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 6px;
  height: 2px;
  background: #00e5ff;
  border-radius: 2px;
}

.date-col {
  white-space: nowrap;
}

/* RESULT TEXT */
.final-result {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.final-result.win {
  color: #00ff9c;
}

.final-result.loss {
  color: #ff5c5c;
}

.final-result.push {
  color: #cccccc;
}

/* SCORE */
.final-score {
  font-size: 12px;
  color: #9fb3c8;
  margin-top: 2px;
}

/* PENDING */
.final-pending {
  color: #7f8c9a;
  font-size: 12px;
}

/* BOX BUTTON */
.box-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.box-link:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: #00e5ff;
}

.terminal-table th {
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.terminal-table th:hover {
  background: rgba(91, 213, 255, 0.08);
  color: #ffffff;
}

.terminal-table th.sorted-header {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(91, 213, 255, 0.28), rgba(255, 255, 255, 0.10));
  border: 1px solid rgba(91, 213, 255, 0.75);
  box-shadow:
    0 0 18px rgba(91, 213, 255, 0.30),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
}

.terminal-table th.sorted-header::after {
  color: #ffffff;
  opacity: 0.85;
}

.metric-tip {
  cursor: help;
}

.metric-tip:hover::after {
  min-width: 220px;
  max-width: 280px;

  padding: 12px 16px;

  border-radius: 12px;

  line-height: 1.45;

  text-align: left;

  white-space: normal;

  transform: translateX(-50%) translateY(-8px);
}

.metric-tip {
  position: relative;
}

.metric-tip:hover::after {
  background: rgba(18, 34, 58, 0.96);
  border: 1px solid rgba(80, 200, 255, 0.55);

  box-shadow:
    0 0 18px rgba(80, 200, 255, 0.18),
    0 10px 30px rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(10px);
}

.unlock-premium-btn {
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 720px;

  padding: 34px 42px;

  border-radius: 999px;

  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;

  color: #ffffff;
  text-decoration: none;

  background:
    linear-gradient(135deg,
      #29d6ff 0%,
      #3f8cff 38%,
      #6674ff 68%,
      #b07cff 100%);

  border: 2px solid rgba(255, 255, 255, 0.22);

  box-shadow:
    0 0 25px rgba(41, 214, 255, 0.28),
    0 0 55px rgba(95, 120, 255, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    inset 0 -8px 18px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.unlock-premium-btn::before {
  content: "";

  position: absolute;
  top: -20%;
  left: -35%;

  width: 30%;
  height: 160%;

  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.10) 40%,
      rgba(255, 255, 255, 0.50) 50%,
      rgba(255, 255, 255, 0.10) 60%,
      rgba(255, 255, 255, 0) 100%);

  transform: rotate(18deg);

  animation: premiumSweep 5.5s linear infinite;

  pointer-events: none;
}

.unlock-premium-btn:hover {
  transform: translateY(-2px) scale(1.01);

  filter: brightness(1.05);

  box-shadow:
    0 0 35px rgba(41, 214, 255, 0.38),
    0 0 80px rgba(95, 120, 255, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -10px 22px rgba(0, 0, 0, 0.24);
}

@keyframes premiumSweep {
  0% {
    left: -40%;
  }

  100% {
    left: 140%;
  }
}

.active-metric,
.metric-tip.active,
th.active .metric-tip {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;

  border-radius: 999px;

  background:
    linear-gradient(180deg,
      rgba(120, 220, 255, 0.22) 0%,
      rgba(60, 120, 255, 0.18) 100%);

  border: 1px solid rgba(90, 220, 255, 0.55);

  color: #ffffff;

  box-shadow:
    0 0 18px rgba(80, 200, 255, 0.18),
    0 0 40px rgba(80, 140, 255, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.20),
    inset 0 -8px 16px rgba(0, 0, 0, 0.20);

  backdrop-filter: blur(10px);

  transition: all 0.22s ease;
}

@keyframes aiGlowSweep {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

.active-metric:hover,
.metric-tip.active:hover,
th.active .metric-tip:hover {
  transform: translateY(-1px);

  box-shadow:
    0 0 25px rgba(80, 220, 255, 0.28),
    0 0 55px rgba(90, 140, 255, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -10px 18px rgba(0, 0, 0, 0.24);
}

/* =========================================
   REMOVE CYAN UNDERLINES
========================================= */

.terminal-table th::after {
  display: none !important;
}

.metric-tip::after {
  display: none !important;
}


/* =========================================
   TOOLTIP CURSOR
========================================= */

.metric-tip {
  position: relative;
  cursor: help;
}


/* =========================================
   PREMIUM ACTIVE HEADER PILLS
========================================= */

.terminal-table th.sorted,
.terminal-table th.sort-active {
  background: transparent !important;
}


/* =========================================
   ACTIVE HEADER CHIP STYLE
========================================= */

.terminal-table th.sorted .metric-tip,
.terminal-table th.sort-active .metric-tip {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 78px;

  padding: 12px 24px;

  border-radius: 999px;

  color: #ffffff;

  background:
    linear-gradient(180deg,
      rgba(95, 210, 255, 0.24),
      rgba(55, 95, 180, 0.20));

  border: 1px solid rgba(100, 225, 255, 0.65);

  box-shadow:
    0 0 18px rgba(70, 210, 255, 0.22),
    0 0 42px rgba(70, 120, 255, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    inset 0 -8px 16px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(10px);

  transition: all 0.22s ease;
}


/* =========================================
   PREMIUM HOVER EFFECT
========================================= */

.terminal-table th.sorted .metric-tip:hover,
.terminal-table th.sort-active .metric-tip:hover {

  transform: translateY(-1px);

  box-shadow:
    0 0 25px rgba(80, 220, 255, 0.28),
    0 0 55px rgba(90, 140, 255, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -10px 18px rgba(0, 0, 0, 0.24);
}

/* Header pill hover */
.terminal-table th.sort-active .metric-tip:hover {
  cursor: pointer;

  color: #ffffff;

  background:
    linear-gradient(135deg,
      rgba(25, 220, 255, 0.38),
      rgba(90, 120, 255, 0.34),
      rgba(175, 115, 255, 0.30));

  border-color: rgba(160, 240, 255, 0.95);

  box-shadow:
    0 0 22px rgba(65, 220, 255, 0.42),
    0 0 60px rgba(95, 120, 255, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.40),
    inset 0 -10px 18px rgba(0, 0, 0, 0.24);

  transform: translateY(-2px) scale(1.03);
}


/* Selected sort field */
.terminal-table th.sort-selected .metric-tip {
  color: #ffffff;

  background:
    linear-gradient(135deg,
      #20dfff 0%,
      #4f8dff 48%,
      #b478ff 100%);

  border-color: rgba(255, 255, 255, 0.65);

  box-shadow:
    0 0 28px rgba(45, 220, 255, 0.55),
    0 0 78px rgba(105, 130, 255, 0.38),
    inset 0 1px 2px rgba(255, 255, 255, 0.55),
    inset 0 -12px 20px rgba(0, 0, 0, 0.25);

  transform: translateY(-1px);
}

/* =========================================
   PREMIUM TERMINAL BUTTON
========================================= */

.unlock-premium-btn {

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 720px;

  padding: 34px 42px;

  border-radius: 999px;

  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;

  color: #ffffff;
  text-decoration: none;

  background:
    linear-gradient(135deg,
      #29d6ff 0%,
      #3f8cff 38%,
      #6674ff 68%,
      #b07cff 100%);

  border: 2px solid rgba(255, 255, 255, 0.22);

  box-shadow:
    0 0 25px rgba(41, 214, 255, 0.28),
    0 0 55px rgba(95, 120, 255, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    inset 0 -8px 18px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;

  backdrop-filter: blur(10px);
}


/* =========================================
   METALLIC LIGHT SWEEP
========================================= */

.unlock-premium-btn::before {

  content: "";

  position: absolute;

  top: -20%;
  left: -35%;

  width: 30%;
  height: 160%;

  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.10) 40%,
      rgba(255, 255, 255, 0.50) 50%,
      rgba(255, 255, 255, 0.10) 60%,
      rgba(255, 255, 255, 0) 100%);

  transform: rotate(18deg);

  animation: premiumSweep 5.5s linear infinite;

  pointer-events: none;
}


/* =========================================
   GLASS OVERLAY
========================================= */

.unlock-premium-btn::after {

  content: "";

  position: absolute;

  inset: 1px;

  border-radius: 999px;

  border-top: 1px solid rgba(255, 255, 255, 0.35);

  pointer-events: none;
}


/* =========================================
   HOVER STATE
========================================= */

.unlock-premium-btn:hover {

  transform: translateY(-2px) scale(1.01);

  filter: brightness(1.05);

  box-shadow:
    0 0 35px rgba(41, 214, 255, 0.38),
    0 0 80px rgba(95, 120, 255, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -10px 22px rgba(0, 0, 0, 0.24);
}


/* =========================================
   ACTIVE CLICK
========================================= */

.unlock-premium-btn:active {

  transform: scale(0.985);

  box-shadow:
    0 0 18px rgba(41, 214, 255, 0.24),
    0 0 40px rgba(95, 120, 255, 0.18),
    inset 0 3px 10px rgba(0, 0, 0, 0.28);
}


/* =========================================
   ANIMATION
========================================= */

@keyframes premiumSweep {

  0% {
    left: -40%;
  }

  100% {
    left: 140%;
  }
}

.unlock-premium-btn {

  max-width: 540px;

  padding: 24px 30px;

  font-size: 1.65rem;
}

.unlock-premium-btn {

  box-shadow:
    0 0 18px rgba(41, 214, 255, 0.24),
    0 0 42px rgba(95, 120, 255, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    inset 0 -6px 14px rgba(0, 0, 0, 0.18);
}

.premium-lock {
  font-size: 1.4rem;
  margin-right: 14px;
}

/* ACTIVE / SELECTED SORT BUTTON */

.terminal-table th.sort-selected .metric-tip {

  color: #ffffff !important;

  background:
    linear-gradient(135deg,
      #1fe1ff 0%,
      #4f8dff 50%,
      #b478ff 100%) !important;

  border: 1px solid rgba(255, 255, 255, 0.75);

  box-shadow:
    0 0 18px rgba(35, 220, 255, 0.55),
    0 0 50px rgba(95, 120, 255, 0.30),
    0 0 90px rgba(120, 100, 255, 0.16),
    inset 0 1px 2px rgba(255, 255, 255, 0.40),
    inset 0 -8px 18px rgba(0, 0, 0, 0.22);

  transform: translateY(-1px) scale(1.03);

  z-index: 20;

  position: relative;
}

.terminal-table tbody tr td {
  vertical-align: top !important;
}

.hero-title,
.terminal-hero-title,
.main-headline {
  letter-spacing: 0.02em;
}

.score-cell {
  text-align: center;
  vertical-align: top;
}

.score-text {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #e8f0ff;
  text-transform: uppercase;
  white-space: normal;
}

.score-tbd {
  color: #9aa8c8;
}

.score-cell {
  text-align: center;
  vertical-align: middle;
}

.score-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: #e8f0ff;
  text-transform: none;
  white-space: normal;
}

.final-cell {
  text-align: center;
  vertical-align: middle;
}

.hero-image,
.terminal-image {
  width: 75%;
  max-width: 75%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.pick-card,
.hero-image-wrap {
  aspect-ratio: 1 / 1;
  min-height: 420px;
  height: 100%;
}

.pick-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 28px;
  border-radius: 28px;

  background:
    linear-gradient(145deg,
      rgba(10, 20, 42, 0.96),
      rgba(4, 10, 28, 0.98));

  border: 1px solid rgba(90, 145, 210, 0.22);

  overflow: hidden;
}

.hero-image-wrap {
  border-radius: 28px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .pick-card,
  .hero-image-wrap {
    aspect-ratio: auto;
    min-height: 360px;
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pick-card,
.hero-image-wrap {
  min-height: 420px;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
}

.hero-image-wrap {
  background: rgba(8, 18, 40, 0.96);
  border: 1px solid rgba(90, 145, 210, 0.22);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .pick-card,
  .hero-image-wrap {
    min-height: 360px;
  }
}

.hero-image-wrap {
  background: rgba(8, 18, 40, 0.96);
  border: 1px solid rgba(90, 145, 210, 0.22);

  border-radius: 28px;
  overflow: hidden;

  min-height: 320px;
  max-height: 320px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pick-card,
.hero-image-wrap {
  min-height: 320px;
}

.score-link {
  color: #e8f0ff;
  text-decoration: none;
  cursor: pointer;
}

.score-link:hover {
  color: #7ee7ff;
  text-shadow: 0 0 14px rgba(126, 231, 255, 0.65);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pick-card,
.hero-image-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: unset;
  height: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   OFFICIAL TOP 5: PERFECT SQUARE CARDS
========================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pick-card,
.hero-image-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 28px;
  overflow: hidden;
  box-sizing: border-box;
}

.pick-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.hero-image-wrap {
  padding: 0 !important;
  background: transparent !important;
  border: 1px solid rgba(90, 145, 210, 0.22);
}

.hero-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.no-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #9fb3d8;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* DAY column */
.day-col {
  text-align: center;
  width: 110px;
  white-space: nowrap;
}

/* body cells under DAY */
.terminal-table td.day-col {
  text-align: center;
  vertical-align: middle;
}

/* =========================================
   TABLE ALIGNMENT SYSTEM
========================================= */

/* Default all headers centered */
.terminal-table th {
  text-align: center;
  vertical-align: middle;
}

/* Default all table cells centered */
.terminal-table td {
  text-align: center;
  vertical-align: middle;
}

/* DAY column */
.day-col {
  text-align: center !important;
  width: 110px;
  white-space: nowrap;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* MATCHUP stays left aligned for readability */
.matchup-cell {
  text-align: left !important;
  min-width: 260px;
  line-height: 1.25;
}

/* PICK column */
.pick-cell {
  text-align: center !important;
  white-space: nowrap;
}

/* HOME column */
.home-cell {
  text-align: center !important;
}

/* Numeric metric columns */
.metric-cell,
.edge-col,
.ai-pick-col,
.pitcher-col,
.bullpen-col,
.side-col,
.nv-col,
.vol-col {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}

/* Status / final / box */
.tier-cell,
.result-cell,
.box-cell {
  text-align: center !important;
}

/* Prevent wrapping where needed */
.nowrap {
  white-space: nowrap;
}

.final-score-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(15, 35, 55, 0.95);
  border: 1px solid rgba(90, 220, 255, 0.25);
  color: #e8f2ff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.score-cell {
  min-width: 260px;
  white-space: nowrap;
}

.score-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 12px 18px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.score-link {
  color: #e8f2ff;
  text-decoration: none;
  background: rgba(18, 55, 82, 0.9);
  border: 1px solid rgba(90, 220, 255, 0.3);
}

.plain-score-link {
  color: #e8f2ff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.plain-score-link:hover {
  color: #6ee7ff;
  text-decoration: underline;
}

.score-cell {
  min-width: 260px;
  white-space: nowrap;
}

.plain-score-text {
  color: #dfe7f5;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;

  text-align: center;

  max-width: 240px;
  margin: 0 auto;
}

.score-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 6px;

  width: 100%;
  padding: 4px 0;
}

.plain-score-link,
.plain-score-text {
  color: #dfe7f5 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  max-width: 220px !important;
  margin: 0 auto !important;
  text-decoration: none !important;
}

.score-cell {
  min-width: 220px;
  max-width: 240px;
  white-space: normal !important;
  text-align: center;
}

.score-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.plain-score-link,
.plain-score-text {
  color: #e8eefc !important;

  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;

  text-align: center !important;

  white-space: normal !important;
  overflow-wrap: break-word !important;

  text-decoration: none !important;
}

.historical-caption {
  font-size: 1.42rem;
  line-height: 1.42;
  font-weight: 500;
  color: #c2d2ee;
  letter-spacing: -0.01em;

  margin-top: 0rem;
  margin-bottom: 2.2rem;

  max-width: 1450px;
}

.terminal-title {

  margin-bottom: 0.35rem;

}

.live-board-caption {
  font-size: 1.42rem;
  line-height: 1.42;
  font-weight: 500;
  color: #c2d2ee;
  letter-spacing: -0.01em;

  margin-top: 0;
  margin-bottom: 2.2rem;

  max-width: 1450px;
}

/* ================================
   TOP 5 CARD GRID — FINAL SQUARE FIX
================================ */

.cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.pick-card,
.hero-image-wrap {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: unset !important;
  height: auto !important;
  border-radius: 28px !important;
  overflow: hidden !important;
}

/* Keep text cards looking like panels */
.pick-card {
  padding: 28px !important;
}

/* Image becomes its own matching square panel */
.hero-image-wrap {
  padding: 0 !important;
  background: transparent !important;
  border: 1px solid rgba(90, 145, 210, 0.22) !important;
  box-shadow: var(--shadow) !important;
}

/* Show the whole image, not cropped */
.hero-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center 66% !important;
  /* moves image down about 1/3 */
  border-radius: 28px !important;
  display: block !important;
  background: #07111f !important;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr !important;
  }
}

/* FINAL OVERRIDE — TOP CARDS + IMAGE PANEL */

.cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

/* Every direct item in the grid becomes a true square */
.cards-grid>* {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 28px !important;
  overflow: hidden !important;
}

/* Text cards */
.cards-grid>.pick-card {
  padding: 28px !important;
}

/* Image panel */
.cards-grid>.hero-image-wrap {
  padding: 0 !important;
  background: #07111f !important;
  border: 1px solid rgba(90, 145, 210, 0.22) !important;
  box-shadow: var(--shadow) !important;
  display: block !important;
}

/* Image fills panel */
.cards-grid>.hero-image-wrap img,
.cards-grid>.hero-image-wrap .hero-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit !important;
  display: block !important;
}

.cards-grid>.hero-image-wrap img,
.cards-grid>.hero-image-wrap .hero-image {
  width: 100% !important;
  height: 100% !important;


  object-fit: contain !important;
  object-position: center center !important;

  border-radius: inherit !important;
  display: block !important;
}

.top-bet-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.top-bet-panel {
  min-height: 100%;
  height: auto;
}

.top-bet-image-wrap {
  display: flex;
  height: auto;
  aspect-ratio: auto;
}

.top-bet-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 28px;
}

.top-five-feature-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 28px;
}

.pick-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.pick-feature-card,
.pick-image-card {
  border-radius: 28px;
  border: 1px solid rgba(90, 180, 255, 0.16);
  background:
    radial-gradient(circle at top left, rgba(36, 86, 255, 0.12), transparent 34%),
    rgba(5, 14, 36, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.pick-feature-card {
  padding: 28px;
}

.pick-image-card {
  overflow: hidden;
  min-height: 100%;
}

.pick-image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 28px;
}

.pick-chip-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mini-pill.muted {
  color: rgba(230, 238, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.mini-pill.official {
  color: #4cc9ff;
  background: rgba(25, 94, 255, 0.22);
}

.mini-pill.open {
  color: #30f092;
  background: rgba(24, 183, 113, 0.20);
}

.pick-matchup {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: #eef5ff;
}

.pick-title {
  margin: 0 0 28px;
  font-size: 2.1rem;
  line-height: 1.1;
  color: #ffffff;
}

.pick-main-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.pick-main-metrics span,
.metric-block span,
.pick-game-time,
.box-title {
  display: block;
  color: rgba(221, 232, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.pick-main-metrics strong {
  display: block;
  margin-top: 5px;
  color: #f3f7ff;
  font-size: 1.6rem;
  line-height: 1;
}

.pick-game-time strong,
.score-link {
  display: inline-block;
  margin-top: 6px;
  color: #5be2ff;
  font-size: 0.98rem;
  font-weight: 900;
  text-decoration: none;
}

.score-link:hover {
  color: #8df1ff;
  text-decoration: underline;
}

.ai-breakdown-box {
  margin-top: 22px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(93, 151, 220, 0.12);
  background: rgba(2, 10, 28, 0.38);
}

.ai-breakdown-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.metric-block strong {
  display: block;
  margin: 8px 0 8px;
  color: #eaf1ff;
  font-size: 2rem;
  line-height: 1;
}

.metric-bar {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(180, 205, 240, 0.20);
}

.metric-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #24d9ff, #b8dcff);
}

.metric-bar.good i {
  background: linear-gradient(90deg, #7dff89, #31d76b);
}

.ai-detail-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 18px;
}

.ai-reasoning-card,
.ai-math-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(93, 151, 220, 0.12);
  background: rgba(2, 10, 28, 0.44);
}

.ai-reasoning-card h4,
.ai-math-card h4 {
  margin: 0 0 14px;
  color: #f0f6ff;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.ai-reasoning-card p {
  margin: 0 0 20px;
  color: rgba(235, 242, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.62;
}

.ai-reasoning-card p:last-child {
  margin-bottom: 0;
}

.ai-math-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-math-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  color: rgba(235, 242, 255, 0.9);
  font-size: 0.96rem;
  border-bottom: 1px solid rgba(125, 165, 220, 0.08);
}

.ai-math-card li:last-child {
  border-bottom: none;
}

.ai-math-card strong,
.ai-total-edge strong,
.positive {
  color: #74ff84;
}

.ai-total-edge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(125, 165, 220, 0.18);
  color: #eef5ff;
  font-size: 1.15rem;
  font-weight: 950;
}

@media (max-width: 1100px) {

  .pick-feature-row,
  .ai-detail-grid {
    grid-template-columns: 1fr;
  }

  .ai-breakdown-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pick-main-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .pick-image-card img {
    height: auto;
  }
}

@media (max-width: 680px) {
  .ai-breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pick-chip-row {
    flex-wrap: wrap;
  }

  .pick-title {
    font-size: 1.6rem;
  }
}

.top-picks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pick-feature-card,
.pick-image-card {
  border-radius: 28px;
  border: 1px solid rgba(90, 180, 255, 0.16);

  background:
    radial-gradient(circle at top left,
      rgba(36, 86, 255, 0.12),
      transparent 34%),
    rgba(5, 14, 36, 0.94);

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.34);
}

.pick-feature-card {
  padding: 28px;
}

.pick-image-card {
  overflow: hidden;
  min-height: 100%;
}

.pick-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
}

.hero-final-card {
  min-height: 100%;
}

/* CENTER FINAL + SCORE COLUMNS */

.final-score-cell,
.result-cell,
.tier-cell {
  text-align: center !important;
  vertical-align: middle !important;
}

.final-score-cell a,
.final-score-cell span,
.result-cell span,
.tier-cell span {
  margin-left: auto;
  margin-right: auto;
}

/* SCORE TEXT */

.plain-score-link,
.plain-score-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  width: 100%;
  min-height: 72px;

  color: #eaf2ff;
  font-weight: 850;
  line-height: 1.25;

  text-decoration: none;
}

/* FINAL STATUS */

.result-cell .status-pill,
.tier-cell .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* TABLE CELLS */

.terminal-table td {
  vertical-align: middle;
}

.home-team-cell {
  text-align: center !important;
  white-space: normal;
  line-height: 1.25;
  font-weight: 800;
}

.pick-feature-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 34px;
}

.pick-image-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;

  min-height: 100%;
  height: auto;

  border: 1px solid rgba(90, 180, 255, 0.14);
  background: rgba(2, 10, 28, 0.55);

  display: flex;
}

.pick-image-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
}

/* ----------------------------------------
   MOBILE
---------------------------------------- */

@media (max-width: 980px) {

  .pick-feature-row {
    grid-template-columns: 1fr;
  }

  .pick-image-card {
    aspect-ratio: 16 / 9;
    min-height: unset;
    max-height: 420px;
  }

  .pick-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.time-cell {
  vertical-align: top;
}

.score-cell {
  vertical-align: top;
}

/* =================================================
   TABLE ALIGNMENT
================================================= */

.terminal-table {
  width: 100%;
  border-collapse: collapse;
}

.terminal-table th,
.terminal-table td {
  text-align: center;
  vertical-align: top;
}

/* Optional: keep matchup + pick easier to read */
.terminal-table .matchup-cell,
.terminal-table .pick-cell {
  text-align: center;
}

/* Center score links/text */
.final-score-cell,
.final-score-cell a,
.final-score-cell span {
  text-align: center;
  display: block;
}

/* Ensure headers are perfectly centered */
.terminal-table thead th {
  text-align: center !important;
  vertical-align: middle;
}

/* Time column alignment */
.time-cell {
  text-align: center;
  vertical-align: top;
}

/* Home team column */
.home-team-cell {
  text-align: center;
}

/* Status/result pills */
.tier-cell,
.result-cell {
  text-align: center;
}

/* Keep rows visually balanced */
.terminal-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.terminal-table th,
.terminal-table td {
  text-align: center !important;
  vertical-align: middle;
}

.terminal-table .pitcher-col {
  text-align: center !important;
  min-width: 140px;
}

.terminal-table .metric-tip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* FORCE TRUE CENTERING */

th.pitcher-col {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

th.pitcher-col .metric-tip {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.terminal-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.terminal-table th,
.terminal-table td {
  text-align: center !important;
  vertical-align: top;
  white-space: nowrap;
  padding: 18px 18px;
}

/* Allow only matchup + score to wrap */
.matchup-cell {
  min-width: 260px;
  max-width: 320px;
  white-space: normal !important;
  line-height: 1.25;
}

.pick-cell {
  min-width: 180px;
  max-width: 240px;
  white-space: normal !important;
  line-height: 1.25;
}

.score-cell {
  min-width: 190px;
  max-width: 240px;
  white-space: normal !important;
  line-height: 1.25;
}

.time-cell {
  min-width: 130px;
}

.ai-pick-col,
.edge-col,
.metric-cell,
.tier-cell,
.result-cell {
  min-width: 110px;
}

.terminal-table .pitcher-col {
  min-width: 130px;
  width: 130px;
}

/* Fix metric header/cell alignment */
.terminal-table th.pitcher-col,
.terminal-table td.pitcher-col {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.terminal-table th.pitcher-col .metric-tip {
  width: 140px !important;
  min-width: 140px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
}

/* HOME COLUMN */
.terminal-table th.home-team-col,
.terminal-table td.home-team-cell {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  vertical-align: top;
}

/* HOME TEXT */
.home-team-cell {
  white-space: normal;
  line-height: 1.25;
  margin: 0 auto;
}

th.home-team-col {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* =========================
   RESULT PILLS
========================= */

.result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 12px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;

  border: 1px solid transparent;
}

/* WIN = GREEN */

.win-pill {
  background: rgba(0, 255, 120, .15);
  color: #00ff88;
  border-color: rgba(0, 255, 120, .35);

  box-shadow: 0 0 10px rgba(0, 255, 120, .15);
}

/* LOSS = RED */

.loss-pill {
  background: rgba(255, 60, 60, .15);
  color: #ff5a5a;
  border-color: rgba(255, 60, 60, .35);

  box-shadow: 0 0 10px rgba(255, 60, 60, .15);
}

.unlock-premium-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 220px;
  padding: 24px 28px;

  border: none;
  outline: none;
  border-radius: 24px;

  /* MORE ACTIVE / ENERGETIC BLEND */
  background: linear-gradient(135deg,
      #3a5dff 0%,
      #7a3cff 22%,
      #1d9bff 48%,
      #00c2ff 72%,
      #533bff 100%);

  background-size: 320% 320%;

  animation: premiumFlow 6s ease infinite;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 14px 36px rgba(0, 0, 0, 0.42);

  backdrop-filter: blur(12px);

  text-decoration: none !important;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

/* COLOR ENERGY LAYER */
.unlock-premium-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background:
    radial-gradient(circle at 15% 30%, rgba(0, 255, 255, 0.28), transparent 32%),
    radial-gradient(circle at 82% 68%, rgba(255, 0, 140, 0.22), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 45%);

  mix-blend-mode: screen;

  animation: colorPulse 5s ease-in-out infinite;

  z-index: 1;
}

/* MOVING LIGHT SWEEP */
.unlock-premium-btn::after {
  content: "";
  position: absolute;

  top: -100%;
  left: -60%;

  width: 42%;
  height: 320%;

  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.18),
      transparent);

  transform: rotate(18deg);

  animation: shineSweep 4.8s linear infinite;

  z-index: 2;
}

/* CONTENT */
.unlock-premium-btn .premium-cta-inner {
  position: relative;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

/* BIGGER TEXT */
.unlock-premium-btn .premium-text {
  color: #ffffff;

  font-size: 23px;
  font-weight: 800;

  letter-spacing: 0.4px;

  white-space: nowrap;

  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ICON */
.unlock-premium-btn .premium-lock {
  font-size: 17px;
  opacity: 0.96;
}

/* HOVER */
.unlock-premium-btn:hover {
  transform: translateY(-2px) scale(1.015);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.48);
}

/* ANIMATIONS */
@keyframes premiumFlow {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 100% 50%;
  }

  50% {
    background-position: 100% 100%;
  }

  75% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes colorPulse {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }

  100% {
    opacity: 0.65;
    transform: scale(1);
  }
}

@keyframes shineSweep {
  0% {
    left: -70%;
  }

  100% {
    left: 170%;
  }
}

/* PREMIUM INFO PANEL */
.premium-info-box {
  position: relative;
  overflow: hidden;

  padding: 28px 34px;

  border-radius: 24px;

  border: 1px solid rgba(90, 170, 255, 0.16);

  /* cleaner layered glass */
  background:
    linear-gradient(135deg,
      rgba(10, 22, 42, 0.88) 0%,
      rgba(14, 28, 54, 0.92) 45%,
      rgba(20, 18, 58, 0.90) 100%);

  backdrop-filter: blur(14px);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.28);

  isolation: isolate;
}

/* animated color atmosphere */
.premium-info-box::before {
  content: "";

  position: absolute;
  inset: -20%;

  background:
    radial-gradient(circle at 15% 30%, rgba(0, 180, 255, 0.14), transparent 32%),
    radial-gradient(circle at 80% 70%, rgba(120, 80, 255, 0.16), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 40%);

  animation: premiumAtmosphere 10s ease-in-out infinite;

  z-index: 1;
}

/* subtle flowing light */
.premium-info-box::after {
  content: "";

  position: absolute;

  top: -120%;
  left: -30%;

  width: 40%;
  height: 320%;

  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.06),
      transparent);

  transform: rotate(18deg);

  animation: premiumSweep 12s linear infinite;

  z-index: 2;
}

/* content layer */
.premium-info-box>* {
  position: relative;
  z-index: 5;
}

/* smoother text styling */
.premium-info-box p {
  margin: 0;

  color: rgba(235, 242, 255, 0.92);

  font-size: 22px;
  line-height: 1.7;
  font-weight: 300;

  letter-spacing: -0.01em;

  text-wrap: balance;

  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25);
}

/* animated background motion */
@keyframes premiumAtmosphere {
  0% {
    transform: translateX(0px) translateY(0px) scale(1);
  }

  50% {
    transform: translateX(12px) translateY(-6px) scale(1.03);
  }

  100% {
    transform: translateX(0px) translateY(0px) scale(1);
  }
}

/* slow elegant sweep */
@keyframes premiumSweep {
  0% {
    left: -50%;
  }

  100% {
    left: 160%;
  }
}

.score-cell {
  width: 220px;
  max-width: 220px;
}

.score-cell-inner {
  width: 100%;
  max-width: 220px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.score-text {
  display: block;

  max-width: 210px;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;

  text-align: center;
  line-height: 1.25;
}

.score-link {
  color: inherit;
  text-decoration: none;
}

/* FIX SCRAMBLED FINAL / SCORE ROW */
.score-cell {
  position: relative;
  text-align: center;
  vertical-align: middle;
}

.score-cell-inner,
.score-cell .score-text,
.score-cell .score-link,
.score-cell .score-tbd {
  position: static !important;
  inset: auto !important;
  transform: none !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  max-width: 220px;
  margin: 0 auto;

  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

/* keep score link inside SCORE column */
.score-link {
  color: #dfe8ff;
  text-decoration: none;
}

/* box button should not steal layout */
.box-pill,
.score-box-link {
  position: static !important;
  display: inline-flex;
}

/* BOTTOM TABLE MATCHUP WRAP */
.bottom-results-table .matchup-cell,
.bottom-results-table .score-text,
.bottom-results-table td {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* FORCE TWO-LINE TEAM WRAP */
.bottom-results-table .score-text {
  display: block;

  max-width: 420px;

  margin: 0 auto;

  line-height: 1.28;
  text-align: center;
}

/* cleaner spacing */
.bottom-results-table td {
  vertical-align: middle;
  padding-top: 26px;
  padding-bottom: 26px;
}

/* GLOBAL MOBILE RESET */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* MOBILE LAYOUT FIX */
@media (max-width: 768px) {

  .topbar,
  .terminal-shell,
  .terminal-section,
  .premium-section,
  .premium-grid,
  .premium-card,
  .table-panel,
  .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .topbar {
    position: relative;
    left: auto;
    right: auto;
    transform: none !important;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 18px 20px;
  }

  .topbar-left {
    width: 100%;
    max-width: 100%;
  }

  .topbar nav,
  .topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    width: 100%;
    max-width: 100%;
  }

  .premium-grid,
  .feature-grid,
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  .premium-card,
  .feature-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  h1,
  .hero-title,
  .terminal-title {
    font-size: clamp(32px, 9vw, 52px);
    line-height: 1.05;
    overflow-wrap: break-word;
  }

  p,
  .premium-copy,
  .section-copy {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .terminal-table {
    min-width: 980px;
  }
}

/* TOPBAR FULL WIDTH */
.topbar {
  position: relative;

  width: 100%;
  max-width: 100%;

  margin: 0;
  padding: 22px 24px;

  border-radius: 0;

  background:
    linear-gradient(135deg,
      rgba(2, 10, 28, 0.98),
      rgba(3, 14, 38, 0.98));

  border-bottom:
    1px solid rgba(80, 160, 255, 0.12);

  box-sizing: border-box;

  overflow: hidden;
}

/* FIX SAFARI/IPHONE GAP */
body {
  margin: 0;
  padding: 0;
}

/* MOBILE TOPBAR */
@media (max-width: 768px) {

  .topbar {
    width: 100vw;
    max-width: 100vw;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding:
      max(18px, env(safe-area-inset-top)) 22px 20px 22px;
  }

  .topbar-inner,
  .topbar-left {
    width: 100%;
    max-width: 100%;
  }
}

/* REFRESH BUTTON */
.refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;

  border-radius: 99px;

  background:
    linear-gradient(135deg,
      rgba(40, 120, 255, 0.22),
      rgba(0, 220, 255, 0.18));

  border:
    1px solid rgba(120, 200, 255, 0.22);

  color: #dff6ff;

  font-size: 35px;
  font-weight: 700;

  text-decoration: none;

  box-shadow:
    0 0 18px rgba(0, 180, 255, 0.18);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.refresh-btn:hover {
  transform: rotate(90deg);

  box-shadow:
    0 0 26px rgba(0, 200, 255, 0.28);
}

/* MOBILE BEST BETS = SINGLE VERTICAL STACK */
@media (max-width: 768px) {

  .top-signals-grid,
  .best-bets-grid,
  .hero-bets-grid,
  .bets-grid {
    display: flex !important;
    flex-direction: column !important;

    gap: 18px;

    width: 100%;
    max-width: 100%;
  }

  .top-signals-grid>*,
  .best-bets-grid>*,
  .hero-bets-grid>*,
  .bets-grid>* {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* stop horizontal wrapping */
  .signal-card,
  .bet-card,
  .top-bet-card {
    flex: none !important;

    width: 100% !important;
    max-width: 100% !important;
  }
}

/* FORCE BEST BETS INTO ONE MOBILE COLUMN */
@media (max-width: 768px) {

  .official-bets-grid,
  .top-signals-grid,
  .best-bets-grid,
  .hero-bets-grid,
  .bets-grid,
  .cards-grid,
  .signal-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;

    width: 100% !important;
    max-width: 100% !important;

    gap: 22px !important;
  }

  .official-bets-grid>*,
  .top-signals-grid>*,
  .best-bets-grid>*,
  .hero-bets-grid>*,
  .bets-grid>*,
  .cards-grid>*,
  .signal-grid>* {
    grid-column: 1 / -1 !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    flex: none !important;
  }

  .official-bet-card,
  .top-signal-card,
  .signal-card,
  .bet-card,
  .top-bet-card,
  .game-card,
  .terminal-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

.matchup-split {
  min-width: 260px;
  line-height: 1.15;
}

.matchup-split .team-line {
  display: block;
  font-weight: 700;
  white-space: normal;
}

.matchup-split .vs-line {
  display: block;
  font-size: 11px;
  opacity: 0.65;
  letter-spacing: 1px;
  margin: 2px 0;
}

.score-live-link {
  color: #67d9ff;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.score-live-link:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(103, 217, 255, 0.9);
}

.score-live-link:visited {
  color: #67d9ff;
}

.score-live-link {
  color: #67d9ff;
  font-weight: 800;
  text-decoration: none;
  white-space: normal;
  line-height: 1.15;
  display: inline-block;
}

.score-live-link:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(103, 217, 255, 0.9);
}

.score-live-link:visited {
  color: #67d9ff;
}

.status-best-bet {
  background: linear-gradient(135deg,
      rgba(0, 255, 140, 0.22),
      rgba(0, 190, 110, 0.18));

  border: 1px solid rgba(0, 255, 140, 0.45);

  color: #7dffb2;

  box-shadow:
    0 0 18px rgba(0, 255, 140, 0.20),
    inset 0 0 12px rgba(0, 255, 140, 0.06);
}

.status-best,
.status-best-bet {
  background: linear-gradient(135deg,
      rgba(0, 255, 140, 0.22),
      rgba(0, 190, 110, 0.18));

  border: 1px solid rgba(0, 255, 140, 0.45);

  color: #7dffb2;

  box-shadow:
    0 0 18px rgba(0, 255, 140, 0.20),
    inset 0 0 12px rgba(0, 255, 140, 0.06);

  text-shadow:
    0 0 8px rgba(125, 255, 178, 0.45);
}

.metric-tip {
  position: relative;
  cursor: help;
}

.metric-tip::after {
  content: attr(data-tip);

  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);

  transform: translateX(-50%);

  width: 320px;

  background: rgba(2, 8, 25, 0.97);

  border: 1px solid rgba(0, 220, 255, 0.25);

  border-radius: 14px;

  padding: 14px 16px;

  color: #dff8ff;

  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;

  text-align: left;

  box-shadow:
    0 0 28px rgba(0, 170, 255, 0.18),
    0 0 60px rgba(0, 80, 255, 0.08);

  opacity: 0;
  pointer-events: none;

  z-index: 99999;

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.metric-tip::before {
  content: "";

  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);

  transform: translateX(-50%);

  border-width: 8px 8px 0 8px;
  border-style: solid;

  border-color:
    rgba(0, 220, 255, 0.4) transparent transparent transparent;

  opacity: 0;

  transition: opacity 0.18s ease;

  z-index: 100000;
}

.metric-tip:hover::after,
.metric-tip:hover::before {
  opacity: 1;
}

.table-wrap,
.terminal-table,
.terminal-table thead,
.terminal-table th {
  overflow: visible !important;
}

.metric-tip {
  position: relative;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.metric-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%) translateY(4px);
  width: 360px;
  max-width: 80vw;
  background: rgba(2, 8, 25, 0.98);
  color: #dff8ff;
  border: 1px solid rgba(103, 217, 255, 0.55);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  text-align: left;
  white-space: normal;
  box-shadow: 0 0 28px rgba(103, 217, 255, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999999;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.metric-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent rgba(103, 217, 255, 0.55) transparent;
  opacity: 0;
  visibility: hidden;
  z-index: 1000000;
}

.metric-tip:hover::after,
.metric-tip:hover::before {
  opacity: 1;
  visibility: visible;
}

.table-wrap {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.terminal-table,
.terminal-table thead,
.terminal-table th {
  overflow: visible !important;
}

/* Refresh nav button alignment + bigger icon */
.nav-refresh,
.refresh-btn,
.refresh-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 80px;
  height: 80px;
  border-radius: 40%;

  margin-top: 2px;
  /* move button down a hair */
  transform: translateY(1px);

  background: #0b3765;
  color: #d7e8ff;
  text-decoration: none;
}

/* bigger refresh icon */
.nav-refresh svg,
.refresh-btn svg,
.refresh-link svg,
.nav-refresh i,
.refresh-btn i,
.refresh-link i {
  width: 38px;
  height: 38px;
  font-size: 48px;
  line-height: 10;
}

/* CENTER premium section */
.premium-terminal-wrap,
.premium-terminal-section,
.premium-terminal-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* CENTER button */
.unlock-premium-btn,
.premium-cta {
  margin: 0 auto 28px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CENTER text below button */
.premium-description,
.premium-terminal-text,
.premium-terminal-copy {
  text-align: center;
  margin: 0 auto;
  max-width: 1100px;
}

/* OPTIONAL: cleaner spacing */
.premium-terminal-copy {
  padding-top: 6px;
}

/* FULL CENTER PREMIUM AREA */
.premium-terminal-wrap,
.premium-terminal-section,
.premium-terminal-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* CENTER THE BUTTON */
.unlock-premium-btn,
.premium-cta {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

/* CENTER THE TEXT */
.premium-description,
.premium-terminal-text,
.premium-terminal-copy,
.premium-terminal-copy h2,
.premium-terminal-copy p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* OPTIONAL WIDTH CONTROL */
.premium-terminal-copy {
  max-width: 1200px;
}

/* STACK button ABOVE text */
.premium-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* CENTER button */
.unlock-premium-btn,
.premium-cta {
  margin: 0 auto 4px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CENTER text below button */
.premium-inline-text {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Pull text closer to button */
.premium-inline-text {
  text-align: center;
  max-width: 1100px;

  margin-top: -85px;
  /* move upward */
  padding-top: 0;
}

/* tighten button spacing */
/* .unlock-premium-btn,
.premium-cta {
  margin-bottom: 10px;
} */

.premium-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 16px;
  margin-top: 40px;
  text-align: center;
  width: 100%;
}

.unlock-premium-btn {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: min(380px, 88vw);
  height: 74px;

  border-radius: 22px;
  background: linear-gradient(135deg, #7b3cff, #2f8cff);
  box-shadow: 0 0 40px rgba(90, 120, 255, 0.35);

  text-decoration: none;
  color: #fff;
  font-weight: 900;
}

.premium-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  white-space: nowrap;
}

.premium-inline-text {
  position: relative;
  z-index: 1;

  max-width: 980px;
  margin: 0 auto;

  color: rgba(235, 241, 255, 0.92);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 700px) {
  .premium-cta-row {
    margin-top: 28px;
    gap: 14px;
    padding: 0 18px;
  }

  .unlock-premium-btn {
    width: 100%;
    max-width: 340px;
    height: 62px;
  }

  .premium-inline-text {
    font-size: 1.05rem;
  }
}