/* ================================================================
   YesAndNoWheel.com — Master Stylesheet
   Design System: Premium dark-mode, glassmorphism, gradients, micro-animations
   ================================================================ */

/* ================================================================
   CSS Custom Properties (Design Tokens)
   ================================================================ */
:root {
  /* Colors — Dark Mode (default) */
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-tertiary: #1a1a3e;
  --bg-card: rgba(25, 25, 60, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.1);

  --text-primary: #f0f0ff;
  --text-secondary: #a0a0cc;
  --text-muted: #6b6b99;

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #a78bfa;
  --accent-glow: rgba(99, 102, 241, 0.3);

  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a103c 50%, #0d1b2a 100%);
  --gradient-card: linear-gradient(145deg, rgba(99,102,241,0.1), rgba(139,92,246,0.05));

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

[data-theme="light"] {
  --bg-primary: #f5f5ff;
  --bg-secondary: #eeeef8;
  --bg-tertiary: #e0e0f0;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --border-glass: rgba(0, 0, 0, 0.1);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8a8aaa;
  --gradient-hero: linear-gradient(135deg, #f5f5ff 0%, #e8e0f8 50%, #e0e8f0 100%);
  --gradient-card: linear-gradient(145deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-base), color var(--transition-base);
}

a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-tertiary); }

/* ================================================================
   Navigation
   ================================================================ */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 var(--space-lg);
  transition: background var(--transition-base);
}

[data-theme="light"] .main-nav {
  background: rgba(245, 245, 255, 0.85);
}

.nav-container {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--text-primary);
}

.nav-brand-icon { font-size: 1.5rem; }

.nav-menu {
  display: flex; align-items: center; gap: var(--space-xs);
  list-style: none;
}

.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-link.active {
  background: var(--accent-glow);
  color: var(--accent-tertiary);
}

.nav-toggle {
  display: none; background: none; border: none; color: var(--text-primary);
  cursor: pointer; padding: var(--space-sm); border-radius: var(--radius-sm);
}

.nav-toggle svg { display: block; }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column; background: var(--bg-primary);
    padding: var(--space-lg); padding-bottom: 120px; gap: var(--space-sm);
    transform: translateX(100%); transition: transform var(--transition-base);
    overflow-y: auto;
  }
  .nav-menu > li,
  .nav-dropdown {
    width: 100%;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { padding: 14px 20px; font-size: 1rem; width: 100%; border-radius: var(--radius-md); }
}

/* ================================================================
   App Container
   ================================================================ */
#app {
  max-width: 1440px; margin: 0 auto; padding: 80px var(--space-lg) var(--space-xl);
  min-height: 100vh;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

/* ================================================================
   Hero Section
   ================================================================ */
.hero {
  position: relative; text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  overflow: hidden; margin-bottom: var(--space-3xl);
}

.hero-bg-animation {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139,92,246,0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(167,139,250,0.08) 0%, transparent 50%);
  animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(1deg); }
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.1; margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: var(--gradient-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto var(--space-xl);
}

.hero-cta { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-xl); }

.cta-btn {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 14px 32px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 1rem; transition: all var(--transition-base);
}

.cta-btn.primary {
  background: var(--gradient-primary); color: white;
  box-shadow: var(--shadow-glow);
}

.cta-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--accent-glow); }

.cta-btn.secondary {
  background: var(--bg-glass); color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.cta-btn.secondary:hover { background: rgba(255,255,255,0.1); }

.hero-stats {
  display: flex; justify-content: center; gap: var(--space-2xl); flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--accent-tertiary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ================================================================
   Wheel Cards Grid
   ================================================================ */
.wheels-grid { margin-bottom: var(--space-3xl); }

.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800; text-align: center; margin-bottom: var(--space-sm);
}

.section-subtitle {
  text-align: center; color: var(--text-secondary); margin-bottom: var(--space-xl);
  font-size: 1.05rem;
}

.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.wheel-card {
  position: relative; padding: var(--space-xl);
  background: var(--gradient-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition-base); cursor: pointer;
  text-decoration: none; color: var(--text-primary);
}

.wheel-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--card-accent), transparent 70%);
  opacity: 0.08; transition: opacity var(--transition-base);
}

.wheel-card:hover {
  transform: translateY(-4px); border-color: var(--card-accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 20px color-mix(in srgb, var(--card-accent) 20%, transparent);
}

.wheel-card:hover::before { opacity: 0.15; }

.wheel-card-icon { font-size: 2.5rem; margin-bottom: var(--space-md); }
.wheel-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-sm); }
.wheel-card-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: var(--space-md); line-height: 1.5; }
.wheel-card-cta { color: var(--accent-tertiary); font-weight: 600; font-size: 0.9rem; }

/* ================================================================
   How It Works
   ================================================================ */
.how-it-works { margin-bottom: var(--space-3xl); }

