/* ============================================================
   Football Predictions — Design System
   Dark mode, glassmorphism, electric accent palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables (Premium Dark Slate & Royal Emerald) ────── */
:root {
  /* Backgrounds */
  --bg-900: #0b0f19;
  --bg-800: #111827;
  --bg-700: #1f2937;
  --bg-600: #374151;
  --bg-glass: rgba(17, 24, 39, 0.7);

  /* Accent — Premium Emerald Green */
  --accent-400: #10b981;
  --accent-500: #059669;
  --accent-600: #047857;
  --accent-glow: rgba(16, 185, 129, 0.05);

  /* Indigo (SaaS Blue highlight) */
  --violet-400: #818cf8;
  --violet-500: #6366f1;
  --violet-600: #4f46e5;
  --violet-glow: rgba(99, 102, 241, 0.05);

  /* Amber */
  --amber-400: #fbbf24;
  --amber-glow: rgba(251, 191, 36, 0.05);

  /* Status Colors (Precise & Softened) */
  --win: #10b981;
  --draw: #fbbf24;
  --loss: #f43f5e;
  --live: #ef4444;

  /* Premium High-Contrast Typography Text */
  --text-100: #f9fafb;
  --text-200: #f3f4f6;
  --text-300: #e5e7eb;
  --text-400: #9ca3af;
  --text-500: #6b7280;

  /* Thin structural borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(16, 185, 129, 0.1);

  /* Shadows (Flat, clean, human-designed - no blinding neon glow shadows) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-glow: none;

  /* Spacing */
  --sidebar-w: 250px;
  --nav-h: 64px;

  /* Transitions */
  --transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Crisp Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ── Light Theme Variables ─────────────────────────────────── */
:root[data-theme="light"] {
  /* Background */
  --bg-900: #f8fafc;
  --bg-800: #f1f5f9;
  --bg-700: #e2e8f0;
  --bg-600: #cbd5e1;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Accent — Emerald Green */
  --accent-400: #10b981;
  --accent-500: #059669;
  --accent-600: #047857;
  --accent-glow: rgba(16, 185, 129, 0.08);

  /* Indigo */
  --violet-400: #6366f1;
  --violet-500: #4f46e5;
  --violet-600: #3730a3;
  --violet-glow: rgba(99, 102, 241, 0.08);

  /* Amber */
  --amber-400: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.08);

  /* Status colors */
  --win: #10b981;
  --draw: #f59e0b;
  --loss: #f43f5e;
  --live: #ef4444;

  /* Text */
  --text-100: #0f172a;
  --text-200: #1e293b;
  --text-300: #334155;
  --text-400: #52627a;   /* assombri (~6,2:1 sur blanc) : libellés atténués lisibles AA en thème clair (M-10) */
  --text-500: #94a3b8;

  /* Borders */
  --border: rgba(0, 0, 0, 0.06);
  --border-accent: rgba(16, 185, 129, 0.12);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: none;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-900);
  color: var(--text-100);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-800); }
::-webkit-scrollbar-thumb { background: var(--bg-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-500); }

/* ── Premium Subtle Dot Grid Background ────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
:root[data-theme="light"] .bg-grid {
  background-image: radial-gradient(rgba(0, 0, 0, 0.02) 1.2px, transparent 1.2px);
}
.bg-orb {
  position: fixed; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(140px); opacity: 0.1;
  animation: orb-float 15s ease-in-out infinite;
}
.bg-orb-1 { width: 600px; height: 600px; background: var(--violet-500); top: -200px; right: -200px; }
.bg-orb-2 { width: 400px; height: 400px; background: var(--accent-500); bottom: -150px; left: -150px; animation-delay: -7.5s; }
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ── Layout ────────────────────────────────────────────────── */
#app { position: relative; z-index: 1; display: flex; min-height: 100vh; }

/* Mobile topbar — masquée sur desktop, affichée via media query */
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(11,15,25,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

/* Burger button — zone cliquable 44x44px minimum */
.burger-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-200);
  font-size: 1.25rem; cursor: pointer;
  transition: var(--transition);
}
.burger-btn:hover { border-color: var(--accent-400); color: var(--accent-400); background: var(--accent-glow); }

/* Overlay sombre derrière la sidebar mobile */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  z-index: 99;
}
.sidebar-backdrop.visible { display: block; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition-slow);
}
.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo .logo-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 0px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--bg-900), 0 0 0 3px var(--accent-500);
  margin-right: 4px;
}
.sidebar-logo .logo-icon::before {
  content: '';
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
}
.sidebar-logo .logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.5px; }
.sidebar-logo .logo-sub { font-size: 0.65rem; color: var(--text-400); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 1px; }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  /* Indicateur de scroll VISIBLE : sur un écran court (portable ~847px) plusieurs
     entrées (dont Paramètres) débordent ; une fine barre signale qu'on peut faire
     défiler. Elle n'apparaît que quand le contenu dépasse réellement la hauteur. */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.nav-section-title {
  font-size: 0.65rem; font-weight: 600; color: var(--text-400);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 8px 8px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
  font-size: 0.875rem; font-weight: 500; color: var(--text-300);
  border: 1px solid transparent;
  user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text-100); }
.nav-item.active {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent-400);
}
.nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto; background: var(--live);
  color: white; font-size: 0.65rem; font-weight: 700;
  padding: 2px 6px; border-radius: 99px;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* Language switcher */
.lang-switcher {
  padding: 16px; border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}
.lang-btn {
  flex: 1; padding: 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-300); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.lang-btn:hover { border-color: var(--accent-400); color: var(--accent-400); }
.lang-btn.active { background: var(--accent-glow); border-color: var(--border-accent); color: var(--accent-400); }

/* Main Content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1; min-height: 100vh;
  /* min-width:0 : sans lui, un enfant large (table, barre .comp-tabs en nowrap)
     force la colonne plus large que le viewport → toute la page défile
     horizontalement (bug flexbox classique). Ici, l'enfant scrolle dans sa
     propre boîte au lieu d'emporter la page. */
  min-width: 0;
  display: flex; flex-direction: column;
}

/* Top bar */
.topbar {
  height: var(--nav-h); padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg-glass); backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-input {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 14px; color: var(--text-100);
  font-size: 0.85rem; outline: none; transition: var(--transition);
  width: 200px;
}
.user-input:focus { border-color: var(--accent-400); background: rgba(0,255,135,0.05); }
.user-input::placeholder { color: var(--text-400); }

/* Content area */
.content-area { flex: 1; padding: 28px; overflow-y: auto; min-width: 0; }

/* ── Cards ─────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}
.glass-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── WC2026 Coupe du Monde ──────────────────────────────────── */
.wc-main-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-100);
}
.wc-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.wc-group-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.wc-group-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.15);
}
.wc-group-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  font-weight: 700;
}
.wc-group-letter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.wc-group-count {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 99px;
}
.wc-group-body {
  padding: 8px 12px 12px;
}
.wc-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  border-radius: var(--radius-sm);
}
.wc-match-row:last-child { border-bottom: none; }
.wc-match-row:hover { background: rgba(255,255,255,0.04); }
.wc-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.wc-team-home { justify-content: flex-end; text-align: right; }
.wc-team-away { justify-content: flex-start; text-align: left; }
.wc-team-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-200);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.wc-crest {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}
.wc-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 70px;
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.wc-score-vs {
  color: var(--text-400);
  background: rgba(255,255,255,0.03);
}
.wc-score-final {
  color: var(--accent-400);
  background: var(--accent-glow);
}
.wc-score-live {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  animation: pulse-live 1.5s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}
.wc-match-date {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-400);
  font-family: 'Inter', sans-serif;
}
.wc-match-status {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wc-groups-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.wc-group-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  padding: 14px;
}
.wc-match-card {
  background: var(--bg-800);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: var(--transition);
}
.wc-match-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.wc-match-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.wc-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.wc-crest-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-400);
  flex-shrink: 0;
}
/* Prediction section */
.wc-pred-section {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}
.wc-pred-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.wc-pred-label {
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
}
.wc-pred-home { text-align: right; }
.wc-pred-away { text-align: left; color: var(--text-400); }
.wc-pred-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  display: flex;
  overflow: hidden;
  gap: 1px;
}
.wc-pred-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.wc-pred-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.wc-pred-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: var(--text-300);
  border: 1px solid var(--border);
}
.wc-pred-score-tag {
  background: var(--accent-glow);
  color: var(--accent-400);
  border-color: var(--border-accent);
}


