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

:root {
  --bg-deep: #08090b;
  --bg-panel: rgba(12, 13, 16, 0.85);
  --bg-panel-hover: rgba(20, 22, 26, 0.95);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-neon-cyan: rgba(94, 140, 123, 0.3);
  --border-neon-pink: rgba(94, 140, 123, 0.2);
  --border-neon-purple: rgba(94, 140, 123, 0.2);
  --border-neon-orange: rgba(94, 140, 123, 0.2);
  
  --neon-cyan: #5E8C7B; /* Seafoam/teal accent */
  --neon-pink: #5E8C7B;
  --neon-purple: #17a2b8; /* Teal */
  --neon-green: #5E8C7B;
  --neon-yellow: #ffc107;
  --neon-orange: #ffc107;

  --text-primary: #e9ecef;
  --text-secondary: #adb5bd;
  --text-muted: #6c757d;
  
  --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(184, 115, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 115, 51, 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(232, 184, 112, 0.5);
}
.text-neon-pink {
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(196, 87, 59, 0.4);
}
.text-neon-blue {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(232, 184, 112, 0.4);
}
.text-neon-purple {
  color: var(--neon-purple);
  text-shadow: 0 0 8px rgba(184, 115, 51, 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(232, 184, 112, 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(196, 87, 59, 0.5);
}
.engine-online {
  color: var(--neon-green) !important;
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

.auramix-paywall {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 24% 16%, rgba(232, 184, 112, 0.16), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(184, 115, 51, 0.18), transparent 30%),
    rgba(3, 4, 10, 0.92);
  backdrop-filter: blur(18px);
}

.membership-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(184, 115, 51, 0.24);
  border-radius: 4px;
  color: var(--neon-purple);
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.auramix-paywall-card {
  width: min(720px, 100%);
  border: 1px solid rgba(232, 184, 112, 0.22);
  border-radius: 20px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(18, 20, 36, 0.94), rgba(5, 6, 14, 0.98));
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: left;
}

.auramix-paywall-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(232, 184, 112, 0.2);
  border-radius: 999px;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(232, 184, 112, 0.06);
}

.auramix-paywall h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.auramix-paywall p {
  max-width: 600px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.auramix-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}

.auramix-status-grid div {
  min-height: 58px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.38);
  padding: 10px;
}

.auramix-status-grid span {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.auramix-status-grid strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.84rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.auramix-paywall-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.auramix-plan-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 152px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.auramix-plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 184, 112, 0.36);
  background: rgba(232, 184, 112, 0.08);
}

.auramix-plan-card.featured {
  border-color: rgba(184, 115, 51, 0.4);
  background: rgba(184, 115, 51, 0.1);
}

.auramix-plan-card span {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auramix-plan-card strong {
  font-size: 2rem;
  line-height: 1;
}

.auramix-plan-card small {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auramix-signin-btn,
.auramix-pricing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  color: var(--bg-deep);
  background: var(--neon-cyan);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}

.auramix-pricing-link {
  margin-left: 10px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auramix-paywall-error {
  margin-top: 14px !important;
  color: var(--neon-pink) !important;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .auramix-paywall-card {
    padding: 22px;
  }

  .auramix-paywall-plans {
    grid-template-columns: 1fr;
  }

  .auramix-status-grid {
    grid-template-columns: 1fr;
  }
}

/* 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;
  transition: grid-template-columns 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.daw-main-panel {
  display: grid;
  grid-template-rows: 2fr 1fr;
  gap: 16px;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  transition: grid-template-rows 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), grid-template-columns 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), min-width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), max-width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-tracks-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.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: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 0;
}

/* Track Group Sections */
.track-group {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.008);
  overflow: hidden;
  flex-shrink: 0 !important;
}
.track-group + .track-group {
  margin-top: 4px;
}

.track-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.track-group-header .group-icon {
  font-size: 0.75rem;
}
.track-group--backing {
  border-left: 3px solid rgba(255, 255, 255, 0.15);
}
.track-group--backing .track-group-header {
  color: rgba(255, 255, 255, 0.5);
}
.track-group--vocals {
  border-left: 3px solid var(--neon-pink);
}
.track-group--vocals .track-group-header {
  color: var(--neon-pink);
}
.track-group--guitar {
  border-left: 3px solid #ff7700;
}
.track-group--guitar .track-group-header {
  color: #ff7700;
}

.track-group-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
}