.steps-row {
  display: flex; align-items: center; justify-content: center; gap: var(--space-lg);
  flex-wrap: wrap;
}

.how-step {
  text-align: center; padding: var(--space-xl); flex: 1; min-width: 180px;
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.how-icon { font-size: 2.5rem; margin-bottom: var(--space-md); }
.how-step h3 { font-family: var(--font-display); margin-bottom: var(--space-sm); }
.how-step p { color: var(--text-secondary); font-size: 0.9rem; }
.how-arrow { font-size: 1.5rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .how-arrow { transform: rotate(90deg); }
  .steps-row { flex-direction: column; }
}

/* ================================================================
   Features Grid
   ================================================================ */
.features { margin-bottom: var(--space-3xl); }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.feature {
  padding: var(--space-xl); background: var(--bg-card);
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  transition: transform var(--transition-base);
}

.feature:hover { transform: translateY(-2px); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: var(--space-md); }
.feature h3 { font-family: var(--font-display); margin-bottom: var(--space-sm); }
.feature p { color: var(--text-secondary); font-size: 0.9rem; }

/* ================================================================
   FAQ
   ================================================================ */
.faq { margin-bottom: var(--space-3xl); max-width: 800px; margin-left: auto; margin-right: auto; }

.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); margin-bottom: var(--space-sm);
  overflow: hidden; transition: border-color var(--transition-base);
}

.faq-item[open] { border-color: var(--accent-primary); }

.faq-item summary {
  padding: var(--space-lg); cursor: pointer; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+'; font-size: 1.5rem; color: var(--accent-primary);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary); line-height: 1.6;
}

/* ================================================================
   Footer
   ================================================================ */
.home-footer {
  text-align: center; padding: var(--space-2xl) var(--space-lg);
  border-top: 1px solid var(--border-glass); color: var(--text-muted);
}
.footer-sub { font-size: 0.85rem; margin-top: var(--space-sm); }

/* ================================================================
   Wheel Page Layout (shared by all wheels)
   ================================================================ */
.wheel-page {
  max-width: 1200px; margin: 0 auto;
  padding: var(--space-xl) 0;
}

.wheel-seo-content {
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.wheel-seo-content p {
  text-align: justify;
  text-justify: inter-word;
}

.wheel-header { text-align: center; margin-bottom: var(--space-2xl); }

.wheel-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; margin-bottom: var(--space-sm);
}

.wheel-subtitle { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.wheel-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 900px) {
  .wheel-layout {
    grid-template-columns: 1fr;
  }
}

.wheel-main {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-lg);
}

.wheel-sidebar {
  width: 100%;
}

.wheel-canvas-container {
  order: -10;
  position: relative; width: 100%; max-width: 500px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--bg-card); padding: var(--space-md);
}

.wheel-canvas-container canvas {
  display: block; max-width: 100%; max-height: 100%;
}

/* ================================================================
   Spin Button & Result
   ================================================================ */
.spin-btn {
  order: -9;
  position: relative; padding: 16px 48px;
  background: var(--gradient-primary); color: white;
  border: none; border-radius: var(--radius-full);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  cursor: pointer; overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-glow);
}

.result-display {
  order: -8;
}

.spin-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 40px var(--accent-glow);
}

.spin-btn:active:not(:disabled) { transform: translateY(0) scale(0.98); }

.spin-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.spin-btn .spin-ripple {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0; transition: opacity var(--transition-base);
}

.spin-btn:hover .spin-ripple { opacity: 1; }

