/* ============================================
   WinningBet — Styles
   ============================================
   Design system premium con tema scuro e accenti gold.

   Organizzazione del file:
   1. CSS Variables    — Palette, tipografia, spacing, ombre
   2. Reset & Base     — Normalizzazione e stili base
   3. Typography       — Gradienti testo, header sezioni
   4. Buttons          — Varianti: gold, outline, telegram, size
   5. Particle Canvas  — Posizionamento canvas sfondo
   6. Navbar           — Fixed, glassmorphism on scroll
   7. Hero             — Fullscreen, glow effects, animazioni
   8. Live Matches Bar — Scroll orizzontale partite
   9. Tips Section     — Filtri, tip card, confidence bars
  10. Stats Section    — Stat card, grafico barre, risultati
  11. Pricing          — Card piani con highlight PRO
  12. Telegram CTA     — Card con glow Telegram
  13. FAQ              — Accordion con animazione max-height
  14. Footer           — Griglia link, disclaimer, badge 18+
  15. Loading States   — Spinner e stati vuoti
  16. Animations       — Reveal on scroll, keyframes
  17. Responsive       — Breakpoint: 1024px, 768px, 480px
   ============================================ */

/* --- Skip-to-content link (a11y) ---
   Visually hidden, shown on keyboard focus for screen-reader / tab users. */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

#main-content:focus {
  outline: none;
}

/* --- CSS Variables ---
   Tutte le variabili del design system.
   Modificando questi valori si cambia l'intero aspetto del sito.

   Palette colori:
   - bg-*: sfondi dal piu' scuro (primary) al piu' chiaro (elevated)
   - gold-*: accento primario (CTA, quote, highlight) con varianti gradiente
   - red: alert, sconfitte, indicatore live
   - green: vittorie, confidence bar, badge attivo
   - text-*: testo con 3 livelli di enfasi
   - telegram: colore brand Telegram (#229ED9)

   Tipografia:
   - font-display: Space Grotesk — titoli, numeri, badge, nav
   - font-body: Inter — corpo testo, paragrafi, descrizioni

   Spacing:
   - radius-sm/md/lg/xl: border-radius progressivi per button -> card
   - shadow/shadow-gold: ombre per elevazione e highlight gold
*/
:root {
  /* Sfondi (dal piu' scuro al piu' chiaro) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --bg-elevated: #1e1e2a;

  /* Accento primario: gold */
  --gold: #d4a853;
  --gold-light: #f0d078;
  --gold-dark: #a67c2e;
  --gold-glow: rgba(212, 168, 83, 0.3);

  /* Colori funzionali */
  --red: #e74c3c;
  --red-light: #f87171;
  --red-glow: rgba(231, 76, 60, 0.25);
  --green: #2ecc71;
  --green-light: #34d399;
  --green-dark: #27ae60;
  --green-glow: rgba(46, 204, 113, 0.2);

  /* Neutrali */
  --white: #ffffff;
  --black: #000000;

  /* Accenti secondari */
  --blue: #60a5fa;
  --amber: #fbbf24;
  --slate: #94a3b8;
  --purple: #a78bfa;

  /* Testo: 3 livelli di enfasi */
  --text-primary: #f0f0f5; /* Testo principale */
  --text-secondary: #8a8a9a; /* Testo secondario */
  --text-muted: #55556a; /* Label, hint, terziario */

  /* Bordi */
  --border: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(212, 168, 83, 0.3);

  /* Brand Telegram */
  --telegram: #229ed9;

  /* Brand WhatsApp */
  --whatsapp: #25d366;

  /* Tipografia */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Border radius progressivi */
  --radius-sm: 8px; /* Button, input, badge */
  --radius-md: 12px; /* Card piccole, FAQ item */
  --radius-lg: 20px; /* Tip card, stat card */
  --radius-xl: 28px; /* Pricing card, telegram card */

  /* Ombre */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 4px 30px rgba(212, 168, 83, 0.15);

  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-navbar: 1000;
  --z-overlay: 1500;
  --z-modal: 2000;
  --z-toast: 9999;
}

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

/* ============================================
   ACCESSIBILITY — FOCUS VISIBLE
   ============================================
   Keyboard-visible focus ring: gold outline.
   Hidden for mouse/touch users via :focus:not(:focus-visible).
   ============================================ */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Offset anchored sections below fixed navbar (height ~60px + 20px padding) */
.how-section,
.stats-section,
.pricing-section {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
.text-gradient {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--border-gold);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.section-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
  max-width: 580px;
  margin: 8px auto 0;
}

.section-meta:empty {
  display: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(212, 168, 83, 0.45);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-telegram {
  background: var(--telegram);
  color: white;
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 158, 217, 0.3);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}

/* --- Particle Canvas --- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

/* Opaque navbar: on scroll (all pages) + at load (pages with busy hero) */
.navbar.scrolled,
.business-page .navbar {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Desktop: .nav-menu is invisible wrapper — children participate in parent grid */
.nav-menu {
  display: contents;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

/* Legacy nav: admin/partner pages use #navLinks.nav-links without .nav-menu wrapper.
   Span columns 2-3 and right-align so items stay at the far right (pre-grid behavior). */
#navLinks.nav-links {
  grid-column: 2 / -1;
  justify-content: flex-end;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.nav-links a:not(.btn):hover {
  color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  filter: blur(80px);
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-glow--red {
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  top: auto;
  right: auto;
  bottom: -200px;
  left: -200px;
  animation-delay: 2s;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  width: 100%;
  padding: 0 clamp(24px, 5vw, 80px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid var(--border-gold);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
  }
}

.hero-title {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stat {
  text-align: center;
  /* Prevent layout shift when values load — stable dimensions for each stat column */
  min-width: 80px;
  min-height: 70px;
  contain: content;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  /* Stable line-height prevents vertical jump on value change */
  line-height: 1.2;
  display: inline-block;
  min-height: 3.4rem; /* reserves space for 2.8rem font + line-height */
}

.hero-stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-track-record-link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.7;
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-top: 12px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
  transition: opacity 0.2s ease;
}

.hero-track-record-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

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

/* ============================================
   LEAGUE SELECTOR
   ============================================ */
.league-selector-section {
  position: relative;
  z-index: var(--z-base);
  padding: 16px 0 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.league-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.league-selector::-webkit-scrollbar {
  display: none;
}

.league-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    border-color 0.3s,
    color 0.3s,
    background 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.league-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.league-btn.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-primary);
  border-color: var(--gold);
}

.league-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   LIVE MATCHES BAR
   ============================================ */
.live-bar {
  position: relative;
  z-index: var(--z-base);
  padding: 24px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.live-bar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: dotPulse 2s ease-in-out infinite;
}

.matches-scroll {
  display: flex;
  gap: 16px;
  overflow: hidden;
  padding-bottom: 8px;
}

.matches-track {
  display: flex;
  gap: 16px;
  animation: tickerScroll var(--ticker-duration, 30s) linear infinite;
  will-change: transform;
}

.matches-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.match-card {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 260px;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.match-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.match-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

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

.team-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.match-vs {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.match-tip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

/* Tip component styles — shared with dashboard */
.tips-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-primary);
  border-color: var(--gold);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Tip Cards --- */
.tip-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.tip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.tip-card--pro {
  border-color: rgba(212, 168, 83, 0.15);
}
.tip-card--pro:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.tip-card--vip {
  border-color: rgba(212, 168, 83, 0.25);
}
.tip-card--vip:hover {
  box-shadow: 0 8px 40px rgba(212, 168, 83, 0.2);
}

.tip-card--multipla {
  border-color: rgba(212, 168, 83, 0.15);
}

.tip-card-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
  top: -80px;
  right: -80px;
  pointer-events: none;
}

.tip-card-glow--gold {
  background: radial-gradient(circle, rgba(212, 168, 83, 0.12) 0%, transparent 70%);
}

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

.tip-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 12px;
  border-radius: 4px;
}

.tip-badge--free {
  background: rgba(46, 204, 113, 0.1);
  color: var(--green);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.tip-badge--pro {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.tip-badge--vip {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-primary);
}

.tip-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tip-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tip-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.team-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tip-versus {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vs-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.tip-prediction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tip-pick,
.tip-odds {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pick-label,
.odds-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pick-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.pick-label-marketing {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  display: block;
  margin-top: 2px;
}

.odds-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.tip-value--hidden {
  color: var(--text-muted);
  filter: blur(4px);
  user-select: none;
}

/* Confidence Bar */
.tip-confidence {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.confidence-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.confidence-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: width;
}

.confidence-value {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.tip-analysis {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.tip-analysis--locked {
  position: relative;
  min-height: 80px;
  border-top: none;
  padding-top: 0;
}

.locked-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(18, 18, 26, 0.95), rgba(22, 22, 31, 0.95));
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.locked-overlay--gold {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.05), rgba(18, 18, 26, 0.95));
}

.locked-overlay svg {
  color: var(--gold);
  opacity: 0.6;
}

/* Multipla Card */
.tip-multipla {
  margin-bottom: 16px;
}

.multipla-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.multipla-picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.multipla-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.multipla-pick-value {
  font-weight: 600;
  color: var(--text-primary);
}

.multipla-pick-odds {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
}

.multipla-pick--locked {
  opacity: 0.5;
  filter: blur(2px);
  user-select: none;
}

.multipla-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.1), rgba(212, 168, 83, 0.05));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.multipla-total-odds {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

/* ============================================
   STATS / TRACK RECORD SECTION
   ============================================ */
.stats-section {
  position: relative;
  z-index: var(--z-base);
  padding: 100px 0;
  background: var(--bg-secondary);
  contain: content;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  /* Prevent layout shift when stat values load — reserve space for icon + value + label */
  min-height: 180px;
  contain: content;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  margin: 0 auto 16px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: inline;
  /* Reserve vertical space so em-dash → number swap doesn't shift layout */
  line-height: 1.2;
  min-height: 3rem;
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  /* Stable height prevents jump when value transitions from em-dash to number */
  min-height: 3rem;
}

.stat-wl {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  /* Match stat-value-row height for consistent card sizing */
  min-height: 3rem;
}

.stat-won {
  color: var(--green);
}

.stat-lost {
  color: var(--red);
}

.stat-sep {
  color: var(--text-muted);
  font-size: 1.5rem;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-suffix--pre {
  margin-right: 2px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Chart */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-secondary);
}

.chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  gap: 16px;
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.chart-fill {
  width: 100%;
  max-width: 60px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  height: 0;
  position: relative;
  will-change: height;
}

.chart-animated .chart-fill {
  height: calc(var(--target-height, 0) * 1%);
  transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 150ms);
}

.chart-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
  border-radius: 8px 8px 0 0;
}

