/* ==========================================================================
   AURAMIX DESIGN SYSTEM & CORE STYLES
   Futuristic Cyberpunk / Synthwave Glassmorphic DAW Style
   ========================================================================== */

:root {
  --bg-deep: #050508;
  --bg-panel: rgba(12, 13, 24, 0.75);
  --bg-panel-hover: rgba(20, 22, 40, 0.85);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-neon-cyan: rgba(0, 240, 255, 0.3);
  --border-neon-pink: rgba(255, 0, 127, 0.3);
  --border-neon-purple: rgba(189, 0, 255, 0.3);
  
  --neon-cyan: #00f0ff;
  --neon-pink: #ff007f;
  --neon-purple: #bd00ff;
  --neon-green: #39ff14;
  --neon-yellow: #fffb00;

  --text-primary: #f0f2f5;
  --text-secondary: #ccd6e3;
  --text-muted: #94a3b8;
  
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Animated Cyber Grid Background */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(189, 0, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 0, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  z-index: -1;
  pointer-events: none;
  animation: grid-breath 20s infinite ease-in-out;
}

@keyframes grid-breath {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

/* Typography & Neon Accents */
h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.font-neon-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.text-neon-pink {
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.4);
}
.text-neon-blue {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}
.text-neon-purple {
  color: var(--neon-purple);
  text-shadow: 0 0 8px rgba(189, 0, 255, 0.4);
}
.text-neon-green {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-normal);
}
.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Header */
.app-header {
  height: 56px;
  background: rgba(8, 8, 16, 0.85);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  flex-shrink: 0;
}

.header-logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-accent {
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
}
.logo-tagline {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 2px 6px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.05em;
}

.header-status {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
}
.status-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.status-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.status-value {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.engine-offline {
  color: var(--neon-pink) !important;
  text-shadow: 0 0 5px rgba(255, 0, 127, 0.5);
}
.engine-online {
  color: var(--neon-green) !important;
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

/* Core DAW Grid Container */
.daw-container {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  padding: 16px;
  height: calc(100vh - 56px - 72px); /* height excluding header and footer */
  overflow: hidden;
}

.daw-main-panel {
  display: grid;
  grid-template-rows: 1.1fr 1fr;
  gap: 16px;
  overflow: hidden;
}

.timeline-mixer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
  flex-shrink: 0;
}

/* Timeline Ruler */
.timeline-ruler {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  width: 70%;
  display: flex;
  justify-content: space-between;
  padding-left: 20px;
  position: relative;
  height: 16px;
}
.timeline-ruler::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.tracks-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.track-lane {
  height: 104px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  transition: background var(--transition-fast);
}
.track-lane:hover {
  background: rgba(255, 255, 255, 0.03);
}

.track-info {
  border-right: 1px solid var(--border-glass);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  height: 104px !important;
  max-height: 104px !important;
  box-sizing: border-box;
}

.track-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.track-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.track-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid var(--text-muted);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.m-btn.active {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 6px var(--neon-pink);
}
.s-btn.active {
  background: var(--neon-yellow);
  border-color: var(--neon-yellow);
  color: #000;
  box-shadow: 0 0 6px var(--neon-yellow);
}

.btn-import {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}
.btn-import:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.recording-light-pulse {
  background: rgba(255, 0, 127, 0.08) !important;
  border-color: rgba(255, 0, 127, 0.3) !important;
  color: var(--neon-pink) !important;
  font-weight: 700;
}
.recording-light-pulse.active {
  background: var(--neon-pink) !important;
  color: #fff !important;
  box-shadow: 0 0 10px var(--neon-pink);
  animation: rec-blink 1.2s infinite ease-in-out;
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.file-input-hidden {
  display: none;
}

/* Faders */
.track-fader-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
}
.fader-label {
  color: var(--text-muted);
}
.fader-val {
  color: var(--text-secondary);
  min-width: 28px;
  text-align: right;
}

.fader-slider {
  -webkit-appearance: none;
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  outline: none;
}
.fader-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-secondary);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.fader-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

/* Waveforms */
.track-waveform-container {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  height: 104px !important;
  max-height: 104px !important;
  box-sizing: border-box;
}
.waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
  pointer-events: none;
}
.overlay-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* AI Effects Rack */
.effects-rack {
  padding: 12px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rack-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 8px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--neon-cyan);
  border-radius: 4px;
}

