/* ==========================================================================
   YesOrNoWheel.net - Design System & Modern Aesthetics
   ========================================================================== */

/* Web fonts are loaded asynchronously via HTML <link rel="preload"> to prevent render-blocking chains */

:root {
  /* Color Palette - Dark Neon (Default) */
  --bg-base: #090d16;
  --bg-surface: rgba(17, 24, 39, 0.75);
  --bg-surface-elevated: rgba(30, 41, 59, 0.85);
  --bg-surface-glass: rgba(15, 23, 42, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --color-yes: #10b981;
  --color-yes-glow: rgba(16, 185, 129, 0.4);
  --color-no: #f43f5e;
  --color-no-glow: rgba(244, 63, 94, 0.4);
  --color-maybe: #8b5cf6;
  --color-maybe-glow: rgba(139, 92, 246, 0.4);

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --yes-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --no-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px var(--border-accent);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Theme: Cyberpunk */
[data-theme="cyberpunk"] {
  --bg-base: #060813;
  --bg-surface: rgba(13, 17, 38, 0.85);
  --bg-surface-elevated: rgba(21, 28, 60, 0.9);
  --border-subtle: rgba(0, 245, 255, 0.15);
  --border-accent: rgba(255, 0, 127, 0.5);
  --accent-gradient: linear-gradient(135deg, #00f5ff 0%, #ff007f 100%);
  --color-yes: #00f5ff;
  --color-yes-glow: rgba(0, 245, 255, 0.4);
  --color-no: #ff007f;
  --color-no-glow: rgba(255, 0, 127, 0.4);
}

/* Theme: Sunset Glow */
[data-theme="sunset"] {
  --bg-base: #140d1a;
  --bg-surface: rgba(36, 20, 44, 0.8);
  --bg-surface-elevated: rgba(56, 30, 68, 0.85);
  --border-subtle: rgba(245, 158, 11, 0.15);
  --border-accent: rgba(244, 63, 94, 0.45);
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
}

/* Theme: Clean Light */
[data-theme="light"] {
  --bg-base: #f1f5f9;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-elevated: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.7);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(99, 102, 241, 0.3);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* GPU-composited background avoids scroll repaint thrashing */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

/* Typography Headings */
h1,
h2,
h3,
h4,
.brand-logo,
.font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Top Navigation Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-surface-glass);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-title {
  background: linear-gradient(135deg, #0f172a 30%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  letter-spacing: 0.05em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.1rem;
}

.icon-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.theme-dropdown {
  position: relative;
}

.theme-select {
  appearance: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem 1.8rem 0.5rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.theme-select:focus {
  border-color: var(--accent-primary);
}

/* Main Container Layout */
.main-layout {
  max-width: 1400px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .main-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

/* Question Banner Area */
.question-banner {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.question-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.question-input-row {
  display: flex;
  gap: 0.5rem;
  position: relative;
}

.question-input {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
}

.question-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
  color: #a5b4fc;
}

/* Wheel Stage Area */
.wheel-stage-container {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Choice / Slices Selector Bar (User Request: 1, 2, 4, 6, 8 etc. Default 4) */
.slices-control-bar {
  width: 100%;
  max-width: 520px;
  margin-bottom: 1.5rem;
  background: var(--bg-surface-elevated);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.slices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.slices-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.current-slices-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.slices-pills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.slice-pill-btn {
  flex: 1;
  min-width: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.slice-pill-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.slice-pill-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.slice-pill-btn .pill-badge {
  font-size: 0.65rem;
  display: block;
  font-weight: 500;
  opacity: 0.85;
}

/* Wheel Box & Flapper */
.wheel-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wheelCanvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
}

/* Top Pointer Flapper */
.wheel-flapper {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 36px;
  height: 48px;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
  transform-origin: top center;
  transition: transform 0.05s ease-out;
  will-change: transform;
}

.wheel-flapper svg {
  width: 100%;
  height: 100%;
}

/* Wheel Center Hub & Center Spin Button */
.center-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 4px solid #ffffff;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  will-change: transform;
}

.center-spin-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.6), inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.center-spin-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.center-spin-btn.spinning {
  pointer-events: none;
  opacity: 0.85;
}

/* Primary Action Bar Under Wheel */
.wheel-controls-bottom {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 420px;
}

.btn-primary-spin {
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.45);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-primary-spin:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(99, 102, 241, 0.6);
}

.btn-primary-spin:active {
  transform: translateY(1px);
}

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

.keyboard-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

kbd {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: inherit;
}

/* Right Column: Configuration & Sidebar Panels */
.side-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mode Switcher Tabs */
.mode-tabs {
  display: flex;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 0.3rem;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.mode-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.mode-tab:hover {
  color: var(--text-primary);
}

.mode-tab.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Speed / Intensity Selector */
.intensity-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.intensity-btn {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.intensity-btn.active {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.15);
}

/* Custom Items Editor */
.custom-editor-container {
  display: none;
  margin-top: 1rem;
}

.custom-editor-container.visible {
  display: block;
}

.custom-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.custom-input {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.custom-items-list {
  max-height: 180px;
  overflow-y: auto;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.custom-item-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.custom-item-chip .chip-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.custom-item-chip .chip-del:hover {
  color: var(--color-no);
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}

.stat-val.val-yes {
  color: var(--color-yes);
}

.stat-val.val-no {
  color: var(--color-no);
}

.stat-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* Percentage Bar */
.ratio-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
  margin-bottom: 0.5rem;
}

.ratio-bar-yes {
  background: var(--color-yes);
  height: 100%;
  width: 50%;
  transition: width 0.4s ease;
}

.ratio-bar-no {
  background: var(--color-no);
  height: 100%;
  width: 50%;
  transition: width 0.4s ease;
}

.ratio-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* History Log */
.history-list {
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  animation: fadeIn 0.3s ease;
}

.history-outcome {
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.history-outcome.yes {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-yes);
}

.history-outcome.no {
  background: rgba(244, 63, 94, 0.2);
  color: var(--color-no);
}

.history-outcome.maybe {
  background: rgba(139, 92, 246, 0.2);
  color: var(--color-maybe);
}

.history-question {
  color: var(--text-secondary);
  font-size: 0.8rem;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1.5rem 0;
}

/* Winner Celebration Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-pretitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-question {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  min-height: 1.5rem;
}

.modal-result-box {
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  display: inline-block;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.modal-result-box.yes {
  background: var(--yes-gradient);
  box-shadow: 0 12px 35px var(--color-yes-glow);
}

.modal-result-box.no {
  background: var(--no-gradient);
  box-shadow: 0 12px 35px var(--color-no-glow);
}

.modal-result-box.maybe {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 12px 35px var(--color-maybe-glow);
}

.modal-result-text {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-actions-row {
  display: flex;
  gap: 0.75rem;
}

.btn-modal-primary {
  background: var(--accent-gradient);
  border: none;
  color: #ffffff;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: var(--transition-fast);
}

.btn-modal-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-modal-secondary {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-modal-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-accent);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Confetti Canvas Overlay */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
}

/* SEO Content & FAQ Section */
.content-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

/* FAQ Accordion */
.faq-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  margin-top: 2rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  overflow: hidden;
}

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

.faq-question svg {
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   Modern Multi-Column Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2rem;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
}

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

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

.footer-brand-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--accent-primary);
  transform: translateX(3px);
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-bar a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-bottom-bar a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Informational, Legal & Form Pages Styling
   ========================================================================== */
.page-wrapper {
  max-width: 920px;
  margin: 2rem auto 4rem;
  padding: 0 1.25rem;
}

.page-back-nav {
  margin-bottom: 1.5rem;
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.page-back-link:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  transform: translateX(-2px);
}

.article-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
  .article-card {
    padding: 1.75rem 1.25rem;
  }
}

.page-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .page-title {
  background: linear-gradient(135deg, #0f172a 30%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.article-body {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 0.98rem;
}

.article-body h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body strong {
  color: var(--text-primary);
}

.info-highlight-box {
  background: var(--bg-surface-elevated);
  border-left: 4px solid var(--accent-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  color: var(--text-secondary);
}

/* Forms System (Contact & Feedback) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 680px) {
  .form-grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group.col-span-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-label .required {
  color: var(--color-no);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit-form {
  background: var(--accent-gradient);
  border: none;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5);
}

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

/* Star Rating Component */
.star-rating-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.35rem;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 2.2rem;
  color: #475569;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
  color: #f59e0b;
  transform: scale(1.1);
}

.rating-text-feedback {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Alert Banners */
.alert-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  animation: fadeIn 0.3s ease;
}

.alert-banner.visible {
  display: flex;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--color-yes);
  color: #34d399;
}

.alert-error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid var(--color-no);
  color: #fb7185;
}

/* CSS Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .wheel-stage-container {
    padding: 1.25rem 0.75rem;
  }

  .slices-control-bar {
    padding: 0.75rem;
  }

  .modal-card {
    padding: 1.75rem 1.25rem;
  }

  .modal-result-text {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   SEO Enhancements & Modern Content Section Styles
   ========================================================================== */

/* Hero SEO Header */
.hero-seo-header {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.hero-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #0f172a 30%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="cyberpunk"] .hero-title {
  background: linear-gradient(135deg, #00f5ff 0%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="sunset"] .hero-title {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.65;
}

/* How-To 3-Step Guide */
.how-to-section {
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.step-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Slice Probability & Table Styles */
.info-card-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.seo-table th {
  background: var(--bg-surface-elevated);
  padding: 0.95rem 1.15rem;
  color: var(--text-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.seo-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.seo-table tbody tr:last-child td {
  border-bottom: none;
}

.seo-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

/* Use Cases Section */
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.use-case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.use-case-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.use-case-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.use-case-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.use-case-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Psychology Deep Dive Box */
.psychology-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
}

.psychology-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
}

.psychology-content h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.psychology-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.psychology-content p:last-child {
  margin-bottom: 0;
}

/* Breadcrumb Navigation for Inner Pages */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.breadcrumb-link:hover {
  text-decoration: underline;
  color: var(--accent-primary-hover);
}

.breadcrumb-separator {
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Homepage SEO Article & Rich Editorial Content Styles
   ========================================================================== */

/* Article Container */
.article-container,
.content-section .container {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.75rem);
  margin: 3.5rem auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.06);
  transition: border-color var(--transition-normal);
}

/* Glowing Top Accent Strip */
.article-container::before,
.content-section .container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 2;
}

/* Article Header */
.article-header,
.content-section .container > header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.article-title,
.content-section .container > header h1,
.content-section .container > header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 25%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .article-title,
[data-theme="light"] .content-section .container > header h1,
[data-theme="light"] .content-section .container > header h2 {
  background: linear-gradient(135deg, #0f172a 30%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="cyberpunk"] .article-title,
[data-theme="cyberpunk"] .content-section .container > header h1,
[data-theme="cyberpunk"] .content-section .container > header h2 {
  background: linear-gradient(135deg, #00f5ff 0%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="sunset"] .article-title,
[data-theme="sunset"] .content-section .container > header h1,
[data-theme="sunset"] .content-section .container > header h2 {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-subtitle,
.content-section .container .subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

/* Hero Note Badge */
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
  transition: var(--transition-normal);
}

.hero-note:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .hero-note {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: #4f46e5;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
}

[data-theme="cyberpunk"] .hero-note {
  background: rgba(0, 245, 255, 0.15);
  border-color: rgba(0, 245, 255, 0.4);
  color: #00f5ff;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

[data-theme="sunset"] .hero-note {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

/* Article Content & Typography */
.article-content,
.content-section article {
  max-width: 960px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-lead {
  font-size: 1.18rem;
  color: var(--text-primary);
  line-height: 1.8;
  font-weight: 450;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent-primary);
  padding-left: 1.25rem;
}

.article-content p,
.content-section article p {
  margin-bottom: 1.4rem;
}

.article-content strong,
.content-section article strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Section Headings inside Article */
.article-content h2,
.content-section article h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 3.25rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.015em;
}

.article-content h2::before,
.content-section article h2::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 1.3em;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* 7-Step Interactive Grid */
.article-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0 2.75rem;
}

@media (min-width: 720px) {
  .article-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-step-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.article-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.15);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
}

.step-card-text {
  flex: 1;
}

.step-card-text strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.step-card-text p {
  margin: 0 !important;
  font-size: 0.93rem !important;
  line-height: 1.6 !important;
  color: var(--text-secondary) !important;
}

/* Pro Tip Highlight Callout */
.highlight,
.content-section article .highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-left: 5px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem;
  margin: 2.25rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.08);
  transition: var(--transition-normal);
}

.highlight:hover,
.content-section article .highlight:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.highlight-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.highlight-text {
  flex: 1;
}

.highlight-text strong {
  color: #a5b4fc;
  font-weight: 700;
  font-size: 1.05rem;
}

[data-theme="light"] .highlight,
[data-theme="light"] .content-section article .highlight {
  background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
  border-color: rgba(99, 102, 241, 0.25);
  border-left: 5px solid #4f46e5;
  color: #1e293b;
}

[data-theme="light"] .highlight-text strong {
  color: #4338ca;
}

[data-theme="cyberpunk"] .highlight,
[data-theme="cyberpunk"] .content-section article .highlight {
  border-left-color: #00f5ff;
  border-color: rgba(0, 245, 255, 0.35);
}

[data-theme="cyberpunk"] .highlight-text strong {
  color: #00f5ff;
}

[data-theme="sunset"] .highlight,
[data-theme="sunset"] .content-section article .highlight {
  border-left-color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
}

[data-theme="sunset"] .highlight-text strong {
  color: #f59e0b;
}

/* Tips Container & Tip Cards */
.tips,
.content-section article .tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2.25rem 0;
}

.tip,
.content-section article .tip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  cursor: default;
}

.tip:hover,
.content-section article .tip:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), 0 0 15px rgba(99, 102, 241, 0.12);
  background: rgba(99, 102, 241, 0.08);
}