.chart-amount {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.chart-bar::after {
  content: attr(data-label);
  position: absolute;
  bottom: -28px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.chart-animated .chart-amount {
  opacity: 1;
  transition-delay: calc(var(--i, 0) * 150ms + 1s);
}

.chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Recent Results */
.recent-results {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.results-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.results-league-filter {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 32px 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    border-color 0.3s,
    color 0.3s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a8a9a' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  min-width: 0;
}

.results-league-filter:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.results-league-filter:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
  color: var(--gold);
}

.results-league-filter option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.results-list::-webkit-scrollbar {
  width: 6px;
}

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

.results-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.results-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  /* Transition enabled after first render to avoid initial-load stutter.
     The .results-list--ready class is added by JS after results are painted. */
}

.results-list--ready .result-item {
  transition: background 0.3s;
}

.result-item:hover {
  background: var(--bg-card-hover);
}

.result-status {
  font-size: 1rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-item--win .result-status {
  background: rgba(46, 204, 113, 0.15);
  color: var(--green);
}

.result-item--loss .result-status {
  background: rgba(231, 76, 60, 0.15);
  color: var(--red);
}

.result-match {
  flex: 1;
  font-weight: 500;
  font-size: 0.9rem;
}

.result-pick {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.result-odds {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
}

.result-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
}

.result-badge--win {
  background: rgba(46, 204, 113, 0.1);
  color: var(--green);
}

.result-badge--loss {
  background: rgba(231, 76, 60, 0.1);
  color: var(--red);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}

.how-section .how-steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.how-section .how-step {
  display: flex;
  align-items: stretch;
  gap: 60px;
}

.how-section .how-step--reverse {
  flex-direction: row-reverse;
}

.how-section .how-step-visual {
  flex: 0 0 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-section .how-step-visual svg {
  width: 100%;
  height: 100%;
}

.how-section .how-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.how-section .how-step--reverse .how-step-content {
  align-items: flex-end;
  text-align: right;
}

.how-section .how-step-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}

.how-section .how-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.how-section .how-step-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

@media (max-width: 768px) {
  .how-section {
    padding: 60px 0;
  }

  .how-section .how-steps {
    gap: 60px;
  }

  .how-section .how-step,
  .how-section .how-step--reverse {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .how-section .how-step-visual {
    flex: 0 0 220px;
    height: 220px;
  }

  .how-section .how-step-content,
  .how-section .how-step--reverse .how-step-content {
    align-items: center;
    text-align: center;
  }

  .how-section .how-step-text {
    margin: 0 auto;
  }
}

/* ============================================
   HOW IT WORKS — SVG LOOPING ANIMATIONS
   ============================================
   Activated when .how-svg-animating is added by IntersectionObserver.
   Step 1 (AI): nodes illuminate gold sequentially
   Step 2 (Tips): card + bell pulse/glow
   Step 3 (Chart): line draws progressively, resets, loops
   ============================================ */

/* --- Step 1: Analisi AI — Sequential node glow --- */
@keyframes howNodeGlow {
  0%,
  15%,
  100% {
    opacity: var(--how-node-base-opacity, 0.3);
    filter: none;
  }
  7% {
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--gold));
  }
}

@keyframes howOrbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Cardinal circles (4 big circles at N/E/S/W) glow gold sequentially */
@keyframes howCardinalGlow {
  0%,
  20%,
  100% {
    stroke: var(--text-primary);
    fill-opacity: 0.05;
    filter: none;
  }
  10% {
    stroke: var(--gold);
    fill-opacity: 0.2;
    filter: drop-shadow(0 0 8px var(--gold));
  }
}

.how-svg-animating .how-ai-cardinal {
  animation: howCardinalGlow 4s ease-in-out infinite;
}

.how-svg-ai .how-ai-orbit {
  transform-box: fill-box;
  transform-origin: center;
}

.how-svg-animating .how-ai-orbit {
  animation: howOrbitSpin 30s linear infinite;
}

.how-svg-animating .how-ai-orbit--inner {
  animation-direction: reverse;
  animation-duration: 24s;
}

.how-svg-animating .how-ai-node {
  --how-node-base-opacity: 0.3;
  animation: howNodeGlow 4.5s ease-in-out infinite;
}

/* Center node is always full opacity at rest */
.how-svg-ai .how-ai-node--center {
  --how-node-base-opacity: 1;
}

/* --- Step 2: Pronostici Pronti — Pulse/glow --- */
@keyframes howCardGlow {
  0%,
  100% {
    stroke-opacity: 1;
    filter: none;
  }
  50% {
    stroke-opacity: 1;
    filter: drop-shadow(0 0 8px var(--border-gold));
  }
}

@keyframes howBellPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes howBellDotPing {
  0%,
  100% {
    r: 3;
    opacity: 0.8;
  }
  50% {
    r: 5;
    opacity: 1;
  }
}

.how-svg-animating .how-tips-card {
  animation: howCardGlow 3s ease-in-out infinite;
}

.how-svg-tips .how-tips-bell {
  transform-box: fill-box;
  transform-origin: center;
}

.how-svg-animating .how-tips-bell {
  animation: howBellPulse 2s ease-in-out infinite;
}

.how-svg-animating .how-tips-bell-dot {
  animation: howBellDotPing 1.5s ease-in-out infinite;
}

/* --- Step 3: Risultati Verificati — Chart draw loop --- */
@keyframes howChartDraw {
  0% {
    stroke-dashoffset: 300;
    opacity: 1;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  60% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  61%,
  100% {
    stroke-dashoffset: 300;
    opacity: 0;
  }
}

@keyframes howChartAreaReveal {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  60%,
  100% {
    opacity: 0;
  }
}

@keyframes howChartDotPop {
  0%,
  100% {
    opacity: 0;
    r: 0;
  }
  10% {
    opacity: 1;
    r: 6;
  }
  15%,
  75% {
    opacity: 1;
    r: 5;
  }
  85% {
    opacity: 0;
    r: 0;
  }
}

@keyframes howChartBadgePop {
  0%,
  100% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  15%,
  75% {
    opacity: 1;
  }
  85% {
    opacity: 0;
  }
}

.how-svg-chart .how-chart-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.how-svg-chart .how-chart-area {
  opacity: 0;
}

.how-svg-chart .how-chart-dot {
  opacity: 0;
}

.how-svg-chart .how-chart-badge {
  opacity: 0;
}

.how-svg-animating .how-chart-line {
  animation: howChartDraw 5s ease-in-out infinite;
}

.how-svg-animating .how-chart-area {
  animation: howChartAreaReveal 5s ease-in-out infinite;
}

.how-svg-animating .how-chart-dot {
  animation: howChartDotPop 5s ease-in-out infinite;
}

.how-svg-animating .how-chart-badge {
  animation: howChartBadgePop 5s ease-in-out infinite;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
  position: relative;
  z-index: var(--z-base);
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card--pro {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.08) 0%, var(--bg-card) 40%);
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.pricing-card--pro:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-card--vip {
  border-color: rgba(212, 168, 83, 0.3);
}

.pricing-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 20px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-primary);
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-trial {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 16px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--bg-primary);
  border-radius: 100px;
  white-space: nowrap;
  animation: trialPulse 2s ease-in-out infinite;
}

@keyframes trialPulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
  }
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-price {
  margin-bottom: 8px;
  line-height: 1;
}

.price-currency {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  vertical-align: super;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-decimal {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.feature-check {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}

.feature-x {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.feature-excluded {
  color: var(--text-muted);
}

/* ============================================
   TELEGRAM CTA SECTION
   ============================================ */
.telegram-section {
  position: relative;
  z-index: var(--z-base);
  padding: 60px 0;
}

.telegram-card {
  position: relative;
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.1), rgba(34, 158, 217, 0.02));
  border: 1px solid rgba(34, 158, 217, 0.2);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
}

.telegram-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.15) 0%, transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(60px);
  pointer-events: none;
}

.telegram-content {
  position: relative;
  z-index: var(--z-base);
}

.telegram-icon {
  color: var(--telegram);
  margin-bottom: 20px;
}

.telegram-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.telegram-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 28px;
}