.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.stat-card .stat-label { font-size: 0.75rem; font-weight: 600; color: var(--text-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.stat-card .stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-card .stat-sub { font-size: 0.75rem; color: var(--text-400); margin-top: 4px; }
.stat-accent { color: var(--accent-400); }
.stat-violet { color: var(--violet-400); }
.stat-amber { color: var(--amber-400); }
.stat-live { color: var(--live); }

/* ── Match Card ─────────────────────────────────────────────── */
.match-card {
  background: var(--bg-glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 10px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
  transition: var(--transition); cursor: pointer;
}
.match-card:hover { border-color: rgba(255,255,255,0.15); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.match-card.live { border-color: rgba(239, 68, 68, 0.3); animation: live-pulse 3s ease-in-out infinite; }
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1); }
}

.match-goals-summary {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-300);
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  margin-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-goals-summary .goals-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-info { display: flex; align-items: center; gap: 10px; }
.team-info.away { flex-direction: row-reverse; text-align: right; }
.team-crest { width: 32px; height: 32px; object-fit: contain; }
.team-crest-placeholder { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-600); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.team-name { font-weight: 600; font-size: 0.9rem; }
.team-name-short { display: none; }

.match-center { text-align: center; min-width: 90px; }
.match-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 800; letter-spacing: 0.05em;
}
.match-time { font-size: 0.7rem; color: var(--text-400); margin-top: 2px; }
.match-status-badge {
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; display: inline-block;
}
.status-live { background: rgba(239,68,68,0.2); color: var(--live); }
.status-scheduled { background: rgba(100,116,139,0.2); color: var(--text-300); }
.status-finished { background: rgba(71,85,105,0.2); color: var(--text-400); }
.status-postponed { background: rgba(251,191,36,0.15); color: var(--amber-400); }

/* Badges de validation (Backtesting) */
.badge-win { background: rgba(0, 240, 135, 0.15); color: var(--accent-400); border: 1px solid rgba(0, 240, 135, 0.3); }
.badge-loss { background: rgba(239, 68, 68, 0.15); color: var(--loss); border: 1px solid rgba(239, 68, 68, 0.3); }


/* ── Prediction Bar ─────────────────────────────────────────── */
.prediction-bar-container { margin-top: 10px; }
.prediction-labels {
  display: flex; justify-content: space-between;
  font-size: 0.7rem; color: var(--text-400); margin-bottom: 4px;
}
.prediction-bar {
  height: 8px; border-radius: 99px; overflow: hidden;
  background: rgba(255,255,255,0.06); display: flex;
}
.bar-home { background: linear-gradient(90deg, var(--accent-400), var(--accent-600)); border-radius: 99px 0 0 99px; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.bar-draw { background: var(--amber-400); transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s; }
.bar-away { background: linear-gradient(90deg, var(--violet-600), var(--violet-400)); border-radius: 0 99px 99px 0; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s; }
.prediction-probs {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; font-weight: 700; margin-top: 4px;
}
.prob-home { color: var(--accent-400); }
.prob-draw { color: var(--amber-400); }
.prob-away { color: var(--violet-400); }

/* Market pills */
.markets { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.market-pill {
  font-size: 0.65rem; font-weight: 600; padding: 3px 8px;
  border-radius: 99px; border: 1px solid var(--border);
  color: var(--text-300); background: rgba(255,255,255,0.03);
}
.market-pill.over { border-color: rgba(0,255,135,0.3); color: var(--accent-400); }
.market-pill.btts { border-color: rgba(167,139,250,0.3); color: var(--violet-400); }
.market-pill.under { border-color: rgba(100,116,139,0.3); color: var(--text-300); }

/* ── Scores Detail Modal ────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-800); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px; max-width: 520px; width: 100%;
  transform: scale(0.95) translateY(20px); transition: var(--transition);
  max-height: 80vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  color: var(--text-300); font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: var(--text-100); }
.score-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
}
.score-item {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 8px; text-align: center;
  transition: var(--transition);
}
.score-item:hover { border-color: var(--border-accent); }
.score-item .score-val { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; }
.score-item .score-prob { font-size: 0.7rem; color: var(--accent-400); margin-top: 2px; }

/* ── Standings Table ────────────────────────────────────────── */
.standings-table { width: 100%; border-collapse: collapse; }
.standings-table th {
  font-size: 0.7rem; font-weight: 700; color: var(--text-400);
  text-transform: uppercase; letter-spacing: 0.08em;
  text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.standings-table th:first-child, .standings-table th:nth-child(2) { text-align: left; }
.standings-table td { padding: 10px 10px; font-size: 0.85rem; text-align: right; border-bottom: 1px solid var(--border); }
.standings-table td:first-child { text-align: left; color: var(--text-400); font-weight: 600; width: 28px; }
.standings-table td:nth-child(2) { text-align: left; }
.standings-table tr:hover td { background: rgba(255,255,255,0.03); }
.standings-table .form-cell { display: flex; gap: 3px; justify-content: flex-end; }
.form-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.form-W { background: var(--win); }
.form-D { background: var(--draw); }
.form-L { background: var(--loss); }
.pts { font-weight: 800; color: var(--accent-400); }
.cl-zone { background: rgba(0,255,135,0.05); }
.el-zone { background: rgba(251,191,36,0.03); }
.rel-zone { background: rgba(248,113,113,0.05); }

/* ── Leaderboard ────────────────────────────────────────────── */
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; }
.lb-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px;
  transition: var(--transition);
}
.lb-item:hover { background: rgba(255,255,255,0.05); }
.lb-rank {
  font-family: 'Space Grotesk', sans-serif; font-weight: 800;
  font-size: 1.1rem; width: 32px; text-align: center;
}
.lb-rank.gold { color: #fbbf24; }
.lb-rank.silver { color: #94a3b8; }
.lb-rank.bronze { color: #b45309; }
.lb-user { flex: 1; }
.lb-username { font-weight: 600; }
.lb-sub { font-size: 0.75rem; color: var(--text-400); }
.lb-points { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--accent-400); }
.lb-accuracy { font-size: 0.8rem; color: var(--text-300); text-align: right; }

/* ── Pronostic Submit ───────────────────────────────────────── */
.pick-buttons { display: flex; gap: 8px; margin-top: 12px; }
.pick-btn {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); color: var(--text-300);
}
.pick-btn:hover { background: rgba(255,255,255,0.05); }
.pick-btn.pick-home:hover, .pick-btn.pick-home.selected { border-color: var(--accent-400); color: var(--accent-400); background: var(--accent-glow); }
.pick-btn.pick-draw:hover, .pick-btn.pick-draw.selected { border-color: var(--amber-400); color: var(--amber-400); background: var(--amber-glow); }
.pick-btn.pick-away:hover, .pick-btn.pick-away.selected { border-color: var(--violet-400); color: var(--violet-400); background: var(--violet-glow); }

/* ── Competition Tabs ───────────────────────────────────────── */
.comp-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.comp-tab {
  padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border);
  background: transparent; color: var(--text-300); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.comp-tab:hover { border-color: rgba(255,255,255,0.2); color: var(--text-100); }
.comp-tab.active { border-color: var(--border-accent); color: var(--accent-400); background: var(--accent-glow); }

/* ── Section Grid ───────────────────────────────────────────── */
.section-grid { display: grid; gap: 20px; }
.section-grid.two-col { grid-template-columns: 1fr 1fr; }
.section-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }
.section-grid.main-side { grid-template-columns: 1fr 320px; }
@media (max-width: 1200px) {
  .section-grid.main-side { grid-template-columns: 1fr; }
  .section-grid.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  #app { flex-direction: column; }

  /* Topbar mobile fixée en haut */
  .mobile-topbar {
    display: flex !important;
    position: fixed; top: 0; left: 0; right: 0;
    height: 60px; z-index: 1000;
  }

  /* Sidebar cachée à gauche par défaut */
  .sidebar {
    transform: translateX(-250px);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
    z-index: 1001;
  }
  .sidebar.open, .sidebar.sidebar-open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Contenu principal avec espace topbar */
  .main-content { margin-left: 0 !important; padding-top: 68px; }

  /* Grilles passent en 1 colonne */
  .section-grid.three-col { grid-template-columns: 1fr; }
  .section-grid.two-col   { grid-template-columns: 1fr; }
  .section-grid.main-side { grid-template-columns: 1fr; }

  /* Cards plus compactes sur mobile */
  .glass-card { padding: 14px; }
  .card-header { padding: 14px 16px; }
}

/* ── Loaders ────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-700) 25%, var(--bg-600) 50%, var(--bg-700) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.loader {
  display: flex; align-items: center; justify-content: center;
  padding: 48px; color: var(--text-400);
  flex-direction: column; gap: 12px;
}
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--accent-400); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── XG Display ─────────────────────────────────────────────── */
.xg-display { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.xg-team { flex: 1; }
.xg-label { font-size: 0.7rem; color: var(--text-400); }
.xg-value {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 800;
  color: var(--accent-400);
}
.xg-bar {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-400), var(--accent-600));
  margin-top: 4px; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.xg-team.away .xg-value { color: var(--violet-400); }
.xg-team.away .xg-bar { background: linear-gradient(90deg, var(--violet-600), var(--violet-400)); }
.xg-vs { font-size: 0.8rem; color: var(--text-400); font-weight: 600; }

/* ── Confidence Ring ────────────────────────────────────────── */
.confidence-ring {
  width: 80px; height: 80px; margin: 0 auto;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 800;
  position: relative;
}


/* ── Empty states ───────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 20px; color: var(--text-400);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: var(--bg-900);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline {
  border-color: var(--border); color: var(--text-200); background: transparent;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }

/* ── Live indicator ─────────────────────────────────────────── */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  display: inline-block; margin-right: 4px;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

/* ── Error banner ───────────────────────────────────────────── */
.api-key-banner {
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3);
  border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px; font-size: 0.875rem;
}
.api-key-banner a { color: var(--amber-400); }