.track-group-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.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);
}

.add-take-row {
  margin: 8px 12px;
  padding: 10px;
  display: flex;
  gap: 15px;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  justify-content: space-between;
}

.add-take-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.add-take-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.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(196, 87, 59, 0.08) !important;
  border-color: rgba(196, 87, 59, 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;
}
.btn-import.mic-fallback {
  border-color: rgba(255, 184, 77, 0.45);
  color: var(--neon-yellow);
  box-shadow: 0 0 10px rgba(255, 184, 77, 0.12);
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.file-input-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.mic-permission-notice {
  max-width: 190px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 184, 77, 0.42);
  border-radius: 6px;
  background: rgba(255, 184, 77, 0.1);
  color: var(--text-primary);
  font-size: 0.62rem;
  line-height: 1.25;
  box-shadow: 0 0 14px rgba(255, 184, 77, 0.1);
}
.mic-permission-notice[hidden] {
  display: none;
}
.mic-permission-notice strong {
  display: block;
  color: var(--neon-yellow);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.mic-permission-notice span {
  color: var(--text-secondary);
}

/* 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(232, 184, 112, 0.1);
  border: 1px solid rgba(232, 184, 112, 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-y: auto;
  overflow-x: 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(184, 115, 51, 0.1);
  border: 1px solid rgba(184, 115, 51, 0.3);
  color: var(--neon-purple);
  box-shadow: 0 0 5px rgba(184, 115, 51, 0.15);
}

.voice-profile-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 12px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid rgba(232, 184, 112, 0.28);
  background:
    linear-gradient(135deg, rgba(232, 184, 112, 0.1), rgba(184, 115, 51, 0.06)),
    rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 18px rgba(232, 184, 112, 0.1);
  flex-shrink: 0;
}

.voice-profile-card.is-active {
  border-color: rgba(57, 255, 20, 0.42);
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.13);
}

.voice-lock-debug-marker {
  padding: 5px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 251, 0, 0.42);
  background: rgba(255, 251, 0, 0.09);
  color: var(--neon-yellow);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-profile-topline,
.voice-profile-preset-row,
.voice-profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.voice-profile-status,
.voice-profile-count,
.voice-profile-preset-row span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-profile-status {
  color: var(--text-muted);
}

.voice-profile-card.is-active .voice-profile-status {
  color: var(--neon-green);
  text-shadow: 0 0 7px rgba(57, 255, 20, 0.35);
}

.voice-profile-count {
  color: var(--neon-cyan);
}

.voice-profile-card strong {
  color: var(--text-primary);
  font-size: 0.74rem;
}

.voice-profile-card p {
  color: var(--text-secondary);
  font-size: 0.64rem;
  line-height: 1.35;
  user-select: text;
}

.voice-profile-preset-row {
  padding: 6px 7px;
  border-radius: 5px;
  border: 1px solid rgba(184, 115, 51, 0.24);
  background: rgba(184, 115, 51, 0.06);
}

.voice-profile-preset-row span {
  color: var(--neon-purple);
  text-shadow: 0 0 6px rgba(184, 115, 51, 0.25);
}

.voice-profile-actions .btn {
  flex: 1;
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.62rem;
}

.voice-profile-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.voice-profile-debug-seed {
  height: 26px;
  padding: 0 8px;
  font-size: 0.58rem;
}

.voice-profile-storage-debug {
  padding: 5px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  line-height: 1.3;
  user-select: text;
  overflow-wrap: anywhere;
}

.voice-profile-paywall-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(232, 184, 112, 0.28);
  background: rgba(0, 0, 0, 0.32);
  text-align: left;
}

.voice-profile-paywall-card strong {
  color: var(--neon-cyan);
  font-size: 0.78rem;
}

.voice-profile-paywall-card span {
  color: var(--text-secondary);
  font-size: 0.66rem;
  line-height: 1.35;
}

.voice-profile-paywall-kicker {
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 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(184, 115, 51, 0.15) 0%, rgba(5, 5, 8, 0.7) 70%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 115, 51, 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(184, 115, 51, 0.4), 0 0 15px rgba(184, 115, 51, 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(232, 184, 112, 0.5);
  transition: width 0.1s ease-out;
}

/* AI Report Section */
.analysis-report {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(184, 115, 51, 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(184, 115, 51, 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(184, 115, 51, 0.35);
}
.btn-glow-purple:hover:not(:disabled) {
  box-shadow: 0 0 20px rgba(184, 115, 51, 0.6);
}
.btn-glow-cyan {
  box-shadow: 0 0 10px rgba(232, 184, 112, 0.2);
  border-color: rgba(232, 184, 112, 0.3) !important;
}
.btn-glow-cyan:hover {
  box-shadow: 0 0 16px rgba(232, 184, 112, 0.5);
}
.btn-glow-pink {
  box-shadow: 0 0 10px rgba(196, 87, 59, 0.2);
}
.btn-glow-pink:hover {
  box-shadow: 0 0 16px rgba(196, 87, 59, 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(232, 184, 112, 0.4);
  box-shadow: 0 0 10px rgba(232, 184, 112, 0.2);
}
.btn-main:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(232, 184, 112, 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;
  }
  .ai-analysis-container {
    flex-grow: 0 !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  .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(232, 184, 112, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(232, 184, 112, 0.25);
  box-shadow: 0 0 6px rgba(232, 184, 112, 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(196, 87, 59, 0.1);
  color: var(--neon-pink);
  border: 1px solid rgba(196, 87, 59, 0.2);
  box-shadow: 0 0 6px rgba(196, 87, 59, 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); }

/* Track Pan Knob Styling */
.knob-pan .knob-pointer {
  background: #E8B870 !important;
  box-shadow: 0 0 4px #E8B870 !important;
}
.knob-pan:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.6), 0 0 5px #E8B870 !important;
}
.track-lane .knob-pan {
  width: 26px !important;
  height: 26px !important;
}
.track-lane .knob-pan .knob-pointer {
  top: 2px !important;
  height: 7px !important;
}

/* 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(184, 115, 51, 0.12);
  border-color: rgba(184, 115, 51, 0.4);
  color: #fff;
  box-shadow: 0 0 6px rgba(184, 115, 51, 0.3);
  transform: translateY(-1px);
}
.chat-msg {
  border-radius: 6px;
  padding: 8px 10px;
  line-height: 1.5;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  animation: chatFadeIn 0.3s ease forwards;
}
.chat-msg.assistant {
  align-self: flex-start;
  background: rgba(184, 115, 51, 0.08);
  border: 1px solid rgba(184, 115, 51, 0.15);
  color: var(--text-primary);
  max-width: 90%;
}
.chat-msg.user {
  align-self: flex-end;
  background: rgba(232, 184, 112, 0.08);
  border: 1px solid rgba(232, 184, 112, 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,

.report-narrative,
.report-arranger-tips,
.ai-status-bubble,
.analysis-report,
#chat-messages,

.report-narrative,
.report-arranger-tips,
.chat-msg,

.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;
}

/* Production cleanup: keep Voice Lock, hide debug-only UI */
.voice-lock-debug-marker,
.voice-profile-debug-seed,
#btn-voice-profile-debug-seed,
#btn-voice-profile-paywall-debug-seed,
#voice-profile-storage-debug {
  display: none !important;
}

/* Responsive Header Styles for Mobile Legibility */
@media (max-width: 768px) {
  .header-status {
    display: none !important;
  }
  .add-take-row {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    gap: 12px !important;
    padding: 12px 8px !important;
  }
  .add-take-actions {
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 6px !important;
  }
  .add-take-actions select,
  .add-take-actions button {
    flex: 1 1 auto !important;
    min-width: 100px !important;
    font-size: 0.6rem !important;
    padding: 4px 8px !important;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 0 10px !important;
    height: 48px !important;
  }
  
  .header-logo {
    font-size: 0.95rem !important;
    letter-spacing: 0.08em !important;
    gap: 4px !important;
  }
  
  .logo-tagline {
    display: none !important; /* Hide tagline on mobile */
  }

  .header-actions {
    gap: 6px !important;
  }

  .membership-header-link {
    padding: 2px 6px !important;
    font-size: 0.6rem !important;
  }

  /* Compact API Status container */
  .api-settings-container {
    padding: 4px 6px !important;
    height: 28px !important;
    gap: 4px !important;
  }
  
  #api-status-text {
    display: none !important; /* Hide "CHECKING/ONLINE" text */
  }

  /* Compact Synth Demo button */
  #btn-demo {
    padding: 4px 8px !important;
    height: 28px !important;
    font-size: 0.7rem !important;
  }
  
  #btn-demo .btn-text {
    display: none !important; /* Hide button text, show only icon */
  }
}