.telegram-members {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  position: relative;
  z-index: var(--z-base);
  padding: 100px 0;
  background: var(--bg-secondary);
  scroll-margin-top: 80px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active {
  border-color: var(--border-gold);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: var(--z-base);
  padding: 60px 0 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 24px 0;
}

.footer-disclaimer {
  background: rgba(231, 76, 60, 0.05);
  border: 1px solid rgba(231, 76, 60, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.footer-disclaimer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-disclaimer p + p {
  margin-top: 8px;
}

.footer-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 24px;
}

.footer-age {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.matches-loading,
.results-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 16px 0;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tips-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px 0;
  grid-column: 1 / -1;
}

.tips-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px 0;
  text-align: center;
  grid-column: 1 / -1;
}

.matches-empty,
.results-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px 0;
  text-align: center;
  width: 100%;
}

/* ─── Skeleton Loading ─────────────────────── */
.skeleton {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

.skeleton-card {
  height: 180px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.skeleton-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

.skeleton-line--short {
  width: 60%;
}

.skeleton-line--medium {
  width: 80%;
}

.skeleton-match {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  min-width: 200px;
  flex-shrink: 0;
}

.skeleton-history {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  min-height: 52px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ─── Empty State ──────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px;
  text-align: center;
  grid-column: 1 / -1;
  width: 100%;
}

.empty-state svg {
  color: var(--text-muted);
  opacity: 0.5;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-state-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 300px;
}

.empty-state .btn {
  margin-top: 4px;
}

/* ─── Last Updated Timestamp ───────────────── */
.last-updated {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.last-updated-refresh {
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 2px;
  font-size: 0.85rem;
  line-height: 1;
  transition: color 0.2s;
}

.last-updated-refresh:hover {
  color: var(--gold);
}

/* ─── Toast Notifications ──────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  max-width: 360px;
}

.toast.visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--success {
  border-color: rgba(46, 204, 113, 0.3);
}

.toast--success .toast-icon {
  color: var(--green);
}

.toast--error {
  border-color: rgba(231, 76, 60, 0.3);
}

.toast--error .toast-icon {
  color: var(--red);
}

.toast--info {
  border-color: rgba(212, 168, 83, 0.3);
}

.toast--info .toast-icon {
  color: var(--gold);
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.toast-text {
  flex: 1;
  line-height: 1.4;
}

/* ─── Share Dropdown ───────────────────────── */
.share-wrapper {
  position: relative;
  display: inline-block;
  align-self: flex-end;
  margin-top: 0.5rem;
}

.share-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.share-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.share-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  min-width: 160px;
  z-index: var(--z-dropdown);
  overflow: hidden;
}

.share-dropdown.open {
  display: flex;
}

.share-option {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.share-option:hover {
  background: rgba(212, 168, 83, 0.1);
  color: var(--text-primary);
}

.share-option + .share-option {
  border-top: 1px solid var(--border);
}

/* ─── Error State with Retry ─────────────── */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
  width: 100%;
}

.error-state svg {
  color: var(--red);
  opacity: 0.7;
  flex-shrink: 0;
}

.error-state-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.error-state-retry {
  margin-top: 4px;
}

/* Result date (for dynamic results) */
.result-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 40px;
}

/* Result score (for dynamic results) */
.result-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* Over/Under badges (for dynamic results) */
.result-badge--over {
  background: rgba(46, 204, 113, 0.1);
  color: var(--green);
}

.result-badge--under {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
}

/* ============================================
   ANIMATIONS & SCROLL REVEALS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ============================================
   ACCESSIBILITY — PREFERS-REDUCED-MOTION
   ============================================
   Disabilita tutte le animazioni/transizioni per utenti
   che hanno richiesto movimento ridotto nelle impostazioni OS.
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .confidence-fill {
    transition: none;
  }

  .matches-track {
    animation: none;
  }

  #particles {
    display: none;
  }

  .toast {
    transition: none;
  }

  .skeleton::after,
  .skeleton-line::after {
    animation: none;
  }

  .notif-badge {
    animation: none;
  }
}

/* ============================================
   RESPONSIVE
   ============================================
   4 breakpoint principali:

   >= 1200px (Desktop)
   - Container: max-width 1400px (da 1200px)
   - Hero content: max-width 1400px
   - FAQ: layout 2 colonne (header sticky a sx, accordion a dx)
   - Pricing grid: gap 40px (da 24px)

   <= 1024px (Tablet)
   - Pricing grid: da 3 colonne a 1 colonna centrata
   - Stats grid: da 4 colonne a 2x2
   - PRO card perde il transform:scale(1.05)

   <= 768px (Mobile)
   - Navbar: hamburger menu con overlay fullscreen
   - Hero: titolo ridotto, stats con gap minore
   - CTA hero: da riga a colonna
   - Tips/footer grid: single column
   - Result item: wrap con match name su riga intera

   <= 480px (Small mobile)
   - Hero stats: da orizzontale a verticale
   - Filter buttons: wrap su piu' righe
   - Footer: single column, copyright centrato
   ============================================ */

/* min-width exception: progressive enhancement for extra-large screens.
   These styles ADD layout enhancements above 1200px (wider container, 2-col
   FAQ, spacious pricing). Cannot convert to max-width without making 1400px
   the default and reverting at every smaller breakpoint. */
@media (min-width: 1200px) {
  /* Wider container on large screens */
  .container {
    max-width: 1400px;
  }

  /* Hero section — breathe on wide viewports */
  .hero-content {
    max-width: 1400px;
  }

  /* FAQ — 2-column: header left, accordion right */
  .faq-section > .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
  }

  .faq-section .section-header {
    text-align: left;
    margin-bottom: 0;
    position: sticky;
    top: 120px;
  }

  .faq-list {
    max-width: 100%;
    margin: 0;
    width: 100%;
  }

  /* Pricing — wider card spacing */
  .pricing-grid {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .pricing-card--pro {
    transform: none;
  }
  .pricing-card--pro:hover {
    transform: translateY(-4px);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Nav backdrop overlay (created dynamically by shared.js) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: calc(var(--z-navbar) + 1);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  /* iOS Safari: prevent scroll-through and touch events reaching the body */
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .nav-menu {
    display: flex;
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh; /* iOS Safari dynamic viewport — fallback above for older browsers */
    width: 100%;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: calc(var(--z-navbar) + 2);
    padding: 80px 24px 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.3s;
    /* iOS Safari: contain scrolling within the drawer */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Legacy mobile drawer: admin/partner pages use #navLinks.nav-links as the
     drawer element (no .nav-menu wrapper). Mirror the .nav-menu drawer styles
     so shared.js initMobileMenu() toggle still works on those pages. */
  #navLinks.nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: calc(var(--z-navbar) + 2);
    padding: 80px 24px 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.3s;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #navLinks.nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .nav-menu a:not(.btn),
  #navLinks.nav-links a:not(.btn) {
    font-size: 1.3rem;
    padding: 8px 16px;
    color: var(--white);
  }

  .nav-menu .btn,
  #navLinks.nav-links .btn {
    width: 220px;
    text-align: center;
    justify-content: center;
  }

  .nav-menu .lang-toggle,
  #navLinks.nav-links .lang-toggle {
    font-size: 1.2rem;
    padding: 10px 20px;
  }

  .hamburger {
    display: flex;
    grid-column: 3;
    justify-self: end;
    z-index: calc(var(--z-navbar) + 3);
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-value {
    font-size: 2rem;
  }

  .hero-stat-suffix {
    font-size: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .result-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .result-match {
    flex: none;
    width: 100%;
    order: -1;
  }

  .results-list {
    max-height: none;
    overflow-y: visible;
    scrollbar-gutter: stable;
  }

  .results-header {
    flex-direction: column;
    align-items: stretch;
  }

  .results-league-filter {
    width: 100%;
  }

  .chart {
    height: 150px;
  }

  .toast-container {
    right: 12px;
    left: 12px;
    bottom: 16px;
  }

  .toast {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .hero-stat-value {
    min-height: 2.4rem; /* adjusted for smaller 1.5rem font */
  }

  .tips-filters {
    flex-wrap: wrap;
  }

  .telegram-card {
    padding: 40px 24px;
  }

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

  .footer-copy {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .age-gate-card {
    padding: 32px 24px;
  }
}

/* ============================================
   AUTH PAGE
   ============================================ */
.auth-section {
  position: relative;
  z-index: var(--z-base);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  overflow: hidden;
}

.auth-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  top: -120px;
  right: -120px;
  pointer-events: none;
}

.auth-logo {
  text-align: center;
  color: var(--gold);
  margin-bottom: 28px;
  filter: drop-shadow(0 0 12px var(--gold-glow));
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-primary);
}

.auth-tab:hover:not(.active) {
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-group input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.auth-submit {
  margin-top: 8px;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-oauth {
  gap: 10px;
}

.auth-oauth:hover {
  border-color: var(--text-muted);
}

.auth-toggle {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-toggle a {
  color: var(--gold);
  font-weight: 600;
  transition: color 0.3s;
}

.auth-toggle a:hover {
  color: var(--gold-light);
}

.auth-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-align: center;
}

.auth-message--error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: var(--red);
}

.auth-message--success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: var(--green);
}

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
  }
}

/* ============================================
   DASHBOARD
   ============================================ */

.dash-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-main {
  position: relative;
  z-index: var(--z-base);
  min-height: calc(100vh - 160px);
  padding: 100px 0 60px;
}

.dash-footer {
  padding: 0;
}

.dash-footer .footer-copy {
  padding: 20px 0;
}

/* Dashboard Header */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.dash-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.dash-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.dash-tier-badge {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
}

.dash-tier-badge--pro {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--border-gold);
  color: var(--gold);
}

.dash-tier-badge--vip {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
  color: var(--bg-primary);
}