/* ── Responsive tweaks ──────────────────────────────────────── */
@media (max-width: 640px) {
  .content-area { padding: 16px; }
  .topbar { padding: 0 16px; }
  .team-name { display: none; }
  .team-name-short { display: block; font-weight: 600; font-size: 0.85rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Alerts & Value Betting Premium Styles ───────────────────── */
.alerts-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-notice-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.legal-badge {
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-content h4 {
  color: #ef4444;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 4px 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.legal-content p {
  margin: 0;
  color: var(--text-200);
  font-size: 0.82rem;
  line-height: 1.4;
}

.legal-content a {
  color: #ef4444;
  text-decoration: underline;
  font-weight: 600;
}

.alerts-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .alerts-grid {
    grid-template-columns: 1fr;
  }
}

.glassmorphic-card {
  background: rgba(26, 29, 39, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.header-icon {
  font-size: 1.3rem;
}

.card-subtitle {
  color: var(--text-400);
  font-size: 0.825rem;
  margin-top: 0;
  margin-bottom: 24px;
}

.alerts-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-200);
}

.form-control {
  background: var(--bg-700);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-400);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.1);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-200);
}

.slider-value {
  color: var(--accent-400);
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.form-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  outline: none;
}

.form-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-400);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.4);
  transition: var(--transition);
}

.form-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.fav-star {
  cursor: pointer;
  color: var(--text-400);
  font-size: 1.2em;
  transition: var(--transition);
  margin-left: 4px;
}
.fav-star::before {
  content: "☆";
}
.fav-star:hover {
  color: var(--amber-400);
  transform: scale(1.2);
}
.fav-star.active {
  color: var(--amber-400);
  text-shadow: 0 0 8px var(--amber-glow);
}
.fav-star.active::before {
  content: "★";
}

.input-helper {
  color: var(--text-400);
  font-size: 0.725rem;
  margin: 0;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.telegram-wizard {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-400);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.775rem;
  color: var(--text-200);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.wizard-step {
  margin: 0;
}

.wizard-step a {
  color: var(--accent-400);
  text-decoration: none;
  font-weight: 600;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.form-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-400);
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-glow {
  box-shadow: 0 0 15px rgba(0, 255, 135, 0.2);
}

.btn-glow:hover {
  box-shadow: 0 0 25px rgba(0, 255, 135, 0.35);
}

.disclaimer-card {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  padding: 20px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-400);
}

.disclaimer-card h4 {
  color: var(--text-200);
  font-size: 0.8rem;
  margin: 0 0 8px 0;
}

.disclaimer-card p {
  margin: 0 0 8px 0;
}

.disclaimer-card p:last-child {
  margin-bottom: 0;
}

/* ── Timeline Styles ────────────────────────────────────────── */
.alerts-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px;
  margin-top: 16px;
}

.alerts-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge-point {
  position: absolute;
  left: -20px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-900);
  z-index: 2;
}

.point-high {
  background: var(--accent-400);
  box-shadow: 0 0 8px var(--accent-400);
}

.point-normal {
  background: var(--violet-400);
  box-shadow: 0 0 8px var(--violet-400);
}

.timeline-card {
  background: var(--bg-800);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.log-card-high-value {
  border-color: rgba(0, 255, 135, 0.2);
  background: linear-gradient(135deg, var(--bg-800) 0%, rgba(0, 255, 135, 0.02) 100%);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.timeline-comp-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-400);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.timeline-time {
  font-size: 0.725rem;
  color: var(--text-400);
}

.timeline-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.team-mini {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crest-mini {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.vs {
  font-size: 0.75rem;
  color: var(--text-400);
  font-weight: 500;
}

.timeline-prediction {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.timeline-pred-market {
  font-size: 0.8rem;
  color: var(--text-200);
  margin-bottom: 10px;
}

.timeline-metrics {
  display: flex;
  gap: 20px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-label {
  font-size: 0.65rem;
  color: var(--text-400);
  text-transform: uppercase;
}

.m-val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1rem;
}

.bg-glow {
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.badge-high {
  color: var(--accent-400);
  text-shadow: 0 0 5px rgba(0, 255, 135, 0.4);
}

.badge-normal {
  color: var(--violet-400);
  text-shadow: 0 0 5px rgba(167, 139, 250, 0.4);
}

.empty-timeline {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-400);
}

.empty-timeline .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-timeline p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-200);
  margin: 0 0 6px 0;
}

.empty-timeline span {
  font-size: 0.75rem;
  max-width: 250px;
  display: inline-block;
  line-height: 1.4;
}

/* ── Value Bet Badges for Dashboard Cards ──────────────────── */
.card-value-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 255, 135, 0.12);
  border: 1px solid rgba(0, 255, 135, 0.35);
  color: var(--accent-400);
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.15);
  z-index: 5;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   LEGAL COMPLIANCE — Modal de Consentement ANJ
   ═══════════════════════════════════════════════════════════ */

.legal-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6, 11, 20, 0.97);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: legal-fade-in 0.4s ease-out;
}
.legal-modal-overlay.fade-out { animation: legal-fade-out 0.5s ease-in forwards; }
@keyframes legal-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes legal-fade-out { from { opacity: 1; } to { opacity: 0; } }

.legal-modal-box {
  width: 100%; max-width: 620px;
  background: linear-gradient(145deg, #0d1525, #111d35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,255,135,0.08);
  animation: legal-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes legal-slide-up {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.legal-modal-header {
  padding: 24px 28px 20px;
  background: linear-gradient(135deg, rgba(0,255,135,0.08), rgba(124,58,237,0.08));
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.legal-modal-logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--accent-400), var(--violet-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.legal-modal-badge {
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4);
  color: #f87171; font-weight: 700; font-size: 0.8rem; padding: 5px 12px; border-radius: 99px;
  animation: pulse-warning 2s ease-in-out infinite;
}
@keyframes pulse-warning {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0.12); }
}
.legal-modal-body { padding: 24px 28px; max-height: 55vh; overflow-y: auto; }
/* La boîte de consentement a un fond SOMBRE FIXE dans les deux thèmes. En thème
   clair, les tokens --text-* deviennent sombres → titre/texte invisibles (1,1:1).
   On force un texte clair à l'intérieur de la boîte, quel que soit le thème. */
:root[data-theme="light"] .legal-modal-title,
:root[data-theme="light"] .legal-modal-section h3,
:root[data-theme="light"] .legal-modal-section strong { color: #f9fafb !important; }
:root[data-theme="light"] .legal-modal-section p,
:root[data-theme="light"] .legal-modal-body { color: #cbd5e1 !important; }
.legal-modal-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700;
  color: var(--text-100); margin-bottom: 20px;
}
.legal-modal-section {
  margin-bottom: 14px; padding: 14px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.legal-modal-section h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-200); margin-bottom: 7px; }
.legal-modal-section p { font-size: 0.82rem; color: var(--text-300); line-height: 1.6; }
.legal-modal-section strong { color: var(--text-100); }
.legal-modal-risk {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.2);
}
.legal-risk-icon { font-size: 1.5rem; flex-shrink: 0; }
.legal-modal-anj { background: rgba(0,255,135,0.04); border-color: rgba(0,255,135,0.15); }
.legal-anj-contact { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.legal-phone-btn, .legal-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.83rem; text-decoration: none; transition: var(--transition);
}
.legal-phone-btn { background: rgba(0,255,135,0.12); border: 1px solid rgba(0,255,135,0.3); color: var(--accent-400); }
.legal-phone-btn:hover { background: rgba(0,255,135,0.2); box-shadow: 0 0 15px rgba(0,255,135,0.2); }
.legal-link-btn { background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.25); color: var(--violet-400); }
.legal-link-btn:hover { background: rgba(167,139,250,0.2); box-shadow: 0 0 15px rgba(167,139,250,0.2); }
.legal-modal-footer {
  padding: 20px 28px 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
}
.legal-checkbox-label {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; font-size: 0.85rem; color: var(--text-200); line-height: 1.5;
}
.legal-checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; accent-color: var(--accent-400); margin-top: 2px;
}
.legal-accept-btn { width: 100%; padding: 14px 24px; font-size: 1rem; font-weight: 700; }
.legal-accept-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none !important; }

/* ── Sidebar Legal Footer ─────────────────────────────────── */
.legal-sidebar-footer {
  padding: 12px 14px; border-top: 1px solid var(--border);
  background: rgba(239,68,68,0.04);
  font-size: 0.68rem; text-align: center; color: var(--text-400); line-height: 1.5;
}
.legal-footer-18 { font-weight: 800; font-size: 0.78rem; color: #f87171; margin-bottom: 3px; }
.legal-footer-line a { color: var(--text-300); text-decoration: none; transition: var(--transition); }
.legal-footer-line a:hover { color: var(--accent-400); }
.legal-footer-disclaimer { margin-top: 5px; font-size: 0.63rem; color: var(--text-400); font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px; z-index: 9998;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 600;
  background: var(--bg-700); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateX(120%); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); max-width: 340px;
}
.toast.toast-show { transform: translateX(0); opacity: 1; }
.toast-success { border-color: rgba(0,255,135,0.3); background: rgba(0,255,135,0.07); }
.toast-error   { border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.07); }
.toast-warning { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.07); }
.toast-info    { border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.07); }

/* ═══════════════════════════════════════════════════════════
   VALUE BETTING — Opportunities Panel
   ═══════════════════════════════════════════════════════════ */