/* ==========================================================================
   GUITAR TRACK & CHORD SCROLLER STYLES
   ========================================================================== */

.font-neon-orange {
  color: var(--neon-orange) !important;
  text-shadow: 0 0 8px rgba(255, 119, 0, 0.3);
}

.knob-guitar .knob-pointer {
  background: var(--neon-orange) !important;
  box-shadow: 0 0 4px var(--neon-orange) !important;
}

#knob-guitar-vol:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.6), 0 0 5px var(--neon-orange) !important;
}

.chord-scroller-strip {
  height: 52px;
  background: rgba(12, 13, 24, 0.5);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.chord-scroller-label {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--neon-green);
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  height: 100%;
}

.chord-scroller-tools {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 100%;
  border-right: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.3);
}

.chord-tool-btn {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
}

.chord-tool-btn:hover {
  border-color: #E8B870;
  color: var(--text-primary);
}

.chord-tool-btn.active {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: rgba(57, 255, 20, 0.08);
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.4);
}

.chord-capo-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.chord-capo-select {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  height: 24px;
  padding: 0 4px;
  cursor: pointer;
}

.chord-capo-select.active {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.chord-scroller-track-container {
  flex-grow: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.chord-scroller-track {
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  will-change: transform;
}

.chord-scroller-placeholder {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--text-muted);
  padding-left: 20px;
  white-space: nowrap;
}

.chord-chip {
  position: absolute;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.chord-chip.active {
  background: rgba(57, 255, 20, 0.1) !important;
  border-color: var(--neon-green) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.3), inset 0 0 6px rgba(57, 255, 20, 0.2) !important;
  transform: scale(1.06);
  font-size: 0.95rem;
  z-index: 10;
}

.chord-scroller-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green), 0 0 4px var(--neon-green);
  z-index: 5;
  pointer-events: none;
}

