:root {
  --bg-main: #080a0f;
  --bg-card: rgba(18, 22, 33, 0.78);
  --bg-card-hover: rgba(25, 31, 46, 0.88);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-input: #0e121a;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.4);

  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.45);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.35);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.35);
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;
  --accent-orange: #f97316;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 28px -5px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 30px var(--primary-glow);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.18) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.14) 0px, transparent 45%),
    radial-gradient(at 50% 100%, rgba(168, 85, 247, 0.12) 0px, transparent 55%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background Glow */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--primary), transparent);
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple), transparent);
  top: 40%;
  right: -150px;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-cyan), transparent);
  bottom: -100px;
  left: 20%;
}

.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 100px;
  position: relative;
  z-index: 1;
}

/* ========================================================= */
/* UNIFIED HEADER (COMPACT & INLINE FOR ALL PAGES)           */
/* ========================================================= */

.app-header,
.app-header-unified,
.header-inline-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(16, 22, 36, 0.88), rgba(10, 14, 24, 0.92));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(99, 102, 241, 0.06);
  position: relative;
  z-index: 50;
  min-height: 50px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo-icon-mini {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  overflow: hidden;
}

.brand-link:hover .logo-icon-mini,
.footer-brand-link:hover .logo-icon-mini {
  transform: scale(1.06);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-inline-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.brand-title-compact {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 70%, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.badge-version-mini {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-sep {
  color: var(--text-subtle);
  font-size: 0.75rem;
  opacity: 0.6;
}

.brand-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Compact Credits Pill */
.credits-pill-compact {
  padding: 4px 10px;
  font-size: 0.78rem;
  gap: 6px;
}

.coin-icon-mini {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Compact User Profile Button */
.user-profile-compact {
  padding: 3px 8px 3px 4px;
  gap: 6px;
}

.user-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
}

.user-name-compact {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
}

.user-badge-chip {
  font-size: 0.6rem;
  font-weight: 800;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

/* Compact Buttons */
.btn-compact {
  padding: 5px 10px;
  font-size: 0.75rem;
  gap: 5px;
  border-radius: var(--radius-full);
}

/* Animated Logo Visualizer */
.logo-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
  flex-shrink: 0;
}

.logo-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.logo-bars .bar {
  width: 3.5px;
  background: #ffffff;
  border-radius: var(--radius-full);
  animation: soundBar 1.2s ease-in-out infinite alternate;
}

.logo-bars .bar-1 { height: 10px; animation-delay: 0.1s; }
.logo-bars .bar-2 { height: 18px; animation-delay: 0.4s; }
.logo-bars .bar-3 { height: 24px; animation-delay: 0.2s; }
.logo-bars .bar-4 { height: 14px; animation-delay: 0.5s; }
.logo-bars .bar-5 { height: 8px;  animation-delay: 0.3s; }

@keyframes soundBar {
  0% { transform: scaleY(0.3); opacity: 0.6; }
  100% { transform: scaleY(1); opacity: 1; }
}

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

.brand-text h1 {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 60%, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-version {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.subtitle strong {
  color: #38bdf8;
  font-weight: 700;
}

/* ========================================================= */
/* STUDIO MODE SWITCHER (HERO DUAL CONSOLE)                  */
/* ========================================================= */
.studio-mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

@media (max-width: 768px) {
  .studio-mode-switcher {
    grid-template-columns: 1fr;
  }
}

.mode-card {
  background: rgba(18, 22, 33, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-main);
  outline: none;
  text-decoration: none;
}

.mode-card:hover {
  background: rgba(25, 31, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.mode-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: all 0.3s ease;
}

/* Active Mode Card: Convertitore Universale */
.mode-card.active#tabBtnConverter {
  background: linear-gradient(135deg, rgba(24, 32, 54, 0.92), rgba(15, 20, 36, 0.95));
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.mode-card.active#tabBtnConverter .mode-card-glow {
  background: linear-gradient(90deg, var(--accent-cyan), var(--primary));
  box-shadow: 0 0 16px var(--primary);
}

/* Active Mode Card: AI Studio Hub */
.mode-card.active#tabBtnAiHub {
  background: linear-gradient(135deg, rgba(38, 20, 54, 0.95), rgba(20, 14, 38, 0.95));
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 12px 36px rgba(236, 72, 153, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.mode-card.active#tabBtnAiHub .mode-card-glow {
  background: linear-gradient(90deg, #ec4899, #a855f7, #6366f1);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.8);
}

.mode-icon-ai {
  background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35) !important;
}

/* Active Mode Card: Separatore Stems AI */
.mode-card.active#tabBtnStems {
  background: linear-gradient(135deg, rgba(36, 22, 52, 0.92), rgba(20, 14, 34, 0.95));
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 12px 36px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.mode-card.active#tabBtnStems .mode-card-glow {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-rose));
  box-shadow: 0 0 16px var(--accent-purple);
}

/* Active Mode Card: Audio to MIDI IA (Basic Pitch) */
.mode-card.active#tabBtnMidi {
  background: linear-gradient(135deg, rgba(38, 28, 14, 0.92), rgba(20, 16, 10, 0.95));
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.mode-card.active#tabBtnMidi .mode-card-glow {
  background: linear-gradient(90deg, #f59e0b, #10b981);
  box-shadow: 0 0 16px #f59e0b;
}

.mode-icon-midi {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(16, 185, 129, 0.15)) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

/* Mode Icon Box */
.mode-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: all 0.25s ease;
}

.mode-card:hover .mode-icon-box {
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.mode-card.active#tabBtnConverter .mode-icon-box {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: scale(1.05);
}

.mode-card.active#tabBtnStems .mode-icon-box {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
  transform: scale(1.05);
}

/* Active Mode Card: Editor & Taglio Audio */
.mode-card.active#tabBtnEditor {
  background: linear-gradient(135deg, rgba(38, 28, 16, 0.92), rgba(24, 18, 10, 0.95));
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.mode-card.active#tabBtnEditor .mode-card-glow {
  background: linear-gradient(90deg, #f59e0b, #10b981);
  box-shadow: 0 0 16px #f59e0b;
}

.mode-card.active#tabBtnEditor .mode-icon-box {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  transform: scale(1.05);
}

/* ========================================================= */
/* STUDIO AUDIO EDITOR (WAVEFORM & CONTROLS)                 */
/* ========================================================= */

.step-pill-amber {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fde68a !important;
}

.step-num-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5) !important;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.selection-duration-pill {
  font-size: 0.78rem;
  font-family: monospace;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.2);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.amber-glow {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

.btn-amber-theme {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35) !important;
}

.btn-amber-theme:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5) !important;
}

.btn-amber-launch {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4) !important;
}

.btn-amber-launch:hover {
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.6) !important;
}

.count-pill-amber {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fde68a !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

/* Editor Equalizer Bars Graphic in Dropzone */
.editor-bars-graphic {
  display: flex;
  align-items: center;
  gap: 3.5px;
  height: 32px;
}

.editor-bars-graphic .ebar {
  width: 4px;
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
  border-radius: var(--radius-full);
  animation: editorWavePulse 1.4s ease-in-out infinite alternate;
}

.editor-bars-graphic .ebar-1 { height: 12px; animation-delay: 0.15s; }
.editor-bars-graphic .ebar-2 { height: 24px; animation-delay: 0.35s; }
.editor-bars-graphic .ebar-3 { height: 32px; animation-delay: 0.1s; }
.editor-bars-graphic .ebar-4 { height: 20px; animation-delay: 0.4s; }
.editor-bars-graphic .ebar-5 { height: 28px; animation-delay: 0.25s; }
.editor-bars-graphic .ebar-6 { height: 16px; animation-delay: 0.5s; }
.editor-bars-graphic .ebar-7 { height: 10px; animation-delay: 0.3s; }

@keyframes editorWavePulse {
  0% { transform: scaleY(0.35); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Editor Waveform Section */
.editor-waveform-card {
  background: linear-gradient(180deg, rgba(24, 20, 16, 0.9), rgba(15, 14, 18, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 22px 24px;
}

.editor-player-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.editor-track-details {
  display: flex;
  align-items: center;
  gap: 14px;
}

.editor-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.editor-play-btn:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.editor-play-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.tag-pill-amber {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.editor-playback-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost.active {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fef08a;
}

.time-display-compact {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.45);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Editor Waveform Canvas and Region Handles */
.editor-waveform-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
}

.editor-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.editor-selection-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(245, 158, 11, 0.18);
  border-left: 2px solid #f59e0b;
  border-right: 2px solid #f59e0b;
  pointer-events: none;
  z-index: 5;
}

.editor-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  margin-left: -10px;
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  touch-action: none;
}

.editor-handle .handle-flag {
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 3px;
  background: #f59e0b;
  color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  user-select: none;
  line-height: 1;
}

.editor-handle .handle-line {
  flex: 1;
  width: 2px;
  background: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.editor-handle.handle-out .handle-flag {
  background: #ef4444;
  color: #fff;
}

.editor-handle.handle-out .handle-line {
  background: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.editor-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  z-index: 8;
  pointer-events: none;
  left: 0%;
}

.editor-hover-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 6;
  display: none;
}

.editor-hover-time {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-family: monospace;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 7;
  display: none;
}

.editor-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(12, 16, 26, 0.9);
  color: var(--text-muted);
  font-size: 0.88rem;
  z-index: 15;
}

.amber-anim span {
  background: linear-gradient(180deg, #f59e0b, #d97706) !important;
}

/* Precise Controls Strip */
.editor-controls-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--bg-card-border);
}

.trim-mode-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.param-chip.editor-mode-chip.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.16);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.25);
}