.vb-card {
  background: var(--bg-800); border: 1px solid rgba(0,255,135,0.15);
  border-radius: var(--radius-md); padding: 16px;
  position: relative; overflow: hidden; transition: var(--transition); margin-bottom: 12px;
}
.vb-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-400), var(--violet-400));
}
.vb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,255,135,0.1); border-color: rgba(0,255,135,0.25); }
.vb-card-ultra { border-color: rgba(251,191,36,0.25); background: linear-gradient(135deg, var(--bg-800), rgba(251,191,36,0.04)); }
.vb-card-ultra::before { background: linear-gradient(90deg, #fbbf24, #f97316); }
.vb-ev-badge {
  position: absolute; top: 12px; right: 12px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 900; font-size: 0.95rem;
  color: var(--accent-400); text-shadow: 0 0 10px rgba(0,255,135,0.4);
}
.vb-ev-badge.badge-ultra { color: #fbbf24; text-shadow: 0 0 10px rgba(251,191,36,0.4); }
.vb-teams { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; color: var(--text-100); }
.vb-teams .vs { font-size: 0.75rem; color: var(--text-400); }
.vb-metrics { display: flex; gap: 16px; flex-wrap: wrap; }
.vb-metric { display: flex; flex-direction: column; gap: 3px; }
.vb-metric-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-400); }
.vb-metric-value { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem; }
.vb-kelly { color: #fbbf24; }
.vb-bet-type {
  display: inline-block; background: rgba(0,255,135,0.1); border: 1px solid rgba(0,255,135,0.2);
  color: var(--accent-400); font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px;
}
.vb-comp-tag { font-size: 0.65rem; color: var(--text-400); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.odds-input-row {
  display: flex; gap: 8px; align-items: flex-end; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.odds-input-group { flex: 1; }
.odds-input-group label {
  display: block; font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-400); margin-bottom: 4px; font-weight: 600;
}
.odds-input {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-100); padding: 7px 10px;
  font-size: 0.85rem; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  outline: none; transition: var(--transition); text-align: center;
}
.odds-input:focus { border-color: var(--accent-400); background: rgba(0,255,135,0.04); }
.odds-submit-btn {
  padding: 7px 14px; border-radius: var(--radius-sm);
  background: var(--accent-glow); border: 1px solid var(--border-accent);
  color: var(--accent-400); font-weight: 700; font-size: 0.8rem;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.odds-submit-btn:hover { background: rgba(0,255,135,0.2); box-shadow: 0 0 15px rgba(0,255,135,0.2); }
.scan-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.scan-pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent-400);
  box-shadow: 0 0 0 0 rgba(0,255,135,0.4); animation: scan-pulse 2s ease-out infinite;
}
@keyframes scan-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,255,135,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(0,255,135,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,135,0); }
}
.scan-title { font-weight: 700; font-size: 0.9rem; color: var(--text-100); }
.scan-sub { font-size: 0.75rem; color: var(--text-400); margin-top: 2px; }
.scan-count-badge {
  margin-left: auto; background: var(--accent-glow); border: 1px solid var(--border-accent);
  color: var(--accent-400); font-weight: 800; font-size: 0.75rem; padding: 4px 10px; border-radius: 99px;
}
.legal-inline-notice {
  background: linear-gradient(135deg, rgba(239,68,68,0.06), rgba(124,58,237,0.06));
  border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius-md);
  padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 20px; font-size: 0.8rem; color: var(--text-300); line-height: 1.6;
}
.legal-inline-notice strong { color: var(--text-100); }
.legal-inline-notice a { color: var(--accent-400); text-decoration: none; }
.legal-inline-notice a:hover { text-decoration: underline; }
.legal-inline-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ============================================================
   Ergonomics & Visual Overhaul Custom Additions
   ============================================================ */

/* Page content area animation */
#content-area > * {
  /* Animation d'entrée raccourcie (0.4s→0.22s) + backwards : le contenu ne reste
     plus à faible opacité aussi longtemps après navigation (finding « vue fantôme »). */
  animation: route-fade-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes route-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Internal Tabs Styles */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.modal-tab {
  background: transparent;
  border: none;
  color: var(--text-400);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 4px 12px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  outline: none;
}

.modal-tab:hover {
  color: var(--text-200);
}

.modal-tab.active {
  color: var(--accent-400);
  border-color: var(--accent-400);
}

.modal-tab-content {
  display: none;
  animation: tab-switch-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-tab-content.active {
  display: block;
}

@keyframes tab-switch-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glow live & high conf cards */
.card-glow-live {
  border-color: rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.05);
}

.card-glow-high-conf {
  border-color: var(--border-accent) !important;
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.04);
}

/* Custom Scrollbar for ABS & H2H */
.scrollable-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.scrollable-list::-webkit-scrollbar {
  width: 4px;
}

.scrollable-list::-webkit-scrollbar-track {
  background: transparent;
}

.scrollable-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}

.scrollable-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-500);
}

/* Stepper Panel */
.stepper-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-300);
  flex-shrink: 0;
  transition: var(--transition);
}

.step-card.done .step-number {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent-400);
}

.step-card.active .step-number {
  background: var(--violet-glow);
  border-color: var(--violet-400);
  color: var(--violet-400);
}

.step-text {
  font-size: 0.85rem;
  color: var(--text-300);
}

.step-card.done .step-text {
  color: var(--text-200);
}

/* ═══════════════════════════════════════════════════════════════
   LEADERBOARD — Premium Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Animations ────────────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes podiumRise {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmerGlow {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pointsPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ── Leaderboard Tabs ──────────────────────────────────────── */

.lb-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lb-tabs::-webkit-scrollbar {
  display: none;
}

.lb-tab {
  background: transparent;
  border: none;
  color: var(--text-400);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px 12px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  outline: none;
  position: relative;
}

.lb-tab:hover {
  color: var(--text-200);
  background: rgba(255, 255, 255, 0.02);
}

.lb-tab.active {
  color: var(--accent-400);
  border-bottom-color: var(--accent-400);
}

.lb-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent-400);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.4);
}

/* ── Leaderboard Podium ────────────────────────────────────── */

.lb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  padding: 32px 16px 24px;
  margin-bottom: 24px;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px 16px;
  min-width: 110px;
  transition: var(--transition);
  animation: podiumRise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.podium-item:nth-child(1) { animation-delay: 0.15s; }
.podium-item:nth-child(2) { animation-delay: 0s; }
.podium-item:nth-child(3) { animation-delay: 0.3s; }

.podium-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.podium-item.first {
  padding: 28px 24px 20px;
  min-width: 130px;
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(160deg, var(--bg-glass), rgba(251, 191, 36, 0.06));
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.08), var(--shadow-md);
}

.podium-item.first:hover {
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.14), var(--shadow-lg);
}

.podium-item.second {
  border-color: rgba(203, 213, 225, 0.15);
}

.podium-item.third {
  border-color: rgba(205, 127, 50, 0.2);
}

.podium-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-100);
  background: var(--bg-700);
  border: 2px solid var(--border);
  position: relative;
  flex-shrink: 0;
}

.podium-item.first .podium-avatar {
  width: 60px;
  height: 60px;
  font-size: 1.3rem;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-700), var(--bg-700)),
                     linear-gradient(135deg, #fbbf24, #f97316, #fbbf24);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.2);
}

.podium-item.second .podium-avatar {
  border-color: rgba(203, 213, 225, 0.35);
  background-image: linear-gradient(var(--bg-700), var(--bg-700)),
                     linear-gradient(135deg, #cbd5e1, #94a3b8, #cbd5e1);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.podium-item.third .podium-avatar {
  border-color: rgba(205, 127, 50, 0.35);
  background-image: linear-gradient(var(--bg-700), var(--bg-700)),
                     linear-gradient(135deg, #cd7f32, #b87333, #cd7f32);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.podium-item .lb-username {
  font-size: 0.9rem;
}

.podium-item .lb-points {
  font-size: 1.3rem;
}

.podium-item.first .lb-points {
  font-size: 1.6rem;
}

/* ── Leaderboard Header (table-like grid header) ───────────── */

.lb-header {
  display: grid;
  grid-template-columns: 54px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 0 20px 10px;
  margin-bottom: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-400);
}

/* ── Leaderboard List ──────────────────────────────────────── */

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Leaderboard Item ──────────────────────────────────────── */

.lb-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  position: relative;
}

/* Stagger list entrance */
.lb-item:nth-child(1)  { animation-delay: 0.03s; }
.lb-item:nth-child(2)  { animation-delay: 0.06s; }
.lb-item:nth-child(3)  { animation-delay: 0.09s; }
.lb-item:nth-child(4)  { animation-delay: 0.12s; }
.lb-item:nth-child(5)  { animation-delay: 0.15s; }
.lb-item:nth-child(6)  { animation-delay: 0.18s; }
.lb-item:nth-child(7)  { animation-delay: 0.21s; }
.lb-item:nth-child(8)  { animation-delay: 0.24s; }
.lb-item:nth-child(9)  { animation-delay: 0.27s; }
.lb-item:nth-child(10) { animation-delay: 0.30s; }

.lb-item:hover {
  background: rgba(13, 21, 38, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.lb-item.is-me {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--bg-glass), rgba(0, 255, 135, 0.04));
  box-shadow: inset 0 0 0 1px rgba(0, 255, 135, 0.06), 0 0 20px rgba(0, 255, 135, 0.04);
}

.lb-item.is-me::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent-400);
  box-shadow: 0 0 8px rgba(0, 255, 135, 0.4);
}