/* Themed spin buttons */
.rainbow-spin-btn { background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3); }
.fate-spin-btn { background: linear-gradient(135deg, #1a0a3e, #4b0e4e, #6b2d8b); }
.word-spin-btn { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.tod-spin-btn { background: linear-gradient(135deg, #ff006e, #fb5607, #ffbe0b); }
.dti-spin-btn { background: linear-gradient(135deg, #ffb6c1, #dda0dd, #e6e6fa); color: #333; }
.country-spin-btn { background: linear-gradient(135deg, #059669, #0891b2); }
.zodiac-spin-btn { background: linear-gradient(135deg, #ffd700, #ff8c00, #ff6347); }
.zodiac-spin-btn.small { padding: 10px 24px; font-size: 0.9rem; }
.hair-spin-btn { background: linear-gradient(135deg, #ff69b4, #da70d6, #ba55d3); }

/* ================================================================
   Result Display
   ================================================================ */
.result-display {
  width: 100%; max-width: 500px; text-align: center;
  opacity: 0; transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.result-display.show {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}

.result-winner {
  background: var(--bg-card); border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg); padding: var(--space-xl);
  box-shadow: var(--shadow-glow);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
}

.result-emoji { font-size: 2.5rem; }
.result-text { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }

.rainbow-text { background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #9400d3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.fate-title { color: #8b5cf6; text-shadow: 0 0 20px rgba(139,92,246,0.5); }
.neon-text { color: #ff006e; text-shadow: 0 0 20px rgba(255,0,110,0.5), 0 0 40px rgba(255,0,110,0.3); }
.zodiac-title { color: #ffd700; text-shadow: 0 0 20px rgba(255,215,0,0.5); }
.dti-title { color: #ffb6c1; }
.hair-title { color: #ff69b4; text-shadow: 0 0 20px rgba(255,105,180,0.4); }

.fate-subtitle, .dti-subtitle { font-size: 0.9rem; color: var(--text-muted); font-style: italic; }

/* Country result */
.country-flag-big { font-size: 4rem; }
.country-continent { font-size: 0.9rem; color: var(--text-muted); }

/* Zodiac result */
.zodiac-result-symbol { font-size: 3rem; }
.zodiac-element { font-size: 0.9rem; color: var(--text-muted); }

/* Hair result */
.hair-swatch { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--border-glass); }
.hair-hex { font-size: 0.85rem; color: var(--text-muted); font-family: monospace; }

/* ================================================================
   Customization Panel
   ================================================================ */
.customization-panel { width: 100%; }

.custom-toggle-btn {
  display: flex; align-items: center; gap: var(--space-sm);
  width: 100%; padding: 12px var(--space-md);
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); color: var(--text-primary);
  cursor: pointer; font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition-base);
}

.custom-toggle-btn:hover, .custom-toggle-btn.active {
  border-color: var(--accent-primary); background: var(--accent-glow);
}

.custom-drawer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}

.custom-drawer.open { max-height: 2000px; }

.custom-drawer-content {
  padding: var(--space-md) 0;
  display: flex; flex-direction: column; gap: var(--space-md);
}

.custom-section {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: var(--space-md);
}

.custom-section h3 { font-size: 0.95rem; margin-bottom: var(--space-md); color: var(--text-primary); }

.custom-textarea {
  width: 100%; padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary); border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.85rem; resize: vertical;
  outline: none; transition: border-color var(--transition-fast);
}

.custom-textarea:focus { border-color: var(--accent-primary); }

.custom-btn-row { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-sm); }

.custom-btn {
  padding: 8px 16px; border: none; border-radius: var(--radius-sm);
  background: var(--accent-primary); color: white;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.custom-btn.secondary { background: var(--bg-tertiary); color: var(--text-primary); }
.custom-btn.danger { background: var(--danger); }

.custom-field {
  display: flex; align-items: center; gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.custom-field label { font-size: 0.85rem; color: var(--text-secondary); min-width: 90px; }

.custom-field input[type="range"] {
  flex: 1; accent-color: var(--accent-primary); height: 4px;
}

.custom-field span { font-size: 0.85rem; color: var(--text-muted); min-width: 40px; text-align: right; }

/* Toggle Switch */
.toggle-switch {
  position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer;
}

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

.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bg-tertiary); border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: white; border-radius: 50%;
  transition: transform var(--transition-fast);
}

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

/* Theme toggle */
.custom-theme-toggle { display: flex; gap: var(--space-xs); }

.theme-btn {
  padding: 6px 14px; border: 1px solid var(--border-glass);
  background: transparent; color: var(--text-secondary);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.theme-btn.active {
  background: var(--accent-primary); color: white; border-color: var(--accent-primary);
}

/* History */
.history-list { max-height: 200px; overflow-y: auto; margin-bottom: var(--space-sm); }
.history-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border-glass); font-size: 0.8rem; }
.history-result { color: var(--text-primary); }
.history-time { color: var(--text-muted); }
.history-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: var(--space-md); }

/* ================================================================
   Wheel-Specific Components
   ================================================================ */

/* Auto-gradient button */
.auto-gradient-btn {
  padding: 10px 24px; border: 2px dashed var(--accent-primary);
  background: transparent; color: var(--accent-tertiary);
  border-radius: var(--radius-full); cursor: pointer;
  font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition-base);
}

.auto-gradient-btn:hover { background: var(--accent-glow); border-style: solid; }

/* Cosmic background */
.cosmic-bg { background: radial-gradient(ellipse at center, #1a0a3e, #0a0a1a); }
.celestial-bg { background: radial-gradient(ellipse at center, #1a1030, #0a0a1a); }
.neon-bg { background: radial-gradient(ellipse at center, #1a0020, #0a0a1a); }

/* Weight editor */
.weight-editor {
  width: 100%; max-width: 500px;
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: var(--space-lg);
}

.weight-editor h3 { font-size: 1rem; margin-bottom: var(--space-sm); }
.weight-hint { font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-md); }

.weight-item {
  display: flex; align-items: center; gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.weight-name { min-width: 80px; font-size: 0.85rem; font-weight: 600; }
.weight-slider { flex: 1; accent-color: var(--accent-primary); }
.weight-value { min-width: 30px; font-size: 0.85rem; color: var(--accent-tertiary); font-weight: 700; }

/* CSV Upload Area */
.csv-upload-area { width: 100%; max-width: 500px; }

.upload-zone {
  border: 2px dashed var(--border-glass); border-radius: var(--radius-lg);
  padding: var(--space-xl); text-align: center;
  transition: all var(--transition-base); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
  color: var(--text-muted);
}

.upload-zone.dragover { border-color: var(--accent-primary); background: var(--accent-glow); }
.upload-zone svg { stroke: var(--text-muted); }
.upload-btn { padding: 8px 20px; background: var(--accent-primary); color: white; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 0.85rem; }

.quick-paste { width: 100%; max-width: 500px; display: flex; gap: var(--space-sm); flex-direction: column; }
.quick-paste textarea { width: 100%; padding: var(--space-sm) var(--space-md); background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 0.85rem; resize: vertical; outline: none; }
.quick-paste textarea:focus { border-color: var(--accent-primary); }

/* Truth or Dare components */
.tod-step-indicator { display: flex; align-items: center; gap: var(--space-md); justify-content: center; margin-bottom: var(--space-lg); }
.tod-step { display: flex; align-items: center; gap: var(--space-sm); padding: 8px 16px; background: var(--bg-card); border-radius: var(--radius-full); border: 2px solid var(--border-glass); font-size: 0.9rem; font-weight: 600; transition: all var(--transition-base); }
.tod-step.active { border-color: #ff006e; background: rgba(255,0,110,0.1); }
.tod-step-num { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); border-radius: 50%; font-size: 0.8rem; }
.tod-step.active .tod-step-num { background: #ff006e; color: white; }
.tod-step-arrow { color: var(--text-muted); font-size: 1.2rem; }

.tod-player-setup { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: var(--space-sm); }
.tod-player-setup textarea { width: 100%; padding: var(--space-sm) var(--space-md); background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); resize: vertical; outline: none; }

/* Truth or Dare Modal */
.tod-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
.tod-modal.show { opacity: 1; pointer-events: auto; }
.tod-modal-content { background: var(--bg-secondary); border: 1px solid var(--border-glass); border-radius: var(--radius-xl); padding: var(--space-2xl); max-width: 500px; width: 90%; text-align: center; transform: scale(0.9); transition: transform var(--transition-base); }
.tod-modal.show .tod-modal-content { transform: scale(1); }
.tod-modal-type { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: var(--space-md); }
.tod-modal-type.truth { color: #3a86ff; }
.tod-modal-type.dare { color: #ff006e; }
.tod-modal-prompt { font-size: 1.15rem; line-height: 1.6; margin-bottom: var(--space-lg); color: var(--text-secondary); }
.tod-modal-player { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-lg); }

/* DTI components */
.dti-library { width: 100%; max-width: 500px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: var(--space-lg); }
.dti-library h3 { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); }
.dti-count { font-size: 0.8rem; color: var(--accent-tertiary); font-weight: 400; }
.dti-category-filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.dti-filter-btn { padding: 6px 12px; border: 1px solid var(--border-glass); background: transparent; color: var(--text-secondary); border-radius: var(--radius-full); cursor: pointer; font-size: 0.75rem; transition: all var(--transition-fast); }
.dti-filter-btn.active, .dti-filter-btn:hover { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }
.dti-toggle-all { display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); }
.dti-theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); max-height: 300px; overflow-y: auto; padding-right: var(--space-sm); }
.dti-theme-item { display: flex; align-items: center; gap: var(--space-sm); padding: 6px 10px; background: var(--bg-secondary); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; transition: all var(--transition-fast); border: 1px solid transparent; }
.dti-theme-item.enabled { border-color: var(--accent-primary); background: rgba(99,102,241,0.1); }
.dti-theme-item input { display: none; }
.dti-theme-name { flex: 1; }
.dti-theme-cat { font-size: 0.7rem; color: var(--text-muted); }

/* Region filters */
.region-filters { width: 100%; max-width: 500px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: var(--space-lg); }
.region-filters h3 { margin-bottom: var(--space-md); }
.region-toggle-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-bottom: var(--space-md); }
.region-toggle { display: flex; align-items: center; gap: var(--space-sm); cursor: pointer; font-size: 0.9rem; padding: 6px 10px; background: var(--bg-secondary); border-radius: var(--radius-sm); }
.region-toggle input { accent-color: var(--accent-primary); }
.region-count { font-size: 0.75rem; color: var(--text-muted); }
.region-summary { font-size: 0.85rem; color: var(--accent-tertiary); text-align: center; font-weight: 600; }

/* Zodiac Mode Toggle */
.zodiac-mode-toggle { display: flex; justify-content: center; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.zodiac-mode-btn { padding: 10px 24px; border: 2px solid var(--border-glass); background: transparent; color: var(--text-secondary); border-radius: var(--radius-full); cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: all var(--transition-base); }
.zodiac-mode-btn.active { border-color: #ffd700; background: rgba(255,215,0,0.1); color: #ffd700; }

/* Zodiac Compatibility */
.zodiac-compat-layout { display: flex; flex-direction: column; align-items: center; gap: var(--space-xl); }
.compat-wheels { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; justify-content: center; }
.compat-wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.compat-wheel-wrap .wheel-canvas-container { max-width: 500px; }
.compat-label { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent-tertiary); }
.compat-result { font-size: 1.1rem; font-weight: 700; min-height: 30px; }
.compat-vs { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text-muted); }

.compat-result-panel { width: 100%; max-width: 500px; opacity: 0; transform: translateY(10px); transition: all 0.4s ease; }
.compat-result-panel.show { opacity: 1; transform: translateY(0); }
.compat-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: var(--space-xl); text-align: center; }
.compat-emoji { font-size: 3rem; margin-bottom: var(--space-sm); }
.compat-level { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: var(--space-md); }
.compat-level.high { color: #10b981; }
.compat-level.moderate { color: #f59e0b; }
.compat-level.challenging { color: #ef4444; }
.compat-desc { color: var(--text-secondary); line-height: 1.6; }

/* Zodiac Info Panel */
.zodiac-info-panel { width: 100%; max-width: 500px; opacity: 0; transform: translateY(10px); transition: all 0.4s ease; }
.zodiac-info-panel.show { opacity: 1; transform: translateY(0); }
.zodiac-info-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: var(--space-lg); }
.zodiac-info-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.zodiac-big-symbol { font-size: 2.5rem; }
.zodiac-info-header h3 { font-family: var(--font-display); font-size: 1.3rem; }
.zodiac-dates { font-size: 0.85rem; color: var(--text-muted); }
.zodiac-info-row { margin-bottom: var(--space-sm); font-size: 0.9rem; color: var(--text-secondary); }
.zodiac-info-row strong { color: var(--text-primary); }

/* Hair Color Wheel */
.hair-palette-selector { width: 100%; max-width: 500px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: var(--space-lg); }
.hair-palette-selector h3 { margin-bottom: var(--space-md); }
.hair-cat-btns { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.hair-cat-btn { padding: 6px 14px; border: 1px solid var(--border-glass); background: transparent; color: var(--text-secondary); border-radius: var(--radius-full); cursor: pointer; font-size: 0.8rem; transition: all var(--transition-fast); }
.hair-cat-btn.active { background: #ff69b4; color: white; border-color: #ff69b4; }
.hair-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--space-xs); max-height: 250px; overflow-y: auto; margin-bottom: var(--space-md); }
.hair-color-item { display: flex; align-items: center; gap: var(--space-sm); padding: 6px 10px; background: var(--bg-secondary); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; border: 1px solid transparent; transition: all var(--transition-fast); }
.hair-color-item.active { border-color: #ff69b4; }
.hair-color-item input { display: none; }
.hair-dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--border-glass); }
.hair-color-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hair-custom-add { display: flex; gap: var(--space-sm); }
.hair-custom-add input { flex: 1; padding: 8px 12px; background: var(--bg-secondary); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.85rem; outline: none; }

/* ================================================================
   Instructions Section
   ================================================================ */
.wheel-instructions {
  margin-top: var(--space-3xl); padding-top: var(--space-xl);
  border-top: 1px solid var(--border-glass);
}

.wheel-instructions h2 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  margin-bottom: var(--space-xl); text-align: center;
}

.instruction-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg); max-width: 900px; margin: 0 auto;
}

.step {
  display: flex; gap: var(--space-md);
  padding: var(--space-lg); background: var(--bg-card);
  border: 1px solid var(--border-glass); border-radius: var(--radius-md);
}

.step-number {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-primary); color: white;
  border-radius: 50%; font-weight: 700; font-size: 0.9rem;
}

.step-content h3 { font-size: 1rem; margin-bottom: var(--space-xs); }
.step-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

.howto-screenshot-wrap {
  margin-top: var(--space-xl); margin-bottom: var(--space-xl);
  text-align: center;
}

.howto-screenshot {
  width: 100%; max-width: 800px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.howto-screenshot:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.howto-caption {
  font-size: 0.85rem; color: var(--text-muted);
  margin-top: var(--space-sm); font-style: italic;
}

.wheel-instructions h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  margin-bottom: var(--space-md); text-align: center;
  color: var(--text-secondary);
}

.keyword-strong {
  color: var(--accent-tertiary); font-weight: 700;
}

/* ================================================================
   Tutorial-Style How-To Guide (reference design)
   ================================================================ */
.howto-tutorial {
  max-width: 800px !important;
  margin: var(--space-2xl) auto !important;
}

.howto-intro {
  color: var(--text-secondary); font-size: 1rem;
  line-height: 1.7; margin-bottom: var(--space-xl);
  max-width: 700px; margin-left: auto; margin-right: auto;
  text-align: center;
}

.howto-steps-list {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
}

.howto-step-item {
  padding: var(--space-lg) 0;
}

.howto-step-heading {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-primary);
  display: flex; align-items: center; gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.howto-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; flex-shrink: 0;
  background: var(--accent-primary); color: white;
  border-radius: 50%; font-weight: 800; font-size: 0.95rem;
}

.howto-step-options {
  list-style: disc; padding-left: var(--space-xl);
  color: var(--text-secondary); line-height: 1.8;
  margin-bottom: var(--space-md);
}

.howto-step-options li { font-size: 0.95rem; }

.howto-step-desc {
  color: var(--text-secondary); font-size: 0.95rem;
  line-height: 1.7; margin-left: calc(32px + var(--space-md));
}

.howto-step-desc a {
  color: var(--accent-primary); text-decoration: underline;
  transition: color var(--transition-fast);
}

.howto-step-desc a:hover { color: var(--accent-secondary); }

.howto-step-screenshot {
  margin-top: var(--space-md);
  text-align: center;
}

.howto-inline-img {
  max-width: 100%; width: 500px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.howto-inline-img:hover {
  transform: scale(1.02);
}

.howto-divider {
  border: none;
  border-top: 1px solid var(--border-glass);
  margin: 0;
}

/* Wheel-page specific how-to (also tutorial style) */
.wheel-instructions.howto-tutorial-style {
  max-width: 800px; margin: var(--space-2xl) auto;
}

.wheel-instructions.howto-tutorial-style .howto-steps-list {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
}

.wheel-text-silo {
  margin: 0 0 var(--space-lg);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.wheel-text-silo p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.wheel-text-silo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.wheel-text-silo-links a {
  color: var(--accent-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wheel-text-silo-links a:hover {
  color: var(--accent-primary);
}

.wheel-silo {
  margin-top: var(--space-2xl);
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.66));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-md);
}

.wheel-silo-header {
  max-width: 760px;
  margin-bottom: var(--space-lg);
}

.wheel-silo-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #67e8f9;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wheel-silo-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.wheel-silo-header p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.wheel-silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.wheel-silo-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.52));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.wheel-silo-card:hover {
  transform: translateY(-2px);
  border-color: var(--silo-accent);
  box-shadow: 0 14px 28px rgba(2, 8, 23, 0.24), 0 0 0 1px var(--silo-accent);
}

.wheel-silo-icon {
  font-size: 1.35rem;
}

.wheel-silo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.wheel-silo-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.wheel-silo-cta {
  color: var(--silo-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ================================================================
   Scrollbar
   ================================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ================================================================
   Loading / pulse animation
   ================================================================ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.loading { animation: pulse 1.5s infinite; }

/* ================================================================
   Responsive fine-tunes
   ================================================================ */
@media (max-width: 480px) {
  #app { padding: 70px var(--space-sm) var(--space-md); }
  .hero { padding: var(--space-2xl) var(--space-md); }
  .hero-stats { gap: var(--space-lg); }
  .stat-num { font-size: 1.5rem; }
  .spin-btn { padding: 14px 32px; font-size: 1rem; }
  .wheel-canvas-container { padding: var(--space-sm); }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Confetti & Popups
   ================================================================ */
.result-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.result-overlay.show { opacity: 1; }
.result-overlay-content {
  text-align: center;
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.result-overlay-emoji {
  font-size: clamp(6rem, 15vw, 10rem);
  line-height: 1; margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.result-overlay-label {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900; text-transform: uppercase;
  text-shadow: 0 5px 25px rgba(0,0,0,0.6);
  -webkit-text-stroke: 2px rgba(255,255,255,0.8);
}
@keyframes popIn {
  0% { transform: scale(0.5) translateY(100px) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1) translateY(0) rotate(0deg); opacity: 1; }
}

/* Language Switcher */
.lang-switcher {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center;
}
.lang-label {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 480px);
}
.lang-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.32);
  color: #a8b3c7;
  border-radius: 16px;
  min-height: 52px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.lang-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.4);
  color: var(--text-primary);
}
.lang-chip.active {
  color: #22d3ee;
  border-color: #22d3ee;
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.18) inset;
}
[data-theme="light"] .lang-chip {
  background: rgba(255, 255, 255, 0.75);
  color: #475569;
}
[data-theme="light"] .lang-chip.active {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
}
@media (max-width: 680px) {
  .lang-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .lang-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.locale-notice {
  margin-bottom: var(--space-lg);
}

.locale-notice-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.78), rgba(17, 24, 39, 0.92));
  color: #d8f3ff;
  box-shadow: var(--shadow-md);
}

.locale-notice-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.locale-notice-copy {
  color: rgba(216, 243, 255, 0.88);
}

[data-theme="light"] .locale-notice-inner {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(240, 249, 255, 0.98));
  color: #0f172a;
}

[data-theme="light"] .locale-notice-copy {
  color: #334155;
}

/* Theme Toggle */
.theme-toggle-btn {
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.theme-toggle-btn:active { transform: scale(0.9); }
.theme-toggle-btn:hover { background: var(--bg-glass); }
.theme-toggle-btn svg { width: 20px; height: 20px; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }

/* ================================================================
   Navigation Dropdown
   ================================================================ */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
}

.dropdown-arrow {
  transition: transform var(--transition-fast);
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 1001;
  backdrop-filter: blur(20px);
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown-link:hover,
.dropdown-link.active {
  background: var(--accent-glow);
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .dropdown-menu {
    position: static; transform: none;
    opacity: 1; visibility: visible;
    background: transparent;
    box-shadow: none; margin-top: 0;
    display: flex; flex-direction: column; gap: 4px; padding-left: var(--space-md);
  }
  .nav-dropdown.open .dropdown-menu {
    display: flex; transform: none;
  }
  .dropdown-trigger {
    padding: 14px 20px; font-size: 1rem; width: 100%;
    border-radius: var(--radius-md); font-weight: 700;
    justify-content: space-between;
  }
  .dropdown-arrow { display: none; }
  .dropdown-link {
    width: 100%;
    white-space: normal;
  }
  
  .theme-toggle-btn {
    display: flex;
    width: 100%; padding: 14px 20px; border-radius: var(--radius-md);
    background: var(--bg-glass); justify-content: center; gap: 8px;
  }
}

/* ================================================================
   Yes/No Picker Wheel Section
   ================================================================ */
.yesno-section {
  margin-bottom: var(--space-3xl);
}

.yesno-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.yesno-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .yesno-layout { grid-template-columns: 1fr; }
}

.yesno-wheel-area {
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}

.yesno-canvas-wrap {
  max-width: 480px;
  background: transparent;
  padding: 0;
}

.yesno-sound-toggle {
  position: absolute; bottom: 10px; left: 10px;
}

.sound-btn {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition-fast);
}

.sound-btn:hover { background: var(--accent-glow); color: var(--text-primary); }
.sound-btn.muted { opacity: 0.4; }

/* Counters */
.yesno-counters {
  display: flex; gap: var(--space-md); justify-content: center;
  margin-bottom: var(--space-md);
}

.yesno-counter {
  text-align: center; padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md); min-width: 100px;
  transition: transform var(--transition-fast);
}