/* Track Record Arm Button Styles */
.r-btn {
  border-color: rgba(255, 0, 0, 0.4) !important;
  color: rgba(255, 0, 0, 0.7) !important;
}
.r-btn:hover {
  background: rgba(255, 0, 0, 0.08) !important;
  border-color: #ff0000 !important;
  color: #ff0000 !important;
}
.r-btn.active {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  color: #fff !important;
  box-shadow: 0 0 8px #ff0000 !important;
}
.r-btn.recording {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  color: #fff !important;
  box-shadow: 0 0 10px #ff0000 !important;
  animation: rec-blink 1.2s infinite ease-in-out;
}

/* Track Input Select Dropdown */
.track-input-select {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 1px 4px;
  height: 20px;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 52px;
  outline: none;
  transition: all 0.2s ease;
}
.track-input-select:hover, .track-input-select:focus {
  border-color: var(--neon-cyan);
  color: var(--text-secondary);
}

/* Master Transport Record Button */
.btn-master-record {
  background: rgba(255, 0, 0, 0.15) !important;
  border-color: rgba(255, 0, 0, 0.4) !important;
  color: #ff0000 !important;
}
.btn-master-record:hover {
  background: rgba(255, 0, 0, 0.25) !important;
  border-color: #ff0000 !important;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.4) !important;
}
.btn-master-record.active {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  color: #fff !important;
  box-shadow: 0 0 15px #ff0000 !important;
  animation: pulse-red-glow 1.5s infinite alternate;
}

