/* ============================================
   WHEEL OF NAMES — Custom Styles
   ============================================ */

/* ---------- Google Fonts ---------- */
/* Loaded via <link> in head.php to avoid render-blocking @import */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --primary: #4ECDC4;
  --primary-light: #7EDDD7;
  --primary-dark: #2EAD9E;
  --accent: #FF6B6B;
  --accent-light: #FF9B9B;

  /* Light Mode */
  --bg-primary: #F0F4F8;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #E8EDF2;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-hover: rgba(255, 255, 255, 0.85);
  --text-primary: #1A202C;
  --text-secondary: #4A5568;
  --text-muted: #A0AEC0;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --glow: 0 0 20px rgba(78, 205, 196, 0.3);

  /* Wheel */
  --wheel-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  --hub-bg: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  --pointer-color: #FF6B6B;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary: #0F1219;
  --bg-secondary: #1A1F2E;
  --bg-tertiary: #252B3B;
  --bg-glass: rgba(26, 31, 46, 0.8);
  --bg-glass-hover: rgba(37, 43, 59, 0.9);
  --text-primary: #E2E8F0;
  --text-secondary: #A0AEC0;
  --text-muted: #5A6578;
  --border-color: rgba(255, 255, 255, 0.06);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
  --glow: 0 0 30px rgba(78, 205, 196, 0.2);
  --wheel-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Background Pattern ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(78, 205, 196, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 107, 107, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(69, 183, 209, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Glassmorphism Panel ---------- */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.glass-panel:hover {
  box-shadow: var(--shadow-xl);
}

/* ---------- Master Header Wrapper ---------- */
.app-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease-in-out;
}

.app-header-wrapper.header-hidden {
  transform: translateY(-100%);
}

.top-banner {
  background: #22C55E; /* Green brand color */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'Inter', sans-serif;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Wheel Container ---------- */
.wheel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-wrapper {
  position: relative;
  display: inline-block;
}

#wheelCanvas {
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
  transition: filter 0.3s ease;
}

[data-theme="dark"] #wheelCanvas {
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

/* Pointer */
.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 32px solid var(--pointer-color);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  z-index: 10;
  transition: transform 0.1s ease;
}

.wheel-pointer.bounce {
  animation: pointerBounce 0.15s ease;
}

@keyframes pointerBounce {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  50% { transform: translateX(-50%) rotate(3deg); }
}

/* ---------- Spin Button ---------- */
.spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--hub-bg);
  border: 3px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
}

.spin-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    0 6px 25px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 20px rgba(78, 205, 196, 0.3);
  border-color: var(--primary);
}

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

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

/* ---------- Entry Panel ---------- */
.entry-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.entry-input-wrapper {
  position: relative;
}

.entry-input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.entry-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.15);
}

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

.add-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.add-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.05);
}

/* Entry List */
.entry-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

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

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

.entry-list::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

.entry-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.entry-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  animation: slideIn 0.25s ease;
}

.entry-item:hover {
  background: var(--bg-glass-hover);
  transform: translateX(2px);
}

.entry-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.entry-text {
  flex: 1;
  font-size: 0.9rem;
  cursor: text;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-text:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
}

.entry-remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0;
}

.entry-item:hover .entry-remove {
  opacity: 1;
}

.entry-remove:hover {
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ---------- Control Buttons ---------- */
.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.control-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--shadow-color);
}

.control-btn.active {
  background: rgba(78, 205, 196, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.control-btn.danger:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Toggle Switch ---------- */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-tertiary);
  border-radius: 24px;
  transition: 0.3s;
  border: 1px solid var(--border-color);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0-0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
  border-color: var(--primary-dark);
}

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

/* ---------- Duration Slider ---------- */
.duration-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.duration-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.duration-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(78, 205, 196, 0.4);
}

.duration-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.duration-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

/* ---------- Winner Modal ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.8) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

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

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}

.modal-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-icon:hover {
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent);
  transform: rotate(90deg);
}

.winner-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounceIn 0.6s ease;
}

.winner-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

.winner-name {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  word-break: break-word;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.modal-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 14px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.modal-btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.modal-btn-secondary:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* ---------- Modal Extension Promos ---------- */
.ext-promo-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.ext-promo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.ext-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ext-chrome {
  background: rgba(66, 133, 244, 0.05);
  color: #4285F4;
  border-color: rgba(66, 133, 244, 0.2);
}

