﻿/* ═══════════════════════════════════════════════════════
   Predictvilla Design System
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
/* Loads the shared typeface used by every public and admin page. */
@import url('https://fonts.googleapis.com/css2?family=KoHo:wght@400;500;600;700&family=Bai+Jamjuree:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette — from logo */
  --lime:    #a0d000;   /* olive-lime (logo dominant) */
  --gold:    #ffd000;   /* amber-gold (logo accent) */
  --forest:  #406200;   /* dark green depth */
  --carbon:  #0d1600;   /* near-black dark-green */
  --cosmic:  #182200;   /* dark green charcoal */
  --oat:     #f4f8e0;   /* off-white with green tint */

  /* Legacy aliases */
  --spring-green:  #a0d000;
  --deep-onyx:     #ffffff;
  --dark-azure:    #f4f8e0;
  --soft-blue:     #182200;
  --martian-green: #a0d000;
  --dark-green:    #0d1600;
  --max-yellow:    #ffd000;
  --vanilla:       #f4f8e0;

  /* Default (light/white) theme */
  --bg:         #ffffff;
  --bg-2:       #f4f8e0;
  --card:       #ffffff;
  --card-2:     #eef5d0;
  --border:     rgba(13, 22, 0, 0.10);
  --text:       #0d1600;
  --text-soft:  rgba(13, 22, 0, 0.60);
  --muted:      rgba(13, 22, 0, 0.35);
  --primary:    #4e7000;   /* dark olive — WCAG AA on white */
  --primary-dim:#406200;
  --accent:     #ffd000;
  --warning:    #ffd000;
  --danger: #ef4444;
  --info:       #0d1600;

  --font-head: 'Bai Jamjuree', 'KoHo', sans-serif;
  --font-body: 'KoHo', sans-serif;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* Dark theme override */
[data-theme="dark"] {
  --deep-onyx:  #f4f8e0;
  --bg:         #0d1600;
  --bg-2:       #182200;
  --card:       #1e2e00;
  --card-2:     #162000;
  --border:     rgba(160, 208, 0, 0.14);
  --text:       #f4f8e0;
  --text-soft:  rgba(244, 248, 224, 0.70);
  --muted:      rgba(244, 248, 224, 0.38);
  --primary:    #a0d000;
  --primary-dim:#7aa000;
  --accent:     #ffd000;
  --warning:    #ffd000;
  --info:       #f4f8e0;
}

[data-theme="dark"] body { background: #0d1600; color: #ffffff; }

[data-theme="dark"] .banker-card {
  background: linear-gradient(135deg, #182200, #162000);
  border-color: #a0d000 !important;
}

[data-theme="dark"] .bookie-tag {
  background: rgba(160,208,0,0.08);
  color: #a0d000;
}

[data-theme="dark"] .vip-overlay {
  background: linear-gradient(to top, rgba(13,22,0,0.97) 60%, transparent);
}

[data-theme="dark"] .form-control {
  background: rgba(244,248,224,0.05);
  border-color: rgba(160,208,0,0.14);
  color: #ffffff;
}

[data-theme="dark"] .data-table th { color: rgba(244,248,224,0.6); }
[data-theme="dark"] .data-table td { border-color: rgba(160,208,0,0.06); }
[data-theme="dark"] .data-table tr:hover td { background: rgba(160,208,0,0.04); }

[data-theme="dark"] .footer-main { background: #182200; }
[data-theme="dark"] .footer-bottom { background: #0d1600; }

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, rgba(160,208,0,0.04) 25%, rgba(160,208,0,0.09) 50%, rgba(160,208,0,0.04) 75%);
  background-size: 400% 100%;
}

[data-theme="dark"] .mobile-bottom-nav { background: #182200; }

/* Light theme explicit */
[data-theme="light"] {
  --deep-onyx:  #ffffff;
  --bg:         #ffffff;
  --bg-2:       #f4f8e0;
  --card:       #ffffff;
  --card-2:     #eef5d0;
  --border:     rgba(13, 22, 0, 0.10);
  --text:       #0d1600;
  --text-soft:  rgba(13, 22, 0, 0.60);
  --muted:      rgba(13, 22, 0, 0.35);
  --primary:    #4e7000;
  --primary-dim:#406200;
  --accent:     #ffd000;
  --warning:    #ffd000;
}

[data-theme="light"] body { background: #ffffff; color: #0d1600; }

[data-theme="light"] .banker-card {
  background: linear-gradient(135deg, #dff0a0, #c8e060);
  border-color: #7aa000 !important;
}

[data-theme="light"] .bookie-tag {
  background: rgba(13,22,0,0.07);
  color: #0d1600;
}

[data-theme="light"] .vip-overlay {
  background: linear-gradient(to top, rgba(255,255,255,0.97) 60%, transparent);
}

[data-theme="light"] .form-control {
  background: #fff;
  border-color: rgba(13,22,0,0.14);
  color: #0d1600;
}

[data-theme="light"] .data-table th { color: rgba(13,22,0,0.55); }
[data-theme="light"] .data-table td { border-color: rgba(13,22,0,0.07); }
[data-theme="light"] .data-table tr:hover td { background: rgba(160,208,0,0.06); }

[data-theme="light"] .footer-main { background: #ffffff; }
[data-theme="light"] .footer-bottom { background: #f4f8e0; }
[data-theme="light"] .footer-col-title { color: #0d1600; }
[data-theme="light"] .footer-links-col a,
[data-theme="light"] .footer-contact-item,
[data-theme="light"] .footer-contact-item a,
[data-theme="light"] .footer-desc { color: rgba(13,22,0,0.65); }
[data-theme="light"] .footer-links-col a:hover { color: #0d1600; }
[data-theme="light"] .footer-bottom-bar { background: #f4f8e0; }
[data-theme="light"] .footer-bottom-bar p { color: rgba(13,22,0,0.5); }
[data-theme="light"] .site-footer { background: #ffffff; border-top: 1px solid rgba(13,22,0,0.08); }

[data-theme="light"] .skeleton {
  background: linear-gradient(90deg, rgba(13,22,0,0.05) 25%, rgba(13,22,0,0.10) 50%, rgba(13,22,0,0.05) 75%);
  background-size: 400% 100%;
}

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

html { scroll-behavior: smooth; overflow-x: clip; max-width: 100vw; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dim); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.3;
  color: var(--text);
}

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.w-full { width: 100%; }
section { padding: 48px 0; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .site-header {
  background: rgba(13, 22, 0, 0.96);
}

.ticker-wrap {
  background: var(--dark-green);
  padding: 4px 0;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
}
.ticker-inner { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 16px; }
.ticker-label {
  background: var(--primary);
  color: var(--deep-onyx);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.ticker-track {
  flex: 1; overflow: hidden; white-space: nowrap;
}
.ticker-content {
  display: inline-block;
  animation: ticker-scroll 90s linear infinite;
  font-size: 12px; color: var(--text-soft);
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item { display: inline-block; margin-right: 48px; }
.ticker-item .won { color: var(--primary); }
.ticker-item .lost { color: var(--danger); }
.ticker-item .pending { color: var(--warning); }

.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 0;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 36px; width: auto; }
.site-logo span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 15.5px;
  font-weight: 700;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--border); }

/* ── Nav dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { background: none; border: none; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 2px; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  min-width: 200px; padding: 6px; z-index: 300; white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 8px 12px; color: var(--text-soft); text-decoration: none; font-size: 13px; border-radius: 6px; font-weight: 500; }
.nav-dropdown-menu a:hover { background: rgba(160,208,0,0.08); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  background: none; border: 1px solid var(--border);
  color: var(--text-soft); padding: 8px;
  border-radius: var(--radius); font-size: 16px;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

.user-avatar {
  position: relative;
  display: flex; align-items: center; gap: 8px;
}
.odlt-chip {
  display: flex; align-items: center; gap: 4px;
  background: rgba(160,208,0,0.08); border: 1px solid rgba(160,208,0,0.2);
  border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 600;
  color: var(--primary); transition: background 0.2s;
  white-space: nowrap;
}
.odlt-chip:hover { background: rgba(160,208,0,0.15); }
.avatar-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); padding: 7px 12px;
  border-radius: var(--radius); font-size: 14px;
  transition: all 0.2s;
}
.avatar-btn:hover { border-color: var(--primary); }
.avatar-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: var(--deep-onyx);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.avatar-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 180px;
  padding: 8px 0; display: none; z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.avatar-dropdown.open { display: block; }
.avatar-dropdown a, .avatar-dropdown button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: var(--text-soft); font-size: 14px;
  background: none; border: none; width: 100%; text-align: left;
  transition: all 0.15s;
}
.avatar-dropdown a:hover, .avatar-dropdown button:hover {
  background: var(--border); color: var(--text);
}
.avatar-dropdown hr { border-color: var(--border); margin: 4px 0; }

.mobile-menu-toggle {
  display: none;
  background: none; border: none;
  color: var(--text); font-size: 22px;
  padding: 8px;
}

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-soft); }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ── Market intro ── */
.market-intro { font-size: 14px; color: var(--text-soft); line-height: 1.7; max-width: 720px; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 40px;
}
.footer-brand img { height: 36px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-soft); font-size: 14px; margin-bottom: 16px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-soft); font-size: 13px;
  padding: 6px 12px; border: 1px solid var(--border);
  border-radius: 20px; transition: all 0.2s;
}
.social-links a:hover { border-color: var(--primary); color: var(--primary); }
.footer-grid h4 { color: var(--primary); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--text-soft); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; border: none;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--deep-onyx);
}
.btn-primary:hover {
  background: var(--primary-dim); color: var(--deep-onyx);
  box-shadow: 0 0 20px rgba(160,208,0,0.3);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: rgba(160,208,0,0.1); }
.btn-vip { background: var(--warning); color: #1a1a00; }
.btn-vip:hover { background: #ffd000; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #ef4444; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-soft); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: rgba(160,208,0,0.3); box-shadow: 0 4px 20px rgba(160,208,0,0.08); }

/* ── Prediction Cards ── */
.prediction-card {
  background: #ffffff;
  border: 1px solid rgba(160,208,0,0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(13,22,0,0.06);
}
.prediction-card:hover { border-color: #a0d000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(160,208,0,0.15); }

/* Dark theme card overrides */
[data-theme="dark"] .prediction-card {
  background: #1e2e00;
  border-color: rgba(160,208,0,0.12);
  box-shadow: none;
}
[data-theme="dark"] .prediction-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.banker-card {
  background: linear-gradient(135deg, #f4f8e0, #dff0a0) !important;
  border: 2px solid #a0d000 !important;
  box-shadow: 0 0 20px rgba(160,208,0,0.20);
}
.banker-card:hover { box-shadow: 0 0 30px rgba(160,208,0,0.35); }

[data-theme="dark"] .banker-card {
  background: linear-gradient(135deg, #182200, #162000) !important;
  box-shadow: 0 0 20px rgba(160,208,0,0.12);
}

.vip-card { border-color: rgba(160,208,0,0.5) !important; }

.prediction-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; gap: 12px; }
.league-tag { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-soft); }
.league-tag img { width: 16px; height: 16px; object-fit: contain; border-radius: 2px; }
.match-date { font-size: 12px; color: var(--muted); }

.teams-row { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; }
.team { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.team img { width: 40px; height: 40px; object-fit: contain; }
.team-name { font-size: 13px; font-weight: 600; text-align: center; color: var(--text); }
.vs-divider { font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 8px; }

.prediction-tip {
  background: rgba(160,208,0,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 12px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.tip-label { font-size: 12px; color: var(--text-soft); }
.tip-value { font-weight: 700; color: var(--primary); font-size: 15px; }
.odds-value { color: var(--primary); font-weight: 700; font-size: 14px; }

.prediction-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 8px; }

/* ── Confidence Bar ── */
.confidence-wrap { margin: 10px 0; }
.confidence-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-soft); margin-bottom: 5px; }
.confidence-bar {
  height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.confidence-fill {
  height: 100%; border-radius: 3px; transition: width 0.6s ease;
}
.conf-high .confidence-fill { background: var(--primary); }
.conf-med .confidence-fill { background: var(--martian-green); }
.conf-low .confidence-fill { background: var(--warning); }
.conf-poor .confidence-fill { background: var(--danger); }

/* ── Intelligence Score (SVG gauge) ── */
.intelligence-score {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.intelligence-score svg { transform: rotate(-90deg); }
.intelligence-score .score-num {
  font-size: 20px; font-weight: 900; color: var(--primary);
  font-family: var(--font-head);
}
.intelligence-score .score-label { font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-won { background: rgba(160,208,0,0.18); color: #a0d000; border: 1px solid rgba(160,208,0,0.35); font-weight: 700; }
.badge-lost { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.badge-pending { background: rgba(244,248,224,0.1); color: var(--soft-blue); border: 1px solid rgba(244,248,224,0.2); }
.badge-vip { background: rgba(160,208,0,0.15); color: var(--warning); border: 1px solid rgba(160,208,0,0.3); }
.badge-banker {
  background: var(--max-yellow); color: #1a1a00;
  animation: pulse 2s infinite;
  box-shadow: 0 0 12px rgba(160,208,0,0.4);
}
.hero-tag { background: rgba(160,208,0,0.12); color: var(--primary); border: 1px solid var(--border); padding: 4px 12px; font-size: 13px; border-radius: 20px; }

/* ── Bookie Tags ── */
.bookie-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.bookie-tag {
  background: rgba(13,22,0,0.8); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 8px;
  font-size: 10px; color: var(--text-soft);
  display: flex; align-items: center; gap: 4px;
}
.odds-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  animation: pulse 1.5s infinite;
}

/* ── Category Tabs ── */
.tab-row {
  display: flex; gap: 6px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.tab-row::-webkit-scrollbar { display: none; }
.category-tab {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-soft);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.category-tab:hover {
  background: #fff8cc;
  border-color: rgba(255,208,0,0.5); color: #0d1600;
}
.category-tab.active {
  background: #ffd000;
  border-color: #ffd000; color: #0d1600; font-weight: 700;
}
[data-theme="dark"] .category-tab:hover {
  background: rgba(255,208,0,0.10);
  color: #ffd000;
}
[data-theme="dark"] .category-tab.active {
  background: #ffd000; color: #0d1600;
}

/* ── Stat Cards ── */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.stat-card .stat-icon { font-size: 28px; margin-bottom: 10px; }
.stat-card .stat-value { font-size: 28px; font-weight: 900; color: var(--primary); font-family: var(--font-head); line-height: 1; }
.stat-card .stat-label { font-size: 13px; color: var(--text-soft); margin-top: 6px; }

/* ── Blog Cards ── */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; transition: all 0.25s;
}
.blog-card:hover { border-color: rgba(160,208,0,0.3); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-cat { font-size: 11px; text-transform: uppercase; color: var(--primary); letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; }
.blog-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text); line-height: 1.4; }
.blog-card p { font-size: 14px; color: var(--text-soft); line-height: 1.6; }
.blog-card-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }

/* ── Pricing Cards ── */
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative; text-align: center;
  transition: all 0.25s;
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(160,208,0,0.15);
}
.pricing-card .plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--martian-green); color: #fff;
  padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.pricing-card .plan-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.pricing-card .plan-price { font-size: 40px; font-weight: 900; color: var(--primary); font-family: var(--font-head); }
.pricing-card .plan-price span { font-size: 16px; color: var(--text-soft); font-weight: 400; }
.pricing-card .plan-usd { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-card li { padding: 8px 0; font-size: 14px; color: var(--text-soft); display: flex; gap: 10px; }
.pricing-card li::before { content: '\2713'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ── Stats Chart Card ── */
.stats-chart-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.stats-chart-card h3 { font-size: 16px; margin-bottom: 16px; }
.chart-container { position: relative; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control {
  width: 100%; padding: 11px 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(160,208,0,0.12); }
.form-control::placeholder { color: var(--muted); }
select.form-control { cursor: pointer; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Custom Select Dropdown ── */
.csel-wrap { position: relative; flex: 1; min-width: 0; }
.csel-btn {
  display: flex; justify-content: space-between; align-items: center;
  text-align: left; cursor: pointer; width: 100%;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 14px;
  padding: 11px 14px; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
  white-space: nowrap; overflow: hidden;
}
.csel-btn:focus, .csel-btn:hover { border-color: var(--primary); }
.csel-btn.open { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(160,208,0,0.12); }
.csel-label { flex: 1; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.csel-arrow { font-size: 10px; opacity: 0.5; transition: transform 0.2s; margin-left: 8px; flex-shrink: 0; }
.csel-panel {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 100%; width: max-content; max-width: min(340px, 90vw);
  z-index: 9000; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  max-height: 260px; overflow-y: auto;
}
.csel-panel.open { display: block; }
.csel-search-wrap { padding: 8px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--card); }
.csel-search { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 13px; padding: 6px 10px; font-family: inherit; outline: none; }
.csel-search:focus { border-color: var(--primary); }
.csel-opt {
  padding: 9px 14px; cursor: pointer; font-size: 13px;
  color: var(--text); white-space: nowrap;
}
.csel-opt:hover { background: rgba(160,208,0,0.08); }
.csel-opt.active { color: var(--primary); font-weight: 700; background: rgba(160,208,0,0.1); }
.csel-grp { padding: 8px 14px 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); opacity: 0.65; }

/* ── Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(7,25,30,0.85); z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  animation: fadeUp 0.25s ease;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 18px; }
.modal-close {
  background: none; border: none; color: var(--muted);
  font-size: 20px; cursor: pointer; padding: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 20px;
  min-width: 260px; max-width: 360px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: slideUp 0.3s ease;
}
.toast.success { border-left: 3px solid var(--primary); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
.toast.warning { border-left: 3px solid var(--warning); }

/* ── Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--bg-2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ── Spinner ── */
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ── Section Titles ── */
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 24px; color: var(--text); }
.section-title span { color: var(--primary); }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-soft); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 14px; color: var(--text-soft); }

/* ── Upcoming Notice Banner ── */
.upcoming-notice {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; margin-bottom: 12px; border-radius: 8px;
  background: rgba(160, 208, 0, 0.1); border: 1px solid rgba(160, 208, 0, 0.25);
  font-size: 13px; color: var(--text-soft);
}
[data-theme="dark"] .upcoming-notice {
  background: rgba(160, 208, 0, 0.08); border-color: rgba(160, 208, 0, 0.2);
}

/* ── Leaderboard ── */
.leaderboard-row { display: grid; align-items: center; padding: 12px 16px; border-radius: var(--radius); }
.leaderboard-row:nth-child(even) { background: rgba(255,255,255,0.03); }
.rank-badge {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--border); color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.rank-badge.gold { background: var(--warning); color: #1a1a00; }
.rank-badge.silver { background: #c0c0c0; color: #1a1a00; }
.rank-badge.bronze { background: #cd7f32; color: #fff; }

/* ── Article Typography ── */
.article-content { line-height: 1.8; color: var(--text); }
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
  font-family: var(--font-head); margin: 1.5em 0 0.5em; color: var(--text);
}
.article-content h1 { font-size: 2em; }
.article-content h2 { font-size: 1.6em; color: var(--primary); }
.article-content h3 { font-size: 1.3em; }
.article-content p { margin-bottom: 1em; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.article-content li { margin-bottom: 0.4em; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px; margin: 1.5em 0;
  background: rgba(160,208,0,0.05); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-soft);
}
.article-content code {
  background: var(--bg-2); color: var(--primary);
  padding: 2px 6px; border-radius: 4px; font-size: 0.9em;
  font-family: 'Courier New', monospace;
}
.article-content pre {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  overflow-x: auto; margin-bottom: 1em;
}
.article-content pre code { background: none; padding: 0; }
.article-content img { max-width: 100%; border-radius: var(--radius-lg); margin: 1em 0; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; -webkit-overflow-scrolling: touch; }
.table-wrap table { margin-bottom: 0; min-width: 420px; }
.article-content figure { margin: 1.4em 0; text-align: center; }
.article-content figure img { margin: 0 auto; }
.article-content figcaption { font-size: 12px; color: var(--text-soft); margin-top: 6px; }
.article-content th, .article-content td { padding: 10px 14px; border: 1px solid var(--border); }
.article-content th { background: var(--bg-2); color: var(--primary); font-weight: 700; }
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.article-content strong { color: var(--text); font-weight: 700; }

/* ── FAQ Accordion ── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 10px; overflow: hidden; }
.faq-question {
  width: 100%; background: var(--card); border: none;
  color: var(--text); padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-2); }
.faq-question .faq-icon { color: var(--primary); font-size: 20px; transition: transform 0.2s; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--text-soft); line-height: 1.7; }
.faq-answer.open { display: block; }

/* ── VIP Lock Overlay ── */
.vip-overlay {
  position: absolute; inset: 0;
  background: rgba(7,25,30,0.85);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  gap: 12px;
  backdrop-filter: blur(4px);
}
.vip-overlay .lock-icon { font-size: 32px; color: var(--warning); }
.vip-overlay p { font-size: 13px; color: var(--text-soft); text-align: center; padding: 0 20px; }

/* ── Date Tabs ── */
.date-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.date-tab {
  flex: 1; padding: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--text-soft);
  border-radius: var(--radius); cursor: pointer; font-size: 14px;
  font-weight: 500; transition: all 0.2s; text-align: center;
}
.date-tab.active { background: var(--primary); color: var(--deep-onyx); border-color: var(--primary); font-weight: 700; }
.date-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn {
  min-width: 36px; width: auto; height: 36px; padding: 0 12px; box-sizing: border-box; white-space: nowrap; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--text-soft); cursor: pointer;
  font-size: 13px; font-weight: 500; transition: all 0.2s;
}
.page-btn.active { background: var(--primary); color: var(--deep-onyx); border-color: var(--primary); font-weight: 700; }
.page-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.page-btn:disabled { opacity: .45; cursor: default; }
.page-btn:disabled:hover { border-color: var(--border); color: var(--text-soft); }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: var(--bg-2); color: var(--text-soft); padding: 12px 14px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: rgba(160,208,0,0.03); }
.data-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* ── Alerts ── */
.alert { padding: 14px 18px; border-radius: var(--radius-lg); font-size: 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: rgba(160,208,0,0.1); border: 1px solid rgba(160,208,0,0.3); color: var(--primary); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }
.alert-info { background: rgba(244,248,224,0.1); border: 1px solid rgba(244,248,224,0.3); color: var(--info); }
.alert-warning { background: rgba(160,208,0,0.1); border: 1px solid rgba(160,208,0,0.3); color: var(--warning); }

/* ── Animations ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes glow { 0%,100% { box-shadow:0 0 8px rgba(160,208,0,0.3); } 50% { box-shadow:0 0 20px rgba(160,208,0,0.6); } }
@keyframes livePulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.35; transform:scale(1.5); } }

/* ── Hero ── */
.hero { padding: 80px 0 60px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 900; margin-bottom: 16px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 18px; color: var(--text-soft); max-width: 600px; margin: 0 auto 32px; }

/* ── Stats Banner ── */
.stats-banner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }

/* ── Home 80/20 Layout ── */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}

/* ── Recent Wins Sidebar ── */
.recent-wins-sidebar {
  position: sticky;
  top: 80px;
}
.recent-wins-sidebar h3 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.recent-wins-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.recent-wins-list::-webkit-scrollbar { width: 3px; }
.recent-wins-list::-webkit-scrollbar-track { background: transparent; }
.recent-wins-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.recent-win-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, background 0.2s;
}
.recent-win-item:hover {
  border-color: rgba(160,208,0,0.35);
  background: rgba(160,208,0,0.04);
}
.recent-win-teams {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-win-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}
.recent-win-tip {
  font-size: 10px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.recent-win-score {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.recent-win-date {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}

/* ── Just Won badge (shiny gold) ── */
@keyframes shimmerGold {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.badge-just-won {
  background: linear-gradient(90deg, #c8860a 0%, #fde574 30%, #ffd000 55%, #fde574 75%, #c8860a 100%);
  background-size: 200% auto;
  animation: shimmerGold 2.5s linear infinite;
  color: #1a0900;
  font-weight: 900;
  border: none;
  box-shadow: 0 0 8px rgba(245,197,24,0.45);
}

/* ── Fix badge-win / badge-loss for prediction cards ── */
.badge-win  { background: rgba(160,208,0,0.15);  color: var(--primary); border: 1px solid rgba(160,208,0,0.3); }
.badge-loss { background: rgba(239,68,68,0.15);   color: var(--danger);  border: 1px solid rgba(239,68,68,0.3); }
.badge-draw { background: rgba(160,208,0,0.12);  color: var(--warning); border: 1px solid rgba(160,208,0,0.25); }

/* ══════════════════════════════════════════
   RECENT WINNING TIPS — YesPredict-style cards
   ══════════════════════════════════════════ */
.recent-wins-section { padding: 32px 0; }

.rw-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px 12px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.rw-card:hover { border-color: rgba(160,208,0,.4); box-shadow: 0 4px 20px rgba(160,208,0,.08); }

.rw-teams-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rw-team {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.rw-home { justify-content: flex-end; text-align: right; }
.rw-away { justify-content: flex-start; text-align: left; }

.rw-team-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.rw-form { display: flex; gap: 2px; flex-shrink: 0; }

.rw-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.rw-logo-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.rw-score-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rw-score {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
}
.rw-vs {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

.rw-won-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
  letter-spacing: .5px;
  white-space: nowrap;
}
.rw-trophy { font-size: 16px; }
.rw-just-won { color: #ffd000; text-shadow: 0 0 8px rgba(245,197,24,.4); }
.rw-won-date { font-size: 11px; font-weight: 500; color: var(--text-soft); letter-spacing: .01em; }

.rw-picks-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.rw-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.rw-odds {
  background: #162000;
  color: var(--text);
  border: 1px solid var(--border);
}
.rw-odds strong { color: var(--primary); }
.rw-tip {
  background: linear-gradient(90deg, #c8860a, #ffd000, #ffd000);
  color: #0d1600;
}
.rw-s {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  font-size: 11px;
  font-weight: 900;
}

/* ══════════════════════════════════════════
   FOOTER — YesPredict-style layout
   ══════════════════════════════════════════ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); }
.footer-main { padding: 48px 0 32px; }

.footer-grid-new {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand-col {}
.footer-logo { height: 44px; object-fit: contain; margin-bottom: 14px; display: block; }
.footer-desc { font-size: 13px; color: var(--text-soft); line-height: 1.7; margin-bottom: 16px; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .15s, background .15s;
}
.footer-social-icon:hover { border-color: var(--primary); background: rgba(160,208,0,.1); color: var(--primary); }

.footer-links-col { display: flex; flex-direction: column; gap: 0; }
.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--primary);
  margin-bottom: 14px;
}
.footer-links-col a {
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  padding: 5px 0;
  transition: color .15s;
  display: block;
}
.footer-links-col a:hover { color: var(--text); }
.footer-contact-item { font-size: 13px; color: var(--text-soft); display: block; margin-bottom: 6px; }
.footer-contact-item a { color: var(--text-soft); text-decoration: none; }
.footer-contact-item a:hover { color: var(--primary); }

/* Backlinks strip */
.footer-backlinks-wrap {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.footer-backlinks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: 12px;
}
.footer-backlinks-label { font-weight: 700; color: var(--text-soft); white-space: nowrap; }
.footer-backlink { color: var(--text-soft); text-decoration: none; transition: color .15s; }
.footer-backlink:hover { color: var(--primary); }

/* Bottom bar */
.footer-bottom-bar {
  padding: 16px 0;
  background: var(--bg);
}
.footer-bottom-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-bar p { font-size: 12px; color: var(--text-soft); margin: 0; }
.footer-bottom-socials { display: flex; gap: 8px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid-new { grid-template-columns: 1fr 1fr; gap: 28px; }
  .rw-team-name { max-width: 90px; }
}

@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-banner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Filter selects — 2-across on tablets */
  .flex.gap-2 .form-control,
  .flex.gap-2 select.form-control,
  .flex.gap-2 input.form-control {
    max-width: 100% !important;
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
  .flex.gap-2 .btn { flex: 1 1 100%; }

  /* Tighten page hero on tablet */
  .page-hero { padding: 24px 0 16px; }
  .page-hero-title { font-size: clamp(20px, 5vw, 30px); }
}

/* ══════════════════════════════════════════
   PAGE HERO
   ══════════════════════════════════════════ */
.page-hero {
  padding: 40px 0 28px;
  background: #0f1800;
  border-bottom: 2px solid rgba(160,208,0,0.12);
  margin-bottom: 4px;
}
.page-hero-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  color: #ffd000;
  line-height: 1.15;
  margin: 0 0 8px;
}
.page-hero-title span { color: #ffd000; }
.page-hero-sub {
  font-size: 15px;
  color: #fff;
  margin: 0;
  max-width: 540px;
}

/* ══════════════════════════════════════════
   PAGE SIDEBAR LAYOUT
   ══════════════════════════════════════════ */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.sidebar-widget-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.sidebar-stats-list { display: flex; flex-direction: column; gap: 10px; }
.ss-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-soft); }
.ss-row strong { color: var(--text); font-weight: 700; }

.sidebar-pick {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  gap: 8px;
}
.sidebar-pick:last-child { border-bottom: none; }
.sidebar-pick-teams { font-size: 13px; color: var(--text); font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-pick-tip { font-size: 11px; background: var(--primary); color: #fff; padding: 2px 7px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }

/* ══════════════════════════════════════════
   AD SLOTS
   ══════════════════════════════════════════ */
.ad-section { padding: 10px 0; }
.ad-wrap { width: 100%; }
.ad-wrap:empty, .ad-wrap[style*="display:none"] { display: none !important; }

.ad-wrap-top { text-align: center; margin-bottom: 4px; }
.ad-wrap-mid { text-align: center; margin: 16px 0; }
.ad-wrap-inline { text-align: center; }
.ad-wrap-sidebar { text-align: center; }

.ad-slot { display: block; }
.ad-banner { display: inline-block; }
.ad-banner img { max-width: 100%; height: auto; border-radius: 8px; display: block; }

.ad-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  width: 100%;
}
.ad-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-soft);
  background: var(--bg-3);
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ad-native {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 8px;
}
.ad-native-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.ad-native-body { flex: 1; min-width: 0; }
.ad-native-name { font-size: 13px; font-weight: 600; color: var(--text); margin: 4px 0 0; }

/* Sponsored post card (sidebar) */
.sponsored-post {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.sponsored-post:last-child { border-bottom: none; }
.sponsored-post-img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sponsored-post-body { flex: 1; min-width: 0; }
.sponsored-post-name { font-size: 13px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }

@media (max-width: 900px) {
  .page-with-sidebar { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .ad-wrap-sidebar { margin: 18px auto; max-width: 336px; }
}

/* ══════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
   ══════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  z-index: 150;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav-inner {
  display: flex;
  height: 60px;
  align-items: stretch;
}
.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-item .material-icons-round { font-size: 22px; line-height: 1; }
.mob-nav-item.active, .mob-nav-item:hover { color: var(--primary); }
.mob-nav-item.vip-tab {
  color: #ffd000;
}
.mob-nav-item.vip-tab .material-icons-round { color: #ffd000; }

@media (max-width: 640px) {
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

  /* Grid */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-banner { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  section { padding: 16px 0; }
  .container { padding: 0 12px; }

  /* Header — slimmer on mobile */
  .header-inner { padding: 10px 0; }
  .site-logo img { height: 28px; }
  .site-logo span { font-size: 15px; }

  /* Hide desktop nav on mobile (bottom bar takes over) */
  .main-nav { display: none !important; }
  .header-actions .btn { display: none; }
  .theme-toggle { padding: 6px; font-size: 14px; }

  /* Page hero — compact on mobile */
  .page-hero { padding: 16px 0 12px; }
  .page-hero-title { font-size: 22px; line-height: 1.2; margin-bottom: 6px; }
  .page-hero-sub { font-size: 13px; }

  /* Sidebar completely hidden on mobile (collapses to 1fr at 900px, hide on ≤640) */
  .page-sidebar { display: none; }

  /* Flex row wrapping */
  .flex-between { flex-wrap: wrap; gap: 8px; }

  /* Filter row — stack vertically, full-width inputs */
  .flex.gap-2[style*="flex-wrap"] { gap: 8px; }
  .flex.gap-2 .form-control,
  .flex.gap-2 select.form-control,
  .flex.gap-2 input.form-control {
    max-width: 100% !important;
    width: 100%;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  .flex.gap-2 .btn { width: 100%; margin-top: 2px; }

  /* Date tabs — horizontal scroll */
  .date-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 4px;
    padding-bottom: 2px;
  }
  .date-tabs::-webkit-scrollbar { display: none; }
  .date-tab { padding: 6px 14px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }

  /* Category tabs — horizontal scroll */
  .tab-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    padding-bottom: 4px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .tab-row::-webkit-scrollbar { display: none; }
  .category-tab { white-space: nowrap; flex-shrink: 0; padding: 6px 12px; font-size: 12px; }

  /* Section titles */
  .section-title { font-size: 18px; }
  .section-title.mb-0 { font-size: 16px; }

  /* Prediction cards */
  .prediction-card { padding: 12px; }
  .prediction-header { flex-wrap: wrap; gap: 6px; }
  .teams-row { margin: 8px 0; }
  .team img { width: 32px; height: 32px; }
  .team-name { font-size: 12px; }
  .vs-divider { font-size: 11px; padding: 0 4px; }
  .prediction-tip { flex-wrap: wrap; gap: 4px; padding: 8px 12px; }
  .tip-value { font-size: 14px; }
  .prediction-footer { gap: 6px; }
  .pred-teams { font-size: 13px; }
  .pred-vs { font-size: 11px; }
  .pred-league { font-size: 11px; }

  /* Buttons in section headers — shrink */
  .btn-sm { padding: 5px 10px; font-size: 12px; }
  .btn-outline.btn-sm { padding: 5px 10px; }

  /* Ad — top banner hidden on mobile to save space */
  .ad-wrap-top { margin: 8px 0; }

  /* Footer single column on mobile */
  .footer-grid-new { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand-col { grid-column: auto; }
  .footer-main { padding: 24px 0 16px; }
  .footer-backlinks-row { gap: 4px 8px; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Hero (homepage) */
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13px; }

  /* Recent wins */
  .rw-teams-row { gap: 6px; }
  .rw-team-name { font-size: 12px; max-width: 65px; }
  .rw-logo, .rw-logo-fallback { width: 24px; height: 24px; }
  .rw-score { font-size: 12px; padding: 2px 8px; }
  .rw-won-badge { font-size: 13px; }
  .rw-form { display: none; }
  .rw-card { padding: 10px 12px 8px; }
  .rw-picks-row { gap: 5px; flex-wrap: wrap; }
  .rw-pill { font-size: 11px; padding: 3px 8px; }

  /* Pagination */
  .pagination { gap: 4px; }
  .page-btn { padding: 0 10px; min-width: 32px; height: 32px; font-size: 12px; }

  /* Banker card */
  .banker-card { padding: 14px; }

  /* VIP teaser — compact */
  .vip-teaser { padding: 14px; }
}

/* ── Utility ── */
.text-primary { color: var(--primary); }
.text-soft { color: var(--text-soft); }
.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-accent { color: var(--accent); }
.hidden { display: none !important; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.nowrap { white-space: nowrap; }
.truncate { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── Logo watermark on modals & empty states ─────────────────────────────── */
.modal { position: relative; overflow: hidden; }
.modal::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px;
  background: url('/images/logo.png') center/contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.modal-header, .modal-body, .modal-footer { position: relative; z-index: 1; }
.empty-state {
  background: url('/images/logo.png') center 20px / 140px no-repeat;
  padding-top: 176px;
}
/* Material Icons alignment */
.material-icons-round { vertical-align: middle; }

/* ═══════════════════════════════════════════════════
   LEFT SIDEBAR LAYOUT
   ═══════════════════════════════════════════════════ */
:root { --sidebar-w: 220px; --topbar-h: 80px; }

.left-sidebar {
  position: fixed;
  top: calc(var(--topbar-h) + env(safe-area-inset-top)); left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h) - env(safe-area-inset-top));
  background: #0f1800;
  border-right: 1px solid rgba(160,208,0,0.08);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.left-sidebar::-webkit-scrollbar { width: 3px; }
.left-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* padding-top always (topbar is always fixed); padding-left only on desktop where sidebar is persistent */
body.has-sidebar { padding-top: calc(var(--topbar-h) + env(safe-area-inset-top)); }
@media (min-width: 901px) {
  body.has-sidebar { padding-left: var(--sidebar-w); }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: calc(var(--topbar-h) + env(safe-area-inset-top)); left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
}
.sidebar-overlay.open { display: block; }

.sidebar-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.sidebar-logo img { height: 28px; width: auto; }
.sidebar-logo span {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
}
.sidebar-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 4px;
  display: none;
}

.snav-section {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.snav-section.snav-bottom {
  border-bottom: none;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.snav-label {
  padding: 8px 14px 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(244,248,224,0.45);
  text-transform: uppercase;
}
.snav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  color: rgba(255,255,255,0.60);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.snav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.snav-link.active { color: #fff; background: rgba(160,208,0,0.08); border-left-color: #a0d000; }
.snav-link .material-icons-round { width:17px; min-width:17px; overflow:hidden; font-size:17px; line-height:1; text-align:center; color:rgba(255,255,255,0.35); flex-shrink:0; }
.snav-link:hover .material-icons-round { color: #fff; }
.snav-link.active .material-icons-round { color: #a0d000; }
.snav-link.vip-snav { color: #ffd000; }
.snav-link.vip-snav .material-icons-round { color: #ffd000; }

/* ── Top Bar (always visible) ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: #0d1600;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 300;
  display: flex;
  flex-direction: column;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 52px;
  flex-shrink: 0;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.topbar-logo img { height: 26px; }
.topbar-logo span {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
}
.hamburger-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
}
.hamburger-btn .material-icons-round { font-size: 24px; }

/* Go Premium CTA */
.vip-premium-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffd000;
  color: #000 !important;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.2;
}
.vip-premium-btn .prem-top { font-size: 12.5px; letter-spacing: 0.2px; }
.vip-premium-btn .prem-sub { font-size: 9px; font-weight: 600; opacity: 0.7; letter-spacing: 0.4px; }

/* PVT jar: token balance + check-in streak, just before the Go Premium button */
.pvt-jar {
  position: relative; display: flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 9px; margin-right: 10px; flex-shrink: 0; line-height: 1;
  border: 1px solid rgba(160, 208, 0, 0.35); border-radius: 999px; background: rgba(160, 208, 0, 0.08);
  color: var(--text); text-decoration: none; transition: background .15s;
}
.pvt-jar:hover { background: rgba(160, 208, 0, 0.18); }
.pvt-jar-svg { display: block; color: var(--primary, #a0d000); }
.pvt-jar-count { font-weight: 800; font-size: 14px; letter-spacing: .2px; min-width: 14px; }
.pvt-jar-streak { display: flex; align-items: center; gap: 1px; padding-left: 7px; border-left: 1px solid rgba(160, 208, 0, 0.25); font-size: 12px; font-weight: 700; color: #f59e0b; }
.pvt-jar-streak .material-icons-round { font-size: 16px; }
.pvt-jar-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #ffd000; box-shadow: 0 0 0 2px var(--bg, #0d1600); animation: pvtJarPulse 1.6s ease-in-out infinite; }
.pvt-jar-dot[hidden] { display: none; }
@keyframes pvtJarPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
@media (max-width: 640px) {
  .pvt-jar { padding: 3px 8px 3px 7px; gap: 5px; margin-right: 6px; }
  .pvt-jar-count { font-size: 13px; }
  .pvt-jar-streak { padding-left: 5px; font-size: 11px; }
}

/* Desktop auth links */
.topbar-auth-links {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.topbar-auth-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 6px;
  white-space: nowrap;
}
.topbar-auth-links a:hover { color: #fff; }
.topbar-auth-links .tb-divider { color: rgba(255,255,255,0.3); font-size: 13px; }

/* Mobile-only auth icon */
.topbar-auth-icon { color: rgba(255,255,255,0.6); flex-shrink: 0; }
.topbar-auth-icon .material-icons-round { font-size: 22px; }

/* Desktop: show auth text, hide mobile icon & hamburger */
@media (min-width: 901px) {
  .hamburger-btn { display: none; }
  .topbar-auth-icon { display: none; }
  .topbar-auth-links { display: flex; }
  .sidebar-logo-wrap { display: none; }
}

/* Mobile sidebar behaviour */
@media (max-width: 900px) {
  body.has-sidebar { padding-left: 0 !important; }
  .left-sidebar { transform: translateX(-100%); }
  .left-sidebar.open { transform: none; }
  .sidebar-close-btn { display: block; }
}

/* ═══════════════════════════════════════════════════
   DATE PICKER ROW
   ═══════════════════════════════════════════════════ */
.date-picker-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.date-picker-row::-webkit-scrollbar { display: none; }

.live-date-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 7px;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.live-date-btn .live-pulse {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: livePulse 1s infinite;
  display: inline-block;
}
.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
  padding: 5px 7px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: none;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1.3;
}
.date-btn .date-num { font-size: 15px; font-weight: 800; display: block; }
.date-btn .date-label { font-size: 9px; display: block; text-transform: uppercase; letter-spacing: 0.3px; }
.date-btn:hover { color: #fff; background: rgba(255,255,255,0.07); }
.date-btn.active { color: #fff; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.10); }
.date-calendar-btn{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border:1px solid transparent;border-radius:7px;background:transparent;color:rgba(255,255,255,.55);cursor:pointer}
.date-calendar-btn:hover{color:#fff;background:rgba(255,255,255,.07)}
.calendar-native-input{position:fixed!important;left:-10000px!important;top:0!important;width:1px!important;height:1px!important;opacity:0!important;border:0!important;padding:0!important}
[data-theme="light"] .date-picker-row{border-bottom-color:rgba(20,45,15,.12)}
[data-theme="light"] .date-btn{color:#697465}
[data-theme="light"] .date-btn:hover{color:#183116;background:rgba(70,100,40,.08)}
[data-theme="light"] .date-btn.active{color:#fff;border-color:#517900;background:#517900}
[data-theme="light"] .date-calendar-btn{color:#697465}
[data-theme="light"] .date-calendar-btn:hover{color:#183116;background:rgba(70,100,40,.08)}

/* ═══════════════════════════════════════════════════
   PREDICTION ROWS
   ═══════════════════════════════════════════════════ */
/* light-mode prediction list overrides */
[data-theme="light"] .pred-list {
  background: #f5f5f5;
  border-color: rgba(13,22,0,0.08);
}
[data-theme="light"] .pred-list-header {
  background: rgba(0,0,0,0.03);
  color: #000;
  border-bottom-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .pred-row {
  background: #f5f5f5;
  border-bottom-color: rgba(0,0,0,0.07);
  color: #000;
}
[data-theme="light"] .pred-row:hover { background: #ececec; }
[data-theme="light"] .pred-time { color: #000; }
[data-theme="light"] .pred-score-col { color: #333; }
[data-theme="light"] .pred-teams { color: #000; }
[data-theme="light"] .pred-home, [data-theme="light"] .pred-away { color: #000; }
[data-theme="light"] .pred-row-skeleton { background: rgba(0,0,0,0.04); border-bottom-color: rgba(0,0,0,0.05); }

.pred-list {
  border-radius: 10px;
  overflow: hidden;
  background: #141d00;
  border: 1px solid rgba(255,255,255,0.05);
}
.pred-list-header {
  display: grid;
  grid-template-columns: 3px 68px 1fr 80px 115px 58px;
  padding: 7px 14px 7px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.pred-list-header span:nth-child(4) { text-align: center; }
.pred-list-header span:nth-child(5) { text-align: center; }
.pred-list-header span:nth-child(6) { text-align: right; padding-right: 6px; }
.pred-row {
  display: grid;
  grid-template-columns: 3px 68px 1fr 80px 115px 58px;
  align-items: center;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.pred-row:last-child { border-bottom: none; }
.pred-row:hover { background: rgba(255,255,255,0.025); }
/* result bar — left side */
.pred-result-bar { width: 3px; height: 100%; min-height: 52px; border-radius: 0; background: transparent; align-self: stretch; }
.pred-row.result-won .pred-result-bar { background: #a0d000; }
.pred-row.result-lost .pred-result-bar { background: #ef4444; }
.pred-row.result-live .pred-result-bar { background: #ef4444; }
.pred-row-skeleton { height: 60px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.04); }

.pred-time {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-align: center;
}
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: livePulse 1s infinite;
  margin-right: 3px;
  vertical-align: middle;
}
.pred-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pred-team-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pred-team-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pred-team-name-row img { width: 17px; height: 17px; object-fit: contain; flex-shrink: 0; border-radius: 2px; }
.pred-team-name-row span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.88); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pred-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  gap: 2px;
  line-height: 1;
}
.pred-score-col .score-dash { display: none; }
.pred-score-col .ft-label { font-size: 8px; font-weight: 700; color: rgba(255,255,255,0.28); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }
.pred-score-col.vs-text { font-size: 11px; color: rgba(255,255,255,0.18); font-weight: 600; }

/* ── Date Strip ── */
.date-strip {
  display: flex; align-items: center;
  background: #111; border-radius: 40px;
  padding: 5px 8px; gap: 0;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  width: fit-content; max-width: 100%;
}
[data-theme="dark"] .date-strip { background: #1c1c1c; }
[data-theme="light"] .date-strip{background:#f1f4eb;border:1px solid rgba(35,55,20,.12)}
[data-theme="light"] .date-strip-btn{color:#111}
[data-theme="light"] .date-strip-btn:hover{color:#000;background:rgba(45,70,20,.08)}
[data-theme="light"] .date-strip-btn.active{background:#fff;color:#000;box-shadow:0 1px 4px rgba(0,0,0,.12)}
[data-theme="light"] .date-strip-sep{background:rgba(0,0,0,.18)}
[data-theme="light"] .date-strip-cal{color:#111}
[data-theme="light"] .date-strip-cal:hover{color:#000;background:rgba(45,70,20,.08);border-radius:50%}
.date-strip::-webkit-scrollbar { display: none; }

.date-strip-sep {
  width: 1px; height: 28px; background: rgba(255,255,255,0.15);
  flex-shrink: 0; margin: 0 4px;
}

.date-strip-btn {
  flex-shrink: 0; scroll-snap-align: start;
  padding: 6px 14px; border-radius: 30px;
  border: none; background: transparent;
  color: rgba(255,255,255,0.55); cursor: pointer;
  white-space: nowrap; transition: all 0.15s; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 44px;
}
.date-strip-btn .ds-num {
  font-size: 15px; font-weight: 600; line-height: 1; color: inherit;
}
.date-strip-btn .ds-sub {
  font-size: 9px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; line-height: 1; color: inherit; opacity: 0.65;
}
.date-strip-btn:hover { color: rgba(255,255,255,0.9); }
.date-strip-btn.active { background: #fff; color: #111; }
.date-strip-btn.active .ds-sub { opacity: 0.6; }

.date-strip-btn.live-btn {
  background: #dc2626; color: #fff;
  flex-direction: row; gap: 6px; font-weight: 700;
  padding: 8px 16px; min-width: unset;
}
.date-strip-btn.live-btn .live-count {
  background: rgba(255,255,255,0.25); border-radius: 10px;
  padding: 1px 7px; font-size: 11px; font-weight: 700;
}
.date-strip-btn.live-btn:hover, .date-strip-btn.live-btn.active { background: #b91c1c; color: #fff; }

.date-strip-cal {
  flex-shrink: 0; padding: 6px 10px; margin-left: 2px;
  color: rgba(255,255,255,0.4); cursor: pointer;
  display: flex; align-items: center; font-size: 18px;
  transition: color 0.15s; background: none; border: none;
}
.date-strip-cal:hover { color: rgba(255,255,255,0.85); }
.pred-prob { display: flex; align-items: center; justify-content: center; }
.prob-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  min-width: 58px; text-align: center;
}
.prob-badge.prob-high { background: rgba(160,208,0,0.14); color: #a0d000; }
.prob-badge.prob-med  { background: rgba(255,208,0,0.14);  color: #ffd000; }
.prob-badge.prob-low  { background: rgba(239,68,68,0.14);  color: #ef4444; }
.pred-tip-col { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; }
.tip-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(160,208,0,0.14);
  color: #a0d000;
  font-size: 11px;
  font-weight: 700;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tip-badge.tip-vip { background: rgba(255,208,0,0.14); color: #ffd000; }
.tip-market { font-size: 9.5px; color: rgba(255,255,255,0.25); margin-top: 1px; }
.pred-odd-col { display: flex; align-items: center; justify-content: flex-end; font-size: 13.5px; font-weight: 800; color: #ffd000; padding-right: 6px; }

@media (max-width: 640px) {
  .pred-list-header { display: none; }
  .pred-row {
    grid-template-columns: 3px 44px 1fr 94px 52px;
    padding: 9px 10px 9px 0;
  }
  .pred-prob { display: none; }
  .pred-odd-col { font-size: 12px; }
  .pred-team-name-row span { font-size: 11px; }
}

/* ── Top Leagues Widget ── */
.top-leagues-list { display: flex; flex-direction: column; }
.league-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
}
.league-item:hover { background: var(--card-2); color: var(--primary); }

/* Page hero dark (same as default — kept for specificity if needed) */
[data-theme="dark"] .page-hero {
  background: #0f1800;
  border-bottom-color: rgba(160,208,0,0.12);
}

/* ── SEO Article Section ── */
.seo-article-section {
  padding: 48px 0 64px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.seo-article-body {
  max-width: 820px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
}
.seo-article-body h1,
.seo-article-body h2,
.seo-article-body h3 {
  color: #fff;
  font-weight: 700;
  margin: 2em 0 0.6em;
  line-height: 1.35;
}
.seo-article-body h1 { font-size: 26px; }
.seo-article-body h2 { font-size: 21px; border-bottom: 1px solid rgba(160,208,0,0.18); padding-bottom: 6px; }
.seo-article-body h3 { font-size: 17px; color: #a0d000; }
.seo-article-body p { margin: 0 0 1em; }
.seo-article-body ul,
.seo-article-body ol { margin: 0.6em 0 1em 1.4em; }
.seo-article-body li { margin-bottom: 0.35em; }
.seo-article-body strong { color: #e0ffe0; font-weight: 600; }
.seo-article-body a { color: #a0d000; text-decoration: none; }
.seo-article-body a:hover { text-decoration: underline; }
.seo-article-body blockquote {
  border-left: 3px solid #a0d000;
  margin: 1em 0;
  padding: 0.5em 1em;
  background: rgba(160,208,0,0.05);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: rgba(255,255,255,0.55);
}

[data-theme="light"] .seo-article-body { color: #333; }
[data-theme="light"] .seo-article-body h1,
[data-theme="light"] .seo-article-body h2,
[data-theme="light"] .seo-article-body h3 { color: #111; }
[data-theme="light"] .seo-article-body strong { color: #000; }

/* ── Prediction Detail Modal ──────────────────────────────────────────────── */
.pred-detail-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 20px 16px 40px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.pred-detail-overlay.open { opacity: 1; pointer-events: all; }
.pred-detail-modal {
  background: var(--bg-1); border-radius: 16px; width: 100%; max-width: 900px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6); overflow: hidden;
  transform: translateY(20px); transition: transform .25s;
  position: relative;
}
.pred-detail-overlay.open .pred-detail-modal { transform: translateY(0); }

.pdm-close {
  position: absolute; top: 14px; right: 16px; z-index: 10;
  background: rgba(255,255,255,.08); border: none; border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
}
.pdm-close:hover { background: rgba(255,255,255,.15); }

/* Match header */
.pdm-header {
  background: var(--bg-2); padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}
.pdm-league-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-soft); margin-bottom: 18px;
}
.pdm-league-row img { width: 18px; height: 18px; object-fit: contain; margin-right: 6px; vertical-align: middle; }
.pdm-teams-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center;
}
.pdm-team { text-align: center; }
.pdm-team img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 8px; }
.pdm-team-icon { font-size: 52px; opacity: .35; display: block; margin-bottom: 8px; }
.pdm-team-name { font-size: 16px; font-weight: 700; }
.pdm-form-row { display: flex; gap: 4px; justify-content: center; margin-top: 6px; flex-wrap: wrap; }
.pdm-form-badge {
  width: 22px; height: 22px; border-radius: 5px; font-size: 11px;
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.pdm-form-badge.W { background: #16a34a; color: #fff; }
.pdm-form-badge.D { background: #6b7280; color: #fff; }
.pdm-form-badge.L { background: #dc2626; color: #fff; }

.pdm-score-col { text-align: center; }
.pdm-score { font-size: 36px; font-weight: 900; letter-spacing: 2px; }
.pdm-score-vs { font-size: 22px; font-weight: 800; color: var(--text-soft); }
.pdm-status { font-size: 11px; color: var(--primary); font-weight: 700; margin-top: 4px; text-transform: uppercase; }
.pdm-date { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

/* Tip bar */
.pdm-tip-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 28px; background: rgba(160,208,0,0.06);
  border-bottom: 1px solid var(--border);
}
.pdm-tip-label { font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em; }
.pdm-tip-value { font-size: 15px; font-weight: 700; color: var(--primary); }
.pdm-tip-divider { width: 1px; height: 32px; background: var(--border); }

/* Body layout */
.pdm-body { padding: 24px 28px; }
.pdm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.pdm-section { background: var(--bg-2); border-radius: 10px; border: 1px solid var(--border); }
.pdm-section-head {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.pdm-section-body { padding: 12px 16px; }

/* H2H */
.pdm-h2h-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; }
.pdm-h2h-row:last-child { border-bottom: none; }
.pdm-h2h-date { color: var(--text-soft); font-size: 11px; min-width: 80px; }
.pdm-h2h-score { font-weight: 800; font-size: 14px; color: var(--primary); min-width: 40px; text-align: center; }
.pdm-h2h-empty { color: var(--text-soft); font-size: 13px; text-align: center; padding: 12px 0; }

/* H2H summary dots */
.pdm-h2h-summary { display: flex; gap: 12px; margin-bottom: 12px; }
.pdm-h2h-sum-item { flex: 1; text-align: center; }
.pdm-h2h-sum-num { font-size: 22px; font-weight: 800; }
.pdm-h2h-sum-lbl { font-size: 10px; color: var(--text-soft); text-transform: uppercase; }

/* Team Stats bars */
.pdm-stat-row { margin-bottom: 14px; }
.pdm-stat-label { font-size: 11px; color: var(--text-soft); text-align: center; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.pdm-stat-bar-wrap { display: flex; align-items: center; gap: 8px; }
.pdm-stat-val { font-size: 13px; font-weight: 700; min-width: 28px; }
.pdm-stat-val.home { text-align: right; }
.pdm-stat-val.away { text-align: left; }
.pdm-stat-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; display: flex; }
.pdm-stat-bar-home { height: 100%; background: var(--primary); border-radius: 3px; transition: width .4s; }
.pdm-stat-bar-away { height: 100%; background: #ef4444; border-radius: 3px; transition: width .4s; }

/* Standings */
.pdm-standings { margin-top: 24px; }
.pdm-standings table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pdm-standings th { font-size: 11px; color: var(--text-soft); font-weight: 600; text-align: center; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.pdm-standings th:first-child, .pdm-standings td:first-child { text-align: left; padding-left: 4px; }
.pdm-standings td { padding: 7px 8px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.04); }
.pdm-standings tbody tr:last-child td { border-bottom: none; }
.pdm-standings tbody tr:hover td { background: rgba(255,255,255,.02); }
.pdm-standings .highlight td { background: rgba(160,208,0,.07); }
.pdm-standings .team-cell { display: flex; align-items: center; gap: 8px; }
.pdm-standings .team-cell img { width: 20px; height: 20px; object-fit: contain; }

/* Discussion */
.pdm-discussion { margin-top: 24px; }
.pdm-comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pdm-comment-form textarea { grid-column: 1/-1; }

@media (max-width: 640px) {
  .pdm-grid { grid-template-columns: 1fr; }
  .pdm-teams-row { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .pdm-team img { width: 44px; height: 44px; }
  .pdm-team-name { font-size: 13px; }
  .pdm-score { font-size: 28px; }
  .pdm-body { padding: 16px; }
  .pdm-comment-form { grid-template-columns: 1fr; }
}
[data-theme="light"] .pred-detail-modal { background: #fff; }
[data-theme="light"] .pdm-header, [data-theme="light"] .pdm-section { background: #f8f9fa; }



/* ═══════════════════════════════════════════════════════
   ANIMATIONS & MOTION — Competitive Parity Upgrade
   ═══════════════════════════════════════════════════════ */

/* Page entrance fade */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageFadeIn 0.2s ease-out; }
@media (prefers-reduced-motion: reduce) { body, * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* Confidence bar animate from 0 → target */
@keyframes confFill { to { width: var(--conf-w, 0%); } }
.confidence-fill {
  width: 0 !important;
  animation: confFill 0.75s cubic-bezier(.22,.68,0,1.2) 0.1s forwards;
}

/* Prediction row stagger entrance */
@keyframes rowSlideIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.pred-row { animation: rowSlideIn 0.28s ease-out both; }

/* Prediction card stagger entrance */
@keyframes cardSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.prediction-card { animation: cardSlideIn 0.32s ease-out both; }
.acca-card { animation: cardSlideIn 0.32s ease-out both; }

/* Stats chart bar animate */
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.stat-bar { transform-origin: bottom; animation: barGrow 0.6s cubic-bezier(.22,.68,0,1.2) both; }

/* Win-rate trust badge on homepage */
.winrate-badge {
  background: linear-gradient(135deg, rgba(160,208,0,0.1), rgba(160,208,0,0.04));
  border: 1px solid rgba(160,208,0,0.25);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.winrate-badge-icon { font-size: 36px; flex-shrink: 0; }
.winrate-badge-stat { display: flex; align-items: baseline; gap: 6px; }
.winrate-badge-num { font-family: var(--font-head); font-size: 36px; font-weight: 900; color: var(--primary); line-height: 1; }
.winrate-badge-label { font-size: 13px; color: var(--text-soft); }
.winrate-badge-divider { width: 1px; height: 40px; background: rgba(160,208,0,0.2); flex-shrink: 0; }
.winrate-badge-sub { font-size: 13px; color: var(--text-soft); }
.winrate-badge-sub strong { color: var(--text); }
[data-theme="light"] .winrate-badge { background: linear-gradient(135deg, rgba(160,208,0,0.12), rgba(160,208,0,0.04)); }

/* Community vote bar */
.vote-bar-wrap { margin-top: 10px; }
.vote-bar-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-soft); margin-bottom: 4px; }
.vote-bar-track { height: 8px; background: rgba(255,255,255,0.07); border-radius: 99px; overflow: hidden; display: flex; gap: 1px; }
.vote-home { background: var(--primary); border-radius: 99px 0 0 99px; transition: width 0.6s ease; }
.vote-draw  { background: var(--warning); transition: width 0.6s ease; }
.vote-away  { background: var(--info, #5090d0); border-radius: 0 99px 99px 0; transition: width 0.6s ease; }
.vote-actions { display: flex; gap: 6px; margin-top: 8px; }
.vote-btn { flex: 1; padding: 5px 0; font-size: 11px; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; background: transparent; color: var(--text-soft); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.vote-btn:hover, .vote-btn.voted { background: rgba(160,208,0,0.12); color: var(--primary); border-color: rgba(160,208,0,0.3); }
.vote-btn.voted-home { background: rgba(160,208,0,0.12); color: var(--primary); border-color: rgba(160,208,0,0.3); }
.vote-btn.voted-draw { background: rgba(255,208,0,0.12); color: var(--warning); border-color: rgba(255,208,0,0.3); }
.vote-btn.voted-away { background: rgba(80,144,208,0.12); color: var(--info, #5090d0); border-color: rgba(80,144,208,0.3); }
[data-theme="light"] .vote-bar-track { background: rgba(0,0,0,0.07); }

/* Bookmaker odds strip on prediction row */
.bookie-odds-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.bookie-odds-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); font-size: 11px; color: var(--text-soft); text-decoration: none; transition: background 0.2s; }
.bookie-odds-pill:hover { background: rgba(160,208,0,0.1); color: var(--primary); border-color: rgba(160,208,0,0.2); }
.bookie-odds-name { font-weight: 600; }
.bookie-odds-val { color: var(--primary); font-weight: 700; }
[data-theme="light"] .bookie-odds-pill { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }

/* PWA install banner */
#pwa-install-banner {
  position: fixed; bottom: 80px; right: 24px; left: auto; max-width: 380px;
  background: #1a2235; border: 1px solid rgba(160,208,0,0.35);
  border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55); z-index: 9000;
  animation: cardSlideIn 0.3s ease-out;
}
#pwa-install-banner .pwa-icon { font-size: 32px; flex-shrink: 0; }
#pwa-install-banner .pwa-text { flex: 1; }
#pwa-install-banner .pwa-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
#pwa-install-banner .pwa-sub { font-size: 12px; color: var(--text-soft); }
#pwa-install-banner .pwa-actions { display: flex; gap: 8px; flex-shrink: 0; }
#pwa-install-banner .btn-pwa-install { background: var(--primary); color: #0d1600; font-weight: 700; padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 13px; }
#pwa-install-banner .btn-pwa-dismiss { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--text-soft); padding: 4px; }

/* Affiliate odds section in prediction modal */
.aff-odds-section { margin-top: 16px; }
.aff-odds-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; }
.aff-odds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.aff-odds-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 10px 12px; text-align: center; text-decoration: none; transition: background 0.2s, border-color 0.2s; display: block; }
.aff-odds-card:hover { background: rgba(160,208,0,0.08); border-color: rgba(160,208,0,0.2); }
.aff-odds-bookie { font-size: 11px; color: var(--text-soft); margin-bottom: 3px; }
.aff-odds-val { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--primary); }
[data-theme="light"] .aff-odds-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.07); }

/* ── Live mode active state ── */
.live-date-btn.active {
  background: #dc2626 !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.3);
}
.live-date-btn.active .live-pulse { background: #fff; }

/* ── Predictions filter row (desktop) ── */
.pred-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pred-filters-row .form-control { max-width: 200px; }

/* ═══════════════════════════════════════════════════════
   MOBILE DISPLAY FIXES  (≤640px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── Global layout — prevent any horizontal blowout ── */
  body.has-sidebar { padding-left: 0 !important; }
  * { box-sizing: border-box; }

  /* ── 1. Header: logo only, no name, smaller Go Premium ── */
  .topbar-logo span { display: none; }
  .vip-premium-btn { padding: 5px 10px; }
  .vip-premium-btn .prem-sub { display: none; }
  .vip-premium-btn .prem-top { font-size: 11px; }

  /* ── 2. Win-rate badge — single tight row, no wrap ── */
  .winrate-badge {
    padding: 9px 12px;
    gap: 8px;
    border-radius: 10px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .winrate-badge-icon { font-size: 18px; }
  .winrate-badge-num  { font-size: 20px; }
  .winrate-badge-label { font-size: 10px; }
  .winrate-badge-divider { height: 22px; }
  .winrate-badge-sub { font-size: 10px; }

  /* ── 3. Page hero — tighter ── */
  .page-hero { padding: 10px 0 8px; }
  .page-hero-title { font-size: 17px; line-height: 1.2; margin-bottom: 4px; }
  .page-hero-sub { font-size: 12px; }

  /* Category tabs → hide on mobile, show select instead */
  #category-tabs { display: none !important; }
  .category-select-mobile {
    display: block !important;
    width: auto;
    max-width: 58%;
    min-width: 160px;
    background: var(--card, #1e2e00);
    border: 1px solid rgba(160,208,0,0.35);
    border-radius: 8px;
    color: var(--text);
    padding: 7px 32px 7px 12px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a0d000' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
  }
  .category-select-mobile option { background: var(--card, #1e2e00); color: var(--text); }

  /* ── 4. PWA — right-edge sliding tab ── */
  #pwa-install-banner {
    position: fixed;
    right: -250px;
    top: 45%;
    transform: translateY(-50%);
    bottom: auto;
    left: auto;
    max-width: none;
    width: 250px;
    border-radius: 14px 0 0 14px;
    padding: 14px 18px 14px 16px;
    transition: right 0.35s cubic-bezier(.25,.8,.25,1);
    background: #1a2235;
    border: 1px solid rgba(160,208,0,0.45);
    border-right: 3px solid #a0d000;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    box-shadow: -4px 0 24px rgba(0,0,0,0.6);
    animation: none;
  }
  #pwa-install-banner.pwa-open { right: 0; cursor: default; }
  /* pull tab that peeks out from right edge */
  #pwa-install-banner::before {
    content: 'install_mobile';
    font-family: 'Material Icons Round';
    font-size: 24px;
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 52px;
    background: #1a2235;
    border: 1px solid rgba(160,208,0,0.45);
    border-right: none;
    border-radius: 10px 0 0 10px;
    line-height: 52px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
  }
  #pwa-install-banner .pwa-icon { display: none; }
  #pwa-install-banner .pwa-title { font-size: 13px; font-weight: 700; color: #f4f8e0; }
  #pwa-install-banner .pwa-sub { font-size: 11px; color: rgba(244,248,224,0.65); }
  #pwa-install-banner .pwa-actions { width: 100%; display: flex; gap: 8px; margin-top: 4px; }
  #pwa-install-banner .btn-pwa-install {
    flex: 1; padding: 7px 0; font-size: 12px; border-radius: 8px;
    background: #a0d000; color: #0d1600; font-weight: 700; border: none; cursor: pointer;
  }
  #pwa-install-banner .btn-pwa-dismiss {
    font-size: 18px; padding: 4px 8px; color: rgba(200,218,255,0.5);
    background: none; border: none; cursor: pointer;
  }

  /* ── Ad units — hard-contain so nothing blows the layout ── */
  .ad-wrap, .ad-slot, .ad-code {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .ad-wrap > *, .ad-slot > *, .ad-code > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .ad-wrap iframe:not(.ad-frame), .ad-wrap ins, .ad-wrap img,
  .ad-slot iframe:not(.ad-frame), .ad-slot ins, .ad-slot img,
  .ad-code iframe:not(.ad-frame), .ad-code ins, .ad-code img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* ── Predictions grid — center empty state ── */
  #predictions-grid { text-align: center; }
  #predictions-grid .pred-row,
  #predictions-grid .prediction-card { text-align: left; }

  /* ── Date strip — full-width on mobile, scroll inside ── */
  .date-strip {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }

  /* ── Date picker row — horizontal scroll without body overflow ── */
  .date-picker-row {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 5px;
    padding-bottom: 4px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .date-picker-row::-webkit-scrollbar { display: none; }
  .date-btn { flex-shrink: 0; padding: 6px 10px; min-width: 38px; }
  .date-btn .date-num { font-size: 13px; }
  .date-btn .date-label { font-size: 8px; }
  .live-date-btn { flex-shrink: 0; font-size: 11px; padding: 4px 10px; }

  /* ── Predictions page filter row — 2-col grid on mobile ── */
  .pred-filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }
  .pred-filters-row .form-control { max-width: 100% !important; width: 100%; font-size: 12px; padding: 7px 10px; }
  /* search spans full width */
  /* search sits in its own column, not spanning full width */
  .pred-filters-row input[type="text"] { grid-column: auto; }

  /* ── Prediction rows ── */
  .pred-row { padding: 10px 12px; }
  .pred-teams { font-size: 12px; }
  .pred-tip-badge { font-size: 11px; padding: 2px 8px; }
  .confidence-bar { height: 3px; }

  /* ── Banker card ── */
  .banker-card { padding: 14px; }
  .banker-match-title { font-size: 13px; }
  .banker-teams { gap: 8px; }
  .banker-team-name { font-size: 12px; max-width: 80px; }

  /* ── Section spacing ── */
  .recent-wins-section { padding: 12px 0; }
  .seo-article-section { padding: 12px 0 24px; }

  /* ── Affiliate odds grid — 2-col ── */
  .aff-odds-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .aff-odds-val { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVENESS  — iPhone 14 Pro (393px) baseline
   Covers all pages equally. Keep below all other rules.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Hard containment: no element may cause a horizontal scroll ── */
*, *::before, *::after { max-width: 100%; }
img, video, iframe, embed, object, canvas, svg { max-width: 100%; height: auto; }
/* restore elements that legitimately exceed parent */
.left-sidebar, .topbar, .sidebar-overlay,
.pred-detail-overlay, .mobile-bottom-nav,
#pwa-install-banner { max-width: none; }

/* ── 2. Ticker: hide on mobile — shrink topbar back to nav-row-only height ── */
@media (max-width: 640px) {
  .ticker-wrap { display: none; }
  :root { --topbar-h: 52px; }
}

/* ── 3. Topbar: constrain nav row to 52px, left-pad for safe area ── */
.topbar-inner {
  height: 52px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ── 4. Bottom nav: honour safe areas on notch phones ── */
.mobile-bottom-nav {
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(60px + env(safe-area-inset-bottom));
}
@media (max-width: 640px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ── 5. All flex & grid children: prevent text from pushing containers wide ── */
.topbar-inner > *,
.flex > *, .flex-between > *,
.page-with-sidebar > *,
.home-layout > *,
.stats-banner > *,
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* ── 6. Container: never exceed viewport ── */
.container { width: 100%; box-sizing: border-box; }

/* ── 7. Negative-margin scroll rows: explicitly contain them ── */
@media (max-width: 640px) {
  .date-picker-row,
  .tab-row {
    /* Width = container width + 2×container-padding, clipped by html overflow:clip */
    box-sizing: content-box;
    max-width: calc(100vw - 0px); /* trust overflow:clip on html */
  }
}

/* ══════════════════════════════════════════════════════
   PAGE-BY-PAGE MOBILE FIXES  (≤640px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── Topbar ── */
  .topbar-logo span { font-size: 14px; }
  .vip-premium-btn { padding: 5px 8px; gap: 2px; }
  .vip-premium-btn .prem-top { font-size: 10px; }
  .vip-premium-btn .prem-sub { display: none; }
  /* Hide text label when truly tiny (360px and below) */
  @media (max-width: 360px) {
    .topbar-logo span { display: none; }
    .vip-premium-btn { padding: 5px 6px; }
  }

  /* ── Hero ── */
  .page-hero { padding: 12px 0 10px; }
  .page-hero-title { font-size: clamp(15px, 4.5vw, 20px); line-height: 1.2; margin-bottom: 4px; }
  .page-hero-sub  { font-size: 12px; line-height: 1.5; }
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: clamp(20px, 6vw, 26px); }
  .hero p  { font-size: 13px; }

  /* ── Cards: universal containment ── */
  .prediction-card,
  .banker-card,
  .vip-teaser,
  .sidebar-widget,
  .card { width: 100%; box-sizing: border-box; overflow: hidden; }

  /* ── Teams row: prevent team names from pushing layout ── */
  .team { flex: 1; min-width: 0; max-width: 38%; }
  .team-name { font-size: 11px; word-break: break-word; white-space: normal; text-align: center; }
  .team img { width: 30px; height: 30px; }

  /* ── Stats banner ── */
  .stats-banner { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .stats-banner .stat-card { padding: 10px 12px; }

  /* ── Win-rate badge ── */
  .winrate-badge { padding: 10px 12px; gap: 10px; flex-wrap: nowrap; overflow: hidden; align-items: center; }
  .winrate-badge-icon { font-size: 20px; flex-shrink: 0; }
  .winrate-badge-num  { font-size: 22px; }
  .winrate-badge-label { font-size: 10px; }
  .winrate-badge-divider { height: 24px; flex-shrink: 0; }
  .winrate-badge-sub { font-size: 10px; flex: 1; min-width: 0; }

  /* ── Prediction rows (list view) ── */
  .pred-row { padding: 10px 12px; }
  .pred-teams { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pred-team-name-row { min-width: 0; overflow: hidden; }
  .pred-team-name-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

  /* ── Prediction detail modal ── */
  .pred-detail-overlay { padding: 8px 8px 80px; }
  .pred-detail-modal { border-radius: 12px; }
  .pdm-header { padding: 16px 16px 14px; }
  .pdm-league-row { margin-bottom: 12px; }
  .pdm-team img { width: 40px; height: 40px; }
  .pdm-team-name { font-size: 12px; }
  .pdm-score { font-size: 26px; }
  .pdm-score-vs { font-size: 18px; }
  .pdm-tip-bar { padding: 10px 16px; gap: 10px; }
  .pdm-body { padding: 12px; }
  .pdm-grid { grid-template-columns: 1fr; gap: 12px; }
  .pdm-section-head { padding: 10px 12px; font-size: 12px; }
  .pdm-section-body { padding: 10px 12px; }
  .pdm-h2h-date { min-width: 60px; font-size: 10px; }
  .pdm-h2h-score { min-width: 32px; font-size: 12px; }
  .pdm-standings { overflow-x: auto; }
  .pdm-standings table { min-width: 280px; }
  .pdm-comment-form { grid-template-columns: 1fr; }

  /* ── Blog ── */
  .blog-grid { grid-template-columns: 1fr !important; }
  .blog-card { width: 100%; }
  .blog-card-img { height: 160px; }
  .blog-meta { flex-wrap: wrap; gap: 6px; }

  /* ── Pricing / Subscription cards ── */
  .pricing-grid, .plans-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .plan-card { padding: 20px 16px !important; }

  /* ── Dashboard stats ── */
  .dash-stats-grid { grid-template-columns: repeat(2,1fr) !important; gap: 10px; }
  .dash-stat-card { padding: 12px; }

  /* ── Data tables: horizontal scroll ── */
  .data-table-wrap,
  .table-wrap,
  .pdm-standings { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: max-content; }

  /* ── Forms ── */
  .form-row { flex-direction: column; gap: 12px; }
  .form-control, select, textarea, input[type="text"],
  input[type="email"], input[type="password"] {
    width: 100%; box-sizing: border-box; font-size: 16px; /* prevent zoom on iOS */
  }

  /* ── Modals (generic) ── */
  .modal { width: calc(100vw - 32px) !important; max-width: 100% !important;
    margin: 16px; border-radius: 12px; }
  .modal-body { padding: 16px; }

  /* ── About / static pages ── */
  .about-grid, .team-grid { grid-template-columns: 1fr !important; }
  .about-card { padding: 16px; }

  /* ── Contact ── */
  .contact-grid { grid-template-columns: 1fr !important; }

  /* ── Statistics page ── */
  .stats-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .stat-detail-card { padding: 14px; }

  /* ── Bet Builder ── */
  .bb-grid, .builder-grid { grid-template-columns: 1fr !important; }
  .bb-slip { position: static !important; width: 100% !important; }

  /* ── Footer ── */
  .footer-grid, .footer-grid-new { grid-template-columns: 1fr; gap: 20px; }
  .footer-main { padding: 24px 0 16px; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom-bar > * { font-size: 12px; }

  /* ── Utility: full-width buttons ── */
  .btn-block-mobile { display: block; width: 100%; text-align: center; }

  /* ── Section spacing ── */
  section { padding: 14px 0; }
  .mb-4 { margin-bottom: 16px !important; }
  .mb-3 { margin-bottom: 12px !important; }
}

/* ── Very small phones (≤360px): extra squeeze ── */
@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .stats-banner { grid-template-columns: 1fr; }
  .winrate-badge { flex-wrap: wrap; }
  .topbar-inner { gap: 8px; }
  .pred-row { grid-template-columns: 3px 36px 1fr 82px 44px; padding: 8px 10px; }
  .page-hero-title { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════
   VP-STYLE PREDICTION ROWS
   ═══════════════════════════════════════════════════ */
.league-group { margin-bottom: 10px; }
.league-group-header {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  font-size: 12px; font-weight: 600; color: var(--text-soft);
}
.league-group-header img { width: 18px; height: 18px; object-fit: contain; }

.pred-row-vp {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr clamp(130px, 20vw, 200px) 1fr;
  align-items: center;
  gap: clamp(4px, 1vw, 10px);
  padding: clamp(9px, 1.5vw, 14px) clamp(10px, 2vw, 16px);
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
  animation: rowFadeIn 0.3s ease both;
}
.pred-row-vp:last-child { border-radius: 0 0 8px 8px; }
.pred-row-vp:hover {
  background: var(--card-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  position: relative; z-index: 1;
}
.pred-row-vp.result-won { border-left: 3px solid #22c55e !important; }
.pred-row-vp.result-lost { border-left: 3px solid #ef4444 !important; }
.pred-row-vp.result-live { border-left: 3px solid #ff4757 !important; }
.prediction-card{position:relative;overflow:hidden}
.prediction-result-watermark{position:absolute;right:18px;top:50%;transform:translateY(-50%) rotate(-8deg);display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;user-select:none;z-index:0;opacity:.12}
.prediction-result-watermark .material-icons-round{font-size:54px;line-height:1}
.prediction-result-watermark strong{font-size:18px;letter-spacing:.16em;line-height:1;margin-top:2px}
.watermark-won{color:#16a34a}.watermark-lost{color:#ef4444}
.pred-row-vp>*:not(.prediction-result-watermark),.prediction-card>*:not(.prediction-result-watermark){position:relative;z-index:1}

.vp-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vp-away { flex-direction: row-reverse; }
.vp-team-logo { width: clamp(24px, 3.5vw, 36px); height: clamp(24px, 3.5vw, 36px); object-fit: contain; flex-shrink: 0; }
.vp-team-logo-ph {
  width: clamp(24px, 3.5vw, 36px); height: clamp(24px, 3.5vw, 36px); background: var(--bg-2); border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-soft);
}
.vp-team-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vp-away-info { align-items: flex-end; }
.vp-team-name {
  font-size: clamp(10px, 1.4vw, 13px); font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vp-form { display: flex; gap: 2px; flex-wrap: nowrap; }

.vp-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vp-time-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; color: var(--text-soft);
}
.vp-score-chip { font-size: 18px; font-weight: 900; color: var(--text); text-align: center; line-height: 1; }
.vp-ft-label { display: block; font-size: 9px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .5px; text-align: center; margin-top: 2px; }
.vp-live-label { display: block; font-size: 9px; font-weight: 800; color: #ff4757; text-transform: uppercase; text-align: center; margin-top: 2px; }

.vp-odds-tips { display: flex; align-items: center; gap: clamp(3px, 1vw, 6px); flex-wrap: wrap; justify-content: center; }
.vp-odds-pill {
  display: inline-flex; align-items: center; gap: clamp(3px, 0.8vw, 5px);
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: clamp(2px, 0.5vw, 4px) clamp(6px, 1.5vw, 12px);
  font-size: clamp(9px, 1.2vw, 12px); white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.vp-odds-logo {
  width: clamp(12px, 2vw, 18px);
  height: clamp(12px, 2vw, 18px);
  object-fit: contain;
  border-radius: 3px;
  opacity: 0.85;
  flex-shrink: 0;
}
.vp-odds-book { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 16px; padding: 0 3px; border-radius: 4px; font-size: 8px; font-weight: 800; letter-spacing: .2px; line-height: 1; flex: 0 0 auto; }
.vp-odds-none { opacity: 1; }
.vp-odds-none .vp-odds-val { color: var(--text-soft, #9ca3af); }
.vp-odds-val { font-weight: 800; color: var(--primary); font-size: clamp(9px, 1.3vw, 12px); letter-spacing: .2px; }
.vp-tips-pill {
  background: var(--primary); color: #000;
  border-radius: 20px;
  padding: clamp(3px, 0.5vw, 5px) clamp(8px, 1.5vw, 14px);
  font-size: clamp(9px, 1.2vw, 12px); font-weight: 700; white-space: nowrap;
}
[data-theme="light"] .vp-tips-pill { color: #000; }
.vp-locked-pill {
  background: rgba(255,71,87,0.15); color: #ff4757;
  border-radius: 20px;
  padding: clamp(3px, 0.5vw, 5px) clamp(7px, 1.2vw, 11px);
  font-size: clamp(9px, 1.2vw, 12px); font-weight: 700;
}
.pred-list-grouped { }

/* ── CTA Buttons ── */
.home-cta-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 16px 0;
}
.cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 30px; padding: 13px 20px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: opacity .2s, transform .15s; cursor: pointer; border: none;
}
.cta-btn:hover { opacity: .88; transform: translateY(-2px); }
.cta-btn-telegram { background: #229ED9; color: #fff !important; }
.cta-btn-banker { background: #c0392b; color: #fff !important; }

/* ── Upcoming Picks ── */
.upcoming-section { margin-top: 0; }

/* ── League Table / Top Scorers Widgets ── */
.lw-league-tabs { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.lw-tab {
  padding: 3px 8px; border-radius: 20px; font-size: 10px; font-weight: 600;
  cursor: pointer; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-soft); transition: all .2s; white-space: nowrap;
}
.lw-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
[data-theme="dark"] .lw-tab.active,
:root:not([data-theme="light"]) .lw-tab.active { color: #0d1600; }
.lw-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.lw-table th { padding: 3px 4px; text-align: center; color: var(--text-soft); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .3px; }
.lw-table th:nth-child(2) { text-align: left; }
.lw-table td { padding: 5px 4px; border-bottom: 1px solid var(--border); text-align: center; }
.lw-table td:nth-child(2) { text-align: left; }
.lw-table tr:last-child td { border: none; }
.lw-team-cell { display: flex; align-items: center; gap: 5px; }
.lw-team-cell img { width: 14px; height: 14px; object-fit: contain; }
.lw-rank { color: var(--text-soft); }
.lw-pts { font-weight: 800; color: var(--primary); }
.ts-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.ts-table th { padding: 3px 4px; text-align: left; color: var(--text-soft); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .3px; }
.ts-table th:nth-child(3), .ts-table th:nth-child(4) { text-align: center; }
.ts-table td { padding: 5px 4px; border-bottom: 1px solid var(--border); }
.ts-table td:nth-child(1) { text-align: center; color: var(--text-soft); }
.ts-table td:nth-child(3), .ts-table td:nth-child(4) { text-align: center; }
.ts-table tr:last-child td { border: none; }
.ts-player { display: flex; flex-direction: column; }
.ts-player-name { font-weight: 700; font-size: 11px; color: var(--text); }
.ts-player-team { font-size: 10px; color: var(--text-soft); }
.ts-goals { font-weight: 800; color: var(--primary); }
.ts-matches { color: var(--text-soft); }

/* ── Footer predictions-by-day column ── */
.footer-predictions-col a {
  display: block; padding: 2px 0;
  font-size: 13px; color: var(--text-soft); transition: color .15s;
}
.footer-predictions-col a:hover { color: var(--primary); text-decoration: none; }
.footer-grid-new { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr !important; }

/* ── Mobile VP row adjustments ── */
@media (max-width: 640px) {
  #category-tabs {
    display: flex !important; overflow-x: auto !important;
    scrollbar-width: none; flex-wrap: nowrap; gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  #category-tabs::-webkit-scrollbar { display: none; }
  #category-select { display: none !important; }
  .category-tab { flex-shrink: 0; white-space: nowrap; }

  .pred-row-vp { grid-template-columns: 1fr 140px 1fr; }
  .vp-odds-logo { width: 13px; height: 13px; }
  .vp-odds-pill { padding: 2px 7px; }
  .vp-tips-pill { padding: 3px 8px; }
  .vp-odds-val { font-size: 10px; }
  .league-group-header { font-size: 11px; padding: 6px 10px; }
  .home-cta-row { gap: 8px; }
  .cta-btn { font-size: 12px; padding: 10px 12px; }
  .footer-grid-new { grid-template-columns: 1fr !important; }
}

@media (max-width: 400px) {
  .pred-row-vp { grid-template-columns: 1fr 120px 1fr; }
  .vp-tips-pill, .vp-odds-pill { justify-content: center; }
  .vp-odds-logo { width: 11px; height: 11px; }
}

/* ── Internal link chips (prediction-detail related links) ── */
.internal-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--bg-3, rgba(255,255,255,0.05));
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
}
.internal-link-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(160,208,0,0.08);
  text-decoration: none;
}
[data-theme="light"] .internal-link-chip {
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
  color: var(--text-soft);
}

/* ── Popup Ad System ──────────────────────────────────────────────────────────
   Positioned bottom-left (desktop) so it doesn't clash with the Telegram popup
   which sits bottom-right. On mobile it rises as a full-width bottom sheet.
   ─────────────────────────────────────────────────────────────────────────── */
.ad-popup-wrap {
  position: fixed;
  bottom: clamp(12px, 3vw, 28px);
  left: clamp(12px, 3vw, 28px);
  z-index: 9500;
  max-width: clamp(260px, 90vw, 360px);
  width: 100%;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.ad-popup-wrap.ad-popup-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ad-popup {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.2);
}

/* Header row: Sponsored label + action buttons */
.ad-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(8px, 1.5vw, 12px) clamp(10px, 2vw, 14px) 0;
}
.ad-popup-sponsored-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
}
.ad-popup-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.ad-popup-close-btn,
.ad-popup-never-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.ad-popup-close-btn:hover { color: var(--text); background: var(--bg-2); }
.ad-popup-never-btn:hover { color: rgba(255,71,87,.8); background: rgba(255,71,87,.08); }
.ad-popup-close-btn .material-icons-round { font-size: clamp(16px, 2vw, 20px); }
.ad-popup-never-btn .material-icons-round { font-size: clamp(14px, 1.8vw, 17px); }

/* Ad content area */
.ad-popup-body {
  padding: clamp(10px, 2vw, 14px);
}
.ad-popup-banner-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  max-height: 200px;
  object-fit: cover;
}
.ad-popup-img-link { display: block; }
.ad-popup-native {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  padding: 4px 0;
}
.ad-popup-native-img {
  width: clamp(44px, 10vw, 60px);
  height: clamp(44px, 10vw, 60px);
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.ad-popup-native-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ad-popup-native-name { font-size: clamp(12px, 1.6vw, 14px); font-weight: 700; color: var(--text); }
.ad-popup-native-sub  { font-size: clamp(11px, 1.3vw, 12px); color: var(--text-soft); }
.ad-popup-code { font-size: 13px; }
.ad-popup-btn { display: block; text-align: center; }

/* Auto-dismiss progress bar — shrinks from 100 % to 0 over animation-duration */
.ad-popup-progress-track {
  height: 3px;
  background: var(--bg-2);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}
.ad-popup-progress-bar {
  height: 100%;
  width: 100%;
  background: var(--primary);
  transform-origin: left center;
  animation: adPopupShrink linear forwards;
}
@keyframes adPopupShrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* Mobile: full-width bottom sheet */
@media (max-width: 520px) {
  .ad-popup-wrap {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    transform: translateY(100%);
  }
  .ad-popup-wrap.ad-popup-visible { transform: translateY(0); }
  .ad-popup {
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }
}

/* Light-mode adjustments */
[data-theme="light"] .ad-popup {
  box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.1);
}
[data-theme="light"] .ad-popup-never-btn:hover { background: rgba(255,71,87,.06); }

/* ════════════════════════════════════════════════════════════
   NEUMORPHISM — Public Frontend
   Soft extruded surfaces: every interactive element appears
   pressed out of the page rather than floating above it.
   Light + dark variants defined separately.
   ════════════════════════════════════════════════════════════ */

/* ── Neumorphism tokens ──────────────────────────────────────
   Light: bg #ffffff, shadow-dark rgba(13,22,0,0.13), shadow-light rgba(255,255,255,0.85)
   Dark : bg #1e2e00, shadow-dark #121c00,            shadow-light #2a3f00
   ────────────────────────────────────────────────────────── */
:root {
  --nm-shadow-d: rgba(13, 22, 0, 0.13);
  --nm-shadow-l: rgba(255, 255, 255, 0.85);
  --nm-blur:     12px;
  --nm-spread:   -2px;
}
[data-theme="dark"] {
  --nm-shadow-d: #111900;
  --nm-shadow-l: #283900;
  --nm-blur:     14px;
  --nm-spread:   -3px;
}

/* ── Cards ── */
.card {
  box-shadow:
    6px 6px var(--nm-blur) var(--nm-spread) var(--nm-shadow-d),
    -6px -6px var(--nm-blur) var(--nm-spread) var(--nm-shadow-l);
  border: none;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow:
    8px 8px 18px var(--nm-spread) var(--nm-shadow-d),
    -8px -8px 18px var(--nm-spread) var(--nm-shadow-l);
  transform: translateY(-2px);
}

/* ── Prediction cards ── */
.prediction-card {
  box-shadow:
    6px 6px var(--nm-blur) var(--nm-spread) var(--nm-shadow-d),
    -6px -6px var(--nm-blur) var(--nm-spread) var(--nm-shadow-l);
  border: none !important;
  transition: box-shadow 0.22s, transform 0.22s;
}
.prediction-card:hover {
  box-shadow:
    9px 9px 20px var(--nm-spread) var(--nm-shadow-d),
    -9px -9px 20px var(--nm-spread) var(--nm-shadow-l);
  transform: translateY(-3px);
}

/* Banker card keeps its distinctive lime glow, just adds depth */
.banker-card {
  box-shadow:
    6px 6px var(--nm-blur) var(--nm-spread) var(--nm-shadow-d),
    -6px -6px var(--nm-blur) var(--nm-spread) var(--nm-shadow-l),
    0 0 22px rgba(160,208,0,0.22) !important;
  border: 2px solid #a0d000 !important;
}

/* ── Prediction row (vp grid layout) ── */
.pred-row-vp {
  box-shadow:
    4px 4px 10px -2px var(--nm-shadow-d),
    -4px -4px 10px -2px var(--nm-shadow-l);
  border: none !important;
  transition: box-shadow 0.2s, transform 0.18s;
}
.pred-row-vp:hover {
  box-shadow:
    6px 6px 14px -2px var(--nm-shadow-d),
    -6px -6px 14px -2px var(--nm-shadow-l);
  transform: translateY(-1px);
}

/* ── Primary button — extruded, sinks on press ── */
.btn-primary {
  box-shadow:
    4px 4px 10px -1px var(--nm-shadow-d),
    -2px -2px 8px -1px rgba(255,255,255,0.4);
  transition: box-shadow 0.18s, transform 0.12s, background 0.2s;
}
.btn-primary:hover {
  box-shadow:
    6px 6px 14px -1px var(--nm-shadow-d),
    -3px -3px 10px -1px rgba(255,255,255,0.45);
  transform: translateY(-1px);
}
.btn-primary:active {
  box-shadow:
    inset 3px 3px 7px rgba(0,0,0,0.2),
    inset -2px -2px 5px rgba(255,255,255,0.15);
  transform: translateY(1px);
}

/* ── Ghost / outline buttons ── */
.btn-ghost,
.btn-outline {
  box-shadow:
    4px 4px 9px -2px var(--nm-shadow-d),
    -4px -4px 9px -2px var(--nm-shadow-l);
  transition: box-shadow 0.18s, transform 0.12s;
}
.btn-ghost:hover,
.btn-outline:hover {
  box-shadow:
    6px 6px 13px -2px var(--nm-shadow-d),
    -6px -6px 13px -2px var(--nm-shadow-l);
  transform: translateY(-1px);
}
.btn-ghost:active,
.btn-outline:active {
  box-shadow:
    inset 3px 3px 7px rgba(0,0,0,0.14),
    inset -2px -2px 5px var(--nm-shadow-l);
  transform: translateY(1px);
}

/* ── Odds pill & tips pill — soft extrusion ── */
.vp-odds-pill {
  box-shadow:
    3px 3px 7px -1px var(--nm-shadow-d),
    -2px -2px 6px -1px var(--nm-shadow-l);
  border: none !important;
}
.vp-tips-pill {
  box-shadow:
    3px 3px 7px -1px var(--nm-shadow-d),
    -2px -2px 6px -1px var(--nm-shadow-l);
  border: none !important;
}

/* ── Form inputs — inset (sunken) feel ── */
.form-control {
  box-shadow:
    inset 3px 3px 7px rgba(13,22,0,0.08),
    inset -3px -3px 7px rgba(255,255,255,0.7);
  border-color: transparent !important;
  transition: box-shadow 0.18s;
}
.form-control:focus {
  box-shadow:
    inset 3px 3px 8px rgba(13,22,0,0.10),
    inset -3px -3px 8px rgba(255,255,255,0.75),
    0 0 0 2px rgba(160,208,0,0.22);
  border-color: transparent !important;
  outline: none;
}
[data-theme="dark"] .form-control {
  box-shadow:
    inset 3px 3px 7px rgba(0,0,0,0.35),
    inset -3px -3px 7px rgba(40,57,0,0.6);
}
[data-theme="dark"] .form-control:focus {
  box-shadow:
    inset 3px 3px 8px rgba(0,0,0,0.40),
    inset -3px -3px 8px rgba(40,57,0,0.65),
    0 0 0 2px rgba(160,208,0,0.20);
}

/* ── Stat chips / stat blocks ── */
.stat-chip,
.stat-card,
.kpi-tile {
  box-shadow:
    5px 5px 11px -2px var(--nm-shadow-d),
    -5px -5px 11px -2px var(--nm-shadow-l);
  border: none;
}

/* ── Hero section tag ── */
.hero-tag {
  box-shadow:
    3px 3px 7px -1px var(--nm-shadow-d),
    -2px -2px 6px -1px var(--nm-shadow-l);
}

/* ── Pricing tier cards ── */
.tier-card {
  box-shadow:
    7px 7px 16px -3px var(--nm-shadow-d),
    -7px -7px 16px -3px var(--nm-shadow-l);
  border: none !important;
  transition: box-shadow 0.22s, transform 0.2s;
}
.tier-card:hover {
  box-shadow:
    10px 10px 24px -3px var(--nm-shadow-d),
    -10px -10px 24px -3px var(--nm-shadow-l);
  transform: translateY(-3px);
}
.tier-card.popular {
  box-shadow:
    7px 7px 16px -3px var(--nm-shadow-d),
    -7px -7px 16px -3px var(--nm-shadow-l),
    0 0 0 1.5px var(--primary), 0 0 28px rgba(160,208,0,0.15) !important;
}
.tier-card.diamond {
  box-shadow:
    7px 7px 16px -3px var(--nm-shadow-d),
    -7px -7px 16px -3px var(--nm-shadow-l),
    0 0 0 1.5px rgba(120,190,255,0.45), 0 0 28px rgba(120,190,255,0.10) !important;
}

/* ── Sidebar nav links (on mobile) ── */
.sidebar-nav-link {
  transition: box-shadow 0.18s, background 0.18s;
}
.sidebar-nav-link.active,
.sidebar-nav-link:hover {
  box-shadow:
    inset 2px 2px 5px var(--nm-shadow-d),
    inset -2px -2px 5px var(--nm-shadow-l);
}

/* ── Period toggle pills ── */
.period-toggle {
  box-shadow:
    5px 5px 11px -2px var(--nm-shadow-d),
    -5px -5px 11px -2px var(--nm-shadow-l);
  border: none !important;
}
.period-btn.active {
  box-shadow:
    inset 2px 2px 5px rgba(0,0,0,0.18),
    inset -1px -1px 4px rgba(255,255,255,0.2);
}

/* ── Tab row chips ── */
.filter-chip,
.cat-chip {
  box-shadow:
    3px 3px 7px -1px var(--nm-shadow-d),
    -3px -3px 7px -1px var(--nm-shadow-l);
  border: none !important;
  transition: box-shadow 0.15s;
}
.filter-chip.active,
.cat-chip.active {
  box-shadow:
    inset 2px 2px 5px rgba(0,0,0,0.14),
    inset -1px -1px 4px rgba(255,255,255,0.18);
}

/* ── Mobile bottom nav ── */
.mobile-bottom-nav {
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
[data-theme="dark"] .mobile-bottom-nav {
  box-shadow:
    0 -4px 16px #111900,
    0 -1px 0 rgba(160,208,0,0.08);
}

/* ── FAQ items ── */
.faq-item {
  box-shadow:
    4px 4px 10px -2px var(--nm-shadow-d),
    -4px -4px 10px -2px var(--nm-shadow-l);
  border: none !important;
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
}

/* Dark-mode neumorphism refinements */
[data-theme="dark"] .card {
  background: #1e2e00;
}
[data-theme="dark"] .prediction-card {
  background: #1e2e00 !important;
}
[data-theme="dark"] .tier-card {
  background: #1e2e00;
}
[data-theme="dark"] .period-toggle {
  background: #1e2e00;
}
[data-theme="dark"] .filter-chip,
[data-theme="dark"] .cat-chip {
  background: #1e2e00;
}

/* ════════════════════════════════════════════════════════════
   AUTH FORM SYSTEM — Pill inputs + atmospheric card
   Consistent across login, register, reset-password, contact,
   and inline forms on pricing.html.
   ════════════════════════════════════════════════════════════ */

/* ── Auth page wrapper (standalone pages) ─────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  /* Atmospheric warm spotlight from above — matches brand gold */
  background:
    radial-gradient(ellipse 55% 38% at 50% -2%, rgba(245, 218, 120, 0.16) 0%, transparent 58%),
    radial-gradient(ellipse 35% 25% at 50% 0%,  rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    radial-gradient(ellipse 80% 60% at 20% 90%, rgba(160, 208,   0, 0.05) 0%, transparent 60%),
    #0d1600;
  background-attachment: fixed;
}

/* ── Auth card ────────────────────────────────────────────── */
.auth-box {
  background: rgba(18, 28, 0, 0.76);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(160, 208, 0, 0.20);
  border-radius: 22px;
  padding: 44px 36px 36px;
  max-width: 420px;
  width: 100%;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(160, 208, 0, 0.06),
    inset 0 1px 0 rgba(160, 208, 0, 0.10);
  position: relative;
  overflow: hidden;
}
/* Subtle top-centre highlight on the card */
.auth-box::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,208,0,0.35), transparent);
  pointer-events: none;
}

/* ── Logo block inside card ───────────────────────────────── */
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin-bottom: 24px;
}
.auth-logo img { width: 38px; height: 38px; object-fit: contain; }
.auth-logo span {
  font-size: 19px; font-weight: 900; color: var(--primary);
  font-family: var(--font-head); letter-spacing: -0.4px;
}

/* ── Title & sub-text ─────────────────────────────────────── */
.auth-title {
  font-size: 27px; font-weight: 900; text-align: center;
  margin-bottom: 5px; color: #f4f8e0; letter-spacing: -0.4px;
  font-family: var(--font-head);
}
.auth-sub {
  font-size: 13.5px; color: rgba(244,248,224,0.55);
  text-align: center; margin-bottom: 28px; line-height: 1.5;
}

/* ── Pill input wrapper ───────────────────────────────────── */
.auth-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

/* ── Pill input ───────────────────────────────────────────── */
.auth-input {
  width: 100%;
  padding: 13px 46px 13px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(160, 208, 0, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f8e0;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.auth-input::placeholder { color: rgba(244,248,224,0.38); }
.auth-input:focus {
  outline: none;
  border-color: rgba(160,208,0,0.65);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(160,208,0,0.12), inset 0 1px 3px rgba(0,0,0,0.15);
}
.auth-input:disabled { opacity: 0.5; cursor: not-allowed; }

/* Select arrow override */
.auth-select {
  padding-right: 46px;
  cursor: pointer;
  background-image: none;
}
.auth-select option {
  background: #182200; color: #f4f8e0;
}

/* ── Trailing icon ────────────────────────────────────────── */
.auth-input-icon {
  position: absolute;
  right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 18px;
  color: rgba(160,208,0,0.45);
  pointer-events: none;
  transition: color 0.2s;
  user-select: none;
}
/* Icon becomes primary colour when input is focused */
.auth-input-wrap:focus-within .auth-input-icon { color: rgba(160,208,0,0.85); }
/* Clickable icon (show/hide password toggle) */
.auth-input-icon.clickable { pointer-events: auto; cursor: pointer; }

/* OTP code input — centred numeric */
.auth-input.otp-input {
  letter-spacing: 10px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  padding-right: 20px;
}

/* Textarea variant — not a pill, but same border style */
.auth-input.auth-textarea {
  border-radius: 14px;
  padding: 13px 20px;
  resize: vertical;
  min-height: 110px;
}

/* ── Row: remember me / forgot ────────────────────────────── */
.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; margin-top: -4px;
}
.auth-checkbox-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: rgba(244,248,224,0.55); cursor: pointer;
}
.auth-checkbox-label input[type="checkbox"] {
  width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer;
}
.auth-forgot {
  font-size: 13px; color: rgba(244,248,224,0.55);
  text-decoration: none; transition: color 0.18s;
}
.auth-forgot:hover { color: var(--primary); }

/* ── Pill submit button ───────────────────────────────────── */
.auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px 22px;
  border-radius: 50px;
  border: none;
  background: var(--primary);
  color: #0d1600;
  font-size: 15px; font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  box-shadow: 0 4px 18px rgba(160,208,0,0.28);
  letter-spacing: 0.2px;
}
.auth-btn:hover {
  background: #b8e800;
  box-shadow: 0 6px 24px rgba(160,208,0,0.40);
  transform: translateY(-1px);
}
.auth-btn:active { transform: translateY(1px); box-shadow: 0 2px 10px rgba(160,208,0,0.20); }
.auth-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.auth-btn .material-icons-round { font-size: 17px; }

/* Ghost secondary button — pill outline */
.auth-btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 12px 22px;
  border-radius: 50px;
  border: 1.5px solid rgba(160,208,0,0.25);
  background: rgba(160,208,0,0.06);
  color: rgba(244,248,224,0.7);
  font-size: 14px; font-weight: 700;
  font-family: var(--font-body); cursor: pointer;
  transition: all 0.18s;
}
.auth-btn-ghost:hover { border-color: rgba(160,208,0,0.5); color: var(--primary); }
.auth-btn-ghost .material-icons-round { font-size: 16px; }

/* ── Error / success feedback ─────────────────────────────── */
.auth-error {
  display: none; color: #ff5f6d; font-size: 13px;
  margin: -6px 0 12px 8px; line-height: 1.4;
}
.auth-error.visible { display: block; }
.auth-success {
  display: none; color: #a0d000; font-size: 13px;
  margin: -6px 0 12px 8px; line-height: 1.4;
}
.auth-success.visible { display: block; }

/* ── Footer links ─────────────────────────────────────────── */
.auth-form-footer {
  text-align: center; margin-top: 20px;
  font-size: 13px; color: rgba(244,248,224,0.45);
}
.auth-form-footer a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-form-footer a:hover { text-decoration: underline; }

/* ── Password strength rules ──────────────────────────────── */
.pw-rules { margin: 8px 0 4px 4px; display: flex; flex-direction: column; gap: 5px; }
.pw-rule {
  font-size: 12px; color: rgba(244,248,224,0.40);
  display: flex; align-items: center; gap: 6px; transition: color 0.2s;
}
.pw-rule .material-icons-round { font-size: 14px; transition: color 0.2s; }
.pw-rule.met { color: rgba(160,208,0,0.85); }
.pw-rule.met .material-icons-round { color: #a0d000; }

/* ── OTP countdown ────────────────────────────────────────── */
.otp-countdown {
  text-align: center; margin: 12px 0;
  font-size: 13.5px; color: rgba(244,248,224,0.45);
}
.otp-countdown strong { color: var(--primary); font-size: 15px; }

/* ── Divider ──────────────────────────────────────────────── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: rgba(244,248,224,0.25); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(160,208,0,0.12);
}

/* ── Light-mode pill inputs (contact form etc.) ───────────── */
[data-theme="light"] .auth-input {
  background: rgba(13,22,0,0.04);
  border-color: rgba(13,22,0,0.14);
  color: #0d1600;
}
[data-theme="light"] .auth-input::placeholder { color: rgba(13,22,0,0.35); }
[data-theme="light"] .auth-input:focus {
  border-color: rgba(78,112,0,0.6);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 0 3px rgba(78,112,0,0.09);
}
[data-theme="light"] .auth-input-icon { color: rgba(78,112,0,0.45); }
[data-theme="light"] .auth-input-wrap:focus-within .auth-input-icon { color: #4e7000; }
[data-theme="light"] .auth-select option { background: #fff; color: #0d1600; }
[data-theme="light"] .auth-box {
  background: rgba(255,255,255,0.82);
  border-color: rgba(78,112,0,0.16);
  box-shadow: 0 20px 56px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}
[data-theme="light"] .auth-title { color: #0d1600; }
[data-theme="light"] .auth-sub { color: rgba(13,22,0,0.55); }
[data-theme="light"] .auth-checkbox-label { color: rgba(13,22,0,0.55); }
[data-theme="light"] .auth-forgot { color: rgba(13,22,0,0.50); }
[data-theme="light"] .auth-form-footer { color: rgba(13,22,0,0.45); }
[data-theme="light"] .auth-btn { color: #fff; }
[data-theme="light"] .pw-rule { color: rgba(13,22,0,0.38); }
[data-theme="light"] .pw-rule.met { color: #4e7000; }
[data-theme="light"] .pw-rule.met .material-icons-round { color: #4e7000; }
[data-theme="light"] .otp-countdown { color: rgba(13,22,0,0.45); }
[data-theme="light"] .auth-error { color: #dc2626; }
[data-theme="light"] .auth-form-footer a { color: #4e7000; }

/* ── Contact form embedded in page (not .auth-page) ──────── */
.contact-form-card .auth-input-wrap { margin-bottom: 14px; }
.contact-form-card .auth-btn { margin-top: 4px; }

/* Responsive */
@media (max-width: 480px) {
  .auth-box { padding: 36px 22px 28px; border-radius: 18px; }
  .auth-title { font-size: 24px; }
}

/* Internal linking block on category pages */
.internal-links { padding: 8px 0 28px; }
.internal-links-title { font-size: 15px; font-weight: 800; margin: 18px 0 10px; color: var(--text); }
.internal-links-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Odds, tip and VIP pills: identical size; flat bottom edge, small rounded top corners */
.vp-odds-pill, .vp-tips-pill, .vp-locked-pill {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 6px 14px;
  font-size: 13px; line-height: 1.2; font-weight: 800;
  border-radius: 8px 8px 0 0 !important;
}
.vp-odds-val { font-size: inherit; font-weight: 800; }
.vp-odds-logo { width: 22px; height: 22px; opacity: 1; border-radius: 4px; object-fit: contain; }
.vp-odds-book { height: 22px; min-width: 24px; font-size: 9px; }
@media (max-width: 640px) {
  .vp-odds-pill, .vp-tips-pill, .vp-locked-pill { min-height: 30px; padding: 5px 10px; font-size: 12px; gap: 6px; }
  .vp-odds-logo { width: 18px; height: 18px; }
  .vp-odds-book { height: 18px; min-width: 20px; font-size: 8px; }
}
@media (max-width: 400px) {
  .vp-odds-pill, .vp-tips-pill, .vp-locked-pill { min-height: 28px; padding: 4px 9px; font-size: 11.5px; }
  .vp-odds-logo { width: 16px; height: 16px; }
}

/* ── Odds pill and tip pill ALWAYS sit side by side on one row ───────────────────────────── */
/* The centre column sizes to its content; the team columns give way (names wrap) instead. */
.pred-row-vp { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important; }
.vp-center { min-width: 0; max-width: 100%; }
.vp-odds-tips { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: stretch; justify-content: center; gap: 4px; max-width: 100%; }
.vp-odds-tips > * { flex: 0 1 auto; min-width: 0; }
.vp-odds-pill { flex-shrink: 0 !important; }
.vp-tips-pill, .vp-locked-pill { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* wordmark logos keep their shape: fixed height, natural width */
.vp-odds-logo { width: auto !important; height: 22px; max-width: 84px; }
@media (max-width: 640px) { .vp-odds-logo { height: 18px; max-width: 68px; } }
@media (max-width: 480px) {
  .vp-odds-pill, .vp-tips-pill, .vp-locked-pill { min-height: 28px; padding: 4px 7px; font-size: 11px; gap: 5px; }
  .vp-odds-logo { height: 15px; max-width: 58px; }
  .vp-odds-book { height: 15px; min-width: 18px; font-size: 7.5px; }
  .vp-odds-tips { gap: 3px; }
  /* team names wrap to two lines instead of being cut to a few letters */
  .vp-team-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; line-height: 1.2; font-size: 11px; }
  .vp-team-logo, .vp-team-logo-ph { width: 22px; height: 22px; }
  .vp-team { gap: 5px; }
}

/* Script ads: fixed-size sandboxed frame, scaled down by script (pvFitAdFrames) when the column is narrower */
.ad-frame-wrap { position: relative; width: 100%; overflow: hidden; }
.ad-frame-wrap > iframe.ad-frame { display: block; border: 0; margin: 0 auto; max-width: none !important; transform-origin: 0 0; background: transparent; }
.ad-popup-code .ad-frame-wrap { margin: 0 auto; }

.footer-categories { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-categories > div { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; line-height: 1.9; }
[data-theme="light"] .footer-categories { border-top-color: rgba(13,22,0,.1); }


/* ── No blank band under the footer: the footer's own coloured bar runs to the bottom of the page ── */
.site-footer { padding-bottom: 0; }
@media (max-width: 640px) {
  /* the 60px that clears the fixed bottom menu now sits inside the footer bar instead of showing as page background */
  body:has(.site-footer) { padding-bottom: 0; }
  .footer-bottom-bar { padding-bottom: calc(16px + 60px + env(safe-area-inset-bottom)); }
}

/* VIP-only picks (confidence above the VIP line): free visitors see the pick through a blur with a prompt to join VIP */
.vip-overlay.vip-blur, [data-theme="dark"] .vip-overlay.vip-blur, [data-theme="light"] .vip-overlay.vip-blur {
  background: rgba(8, 18, 8, 0.42); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); z-index: 3;
}
.vip-overlay.vip-blur p { color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.vp-locked-pill.vp-locked-cta { background: rgba(255,208,0,0.14); color: #ffd000; gap: 6px; white-space: nowrap; }
.vp-locked-pill .vp-blur-text { filter: blur(4.5px); -webkit-user-select: none; user-select: none; pointer-events: none; opacity: .8; }
.vp-locked-pill .material-icons-round { font-size: 15px; }
.vip-detail-lock { position: relative; margin: 16px 0; border-radius: 12px; overflow: hidden; }
.vip-detail-lock .vip-detail-fake { filter: blur(9px); -webkit-user-select: none; user-select: none; pointer-events: none; opacity: .85; }
.vip-detail-lock .vip-detail-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px; background: rgba(8,18,8,.35); color: #fff; font-weight: 700; }
.vip-blurred { filter: blur(7px); -webkit-user-select: none; user-select: none; pointer-events: none; }

/* Home and predictions pages: Top Leagues, League Table and Top Scorers start right under the hero (first on tablets too) */
@media (max-width: 900px) { .page-with-sidebar.sidebar-first > .page-sidebar { order: -1; } }