@keyframes pulse-red-glow {
  0% { box-shadow: 0 0 8px #ff0000; }
  100% { box-shadow: 0 0 18px #ff0000, 0 0 8px #ff0000; }
}

/* ==========================================================================
   SKEUOMORPHIC REDESIGN: BOTTOM PANEL, MIXER CONSOLE, & HARDWARE EFFECTS RACK
   ========================================================================== */

/* Main Side-by-Side Panel Layout */
.bottom-daw-panel {
  display: flex;
  gap: 16px;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 0;
}

/* Timeline panel layout adjustments */
.timeline-tracks-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 16px;
  min-height: 0;
  height: 100%;
}

/* Mixer Console */
.mixer-console {
  flex: 1.35;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 16px;
  background: rgba(10, 11, 18, 0.7);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-height: 0;
}

.mixer-strips-container {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: stretch;
  flex-grow: 1;
  padding: 8px;
  overflow-x: auto;
  background: #06070a;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Vertical Channel Strip */
.mixer-strip {
  flex: 1;
  min-width: 90px;
  max-width: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 4px;
  border: 1px solid #111;
  background: linear-gradient(to right, #1d1f27 0%, #15171d 50%, #0d0e12 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.6);
  padding: 8px 6px;
  box-sizing: border-box;
  position: relative;
}

/* Master strip highlight styling */
.mixer-strip.master-strip {
  border: 1px solid rgba(232, 184, 112, 0.3);
  background: linear-gradient(to right, #1c232c 0%, #131921 50%, #0a0d13 100%);
  box-shadow: 
    0 0 8px rgba(232, 184, 112, 0.1),
    inset 0 1px 0 rgba(232, 184, 112, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.7);
}

.strip-header {
  border-bottom: 2px solid #000;
  padding-bottom: 4px;
  margin-bottom: 6px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.channel-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--text-muted);
  display: block;
  line-height: 1;
  margin-bottom: 2px;
  opacity: 0.5;
}

.channel-name {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.05em;
  display: block;
}

.strip-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  gap: 8px;
}

.strip-utility-row {
  display: flex;
  gap: 4px;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
}

.btn-mixer-import {
  padding: 2px 6px !important;
  font-size: 0.55rem !important;
  height: 20px !important;
  line-height: 1 !important;
  border-radius: 3px !important;
}

.meter-fader-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  height: 150px;
  width: 100%;
  padding: 4px 0;
  box-sizing: border-box;
}

/* LED Level Meter */
.led-meter {
  width: 8px;
  height: 140px;
  background: #050508;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);
}

.led-meter-fill {
  width: 100%;
  height: 0%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, 
    #E8B870 0%, 
    #E8B870 70%, 
    #ffef00 85%, 
    #ff073a 100%
  );
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
  transition: height 0.05s ease-out;
}

.led-meter.master-meter {
  width: 10px;
  background: #020204;
}

.led-meter.master-meter .led-meter-fill {
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.6);
}

/* Vertical Volume Faders */
.fader-container-vertical {
  height: 140px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.knob.mixer-fader {
  width: 22px;
  height: 140px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: ns-resize;
  position: relative;
  overflow: visible;
  transform: none !important;
}

.fader-track {
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #020204;
  box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.9), 1px 0 0 rgba(255, 255, 255, 0.04);
  border-radius: 1px;
}

.fader-handle {
  position: absolute;
  left: 1px;
  top: 0;
  width: 20px;
  height: 28px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #d8d8d8 0%, #acacac 25%, #666666 75%, #333333 100%);
  border: 1px solid #111;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.7), 
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(0px);
  pointer-events: none;
  box-sizing: border-box;
}

.fader-handle::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  height: 2px;
  background: #ff3b30;
  box-shadow: 0 0 4px #ff3b30;
}