.param-chip.editor-mode-chip.active .chip-icon-outline {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.time-inputs-group {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.time-input-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-input-box label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.05em;
}

.input-with-action {
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-control-precision {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 10px;
  width: 110px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.form-control-precision:focus {
  border-color: #f59e0b;
}

.btn-precision-set {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-precision-set:hover {
  background: rgba(245, 158, 11, 0.3);
  color: #fff;
}

/* Effects Cards */
.editor-effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.effect-param-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.effect-val-pill {
  font-size: 0.75rem;
  font-weight: 800;
  font-family: monospace;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.effect-desc {
  font-size: 0.76rem;
  color: var(--text-subtle);
  line-height: 1.35;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-subtle);
  font-family: monospace;
  margin-top: -4px;
}

.editor-speed-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.param-chip.editor-speed-chip.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.param-chip.editor-speed-chip.active .chip-name {
  color: #fef08a;
}

.editor-format-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.param-chip.editor-fmt-chip.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.param-chip.editor-fmt-chip.active .chip-icon-outline {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.param-chip.editor-fmt-chip.active .chip-name {
  color: #fef08a;
}

.editor-result-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 20px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Ad-hoc Editor Tools Panel inside Waveform Section */
.btn-amber-pill {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-amber-pill:hover,
.btn-amber-pill.active {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fef08a;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.editor-tools-panel {
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: fadeInDown 0.22s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tools-subpanel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.editor-bottom-tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.editor-speed-grid-mini {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.editor-speed-grid-mini .param-chip {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.toggle-label-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #d4d4d8;
  user-select: none;
}

.ai-badge-chip {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, #a855f7, #f43f5e);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  border: 1.5px solid #0e121a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.mode-card-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

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

.mode-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.mode-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.badge-active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-idle {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 2px 0 6px;
}

.mode-desc strong {
  color: #e2e8f0;
}

.mode-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mode-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-subtle);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}

.mode-card.active#tabBtnConverter .mode-tag {
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.25);
}

.mode-card.active#tabBtnStems .mode-tag {
  background: rgba(168, 85, 247, 0.12);
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.25);
}

/* View Panes */
.view-pane {
  display: none;
  animation: paneEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-pane.active {
  display: block;
}

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

/* Glass Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.section-title h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-title svg {
  color: var(--primary);
}

.badge-accent {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

/* ========================================================= */
/* STEP BADGES & WORKFLOW                                    */
/* ========================================================= */
.step-card {
  position: relative;
}

.step-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 5px 14px 5px 6px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #c7d2fe;
  text-transform: uppercase;
}

.step-num {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.45);
}

.step-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================================================= */
/* SOUNDCLOUD WAVEFORM PLAYER (STEP 2)                       */
/* ========================================================= */
.waveform-player-card {
  background: linear-gradient(180deg, rgba(22, 27, 42, 0.9), rgba(15, 18, 30, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 24px;
}

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

.track-select-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-select-wrapper label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
}

.form-control-compact {
  background: var(--bg-input);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  max-width: 220px;
}

.soundcloud-player-box {
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 22px 22px;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

.soundcloud-track-details {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.soundcloud-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5500, #f59e0b);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.soundcloud-play-btn:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(255, 85, 0, 0.65);
}

.soundcloud-play-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  background: #334155;
}

.soundcloud-play-btn .play-icon {
  font-size: 1.2rem;
  margin-left: 2px;
  line-height: 1;
}

.soundcloud-play-btn.playing .play-icon {
  margin-left: 0;
}

.track-meta {
  min-width: 0;
}

.track-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.track-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.tag-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.soundcloud-extra-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.volume-slider-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.volume-range {
  -webkit-appearance: none;
  width: 75px;
  height: 4px;
  border-radius: 2px;
  background: #334155;
  outline: none;
  cursor: pointer;
}

.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5500;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 85, 0, 0.6);
}

.time-display {
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.time-active {
  color: #f59e0b;
}

.time-sep {
  color: var(--text-subtle);
  margin: 0 4px;
}

.time-total {
  color: var(--text-muted);
}

/* Soundcloud Waveform Canvas & Scrubber */
.soundcloud-waveform-wrapper {
  position: relative;
  width: 100%;
  height: 110px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.soundcloud-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hover Cursor & Tooltip */
.waveform-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 5;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}

.waveform-hover-time {
  position: absolute;
  top: 8px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 800;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  transform: translateX(-50%);
  z-index: 6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Placeholder for Waveform & Direct Dropzone */
.waveform-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(12, 15, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  z-index: 5;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px 24px;
  text-align: center;
  cursor: pointer;
}

.waveform-placeholder.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.placeholder-bars-anim {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin-bottom: 4px;
}

.placeholder-bars-anim span {
  width: 3.5px;
  background: linear-gradient(180deg, #ff5500, #f59e0b);
  border-radius: 2px;
  animation: barIdle 1.4s ease-in-out infinite alternate;
}

.placeholder-bars-anim span:nth-child(1)  { height: 10px; animation-delay: 0.1s; }
.placeholder-bars-anim span:nth-child(2)  { height: 22px; animation-delay: 0.3s; }
.placeholder-bars-anim span:nth-child(3)  { height: 14px; animation-delay: 0.15s; }
.placeholder-bars-anim span:nth-child(4)  { height: 28px; animation-delay: 0.4s; }
.placeholder-bars-anim span:nth-child(5)  { height: 32px; animation-delay: 0.25s; }
.placeholder-bars-anim span:nth-child(6)  { height: 20px; animation-delay: 0.5s; }
.placeholder-bars-anim span:nth-child(7)  { height: 26px; animation-delay: 0.2s; }
.placeholder-bars-anim span:nth-child(8)  { height: 12px; animation-delay: 0.35s; }
.placeholder-bars-anim span:nth-child(9)  { height: 30px; animation-delay: 0.1s; }
.placeholder-bars-anim span:nth-child(10) { height: 18px; animation-delay: 0.45s; }
.placeholder-bars-anim span:nth-child(11) { height: 24px; animation-delay: 0.3s; }
.placeholder-bars-anim span:nth-child(12) { height: 14px; animation-delay: 0.15s; }
.placeholder-bars-anim span:nth-child(13) { height: 8px;  animation-delay: 0.4s; }

@keyframes barIdle {
  0% { transform: scaleY(0.3); opacity: 0.25; }
  100% { transform: scaleY(1); opacity: 0.85; }
}

.waveform-placeholder p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 520px;
}

.waveform-player-card.drag-over {
  border-color: #f59e0b !important;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.3) !important;
}

.waveform-dragover-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-md);
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 20;
  pointer-events: none;
  animation: fadeInParams 0.15s ease;
}

#btnBrowseHeader {
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.08);
  font-size: 0.78rem;
  padding: 5px 12px;
}

#btnBrowseHeader:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

/* ========================================================= */
/* FORMAT SELECTOR RIBBON                                    */
/* ========================================================= */
.format-ribbon-card {
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(25, 30, 46, 0.85), rgba(18, 22, 33, 0.85));
}

.format-ribbon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sparkle-icon {
  font-size: 1.2rem;
}

.format-chips-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.format-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  color: var(--text-main);
  outline: none;
}

.format-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.format-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