/* Dashboard Alert */
.dash-alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 500;
}

.dash-alert--success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: var(--green);
}

.dash-alert--error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: var(--red);
}

/* Dashboard Trial Banner */
.dash-trial-banner {
  padding: 16px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(26, 188, 156, 0.08));
  border: 1px solid rgba(46, 204, 113, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-trial-banner__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-trial-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green);
}

.dash-trial-banner__countdown {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dash-trial-banner__plan {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Dashboard Tabs */
.dash-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 32px;
  max-width: 400px;
}

.dash-tab {
  flex: 1;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.3s,
    background 0.3s;
  white-space: nowrap;
}

.dash-tab:hover:not(.active) {
  color: var(--text-secondary);
}

.dash-tab.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-primary);
}

/* Smooth fade-in for dashboard tab panels */
.dash-panel {
  animation: dashFadeIn 0.2s ease-out;
}

@keyframes dashFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Dashboard Tips Grid */
.dash-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.dash-tips-empty,
.dash-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.dash-tips-empty svg,
.dash-history-empty svg {
  opacity: 0.4;
}

.dash-tips-empty p,
.dash-history-empty p {
  font-size: 0.95rem;
}

.dash-tips-empty-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Dashboard Tip Card overrides */
.dash-tip-match {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dash-tip-team {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.dash-tip-vs {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.dash-tip-pred {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.dash-tip-odds-group {
  text-align: right;
}

/* Dashboard History */
.dash-history-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dash-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.dash-history-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--bg-card-hover);
}

.dash-history-status {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dash-history-status--won {
  background: rgba(46, 204, 113, 0.15);
  color: var(--green);
}

.dash-history-status--lost {
  background: rgba(231, 76, 60, 0.15);
  color: var(--red);
}

.dash-history-status--void {
  background: rgba(138, 138, 154, 0.15);
  color: var(--text-muted);
}

.dash-history-status--pending {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold);
}

.dash-history-match {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-history-teams {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-history-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-history-pred {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.dash-history-odds {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
}

.dash-history-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.dash-history-badge--won {
  background: rgba(46, 204, 113, 0.1);
  color: var(--green);
}

.dash-history-badge--lost {
  background: rgba(231, 76, 60, 0.1);
  color: var(--red);
}

.dash-history-badge--void {
  background: rgba(138, 138, 154, 0.1);
  color: var(--text-muted);
}

.dash-history-badge--pending {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
}

/* Dashboard Account */
/* ─── Profile Hero Banner ──────────────────────────────────── */
.profile-hero {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--bg-card) 0%,
    var(--bg-elevated) 50%,
    var(--bg-card) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin-bottom: 28px;
  overflow: hidden;
}

.profile-hero__glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.profile-hero__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(212, 168, 83, 0.2);
}

.profile-hero__initials {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-primary);
}

.profile-hero__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-hero__info {
  flex: 1;
  min-width: 0;
}

.profile-hero__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero__email {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-hero__badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.profile-hero__badge--pro {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.05));
  color: var(--gold);
  border-color: var(--border-gold);
}

.profile-hero__badge--vip {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.25), rgba(240, 208, 120, 0.1));
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 168, 83, 0.15);
}

.profile-hero__since {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Upgrade Plans Section ────────────────────────────────── */
.upgrade-section {
  margin-bottom: 28px;
}

.upgrade-section__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.upgrade-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.upgrade-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.3s,
    transform 0.2s;
}

.upgrade-card:hover {
  transform: translateY(-2px);
}

.upgrade-card--pro {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.04) 0%, var(--bg-card) 40%);
}

.upgrade-card--pro:hover {
  border-color: var(--gold-dark);
}

.upgrade-card--vip {
  border-color: var(--border);
}

.upgrade-card--vip:hover {
  border-color: var(--border-gold);
}

.upgrade-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.upgrade-card__tier {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.upgrade-card__popular {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.12);
  padding: 3px 10px;
  border-radius: 100px;
}

.upgrade-card__price {
  display: flex;
  align-items: baseline;
  margin-bottom: 20px;
}

.upgrade-card__currency {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 2px;
}

.upgrade-card__amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.upgrade-card__decimal {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.upgrade-card__period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.upgrade-card__features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.upgrade-card__features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}

.upgrade-card__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
}

.upgrade-card__btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.upgrade-card--pro .upgrade-card__btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-primary);
  box-shadow: 0 2px 16px rgba(212, 168, 83, 0.25);
}

.upgrade-card--pro .upgrade-card__btn:hover {
  box-shadow: 0 4px 24px rgba(212, 168, 83, 0.4);
  transform: translateY(-1px);
}

.upgrade-card--vip .upgrade-card__btn {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.upgrade-card--vip .upgrade-card__btn:hover {
  background: rgba(212, 168, 83, 0.08);
  border-color: var(--gold);
}

.upgrade-card__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Manage Subscription Row ──────────────────────────────── */
.manage-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.manage-sub-row__info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.manage-sub-row__status {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

.manage-sub-row__renewal {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── Account Cards Grid ───────────────────────────────────── */
.dash-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.dash-account-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.dash-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.dash-card-title svg {
  color: var(--gold);
  flex-shrink: 0;
}

.dash-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dash-sub-row:last-child {
  border-bottom: none;
}

.dash-sub-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dash-sub-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-sub-value--active {
  color: var(--green);
}

.dash-sub-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* Dashboard Telegram Status */
.dash-telegram-status {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.dash-telegram-status--linked {
  color: var(--green);
}

/* ── Bankroll Calculator ─────────────────── */
.bankroll-calc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bankroll-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bankroll-results {
  margin-top: 0.5rem;
}

.bankroll-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.bankroll-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.bankroll-summary-row strong {
  color: var(--gold);
}

.bankroll-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bankroll-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.bankroll-table th,
.bankroll-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.bankroll-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bankroll-table td {
  color: var(--text-secondary);
}

.bankroll-stake-cell {
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-display);
}

/* Dashboard Responsive */
@media (max-width: 768px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-tabs {
    max-width: 100%;
  }

  .dash-tips-grid {
    grid-template-columns: 1fr;
  }

  .dash-history-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .dash-history-match {
    flex: none;
    width: calc(100% - 42px);
  }

  .dash-history-pred,
  .dash-history-odds {
    margin-left: 42px;
  }

  .dash-account-grid {
    grid-template-columns: 1fr;
  }

  .upgrade-plans {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    padding: 24px 20px;
  }

  .profile-hero__avatar {
    width: 56px;
    height: 56px;
  }

  .profile-hero__initials {
    font-size: 1.2rem;
  }

  .profile-hero__name {
    font-size: 1.15rem;
  }

  .manage-sub-row {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .dash-history-filters {
    gap: 6px;
  }

  .dash-history-filters .filter-btn {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .profile-hero__content {
    flex-direction: column;
    text-align: center;
  }

  .profile-hero__meta {
    justify-content: center;
  }

  .upgrade-card {
    padding: 24px 20px;
  }

  .bankroll-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .bankroll-table {
    font-size: 0.75rem;
  }

  .bankroll-table th,
  .bankroll-table td {
    padding: 0.4rem;
  }
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-main {
  position: relative;
  z-index: var(--z-base);
  padding: 100px 0 60px;
  min-height: calc(100vh - 80px);
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.legal-section li {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 20px;
  margin-bottom: 6px;
}

.legal-section li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.legal-section a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--gold-light);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-gold);
}

.legal-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-modal);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: none;
  animation: slideUp 0.4s ease-out;
}

.cookie-banner.visible {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  min-width: 200px;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  font-size: 0.8rem;
  padding: 10px 20px;
}

@media (max-width: 480px) {
  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

/* ============================================
   Sticky CTA (mobile only) + Pricing Reassurance
   z-index scale: content(2) → dropdown(50) → navbar(1000)
   → sticky-cta(1500) → cookie-banner(2000) → toast(9999)
   ============================================ */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  display: none;
  padding: 14px 20px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out;
  will-change: transform;
}

.sticky-cta--visible {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pricing-reassurance {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
}

/* ============================================
   PHASE 1-3: Dashboard UX Enhancements
   ============================================ */

/* ─── Dashboard Header Right ────────────────── */

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Streak Display ────────────────────────── */

.dash-streak {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 20px;
  padding: 6px 12px;
  font-family: var(--font-display);
}

.streak-flame {
  font-size: 1.1rem;
  line-height: 1;
}

.streak-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

/* ─── Streak Celebration ────────────────────── */

.streak-celebration {
  text-align: center;
  padding: 12px 20px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.05));
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: var(--radius-md);
  animation: streakPulse 2s ease-out forwards;
}

.streak-celebration-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
}

@keyframes streakPulse {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  20% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── Notification Bell ─────────────────────── */

.dash-notif-bell {
  position: relative;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding: 4px;
  background: none;
  border: none;
  font: inherit;
}

.dash-notif-bell:hover {
  color: var(--gold);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: notif-pulse 2s ease-in-out infinite;
}

@keyframes notif-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
  }
}

/* ─── Notification Dropdown ─────────────────── */

.notif-dropdown {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 340px;
  max-height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: calc(var(--z-navbar) + 1);
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0;
}

.notif-mark-all:hover {
  text-decoration: underline;
}