.mixer-fader:hover .fader-handle {
  background: linear-gradient(to bottom, #eeeeee 0%, #c0c0c0 25%, #888888 75%, #444444 100%);
  border-color: #000;
}

/* Mixer Panning Knobs */
.knob-pan {
  width: 32px !important;
  height: 32px !important;
}

.knob-pan .knob-pointer {
  height: 8px !important;
  top: 2px !important;
  background: var(--neon-cyan);
  box-shadow: 0 0 4px var(--neon-cyan);
}

.strip-buttons {
  display: flex;
  gap: 4px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.strip-buttons .track-btn {
  width: 22px !important;
  height: 22px !important;
  border-radius: 3px !important;
  font-size: 0.6rem !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.6);
  border: 1px solid rgba(0, 0, 0, 0.4) !important;
}

/* SKEUOMORPHIC EFFECTS RACK STYLING */
.effects-rack {
  flex: 0.95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 16px;
  background: rgba(12, 13, 20, 0.75);
  min-height: 0;
}

.effects-rack .modules-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  background: #08090d;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
  /* Simulated Rack Rails */
  background-image: 
    linear-gradient(90deg, #120C07 0px, #120C07 12px, transparent 12px),
    linear-gradient(-90deg, #120C07 0px, #120C07 12px, transparent 12px);
}

.rack-module {
  width: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 4px;
  padding: 12px 24px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.8);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

/* Metallic Rack Screws */
.rack-screw {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 3px 3px, #e8e8e8, #777);
  border: 1px solid #111;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.rack-screw::before {
  content: "";
  position: absolute;
  top: 3.5px;
  left: 1px;
  width: 6px;
  height: 1px;
  background: #333;
}

.rack-screw::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 3.5px;
  width: 1px;
  height: 6px;
  background: #333;
}

.rack-screw.top-left { top: 6px; left: 2px; }
.rack-screw.top-right { top: 6px; right: 2px; }
.rack-screw.bottom-left { bottom: 6px; left: 2px; }
.rack-screw.bottom-right { bottom: 6px; right: 2px; }

/* Individual Module Enamel/Metal Plates */

/* EQ (Brushed Silver) */
#mod-eq {
  background: linear-gradient(135deg, #e4e4e7 0%, #f4f4f5 50%, #d4d4d8 100%);
  color: #111;
  border-color: #a1a1aa;
  box-shadow: inset 0 1px 0 #fff, 0 4px 8px rgba(0, 0, 0, 0.3);
}

#mod-eq .module-title {
  color: #27272a;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

#mod-eq .knob {
  background: radial-gradient(circle, #333 0%, #111 100%);
  border-color: #000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#mod-eq .knob-label {
  color: #3f3f46;
  font-weight: 700;
}

#mod-eq .knob-value {
  color: #18181b;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

/* De-esser (Matte Charcoal + Orange) */
#mod-deesser {
  background: linear-gradient(180deg, #2e3035 0%, #1f2023 100%);
  border-color: #121315;
}

#mod-deesser .module-title {
  color: var(--neon-orange);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Compressor (Retro Black Enamel) */
#mod-compressor {
  background: linear-gradient(180deg, #1c1d22 0%, #0d0e10 100%);
  border-color: #000;
  min-height: 155px; /* extra space for VU meter */
}

#mod-compressor .module-title {
  color: #f4f4f5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.module-body-compressor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
  flex-grow: 1;
}

/* Reverb (Slate Blue Enamel) */
#mod-reverb {
  background: linear-gradient(180deg, #3f4d63 0%, #293242 100%);
  border-color: #1b212c;
}

#mod-reverb .module-title {
  color: #e2e8f0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Autotune (Cyberpunk Purple) */
#mod-autotune {
  background: linear-gradient(180deg, #1a082b 0%, #0a0214 100%);
  border-color: #27033a;
  box-shadow: inset 0 0 12px rgba(184, 115, 51, 0.2), 0 4px 8px rgba(0,0,0,0.5);
}

#mod-autotune .module-title {
  color: var(--neon-purple);
  text-shadow: 0 0 5px rgba(184, 115, 51, 0.5);
}

/* Backlit Analog VU Meter Case */
.vu-meter-container {
  width: 110px;
  height: 64px;
  background: radial-gradient(circle, #fffbe3 60%, #e2d9b6 100%);
  border-radius: 3px;
  border: 2px solid #0a0a0a;
  box-shadow: 
    inset 0 3px 6px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.vu-meter-glass {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.05) 100%);
}