/* White Outline Icon Box */
.chip-icon-outline {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.outline-icon {
  stroke: #ffffff;
  transition: all 0.2s ease;
}

.format-chip:hover .chip-icon-outline,
.param-chip:hover .chip-icon-outline {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

.format-chip.active .chip-icon-outline,
.param-chip.active .chip-icon-outline {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.chip-info {
  display: flex;
  flex-direction: column;
}

.chip-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.chip-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Format specific colors on active */
.format-chip[data-format="mp3"].active .chip-name { color: #34d399; }
.format-chip[data-format="wav"].active .chip-name { color: #67e8f9; }
.format-chip[data-format="flac"].active .chip-name { color: #c084fc; }
.format-chip[data-format="m4a"].active .chip-name { color: #fb923c; }
.format-chip[data-format="ogg"].active .chip-name { color: #818cf8; }
.format-chip[data-format="opus"].active .chip-name { color: #f472b6; }
.format-chip[data-format="aiff"].active .chip-name { color: #fde047; }

/* ========================================================= */
/* PARAMETERS CHIPS UI (BITRATE, SAMPLE RATE, CHANNELS)     */
/* ========================================================= */
.encoding-params-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-card-border);
}

/* ========================================================= */
/* ADVANCED AUDIO PARAMETERS COLLAPSIBLE GROUP (STEP 03)      */
/* ========================================================= */
.advanced-params-group-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  margin-top: 8px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.advanced-params-group-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.advanced-params-toggle-header {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease;
  color: var(--text-main);
  outline: none;
}

.advanced-params-toggle-header:hover {
  background: rgba(255, 255, 255, 0.06);
}

.advanced-params-toggle-header.expanded {
  background: rgba(99, 102, 241, 0.07);
  border-bottom: 1px solid var(--bg-card-border);
}

.toggle-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  flex-shrink: 0;
}

.toggle-header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-main-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.toggle-sub-title {
  font-size: 0.73rem;
  color: #a1a1aa;
}

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

.params-live-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.param-live-pill {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #d4d4d8;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.advanced-params-toggle-header.expanded .param-live-pill {
  border-color: rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

.toggle-chevron-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a1a1aa;
  font-size: 0.8rem;
  font-weight: 600;
}

.toggle-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.advanced-params-toggle-header.expanded .toggle-chevron {
  transform: rotate(180deg);
  color: #a5b4fc;
}

.advanced-params-content {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(0, 0, 0, 0.18);
  animation: fadeInParams 0.22s ease;
}

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

.collapsible-param-subitem {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.collapsible-param-subitem:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.subitem-header {
  padding: 11px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  user-select: none;
  transition: background 0.15s ease;
}

.subitem-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.subitem-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subitem-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

.subitem-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f4f4f5;
}

.subitem-status-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subitem-val-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: #818cf8;
}

.subitem-chevron {
  transition: transform 0.2s ease;
  color: #71717a;
}

.subitem-chevron.collapsed {
  transform: rotate(-90deg);
}

.subitem-body {
  padding: 14px 15px 16px;
}

@media (max-width: 640px) {
  .params-live-pills {
    display: none;
  }
}

.param-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.param-group-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.param-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

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

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

.param-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  color: var(--text-main);
  outline: none;
}

.param-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.param-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.param-chip.active .chip-name {
  color: #a5b4fc;
}

/* Normalization Card */
.normalization-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 4px;
  transition: border-color 0.2s ease;
}

.normalization-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.normalization-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Settings Grid */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-item label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.setting-hint {
  font-size: 0.74rem;
  color: var(--text-subtle);
  line-height: 1.35;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.65rem;
  color: var(--text-muted);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  padding: 11px 32px 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Switch */
.switch-item {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

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

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

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

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ========================================================= */
/* GRAPHIC DROP ZONE                                         */
/* ========================================================= */
.upload-card {
  border: 2px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  padding: 50px 24px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.upload-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.upload-card:hover::before, .upload-card.drag-over::before {
  opacity: 1;
}

.upload-card:hover, .upload-card.drag-over {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.25);
}

.drop-content {
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.drop-content button, .drop-content input {
  pointer-events: auto;
}

.upload-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.purple-glow {
  background: rgba(168, 85, 247, 0.15) !important;
  border-color: rgba(168, 85, 247, 0.35) !important;
}

.stems-symbol {
  font-size: 2rem;
}

/* Waveform graphic inside drop icon */
.waveform-graphic {
  display: flex;
  align-items: center;
  gap: 3.5px;
  height: 32px;
}

.waveform-graphic span {
  width: 4px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--primary));
  border-radius: var(--radius-full);
  animation: wavePulse 1.4s ease-in-out infinite alternate;
}

.waveform-graphic span:nth-child(1) { height: 12px; animation-delay: 0.1s; }
.waveform-graphic span:nth-child(2) { height: 22px; animation-delay: 0.3s; }
.waveform-graphic span:nth-child(3) { height: 32px; animation-delay: 0.15s; }
.waveform-graphic span:nth-child(4) { height: 26px; animation-delay: 0.4s; }
.waveform-graphic span:nth-child(5) { height: 30px; animation-delay: 0.25s; }
.waveform-graphic span:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.waveform-graphic span:nth-child(7) { height: 10px; animation-delay: 0.2s; }

@keyframes wavePulse {
  0% { transform: scaleY(0.4); opacity: 0.6; }
  100% { transform: scaleY(1); opacity: 1; }
}

.upload-card:hover .upload-icon-wrapper, .upload-card.drag-over .upload-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--primary-glow);
}

.drop-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.drop-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.drop-subtitle strong {
  color: #38bdf8;
}

.btn-browse {
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7073ff, #5c54f5);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.6);
}

.btn-purple-glow {
  background: linear-gradient(135deg, #a855f7, #6366f1) !important;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4) !important;
}

.btn-purple-glow:hover {
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.6) !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
}

.btn-success:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.btn-glow {
  box-shadow: 0 4px 20px var(--accent-green-glow);
}

.btn-glow:hover {
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.55);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline-danger {
  background: transparent;
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.btn-outline-danger:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: var(--accent-rose);
}

.btn-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* Settings Subgrid inside Step 3 */
.settings-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-card-border);
}

/* ========================================================= */
/* QUEUE & CONVERSION LAUNCH (STEP 4)                        */
/* ========================================================= */
.conversion-launch-card {
  padding: 24px;
}

.conversion-command-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(135deg, rgba(20, 26, 42, 0.85), rgba(28, 35, 58, 0.85));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.command-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.count-pill {
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.command-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-convert-launch {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-convert-launch:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.65);
  transform: translateY(-2px);
}

.btn-convert-launch:active {
  transform: scale(0.98);
}

.btn-download-zip {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

.btn-download-zip:hover {
  background: linear-gradient(135deg, #818cf8, #6366f1);
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-card-border);
}

.queue-stats h2 {
  font-size: 1.2rem;
  font-weight: 800;
}

.queue-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty-queue-hint {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
  line-height: 1.6;
}

.file-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.file-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.file-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.file-info-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.format-badges-combo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-format-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
  white-space: nowrap;
}

.arrow-icon {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* Inline Target Format Select */
.inline-format-select {
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  outline: none;
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.badge-savings {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-badge.ready {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.status-badge.converting {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.status-badge.error {
  background: rgba(244, 63, 94, 0.15);
  color: #f87171;
}

.file-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Progress bar inside file item */
.file-progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #06b6d4, #10b981);
  background-size: 200% 100%;
  animation: progressGradient 2s linear infinite;
  width: 0%;
  transition: width 0.25s ease;
  border-radius: var(--radius-full);
}

@keyframes progressGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.progress-text-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 600;
}

/* ========================================================= */
/* STEMS STUDIO WORKFLOW & STEP CARDS                        */
/* ========================================================= */

.step-pill-purple {
  background: rgba(168, 85, 247, 0.14) !important;
  border-color: rgba(168, 85, 247, 0.35) !important;
  color: #e9d5ff !important;
}

.step-num-purple {
  background: linear-gradient(135deg, #a855f7, #6366f1) !important;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.5) !important;
}

/* Stems Equalizer Bars Graphic in Dropzone */
.stems-bars-graphic {
  display: flex;
  align-items: center;
  gap: 3.5px;
  height: 32px;
}

.stems-bars-graphic .sbar {
  width: 4px;
  background: linear-gradient(180deg, #c084fc, #6366f1);
  border-radius: var(--radius-full);
  animation: stemsWavePulse 1.4s ease-in-out infinite alternate;
}

.stems-bars-graphic .sbar-1 { height: 10px; animation-delay: 0.1s; }
.stems-bars-graphic .sbar-2 { height: 20px; animation-delay: 0.35s; }
.stems-bars-graphic .sbar-3 { height: 32px; animation-delay: 0.15s; }
.stems-bars-graphic .sbar-4 { height: 26px; animation-delay: 0.45s; }
.stems-bars-graphic .sbar-5 { height: 30px; animation-delay: 0.2s; }
.stems-bars-graphic .sbar-6 { height: 18px; animation-delay: 0.5s; }
.stems-bars-graphic .sbar-7 { height: 12px; animation-delay: 0.25s; }

@keyframes stemsWavePulse {
  0% { transform: scaleY(0.35); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

.btn-browse-stems {
  background: linear-gradient(135deg, #a855f7, #6366f1) !important;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35) !important;
}

.btn-browse-stems:hover {
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5) !important;
}

/* Stems Mode and Format Grids */
.stems-mode-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stems-format-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.param-chip.stems-mode-chip.active,
.param-chip.stems-format-chip.active {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.16);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.param-chip.stems-mode-chip.active .chip-icon-outline,
.param-chip.stems-format-chip.active .chip-icon-outline {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.param-chip.stems-mode-chip.active .chip-name,
.param-chip.stems-format-chip.active .chip-name {
  color: #f3e8ff;
}

/* Neural Model Banner */
.stems-spec-card {
  border-color: rgba(168, 85, 247, 0.25);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(99, 102, 241, 0.05));
}

.model-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Stems Launch Command Bar */
.count-pill-purple {
  background: rgba(168, 85, 247, 0.2) !important;
  color: #d8b4fe !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
}

.btn-purple-launch {
  background: linear-gradient(135deg, #a855f7, #6366f1) !important;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4) !important;
}

.btn-purple-launch:hover {
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.6) !important;
}

/* Stems Progress Box inside Step 03 */
.stems-progress-box {
  background: rgba(13, 17, 28, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 16px;
  animation: fadeIn 0.25s ease-out;
}

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

.progress-title-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 0.92rem;
}

.stems-progress-gradient {
  background: linear-gradient(90deg, #a855f7, #06b6d4, #10b981) !important;
  background-size: 200% 100% !important;
  animation: progressGradient 2s linear infinite !important;
}

/* ========================================================= */
/* STEMS STUDIO MIXER CONSOLE                                */
/* ========================================================= */
.mixer-card {
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(20, 16, 32, 0.88);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.2);
}

.mixer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-card-border);
}

.mixer-title-group h2 {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.mixer-global-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mixer-transport {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.4);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--bg-card-border);
}

.btn-master-play {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary));
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.mixer-timeline-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.time-label {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: monospace;
  color: var(--text-muted);
}

.mixer-range {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  height: 6px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.mixer-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  cursor: pointer;
}

.mixer-range.scrubber {
  flex: 1;
  height: 8px;
}

.mixer-range.scrubber::-webkit-slider-thumb {
  background: var(--accent-cyan);
  width: 18px;
  height: 18px;
  box-shadow: 0 0 12px var(--accent-cyan);
}

/* Stems Channels Grid */
.stems-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.stem-channel-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stem-channel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0.8;
}

/* Color coding channel strips */
.stem-channel-card[id*="vocals"]::before { background: #f43f5e; }
.stem-channel-card[id*="drums"]::before { background: #06b6d4; }
.stem-channel-card[id*="bass"]::before { background: #f59e0b; }
.stem-channel-card[id*="other"]::before, .stem-channel-card[id*="no_vocals"]::before { background: #10b981; }

.stem-channel-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.stem-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stem-icon {
  font-size: 1.4rem;
}

.stem-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.stem-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-mute, .btn-solo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 0.82rem;
  border: 1px solid var(--bg-card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mute:hover, .btn-solo:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.btn-solo.active {
  background: var(--accent-amber);
  color: #000;
  border-color: var(--accent-amber);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.btn-mute.active {
  background: var(--accent-rose);
  color: #fff;
  border-color: var(--accent-rose);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.6);
}

.stem-volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stem-volume-row span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  width: 32px;
}

.stem-volume-slider {
  flex: 1;
}

.stem-download-btn {
  margin-top: auto;
  width: 100%;
  font-size: 0.82rem;
  padding: 9px 12px;
}

/* Spinner */
.spinner-icon {
  display: inline-block;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.2); opacity: 1; }
}

/* Bottom Player Bar */
.player-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 820px;
  background: rgba(19, 24, 37, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 12px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1000;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  max-width: 260px;
}

.player-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.player-text {
  overflow: hidden;
}

.track-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-type {
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.native-player {
  flex: 1;
  height: 36px;
  outline: none;
  filter: invert(1) hue-rotate(180deg);
}

.btn-close-player {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.btn-close-player:hover {
  color: var(--text-main);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: rgba(22, 27, 38, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-success { border-left: 4px solid var(--accent-green); }
.toast.toast-error { border-left: 4px solid var(--accent-rose); }
.toast.toast-info { border-left: 4px solid var(--primary); }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================================= */
/* HEADER CREDITS PILL & USER PROFILE DROPDOWN               */
/* ========================================================= */

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

/* Credits Pill Button */
.credits-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(217, 119, 6, 0.22));
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: #fef3c7;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.credits-pill-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.35));
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.credits-pill-btn:active {
  transform: translateY(0);
}

.coin-glow-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  flex-shrink: 0;
}

.credits-text strong {
  color: #fbbf24;
  font-size: 0.95rem;
  font-weight: 800;
}

.credits-add-chip {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fef08a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* User Profile Menu Wrapper */
.user-menu-wrapper {
  position: relative;
}

.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px 4px 5px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
}

.user-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dropdown-caret {
  color: var(--text-subtle);
  transition: transform 0.2s ease;
}

.user-profile-btn[aria-expanded="true"] .dropdown-caret {
  transform: rotate(180deg);
}

.btn-login-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Dropdown Popover */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  background: rgba(15, 20, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(99, 102, 241, 0.15);
  padding: 12px;
  z-index: 100;
  animation: dropdownIn 0.18s ease-out forwards;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 10px;
}

.dd-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.dd-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dd-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dd-email {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-credits-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 4px 0 10px;
}

.dd-credits-label {
  font-size: 0.7rem;
  color: #fcd34d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.dd-credits-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
}

.dd-credits-amount #ddCreditsCount {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fbbf24;
}

.dd-credits-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 8px 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.dropdown-item.text-danger {
  color: #f87171;
}

.dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

/* ========================================================= */
/* MODALS SYSTEM (GLASSMORPHIC & TACTILE)                     */
/* ========================================================= */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

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

.modal-content {
  background: linear-gradient(145deg, rgba(20, 26, 40, 0.98), rgba(12, 16, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.18);
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-badge {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.credits-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.history-badge {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.modal-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================= */
/* AUTH MODAL STYLES                                         */
/* ========================================================= */

.auth-dialog {
  max-width: 460px;
}

.quick-demo-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.demo-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.demo-lightning {
  font-size: 1.4rem;
}

.demo-box-header strong {
  font-size: 0.9rem;
  color: #e0e7ff;
}

.demo-box-header p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-demo-quick {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  color: #ffffff;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-demo-quick:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

.modal-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--text-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-separator::before,
.modal-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-separator span {
  padding: 0 10px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 16px;
}

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

.auth-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.auth-form .form-group {
  margin-bottom: 14px;
}

.auth-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.btn-auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  font-weight: 700;
}

.btn-google {
  width: 100%;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ========================================================= */
/* CREDITS STORE MODAL STYLES                                */
/* ========================================================= */

.credits-dialog {
  max-width: 900px;
}

.current-balance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
}

.balance-meta {
  display: flex;
  flex-direction: column;
}

.balance-label {
  font-size: 0.75rem;
  color: #fcd34d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.balance-digits {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.balance-digits .coin-icon {
  font-size: 1.3rem;
}

.balance-digits strong {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fbbf24;
}

.balance-digits .credits-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-outline-amber {
  background: transparent;
  border: 1px dashed rgba(245, 158, 11, 0.6);
  color: #fef08a;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-amber:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
}

/* 3 Credit Packs Grid */
.credit-packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pack-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.pack-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.pack-card.pack-featured {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
  border: 2px solid #8b5cf6;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
  transform: scale(1.02);
}

.pack-card.pack-featured:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 16px 36px rgba(139, 92, 246, 0.35);
}

.pack-header {
  margin-bottom: 12px;
}

.pack-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.badge-popular {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #ffffff;
}

.badge-savings {
  background: linear-gradient(135deg, #06b6d4, #10b981);
  color: #ffffff;
}

.pack-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.pack-credits-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 4px;
}

.credits-big {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fbbf24;
}

.credits-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pack-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.price-unit {
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.pack-rate {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 16px;
}

.pack-rate.highlight {
  color: #38bdf8;
  font-weight: 700;
}

.pack-features {
  list-style: none;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.pack-features li {
  margin-bottom: 8px;
  line-height: 1.35;
}

.btn-pack-buy {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pack-starter {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-pack-starter:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-pack-featured {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.btn-pack-featured:hover {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  transform: translateY(-1px);
}

.btn-pack-studio {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.btn-pack-studio:hover {
  background: linear-gradient(135deg, #0284c7, #0891b2);
  transform: translateY(-1px);
}

/* Tariff box */
.tariff-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.tariff-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.tariff-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tariff-item {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
}

.tariff-service {
  color: var(--text-muted);
}

.tariff-cost {
  color: #ffffff;
  font-size: 0.88rem;
  margin-top: 2px;
}

.sandbox-disclaimer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #a5f3fc;
}

/* ========================================================= */
/* TRANSACTION HISTORY MODAL STYLES                          */
/* ========================================================= */

.history-dialog {
  max-width: 620px;
}

.history-list-wrapper {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: background 0.15s ease;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.icon-purchase { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-usage { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-bonus { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

.history-item-info {
  display: flex;
  flex-direction: column;
}

.history-item-desc {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
}

.history-item-date {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.history-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.history-amount {
  font-size: 1rem;
  font-weight: 800;
}

.history-amount.positive {
  color: #10b981;
}

.history-amount.negative {
  color: #f59e0b;
}

.history-balance-after {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ========================================================= */
/* UNIVERSAL GLOBAL FOOTER FOR ALL PAGES                     */
/* ========================================================= */

.app-footer-unified {
  margin-top: 56px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.75), rgba(10, 14, 24, 0.95));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(99, 102, 241, 0.05);
  position: relative;
  z-index: 20;
}

.footer-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 1.2fr;
  gap: 36px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  width: fit-content;
  transition: opacity 0.2s ease;
}

.footer-brand-link:hover {
  opacity: 0.9;
}

.footer-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-version-mini {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
  letter-spacing: 0.02em;
}

.footer-hero-tagline {
  font-size: 0.98rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.5;
}

.footer-hero-tagline strong:first-of-type {
  color: #38bdf8;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.footer-hero-tagline strong:last-of-type {
  color: #c084fc;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.35);
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.footer-status-pill .status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-link-btn:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-static-item {
  font-size: 0.82rem;
  color: var(--text-subtle);
  line-height: 1.45;
  display: block;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  width: 100%;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copyright span strong {
  color: #e2e8f0;
  font-weight: 700;
}

.copyright-sub {
  font-size: 0.74rem;
  color: var(--text-subtle);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.footer-legal-link {
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--text-muted);
}

.legal-sep {
  color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 992px) and (min-width: 769px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .app-header,
  .app-header-unified,
  .header-inline-compact {
    padding: 8px 12px;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }
  .brand-tagline,
  .brand-sep {
    display: none;
  }
  .header-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .credit-packs-grid {
    grid-template-columns: 1fr;
  }
  .tariff-items {
    grid-template-columns: 1fr;
  }
  .credits-dialog {
    padding: 20px;
  }
  .nav-tabs {
    width: 100%;
    justify-content: center;
  }
  .format-chips-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .file-main-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .file-actions-group {
    width: 100%;
    justify-content: flex-end;
  }
  .player-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .app-footer-unified {
    padding: 28px 20px 24px;
    margin-top: 40px;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ========================================================= */
/* TAB 3: AUDIO TO MIDI & MIR INTELLIGENCE STYLING           */
/* ========================================================= */

.step-pill-amber {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

.step-num-amber {
  background: #f59e0b !important;
  color: #0b0f19 !important;
}

.amber-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(16, 185, 129, 0.1) 60%, transparent 80%) !important;
}

.btn-browse-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #0b0f19 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35) !important;
}

.btn-browse-amber:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5) !important;
  transform: translateY(-1.5px);
}

.cost-badge-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.command-icon-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.btn-launch-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #0b0f19 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4) !important;
}

.btn-launch-amber:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.6) !important;
}

.spinner-amber {
  border-top-color: #f59e0b !important;
}

.status-percent-amber {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.progress-bar-amber {
  background: linear-gradient(90deg, #f59e0b, #10b981) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5) !important;
}

.btn-glow-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #0b0f19 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4) !important;
}

.btn-glow-amber:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6) !important;
  transform: translateY(-1px);
}

.btn-amber-pill {
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  background: rgba(245, 158, 11, 0.12) !important;
}

.btn-amber-pill:hover {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
}

/* Piano Keys Animation Graphic */
.midi-keys-graphic {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 38px;
  position: relative;
  gap: 2px;
  padding: 0 8px;
}

.mkey {
  border-radius: 0 0 3px 3px;
  transition: all 0.2s ease;
}

.mkey-white {
  width: 9px;
  height: 36px;
  background: #f1f5f9;
  border: 1px solid #94a3b8;
  z-index: 1;
}

.mkey-black {
  width: 6px;
  height: 22px;
  background: #0f172a;
  border: 1px solid #334155;
  margin: 0 -4px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.upload-icon-wrapper:hover .mkey-white:nth-child(odd) {
  height: 33px;
  background: #fbbf24;
}

.upload-icon-wrapper:hover .mkey-black:nth-child(even) {
  height: 20px;
  background: #d97706;
}

/* MIDI File Preview Card */
.midi-file-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(24, 30, 48, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.midi-file-preview-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.midi-file-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
}

.midi-file-meta h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.midi-file-tags {
  display: flex;
  gap: 6px;
}

/* Sliders Box & Range */
.midi-sliders-box {
  background: rgba(15, 20, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.midi-slider-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.range-amber {
  accent-color: #f59e0b;
}

.range-amber::-webkit-slider-thumb {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.midi-checkbox-row {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* MIR Music Intelligence HUD */
.midi-mir-hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 860px) {
  .midi-mir-hud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mir-card {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mir-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.mir-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.mir-data {
  display: flex;
  flex-direction: column;
}

.mir-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.mir-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  font-feature-settings: "tnum";
}

.mir-value-camelot {
  color: #10b981 !important;
}

/* Piano Roll Visualizer */
.pianoroll-wrapper {
  background: rgba(12, 16, 26, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.pianoroll-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.pianoroll-info-left h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.pianoroll-range-pill {
  font-size: 0.78rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.pianoroll-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pianoroll-canvas-container {
  width: 100%;
  height: 280px;
  position: relative;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pianoroll-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pianoroll-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
  pointer-events: none;
  z-index: 10;
}

.pianoroll-footer-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 12px;
  line-height: 1.5;
}

.pianoroll-footer-hint code {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
}

/* ========================================================= */
/* STEMS MULTITRACK MIDI OUTPUT BOX                          */
/* ========================================================= */
.midi-stems-output-box {
  margin-top: 24px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(12px);
}

.stems-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.stems-output-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 4px 0;
}

.stems-output-header .section-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.midi-stems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.stem-midi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}

.stem-midi-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

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

.stem-midi-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stem-midi-icon {
  font-size: 1.4rem;
}

.stem-midi-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.stem-midi-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 600;
}

.stem-midi-stats {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.stem-midi-stats span strong {
  color: #f1f5f9;
}

.btn-download-stem-midi {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-download-stem-midi:hover {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.btn-stem-midi {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: var(--radius-md);
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stem-midi:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fef08a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* ========================================================= */
/* HEADER AI HUB BUTTON (IL SOLO LINK IN ALTO)               */
/* ========================================================= */
.header-center-nav {
  display: flex;
  align-items: center;
}

.btn-header-ai-hub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(236, 72, 153, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.15);
}

.btn-header-ai-hub:hover,
.btn-header-ai-hub.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.35));
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}

.nav-ai-sparkle {
  color: #f472b6;
  font-size: 0.92rem;
}

.nav-ai-text {
  letter-spacing: -0.01em;
}

.badge-ai-pill {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #ffffff;
  letter-spacing: 0.04em;
}

/* ========================================================= */
/* HUB SUBVIEW BREADCRUMB NAVIGATION                         */
/* ========================================================= */
.hub-subview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
}

.btn-back-hub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-back-hub:hover {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
  color: #f472b6;
}

.hub-subview-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-subview-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.hub-subview-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #cbd5e1;
}

@media (max-width: 680px) {
  .hub-subview-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ========================================================= */
/* AI STUDIO HUB (CENTRO MODELLI NEURALI AUDIO)              */
/* ========================================================= */
.ai-hub-hero-card {
  background: linear-gradient(135deg, rgba(26, 18, 48, 0.85), rgba(14, 12, 28, 0.9));
  border: 1.5px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(168, 85, 247, 0.1);
  padding: 28px 32px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
}

.ai-hub-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ai-hub-title-group {
  flex: 1;
  min-width: 300px;
}

.ai-hub-super-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e9d5ff;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.ai-sparkle-icon {
  color: #ec4899;
}

.badge-tag-glow {
  background: #a855f7;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 0.62rem;
}

.ai-hub-heading {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #ffffff 40%, #e9d5ff 70%, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-hub-subheading {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}

.ai-hub-stats-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  flex-shrink: 0;
}

.hub-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hub-stat-label {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.hub-stat-val {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fbbf24;
}

.hub-stat-unit {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.hub-stat-subval {
  font-size: 0.86rem;
  color: #38bdf8;
  font-weight: 700;
}

.hub-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

.btn-hub-topup {
  margin-left: 4px;
}

/* AI Tools Grid Section */
.ai-tools-grid-section {
  margin-bottom: 30px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

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

.section-main-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

.badge-count-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.section-subtext {
  font-size: 0.85rem;
  color: #94a3b8;
}

.ai-tools-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .ai-tools-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .ai-tools-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Tool Card */
.ai-tool-card {
  background: rgba(18, 22, 36, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
}

.ai-card-glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: all 0.3s ease;
}

.ai-tool-card-stems:hover .ai-card-glow-bg {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  box-shadow: 0 0 16px #a855f7;
}

.ai-tool-card-midi:hover .ai-card-glow-bg {
  background: linear-gradient(90deg, #f59e0b, #10b981);
  box-shadow: 0 0 16px #f59e0b;
}

.ai-tool-card-vocalclean:hover .ai-card-glow-bg {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  box-shadow: 0 0 16px #06b6d4;
}

.ai-tool-card-mastering:hover .ai-card-glow-bg {
  background: linear-gradient(90deg, #10b981, #06b6d4);
  box-shadow: 0 0 16px #10b981;
}

.ai-tool-card-acapella:hover .ai-card-glow-bg {
  background: linear-gradient(90deg, #ec4899, #f43f5e);
  box-shadow: 0 0 16px #ec4899;
}

.ai-tool-card-chords:hover .ai-card-glow-bg {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  box-shadow: 0 0 16px #3b82f6;
}

/* AI Tool Card Media Photo Banner */
.ai-card-media {
  position: relative;
  width: calc(100% + 48px);
  margin: -24px -24px 18px -24px;
  height: 168px;
  overflow: hidden;
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
  .ai-card-media {
    height: 145px;
  }
}

.ai-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.9) contrast(1.06);
}

.ai-tool-card:hover .ai-card-img {
  transform: scale(1.07);
  filter: brightness(1.02) contrast(1.1);
}

.ai-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.35) 0%, rgba(10, 14, 26, 0.55) 55%, rgba(18, 22, 36, 0.98) 100%);
  pointer-events: none;
}

.ai-card-media-content {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
  pointer-events: none;
}

.ai-card-media-content > * {
  pointer-events: auto;
}

.ai-card-media-content .ai-tool-icon-box {
  width: 44px;
  height: 44px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ai-card-media-content .ai-tool-meta-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.ai-tool-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.ai-tool-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.purple-glow {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.amber-glow {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.cyan-glow {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
}

.emerald-glow {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.magenta-glow {
  background: linear-gradient(135deg, #db2777, #ec4899);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

.blue-glow {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.ai-tool-meta-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.badge-status-ready {
  font-size: 0.65rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.badge-status-proposal {
  font-size: 0.65rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.badge-status-planned {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.badge-model-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
}

.ai-tool-card-body {
  flex: 1;
}

.ai-tool-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.ai-tool-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.ai-tool-desc strong {
  color: #e2e8f0;
}

.ai-tool-specs-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
}

.spec-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.spec-bullet {
  color: #ec4899;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ai-tool-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 12px;
}

.ai-cost-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-md, 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  text-align: center;
  min-width: 72px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.ai-cost-pill:not(:has(.cost-val-row)) {
  display: inline-grid;
  grid-template-areas:
    "icon num"
    "unit unit";
  align-items: center;
  justify-content: center;
  justify-items: center;
  column-gap: 6px;
  row-gap: 2px;
}
.ai-cost-pill:not(:has(.cost-val-row)) .cost-emoji { grid-area: icon; }
.ai-cost-pill:not(:has(.cost-val-row)) .cost-num { grid-area: num; white-space: nowrap; }
.ai-cost-pill:not(:has(.cost-val-row)) .cost-unit { grid-area: unit; white-space: nowrap; }

.cost-val-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.cost-emoji,
.coin-emoji,
.coin-icon {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.text-amber {
  color: #f59e0b !important;
}

.cost-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fbbf24;
  white-space: nowrap;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.cost-unit {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  line-height: 1.1;
}

.btn-launch-ai {
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: #06b6d4;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

.btn-outline-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.btn-outline-emerald:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.btn-outline-magenta {
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.btn-outline-magenta:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: #ec4899;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.3);
}

.btn-outline-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* AI Info Banner */
.ai-hub-info-banner {
  background: rgba(14, 18, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.hub-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .hub-info-grid {
    grid-template-columns: 1fr;
  }
}

.hub-info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-info-icon {
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hub-info-col h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.hub-info-col p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* ========================================================== */
/* AI VOCAL CLEANER (CYAN) & AI SMART MASTERING (EMERALD) UI  */
/* ========================================================== */

/* Cyan Accent & Glow */
.cyan-glow {
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.35) !important;
  border-color: rgba(34, 211, 238, 0.5) !important;
}

.btn-glow-cyan {
  background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4) !important;
}

.btn-glow-cyan:hover {
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.6) !important;
  transform: translateY(-1px);
}

.btn-browse-cyan {
  background: linear-gradient(135deg, #06b6d4, #0e7490) !important;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35) !important;
}

.btn-browse-cyan:hover {
  box-shadow: 0 6px 26px rgba(6, 182, 212, 0.55) !important;
}

.btn-cyan-launch {
  background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4) !important;
}

.btn-cyan-launch:hover {
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.6) !important;
}

.step-pill-cyan {
  background: rgba(6, 182, 212, 0.12) !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
  color: #22d3ee !important;
}

.step-num-cyan {
  background: #06b6d4 !important;
  color: #0b1120 !important;
}

.count-pill-cyan {
  background: rgba(6, 182, 212, 0.2) !important;
  color: #22d3ee !important;
  border: 1px solid rgba(6, 182, 212, 0.4) !important;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #22d3ee !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
}

.hub-subview-badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 4px;
}

.denoise-progress-gradient {
  background: linear-gradient(90deg, #06b6d4, #3b82f6) !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5) !important;
}

.range-cyan::-webkit-slider-thumb {
  background: #22d3ee !important;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7) !important;
}

/* Emerald Accent & Glow */
.emerald-glow {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}

.btn-glow-emerald {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
}

.btn-glow-emerald:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6) !important;
  transform: translateY(-1px);
}

.btn-browse-emerald {
  background: linear-gradient(135deg, #10b981, #047857) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
}

.btn-browse-emerald:hover {
  box-shadow: 0 6px 26px rgba(16, 185, 129, 0.55) !important;
}

.btn-emerald-launch {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
}

.btn-emerald-launch:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6) !important;
}

.step-pill-emerald {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #34d399 !important;
}

.step-num-emerald {
  background: #10b981 !important;
  color: #0b1120 !important;
}

.count-pill-emerald {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.hub-subview-badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 4px;
}

.mastering-progress-gradient {
  background: linear-gradient(90deg, #10b981, #06b6d4) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5) !important;
}

.range-emerald::-webkit-slider-thumb {
  background: #34d399 !important;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7) !important;
}

/* Mastering Comparative Loudness Metrics Grid */
.mastering-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 850px) {
  .mastering-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.master-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.master-stat-card.highlight-card {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

.mstat-icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mstat-data {
  display: flex;
  flex-direction: column;
}

.mstat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.mstat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: var(--font-mono, monospace);
}

.highlight-card .mstat-value {
  color: #34d399;
}

/* A/B Comparison Player Box */
.ab-compare-box {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 18px;
}

.ab-switch-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.ab-switch-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #cbd5e1;
}

.ab-button-group {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.btn-ab-mode {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ab-mode:hover {
  color: #ffffff;
}

.btn-ab-mode.active {
  background: #1e293b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#btnDenoiseModeClean.active {
  background: rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

#btnMasterModeMastered.active {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.ab-sparkle {
  color: #fbbf24;
  font-size: 0.85rem;
}

.ab-hint-text {
  font-size: 0.78rem;
  color: #64748b;
  margin-left: auto;
}

/* ========================================================== */
/* CENTRALIZED UNIVERSAL STUDIO SESSION & ACTIVE TRACK DOCK   */
/* ========================================================== */

/* Header Active Track Pill */
.header-active-track-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-left: 12px;
  font-size: 0.76rem;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
  transition: all 0.2s ease;
}

.active-track-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.active-track-name {
  color: #f8fafc;
  font-weight: 700;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-header-clear-track {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 0 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-header-clear-track:hover {
  color: #ef4444;
}

/* Central Audio Station in AI Hub */
.central-audio-station-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(11, 15, 25, 0.98) 100%);
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 211, 238, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.central-drop-area {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  border: 2px dashed rgba(34, 211, 238, 0.4);
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.04);
  transition: all 0.25s ease;
}

.central-drop-area:hover,
.central-drop-area.drag-over {
  border-color: #22d3ee;
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

.central-drop-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.15);
  border: 1.5px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.central-drop-info {
  flex: 1;
}

.central-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.14);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.central-drop-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.central-drop-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 800px) {
  .central-drop-area {
    flex-direction: column;
    text-align: center;
  }
}

/* Active Track Loaded State */
.active-track-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .active-track-banner-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.active-track-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.active-track-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.active-track-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #22d3ee;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.active-track-filename {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 6px 0;
}

.active-track-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.tag-active-ready {
  color: #34d399;
  font-weight: 600;
}

.active-track-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-danger-pill {
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.btn-danger-pill:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: #ffffff !important;
}

/* Quick Tools Row */
.active-track-tools-row {
  margin-top: 18px;
}

.tools-row-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  display: block;
  margin-bottom: 10px;
}

.active-tools-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 950px) {
  .active-tools-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn-quick-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-quick-tool:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-quick-stems:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
  color: #c084fc;
}

.btn-quick-midi:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.btn-quick-denoise:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
  color: #22d3ee;
}

.btn-quick-mastering:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.btn-quick-converter:hover {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.btn-quick-stems i { color: #c084fc; }
.btn-quick-midi i { color: #fbbf24; }
.btn-quick-denoise i { color: #22d3ee; }
.btn-quick-mastering i { color: #34d399; }
.btn-quick-converter i { color: #60a5fa; }

/* Subpage Step 01 Session Notice Box */
.session-track-notice-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(34, 211, 238, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

@media (max-width: 750px) {
  .session-track-notice-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.session-notice-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.session-notice-info {
  flex: 1;
}

.session-notice-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 4px;
}

.session-badge-purple {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.session-badge-amber {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.session-badge-cyan {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.session-badge-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.session-notice-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.session-notice-meta {
  font-size: 0.78rem;
  color: #94a3b8;
}

.session-notice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================= */
/* MULTILINGUAL LANGUAGE SELECTOR IN HEADER                   */
/* ========================================================= */

.lang-selector-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--text-main, #f8fafc);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-lang-selector:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.btn-lang-selector .lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.btn-lang-selector .lang-code {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main, #f8fafc);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 12px);
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.15);
  z-index: 1000;
  animation: dropdownSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-menu-header {
  padding: 4px 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.lang-menu-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #94a3b8);
}

.lang-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--text-main, #f8fafc);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.lang-option-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.lang-option-btn.active {
  background: rgba(99, 102, 241, 0.25);
  color: #ffffff;
  font-weight: 700;
}

.lang-option-btn .opt-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-option-btn .opt-name {
  flex: 1;
}

.lang-option-btn .opt-code {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #94a3b8);
}

.lang-option-btn.active .opt-code {
  background: rgba(99, 102, 241, 0.4);
  color: #e0e7ff;
}

/* ========================================================= */
/* LEGAL & DOCUMENTATION PAGES (TERMS, PRIVACY, SECURITY)   */
/* ========================================================= */

.legal-page-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 0 60px;
}

/* Topbar: Back to Studio & Breadcrumbs */
.legal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-legal-back:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateX(-3px);
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--text-main);
}

.breadcrumb-sep {
  font-size: 0.65rem;
  color: var(--text-subtle);
}

.breadcrumb-current {
  color: #67e8f9;
  font-weight: 600;
}

/* Legal Hero Header */
.legal-hero {
  background: linear-gradient(135deg, rgba(18, 22, 33, 0.85), rgba(12, 15, 24, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 36px 30px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan), var(--accent-purple));
}

.legal-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-full);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.legal-category-badge.badge-privacy {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.legal-category-badge.badge-security {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

.legal-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.legal-hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 900px;
  margin-bottom: 24px;
}

.legal-hero-lead strong {
  color: #f1f5f9;
}

.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legal-meta-item i {
  color: #67e8f9;
}

.legal-meta-sandbox i {
  color: var(--accent-amber);
}

/* Legal Document Switcher */
.legal-doc-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: rgba(18, 22, 33, 0.6);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.legal-doc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.legal-doc-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.legal-doc-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Legal Layout Grid */
.legal-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sticky Sidebar */
.legal-sidebar {
  position: relative;
}

.legal-sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-toc-card {
  background: rgba(18, 22, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.toc-header i {
  color: var(--primary);
  font-size: 0.9rem;
}

.toc-header h3 {
  font-size: 0.92rem;
  font-weight: 700;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1.35;
}

.toc-num {
  font-weight: 700;
  color: #67e8f9;
  font-size: 0.78rem;
}

.toc-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(3px);
}

/* Side Widgets */
.legal-side-widget {
  background: rgba(18, 22, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 18px;
}

.widget-icon {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.widget-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.widget-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.widget-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #67e8f9;
  text-decoration: none;
  transition: color 0.2s;
}

.widget-action-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.widget-sandbox {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(18, 22, 33, 0.8));
}

.widget-privacy-focus {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(18, 22, 33, 0.8));
}

/* Legal Content Body */
.legal-content-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-section {
  background: rgba(18, 22, 33, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 32px;
  scroll-margin-top: 100px;
  box-shadow: 0 8px 24px -5px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s;
}

.legal-section:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.section-badge-pill {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 10px;
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 20px 0 10px;
}

.legal-text-block {
  font-size: 0.93rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.legal-text-block p {
  margin-bottom: 14px;
}

.legal-text-block p strong {
  color: #f8fafc;
}

.inline-legal-link {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.inline-legal-link:hover {
  color: #a5f3fc;
}

/* Feature Grid inside Sections */
.legal-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0 22px;
}

.legal-feature-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.2s, border-color 0.2s;
}

.legal-feature-box:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.feature-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
}

/* Bullet Lists */
.legal-bullet-list {
  list-style: none;
  margin: 14px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.legal-bullet-list li i {
  margin-top: 3px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.tight-list {
  gap: 7px;
}

/* Callout Boxes */
.legal-callout {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.callout-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-content {
  flex: 1;
}

.callout-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.callout-info {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-left: 4px solid var(--accent-cyan);
}

.callout-info .callout-icon {
  color: var(--accent-cyan);
}

.callout-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 4px solid var(--accent-green);
}

.callout-success .callout-icon {
  color: var(--accent-green);
}

.callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 4px solid var(--accent-amber);
}

.callout-warning .callout-icon {
  color: var(--accent-amber);
}

.callout-security {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-left: 4px solid var(--accent-purple);
}

.callout-security .callout-icon {
  color: var(--accent-purple);
}

.callout-accent {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-left: 4px solid var(--primary);
}

.callout-accent .callout-icon {
  color: #a5b4fc;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.legal-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  color: #94a3b8;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-free {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: #6ee7b7;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-cost {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  color: #fde68a;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-sandbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  color: #fde68a;
  font-weight: 700;
  font-size: 0.78rem;
}

/* Contact Cards */
.legal-contact-card {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
}

.contact-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.contact-card-title i {
  color: var(--primary);
}

.contact-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.badge-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-contact i {
  color: #67e8f9;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 900px) {
  .legal-layout-grid {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    display: none;
  }

  .legal-hero {
    padding: 24px 20px;
  }

  .legal-hero-title {
    font-size: 1.65rem;
  }

  .legal-section {
    padding: 22px 18px;
  }
}





/* ============================================================ */
/* AI ALBUM COVER ART STUDIO & ID3 EMBEDDER STYLES              */
/* ============================================================ */

.ai-tool-card-cover {
  border-color: rgba(236, 72, 153, 0.25);
}

.ai-tool-card-cover:hover {
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 16px 40px -10px rgba(236, 72, 153, 0.35);
}

.ai-tool-card-cover:hover .ai-card-glow-bg {
  background: linear-gradient(90deg, #ec4899, #f472b6);
  box-shadow: 0 0 16px #ec4899;
}

.pink-glow {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, rgba(236, 72, 153, 0.05) 70%, transparent 100%);
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.btn-glow-pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.45);
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glow-pink:hover {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.65);
  transform: translateY(-2px);
}

.btn-outline-pink {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
}

.btn-outline-pink:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.7);
  color: #ffffff;
}

.hub-subview-badge-pink {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-block;
}

.step-pill-pink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #f472b6;
}

.step-num-pink {
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
}

.cover-studio-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .cover-studio-layout {
    grid-template-columns: 1fr;
  }
}

.cover-styles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .cover-styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cover-style-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-align: center;
}

.cover-style-chip:hover {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.35);
  transform: translateY(-2px);
}

.cover-style-chip.active {
  background: rgba(236, 72, 153, 0.15);
  border-color: #ec4899;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.cover-style-chip .chip-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.cover-style-chip .chip-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

.cover-options-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cover-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.preview-mode-switch-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-preview-mode {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-preview-mode:hover {
  color: #e2e8f0;
}

.btn-preview-mode.active {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Vinyl 3D Mockup Container */
.cover-stage-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  background: radial-gradient(circle, rgba(30, 20, 45, 0.6) 0%, rgba(10, 10, 15, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.vinyl-mockup-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc-layer {
  position: absolute;
  right: -55px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #111113;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.vinyl-mockup-wrapper:hover .vinyl-disc-layer {
  transform: translateX(45px) rotate(45deg);
}

.vinyl-disc-grooves {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    #18181b,
    #18181b 2px,
    #09090b 3px,
    #09090b 4px
  );
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.vinyl-center-label {
  position: relative;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: linear-gradient(135deg, #db2777 0%, #9333ea 100%);
  border: 3px solid #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.vinyl-center-label::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #09090b;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vinyl-label-title {
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.vinyl-label-rpm {
  font-size: 0.52rem;
  color: #fbcfe8;
  font-weight: 600;
  margin-top: 14px;
}

.vinyl-sleeve-jacket {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: -8px 12px 35px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 2;
  transition: transform 0.3s ease;
}

.sleeve-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sleeve-sheen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
}

/* Flat Mode Style */
.cover-stage-container.mode-flat .vinyl-disc-layer {
  display: none;
}

.cover-stage-container.mode-flat .vinyl-mockup-wrapper {
  width: 340px;
  height: 340px;
}

.cover-stage-container.mode-flat .vinyl-sleeve-jacket {
  width: 340px;
  height: 340px;
  border-radius: 8px;
}

.cover-status-badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.cover-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cover-spec-badge i {
  color: #ec4899;
}

.cover-download-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cover-dl-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.simulated-id3-card {
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
}

.id3-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.id3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}

.id3-cell {
  font-size: 0.78rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.id3-lbl {
  color: #64748b;
  margin-right: 4px;
}

.text-pink {
  color: #f472b6 !important;
}

/* Active Track Cover Thumb */
.active-track-cover-thumb-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(236, 72, 153, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.active-track-cover-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PORTAL WELCOME HERO (Top Showcase Banner)
   ========================================================================== */
.portal-welcome-hero {
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl, 16px);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.portal-welcome-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.portal-welcome-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-super-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #d8b4fe;
  margin-bottom: 12px;
}

.hero-super-pill .hero-sparkle {
  color: #c084fc;
  font-size: 0.85rem;
}

.hero-pill-badge {
  background: #a855f7;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.welcome-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-hero-subtitle {
  font-size: 0.96rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 18px 0;
  max-width: 800px;
}

.welcome-hero-subtitle strong {
  color: #f1f5f9;
}

.welcome-hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.hero-feature-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.text-amber { color: #f59e0b !important; }
.text-emerald { color: #10b981 !important; }
.text-purple { color: #a855f7 !important; }
.text-cyan { color: #06b6d4 !important; }


/* ==========================================================================
   SMART TRACK ACTION HUB (Post-Upload Universal Selector)
   ========================================================================== */
.smart-track-action-hub {
  margin: 20px 0;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-xl, 16px);
  padding: 22px 24px;
  box-shadow: 0 10px 30px -8px rgba(168, 85, 247, 0.15), 0 0 1px 1px rgba(168, 85, 247, 0.2);
  animation: fadeInDown 0.3s ease-out;
}

.smart-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.smart-hub-track-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.smart-hub-sparkle {
  font-size: 1.25rem;
  color: #a855f7;
  animation: pulseGlow 2s infinite ease-in-out;
}

.smart-hub-meta {
  display: flex;
  flex-direction: column;
}

.smart-hub-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a855f7;
  text-transform: uppercase;
}

.smart-hub-filename {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.smart-hub-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.smart-hub-prompt-row {
  margin-bottom: 16px;
}

.smart-hub-prompt-text {
  font-size: 0.88rem;
  color: #cbd5e1;
}

.smart-hub-prompt-text strong {
  color: #ffffff;
}

.smart-hub-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.smart-action-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.smart-action-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.smart-action-btn.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.act-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.act-converter-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.act-stems-icon { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.act-mastering-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.act-denoise-icon { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.act-midi-icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.act-cover-icon { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.act-chords-icon { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

.act-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.act-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.act-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
}

.act-chip {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.chip-green { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.chip-purple { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.chip-amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.4); }
.chip-cyan { background: rgba(6, 182, 212, 0.2); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.4); }
.chip-blue { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.chip-pink { background: rgba(236, 72, 153, 0.2); color: #f9a8d4; border: 1px solid rgba(236, 72, 153, 0.4); }


/* ==========================================================================
   PORTAL SHOWCASE & SOCIAL PROOF SECTION (Below-the-fold)
   ========================================================================== */
.portal-showcase-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px auto;
}

.showcase-super-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.showcase-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.showcase-subtitle {
  font-size: 0.98rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* 1. Creators Testimonials Grid */
.creators-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.creator-testimonial-card {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.creator-testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.creator-img-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.creator-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.creator-testimonial-card:hover .creator-photo {
  transform: scale(1.04);
}

.creator-role-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.creator-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.creator-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rating-stars {
  color: #fbbf24;
  font-size: 0.88rem;
  letter-spacing: 2px;
}

.rating-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
}

.track-count-badge {
  font-size: 0.7rem;
  color: #64748b;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 4px;
}

.creator-quote-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 10px 0;
}

.creator-quote-text {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 18px 0;
  flex: 1;
}

.creator-footer-meta {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.creator-author-info {
  display: flex;
  flex-direction: column;
}

.creator-author-info strong {
  font-size: 0.88rem;
  color: #ffffff;
}

.creator-author-info span {
  font-size: 0.74rem;
  color: #64748b;
}

.creator-tools-used {
  display: flex;
  gap: 6px;
}

.tool-tag {
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 2. Interactive Audio Demos Box */
.showcase-audio-demos-box {
  background: linear-gradient(145deg, rgba(24, 24, 38, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-xl, 16px);
  padding: 28px;
  margin-bottom: 48px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.demos-header {
  margin-bottom: 22px;
}

.demos-pill {
  display: inline-block;
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.demos-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.demos-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.demo-card {
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.demo-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.demo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.purple-bg { background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%); }
.amber-bg { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.cyan-bg { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }

.demo-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.demo-tech {
  font-size: 0.72rem;
  color: #64748b;
}

.demo-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 14px 0;
  flex: 1;
}

.demo-player-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
}

.demo-btn-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.btn-demo-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-demo-switch:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.btn-demo-switch.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
  color: #ffffff;
}

.btn-demo-switch.playing {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.demo-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.demo-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  transition: width 0.1s linear;
}

.demo-status-text {
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
}

/* 3. The 4 Core Pillars */
.showcase-pillars-section {
  margin-bottom: 48px;
}

.pillars-title-row {
  text-align: center;
  margin-bottom: 28px;
}

.pillars-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f59e0b;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.pillars-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pillar-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl, 16px);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.pillar-card:hover {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #38bdf8;
  margin-bottom: 14px;
}

.pillar-heading {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 8px 0;
}

.pillar-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 14px 0;
  flex: 1;
}

.pillar-highlight {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  align-self: flex-start;
}

/* 4. Stats Counter Bar */
.showcase-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
}

/* 5. Bottom Sticky CTA Banner */
.showcase-bottom-cta {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.cta-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 250px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-sparkle-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.cta-headline {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.cta-subheadline {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

.btn-cta-scroll {
  padding: 14px 28px;
  font-size: 0.96rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS FOR SHOWCASE & SMART HUB
   ========================================================================== */
@media (max-width: 1024px) {
  .creators-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .demos-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portal-welcome-hero {
    padding: 20px;
  }
  .welcome-hero-title {
    font-size: 1.45rem;
  }
  .creators-testimonials-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .stat-divider {
    display: none;
  }
  .showcase-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .cta-inner-content {
    flex-direction: column;
    text-align: center;
  }
  .btn-cta-scroll {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================ */
/* AI KEY, BPM & CHORD PROGRESSION STUDIO STYLES                */
/* ============================================================ */

.chip-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.hub-subview-badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.step-pill-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.step-num-blue {
  background: #3b82f6;
  color: #ffffff;
}

.session-badge-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.btn-browse-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.4);
}

.btn-browse-blue:hover {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.6);
}

.btn-glow-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.45);
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glow-blue:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.65);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa;
}

.btn-outline-blue:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #60a5fa;
  color: #ffffff;
}

.progress-bar-blue {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #38bdf8);
}

/* Chords Settings Grid */
.chords-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 18px 0;
}

@media (max-width: 768px) {
  .chords-settings-grid {
    grid-template-columns: 1fr;
  }
}

.chords-launch-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chords-cost-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-md, 10px);
  text-align: center;
  min-width: 68px;
}

/* Spinner */
.chords-spinner-wrap {
  text-align: center;
  padding: 40px 20px;
}

.chords-neural-loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neural-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: rotateRings 2s linear infinite;
}

.ring-1 {
  width: 100%;
  height: 100%;
  border-top-color: #3b82f6;
  border-bottom-color: #60a5fa;
}

.ring-2 {
  width: 75%;
  height: 75%;
  border-left-color: #818cf8;
  border-right-color: #a855f7;
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.ring-3 {
  width: 50%;
  height: 50%;
  border-top-color: #06b6d4;
  border-bottom-color: #3b82f6;
  animation-duration: 1s;
}

@keyframes rotateRings {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.neural-center-icon {
  font-size: 24px;
  position: relative;
  z-index: 2;
  animation: pulseIcon 1.5s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Chords KPI Grid */
.chords-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .chords-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .chords-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.chords-kpi-card {
  background: rgba(18, 24, 38, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
}

.chords-kpi-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.kpi-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.blue-kpi {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.purple-kpi {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.emerald-kpi {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.amber-kpi {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.kpi-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.kpi-val-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.bpm-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
  animation: pulseDot 0.5s ease-in-out infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 1; }
}

.kpi-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Progression Summary Strip */
.progression-summary-strip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
}

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

.strip-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
}

.strip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progression-chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.chord-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 0.95rem;
  color: #93c5fd;
  transition: all 0.2s ease;
  cursor: pointer;
}

.chord-chip:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.chord-chip-roman {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

.chord-arrow {
  color: #64748b;
  font-size: 0.85rem;
}

/* Integrated Transport Box */
.chords-transport-box {
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 22px;
}

.transport-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chords-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chords-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.7);
}

.transport-time-group {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.transport-scrubber-wrap {
  flex: 1;
}

.chords-scrubber-range {
  width: 100%;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* Active Chord Spotlight */
.active-chord-spotlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 26px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.spotlight-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60a5fa;
  display: block;
  margin-bottom: 4px;
}

.spotlight-symbol-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.spotlight-symbol {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
  margin: 0;
}

.spotlight-roman {
  font-size: 1.4rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 2px 10px;
  border-radius: 6px;
}

.spotlight-it {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: 4px;
  display: block;
}

.spotlight-right {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.spotlight-meta-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.spotlight-notes-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.note-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
}

.spotlight-timing-text {
  font-family: var(--font-mono, monospace);
  font-size: 0.9rem;
  color: #e2e8f0;
}

/* Synchronized Timeline Grid */
.chord-timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.chord-timeline-header-row h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-hint {
  font-size: 0.8rem;
  color: #94a3b8;
}

.chord-timeline-scroll-container {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.chord-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.chord-block {
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.chord-block:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.chord-block.active {
  border-color: #3b82f6;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(30, 41, 59, 0.9) 100%);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.45);
  transform: scale(1.03);
}

.chord-block.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #60a5fa;
  box-shadow: 0 0 10px #60a5fa;
}

.chord-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #94a3b8;
}

.chord-block-bar {
  font-weight: 700;
  color: #cbd5e1;
}

.chord-block-time {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: #64748b;
}

.chord-block-symbol {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px 0;
  letter-spacing: -0.02em;
}

.chord-block.active .chord-block-symbol {
  color: #93c5fd;
  text-shadow: 0 0 12px rgba(147, 197, 253, 0.8);
}

.chord-block-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #94a3b8;
}

.chord-block-roman {
  font-weight: 600;
  color: #818cf8;
}

.chord-block-notes {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