/* ── Leaderboard Rank Badge ────────────────────────────────── */

.lb-rank {
  min-width: 42px;
  min-height: 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-300);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: var(--transition);
}

.lb-rank.gold {
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  color: #1a1207;
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.lb-rank.silver {
  background: linear-gradient(145deg, #cbd5e1, #94a3b8);
  color: #1e293b;
  border-color: rgba(203, 213, 225, 0.5);
  box-shadow: 0 0 14px rgba(203, 213, 225, 0.15);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.lb-rank.bronze {
  background: linear-gradient(145deg, #cd7f32, #b87333);
  color: #1a1207;
  border-color: rgba(205, 127, 50, 0.5);
  box-shadow: 0 0 14px rgba(205, 127, 50, 0.15);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

/* ── Leaderboard User Info ─────────────────────────────────── */

.lb-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.lb-username {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-sub {
  font-size: 0.75rem;
  color: var(--text-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Leaderboard Points ────────────────────────────────────── */

.lb-points {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-400);
  text-shadow: 0 0 12px rgba(0, 255, 135, 0.3);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* ── Leaderboard Accuracy ──────────────────────────────────── */

.lb-accuracy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-300);
  white-space: nowrap;
}

/* ── Pick Buttons ──────────────────────────────────────────── */

.pick-buttons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.pick-btn {
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-300);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  white-space: nowrap;
}

.pick-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.pick-btn:active {
  transform: translateY(0) scale(0.97);
}

.pick-btn.pick-home:hover {
  background: rgba(0, 255, 135, 0.1);
  border-color: rgba(0, 255, 135, 0.3);
  color: var(--accent-400);
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.1);
}

.pick-btn.pick-draw:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--amber-400);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.1);
}

.pick-btn.pick-away:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--violet-400);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.1);
}

.pick-btn.selected {
  background: rgba(0, 255, 135, 0.15);
  border-color: var(--border-accent);
  color: var(--accent-400);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(0, 255, 135, 0.12);
}

.pick-btn.selected.pick-draw {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--amber-400);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.12);
}

.pick-btn.selected.pick-away {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
  color: var(--violet-400);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.12);
}

/* ── Upcoming Matches Section ──────────────────────────────── */

.lb-upcoming {
  margin-top: 28px;
}

.lb-upcoming .section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-100);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-upcoming .match-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: var(--transition);
}

.lb-upcoming .match-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-sm);
}

/* ── My Stats Panel ────────────────────────────────────────── */

.lb-my-stats {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.lb-my-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-400), var(--violet-400));
  opacity: 0.7;
}

.lb-my-stats .stats-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-100);
  margin-bottom: 20px;
}

.lb-my-stats .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
}

.lb-my-stats .stat-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.lb-my-stats .stat-cell:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.lb-my-stats .stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-400);
  font-weight: 600;
}

.lb-my-stats .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-100);
}

.lb-my-stats .stat-value.accent {
  color: var(--accent-400);
  text-shadow: 0 0 10px rgba(0, 255, 135, 0.25);
}

/* ── Points Badge ──────────────────────────────────────────── */

.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  color: var(--accent-400);
  white-space: nowrap;
}

.points-badge.negative {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
  color: #f87171;
}

/* ── Streak Badge ──────────────────────────────────────────── */

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-400), #06b6d4);
  box-shadow: 0 2px 10px rgba(0, 255, 135, 0.2);
  white-space: nowrap;
}

.streak-badge.hot {
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25);
}

.streak-badge.cold {
  background: linear-gradient(135deg, #64748b, #475569);
  box-shadow: none;
}

/* ── History Item ──────────────────────────────────────────── */

.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  animation: fadeInUp 0.35s ease backwards;
}

.history-item:hover {
  background: rgba(13, 21, 38, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.history-item.correct {
  border-left: 3px solid var(--win);
  background: linear-gradient(90deg, rgba(0, 255, 135, 0.03), transparent);
}

.history-item.incorrect {
  border-left: 3px solid var(--loss);
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.03), transparent);
}

.history-item.draw-result {
  border-left: 3px solid var(--draw);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.03), transparent);
}

.history-item .match-info {
  flex: 1;
  min-width: 0;
}

