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

:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette */
  --bg-dark: #09090e;
  --bg-panel: rgba(20, 20, 35, 0.55);
  --bg-panel-hover: rgba(30, 30, 50, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-active: rgba(255, 255, 255, 0.2);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Accents */
  --color-primary: #6366f1; /* Indigo */
  --color-basic: #10b981; /* Emerald */
  --color-intermediate: #f59e0b; /* Amber */
  --color-advanced: #ef4444; /* Rose */
  --color-success: #10b981;
  --color-error: #ef4444;

  /* Shadows & Blur */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
  --blur-val: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  animation: glow-float 20s infinite ease-in-out alternate;
}

.bg-glow-1 {
  width: 40vw;
  height: 40vw;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
}

.bg-glow-2 {
  width: 50vw;
  height: 50vw;
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  animation-duration: 25s;
  animation-delay: -5s;
}

.bg-glow-3 {
  width: 30vw;
  height: 30vw;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  animation-duration: 18s;
  animation-delay: -8s;
}

/* App Container Layout */
.app-container {
  width: 100%;
  max-width: 900px;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 auto;
}

/* Glassmorphism Panel Common */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(var(--blur-val));
  -webkit-backdrop-filter: blur(var(--blur-val));
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-panel-hover);
}

/* Header Styling */
.main-header {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.header-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.settings-gear-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-gear-btn:hover {
  color: var(--text-primary);
  background: var(--bg-panel-hover);
  border-color: var(--border-glass-active);
  transform: rotate(45deg) scale(1.08);
}

.settings-gear-btn:active {
  transform: scale(0.95);
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-tag {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #a5b4fc, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-title {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Controls */
.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
}

.control-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Custom Select Dropdowns */
.select-wrapper {
  position: relative;
  width: 100%;
}

.glass-select {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.glass-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(20, 20, 30, 0.8);
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--text-secondary);
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.select-wrapper:hover::after {
  color: var(--text-primary);
}

/* Mode Button Toggle */
.mode-toggle-container {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.25rem;
  border-radius: 12px;
  gap: 0.25rem;
}

.mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mode-btn svg {
  transition: transform 0.2s ease;
}

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

.mode-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.1);
}

.mode-btn.active svg {
  transform: scale(1.1);
}

/* Progress bar styling */
.progress-container {
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-secondary);
}

.level-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid currentColor;
}

.badge-basic {
  color: var(--color-basic);
  background: rgba(16, 185, 129, 0.1);
}

.badge-intermediate {
  color: var(--color-intermediate);
  background: rgba(245, 158, 11, 0.1);
}

.badge-advanced {
  color: var(--color-advanced);
  background: rgba(239, 68, 68, 0.1);
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--color-primary), #ec4899);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Play Area Grid */
.card-display-area {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  min-height: 480px;
}