.ext-chrome:hover {
  background: rgba(66, 133, 244, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

.ext-edge {
  background: rgba(0, 120, 215, 0.05);
  color: #0078D7;
  border-color: rgba(0, 120, 215, 0.2);
}

.ext-edge:hover {
  background: rgba(0, 120, 215, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 120, 215, 0.15);
}

[data-theme="dark"] .ext-chrome {
  background: rgba(66, 133, 244, 0.1);
  color: #8AB4F8;
  border-color: rgba(66, 133, 244, 0.3);
}

[data-theme="dark"] .ext-edge {
  background: rgba(0, 120, 215, 0.1);
  color: #60A5FA;
  border-color: rgba(0, 120, 215, 0.3);
}

@media (max-width: 480px) {
  .ext-promo-wrapper {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- Wheel Overlays & Extensions ---------- */
.fullscreen-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fullscreen-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--primary);
  transform: scale(1.05);
}

.fullscreen-btn svg {
  transition: transform 0.3s ease;
}

[data-theme="dark"] .fullscreen-btn {
  background: rgba(30,41,59,0.7);
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .fullscreen-btn:hover {
  background: rgba(30,41,59,0.9);
}

/* ---------- History Panel ---------- */
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  margin-bottom: 4px;
  animation: slideIn 0.25s ease;
}

.history-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.history-name {
  font-size: 0.85rem;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* ---------- Language Selector ---------- */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: var(--bg-glass-hover);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 6px;
  min-width: 180px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  max-height: 320px;
  overflow-y: auto;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-option:hover {
  background: rgba(78, 205, 196, 0.1);
  color: var(--text-primary);
}

.lang-option.active {
  background: rgba(78, 205, 196, 0.15);
  color: var(--primary);
  font-weight: 600;
}

/* ---------- Dark Mode Toggle ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  transform: rotate(15deg);
}

/* ---------- SEO Content Sections ---------- */
.seo-section {
  position: relative;
  z-index: 1;
}

.seo-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.seo-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.seo-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1rem;
}

.seo-section ul, .seo-section ol {
  color: var(--text-secondary);
  padding-left: 20px;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 16px 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

/* ---------- Animations ---------- */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

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

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

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

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

/* ---------- Toast Notifications ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Bulk Modal ---------- */
.bulk-textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

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

.bulk-textarea::placeholder {
  color: var(--text-muted);
}

/* ---------- Sound Toggle ---------- */
.sound-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.sound-toggle:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.sound-toggle.muted {
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .logo-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .modal-content {
    padding: 28px 20px;
  }

  .winner-name {
    font-size: 1.8rem;
  }

  .seo-section h2 {
    font-size: 1.5rem;
  }

  .spin-btn {
    width: 65px;
    height: 65px;
    font-size: 0.75rem;
  }

  .entry-remove {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.1rem;
  }

  .spin-btn {
    width: 55px;
    height: 55px;
    font-size: 0.7rem;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .site-header,
  .spin-btn,
  .entry-panel,
  .site-footer,
  .modal-overlay {
    display: none !important;
  }

  body::before {
    display: none;
  }
}

/* ---------- Tabs Interface ---------- */
.tab-nav {
  border-bottom: 1px solid var(--border-color);
  gap: 16px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

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

.tab-btn.active {
  color: var(--primary);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* ---------- Legal & Info Pages ---------- */
.legal-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

.legal-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-content p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .legal-container {
    margin: 20px;
    padding: 24px;
  }
  
  .legal-content h1 {
    font-size: 2rem;
  }
}

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

/* ---------- Extension CTA Section ---------- */
.ext-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ext-cta-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.ext-cta-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #9B59B6, var(--accent), var(--primary));
  background-size: 300% 100%;
  animation: ctaGlowShift 4s ease-in-out infinite;
}

@keyframes ctaGlowShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ext-cta-content {
  padding: 40px 32px;
  text-align: center;
}

.ext-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(78, 205, 196, 0.1);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  border: 1px solid rgba(78, 205, 196, 0.2);
}

.ext-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ext-cta-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.ext-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.ext-store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 200px;
}

.ext-store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.ext-store-btn img {
  flex-shrink: 0;
}

.ext-store-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ext-store-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.ext-store-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Store-specific hover accents */
.ext-store-chrome:hover {
  border-color: rgba(66, 133, 244, 0.4);
  background: rgba(66, 133, 244, 0.05);
}

.ext-store-firefox:hover {
  border-color: rgba(255, 113, 57, 0.4);
  background: rgba(255, 113, 57, 0.05);
}

.ext-store-edge:hover {
  border-color: rgba(0, 120, 212, 0.4);
  background: rgba(0, 120, 212, 0.05);
}

/* Dark mode adjustments */
[data-theme="dark"] .ext-cta-card {
  background: var(--bg-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .ext-store-btn {
  background: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .ext-store-chrome:hover {
  background: rgba(66, 133, 244, 0.1);
  border-color: rgba(66, 133, 244, 0.3);
}

[data-theme="dark"] .ext-store-firefox:hover {
  background: rgba(255, 113, 57, 0.1);
  border-color: rgba(255, 113, 57, 0.3);
}

[data-theme="dark"] .ext-store-edge:hover {
  background: rgba(0, 120, 212, 0.1);
  border-color: rgba(0, 120, 212, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
  .ext-cta-content {
    padding: 28px 20px;
  }

  .ext-cta-title {
    font-size: 1.4rem;
  }

  .ext-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ext-store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ---------- Uninstall Page ---------- */
.uninstall-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 10;
}

.uninstall-emoji {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.uninstall-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-xl);
}

.uninstall-reason {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.uninstall-reason:hover {
  border-color: var(--primary);
  background: rgba(78, 205, 196, 0.05);
}

.uninstall-reason input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.uninstall-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color 0.2s ease;
}

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

.uninstall-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
  transition: all 0.3s ease;
}

.uninstall-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

.reinstall-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.reinstall-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}