.modules-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  overflow: hidden;
}

.rack-module {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 4px;
}

.knobs-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-grow: 1;
  padding-top: 6px;
}
.knobs-row.single-center {
  justify-content: center;
}

/* 3D DAW Rotary Knobs */
.knob-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #252839 0%, #11121d 100%);
  border: 2px solid #000;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.4), 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  cursor: ns-resize;
  transform: rotate(0deg);
  transition: box-shadow var(--transition-fast);
}
.knob:hover {
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.6), 
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 0 4px var(--neon-cyan);
}
.knob-pointer {
  position: absolute;
  top: 4px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 10px;
  background: var(--neon-cyan);
  box-shadow: 0 0 4px var(--neon-cyan);
  border-radius: 1.5px;
}

/* Module colors */
#mod-deesser .knob-pointer {
  background: var(--neon-pink);
  box-shadow: 0 0 4px var(--neon-pink);
}
#mod-deesser .knob:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 4px var(--neon-pink);
}

#mod-compressor .knob-pointer {
  background: var(--neon-yellow);
  box-shadow: 0 0 4px var(--neon-yellow);
}
#mod-compressor .knob:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 4px var(--neon-yellow);
}

#mod-reverb .knob-pointer {
  background: var(--neon-purple);
  box-shadow: 0 0 4px var(--neon-purple);
}
#mod-reverb .knob:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 4px var(--neon-purple);
}

.knob-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knob-value {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Switch Toggle Buttons */
.switch {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 14px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--text-muted);
  transition: .2s;
  border-radius: 7px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
input:checked + .toggle-slider {
  background-color: var(--neon-cyan);
}
#toggle-deesser:checked + .toggle-slider {
  background-color: var(--neon-pink);
}
#toggle-comp:checked + .toggle-slider {
  background-color: var(--neon-yellow);
}
#toggle-reverb:checked + .toggle-slider {
  background-color: var(--neon-purple);
}
input:checked + .toggle-slider:before {
  transform: translateX(14px);
}

/* Sidebar: AI Producer */
.daw-sidebar {
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
}

.border-neon-purple {
  border-color: var(--border-neon-purple);
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.badge-neon-purple {
  background: rgba(189, 0, 255, 0.1);
  border: 1px solid rgba(189, 0, 255, 0.3);
  color: var(--neon-purple);
  box-shadow: 0 0 5px rgba(189, 0, 255, 0.15);
}

/* AI Avatar Brain Sphere */
.ai-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.ai-brain-sphere {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 0, 255, 0.15) 0%, rgba(5, 5, 8, 0.7) 70%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(189, 0, 255, 0.2);
}
.ai-brain-sphere canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.sphere-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(189, 0, 255, 0.4), 0 0 15px rgba(189, 0, 255, 0.15);
  pointer-events: none;
}

.ai-status-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 6px 12px;
  max-width: 100%;
}
.status-ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pulse-purple {
  background: var(--neon-purple);
  box-shadow: 0 0 8px var(--neon-purple);
  animation: ping-pulse 1.5s infinite ease-in-out;
}
@keyframes ping-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--neon-purple); }
}

#ai-producer-status {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}

/* AI Analysis Cards */
.ai-analysis-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.analysis-status-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}
.progress-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.progress-label {
  font-size: 0.6rem;
  color: var(--text-secondary);
  font-weight: 700;
}
.progress-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
  transition: width 0.1s ease-out;
}

