:root {
  --bg-dark: #0a0118;
  --card-dark: #1a0a2e;
  --border-color: #2d1b69;
  --primary-purple: #8b5cf6;
  --accent-gold: #f59e0b;
}

body {
  background-color: var(--bg-dark);
  color: #f8fafc;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

.glass-header {
  background: rgba(10, 1, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.glass-card {
  background: rgba(26, 10, 46, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
}

.ambient-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(10, 1, 24, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(45, 27, 105, 0.5);
  border-color: #8b5cf6;
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, #8b5cf6, #f59e0b);
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.2);
}

/* Accordion */
details > summary {
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .btn-primary, .btn-secondary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  input, select, textarea {
    font-size: 16px !important; /* Prevents iOS Safari auto-zoom */
  }
}

#mobile-menu {
  transition: all 0.25s ease-in-out;
}

/* =========================================================
   LIGHT & DARK MODE TRANSITIONS & LIGHT MODE OVERRIDES
   ========================================================= */

body, 
header, 
nav, 
section, 
footer, 
.glass-header, 
.glass-card, 
.ambient-glow {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Light Theme Variables */
html.light, [data-theme="light"] {
  --bg-dark: #f8fafc;
  --card-dark: #ffffff;
  --border-color: #e2e8f0;
  --primary-purple: #7c3aed;
  --accent-gold: #d97706;
  color-scheme: light;
}

/* Light Mode Body & General Layout */
html.light body,
[data-theme="light"] body {
  background-color: #f8fafc !important;
  color: #1e293b !important;
}

html.light .bg-prizli-bg,
html.light .bg-\[\#0a0118\],
html.light [class*="bg-prizli-bg"] {
  background-color: #f8fafc !important;
}

/* Glass Header */
html.light .glass-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04) !important;
}

html.light .glass-header a span.text-white {
  color: #0f172a !important;
}

html.light header nav a {
  color: #475569 !important;
}

html.light header nav a:hover {
  color: #7c3aed !important;
}

/* Glass Cards */
html.light .glass-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06) !important;
}

/* Mobile Menu */
html.light #mobile-menu {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
}

html.light #mobile-menu a {
  color: #334155 !important;
  border-bottom-color: #f1f5f9 !important;
}

html.light #mobile-menu a:hover {
  color: #7c3aed !important;
}

/* Typography in Light Mode */
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light .text-white {
  color: #0f172a !important;
}

html.light .text-slate-200 {
  color: #1e293b !important;
}

html.light .text-slate-300 {
  color: #334155 !important;
}

html.light .text-slate-400 {
  color: #64748b !important;
}

html.light .text-slate-500 {
  color: #94a3b8 !important;
}

/* Ambient Glow subtle in Light Mode */
html.light .ambient-glow {
  opacity: 0.35;
}

/* Secondary Buttons in Light Mode */
html.light .btn-secondary {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

html.light .btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #7c3aed !important;
  color: #7c3aed !important;
}

/* Primary buttons keep crisp contrast */
html.light .btn-primary {
  color: #ffffff !important;
}

/* Partner Login Link */
html.light header a[href*="partner.prizli.xyz"] {
  color: #475569 !important;
}

html.light header a[href*="partner.prizli.xyz"]:hover {
  color: #7c3aed !important;
}

/* Accordion details */
html.light details {
  border-color: #e2e8f0 !important;
}

/* Footer in Light Mode */
html.light footer {
  background-color: #f1f5f9 !important;
  border-top-color: #e2e8f0 !important;
}

html.light footer a {
  color: #64748b !important;
}

html.light footer a:hover {
  color: #7c3aed !important;
}

/* Theme Toggle Button */
.theme-toggle-btn, #theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(26, 10, 46, 0.85);
  border: 1px solid #2d1b69;
}

.theme-toggle-btn:hover, #theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: #8b5cf6;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

html.light .theme-toggle-btn, 
html.light #theme-toggle-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

html.light .theme-toggle-btn:hover, 
html.light #theme-toggle-btn:hover {
  border-color: #7c3aed !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.25) !important;
}

