/* ==========================================================================
   VIRA AGENCY - 5 LUXURY THEME SWITCHER SYSTEM
   Theme 1: FINTECH SLEEK (Default Modern Light Tech)
   Theme 2: CASINO LUXURY (Matte Obsidian & 24K Gold)
   Theme 3: GLOBAL LOTTO (Clean Cobalt & Emerald)
   Theme 4: NEON CYBER-GOLD (Glassmorphism & Ambient Glow)
   Theme 5: ROYAL FESTIVE (Imperial Purple, Saffron & Gold)
   ========================================================================== */

/* -------------------------------------------------------------
   THEME 1: FINTECH SLEEK (Clean, High-Tech, Crisp Micro-Glows)
   ------------------------------------------------------------- */
body[data-theme="fintech"] {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --primary-brand: #0284c7;
  --primary-dark: #0f172a;
  --accent-cta: #10b981;
  --accent-cta-hover: #059669;
  --jackpot-gold: #d97706;
  --border-card: #e2e8f0;
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --header-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --font-hero: 'Plus Jakarta Sans', sans-serif;
}

/* -------------------------------------------------------------
   THEME 2: CASINO LUXURY (Matte Obsidian, 24K Gold & Emerald)
   ------------------------------------------------------------- */
body[data-theme="luxury"] {
  --bg-main: #0b0b0e;
  --bg-card: #131318;
  --bg-subtle: #1c1c24;
  --primary-brand: #d4af37;
  --primary-dark: #ffffff;
  --accent-cta: #10b981;
  --accent-cta-hover: #059669;
  --jackpot-gold: #f59e0b;
  --border-card: rgba(212, 175, 55, 0.25);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.1);
  --header-bg: #09090c;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-hero: 'Cinzel', serif;
}

/* -------------------------------------------------------------
   THEME 3: GLOBAL LOTTO (EuroMillions / TheLotter Blue & Gold)
   ------------------------------------------------------------- */
body[data-theme="global"] {
  --bg-main: #f0f7ff;
  --bg-card: #ffffff;
  --bg-subtle: #e0f2fe;
  --primary-brand: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent-cta: #16a34a;
  --accent-cta-hover: #15803d;
  --jackpot-gold: #ea580c;
  --border-card: #bfdbfe;
  --card-shadow: 0 8px 24px rgba(29, 78, 216, 0.08);
  --header-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --font-hero: 'Outfit', sans-serif;
}

/* -------------------------------------------------------------
   THEME 4: NEON CYBER-GOLD (Glassmorphism & Ambient Glow)
   ------------------------------------------------------------- */
body[data-theme="cyber"] {
  --bg-main: #090d16;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-subtle: rgba(255, 255, 255, 0.05);
  --primary-brand: #38bdf8;
  --primary-dark: #ffffff;
  --accent-cta: #f59e0b;
  --accent-cta-hover: #d97706;
  --jackpot-gold: #38bdf8;
  --border-card: rgba(56, 189, 248, 0.25);
  --card-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.15);
  --header-bg: rgba(9, 13, 22, 0.9);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --font-hero: 'Outfit', sans-serif;
}

/* -------------------------------------------------------------
   THEME 5: ROYAL FESTIVE (Imperial Purple, Saffron & Gold)
   ------------------------------------------------------------- */
body[data-theme="festive"] {
  --bg-main: #140824;
  --bg-card: #1f0f38;
  --bg-subtle: #2b164c;
  --primary-brand: #f59e0b;
  --primary-dark: #ffffff;
  --accent-cta: #e11d48;
  --accent-cta-hover: #be123c;
  --jackpot-gold: #fbbf24;
  --border-card: rgba(245, 158, 11, 0.3);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(225, 29, 72, 0.15);
  --header-bg: #110620;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --font-hero: 'Outfit', sans-serif;
}

/* =============================================================
   FLOATING LIVE THEME SWITCHER TOOLBAR
   ============================================================= */
.theme-switcher-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.theme-switcher-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  margin-right: 6px;
  padding-left: 4px;
}

.theme-pill-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.theme-pill-btn:hover {
  transform: translateY(-2px);
  background: #e2e8f0;
}

.theme-pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* =============================================================
   APPLIED DYNAMIC STYLES ACROSS COMPONENTS
   ============================================================= */
body {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.main-header {
  background-color: var(--header-bg) !important;
  border-bottom: 1px solid var(--border-card) !important;
}

.brand-name {
  color: var(--primary-dark) !important;
}

.hero-clean-banner {
  background: transparent !important;
  border-bottom: 1px solid var(--border-card) !important;
}

.hero-main-card,
.lottery-card,
.step-card,
.clean-card,
.results-card-container,
.stat-box,
.time-card,
.modal-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  box-shadow: var(--card-shadow) !important;
  color: var(--text-main) !important;
}

.lottery-jackpot-box,
.countdown-box,
.qr-box-inner,
.price-summary-box,
.payment-box,
.trust-icon {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-card) !important;
}

.hero-main-card h1,
.section-title,
.lottery-name,
.time-card span,
.stat-box strong,
.clean-card h2,
.clean-card h3 {
  color: var(--primary-dark) !important;
}

.spotlight-jackpot,
.lottery-jackpot-val {
  color: var(--jackpot-gold) !important;
}

.btn-play {
  background: var(--accent-cta) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.btn-play:hover {
  background: var(--accent-cta-hover) !important;
  transform: translateY(-2px) !important;
}

.clean-footer {
  background: var(--header-bg) !important;
  border-top: 1px solid var(--border-card) !important;
}

.footer-col h4,
.step-card h3 {
  color: var(--primary-dark) !important;
}

.top-bar {
  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--border-card) !important;
  color: var(--text-muted) !important;
}