.vu-meter-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Decorative screw and panel detail alignments */
#mod-eq .knob-pointer.pointer-blue { background: #B87333; box-shadow: 0 0 4px #B87333; }
#mod-eq .knob-pointer.pointer-green { background: #5E8C7B; box-shadow: 0 0 4px #5E8C7B; }
#mod-eq .knob-pointer.pointer-red { background: #ef4444; box-shadow: 0 0 4px #ef4444; }
#mod-deesser .knob-pointer.pointer-orange { background: #f97316; box-shadow: 0 0 4px #f97316; }
.knob-pointer.pointer-silver { background: #e4e4e7; box-shadow: 0 0 2px #fff; }

/* Timeline Cleanups: Remove redundant styling */
.track-lane {
  padding: 8px 12px !important;
  align-items: center !important;
  min-height: 52px !important;
  flex-shrink: 0 !important;
}

.track-info {
  width: 25% !important;
  flex-shrink: 0;
}

.track-controls-row {
  margin-top: 0 !important;
}

.track-waveform-container {
  height: 38px !important;
}


/* ==========================================================================
   COLLAPSIBLE WORKSPACE & EXPANDABLE CARDS
   ========================================================================== */

/* Layout Toggles & Collapsed States */
.daw-container.sidebar-collapsed {
  grid-template-columns: 1fr 45px !important;
}

.daw-container.sidebar-maximized {
  grid-template-columns: 45px 1fr !important;
}

.daw-main-panel.timeline-collapsed {
  grid-template-rows: 45px 1fr !important;
}

.daw-main-panel.bottom-collapsed {
  grid-template-rows: 1fr 45px !important;
}

.daw-main-panel.collapsed {
  width: 45px !important;
  min-width: 45px !important;
  max-width: 45px !important;
  padding: 12px 6px !important;
  border-right: 1px solid var(--border-glass);
  background: rgba(10, 11, 18, 0.7);
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.daw-main-panel.collapsed * {
  display: none !important;
}

.daw-main-panel.collapsed::before {
  content: "🎹 DAW WORKSPACE";
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(232, 184, 112, 0.3);
  white-space: nowrap;
  margin: 20px auto;
  letter-spacing: 0.15em;
  cursor: pointer;
}

/* Panel Header Actions */
.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Panel Action Buttons */
.panel-toggle-btn, .panel-maximize-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0;
}

.panel-toggle-btn:hover, .panel-maximize-btn:hover {
  color: #fff;
  border-color: var(--neon-purple);
  background: rgba(184, 115, 51, 0.1);
  box-shadow: 0 0 8px rgba(184, 115, 51, 0.3);
}

/* Vertical panels (Timeline) */
.timeline-tracks-panel {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-tracks-panel.collapsed {
  height: 45px !important;
  min-height: 45px !important;
  max-height: 45px !important;
  overflow: hidden !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.timeline-tracks-panel.collapsed .tracks-list,
.timeline-tracks-panel.collapsed .chord-scroller-strip,
.timeline-tracks-panel.collapsed .timeline-ruler {
  display: none !important;
}

/* Horizontal Collapsed generic classes (Mixer, Effects, Sidebar) */
.mixer-console, .effects-rack, .daw-sidebar {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mixer-console.collapsed, .effects-rack.collapsed, .daw-sidebar.collapsed {
  width: 45px !important;
  min-width: 45px !important;
  max-width: 45px !important;
  flex: none !important;
  padding: 12px 6px !important;
  overflow: hidden !important;
  background: rgba(10, 11, 18, 0.9) !important;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.mixer-console.collapsed *, .effects-rack.collapsed *, .daw-sidebar.collapsed * {
  display: none !important;
}

.mixer-console.collapsed .panel-header, 
.effects-rack.collapsed .panel-header, 
.daw-sidebar.collapsed .panel-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  border: none !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 16px !important;
}

.mixer-console.collapsed .panel-header h2, 
.effects-rack.collapsed .panel-header h2, 
.daw-sidebar.collapsed .panel-header h2 {
  display: block !important;
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
  font-size: 0.7rem;
  white-space: nowrap !important;
  margin: 20px 0 0 0 !important;
  letter-spacing: 0.1em !important;
  color: var(--text-muted) !important;
  font-family: var(--font-mono);
}

.mixer-console.collapsed .panel-header h2 .icon, 
.effects-rack.collapsed .panel-header h2 .icon, 
.daw-sidebar.collapsed .panel-header h2 .icon {
  display: inline-block !important;
  transform: rotate(90deg) !important;
  margin-bottom: 8px !important;
}

.mixer-console.collapsed .panel-header .panel-toggle-btn,
.effects-rack.collapsed .panel-header .panel-toggle-btn,
.daw-sidebar.collapsed .panel-header .panel-toggle-btn {
  display: flex !important;
}

/* Chat box sizing adjustments */
#chat-messages {
  height: 220px; /* Default height */
  transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.daw-container.sidebar-maximized #chat-messages {
  height: calc(100vh - 350px) !important;
  max-height: 700px !important;
}

/* Collapsed sidebar subtle hover highlight */
.daw-sidebar.collapsed:hover, .mixer-console.collapsed:hover, .effects-rack.collapsed:hover {
  background: rgba(184, 115, 51, 0.05) !important;
  border-color: rgba(184, 115, 51, 0.2) !important;
}

/* Horizontal display for Mixer/Effects when both are collapsed */
.daw-main-panel.bottom-collapsed .bottom-daw-panel .mixer-console.collapsed,
.daw-main-panel.bottom-collapsed .bottom-daw-panel .effects-rack.collapsed {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 1 !important;
  padding: 10px 16px !important;
  cursor: pointer;
}

.daw-main-panel.bottom-collapsed .bottom-daw-panel .mixer-console.collapsed *,
.daw-main-panel.bottom-collapsed .bottom-daw-panel .effects-rack.collapsed * {
  display: none !important;
}

.daw-main-panel.bottom-collapsed .bottom-daw-panel .mixer-console.collapsed .panel-header,
.daw-main-panel.bottom-collapsed .bottom-daw-panel .effects-rack.collapsed .panel-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 8px !important;
}

.daw-main-panel.bottom-collapsed .bottom-daw-panel .mixer-console.collapsed .panel-header h2,
.daw-main-panel.bottom-collapsed .bottom-daw-panel .effects-rack.collapsed .panel-header h2 {
  display: block !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
  font-size: 0.72rem !important;
  margin: 0 !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.1em !important;
  white-space: nowrap !important;
}

.daw-main-panel.bottom-collapsed .bottom-daw-panel .mixer-console.collapsed .panel-header h2 .icon,
.daw-main-panel.bottom-collapsed .bottom-daw-panel .effects-rack.collapsed .panel-header h2 .icon {
  display: inline-block !important;
  transform: none !important;
  margin-right: 6px !important;
  margin-bottom: 0 !important;
}

.daw-main-panel.bottom-collapsed .bottom-daw-panel .mixer-console.collapsed .panel-header .panel-toggle-btn,
.daw-main-panel.bottom-collapsed .bottom-daw-panel .effects-rack.collapsed .panel-header .panel-toggle-btn {
  display: flex !important;
}

/* ==========================================
   AuraMix V2 Mode Toggle and View Classes
   ========================================== */

/* Active toggle button highlight styling */
.mode-toggle-container button {
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
}
.mode-toggle-container button.active-mode {
  background: var(--neon-purple) !important;
  color: #fff !important;
  box-shadow: 0 0 8px rgba(184, 115, 51, 0.4);
}

/* Hide / Show rules depending on body class */
body.app-mode-karaoke .mode-studio-only {
  display: none !important;
}
body.app-mode-studio .mode-karaoke-only {
  display: none !important;
}

/* Session Booth dual columns */
.feedback-dual-columns {
  display: flex;
  gap: 12px;
}
.feedback-dual-columns .feedback-voice-card {
  flex: 1;
}
@media (max-width: 768px) {
  .feedback-dual-columns {
    flex-direction: column;
  }

  /* Stack panels vertically */
  .bottom-daw-panel {
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
  }
  .mixer-console,
  .effects-rack {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: none !important;
    overflow: visible !important;
  }

  /* Stack mixer strips vertically */
  .mixer-strips-container {
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
    gap: 12px !important;
  }
  .mixer-strip {
    max-width: none !important;
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 12px 10px !important;
  }
  .mixer-strip .strip-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    flex: 1 1 100% !important;
  }

  /* Scale up touchscreen targets */
  .btn,
  button,
  .track-btn,
  .feedback-style-btn,
  .mode-toggle-container button {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 10px 16px !important;
    font-size: 0.75rem !important;
  }

  /* Touch targets for knobs and faders */
  .knob-container,
  .dial-container,
  .knob {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* Responsive timeline takes list */
  #takes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .track-lane {
    flex-direction: column !important;
    height: auto !important;
    gap: 8px;
    padding: 10px !important;
  }
  .track-info {
    width: 100% !important;
    flex: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
  }
  .track-waveform-container {
    height: 60px !important;
  }

  /* Layout adjustments for portrait down to 320px */
  .daw-main-panel {
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
  }
  .daw-sidebar {
    width: 100% !important;
    height: auto !important;
    flex: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}

/* V2.1 Concept C Workspaces Tabs Visibilities */
body.tab-active-session .tab-view-session-only { }
body.tab-active-session .tab-view-comp-only { display: none !important; }
body.tab-active-session .tab-view-mix-only { display: none !important; }

body.tab-active-comp .tab-view-session-only { display: none !important; }
body.tab-active-comp .tab-view-comp-only { }
body.tab-active-comp .tab-view-mix-only { display: none !important; }

body.tab-active-mix .tab-view-session-only { display: none !important; }
body.tab-active-mix .tab-view-comp-only { display: none !important; }
body.tab-active-mix .tab-view-session-comp { display: none !important; }
body.tab-active-mix .tab-view-mix-only { }

/* V2.2 Concept C Mobile Touch Target Hardening */
@media (max-width: 768px) {
  button, 
  .btn,
  .panel-toggle-btn,
  .mode-toggle,
  .track-btn,
  .btn-import,
  .feedback-style-btn,
  .panel-header button {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 16px;
  }
}