/* Navigation Arrow Buttons */
.nav-arrow-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.nav-arrow-btn:hover {
  background: var(--bg-panel-hover);
  color: var(--text-primary);
  border-color: var(--border-glass-active);
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.nav-arrow-btn:active {
  transform: scale(0.95);
}

/* Card Deck & Containers */
.card-deck {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Target vocabulary card */
.vocab-card {
  position: absolute;
  width: 100%;
  max-width: 380px;
  height: 450px;
  background: rgba(18, 18, 30, 0.7);
  backdrop-filter: blur(var(--blur-val));
  -webkit-backdrop-filter: blur(var(--blur-val));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: grab;
  user-select: none;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.5s ease, border-color 0.3s ease;
  will-change: transform, opacity;
}

.vocab-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.vocab-card:active {
  cursor: grabbing;
}

/* Card Image Area */
.card-image-container {
  width: 100%;
  height: 230px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.vocab-card:hover .card-image {
  transform: scale(1.04);
}

/* Glassy overlay on image */
.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 9, 14, 0.7) 0%, rgba(9, 9, 14, 0) 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.vocab-card:hover .image-overlay {
  opacity: 1;
}

/* Sound Wave animation icon */
.sound-indicator {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e0e7ff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vocab-card:hover .sound-indicator {
  transform: scale(1.1);
  background: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}

.sound-indicator svg {
  width: 28px;
  height: 28px;
}

/* Pulsing audio waves */
.audio-playing .sound-indicator {
  animation: pulse-ring 1.2s infinite ease-out;
  background: rgba(16, 185, 129, 0.35);
  border-color: rgba(16, 185, 129, 0.5);
  color: #ecfdf5;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Card details (Learn mode) */
.card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  transition: opacity 0.3s ease;
}

.card-details.hidden-mode {
  opacity: 0.15;
  filter: blur(4px);
  pointer-events: none;
}

.word-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.word-english {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.word-phonetic {
  font-size: 0.95rem;
  color: var(--color-primary);
  font-family: monospace;
  font-weight: 600;
}

.word-spanish {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.word-zone-tag {
  align-self: center;
  margin-top: 0.4rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Gesture State Classes */
.vocab-card.swiping {
  transition: none; /* Instant feedback during drag */
}

.vocab-card.swipe-left {
  transform: translate(-150%, 50px) rotate(-30deg) !important;
  opacity: 0 !important;
}

.vocab-card.swipe-right {
  transform: translate(150%, 50px) rotate(30deg) !important;
  opacity: 0 !important;
}

/* Practice Spelling Section */
.spelling-panel {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: slide-up 0.4s ease;
}

.panel-subtitle {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.spelling-slots-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.letter-slot {
  width: 48px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.letter-slot:focus {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
  transform: scale(1.05);
}

/* Special read-only separator character slots */
.letter-slot.separator-slot {
  width: 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: default;
  user-select: none;
}

/* Success Validation state */
.spelling-slots-container.valid-success .letter-slot {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--color-success);
  color: #d1fae5;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
  animation: letter-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Stagger animations for bounce */
.spelling-slots-container.valid-success .letter-slot:nth-child(1) { animation-delay: 0.05s; }
.spelling-slots-container.valid-success .letter-slot:nth-child(2) { animation-delay: 0.10s; }
.spelling-slots-container.valid-success .letter-slot:nth-child(3) { animation-delay: 0.15s; }
.spelling-slots-container.valid-success .letter-slot:nth-child(4) { animation-delay: 0.20s; }
.spelling-slots-container.valid-success .letter-slot:nth-child(5) { animation-delay: 0.25s; }
.spelling-slots-container.valid-success .letter-slot:nth-child(6) { animation-delay: 0.30s; }
.spelling-slots-container.valid-success .letter-slot:nth-child(7) { animation-delay: 0.35s; }
.spelling-slots-container.valid-success .letter-slot:nth-child(8) { animation-delay: 0.40s; }
.spelling-slots-container.valid-success .letter-slot:nth-child(9) { animation-delay: 0.45s; }
.spelling-slots-container.valid-success .letter-slot:nth-child(10) { animation-delay: 0.50s; }

/* Error Validation state */
.spelling-slots-container.valid-error .letter-slot {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--color-error);
  color: #fee2e2;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
  animation: letter-shake 0.4s ease-in-out;
}

.validation-status {
  height: 20px;
}

.validation-msg {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: color 0.3s ease;
}

.msg-success { color: var(--color-success); }
.msg-error { color: var(--color-error); }

/* Micro Settings panel for TTS */
.tts-settings {
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.tts-setting-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tts-setting-item label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.glass-select-sm {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.glass-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.glass-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 8px var(--color-primary);
  transition: transform 0.1s ease;
}

.glass-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#speed-val {
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--text-secondary);
  min-width: 35px;
}

/* Footer & Keyboard Shortcuts */
.main-footer {
  margin-top: auto;
  padding: 1.5rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.main-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.keyboard-shortcuts {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: inline-block;
  align-self: center;
}

/* Helper Utility Classes */
.hidden {
  display: none !important;
}

/* Keyframe Animations */
@keyframes glow-float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(5%, 10%) scale(1.1);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0.3);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0), 0 0 0 20px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes letter-bounce {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-16px);
  }
  60% {
    transform: translateY(4px);
  }
  80% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes letter-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .app-container {
    padding: 1rem 1rem;
    gap: 1rem;
  }

  .main-title {
    font-size: 1.75rem;
  }

  .main-header {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .control-group {
    min-width: unset;
  }

  .card-display-area {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: unset;
    gap: 1rem;
  }

  .nav-arrow-btn {
    display: none; /* Hide arrows on mobile, prioritize touch swipe gestures */
  }

  .card-deck {
    height: 420px;
    grid-row: 1;
  }

  .vocab-card {
    height: 400px;
  }

  .card-image-container {
    height: 190px;
  }

  .spelling-panel {
    padding: 1.25rem 1rem;
  }

  .letter-slot {
    width: 38px;
    height: 44px;
    font-size: 1.25rem;
    border-radius: 8px;
  }

  .tts-settings {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }

  .tts-setting-item {
    justify-content: space-between;
  }

  .keyboard-shortcuts {
    display: none; /* Shortcuts not relevant for phone screens without kb */
  }
}

/* Settings Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  width: 90%;
  max-width: 440px;
  background: rgba(15, 15, 25, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden .modal-content {
  transform: scale(0.92);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-active);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-control-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.range-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.range-wrapper .glass-range {
  flex: 1;
}

.range-wrapper span {
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  min-width: 40px;
  text-align: right;
}

.mode-toggle-full {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