.notif-dropdown-list {
  overflow-y: auto;
  max-height: 340px;
  padding: 8px 0;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notif-item--unread {
  background: rgba(212, 168, 83, 0.05);
}

.notif-item--unread::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.notif-item-body {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-item-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.notif-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ─── Dashboard League Selector ─────────────── */

.dash-league-selector {
  margin-bottom: 20px;
  transition: opacity 0.2s ease;
}

.dash-league-selector[inert] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dash-league-selector .league-selector {
  justify-content: flex-start;
}

/* ─── Pull to Refresh ───────────────────────── */

.ptr-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.ptr-indicator.active {
  height: 50px;
}

.ptr-indicator .loading-spinner {
  width: 24px;
  height: 24px;
}

/* ─── Tips Countdown ────────────────────────── */

.tips-countdown {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

/* ─── Tip of the Day Highlight ──────────────── */

.tip-card--highlighted {
  border-color: var(--gold) !important;
  box-shadow:
    0 0 20px rgba(212, 168, 83, 0.2),
    0 0 40px rgba(212, 168, 83, 0.1);
}

.tip-of-day-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* ─── Expandable Tip Cards ──────────────────── */

.tip-card-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 10px;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-top: 12px;
}

.tip-card-expand-btn:hover {
  color: var(--gold);
}

.tip-card-expand-btn .chevron {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.7rem;
}

.tip-card-expand-btn.expanded .chevron {
  transform: rotate(180deg);
}

.tip-card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.tip-card-details.open {
  max-height: 600px;
}

.tip-card-details-inner {
  padding: 16px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Form Dots (W/D/L) ────────────────────── */

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

.form-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-team-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-dots {
  display: flex;
  gap: 4px;
}

.form-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
}

.form-dot--W {
  background: var(--green);
}

.form-dot--D {
  background: var(--gold);
  color: var(--bg-primary);
}

.form-dot--L {
  background: var(--red);
}

/* ─── H2H Section ───────────────────────────── */

.h2h-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h2h-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.h2h-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h2h-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.05);
}

.h2h-bar-home {
  background: var(--green);
  transition: width 0.6s ease;
}

.h2h-bar-draw {
  background: var(--gold);
  transition: width 0.6s ease;
}

.h2h-bar-away {
  background: var(--red);
  transition: width 0.6s ease;
}

.h2h-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.h2h-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.h2h-stat-value {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-secondary);
}

/* ─── Bet Follow Button ─────────────────────── */

.bet-follow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bet-follow-btn:hover {
  background: rgba(212, 168, 83, 0.2);
}

.bet-follow-btn.followed {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

/* ─── Favorite Team Highlight ───────────────── */

.tip-card--favorite {
  position: relative;
}

.tip-card--favorite::after {
  content: '\2605';
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--gold);
  font-size: 1.1rem;
}

/* ─── Started / Past Match Card ────────────── */

.tip-card--started {
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
}

.tip-card--started:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.06);
}

.tip-card--started .confidence-fill {
  background: var(--text-muted);
}

.tip-started-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.tip-status-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.tip-status-label--won {
  color: var(--green-light);
  background: rgba(74, 222, 128, 0.1);
}

.tip-status-label--lost {
  color: var(--red-light);
  background: rgba(248, 113, 113, 0.1);
}

.tip-status-label--void {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

/* Score between teams */
.dash-tip-score {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 8px;
  letter-spacing: 0.05em;
}

.tip-card--started .dash-tip-score {
  color: var(--text-secondary);
}

/* Won card: subtle green left border */
.tip-card--won {
  border-left: 3px solid rgba(74, 222, 128, 0.4);
}

/* Lost card: subtle red left border */
.tip-card--lost {
  border-left: 3px solid rgba(248, 113, 113, 0.3);
}

/* ─── League Badge (All Leagues View) ─────── */

.tip-league-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* ─── Preferences Card ──────────────────────── */

.pref-section {
  margin-bottom: 20px;
}

.pref-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.pref-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ─── Toggle Switches ───────────────────────── */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: background 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gold);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--bg-primary);
}

/* ─── Team Selector ─────────────────────────── */

.team-selector {
  position: relative;
}

.team-search-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.team-search-input::placeholder {
  color: var(--text-muted);
}

.team-search-input:focus {
  border-color: var(--gold);
}

.team-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 180px;
  overflow-y: auto;
  z-index: var(--z-dropdown);
}

.team-search-option {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.team-search-option:hover {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
}

/* ─── Team Chips ────────────────────────────── */

.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  color: var(--gold);
}

.team-chip-remove {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.team-chip-remove:hover {
  opacity: 1;
}

/* ─── Pref Save Status ──────────────────────── */

.pref-save-status {
  font-size: 0.8rem;
  color: var(--gold);
  text-align: center;
  min-height: 20px;
  transition: opacity 0.3s ease;
}

/* ─── Dashboard Chart Container ─────────────── */

.dash-chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.dash-chart-container .chart-title {
  margin-bottom: 20px;
}

.dash-chart-container .chart {
  height: 160px;
}

/* ─── Chart Tooltip ─────────────────────────── */

.chart-tooltip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: var(--z-dropdown);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.chart-tooltip.visible {
  opacity: 1;
}

.chart-bar:hover .chart-tooltip {
  opacity: 1;
}

/* ─── History Favorites Filter ──────────────── */

.filter-btn[data-status='favorites'] {
  position: relative;
}

.filter-btn[data-status='favorites']::before {
  content: '\2605';
  margin-right: 4px;
  color: var(--gold);
}

/* ─── Responsive: Phase 1-3 ─────────────────── */

@media (max-width: 768px) {
  .notif-dropdown {
    right: 10px;
    left: 10px;
    width: auto;
  }

  .dash-league-selector .league-selector {
    gap: 6px;
  }

  .dash-league-selector .league-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .dash-chart-container .chart {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .dash-header-right {
    gap: 8px;
  }

  .dash-streak {
    padding: 4px 8px;
  }

  .streak-count {
    font-size: 0.8rem;
  }
}

/* ============================================
   TIERED ACCESS — Locked Cards
   ============================================ */

/* Locked tip card: desaturated with reduced opacity */
.tip-card--locked {
  opacity: 0.7;
  filter: saturate(0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tip-card--locked:hover {
  opacity: 0.85;
  filter: saturate(0.6);
  transform: translateY(-2px);
}

/* Locked overlay: enhanced with benefit list */
.locked-overlay-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.locked-benefits {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  text-align: left;
  width: 100%;
}

.locked-benefits li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 3px 0;
  line-height: 1.4;
}

/* ============================================
   TIER COMPARISON STRIP
   ============================================ */

.tier-comparison {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0;
}

.tier-comparison-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
}

.tier-comparison-card--pro {
  border-color: rgba(212, 168, 83, 0.2);
  background: linear-gradient(135deg, var(--bg-card), rgba(212, 168, 83, 0.03));
}

.tier-comparison-card--vip {
  border-color: rgba(212, 168, 83, 0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(212, 168, 83, 0.06));
}

.tier-comparison-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 4px;
}

.tier-comparison-badge--free {
  background: rgba(46, 204, 113, 0.1);
  color: var(--green);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.tier-comparison-badge--pro {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.tier-comparison-badge--vip {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-primary);
}

.tier-comparison-value {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tier-comparison-detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.tier-comparison-price {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .tier-comparison {
    flex-direction: column;
    gap: 8px;
  }

  .tier-comparison-card {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .tier-comparison-detail {
    display: none;
  }
}

/* ============================================
   AUTH PAGE — Google-only layout
   ============================================ */

.auth-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 28px;
}

.auth-footer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}

.auth-footer-text a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}

.auth-footer-text a:hover {
  color: var(--gold-light);
}

/* ============================================
   CONSENT CHECKBOXES (Auth + Dashboard)
   ============================================ */

.auth-consents {
  margin-top: 20px;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.consent-checkbox + .consent-checkbox {
  margin-top: 10px;
}

.consent-checkbox:hover {
  border-color: var(--text-muted);
}

.consent-checkbox input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--text-muted);
  border-radius: 4px;
  background: var(--bg-elevated);
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.2s;
}

.consent-checkbox input[type='checkbox']:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.consent-checkbox input[type='checkbox']:checked::after {
  content: '\2713';
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: var(--bg-primary);
  font-weight: 700;
}

.consent-checkbox span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.consent-checkbox span a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-checkbox span a:hover {
  color: var(--gold-light);
}

.consent-checkbox--error {
  border-color: var(--red);
  background: rgba(231, 76, 60, 0.05);
}

.upgrade-recesso {
  margin-top: 16px;
}

/* ============================================
   TELEGRAM DISCLOSURE (Dashboard)
   ============================================ */

.dash-telegram-disclosure {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.dash-telegram-disclosure a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dash-telegram-disclosure a:hover {
  color: var(--gold-light);
}

/* ============================================
   DASHBOARD — Settings Button
   ============================================ */

.dash-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dash-settings-btn:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  background: rgba(212, 168, 83, 0.05);
}

.dash-settings-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
}

.dash-settings-btn svg {
  transition: transform 0.4s ease;
}

.dash-settings-btn:hover svg,
.dash-settings-btn.active svg {
  transform: rotate(60deg);
}

/* ============================================
   ISSUE #29 — UI Enhancements
   ============================================ */

/* Hero CTA button — black uppercase text */
.btn-cta-hero {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--black);
}

/* Stat card explainer — small text below the label */
.stat-explainer {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.7;
  line-height: 1.4;
}

/* Language toggle button in navbar */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   SCHEDINE (Betting Slips) Tab
   ============================================ */

/* Budget summary bar */
.schedine-budget-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-bottom: 24px;
}

.budget-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.budget-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.budget-stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.budget-stat-value--stake {
  color: var(--text-primary);
}

.budget-stat-value--reserve {
  color: var(--green);
}

