/* ============================================================
   Polymarket World Cup 2026 — Fan Hub & Odds Tracker
   Design: Dark theme + green accent, mirroring polymarket.com
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0f14;
  --bg-card:     #161a24;
  --bg-card-h:   #1c2130;
  --border:      #242a38;
  --green:       #00dc82;
  --green-dim:   #00b368;
  --green-bg:    rgba(0, 220, 130, 0.08);
  --red:         #f04f4f;
  --red-bg:      rgba(240, 79, 79, 0.08);
  --text:        #f0f2f7;
  --text-muted:  #7a8499;
  --text-dim:    #4a5568;
  --accent-blue: #5b8def;
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  0.18s ease;
  --font:        'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, select { font-family: var(--font); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #000;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo-text { color: var(--text); }
.logo-text span { color: var(--green); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-card);
}

/* Nav right */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; border-radius: var(--radius-sm); transition: all var(--transition); border: none; white-space: nowrap; }

.btn-ghost {
  padding: 8px 16px;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-primary {
  padding: 8px 20px;
  font-size: 0.875rem;
  background: var(--green);
  color: #000;
}
.btn-primary:hover { background: #00f090; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,220,130,0.3); }

.btn-outline {
  padding: 10px 24px;
  font-size: 0.9375rem;
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover { background: var(--green-bg); }

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all 0.25s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 72px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(0,220,130,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  border: 1px solid rgba(0,220,130,0.25);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stats row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  display: block;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ============================================================
   COUNTDOWN TIMER
   ============================================================ */
.countdown-wrap {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.countdown-label-top {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 76px;
}

.countdown-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.countdown-lbl {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.countdown-sep {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 20px;
}

.countdown-starts {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 72px 24px; }
.section-sm { padding: 48px 24px; }

.container { max-width: 1280px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section-title-lg {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   ODDS TABLE
   ============================================================ */
.odds-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
}

.odds-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.odds-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.odds-table tr:last-child td { border-bottom: none; }

.odds-table tbody tr {
  transition: background var(--transition);
}

.odds-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.odds-others td { opacity: 0.65; }

.odds-rank {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  width: 40px;
  padding-left: 20px;
}

.odds-flag-cell {
  width: 40px;
  padding-right: 4px;
}

.team-flag {
  font-size: 1.5rem;
  line-height: 1;
  display: block;
}

.odds-name-cell {
  white-space: nowrap;
  padding-left: 4px;
}

.team-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9375rem;
}

.odds-prob-cell {
  min-width: 160px;
}

.odds-prob-inner {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.odds-pct-val {
  font-size: 0.9375rem;
  font-weight: 800;
}

.mini-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  width: 120px;
}

.mini-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-dim));
  border-radius: 2px;
}

.odds-implied {
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  white-space: nowrap;
}

.odds-vol {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.odds-action { width: 80px; }

.odds-action a,
.odds-action .btn-yes {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(0,220,130,0.25);
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font);
}

.odds-action a:hover,
.odds-action .btn-yes:hover {
  background: var(--green);
  color: #000;
}

.odds-disclaimer {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.odds-disclaimer a { color: var(--text-muted); text-decoration: underline; transition: color var(--transition); }
.odds-disclaimer a:hover { color: var(--green); }

/* ============================================================
   MARKET CATEGORY GRID (Featured teasers)
   ============================================================ */
.market-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.market-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
}

.market-category-card:hover {
  border-color: rgba(0,220,130,0.25);
  background: var(--bg-card-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.mcc-icon {
  font-size: 2rem;
  line-height: 1;
}

.mcc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.mcc-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.mcc-count {
  font-size: 0.8125rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 4px;
}

/* ============================================================
   MARKET CARDS
   ============================================================ */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.market-card:hover {
  background: var(--bg-card-h);
  border-color: rgba(0,220,130,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-header { display: flex; align-items: flex-start; gap: 12px; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-meta { flex: 1; min-width: 0; }

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Probability bar */
.prob-bar-wrap { display: flex; flex-direction: column; gap: 8px; }

.prob-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prob-yes {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
}

.prob-no {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red);
}

.prob-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.prob-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-dim));
  border-radius: 3px;
  transition: width 0.7s ease;
}

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-vol {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.card-vol strong {
  color: var(--text);
  font-weight: 600;
}

.card-ends {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Trade buttons inside card */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-yes, .btn-no {
  padding: 9px 0;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.2px;
}

.btn-yes {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(0,220,130,0.25);
}
.btn-yes:hover { background: var(--green); color: #000; }

.btn-no {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(240,79,79,0.25);
}
.btn-no:hover { background: var(--red); color: #fff; }

/* ============================================================
   TAG / CATEGORY FILTERS
   ============================================================ */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--green-bg);
  color: var(--green);
  border-color: rgba(0,220,130,0.3);
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition);
}

.feature-card:hover { border-color: rgba(0,220,130,0.2); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   INSIGHT CARDS (Predictions & Analysis)
   ============================================================ */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  border-color: rgba(0,220,130,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.insight-img-wrap {
  height: 140px;
  background: linear-gradient(135deg, #161a24 0%, #1c2130 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.insight-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(13,15,20,0.5));
  z-index: 2;
  pointer-events: none;
}

/* Real image inside insight card */
.insight-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 0.4s ease;
}
.insight-card:hover .insight-img-wrap img { transform: scale(1.04); }

/* ── Team banner (winner page contender cards) ────────────────────────────── */
.cc-team-banner {
  height: 155px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #161a24 0%, #1c2840 100%);
  border-bottom: 1px solid var(--border);
}
.cc-team-banner::before {
  content: attr(data-team) ' · add photo → media/team-*.jpg';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(0,220,130,0.25);
  white-space: nowrap;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.cc-team-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 0.4s ease;
}
.contender-card:hover .cc-team-banner img { transform: scale(1.04); }
.cc-team-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55px;
  background: linear-gradient(to bottom, transparent, rgba(22,26,36,0.65));
  z-index: 2;
  pointer-events: none;
}

.insight-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.insight-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.insight-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.insight-excerpt {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.insight-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ============================================================
   HOW IT WORKS STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item[open] { border-color: rgba(0,220,130,0.35); }

.faq-q {
  list-style: none;
  padding: 18px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--green); flex-shrink: 0; }
.faq-item[open] .faq-q::after { content: '−'; }

.faq-a {
  padding: 0 20px 18px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-a p { margin: 0; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,220,130,0.07) 0%, rgba(91,141,239,0.05) 100%);
  border: 1px solid rgba(0,220,130,0.15);
  border-radius: 20px;
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0,220,130,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   BADGE / CHIPS
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green { background: var(--green-bg); color: var(--green); border: 1px solid rgba(0,220,130,0.2); }
.badge-blue { background: rgba(91,141,239,0.1); color: var(--accent-blue); border: 1px solid rgba(91,141,239,0.2); }
.badge-red { background: var(--red-bg); color: var(--red); border: 1px solid rgba(240,79,79,0.2); }
.badge-gray { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { height: 1px; background: var(--border); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 24px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand .logo { margin-bottom: 12px; }

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--transition);
  color: var(--text-muted);
  text-decoration: none;
}

.social-btn:hover {
  border-color: rgba(0,220,130,0.3);
  color: var(--green);
  background: var(--green-bg);
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--green); }

.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--text-muted); }

/* ============================================================
   GROUP STAGE PREDICTION CARDS
   ============================================================ */
.group-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-card:hover {
  border-color: rgba(0,220,130,0.2);
  background: var(--bg-card-h);
}

.group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.group-fav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-flag { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }

.group-team-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-pct {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
}

.group-mini-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.group-mini-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-dim));
  border-radius: 2px;
}