/* AI Report Section */
.analysis-report {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(189, 0, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fade-slide-in 0.4s ease-out;
}
@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.report-section-header {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 4px;
  letter-spacing: 0.1em;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.report-metric {
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
}
.metric-label {
  font-size: 0.5rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.metric-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}

.report-narrative {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-secondary);
  background: rgba(189, 0, 255, 0.03);
  border-left: 2px solid var(--neon-purple);
  padding: 8px;
  border-radius: 0 4px 4px 0;
}

.report-arranger-tips {
  font-size: 0.72rem;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
}

.arranger-tip-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arranger-tip-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.arranger-tip-desc {
  font-size: 0.6rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.arranger-tip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 4px;
}

.arranger-tip-item {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.tip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-pink {
  background: var(--neon-pink);
  box-shadow: 0 0 6px var(--neon-pink);
}
.dot-blue {
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

.tip-duration {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-left: auto;
}

.arranger-tip-empty {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

/* Live Tuner */
.live-tuner-card {
  height: 86px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}
.card-title {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.tuner-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.tuner-note {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
  line-height: 1;
}
.tuner-cents-gauge {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  margin: 0 16px;
  position: relative;
}
.tuner-center-mark {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: var(--text-muted);
}
.tuner-cents-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
  transform: translateX(-50%);
  transition: left var(--transition-fast);
}
.tuner-cents-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  width: 60px;
  text-align: right;
}

/* Control Buttons & Inputs */
.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.w-100 { width: 100%; }

.btn-primary {
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
  color: white;
}
.btn-primary:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
}
.btn-primary:disabled {
  background: var(--text-muted);
  color: var(--text-secondary);
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-glow-purple:not(:disabled) {
  box-shadow: 0 0 12px rgba(189, 0, 255, 0.35);
}
.btn-glow-purple:hover:not(:disabled) {
  box-shadow: 0 0 20px rgba(189, 0, 255, 0.6);
}
.btn-glow-cyan {
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.3) !important;
}
.btn-glow-cyan:hover {
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}
.btn-glow-pink {
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}
.btn-glow-pink:hover {
  box-shadow: 0 0 16px rgba(255, 0, 127, 0.5);
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
}

/* Floating Footer Control Deck */
.daw-control-deck {
  height: 72px;
  background: rgba(5, 5, 8, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
}

.deck-section {
  display: flex;
  align-items: center;
  gap: 16px;
}
.deck-section.flex-grow {
  flex-grow: 1;
}

.deck-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.deck-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-main {
  width: auto;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.btn-main:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
  color: var(--neon-cyan);
}

.timer-display {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  letter-spacing: 0.05em;
  min-width: 140px;
  text-align: center;
}

/* Master Timeline Slider */
.slider-hint {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.timeline-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  outline: none;
}
.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 6px;
  height: 22px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  cursor: pointer;
  border-radius: 3px;
  transition: transform var(--transition-fast);
}
.timeline-slider::-webkit-slider-thumb:hover {
  transform: scaleY(1.2);
}

/* Select Mic Input */
.input-select-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.input-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 700;
}
.daw-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
  max-width: 140px;
}
.daw-select:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Special switch colors */
.switch-cyan input:checked + .toggle-slider {
  background-color: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}
.deck-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.toggle-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 700;
}

.deck-fader {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}
.deck-fader .fader-slider {
  width: 80px;
}
.deck-fader .fader-slider::-webkit-slider-thumb:hover {
  background: var(--neon-pink);
  box-shadow: 0 0 6px var(--neon-pink);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .daw-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow-y: auto;
    height: calc(100vh - 56px - 72px);
  }
  .daw-sidebar {
    height: auto;
    min-height: 380px;
  }
  .daw-main-panel {
    grid-template-rows: auto auto;
    height: auto;
    gap: 16px;
  }
  .timeline-mixer {
    min-height: 320px;
  }
  .effects-rack {
    min-height: 340px;
  }
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* AI Vocal Sound Matcher Premium Styles */
.vocal-match-table-container {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}
.vocal-match-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
  text-align: left;
}
.vocal-match-table th {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 6px;
  font-size: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.vocal-match-table td {
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  vertical-align: middle;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}
.match-metric-name {
  font-family: var(--font-primary) !important;
  font-weight: 600;
  color: var(--text-secondary);
}
.match-badge {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  width: 58px;
}
.badge-match {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.15);
}
.badge-good {
  background: rgba(57, 255, 20, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 20, 0.2);
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.1);
}
.badge-delta {
  background: rgba(255, 0, 127, 0.1);
  color: var(--neon-pink);
  border: 1px solid rgba(255, 0, 127, 0.2);
  box-shadow: 0 0 6px rgba(255, 0, 127, 0.1);
}
.badge-warning {
  background: rgba(255, 184, 0, 0.1);
  color: var(--neon-yellow);
  border: 1px solid rgba(255, 184, 0, 0.2);
  box-shadow: 0 0 6px rgba(255, 184, 0, 0.1);
}