.tip-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

[data-theme="light"] .tip,
[data-theme="light"] .content-section article .tip {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

/* CTA Box */
.cta-box,
.content-section article .cta-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(236, 72, 153, 0.16) 100%);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: var(--radius-xl);
  padding: clamp(2.25rem, 5vw, 3.25rem) 2rem;
  margin: 3.5rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2);
}

.cta-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.cta-box p,
.content-section article .cta-box p {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem !important;
  position: relative;
  z-index: 1;
  letter-spacing: -0.015em;
}

.cta-button,
.content-section article .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent-gradient);
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.95rem 2.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
  transition: var(--transition-normal);
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

.cta-button:hover,
.content-section article .cta-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.65);
  color: #ffffff !important;
  text-decoration: none;
}

.cta-button:active,
.content-section article .cta-button:active {
  transform: translateY(-1px) scale(0.99);
}

[data-theme="light"] .cta-box,
[data-theme="light"] .content-section article .cta-box {
  background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}

[data-theme="cyberpunk"] .cta-box,
[data-theme="cyberpunk"] .content-section article .cta-box {
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 16px 40px rgba(0, 245, 255, 0.2);
}

[data-theme="sunset"] .cta-box,
[data-theme="sunset"] .content-section article .cta-box {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.2);
}

/* Mobile Responsiveness for Article */
@media (max-width: 640px) {
  .article-container,
  .content-section .container {
    padding: 1.75rem 1.25rem;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
  }

  .article-header,
  .content-section .container > header {
    margin-bottom: 2rem;
  }

  .article-step-card {
    padding: 1.15rem 1.2rem;
    gap: 0.85rem;
  }

  .step-num-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.95rem;
  }

  .highlight,
  .content-section article .highlight {
    padding: 1.15rem 1.25rem;
    gap: 0.75rem;
  }

  .tips,
  .content-section article .tips {
    grid-template-columns: 1fr;
  }

  .cta-box,
  .content-section article .cta-box {
    padding: 2rem 1.25rem;
  }

  .cta-button,
  .content-section article .cta-button {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }
}