.history-item .match-teams {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item .match-meta {
  font-size: 0.72rem;
  color: var(--text-400);
  margin-top: 2px;
}

.history-item .pick-label {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.history-item .pick-label.win {
  background: rgba(0, 255, 135, 0.1);
  color: var(--win);
  border: 1px solid rgba(0, 255, 135, 0.2);
}

.history-item .pick-label.loss {
  background: rgba(248, 113, 113, 0.1);
  color: var(--loss);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.history-item .pick-label.draw-pick {
  background: rgba(251, 191, 36, 0.1);
  color: var(--draw);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.history-item .result-score {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-200);
  min-width: 44px;
  text-align: center;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .lb-podium {
    gap: 10px;
    padding: 20px 8px 16px;
  }

  .podium-item {
    padding: 14px 10px 12px;
    min-width: 85px;
  }

  .podium-item.first {
    padding: 18px 14px 14px;
    min-width: 100px;
  }

  .podium-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .podium-item.first .podium-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .lb-item {
    padding: 12px 14px;
    gap: 10px;
  }

  .lb-rank {
    min-width: 36px;
    min-height: 36px;
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .lb-points {
    font-size: 1rem;
  }

  .lb-header {
    grid-template-columns: 46px 1fr auto;
    padding: 0 14px 8px;
    font-size: 0.65rem;
  }

  .lb-header > *:nth-child(4) {
    display: none;
  }

  .lb-my-stats .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pick-buttons {
    gap: 4px;
  }

  .pick-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .history-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .lb-tabs {
    gap: 2px;
  }

  .lb-tab {
    padding: 8px 12px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .lb-podium {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .podium-item,
  .podium-item.first {
    flex-direction: row;
    width: 100%;
    min-width: unset;
    padding: 12px 16px;
    gap: 12px;
  }

  .podium-item .lb-user {
    flex: 1;
  }

  .podium-item .lb-points {
    font-size: 1.1rem;
  }

  .podium-item.first .lb-points {
    font-size: 1.2rem;
  }

  .lb-my-stats {
    padding: 16px;
  }

  .lb-my-stats .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* ── Light Theme Overrides ─────────────────────────────────── */

[data-theme='light'] .lb-item {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .lb-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .lb-item.is-me {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(0, 255, 135, 0.06));
  border-color: rgba(0, 200, 100, 0.3);
}

[data-theme='light'] .lb-rank {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme='light'] .lb-username {
  color: #1e293b;
}

[data-theme='light'] .lb-sub {
  color: #94a3b8;
}

[data-theme='light'] .lb-points {
  color: #059669;
  text-shadow: none;
}

[data-theme='light'] .lb-accuracy {
  color: #64748b;
}

[data-theme='light'] .podium-item {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .podium-item.first {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(251, 191, 36, 0.08));
  border-color: rgba(251, 191, 36, 0.3);
}

[data-theme='light'] .podium-avatar {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1e293b;
}

[data-theme='light'] .pick-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme='light'] .pick-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme='light'] .lb-my-stats {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .lb-my-stats .stat-cell {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme='light'] .lb-my-stats .stat-value {
  color: #1e293b;
}

[data-theme='light'] .lb-my-stats .stat-value.accent {
  color: #059669;
  text-shadow: none;
}

[data-theme='light'] .history-item {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .history-item:hover {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme='light'] .history-item.correct {
  background: linear-gradient(90deg, rgba(0, 200, 100, 0.05), transparent);
}

[data-theme='light'] .history-item.incorrect {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.05), transparent);
}

[data-theme='light'] .lb-tab {
  color: #94a3b8;
}

[data-theme='light'] .lb-tab:hover {
  color: #475569;
  background: rgba(0, 0, 0, 0.03);
}

[data-theme='light'] .lb-tab.active {
  color: #059669;
  border-bottom-color: #059669;
}

[data-theme='light'] .lb-tab.active::after {
  background: #059669;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.3);
}

[data-theme='light'] .points-badge {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.25);
  color: #059669;
}

[data-theme='light'] .streak-badge {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .lb-header {
  color: #94a3b8;
}

[data-theme='light'] .lb-upcoming .match-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .lb-upcoming .match-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* =========================================
   Global Tooltip System
========================================= */
.global-tooltip {
  position: fixed;
  z-index: 99999;
  background: var(--bg-800);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-200);
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.global-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.global-tooltip b {
  color: var(--accent-400);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

[data-theme="light"] .global-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  color: #334155;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .global-tooltip b {
  color: #059669;
}

/* Utilitaires pour les termes du lexique */
.lexicon-term {
  border-bottom: 1px dashed var(--accent-400);
  cursor: help;
  color: var(--accent-400);
  position: relative;
  display: inline-block;
  transition: var(--transition);
}

.lexicon-term:hover {
  text-shadow: 0 0 8px var(--accent-glow);
}


/* Mobile & Loaders */
.mobile-topbar {
    background-color: var(--bg-800);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
}

@media (max-width: 768px) {
    #app { flex-direction: column; }
    .mobile-topbar { display: flex !important; }
    .layout { flex-direction: column; }
    .main-content { margin-left: 0; padding-top: 60px; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100dvh;
        z-index: 2000;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        width: 280px;
        background-color: var(--bg-800);
        border-right: 1px solid var(--border);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .sidebar.sidebar-open {
        transform: translateX(0);
        visibility: visible;
    }
    .hide-on-mobile { display: none !important; }
    #main-content { padding: 15px; width: 100%; padding-top: 60px; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
}

/* Loader */
.loader {
    width: 40px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid var(--border-accent);
    border-right-color: var(--accent-400);
    animation: l2 1s infinite linear;
    margin: 20px auto;
}
@keyframes l2 {to{transform: rotate(1turn)}}

/* Leaderboard Tab Content Fix */
.lb-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.lb-tab-content.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   YOUTUBE LIVE STREAM DASHBOARD — Premium Fullscreen Styles
   ═══════════════════════════════════════════════════════════════ */

/* Fullscreen mode: hide general sidebars, top bars, and scrollbars */
body.fullscreen-stream {
  overflow: hidden !important;
  background-color: #04070d !important;
}
body.fullscreen-stream .sidebar,
body.fullscreen-stream .topbar,
body.fullscreen-stream .mobile-topbar,
body.fullscreen-stream #sidebar,
body.fullscreen-stream .hide-on-stream {
  display: none !important;
}
body.fullscreen-stream .main-content,
body.fullscreen-stream #main-content {
  margin-left: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
}

/* Stream Dashboard Shell */
.stream-dashboard {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #04070d;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  box-sizing: border-box;
  padding: 16px;
  gap: 16px;
}

/* Header */
.stream-header {
  height: 70px;
  background: linear-gradient(135deg, #070c16 0%, #0d1526 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.stream-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stream-brand .soccer-icon {
  font-size: 2rem;
  animation: l2 5s infinite linear;
}
.stream-brand .brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #00ff87;
  letter-spacing: -1px;
  text-shadow: 0 0 15px rgba(0, 255, 135, 0.3);
}
.stream-brand .live-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-pulse {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse-glow 1.5s infinite;
}
@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px #ef4444; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.stream-ticker-container {
  flex: 1;
  margin: 0 32px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.stream-ticker {
  white-space: nowrap;
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  animation: ticker-slide 25s infinite linear;
}
@keyframes ticker-slide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.stream-time {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Layout body */
.stream-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  overflow: hidden;
}

.stream-left, .stream-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.stream-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stream-left h2, .stream-right h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

/* Matches List styling */
.stream-matches-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}
.stream-matches-list::-webkit-scrollbar {
  width: 4px;
}
.stream-matches-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.stream-match-card {
  background: linear-gradient(135deg, #070c16 0%, #0d1526 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}
.stream-match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: #00ff87;
  box-shadow: 0 0 10px #00ff87;
}
.upcoming-card::before {
  background: #cbd5e1;
  box-shadow: none;
}

.stream-match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stream-comp-badge {
  background: rgba(0, 255, 135, 0.1);
  color: #00ff87;
  border: 1px solid rgba(0, 255, 135, 0.25);
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.stream-live-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
}

.stream-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stream-team {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stream-team.home {
  justify-content: flex-start;
}
.stream-team.away {
  justify-content: flex-end;
}
.stream-team-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f1f5f9;
}
.stream-team-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 4px 16px;
  border-radius: 10px;
  color: #00ff87;
  text-shadow: 0 0 10px rgba(0, 255, 135, 0.2);
}
.stream-team.away .stream-team-score {
  color: #a78bfa;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
}
.stream-vs {
  font-size: 0.95rem;
  font-weight: 800;
  color: #64748b;
  padding: 0 20px;
}

/* Momentum bar styling */
.stream-momentum-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.momentum-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.06em;
}
.momentum-bar-wrapper {
  height: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 99px;
  display: flex;
  overflow: hidden;
}
.momentum-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #04070d;
}
.momentum-bar.home {
  background: linear-gradient(90deg, #059669, #00ff87);
}
.momentum-bar.away {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

/* Probabilities */
.stream-probas-row {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
}
.proba-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.proba-item:last-child {
  border-right: none;
}
.proba-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.proba-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}
.home-win-color { color: #00ff87; }
.draw-color { color: #fbbf24; }
.away-win-color { color: #a78bfa; }

/* Right Panel: Conversion QR Box & Alerts */
.stream-qr-card {
  background: linear-gradient(135deg, #0d1526 0%, #162040 100%);
  border: 1px solid rgba(0, 255, 135, 0.25);
  box-shadow: 0 0 25px rgba(0, 255, 135, 0.06);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 200px;
}
.qr-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 255, 135, 0.1), transparent 60%);
}
.qr-content {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.qr-box {
  width: 130px;
  height: 130px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.simulated-qr {
  width: 110px;
  height: 110px;
  background: repeating-conic-gradient(from 45deg, #000 0% 25%, transparent 0% 50%) 50% / 8px 8px;
  position: relative;
  border-radius: 4px;
}
.qr-center {
  position: absolute;
  inset: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.qr-text {
  flex: 1;
}
.qr-text h3 {
  margin: 0 0 8px 0;
  font-family: 'Space Grotesk', sans-serif;
  color: #00ff87;
  font-size: 1.3rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(0, 255, 135, 0.2);
}
.qr-text p {
  margin: 0 0 12px 0;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.4;
}
.qr-domain {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #a78bfa;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
}
.vip-price-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fbbf24;
  margin-top: 4px;
}

/* Alerts Logs on Stream */
.stream-alerts-card {
  flex: 1;
  background: linear-gradient(180deg, #070c16 0%, #0d1526 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.stream-alerts-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stream-alert-card-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeInUp 0.4s ease backwards;
  position: relative;
  overflow: hidden;
}
.stream-alert-card-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}
.alert-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.alert-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.05em;
}
.alert-time {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}
.alert-teams {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f1f5f9;
}
.alert-details {
  font-size: 0.82rem;
  color: #94a3b8;
}
.value-color {
  color: #00ff87;
}

.stream-no-live-notice {
  text-align: center;
  background: rgba(251, 191, 36, 0.04);
  border: 1px dashed rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 6px;
}
.stream-no-live-notice p {
  margin: 0 0 6px 0;
  font-weight: 800;
  color: #fbbf24;
}
.stream-no-live-notice span {
  font-size: 0.85rem;
  color: #94a3b8;
}
.stream-alert-empty {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  padding: 40px 0;
}
.stream-loading {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  padding: 60px 0;
}



/* ═══════════════════════════════════════════════════════════
   UI/UX PRO MAX — Premium Enhancement Layer
   ═══════════════════════════════════════════════════════════ */

/* ── Premium Custom Properties ─────────────────────────────── */
:root {
  --pm-accent-gradient: linear-gradient(135deg, var(--accent-400), var(--violet-400));
  --pm-shine-angle: 120deg;
  --pm-glass-glow: rgba(0, 255, 135, 0.06);
  --pm-shimmer-speed: 2s;
  --pm-transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pm-transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ═══════════════════════════════════════════════════════════
   1. STAT CARDS — Premium Gradient Accents
   ═══════════════════════════════════════════════════════════ */

/* Subtle gradient shine overlay */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    var(--pm-shine-angle),
    transparent 0%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.02) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s var(--pm-transition-smooth);
}

.stat-card:hover::before {
  opacity: 1;
}

/* Left accent border strip on hover */
.stat-card::after {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pm-accent-gradient);
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity 0.3s var(--pm-transition-smooth),
              transform 0.3s var(--pm-transition-bounce);
  z-index: 2;
}

.stat-card:hover::after {
  opacity: 1;
  transform: scaleY(1);
}

/* Text gradient shine on accent stat values */
.stat-card .stat-value.stat-accent {
  background: linear-gradient(
    135deg,
    var(--accent-400) 0%,
    rgba(167, 255, 200, 0.9) 45%,
    var(--accent-400) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pm-text-shimmer 4s ease-in-out infinite;
}

@keyframes pm-text-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}


/* ═══════════════════════════════════════════════════════════
   2. GLASS CARDS — Depth & Layering
   ═══════════════════════════════════════════════════════════ */

.glass-card {
  position: relative;
  overflow: hidden;
}

/* Inner glow on hover */
.glass-card:hover {
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 0 30px rgba(0, 255, 135, 0.03);
}

/* Gradient border-top shimmer on hover */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 135, 0.3) 30%,
    rgba(167, 139, 250, 0.3) 70%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s var(--pm-transition-smooth);
  z-index: 2;
}

.glass-card:hover::after {
  opacity: 1;
}


/* ═══════════════════════════════════════════════════════════
   3. SIDEBAR — Premium Active State
   ═══════════════════════════════════════════════════════════ */

/* Active nav item: left accent bar, gradient bg, subtle glow */
.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 255, 135, 0.1), rgba(0, 255, 135, 0.03)) !important;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.04);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pm-accent-gradient);
  box-shadow: 0 0 8px rgba(0, 255, 135, 0.4);
}

/* Hover scale micro-animation */
.nav-item {
  transform-origin: left center;
  will-change: transform;
}

.nav-item:hover {
  transform: scale(1.02);
}

.nav-item.active:hover {
  transform: scale(1.02);
}

/* Smooth icon color transition */
.nav-item .nav-icon {
  transition: color 0.3s var(--pm-transition-smooth),
              transform 0.3s var(--pm-transition-smooth);
}

.nav-item:hover .nav-icon {
  color: var(--accent-400);
  transform: scale(1.1);
}