/* Track Volume Knob Detunes */
#knob-inst-vol .knob-pointer {
  background: var(--neon-cyan);
  box-shadow: 0 0 4px var(--neon-cyan);
}
#knob-vocal-vol .knob-pointer {
  background: var(--neon-purple);
  box-shadow: 0 0 4px var(--neon-purple);
}
#knob-rec-vol .knob-pointer {
  background: var(--neon-pink);
  box-shadow: 0 0 4px var(--neon-pink);
}
#knob-inst-vol:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.6), 0 0 5px var(--neon-cyan); }
#knob-vocal-vol:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.6), 0 0 5px var(--neon-purple); }
#knob-rec-vol:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.6), 0 0 5px var(--neon-pink); }

/* Compact Timeline Lane Knob Sizing to Prevent Bottom Clipping */
.track-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.track-lane .knob-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.track-lane .knob-label {
  display: none !important;
}
.track-lane .knob {
  width: 30px !important;
  height: 30px !important;
  flex-shrink: 0;
}
.track-lane .knob .knob-pointer {
  top: 2px !important;
  height: 8px !important;
  left: calc(50% - 1px) !important;
  width: 2px !important;
}
.track-lane .knob-value {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  min-width: 32px;
  text-align: center;
}

/* AI Co-Producer Chatbot Styles */
.chat-chip {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}
.chat-chip:hover {
  background: rgba(189, 0, 255, 0.12);
  border-color: rgba(189, 0, 255, 0.4);
  color: #fff;
  box-shadow: 0 0 6px rgba(189, 0, 255, 0.3);
  transform: translateY(-1px);
}
.chat-msg {
  border-radius: 6px;
  padding: 8px 10px;
  line-height: 1.5;
  word-wrap: break-word;
  animation: chatFadeIn 0.3s ease forwards;
}
.chat-msg.assistant {
  align-self: flex-start;
  background: rgba(189, 0, 255, 0.08);
  border: 1px solid rgba(189, 0, 255, 0.15);
  color: var(--text-primary);
  max-width: 90%;
}
.chat-msg.user {
  align-self: flex-end;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: #fff;
  max-width: 90%;
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Chat Scrollbar Styling */
#chat-messages::-webkit-scrollbar {
  width: 4px;
}
#chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
#chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
#chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--neon-purple);
}

.export-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.export-actions .btn {
  height: 36px;
  min-width: 116px;
  padding-inline: 12px;
  white-space: nowrap;
}

/* Readability lift for the compact DAW text. */
.status-label,
.slider-hint,
.input-label,
.toggle-label,
.fader-label,
.knob-label,
.report-section-header,
.metric-label,
.arranger-tip-desc,
.arranger-tip-empty {
  color: var(--text-muted) !important;
}

.status-value,
.track-name,
.knob-value,
.fader-val,
.timer-display,
.daw-select,
.btn-import,
.track-btn,
.vocal-match-table td,
.match-metric-name,
.report-narrative,
.report-arranger-tips,
.ai-status-bubble,
.chat-input-row input,
#chat-messages,
#pitch-match-status {
  color: var(--text-secondary) !important;
}

.report-narrative,
.report-arranger-tips,
.ai-status-bubble,
.analysis-report,
#chat-messages,
#pitch-match-status {
  background-color: rgba(3, 6, 14, 0.68) !important;
}

.report-narrative,
.report-arranger-tips,
.chat-msg,
#pitch-match-status,
.vocal-match-table,
.daw-select {
  font-size: 0.78rem !important;
}

.metric-label,
.report-section-header,
.arranger-tip-title,
.track-btn,
.btn-import,
.toggle-label,
.input-label,
.slider-hint,
.knob-label {
  font-size: 0.66rem !important;
}

/* Beta Workflow Guide Styles */
summary::-webkit-details-marker {
  display: none !important;
}
details[open] .guide-toggle-icon {
  transform: rotate(180deg);
}
.guide-toggle-icon {
  transition: transform 0.2s ease;
  display: inline-block;
}

