:root {
  --bg-primary: #0a0d12;
  --bg-secondary: #121720;
  --bg-card: #18202c;
  --bg-card-hover: #1e2838;
  --bg-glass: rgba(24, 32, 44, 0.75);
  
  --border-color: #263345;
  --border-focus: #00e5ff;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  --accent-rose: #f43f5e;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER */
.app-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #151d29 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-cyan), #4facfe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07101b;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.logo-icon svg {
  width: 26px;
  height: 26px;
}

.app-header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mic-select-wrap,
.mic-model-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.mic-select-wrap label,
.mic-model-wrap label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.mic-select-wrap select,
.mic-model-wrap select {
  background: transparent;
  color: var(--text-main);
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  max-width: 230px;
  cursor: pointer;
}

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

.btn-lang:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
  transform: translateY(-1px);
}

.flag-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.btn-info-pill {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-info-pill:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--accent-amber);
  transform: translateY(-1px);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.45);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

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

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* MAIN CONTENT */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* SPECTRUM CARD */
.visualizer-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-title-group h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s ease;
}

.status-dot.active {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.card-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* TOGGLE CONTROLS */
.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  user-select: none;
}

.toggle-control input {
  display: none;
}

.toggle-switch {
  width: 34px;
  height: 18px;
  background: #253346;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle-control input:checked + .toggle-switch {
  background: var(--accent-cyan);
}

.toggle-control input:checked + .toggle-switch::after {
  transform: translateX(16px);
  background: #07101b;
}

.toggle-control input:checked ~ .toggle-label {
  color: var(--text-main);
}

/* VOCAL ZONES BADGES */
.vocal-zones-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zone-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  cursor: help;
  transition: all 0.2s;
}

.zone-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--text-main);
  transform: translateY(-1px);
}