.yesno-counter:hover { transform: scale(1.05); }

.yes-counter { background: #2d6a30; }
.no-counter { background: #d4a017; }
.maybe-counter { background: #6b7280; }

.counter-num {
  display: block; font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 900; color: white;
  line-height: 1;
}

.counter-label {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: rgba(255,255,255,0.85); margin-top: var(--space-xs);
  letter-spacing: 0.05em;
}

.reset-counts-btn {
  display: block; margin: 0 auto var(--space-lg);
  background: none; border: none;
  color: var(--accent-primary); cursor: pointer;
  font-size: 0.85rem; font-weight: 600;
  transition: color var(--transition-fast);
}

.reset-counts-btn:hover { color: var(--accent-tertiary); }

/* Inputs Panel */
.yesno-inputs-panel {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: var(--space-lg);
}

.inputs-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-md);
}

.inputs-header h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
}

.yesno-mode-row,
.yesno-sets-row {
  margin-bottom: var(--space-lg);
}

.yesno-mode-row label,
.yesno-sets-row label {
  display: block; font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: var(--space-sm); font-weight: 600;
}

.mode-toggle-group,
.sets-toggle-group {
  display: flex; gap: var(--space-sm);
}

.mode-btn,
.set-btn {
  padding: 10px 16px; border: 1px solid var(--border-glass);
  background: transparent; color: var(--text-secondary);
  border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 600; font-size: 0.85rem;
  transition: all var(--transition-fast);
  flex: 1; text-align: center;
}