/* Date picker row */
.schedine-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.schedine-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.schedine-date-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 83, 0.05);
}

.schedine-date-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 120px;
  text-align: center;
}

/* Schedine grid */
.schedine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Individual schedina card */
.schedina-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.schedina-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

/* Risk-level specific borders */
.schedina-card--sicura {
  border-color: rgba(46, 204, 113, 0.2);
}

.schedina-card--sicura .schedina-risk-badge {
  background: rgba(46, 204, 113, 0.1);
  color: var(--green);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.schedina-card--equilibrata {
  border-color: rgba(212, 168, 83, 0.2);
}

.schedina-card--equilibrata .schedina-risk-badge {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.schedina-card--azzardo {
  border-color: rgba(231, 76, 60, 0.2);
}

.schedina-card--azzardo .schedina-risk-badge {
  background: rgba(231, 76, 60, 0.1);
  color: var(--red);
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Schedina header */
.schedina-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.schedina-risk-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
}

.schedina-status-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.schedina-status-badge--pending {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
}

.schedina-status-badge--won {
  color: var(--green);
  background: rgba(46, 204, 113, 0.1);
}

.schedina-status-badge--lost {
  color: var(--red);
  background: rgba(231, 76, 60, 0.1);
}

/* Schedina stats row (odds, stake, return) */
.schedina-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.schedina-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.schedina-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.schedina-stat-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.schedina-stat-value--odds {
  color: var(--gold);
}

.schedina-stat-value--return {
  color: var(--green);
}

/* Confidence avg */
.schedina-confidence {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.schedina-confidence .confidence-bar {
  flex: 1;
}

.schedina-confidence .confidence-value {
  min-width: 36px;
  text-align: right;
}

/* Strategy text */
.schedina-strategy {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border-left: 2px solid var(--gold);
}

/* Tips list within schedina */
.schedina-tips-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedina-tip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.schedina-tip-item:hover {
  background: var(--bg-card-hover);
}

.schedina-tip-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.1);
}

.schedina-tip-match {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedina-tip-pick {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.schedina-tip-odds {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
}

/* Schedina expand button */
.schedina-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 10px;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-top: 12px;
}

.schedina-expand-btn:hover {
  color: var(--gold);
}

.schedina-expand-btn .chevron {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.7rem;
}

.schedina-expand-btn.expanded .chevron {
  transform: rotate(180deg);
}

.schedina-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.schedina-details.open {
  max-height: 800px;
}

.schedina-details-inner {
  padding: 16px 0 4px;
}

/* Empty + upgrade states */
.schedine-empty,
.schedine-upgrade {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.schedine-empty svg,
.schedine-upgrade svg {
  opacity: 0.4;
}

.schedine-empty p,
.schedine-upgrade p {
  font-size: 0.95rem;
  max-width: 400px;
}

.schedine-empty-sub {
  font-size: 0.85rem;
  opacity: 0.7;
}

.schedine-upgrade h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================
   RISK PROFILE — Preferences Inputs
   ============================================ */

.pref-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pref-field-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pref-select {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 140px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238a8a9a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.pref-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.pref-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pref-input {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100px;
  text-align: right;
}

.pref-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.pref-input-suffix {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================
   STAKE & NOTES — Tip Card Expansion
   ============================================ */

.bet-tracking-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.bet-tracking-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bet-tracking-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 50px;
}

.bet-stake-input {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  width: 80px;
  text-align: right;
  transition: border-color 0.2s ease;
}

.bet-stake-input:focus {
  border-color: var(--gold);
}

.bet-notes-input {
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  min-height: 36px;
  max-height: 80px;
  width: 100%;
  transition: border-color 0.2s ease;
}

.bet-notes-input:focus {
  border-color: var(--gold);
}

.bet-save-btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: var(--radius-sm);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bet-save-btn:hover {
  background: rgba(212, 168, 83, 0.2);
}

/* P&L summary badge in header */
.dash-pnl {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.dash-pnl--positive {
  color: var(--green);
  border-color: rgba(46, 204, 113, 0.3);
  background: rgba(46, 204, 113, 0.05);
}

.dash-pnl--negative {
  color: var(--red);
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.05);
}

/* ============================================
   ACTIVITY STATS — Dashboard Header
   ============================================ */

.dash-activity-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.activity-stat-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.activity-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ============================================
   Responsive — New Features
   ============================================ */

@media (max-width: 768px) {
  .schedine-budget-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
  }

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

  .schedina-stats {
    flex-wrap: wrap;
    gap: 8px;
  }

  .schedina-stat {
    min-width: calc(33% - 8px);
  }

  .pref-field-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pref-select,
  .pref-input {
    width: 100%;
  }

  .pref-input-group {
    width: 100%;
  }

  .pref-input-group .pref-input {
    flex: 1;
  }

  .dash-activity-stats {
    gap: 6px;
  }

  .activity-stat {
    padding: 3px 8px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .schedine-date-row {
    gap: 12px;
  }

  .budget-stat-value {
    font-size: 1.1rem;
  }
}

/* ─── Fantacalcio Hub ──────────────────────────────────────────────────────── */

.fantacalcio-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.fantacalcio-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.fantacalcio-week-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 20px;
  padding: 2px 10px;
  letter-spacing: 0.04em;
}

.fantacalcio-section {
  margin-bottom: 32px;
}

.fantacalcio-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fantacalcio-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.fantacalcio-pick-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.fantacalcio-pick-card:hover {
  border-color: rgba(212, 168, 83, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fantacalcio-rank {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.fantacalcio-role {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
}

.fantacalcio-role--p {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green-light);
}
.fantacalcio-role--d {
  background: rgba(96, 165, 250, 0.15);
  color: var(--blue);
}
.fantacalcio-role--c {
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber);
}
.fantacalcio-role--a {
  background: rgba(248, 113, 113, 0.15);
  color: var(--red-light);
}

.fantacalcio-player-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.fantacalcio-team {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.fantacalcio-ownership {
  font-size: 0.72rem;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  border-radius: 10px;
  padding: 2px 8px;
  width: fit-content;
}

.fantacalcio-expected-pts {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.fantacalcio-conf-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.fantacalcio-conf-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.5s ease;
}

.fantacalcio-reasoning {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

/* Upgrade gate inside Fantacalcio */
.fantacalcio-upgrade-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.fantacalcio-upgrade-gate p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Market grid (buy/sell) */
.fantacalcio-market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fantacalcio-market-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.fantacalcio-market-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.fantacalcio-market-buy .fantacalcio-market-col-title {
  color: var(--green-light);
}
.fantacalcio-market-sell .fantacalcio-market-col-title {
  color: var(--red-light);
}

.fantacalcio-market-item {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.fantacalcio-market-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Tier badges inside Fantacalcio */
.tier-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: auto;
}

.tier-badge--free {
  background: rgba(148, 163, 184, 0.15);
  color: var(--slate);
}
.tier-badge--pro {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold);
}
.tier-badge--vip {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}

@media (max-width: 480px) {
  .fantacalcio-picks-grid {
    grid-template-columns: 1fr;
  }

  .fantacalcio-market-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CENTRO SCOMMESSE HUB (Partner B2B)
   ============================================ */

/* Badge partner */
.dash-tier-badge--partner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
}

/* Header sezione */
.centro-hub-header {
  margin-bottom: 1.5rem;
}

.centro-hub-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.centro-hub-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Stato vuoto */
.centro-hub-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Card singola partita */
.centro-fixture-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.centro-fixture-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.centro-fixture-teams {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.centro-fixture-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Badge tip WinningBet */
.centro-fixture-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.825rem;
}

.centro-tip-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.centro-tip-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* Wrapper scrollabile per la tabella */
.centro-odds-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Tabella quote */
.centro-odds-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 0.85rem;
}

.centro-odds-th {
  padding: 0.5rem 0.6rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.centro-odds-th:first-child {
  text-align: left;
  min-width: 120px;
}

.centro-odds-td {
  padding: 0.45rem 0.6rem;
  text-align: center;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.centro-odds-td--name {
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.centro-odds-td--empty {
  color: var(--text-muted, rgba(255, 255, 255, 0.25));
}

/* Cella con la quota migliore */
.centro-odds-best {
  color: var(--green);
  font-weight: 700;
  background: var(--green-glow);
}

/* Riga "Best" riepilogativa */
.centro-odds-best-row td {
  background: rgba(46, 204, 113, 0.05);
  border-top: 1px solid rgba(46, 204, 113, 0.2);
  font-weight: 600;
}

.centro-odds-best-row .centro-odds-td--name {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Ultima riga senza bordo in fondo */
.centro-odds-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   PARTNER EARNINGS DASHBOARD
   ============================================ */

.partner-earnings {
  margin-bottom: 2rem;
}

.partner-earnings__header {
  margin-bottom: 1.5rem;
}

.partner-earnings__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.partner-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.partner-stat-card__icon {
  font-size: 1.5rem;
}

.partner-stat-card__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.partner-stat-card__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.partner-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.partner-earnings__referral {
  margin-bottom: 2rem;
}

.partner-referral-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.partner-referral-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: monospace;
}

/* ─── User Referral Card ─────────────────────────────────────── */

.referral-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.referral-link-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.referral-link-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: monospace;
}

.referral-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.referral-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.referral-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.referral-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

#partnerQrCanvas {
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.partner-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.partner-history-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.partner-history-table td {
  padding: 0.6rem 0.75rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.partner-history-table tbody tr:last-child td {
  border-bottom: none;
}

.centro-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ============================================
   PARTNER LANDING PAGE (business.html)
   ============================================ */

/* --- Partner Hero --- */
.partner-hero {
  min-height: 80vh;
}

/* --- Partner Benefits Section --- */
.partner-benefits-section {
  position: relative;
  z-index: var(--z-base);
  padding: 100px 0;
  background: var(--bg-secondary);
}

.partner-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.partner-benefit-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.partner-benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.partner-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  margin-bottom: 20px;
}

.partner-benefit-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.partner-benefit-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Partner Form Section --- */
.partner-form-section {
  position: relative;
  z-index: var(--z-base);
  padding: 100px 0;
}

.partner-form-wrapper {
  max-width: 560px;
  margin: 0 auto;
}

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

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

.partner-form label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-required {
  color: var(--gold);
}

.partner-form input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color 0.3s;
  outline: none;
  width: 100%;
}

.partner-form input::placeholder {
  color: var(--text-muted);
}

.partner-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Inline field-level error state */
.form-group.has-error label {
  color: var(--red);
}

.form-group.has-error .form-required {
  color: var(--red);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--red);
}

.form-group.has-error .form-hint {
  color: var(--red);
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Form error message */
.partner-form-error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: var(--red);
}

/* --- Auth Prompt (non-logged-in users) --- */
.partner-auth-prompt {
  text-align: center;
  padding: 3rem 2rem;
}

.partner-auth-prompt-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
}

.partner-auth-prompt-icon {
  color: var(--gold);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 12px var(--gold-glow));
}

.partner-auth-prompt-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.partner-auth-prompt-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* --- Application Status Card --- */
.partner-status-wrapper {
  max-width: 560px;
  margin: 0 auto;
}

.partner-status {
  text-align: center;
  padding: 48px 36px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color 0.3s;
}

.partner-status--pending {
  border-color: var(--gold);
}

.partner-status--approved {
  border-color: var(--green);
}

.partner-status--rejected {
  border-color: var(--red);
}

.partner-status--revoked {
  border-color: var(--text-muted);
}

.partner-status-icon {
  color: var(--gold);
  margin-bottom: 20px;
}

.partner-status-icon--approved {
  color: var(--green);
}

.partner-status-icon--rejected {
  color: var(--red);
}

.partner-status-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.partner-status-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.partner-status-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.partner-status-details:last-of-type {
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.partner-status-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.partner-status-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* VIES validation badge */
.partner-vies-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.partner-vies-badge--valid {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: var(--green);
}

.partner-vies-badge--invalid {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: var(--red);
}

/* --- Partner Landing Responsive --- */
@media (max-width: 768px) {
  .partner-benefits-grid {
    grid-template-columns: 1fr;
  }

  .partner-hero {
    min-height: 70vh;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partner-status {
    padding: 36px 24px;
  }

  .partner-auth-prompt-card {
    padding: 36px 24px;
  }

  .partner-status-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .partner-benefits-section,
  .partner-form-section {
    padding: 60px 0;
  }

  .partner-benefit-card {
    padding: 24px 20px;
  }
}

/* ============================================
   Admin Panel
   ============================================
   Pannello amministrazione: candidature partner e gestione utenti.
   ============================================ */

/* --- Admin Filter Bar --- */
.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.admin-filter-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.admin-filter-btn:hover {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-filter-btn--active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-primary);
  border-color: var(--gold);
}

/* --- Admin List Container --- */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Admin Application Card --- */
.admin-app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.admin-app-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.admin-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-app-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* --- Admin Status Badge --- */
.admin-status-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-status-badge--pending {
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: var(--gold);
}

.admin-status-badge--approved {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: var(--green);
}

.admin-status-badge--rejected {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: var(--red);
}

.admin-status-badge--revoked {
  background: rgba(85, 85, 106, 0.15);
  border: 1px solid rgba(85, 85, 106, 0.3);
  color: var(--text-muted);
}

/* --- Admin Detail Rows --- */
.admin-app-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-detail-row:last-child {
  border-bottom: none;
}

.admin-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.admin-detail-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: right;
}

.admin-detail-row--reason .admin-detail-value {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 400;
  font-family: var(--font-body);
}

/* --- Admin VIES Badge --- */
.admin-vies-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

.admin-vies-badge--valid {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: var(--green);
}

.admin-vies-badge--invalid {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: var(--red);
}

/* --- Admin Link --- */
.admin-link {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.admin-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* --- Admin Actions --- */
.admin-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* --- Admin Buttons --- */
.admin-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.admin-btn--approve {
  background: rgba(46, 204, 113, 0.15);
  color: var(--green);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.admin-btn--approve:hover {
  background: rgba(46, 204, 113, 0.25);
}

.admin-btn--danger {
  background: rgba(231, 76, 60, 0.15);
  color: var(--red);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.admin-btn--danger:hover {
  background: rgba(231, 76, 60, 0.25);
}

.admin-btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.admin-btn--secondary:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-btn--sm {
  padding: 6px 14px;
  font-size: 0.75rem;
}

/* --- Admin Stats Bar --- */
.admin-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.admin-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stat--pro .admin-stat-value {
  color: var(--gold);
}

.admin-stat--vip .admin-stat-value {
  color: var(--gold-light);
}

.admin-stat--partner .admin-stat-value {
  color: var(--telegram);
}

/* --- Admin Search --- */
.admin-search {
  margin-bottom: 24px;
}

.admin-search-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s;
}

.admin-search-input::placeholder {
  color: var(--text-muted);
}

.admin-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* --- Admin User Card --- */
.admin-user-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.admin-user-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-user-name-block {
  min-width: 0;
}

.admin-user-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-user-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* --- Admin Tier Badges --- */
.admin-tier-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-tier-badge--free {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.admin-tier-badge--pro {
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.admin-tier-badge--vip {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 1px solid var(--gold);
  color: var(--bg-primary);
}

/* --- Admin Role Badges --- */
.admin-role-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-role-badge--partner {
  background: rgba(34, 158, 217, 0.15);
  border: 1px solid rgba(34, 158, 217, 0.3);
  color: var(--telegram);
}

.admin-role-badge--admin {
  background: rgba(239, 83, 80, 0.1);
  border: 1px solid rgba(239, 83, 80, 0.2);
  color: var(--red);
}

/* --- Admin User Meta --- */
.admin-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Admin User Actions --- */
.admin-user-actions {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.admin-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-select-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-select {
  padding: 6px 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s;
}

.admin-select:focus {
  border-color: var(--gold);
}

/* --- Admin Modal --- */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 20px;
}

.admin-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
}

.admin-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.admin-modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.admin-modal-content textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  margin-bottom: 20px;
  transition: border-color 0.3s;
}

.admin-modal-content textarea::placeholder {
  color: var(--text-muted);
}

.admin-modal-content textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* --- Admin Empty State --- */
.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.admin-empty svg {
  opacity: 0.4;
}

/* --- Admin Loading State --- */
.admin-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Admin Pagination --- */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.admin-pagination-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-pagination-btns {
  display: flex;
  gap: 8px;
}

/* --- Admin 403 Forbidden State --- */
.admin-forbidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 60vh;
  text-align: center;
  color: var(--text-muted);
}

.admin-forbidden-icon {
  font-size: 4rem;
  opacity: 0.5;
}

.admin-forbidden h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-forbidden p {
  font-size: 1rem;
  max-width: 400px;
}

/* --- Admin Panel Responsive --- */
@media (max-width: 768px) {
  .admin-stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .admin-detail-value {
    text-align: left;
  }

  .admin-user-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-user-actions {
    flex-direction: column;
    gap: 12px;
  }

  .admin-actions {
    flex-direction: column;
  }

  .admin-btn {
    width: 100%;
    text-align: center;
  }

  .admin-pagination {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .admin-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-app-card,
  .admin-user-card {
    padding: 16px;
  }

  .admin-filter-bar {
    gap: 6px;
  }

  .admin-filter-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ─── Onboarding Modal ────────────────────────────────────────────────────── */

.onboarding-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: onboardingFadeIn 0.25s ease;
}

@keyframes onboardingFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.onboarding-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    var(--shadow-gold);
  overflow: hidden;
  animation: onboardingSlideUp 0.3s ease;
}

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

.onboarding-header {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-bottom: 1px solid var(--border);
  padding: 24px 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.onboarding-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.onboarding-step-dots {
  display: flex;
  gap: 6px;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition:
    background 0.2s,
    border-color 0.2s;
}

.onboarding-dot.active {
  background: var(--gold);
  border-color: var(--gold);
}

.onboarding-body {
  padding: 32px 28px 28px;
}

.onboarding-step {
  display: none;
}

.onboarding-step.visible {
  display: block;
}

.onboarding-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 0;
}

.onboarding-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.onboarding-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.onboarding-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.onboarding-highlight {
  background: rgba(212, 168, 83, 0.08);
  border-left: 3px solid var(--border-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.onboarding-highlight strong {
  color: var(--gold);
}

.onboarding-footer {
  padding: 0 28px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.onboarding-skip {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.onboarding-skip:hover {
  color: var(--text-secondary);
}

.onboarding-next {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.onboarding-next:hover {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .onboarding-modal {
    border-radius: var(--radius-lg);
  }
  .onboarding-body,
  .onboarding-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .onboarding-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* =========================================================================
   TRACK RECORD PAGE
   ========================================================================= */

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.tr-hero {
  min-height: 70vh;
  padding-bottom: 40px;
}

.tr-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.tr-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tr-hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.tr-hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ── Sections shared ───────────────────────────────────────────────────────── */

.tr-leagues-section,
.tr-recent-section {
  padding: 80px 0;
}

.tr-leagues-section {
  background: var(--bg-secondary);
}

/* ── League cards ──────────────────────────────────────────────────────────── */

.tr-leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tr-leagues-loading,
.tr-results-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.95rem;
}

.tr-league-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.tr-league-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.tr-league-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tr-league-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tr-league-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tr-league-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.tr-league-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tr-league-stat-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tr-league-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tr-league-stat-value.tr-positive {
  color: var(--green);
}

.tr-league-stat-value.tr-negative {
  color: var(--red);
}

.tr-league-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.tr-league-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  transition: width 0.8s ease-out;
}

/* ── Results table ─────────────────────────────────────────────────────────── */

.tr-results-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tr-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tr-results-table thead {
  border-bottom: 1px solid var(--border);
}

.tr-results-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.tr-results-table td {
  padding: 14px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.tr-results-table tbody tr {
  transition: background 0.15s;
}

.tr-results-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.tr-status-badge {
  font-size: 1.1rem;
}

.tr-won td:first-child {
  border-left: 3px solid var(--green);
}

.tr-lost td:first-child {
  border-left: 3px solid var(--red);
}

/* ── CTA section ───────────────────────────────────────────────────────────── */

.tr-cta-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.tr-cta-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-gold);
}

.tr-cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.tr-cta-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.tr-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Empty / error states ──────────────────────────────────────────────────── */

.tr-empty,
.tr-error {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.95rem;
}

.tr-error {
  color: var(--red);
}

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

@media (max-width: 768px) {
  .tr-hero {
    min-height: auto;
    padding: 120px 20px 40px;
  }

  .tr-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 36px;
  }

  .tr-leagues-section,
  .tr-recent-section {
    padding: 60px 0;
  }

  .tr-leagues-grid {
    grid-template-columns: 1fr;
  }

  .tr-results-table th,
  .tr-results-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .tr-cta-card {
    padding: 40px 24px;
  }

  .tr-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .tr-cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Responsive table: card layout on mobile */
  .tr-results-table thead {
    display: none;
  }

  .tr-results-table tbody tr {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    padding: 16px;
  }

  .tr-results-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: none;
    white-space: normal;
  }

  .tr-results-table td::before {
    content: attr(data-label);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 12px;
  }

  .tr-won td:first-child,
  .tr-lost td:first-child {
    border-left: none;
  }

  .tr-results-table tbody tr.tr-won {
    border-left: 3px solid var(--green);
  }

  .tr-results-table tbody tr.tr-lost {
    border-left: 3px solid var(--red);
  }
}

@media (max-width: 480px) {
  .tr-hero-stat-value {
    font-size: 1.6rem;
  }
}

/* ============================================
   Pronostici — Shared Styles (Hero, CTA)
   ============================================ */

.pronostici-hero {
  padding: 140px 0 40px;
  text-align: center;
  background: var(--bg-primary);
}

.pronostici-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.pronostici-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.pronostici-summary {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.summary-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.pronostici-tips-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.pronostici-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.pronostici-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-primary);
}

.pronostici-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pronostici-cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 28px;
}

.pronostici-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Pronostici — Tip Cards ──────────────────────────────────────────────── */

.pron-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease;
}

.pron-card:hover {
  border-color: var(--gold);
}

.pron-card--locked {
  opacity: 0.85;
}

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

.pron-card-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pron-card-tier {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.pron-card-tier--free {
  background: rgba(76, 175, 80, 0.15);
  color: var(--green);
}

.pron-card-tier--pro {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.pron-card-tier--vip {
  background: rgba(156, 39, 176, 0.15);
  color: #ce93d8;
}

.pron-card-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.pron-card-team {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pron-card-vs {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.pron-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pron-card-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pron-card-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pron-card-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.pron-card-prediction {
  color: var(--gold);
}

.pron-card-odds {
  color: var(--text-primary);
}

.pron-card-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pron-card-lock-icon {
  font-size: 1rem;
}

.pron-card-analysis {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ── Pronostici — Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .pronostici-hero {
    padding: 120px 0 32px;
  }

  .pronostici-summary {
    gap: 24px;
  }

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

  .pronostici-cta {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .pronostici-summary {
    gap: 16px;
  }

  .summary-value {
    font-size: 1.4rem;
  }

  .pron-card {
    padding: 18px;
  }

  .pron-card-team {
    font-size: 0.95rem;
  }
}

/* ============================================
   Pronostici Hub — League Index Cards
   ============================================ */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.hub-card-flag {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 16px;
}

.hub-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hub-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.hub-card-arrow {
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.hub-card:hover .hub-card-arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hub-card {
    padding: 28px 20px 24px;
  }
}

@media (max-width: 480px) {
  .hub-card-flag {
    font-size: 2.2rem;
  }

  .hub-card-name {
    font-size: 1.1rem;
  }
}

/* ==========================================
   SOCIAL PROOF — TrustPilot + Carousel
   ========================================== */

/* TrustPilot widget */
.trustpilot-widget-wrap {
  text-align: center;
  margin-bottom: 32px;
  min-height: 24px;
}

.trustpilot-widget-wrap.tp-hidden {
  display: none;
}

/* Testimonials Carousel */
.testimonials-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -24px 40px;
  padding: 0 24px;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonials-carousel:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.testimonials-track {
  display: flex;
  gap: 20px;
  padding: 4px 0;
  /* Force overflow so auto-scroll carousel always activates */
  width: max-content;
}

.testimonial-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  min-height: 180px;
  contain: layout style;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.testimonial-author {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.testimonial-city {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-city::before {
  content: '\2014\00a0';
}

.testimonial-profit {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  display: inline-block;
  line-height: 1.2;
  min-height: 3rem;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trust-badge-icon {
  font-size: 1.1rem;
}

/* Social Disclaimer */
.social-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

/* Responsive: Testimonials */
@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 280px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    flex: 0 0 260px;
  }

  .trust-badges {
    gap: 12px;
  }
}

/* ============================================
   Schedina del Giorno — Public Page
   ============================================ */

.sdg-hero {
  padding: 140px 0 40px;
  text-align: center;
  background: var(--bg-primary);
}

.sdg-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.sdg-title .logo-icon {
  font-size: 0.85em;
  margin-right: 8px;
}

.sdg-date {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  margin-top: 4px;
}

.sdg-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.sdg-summary {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.sdg-selections-section {
  padding: 40px 0 0;
  background: var(--bg-primary);
  position: relative;
}

.sdg-selections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.sdg-tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.sdg-tip-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.sdg-tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sdg-tip-league {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.sdg-tip-position {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sdg-tip-match {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.sdg-tip-pred-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sdg-tip-prediction {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: var(--bg-primary);
}

.sdg-tip-odds {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}

.sdg-tip-confidence {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.sdg-tip-analysis {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--gold);
}

.sdg-tip-card--blurred {
  position: relative;
  overflow: hidden;
}

.sdg-tip-blurred-content {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}

.sdg-blur-cta {
  position: relative;
  margin-top: -40px;
  z-index: var(--z-base);
  padding: 40px 0 20px;
}

.sdg-blur-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.08), rgba(18, 18, 26, 0.95));
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-lg);
}

.sdg-blur-cta-icon {
  font-size: 2rem;
}

.sdg-blur-cta-inner h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.sdg-blur-cta-inner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0;
  line-height: 1.5;
}

.sdg-share-section {
  padding: 24px 0;
  background: var(--bg-primary);
}

.sdg-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sdg-share-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sdg-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.sdg-share-btn--whatsapp:hover {
  border-color: var(--whatsapp);
  color: var(--whatsapp);
}
.sdg-share-btn--telegram:hover {
  border-color: var(--telegram);
  color: var(--telegram);
}

.sdg-archive-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.sdg-archive-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 28px;
}

.sdg-archive {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sdg-archive-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.sdg-archive-row:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--bg-card-hover);
}

.sdg-archive-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 60px;
}

.sdg-archive-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.sdg-archive-odds {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 50px;
  text-align: right;
}

.sdg-archive-status {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 80px;
  text-align: center;
}

.sdg-archive-status--won {
  color: var(--green);
}
.sdg-archive-status--lost {
  color: var(--red);
}
.sdg-archive-status--pending {
  color: var(--gold);
}
.sdg-archive-status--void {
  color: var(--text-muted);
}

.sdg-archive-profit {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 70px;
  text-align: right;
}

.sdg-archive-profit--positive {
  color: var(--green);
}
.sdg-archive-profit--negative {
  color: var(--red);
}

.sdg-archive-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 20px;
}

.sdg-empty {
  text-align: center;
  padding: 60px 20px;
}
.sdg-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.sdg-empty h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sdg-empty p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .sdg-hero {
    padding: 120px 0 32px;
  }
  .sdg-summary {
    gap: 24px;
  }
  .sdg-tip-card {
    padding: 18px;
  }
  .sdg-archive-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
  }
  .sdg-archive-name {
    flex-basis: 100%;
    order: -1;
  }
}

@media (max-width: 480px) {
  .sdg-tip-match {
    font-size: 1rem;
  }
  .sdg-tip-pred-row {
    gap: 8px;
  }
  .sdg-share-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}

/* ============================================
   Push Notification Banner
   ============================================ */

.push-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--bg-card);
  border-top: 1px solid var(--border-gold);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}

.push-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.push-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.push-banner-text strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.push-banner-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.push-banner-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}

.push-banner-dismiss:hover {
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .push-banner-inner {
    flex-wrap: wrap;
  }
  .push-banner-text {
    flex-basis: 100%;
  }
}