.zone-sub { border-left: 3px solid #ef4444; }
.zone-body { border-left: 3px solid #f97316; }
.zone-mud { border-left: 3px solid #eab308; }
.zone-box { border-left: 3px solid #84cc16; }
.zone-nasal { border-left: 3px solid #06b6d4; }
.zone-presence { border-left: 3px solid #3b82f6; }
.zone-sibilance { border-left: 3px solid #a855f7; }
.zone-air { border-left: 3px solid #ec4899; }

/* CANVAS WRAPPER */
.canvas-wrapper {
  position: relative;
  width: 100%;
  background: #080c11;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

#spectrumCanvas {
  display: block;
  width: 100%;
  height: 380px;
}

.canvas-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 17, 0.85);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.canvas-empty-state.hidden {
  opacity: 0;
  visibility: hidden;
}

/* METERS BAR */
.meters-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: var(--bg-card);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  align-items: center;
}

.meter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.meter-label {
  color: var(--text-muted);
  white-space: nowrap;
}

.meter-track {
  flex: 1;
  height: 8px;
  background: #0b1016;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #1f2c3d;
}

.meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 75%, #ef4444 100%);
  border-radius: 999px;
  transition: width 0.05s linear;
}

.meter-fill.rms-fill {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
}

.meter-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
  min-width: 65px;
  text-align: right;
  font-size: 0.8rem;
}

.meter-val.highlight {
  color: var(--accent-cyan);
}

/* EXPLAINER CARD / MODAL */
.explainer-card {
  background: linear-gradient(135deg, #18202d 0%, #151c27 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
  animation: fadeIn 0.25s ease;
  position: relative;
}

.explainer-card.hidden {
  display: none;
}

.explainer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.explainer-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.explainer-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fcd34d;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.explainer-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.explainer-col {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explainer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.explainer-col p,
.explainer-col li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.explainer-col ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* TEST PROGRESS CARD */
.test-progress-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #172554 100%);
  border: 1px solid #4338ca;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(67, 56, 202, 0.25);
  animation: fadeIn 0.3s ease;
}

.test-progress-card.hidden {
  display: none;
}

.test-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.test-countdown-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4f46e5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.6);
  flex-shrink: 0;
}

.test-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.test-info p {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #38bdf8);
  border-radius: 999px;
  transition: width 0.1s linear;
}

/* RESULTS CONTAINER */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-badge.badge-blue { color: var(--accent-blue); }
.section-badge.badge-green { color: var(--accent-emerald); }

/* VOICE PROFILE CARD */
.voice-profile-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.profile-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.target-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.target-picker select {
  background: transparent;
  color: var(--text-main);
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.diagnosis-bubble {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.bubble-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.metric-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.m-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.m-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* VOCAL TRAITS & CORRECTIONS */
.voice-traits-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
}

.traits-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.traits-label {
  font-size: 0.88rem;
  color: var(--text-main);
}

.detected-freq-badge {
  font-size: 0.8rem;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detected-freq-badge.hidden {
  display: none;
}

.traits-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.trait-pill {
  background: #0f141d;
  border: 1px solid #222e40;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  color: var(--text-main);
  font-family: inherit;
}

.trait-pill:hover {
  background: #151d2a;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.trait-pill.active {
  background: rgba(59, 130, 246, 0.12);
  border-color: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
}

.trait-pill.active .trait-name {
  color: #60a5fa;
}

.trait-icon {
  font-size: 1.3rem;
  line-height: 1.2;
}

.trait-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trait-desc {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.35;
}

/* EQ RECOMMENDATIONS CARD */
.eq-recommendations-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.section-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.section-top-bar h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.mode-tabs {
  display: flex;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

/* EQ SUB-BAR & INTENSITY SELECTOR */
.eq-sub-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-top: -4px;
  margin-bottom: 8px;
}

.intensity-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.intensity-picker select {
  background: #0d121a;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-warning-pill {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-warning-pill:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-1px);
}

/* TROUBLESHOOTING BOX */
.troubleshoot-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.25s ease;
  margin-bottom: 12px;
}

.troubleshoot-box.hidden {
  display: none;
}

.troubleshoot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.troubleshoot-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.troubleshoot-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.troubleshoot-item h4 {
  font-size: 0.9rem;
  color: #f87171;
  font-weight: 700;
}

.troubleshoot-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.troubleshoot-fix {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-top: 4px;
}

.tab-explainer {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* EASY MODE CARDS */
.easy-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.easy-eq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.easy-eq-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.card-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 800;
}

.easy-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.easy-card-header h4 {
  font-size: 1rem;
  font-weight: 700;
}

.easy-card-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #0c1017;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #1a2433;
}

.val-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.val-box .val-title {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.val-box .val-number {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.val-box .val-number.boost { color: var(--accent-emerald); }
.val-box .val-number.cut { color: var(--accent-rose); }
.val-box .val-number.neutral { color: var(--accent-blue); }

.easy-card-why {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ADVANCED EQ TABLE */
.adv-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.adv-eq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.adv-eq-table th {
  background: var(--bg-card);
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.adv-eq-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #1d2736;
  background: var(--bg-secondary);
}

.adv-eq-table tr:hover td {
  background: #17212e;
}

.band-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.78rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.table-num {
  font-family: var(--font-mono);
  font-weight: 600;
}

.gain-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
}

.gain-tag.boost { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.gain-tag.cut { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }
.gain-tag.pass { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }

/* DYNAMICS GRID */
.dynamics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.dyn-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dyn-card:hover {
  border-color: #384a62;
  transform: translateY(-2px);
}

.dyn-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dyn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-icon { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }
.deess-icon { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.gate-icon { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

.dyn-icon svg { width: 22px; height: 22px; }

.dyn-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.dyn-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dyn-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.param-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.param-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.param-name {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.param-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.dyn-footer-tip {
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.45;
  margin-top: auto;
}

/* AUDITION CARD */
.audition-card {
  background: linear-gradient(135deg, #0e1e17 0%, #0d1b26 100%);
  border: 1px solid #1c4b38;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
}

.audition-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.warning-badge {
  font-size: 0.72rem;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.audition-text h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.audition-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 600px;
}

.audition-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ab-toggle-group {
  display: flex;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: opacity 0.3s ease;
}

.ab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.ab-btn.active {
  background: var(--accent-emerald);
  color: #07101b;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

/* EXPORT CARD */
.export-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.export-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.export-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.export-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.copy-alert {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--accent-emerald);
  color: #07101b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
}

.copy-alert.hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* FOOTER */
.app-footer {
  text-align: center;
  padding: 16px;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-controls {
    width: 100%;
    justify-content: flex-start;
  }
  .mic-select-wrap select {
    max-width: 100%;
  }
  .audition-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .audition-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .ab-toggle-group {
    justify-content: center;
  }
}