.nav-item.active .nav-icon {
  color: var(--accent-400);
  filter: drop-shadow(0 0 4px rgba(0, 255, 135, 0.3));
}


/* ═══════════════════════════════════════════════════════════
   4. TOPBAR — Visual Separation
   ═══════════════════════════════════════════════════════════ */

.topbar {
  border-bottom: none !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
}

/* Subtle bottom gradient line */
.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 135, 0.15) 20%,
    rgba(167, 139, 250, 0.15) 50%,
    rgba(251, 191, 36, 0.1) 80%,
    transparent 100%
  );
  z-index: 1;
}


/* ═══════════════════════════════════════════════════════════
   5. MATCH CARDS — Interactive Polish
   ═══════════════════════════════════════════════════════════ */

/* Gradient left border on hover */
.match-card {
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pm-accent-gradient);
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity 0.3s var(--pm-transition-smooth),
              transform 0.35s var(--pm-transition-bounce);
  z-index: 2;
}

.match-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Enhanced live-pulse animation with more visible glow */
.match-card.live {
  animation: pm-live-pulse 2.5s ease-in-out infinite;
}

@keyframes pm-live-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0),
                0 0 0 0 rgba(239, 68, 68, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12),
                0 0 20px rgba(239, 68, 68, 0.08);
  }
}

/* Stagger animation for match card lists */
.match-card:nth-child(1) { animation-delay: 0.00s; }
.match-card:nth-child(2) { animation-delay: 0.04s; }
.match-card:nth-child(3) { animation-delay: 0.08s; }
.match-card:nth-child(4) { animation-delay: 0.12s; }
.match-card:nth-child(5) { animation-delay: 0.16s; }
.match-card:nth-child(6) { animation-delay: 0.20s; }
.match-card:nth-child(7) { animation-delay: 0.24s; }
.match-card:nth-child(8) { animation-delay: 0.28s; }
.match-card:nth-child(9) { animation-delay: 0.32s; }
.match-card:nth-child(10) { animation-delay: 0.36s; }

/* Match cards that aren't live still get entrance animation */
.match-card:not(.live) {
  animation: pm-fadeInUp 0.4s var(--pm-transition-bounce) backwards;
}


/* ═══════════════════════════════════════════════════════════
   6. EMPTY STATES — Modern Feel
   ═══════════════════════════════════════════════════════════ */

.empty-state {
  position: relative;
}

/* Animated gradient circle behind icon */
.empty-state .empty-icon {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.empty-state .empty-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 135, 0.08) 0%,
    rgba(167, 139, 250, 0.04) 50%,
    transparent 70%
  );
  animation: pm-empty-glow 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes pm-empty-glow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

/* Typography and spacing improvements */
.empty-state p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-300);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

.empty-timeline .empty-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 135, 0.08) 0%,
    rgba(167, 139, 250, 0.04) 50%,
    transparent 70%
  );
  animation: pm-empty-glow 4s ease-in-out infinite;
  z-index: -1;
}

.empty-timeline .empty-icon {
  position: relative;
  display: inline-block;
}


/* ═══════════════════════════════════════════════════════════
   7. BUTTONS — Premium CTA
   ═══════════════════════════════════════════════════════════ */

/* Shimmer/shine animation on hover */
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s var(--pm-transition-smooth);
  z-index: -1;
}

.btn-primary:hover::after {
  left: 130%;
}

/* Press effect (scale down) */
.btn-primary:active {
  transform: translateY(0) scale(0.96) !important;
  transition: transform 0.1s ease;
}

/* Enhanced box-shadow glow */
.btn-primary {
  box-shadow: 0 2px 12px rgba(0, 232, 118, 0.2),
              0 0 0 1px rgba(0, 255, 135, 0.1);
}

.btn-primary:hover {
  box-shadow: 0 4px 24px rgba(0, 232, 118, 0.35),
              0 0 0 1px rgba(0, 255, 135, 0.2),
              0 0 40px rgba(0, 255, 135, 0.1);
}

/* Glow button enhancement */
.btn-glow {
  box-shadow: 0 0 15px rgba(0, 255, 135, 0.2),
              0 0 40px rgba(0, 255, 135, 0.05);
}

.btn-glow:hover {
  box-shadow: 0 0 25px rgba(0, 255, 135, 0.35),
              0 0 60px rgba(0, 255, 135, 0.1);
}


/* ═══════════════════════════════════════════════════════════
   8. GLOBAL MICRO-ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* Primary entrance animation */
@keyframes pm-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shimmer animation for premium elements */
@keyframes pm-shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Utility class with stagger support via --delay */
.animate-in {
  animation: pm-fadeInUp 0.5s var(--pm-transition-bounce) backwards;
  animation-delay: var(--delay, 0s);
}

/* Entrance animation on content area children */
.content-area > *:nth-child(1) { animation-delay: 0.00s; }
.content-area > *:nth-child(2) { animation-delay: 0.03s; }
.content-area > *:nth-child(3) { animation-delay: 0.06s; }
.content-area > *:nth-child(4) { animation-delay: 0.09s; }
.content-area > *:nth-child(5) { animation-delay: 0.12s; }
.content-area > *:nth-child(6) { animation-delay: 0.15s; }
.content-area > *:nth-child(7) { animation-delay: 0.18s; }
.content-area > *:nth-child(8) { animation-delay: 0.21s; }

.content-area > * {
  animation: pm-fadeInUp 0.45s var(--pm-transition-bounce) backwards;
}

/* Subtle scale pop for interactive elements */
@keyframes pm-scalePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}


/* ═══════════════════════════════════════════════════════════
   9. TABLES — Enhanced Readability
   ═══════════════════════════════════════════════════════════ */

/* Alternate row coloring with ultra-subtle backgrounds */
.standings-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.standings-table tbody tr:nth-child(odd) td {
  background: transparent;
}

/* Highlight hover row more prominently */
.standings-table tr:hover td {
  background: rgba(0, 255, 135, 0.04) !important;
  transition: background 0.2s var(--pm-transition-smooth);
}

/* Zone rows with left accent markers */
.standings-table tr.cl-zone td:first-child {
  box-shadow: inset 3px 0 0 0 var(--accent-400);
}

.standings-table tr.el-zone td:first-child {
  box-shadow: inset 3px 0 0 0 var(--amber-400);
}

.standings-table tr.rel-zone td:first-child {
  box-shadow: inset 3px 0 0 0 var(--loss);
}

/* Table header refinement */
.standings-table th {
  position: relative;
}

.standings-table thead tr th {
  background: rgba(255, 255, 255, 0.02);
}


/* ═══════════════════════════════════════════════════════════
   10. TOAST NOTIFICATIONS — Premium Polish
   ═══════════════════════════════════════════════════════════ */

/* Left colored accent bar matching toast type */
.toast {
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  z-index: 1;
}

.toast-success::before {
  background: linear-gradient(180deg, var(--accent-400), var(--accent-600));
  box-shadow: 0 0 8px rgba(0, 255, 135, 0.3);
}

.toast-error::before {
  background: linear-gradient(180deg, #f87171, #dc2626);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
}

.toast-warning::before {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.toast-info::before {
  background: linear-gradient(180deg, var(--violet-400), var(--violet-600));
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.3);
}

/* Enhanced entry/exit animations */
.toast {
  transform: translateX(120%) scale(0.95);
}

.toast.toast-show {
  transform: translateX(0) scale(1);
  animation: pm-toast-enter 0.4s var(--pm-transition-bounce);
}

@keyframes pm-toast-enter {
  0% {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}


/* ═══════════════════════════════════════════════════════════
   11. COMPETITION TABS — Polish
   ═══════════════════════════════════════════════════════════ */

/* Active tab with bottom accent line and subtle glow */
.comp-tab.active {
  position: relative;
  box-shadow: 0 0 16px rgba(0, 255, 135, 0.08);
}

.comp-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--pm-accent-gradient);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.35);
}

/* Hover with smooth scale and border transition */
.comp-tab {
  transition: color 0.25s var(--pm-transition-smooth), background-color 0.25s var(--pm-transition-smooth), border-color 0.25s var(--pm-transition-smooth);
  position: relative;
}

.comp-tab:hover {
  transform: scale(1.04);
  border-color: rgba(0, 255, 135, 0.15);
}

.comp-tab:active {
  transform: scale(0.98);
}


/* ═══════════════════════════════════════════════════════════
   12. SCROLLBAR — Refinement
   ═══════════════════════════════════════════════════════════ */

/* Transparent track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Thumb with rounded gradient */
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(0, 255, 135, 0.15),
    rgba(167, 139, 250, 0.15)
  );
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(0, 255, 135, 0.3),
    rgba(167, 139, 250, 0.3)
  );
}

/* Firefox scrollbar */
* {
  scrollbar-color: rgba(0, 255, 135, 0.15) transparent;
}


/* ═══════════════════════════════════════════════════════════
   BONUS — Extra Premium Touches
   ═══════════════════════════════════════════════════════════ */

/* Subtle focus ring for accessibility */
.btn:focus-visible,
.comp-tab:focus-visible,
.nav-item:focus-visible,
.pick-btn:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 255, 135, 0.1);
}