.group-second {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.group-second .group-team-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.group-second .group-pct {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
}

.group-trade-link {
  display: block;
  text-align: center;
  padding: 6px 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(0,220,130,0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  margin-top: 2px;
}

.group-trade-link:hover { background: var(--green); color: #000; }

/* ============================================================
   VALUE BET CARDS
   ============================================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.value-card:hover {
  border-color: rgba(240,168,79,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f0a84f, transparent);
}

.value-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(240,168,79,0.1);
  border: 1px solid rgba(240,168,79,0.25);
  color: #f0a84f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.value-team {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.value-flag { font-size: 2.25rem; line-height: 1; }

.value-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.value-prob {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.value-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.value-ratio {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.value-ratio strong { color: var(--text-muted); }

/* ============================================================
   ANALYSIS CALLOUT BOX
   ============================================================ */
.analysis-box {
  background: rgba(0,220,130,0.04);
  border: 1px solid rgba(0,220,130,0.15);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.analysis-box strong { color: var(--green); }

.analysis-box.warning {
  border-left-color: #f0a84f;
  background: rgba(240,168,79,0.04);
  border-color: rgba(240,168,79,0.15);
}

.analysis-box.warning strong { color: #f0a84f; }

/* Prediction change indicators */
.change-up   { color: var(--green); font-size: 0.8125rem; font-weight: 700; }
.change-down { color: var(--red);   font-size: 0.8125rem; font-weight: 700; }
.change-flat { color: var(--text-dim); font-size: 0.8125rem; font-weight: 600; }

/* Sentiment meter */
.sentiment-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.sentiment-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 80px;
}

.sentiment-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.sentiment-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #f0a84f 60%, var(--red));
  border-radius: 4px;
}

.sentiment-pointer {
  position: relative;
  flex: 1;
  height: 8px;
}

/* Team analysis row */
.team-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.team-analysis-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.team-analysis-card:hover { border-color: rgba(0,220,130,0.2); }

.tac-header {
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.tac-flag { font-size: 2rem; line-height: 1; }

.tac-info { flex: 1; }
.tac-name { font-size: 1.0625rem; font-weight: 800; color: var(--text); }
.tac-prob { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

.tac-pct {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
}

.tac-body { padding: 18px 20px; }

.tac-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.tac-body p:last-child { margin-bottom: 0; }

.tac-factors { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }

.tac-factors li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.tac-factors li::before {
  content: '→';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .group-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .group-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hide Sign In button on mobile to prevent overflow */
  .nav-right .btn-ghost { display: none; }
  /* Compact nav on mobile */
  .nav { padding: 0 16px; gap: 0; }
  .nav-right { gap: 8px; margin-left: auto; }
  .nav-right .btn-primary { padding: 7px 14px; font-size: 0.8125rem; }
  .logo-text { font-size: 0.95rem; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    z-index: 99;
    gap: 2px;
  }

  .nav-links.open a { display: block; padding: 10px 14px; }

  .stats-row { gap: 28px; }
  .countdown-grid { gap: 6px; }
  .countdown-unit { min-width: 64px; padding: 12px 14px; }
  .countdown-num { font-size: 1.625rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .markets-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }

  .section { padding: 48px 16px; }
  .section-sm { padding: 32px 16px; }
  .hero { padding: 56px 16px 48px; }

  .odds-table th:nth-child(5),
  .odds-table td:nth-child(5),
  .odds-table th:nth-child(6),
  .odds-table td:nth-child(6) { display: none; }
}

@media (max-width: 480px) {
  .group-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .group-card { padding: 14px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats-row { gap: 20px; }
  .stat-value { font-size: 1.5rem; }
  .countdown-unit { min-width: 56px; padding: 10px 12px; }
  .countdown-num { font-size: 1.375rem; }
  .cta-trust { gap: 12px; }
  .market-category-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 40px 20px; }
}

/* ============================================================
   AFFILIATE DISCLOSURE BAR
   ============================================================ */
.disclosure-bar {
  background: rgba(240,168,79,0.07);
  border-bottom: 1px solid rgba(240,168,79,0.2);
  padding: 9px 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.disclosure-bar a {
  color: #f0a84f;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.disclosure-bar a:hover { color: #f5c77a; }

/* ============================================================
   LEGAL / ABOUT PAGE COMPONENTS
   ============================================================ */
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
}
.legal-wrap h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.65rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.legal-wrap h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.legal-wrap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 0.4rem;
}
.legal-wrap p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}
.legal-wrap ul, .legal-wrap ol {
  padding-left: 1.4rem;
  margin-bottom: 0.9rem;
}
.legal-wrap li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.3rem;
}
.legal-wrap a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.legal-wrap a:hover { color: var(--green-dim); }
.legal-updated {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 1.5rem;
}
.legal-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
  list-style: none;
  padding-left: 1.4rem;
}
.legal-toc li { margin-bottom: 0.3rem; }
.legal-toc a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; }
.legal-toc a:hover { color: var(--green); }

/* About page */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.about-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.about-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
  line-height: 1;
}
.about-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.expertise-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.expertise-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.expertise-title { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.expertise-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* Disclosure highlight box */
.disclosure-highlight {
  background: rgba(240,168,79,0.06);
  border: 1px solid rgba(240,168,79,0.25);
  border-left: 3px solid #f0a84f;
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 1.25rem 0;
}
.disclosure-highlight strong { color: #f0a84f; }

@media (max-width: 640px) {
  .about-hero-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Real flag images (flagcdn.com) ── */
.flag-img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  flex-shrink: 0;
  line-height: 0;
}