.mode-btn:hover,
.set-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.mode-btn.active,
.set-btn.active {
  background: var(--accent-primary); color: white;
  border-color: var(--accent-primary);
}

/* Yes/No Result */
.yesno-result-display {
  margin: var(--space-lg) auto 0;
}

.yes-result .result-text { color: #22c55e; }
.no-result .result-text { color: #eab308; }
.maybe-result .result-text { color: #9ca3af; }

.yes-result { border-color: #22c55e; }
.no-result { border-color: #eab308; }
.maybe-result { border-color: #6b7280; }

/* ================================================================
   Site Footer
   ================================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--border-glass);
  margin-top: var(--space-3xl);
}

.footer-container {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(26px, 3.2vw, 42px) var(--space-xl);
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) minmax(150px, 0.8fr) minmax(185px, 0.82fr) minmax(255px, 1fr);
  gap: clamp(12px, 1.5vw, 22px);
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  text-decoration: none;
}

.footer-brand-link .nav-brand-icon {
  font-size: 1.5rem;
}

.footer-desc {
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.88rem;
  max-width: 292px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 11px;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer-col a {
  display: block;
  width: fit-content;
  color: rgba(226, 232, 240, 0.64);
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 4px 0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-tertiary);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: rgba(226, 232, 240, 0.72);
  transition: all 240ms ease;
}

.social-icon:hover {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.14);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(226, 232, 240, 0.64);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact-item + .footer-contact-item {
  margin-top: 10px;
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #22d3ee;
  flex: 0 0 auto;
}

.footer-lang-grid {
  width: min(100%, 280px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.footer-lang-grid .lang-chip {
  min-height: 36px;
  padding: 6px 5px;
  border-radius: 11px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.footer-bottom {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 14px var(--space-xl) 22px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.46);
}

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(99, 102, 241, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.9));
  color: #22d3ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 36px rgba(2, 8, 23, 0.34);
  cursor: pointer;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  z-index: 40;
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.18);
}

@media (max-width: 1180px) {
  .footer-container {
    grid-template-columns: 1.1fr 0.95fr 0.95fr;
  }

  .footer-language-col {
    grid-column: 2 / -1;
  }
}

@media (max-width: 860px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 560px) {
  .footer-container {
    grid-template-columns: 1fr;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .footer-brand,
  .footer-language-col {
    grid-column: auto;
  }

  .footer-lang-grid {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scroll-top-btn {
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }
}

/* ================================================================
   Static Pages (About, Contact, Terms, Privacy, Sitemap)
   ================================================================ */
.static-page {
  max-width: 900px; margin: 0 auto;
  padding: var(--space-xl) 0;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-intro {
  color: var(--text-secondary); font-size: 1.05rem;
  margin-bottom: var(--space-xl);
}

.page-content { margin-top: var(--space-lg); }

.content-section {
  margin-bottom: var(--space-2xl);
}

.content-section h2 {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 700; margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.content-section p {
  color: var(--text-secondary); line-height: 1.7;
  margin-bottom: var(--space-md);
}

.content-section a {
  color: var(--accent-primary); text-decoration: underline;
}

.styled-list {
  list-style: none; padding: 0;
}

.styled-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.styled-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

/* About features */
.about-features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.about-feature {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: var(--space-xl);
  transition: transform var(--transition-base);
}

.about-feature:hover { transform: translateY(-3px); }

.about-icon {
  font-size: 2rem; display: block;
  margin-bottom: var(--space-md);
}

.about-feature h3 {
  font-family: var(--font-display); font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.about-feature p {
  color: var(--text-secondary); font-size: 0.9rem;
  line-height: 1.5;
}

/* Contact form */
.contact-layout {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl); align-items: start;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block; font-size: 0.9rem; font-weight: 600;
  margin-bottom: var(--space-sm); color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%; padding: 12px var(--space-md);
  background: var(--bg-secondary); border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
}

.form-group textarea { resize: vertical; }

.submit-btn {
  width: 100%; padding: 14px;
  background: var(--gradient-primary); color: white;
  border: none; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: all var(--transition-base);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px); box-shadow: var(--shadow-glow);
}

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

.form-status {
  text-align: center; margin-top: var(--space-md);
  font-size: 0.9rem; min-height: 20px;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

.contact-info {
  display: flex; flex-direction: column; gap: var(--space-md);
}

.contact-card {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: var(--space-lg);
  text-align: center;
}

.contact-icon {
  font-size: 1.8rem; display: block;
  margin-bottom: var(--space-sm);
}

.contact-card h3 {
  font-family: var(--font-display); font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.contact-card p {
  color: var(--text-secondary); font-size: 0.85rem;
}

/* Legal pages */
.legal-content .content-section {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

/* Sitemap */
.sitemap-list {
  list-style: none; padding: 0;
}

.sitemap-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-glass);
}

.sitemap-list li:last-child { border-bottom: none; }

.sitemap-list a {
  display: flex; align-items: center; gap: var(--space-sm);
  color: var(--text-primary); font-weight: 500;
  transition: color var(--transition-fast);
}

.sitemap-list a:hover { color: var(--accent-primary); }

/* 404 Page */
.not-found-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh;
}

.not-found-content {
  text-align: center;
}

.not-found-icon {
  font-size: 5rem; margin-bottom: var(--space-lg);
}

.not-found-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900; line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.not-found-text {
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: var(--space-sm);
}

.not-found-sub {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}