/* Smooth text rendering */
.stat-value,
.lb-points,
.match-score,
.card-title {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Premium glass shimmer on glassmorphic cards */
.glassmorphic-card {
  position: relative;
  overflow: hidden;
}

.glassmorphic-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   END — UI/UX PRO MAX Enhancement Layer
   ═══════════════════════════════════════════════════════════ */

/* ── HUMAN-DESIGNED PREMIUM COMPONENTS & UTILITIES ── */
.bet-builder-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(16, 185, 129, 0.03) 100%);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
/* Carte « Combiné IA » (bet-builder) : fond SOMBRE fixe dans les deux thèmes. En
   thème clair, ses textes en --text-400 (gris moyen) tombaient à ~2,4:1. On rend
   le fond sombre net et on force des textes clairs lisibles à l'intérieur. */
:root[data-theme="light"] .bet-builder-card {
  background: linear-gradient(145deg, #131924 0%, #10241d 100%) !important;
}
:root[data-theme="light"] .bet-builder-card [style*="text-400"],
:root[data-theme="light"] .bet-builder-card p { color: #cbd5e1 !important; }
/* Bouton « Générer » lisible sur la carte sombre en thème clair (M-10) : le .btn-outline
   global impose color:var(--t2) (slate foncé), invisible sur le fond sombre → on force du clair. */
:root[data-theme="light"] .bet-builder-card .btn-outline {
  color: #cbd5e1 !important;
  border-color: rgba(203, 213, 225, 0.35) !important;
}
:root[data-theme="light"] .bet-builder-card .btn-outline:hover {
  color: #6ee7b7 !important;
  border-color: #10b981 !important;
}

.bet-builder-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-400);
  margin-bottom: 16px;
}

.bet-builder-leg {
  background: rgba(0, 0, 0, 0.15);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-400);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  transition: var(--transition);
}
.bet-builder-leg:hover {
  background: rgba(0, 0, 0, 0.25);
  transform: translateX(2px);
}

.bet-builder-summary {
  margin-top: 16px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-start-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.quick-start-step:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-400);
  flex-shrink: 0;
  transition: var(--transition);
}
.step-badge.done {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent-400);
}

/* Match Cards styling (Sofascore / Sorare inspired) */
.match-card-premium {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.match-card-premium::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: var(--transition);
}
.match-card-premium:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
}
.match-card-premium.live:hover::before {
  background: var(--live);
}

.odds-container-premium {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.odds-badge-premium {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-300);
  text-align: center;
  transition: var(--transition);
}
.odds-badge-premium:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Elegant horizon probability linear bar */
.prob-container-premium {
  margin-top: 12px;
}
.prob-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-400);
  font-weight: 500;
  margin-bottom: 4px;
}
.prob-bar-bg {
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.prob-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-400), var(--violet-400));
  border-radius: 99px;
}

/* Modal styles for login / settings */
.modal-overlay-premium {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-content-premium {
  background: var(--bg-800);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-tab-premium {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-400);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.modal-tab-premium.active {
  color: var(--text-100);
  border-bottom-color: var(--accent-400);
}
.modal-tab-premium:hover:not(.active) {
  color: var(--text-200);
}

.form-label-premium {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-300);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input-premium {
  width: 100%;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-100);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-input-premium:focus {
  border-color: var(--accent-400);
  background: rgba(16, 185, 129, 0.02);
}
.form-input-premium::placeholder {
  color: var(--text-500);
}

/* ── PREMIUM HIGH-FIDELITY SPRING ANIMATIONS (10,000€ WEBSITE LOOK) ── */
.modal-overlay-premium {
  animation: fadeInBackground 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-content-premium {
  animation: springPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  will-change: transform, opacity;
}

.match-card-premium {
  animation: slideUpFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

/* Stagger delay classes for staggered list animations */
.match-card-premium:nth-child(1) { animation-delay: 0.02s; }
.match-card-premium:nth-child(2) { animation-delay: 0.04s; }
.match-card-premium:nth-child(3) { animation-delay: 0.06s; }
.match-card-premium:nth-child(4) { animation-delay: 0.08s; }
.match-card-premium:nth-child(5) { animation-delay: 0.10s; }
.match-card-premium:nth-child(6) { animation-delay: 0.12s; }
.match-card-premium:nth-child(7) { animation-delay: 0.14s; }
.match-card-premium:nth-child(8) { animation-delay: 0.16s; }
.match-card-premium:nth-child(9) { animation-delay: 0.18s; }
.match-card-premium:nth-child(10) { animation-delay: 0.20s; }

/* Smooth fade and scale-in view transitions */
.view-transition-enter {
  animation: viewSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

/* Keyframes Definitions */
@keyframes fadeInBackground {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to   { opacity: 1; backdrop-filter: blur(8px); }
}

@keyframes springPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideUpFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes viewSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.995); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Premium micro-shimmer hover effect on buttons and active cards */
.btn-primary, .bet-builder-card {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .bet-builder-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: none;
}
.btn-primary:hover::after, .bet-builder-card:hover::after {
  left: 150%;
  transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}



/* Gamification & Profile Styles */
.profile-avatar {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  background: var(--bg-700);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.badge-card {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 10px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.badge-card.earned {
  border-color: rgba(234, 179, 8, 0.5); /* Yellow border */
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
  background: linear-gradient(145deg, var(--bg-700), rgba(234, 179, 8, 0.05));
}

.badge-card.locked {
  opacity: 0.5;
  filter: grayscale(100%);
}

.badge-icon {
  font-size: 2.5rem;
  margin-bottom: 5px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.badge-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-100);
}

.badge-desc {
  font-size: 0.8rem;
  color: var(--text-400);
  line-height: 1.3;
}

.badge-card.earned .badge-icon {
  animation: float 3s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════════════
   CORRECTIFS UX/UI — Navigation, accessibilité, composants
   ════════════════════════════════════════════════════════════════ */

/* ── Touch targets : minimum 44×44px (WCAG 2.5.5) ─────────────── */
.lang-btn {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.875rem;
}
.pick-btn {
  min-height: 44px;
  padding: 10px 12px;
}
.nav-item {
  min-height: 44px;
  padding: 0 12px;
}

/* ── Contraste texte : amélioration ratio WCAG 4.5:1 ───────────── */
.text-400, [class*="text-400"],
.card-subtitle, .stat-label,
.nav-section-title, .match-meta,
.xg-label, .prob-label {
  color: var(--text-300);  /* #e5e7eb au lieu de #9ca3af — ratio ~6:1 */
}

/* ── Focus rings visibles (navigation clavier) ─────────────────── */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Select stylé thème sombre ──────────────────────────────────── */
.styled-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-800) 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='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 12px;
  color: var(--text-100);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 36px 9px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
  width: 100%;
}
.styled-select:hover  { border-color: rgba(255,255,255,0.25); }
.styled-select:focus  { outline: 2px solid var(--accent-400); outline-offset: 2px; border-color: var(--accent-400); }
.styled-select option { background: #1e2433; color: var(--text-100); }

/* ── Modal overlay premium (était undefined en CSS) ─────────────── */
.modal-overlay-premium {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay-premium.open { display: flex; }
.modal-content-premium {
  position: relative;
  background: var(--bg-800);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── VIP Lock — UI propre sans fake content ─────────────────────── */
.vip-paywall {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 24px 20px; text-align: center;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(251,191,36,0.04), rgba(99,102,241,0.04));
}
.vip-paywall-icon { font-size: 2rem; line-height: 1; }
.vip-paywall-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--amber-400);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.vip-paywall-desc {
  font-size: 0.85rem; color: var(--text-300);
  line-height: 1.5; max-width: 280px;
}
.vip-paywall .btn-primary {
  background: linear-gradient(135deg, var(--amber-400), var(--violet-400));
  color: #000; border: none;
  padding: 10px 20px; font-size: 0.875rem;
  font-weight: 700; min-height: 44px;
}

/* ── Podium medals avec glow ────────────────────────────────────── */
.podium-medal {
  font-size: 1.5rem; line-height: 1;
  filter: drop-shadow(0 0 8px currentColor);
}
.podium-step:nth-child(1) .podium-medal { filter: drop-shadow(0 0 12px gold); }
.podium-step:nth-child(2) .podium-medal { filter: drop-shadow(0 0 8px silver); }
.podium-step:nth-child(3) .podium-medal { filter: drop-shadow(0 0 8px #cd7f32); }

/* ── History items (leaderboard) ────────────────────────────────── */
.history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  transition: var(--transition);
}
.history-item:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.history-item.correct { border-left: 3px solid var(--accent-400); }
.history-item.incorrect { border-left: 3px solid var(--loss); }

/* ── Nav-item avec icônes emoji (agrandissement) ────────────────── */
.nav-item { font-size: 0.9rem; gap: 10px; }
.nav-item:hover { padding-left: 14px; }

/* ── Sidebar fermée en mobile proprement ────────────────────────── */
@media (max-width: 900px) {
  .sidebar { box-shadow: 4px 0 24px rgba(0,0,0,0.5); }
  .modal-content-premium { max-width: 100%; border-radius: var(--radius-lg); }
  .pick-buttons { gap: 6px; }
  .pick-btn { padding: 12px 8px; font-size: 0.85rem; }
}

/* ── Optimisation backdrop-filter (mobile GPU) ──────────────────── */
@media (max-width: 640px) {
  .glass-card { backdrop-filter: none; background: var(--bg-800); }
  .sidebar { backdrop-filter: none; background: var(--bg-800); }
}

