@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;500;600;700;800;900&family=Syne:wght@700;800&display=swap');

/* ==========================================================================
   BEATUNZIP AI — LUXURY CRIMSON & OBSIDIAN DESIGN SYSTEM
   Inspired by High-End Audio Hardware & Cyberpunk Music Dashboards
   ========================================================================== */

:root {
  /* Color Palette (Reference Swatch Image 3) */
  --bg-void: #060608;
  --bg-deep: #0a0a0e;
  --bg-surface: #101016;
  --bg-elevated: #161620;
  --bg-card: rgba(18, 18, 26, 0.85);
  --bg-card-hover: rgba(28, 28, 40, 0.95);

  /* Crimson & Scarlet Accents */
  --crimson-darkest: #1a0306;
  --crimson-maroon: #38050c;
  --crimson-deep: #75060e;
  --crimson-scarlet: #c80b16;
  --crimson-vivid: #e50914;
  --crimson-neon: #ff1826;
  --crimson-glow: rgba(255, 24, 38, 0.35);
  --crimson-glow-strong: rgba(255, 24, 38, 0.65);

  /* Subtle Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-crimson: rgba(229, 9, 20, 0.35);
  --border-crimson-bright: rgba(255, 24, 38, 0.7);

  /* Typography Colors */
  --text-pure: #ffffff;
  --text-main: #f0f0f5;
  --text-secondary: #a0a0b2;
  --text-muted: #6a6a7c;
  --text-crimson: #ff3342;

  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-brutal: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-void);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(117, 6, 14, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(229, 9, 20, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(26, 3, 6, 0.8) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 96px; /* Space for bottom transport player */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #252532;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--crimson-scarlet);
}

/* --------------------------------------------------------------------------
   DASHBOARD SHELL: SIDEBAR + MAIN CONTENT
   -------------------------------------------------------------------------- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar (BetOnline Dark Aesthetic with Luminous Red Edge) */
.sidebar {
  width: 270px;
  background: #08080c;
  border-right: 2px solid #e50914;
  box-shadow: 4px 0 24px rgba(229, 9, 20, 0.45);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  padding: 1.25rem 1rem;
  transition: var(--transition-normal);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.75rem 1.35rem 0.75rem;
  border-bottom: 1px solid rgba(229, 9, 20, 0.35);
  margin-bottom: 1.25rem;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.25), 0 0 25px rgba(229, 9, 20, 0.3);
}

.brand-ai-badge {
  background: linear-gradient(135deg, #e50914 0%, #75060e 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: #ff3342;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.2rem;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

/* Sidebar Menu Groups */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-group-title {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0 0.75rem 0.35rem 0.75rem;
  font-weight: 700;
}

.nav-group-title.glowing-title {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ff4d5a;
  padding: 0 0.75rem 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-shadow: 0 0 6px rgba(229, 9, 20, 0.4);
}

.nav-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff1826;
  box-shadow: 0 0 8px #ff1826;
  display: inline-block;
  flex-shrink: 0;
  will-change: transform, opacity;
  animation: navLedPulse 1.8s infinite ease-in-out;
}

@keyframes navLedPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.nav-item-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.nav-item-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-pure);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Active Nav Tab with Glowing Crimson Gradient */
.nav-item-btn.active {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.3) 0%, rgba(117, 6, 14, 0.12) 100%);
  color: var(--text-pure);
  border-left: 3.5px solid var(--crimson-neon);
  box-shadow: inset 0 0 18px rgba(229, 9, 20, 0.22), 0 0 15px rgba(229, 9, 20, 0.15);
  font-weight: 600;
}

.nav-item-btn.active svg {
  stroke: var(--crimson-neon);
  filter: drop-shadow(0 0 8px var(--crimson-neon));
}

.nav-badge-pill {
  margin-left: auto;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(229, 9, 20, 0.2);
  color: var(--crimson-neon);
  border: 1px solid var(--border-crimson);
}

/* Sidebar Footer & Neural Status */
.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.neural-status-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson-neon);
  box-shadow: 0 0 10px var(--crimson-neon);
  animation: pulse-glow 1.8s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.neural-status-text {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-main);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   MAIN VIEWPORT & TOPBAR
   -------------------------------------------------------------------------- */
.main-wrapper {
  margin-left: 270px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 80;
  background: #08080c;
  border-bottom: 2px solid #e50914;
  box-shadow: 0 4px 24px rgba(229, 9, 20, 0.45);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem;
}

.topbar-search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.15rem;
  width: 360px;
  transition: var(--transition-fast);
}

.topbar-search-box:focus-within {
  border-color: var(--crimson-neon);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.25);
}

.topbar-search-box svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
}

.topbar-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-pure);
  font-size: 0.85rem;
  font-family: var(--font-body);
  width: 100%;
}

.topbar-search-box input::placeholder {
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.btn-crimson {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--crimson-vivid), var(--crimson-deep));
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 18px var(--crimson-glow);
  text-decoration: none;
}

.btn-crimson:hover {
  background: linear-gradient(135deg, var(--crimson-neon), var(--crimson-scarlet));
  box-shadow: 0 0 25px var(--crimson-glow-strong);
  transform: translateY(-1px);
}

/* --- VIP Admin Portal Dynamic Top-Bar Badge --- */
.topbar-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(168, 85, 247, 0.28));
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, 0.65);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
  text-decoration: none;
}

.topbar-admin-badge:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.55));
  color: #ffffff;
  border-color: rgba(192, 132, 252, 0.95);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.7);
  transform: translateY(-1px);
}

.topbar-admin-badge svg {
  color: #c084fc;
  filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.8));
}

.topbar-admin-badge:hover svg {
  color: #ffffff;
}

.dashboard-locked-btn {
  transition: all 0.2s ease !important;
}

.dashboard-locked-btn:hover {
  background: linear-gradient(135deg, #ff1826 0%, #c80b16 100%) !important;
  box-shadow: 0 6px 25px rgba(229, 9, 20, 0.5) !important;
  transform: translateY(-1px);
}

.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.user-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--crimson-neon);
}

.user-info-mini {
  display: flex;
  flex-direction: column;
}

.user-name-mini {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-pure);
  line-height: 1.1;
}

.user-role-mini {
  font-size: 0.65rem;
  color: var(--crimson-neon);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   MULTI-VIEW CONTENT CONTAINER
   -------------------------------------------------------------------------- */
.view-content-area {
  padding: 2rem;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}

.spa-view {
  display: none;
}

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

/* --------------------------------------------------------------------------
   PAGE 1: STUDIO HOME (HERO + AUDIO ANALYZER + HIGH END VISUALS)
   -------------------------------------------------------------------------- */

/* Hero Showcase Card */
.studio-hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-crimson);
  margin-bottom: 2rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  background-color: #07070a;
}

.hero-bg-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.15) brightness(0.9);
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(6, 6, 8, 0.95) 0%, rgba(6, 6, 8, 0.75) 50%, rgba(117, 6, 14, 0.3) 100%);
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  padding: 2.5rem 3rem;
  max-width: 720px;
}

.hero-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid var(--crimson-neon);
  color: var(--crimson-neon);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-content-wrap h2 {
  font-family: var(--font-brutal);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-pure);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.hero-content-wrap p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-stats-row {
  display: flex;
  gap: 2rem;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-pure);
}

.hero-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.hero-ext-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #12121c;
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ffcdd2;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(229, 9, 20, 0.08);
  transition: var(--transition-fast);
}

.hero-ext-chip:hover {
  background: rgba(229, 9, 20, 0.22);
  border-color: var(--crimson-neon);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.45);
  transform: translateY(-2px);
}

/* Audio Ingestion Grid */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dropzone-card {
  background: var(--bg-card);
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dropzone-card:hover, .dropzone-card.dragover {
  border-color: var(--crimson-neon);
  background: rgba(229, 9, 20, 0.05);
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.18);
}

.drop-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 24, 38, 0.1);
  border: 1px solid var(--border-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.dropzone-card:hover .drop-icon-circle {
  background: var(--crimson-vivid);
  transform: scale(1.08);
}

.drop-icon-circle svg {
  width: 28px;
  height: 28px;
  stroke: var(--crimson-neon);
  fill: none;
}

.dropzone-card:hover .drop-icon-circle svg {
  stroke: #ffffff;
}

.drop-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.35rem;
}

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

/* Local Direct File / Path Input Card */
.direct-path-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.card-title-row svg {
  width: 20px;
  height: 20px;
  stroke: var(--crimson-neon);
}

.card-title-row h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-pure);
}

.path-input-group {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.path-input-group input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.path-input-group input:focus {
  outline: none;
  border-color: var(--crimson-neon);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

.demo-chips-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.demo-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-track {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip-track:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: var(--crimson-neon);
  color: var(--text-pure);
}

/* --------------------------------------------------------------------------
   HIGH END VISUAL ANALYSIS DASHBOARD (POST DETECTION)
   -------------------------------------------------------------------------- */
.analysis-dashboard {
  background: var(--bg-surface);
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.dash-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.dash-track-title-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.track-vinyl-cover {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--crimson-neon);
  box-shadow: 0 0 15px var(--crimson-glow);
}

.dash-track-meta h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-pure);
}

.dash-track-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dash-actions-group {
  display: flex;
  gap: 0.75rem;
}

/* Primary Intelligence Metric Cards */
.metrics-quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--crimson-scarlet);
}

.metric-lbl {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.metric-val-big {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.05;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.metric-val-big.crimson-glow {
  color: var(--crimson-neon);
  text-shadow: 0 0 10px rgba(255, 24, 38, 0.4);
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Real-time Interactive Waveform Canvas */
.waveform-visualizer-container {
  background: #060609;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.waveform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.waveform-header h4 {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--text-pure);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#waveformCanvas {
  width: 100%;
  height: 140px;
  display: block;
  border-radius: var(--radius-sm);
  background: #08080c;
}

/* Dynamic Tempo Map Timeline Section */
.tempo-map-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.tempo-timeline-track {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.75rem 0;
}

.timeline-section-pill {
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  min-width: 160px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.timeline-section-pill:hover, .timeline-section-pill.active {
  border-color: var(--crimson-neon);
  background: rgba(229, 9, 20, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

.pill-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--crimson-neon);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.pill-bpm {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-pure);
}

.pill-time {
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 500;
  font-family: var(--font-mono);
}

/* 2-Track Polyphonic Chord & Bassline Visualizer */
.chord-visualizer-container {
  background: var(--bg-card);
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.chord-progression-ribbon {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* DAW Studio Section Rack & Interactive Chord Buttons */
.chord-progression-sections-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.chord-section-rack {
  background: rgba(14, 15, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chord-section-rack:hover {
  border-color: rgba(229, 9, 20, 0.3);
}

.chord-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chord-section-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chord-section-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.chord-section-timerange {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  letter-spacing: 0.5px;
}

.chord-section-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* DAW Studio Hardware Chord Button */
.daw-chord-btn {
  background: linear-gradient(180deg, #181924 0%, #0d0e14 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 125px;
  text-align: left;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.daw-chord-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.daw-chord-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.daw-chord-btn.active {
  background: linear-gradient(180deg, #241014 0%, #150608 100%);
  border-color: #ff1826;
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.65), inset 0 0 10px rgba(229, 9, 20, 0.3);
  transform: scale(1.03);
}

.daw-chord-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.daw-chord-name {
  font-family: var(--font-brutal);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 2px 0;
}

.daw-chord-btn.active .daw-chord-name {
  color: #ff4d5a;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
}

.daw-chord-bass {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #ff4d5a;
}

.daw-chord-triad {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #fbbf24;
}

/* Modal Scale Pill */
.modal-scale-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.modal-scale-pill:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

/* Modal Section Chord Button */
.modal-section-chord-btn {
  background: linear-gradient(180deg, #181924 0%, #0d0e14 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-section-chord-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 6px 16px rgba(229, 9, 20, 0.25);
}

.modal-section-chord-btn:active {
  transform: translateY(1px);
}

.modal-section-chord-btn.active {
  background: linear-gradient(180deg, #2a0f14 0%, #150608 100%);
  border-color: #ff1826;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.7), inset 0 0 10px rgba(229, 9, 20, 0.35);
  transform: scale(1.02);
}

.modal-section-chord-btn.active .modal-chord-name {
  color: #ff4d5a;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
}

/* Metronome Beat Indicator Pill */
.metro-beat-pill {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  transition: all 0.08s ease;
}

.metro-beat-pill.active-downbeat {
  background: #ff1826 !important;
  border-color: #ff4d5a !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(255, 24, 38, 0.95);
  transform: scale(1.18);
}

.metro-beat-pill.active-subaccent {
  background: #f59e0b !important;
  border-color: #fbbf24 !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.95);
  transform: scale(1.16);
}

.metro-beat-pill.active-offbeat {
  background: #10b981 !important;
  border-color: #34d399 !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.9);
  transform: scale(1.12);
}

/* --------------------------------------------------------------------------
   PAGE 2: BULK BEAT MODE (SORT BEATS TABLE - EXACT REFERENCE IMAGE 1)
   -------------------------------------------------------------------------- */
.bulk-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.bulk-header-row h2 {
  font-family: var(--font-brutal);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-pure);
}

.bulk-cart-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--crimson-vivid);
  color: #ffffff;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Filter Bar (Category, Genre, Tags, Clear) */
.filter-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.filter-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #181822;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn-pill:hover, .filter-btn-pill.active {
  background: var(--crimson-maroon);
  border-color: var(--crimson-neon);
  color: var(--text-pure);
}

.filter-btn-clear {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  cursor: pointer;
}

.filter-btn-clear:hover {
  color: var(--text-pure);
  border-color: var(--text-muted);
}

/* High-Density Beats Table (Reference Image 1) */
.sort-beats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.sort-beats-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-subtle);
}

.sort-beats-table td {
  padding: 0.95rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.sort-beats-table tr {
  transition: var(--transition-fast);
}

.sort-beats-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Active Row Highlight: Solid Vibrant Crimson Red (Exact Match Image 1) */
.sort-beats-table tr.playing-active-row {
  background: #c80b16 !important;
  color: #ffffff !important;
}

.sort-beats-table tr.playing-active-row td {
  color: #ffffff !important;
  border-bottom-color: #80000a;
}

.sort-beats-table tr.playing-active-row .track-tag-pill {
  background: rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.sort-beats-table tr.playing-active-row .btn-table-action {
  background: #000000 !important;
  color: #ffffff !important;
}

.cell-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.table-vinyl-thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}

.table-title-bold {
  font-weight: 700;
  color: var(--text-pure);
  font-size: 0.9rem;
}

.table-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-pure);
  transition: var(--transition-fast);
}

.table-play-btn:hover {
  transform: scale(1.15);
  color: var(--crimson-neon);
}

.track-tag-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: #14141c;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  margin-right: 0.35rem;
}

.btn-table-action {
  background: var(--crimson-vivid);
  color: #ffffff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.btn-table-action:hover {
  background: var(--crimson-neon);
}

/* Corrupt Track Row & Skipped Error Display */
.sort-beats-table tr.corrupt-track-row {
  background: rgba(220, 38, 38, 0.06) !important;
  border-left: 3px solid #ef4444;
}

.sort-beats-table tr.corrupt-track-row td {
  color: var(--text-muted);
}

.corrupt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}

.corrupt-badge:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.status-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-dot-pulse.corrupt {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.btn-diag-issue {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
}

.btn-diag-issue:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Bulk Ingestion Panel */
.bulk-ingest-panel {
  background: #0b0b10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.bulk-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: var(--transition-normal);
}

.bulk-drop-zone:hover, .bulk-drop-zone.dragover {
  border-color: var(--crimson-neon);
  background: rgba(229, 9, 20, 0.05);
}

/* Batch Summary Stats Chips */
.batch-summary-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.batch-chip-card {
  background: #0e0e14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.batch-chip-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.batch-chip-val {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  margin-top: 0.25rem;
}

/* Animated Neon Red Progress Bar */
.batch-progress-wrap {
  margin-top: 1rem;
  background: #14141e;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.batch-progress-bar-fill {
  background: linear-gradient(90deg, #c80b16, #ff2a38);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

/* Diagnostic Modal */
.diag-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.diag-modal-backdrop.active {
  display: flex;
}

.diag-modal-box {
  background: #0e0e14;
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(239, 68, 68, 0.2);
}


/* --------------------------------------------------------------------------
   PAGE 5: PRICING & LICENSING (EXACT MATCH REFERENCE IMAGE 5)
   -------------------------------------------------------------------------- */
.pricing-page-section {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 4rem 2rem;
  border: 1px solid var(--border-crimson);
  background-color: #060609;
}

.pricing-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: contrast(1.1) brightness(0.7);
}

.pricing-overlay-shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 6, 9, 0.4) 0%, rgba(6, 6, 9, 0.95) 100%);
}

.pricing-header-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.pricing-script-title {
  font-family: var(--font-brutal);
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  text-shadow: 0 0 25px rgba(229, 9, 20, 0.6);
}

.pricing-header-wrap p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Pricing Toggle Switch (Monthly vs Lifetime) */
.pricing-toggle-wrap {
  display: inline-flex;
  background: rgba(14, 14, 22, 0.95);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  margin-top: 1.5rem;
  gap: 0.4rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.pricing-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.pricing-toggle-btn:hover {
  color: #fff;
}

.pricing-toggle-btn.active {
  background: var(--crimson-neon);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.6);
}

.pricing-save-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: #facc15;
  color: #000;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   HIGH-END 6-TIER (3:3) PROFESSIONAL PRICING DESIGN
   ========================================================================== */
.pricing-quad-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.75rem !important;
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 1080px) {
  .pricing-quad-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 680px) {
  .pricing-quad-cards {
    grid-template-columns: 1fr !important;
  }
}

.pricing-card {
  position: relative;
  background: linear-gradient(165deg, rgba(22, 25, 36, 0.95) 0%, rgba(12, 14, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 16px 45px rgba(229, 9, 20, 0.25);
}

/* Featured / Flagship Cards (e.g. Starter Beatmaker & Studio Pro 720) */
.pricing-card.featured-card {
  background: linear-gradient(165deg, rgba(32, 20, 26, 0.98) 0%, rgba(17, 13, 18, 0.98) 100%);
  border: 1.5px solid #ff2b38;
  box-shadow: 0 0 35px rgba(229, 9, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 2;
  transform: none;
}

.pricing-card.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 50px rgba(229, 9, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #e50914, #ff3848);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.5);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pricing-minutes-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #00f2fe;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
  width: fit-content;
  letter-spacing: 0.3px;
}

.pricing-card.featured-card .pricing-minutes-pill {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
  color: #ff6b75;
}

.pricing-tier-name {
  font-family: var(--font-display, -apple-system, sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.3rem 0;
  letter-spacing: -0.3px;
}

.pricing-delivery-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 1.1rem;
  min-height: 2.2em;
  line-height: 1.4;
}

.pricing-price-big {
  font-family: var(--font-display, -apple-system, sans-serif);
  font-size: 2.6rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15 !important;
  margin-top: 0.25rem;
  margin-bottom: 0.35rem !important;
  letter-spacing: -1px;
}

.pricing-period-sub {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  font-weight: 500;
  margin-top: 0 !important;
  margin-bottom: 0.35rem !important;
  line-height: 1.3 !important;
}

.pricing-conversion-note {
  font-size: 0.74rem;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.25rem;
  min-height: 1.3em;
  line-height: 1.3;
}

/* Pricing Currency Switcher Bar */
.pricing-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 2rem 0;
}

.currency-selector-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 30px;
}

.currency-selector-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.currency-select-dropdown {
  background: #12141e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.currency-select-dropdown:hover, .currency-select-dropdown:focus {
  border-color: #e50914;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 1.75rem 0;
  padding: 1.1rem 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.81rem;
  line-height: 1.42;
  color: #cbd5e1;
}

.pricing-features-list li svg {
  width: 14px;
  height: 14px;
  stroke: #10b981;
  stroke-width: 2.5;
  flex-shrink: 0;
  margin-top: 2.5px;
}

.btn-pricing-cta {
  width: 100%;
  margin-top: auto;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-pricing-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured-card .btn-pricing-cta {
  background: linear-gradient(135deg, #e50914 0%, #ff2b38 100%);
  border-color: #ff4d58;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.45);
}

.pricing-card.featured-card .btn-pricing-cta:hover {
  background: linear-gradient(135deg, #ff1f2d 0%, #ff424e 100%);
  box-shadow: 0 6px 25px rgba(229, 9, 20, 0.65);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   PAGE 4: ABOUT US & NEURAL ENGINE
   -------------------------------------------------------------------------- */
.about-hero-box {
  background: var(--bg-card);
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 2rem;
}

.about-hero-box h2 {
  font-family: var(--font-brutal);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 1rem;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.about-feat-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-pure);
  margin: 0.85rem 0 0.5rem 0;
}

.about-feat-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   PAGE 6: EXECUTIVE STUDIO PROFILE & TELEMETRY DASHBOARD
   -------------------------------------------------------------------------- */
.profile-dashboard-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

/* Executive Header Banner */
.profile-hero-banner {
  background: linear-gradient(135deg, rgba(22, 22, 32, 0.85) 0%, rgba(14, 14, 20, 0.95) 100%);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.profile-avatar-container {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.profile-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--crimson-neon);
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.4);
}

.avatar-edit-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--crimson-neon);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-edit-overlay:hover {
  background: var(--crimson-neon);
  transform: scale(1.1);
}

.profile-identity-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.profile-alias-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
}

.profile-contact-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.profile-email-badge {
  color: #e4e4e7;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

.profile-hero-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-telemetry-pill {
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 135px;
}

.telemetry-pill-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-tier-tag {
  color: var(--crimson-neon);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.days-remaining-pill {
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.days-remaining-pill strong {
  font-size: 0.95rem;
  color: #7dd3fc;
}

.quota-pill {
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Dashboard Tab Bar */
.profile-dash-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

.prof-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.prof-tab-btn i {
  font-size: 1.1rem;
}

.prof-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.prof-tab-btn.active {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.45);
  color: #fff;
  box-shadow: 0 2px 12px rgba(229, 9, 20, 0.2);
}

/* Tab Panels */
.prof-tab-panel {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.prof-tab-panel.active {
  display: block;
}

/* KPI Telemetry Grid */
.prof-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.prof-telemetry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.prof-telemetry-card:hover {
  border-color: rgba(229, 9, 20, 0.35);
  transform: translateY(-2px);
}

.card-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card-icon-badge.crimson-glow {
  background: rgba(229, 9, 20, 0.15);
  color: var(--crimson-neon);
  border: 1px solid rgba(229, 9, 20, 0.3);
}

.card-icon-badge.cyan-glow {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

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

.card-head-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-head-title h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.badge-status-active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.badge-status-neutral {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.badge-status-bonus {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.card-metric-highlight {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.metric-number-huge {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Progress & Meter Bars */
.expiration-progress-wrap, .quota-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.expiration-progress-bar, .quota-meter-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.expiration-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.quota-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #e50914, #ff334b);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.expiration-labels, .quota-meter-sublabels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.billing-frequency-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  color: #e4e4e7;
}

.bonus-details-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.bonus-stat-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.bonus-stat-line strong {
  font-weight: 600;
  color: #fff;
}

.card-actions-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-crimson-sm {
  background: var(--crimson-neon);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-crimson-sm:hover {
  background: #ff1f2f;
  transform: translateY(-1px);
}

.btn-secondary-dark-sm {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-secondary-dark-sm:hover {
  background: rgba(255, 255, 255, 0.15);
}

.quota-info-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Tab Panels General Card */
.prof-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.card-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.card-section-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.card-section-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Forms & Inputs */
.identity-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .identity-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-item.full-width {
  grid-column: 1 / -1;
}

.form-group-item label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.verified-tag {
  color: #34d399;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.prof-text-input, .prof-textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-sans);
}

.prof-text-input:focus, .prof-textarea:focus {
  outline: none;
  border-color: var(--crimson-neon);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

/* Quick Avatar Selector */
.avatar-selection-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-sel-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: block;
}

.avatar-choices-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.avatar-choice-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-choice-item img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
}

.avatar-choice-item span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.avatar-choice-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.avatar-choice-item.active {
  border-color: var(--crimson-neon);
  background: rgba(229, 9, 20, 0.1);
}

.avatar-choice-item.active img {
  border-color: var(--crimson-neon);
}

.avatar-choice-item.active span {
  color: #fff;
}

/* Purchase Orders & Invoicing Table */
.orders-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(10, 10, 15, 0.5);
  margin-bottom: 1.5rem;
}

.composer-orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.composer-orders-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.composer-orders-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e4e4e7;
  vertical-align: middle;
}

.composer-orders-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.order-invoice-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--crimson-neon);
}

.order-status-pill {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

.order-status-pill.paid {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn-invoice-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-invoice-action:hover {
  background: var(--crimson-neon);
  border-color: var(--crimson-neon);
}

.invoicing-legal-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.seal-brand-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Security & Credentials */
.security-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.security-form-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pass-strength-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-top: 0.4rem;
  overflow: hidden;
}

.pass-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.pass-strength-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.reset-service-box {
  background: rgba(10, 10, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.registered-email-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.session-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   STICKY BOTTOM AUDIO TRANSPORT PLAYER (EXACT MATCH REFERENCE IMAGE 1)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   STICKY BOTTOM AUDIO TRANSPORT PLAYER (EXACT MATCH REFERENCE IMAGE 1)
    -------------------------------------------------------------------------- */
.bottom-transport-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 94px;
  background: linear-gradient(180deg, #101018 0%, #08080d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Floating DAW Transport Toast HUD */
.transport-toast {
  position: fixed;
  bottom: 106px;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.96);
  background: rgba(14, 14, 22, 0.92);
  border: 1px solid var(--crimson-vivid);
  padding: 8px 18px;
  border-radius: 30px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 105;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(229, 9, 20, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.transport-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.transport-toast .toast-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson-neon);
  box-shadow: 0 0 10px var(--crimson-neon);
}

/* Left Track Info */
.transport-track-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 290px;
}

.transport-thumb-container {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.transport-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.35);
}

.transport-thumb-ring {
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: all 0.3s ease;
}
.bottom-transport-bar.playing .transport-thumb-ring {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.transport-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 3px;
}

.transport-meta-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.transport-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.transport-badge-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(229, 9, 20, 0.5);
  color: #ff4d5a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.transport-meta-sub {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.transport-live-bpm {
  font-size: 0.70rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Center Controls & Scrubhead */
.transport-controls-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  max-width: 680px;
}

.transport-buttons-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

/* Standard Colorful DAW Hardware Keycap Buttons */
.btn-transport-daw {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #12121b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn-transport-daw:hover {
  transform: translateY(-2px) scale(1.06);
}
.btn-transport-daw:active {
  transform: translateY(0) scale(0.94);
}
.btn-daw-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}

/* 1. SHUFFLE - Warm Sunset Amber */
.btn-daw-shuffle {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}
.btn-daw-shuffle:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}
.btn-daw-shuffle.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32) 0%, rgba(217, 119, 6, 0.45) 100%);
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.75), inset 0 0 8px rgba(245, 158, 11, 0.4);
}
.btn-daw-shuffle.active .btn-daw-indicator {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

/* 2. PREV & NEXT - Ice Sky Cyan */
.btn-daw-prev, .btn-daw-next {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}
.btn-daw-prev:hover, .btn-daw-next:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}
.btn-daw-prev:active, .btn-daw-next:active {
  background: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.7);
}

/* 3. STOP - Neon Coral */
.btn-daw-stop {
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.25);
}
.btn-daw-stop:hover {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.4);
}
.btn-daw-stop:active {
  background: rgba(244, 63, 94, 0.3);
  box-shadow: 0 0 22px rgba(244, 63, 94, 0.7);
}

/* 4. MAIN HERO PLAY/PAUSE (Hyper-Crimson Core with Cyan-White Ring) */
.btn-transport-play-hero {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  margin: 0 2px;
}
.btn-transport-play-hero:hover {
  transform: scale(1.1);
}
.btn-transport-play-hero:active {
  transform: scale(0.94);
}

.play-hero-halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.7) 0%, rgba(229, 9, 20, 0) 72%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0.85;
}
.play-hero-ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85), inset 0 0 8px rgba(56, 189, 248, 0.45);
  pointer-events: none;
  transition: all 0.3s ease;
}
.play-hero-core {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff2e4d 0%, #e50914 65%, #99000a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.9), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}
.play-hero-core svg {
  margin-left: 2px;
}
.btn-transport-play-hero.playing .play-hero-core svg {
  margin-left: 0;
}
.btn-transport-play-hero.playing .play-hero-ring {
  border-color: #ffffff;
  box-shadow: 0 0 16px #ffffff, 0 0 28px rgba(56, 189, 248, 0.95);
  animation: heroRingPulse 2s ease-in-out infinite alternate;
}
.btn-transport-play-hero.playing .play-hero-halo {
  animation: heroHaloBreathing 1.8s ease-in-out infinite alternate;
}
@keyframes heroRingPulse {
  0% { transform: scale(1); box-shadow: 0 0 12px #ffffff, 0 0 20px rgba(56, 189, 248, 0.8); }
  100% { transform: scale(1.06); box-shadow: 0 0 20px #ffffff, 0 0 32px rgba(56, 189, 248, 1); }
}
@keyframes heroHaloBreathing {
  0% { opacity: 0.7; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.18); }
}

/* 5. REPEAT / LOOP - Vivid Emerald Green */
.btn-daw-repeat {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}
.btn-daw-repeat:hover {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}
.btn-daw-repeat.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.32) 0%, rgba(5, 150, 105, 0.45) 100%);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.75), inset 0 0 8px rgba(16, 185, 129, 0.4);
}
.btn-daw-repeat.active .btn-daw-indicator {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

/* 6. METRONOME - Amethyst Violet (With Rhythm Pulse) */
.btn-daw-metro {
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.25);
}
.btn-daw-metro:hover {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}
.btn-daw-metro.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(109, 40, 217, 0.5) 100%);
  border-color: #c084fc;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.75), inset 0 0 8px rgba(139, 92, 246, 0.4);
}
.btn-daw-metro.active .btn-daw-indicator {
  background: #c084fc;
  box-shadow: 0 0 8px #c084fc;
}
.btn-daw-metro.beat-flash-downbeat {
  background: #e50914 !important;
  color: #ffffff !important;
  border-color: #ff3344 !important;
  box-shadow: 0 0 30px #e50914, inset 0 0 15px #ff5566 !important;
  transform: scale(1.12) !important;
}
.btn-daw-metro.beat-flash-offbeat {
  background: #8b5cf6 !important;
  color: #ffffff !important;
  border-color: #a78bfa !important;
  box-shadow: 0 0 20px #8b5cf6 !important;
  transform: scale(1.06) !important;
}

/* Scrub Row & Living Small Red Wave Canvas */
.transport-scrub-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.time-stamp-mono {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 44px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.time-stamp-mono.current-time {
  text-align: right;
  color: #e5e5eb;
}
.time-stamp-mono.total-duration {
  text-align: left;
}

/* Recessed Groove Track containing Small Red Wave and Scrubber Thumb */
.transport-wave-scrub-container {
  position: relative;
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  background: rgba(14, 14, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65);
  overflow: visible;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.transport-wave-scrub-container:hover {
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65), 0 0 14px rgba(229, 9, 20, 0.2);
}

.transport-mini-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  pointer-events: none;
  z-index: 1;
}

.scrub-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
  background: transparent;
  outline: none;
  cursor: pointer;
  margin: 0;
}
.scrub-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 28px;
  background: transparent;
  border: none;
}
.scrub-slider::-moz-range-track {
  width: 100%;
  height: 28px;
  background: transparent;
  border: none;
}
.scrub-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff1826;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 12px #ff1826, 0 0 24px rgba(255, 24, 38, 0.85);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
  margin-top: 7px;
}
.scrub-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 18px #ff1826, 0 0 35px rgba(255, 24, 38, 1);
}
.scrub-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff1826;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 12px #ff1826, 0 0 24px rgba(255, 24, 38, 0.85);
}

/* Right Volume & Tools */
.transport-tools-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 290px;
  justify-content: flex-end;
}

.transport-daw-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.daw-led-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  transition: all 0.25s ease;
}
.daw-led-text {
  color: var(--text-secondary);
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-daw-volume {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-secondary);
}
.btn-daw-volume:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.volume-slider {
  width: 80px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #252535;
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}


/* --------------------------------------------------------------------------
   LOADING SPINNER OVERLAY
   -------------------------------------------------------------------------- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 6, 8, 0.95);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.loading-overlay.active {
  display: flex;
}

.spinner-crimson {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(229, 9, 20, 0.2);
  border-top-color: var(--crimson-neon);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.4);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-family: var(--font-brutal);
  font-size: 1.3rem;
  color: var(--text-pure);
  letter-spacing: 0.05em;
}

.loading-desc {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--crimson-neon);
}

/* --------------------------------------------------------------------------
   CYBERNETIC RED & BLACK ANIMATIONS & PIPELINE STYLES
   -------------------------------------------------------------------------- */

/* Cyber Hero Pulse Glow */
.studio-hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(229, 9, 20, 0.55);
  margin-bottom: 2rem;
  min-height: 290px;
  display: flex;
  align-items: center;
  background-color: #07070a;
  box-shadow: 0 0 25px rgba(200, 11, 22, 0.28), inset 0 0 18px rgba(200, 11, 22, 0.08);
}

/* Laser Scanline Disabled to eliminate screen scan flicker */
.laser-scanline {
  display: none !important;
}

/* Static High-Resolution Neon Waveform SVG */
.neon-wave-bg {
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 55%;
  height: 120%;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.5));
}

/* Stable Sound Spectrum EQ Bars */
.eq-bars-anim {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  margin-left: 0.5rem;
}

.eq-bar {
  width: 3px;
  background: var(--crimson-neon);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--crimson-neon);
}

.eq-bar:nth-child(1) { height: 6px; }
.eq-bar:nth-child(2) { height: 14px; }
.eq-bar:nth-child(3) { height: 9px; }
.eq-bar:nth-child(4) { height: 16px; }
.eq-bar:nth-child(5) { height: 10px; }

/* End-to-End Extraction Pipeline Section */
.pipeline-section {
  background: #09090e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.pipeline-step-card {
  background: #0e0e16;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  position: relative;
  transition: var(--transition-normal);
  cursor: default;
}

.pipeline-step-card:hover {
  border-color: rgba(229, 9, 20, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(229, 9, 20, 0.2);
}

.pipeline-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.pipeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--crimson-neon);
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
}

/* Moving Arrow Track inside Card Header */
.stage-arrow-track {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(229, 9, 20, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(229, 9, 20, 0.3);
}

.flow-ch {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  color: var(--crimson-neon);
}

/* Animated Journey Flow Rail (Connecting Stages to Local Download) */
.pipeline-flow-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 14, 22, 0.92);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1.6rem;
  overflow-x: auto;
  gap: 0.65rem;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.7);
}

.rail-step-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  background: #181826;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rail-step-pill span {
  color: var(--crimson-neon);
}

.rail-step-pill.destination {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.rail-step-pill.destination span {
  color: #34d399;
}

.rail-arrow-stream {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--crimson-neon);
}

.arrow-dot {
  font-size: 1rem;
  font-weight: 900;
  color: var(--crimson-neon);
  opacity: 0.75;
}

/* Destination Step Card (Local Machine Download) */
.pipeline-step-card.destination-card {
  background: linear-gradient(145deg, #0d1613, #0a110f);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(16, 185, 129, 0.08);
}

.pipeline-step-card.destination-card:hover {
  border-color: #10b981;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.35);
}

.pipeline-step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.pipeline-step-desc {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pipeline-step-tech {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #fca5a5;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Processed Track Bar (replaces input after song is processed) */
.processed-track-bar {
  background: #0d0d16;
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(229, 9, 20, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Slices Cards Grid */
.slices-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.slice-card {
  background: #11111b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 410px;
  position: relative;
  overflow: hidden;
  contain: layout style;
}

.slice-chords-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  margin: 0.65rem 0;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.slice-chords-summary {
  max-height: 3.4em;
  overflow-y: auto;
  line-height: 1.35;
}

.slice-chord-triggers-row {
  flex: 1;
  max-height: 145px;
  overflow-y: auto;
  align-content: flex-start;
  padding-right: 4px;
}

.slice-card:hover {
  border-color: rgba(229, 9, 20, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(229, 9, 20, 0.15);
  background: #141422;
}

.slice-card.is-active-slice {
  border-color: var(--crimson-neon);
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.3), inset 0 0 12px rgba(229, 9, 20, 0.12);
  background: #17111a;
}

.slice-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.slice-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--crimson-neon);
  background: rgba(229, 9, 20, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(229, 9, 20, 0.3);
}

.slice-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
  margin: 0.15rem 0;
}

.slice-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  margin-bottom: 0.9rem;
}

.slice-pill {
  background: #191928;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.slice-actions-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: auto;
  padding-top: 0.75rem;
}

.slice-play-btn {
  flex: 1;
  height: 36px;
  white-space: nowrap;
  background: #1a1a28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slice-wav-btn {
  flex: 0 0 auto;
  height: 36px;
  min-width: 68px;
  padding: 0 0.65rem;
  font-size: 0.75rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.slice-play-btn:hover {
  background: var(--crimson-neon);
  border-color: var(--crimson-neon);
  color: #fff;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

.slice-play-btn.playing {
  background: var(--crimson-neon);
  border-color: var(--crimson-neon);
  color: #fff;
}

/* Result Per Track Showcase Inspector Box */
.track-result-showcase {
  background: #0b0b12;
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(229, 9, 20, 0.06);
}

.track-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.track-result-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.track-result-meta-chip {
  background: #12121c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: var(--transition-fast);
}

.track-result-meta-chip:hover {
  border-color: rgba(229, 9, 20, 0.4);
  background: #151522;
}

.track-chip-lbl {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.track-chip-val {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  margin-top: 0.25rem;
}

.track-chip-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.hero-report-callout {
  transition: var(--transition-normal);
}

.hero-report-callout:hover {
  border-color: rgba(255, 42, 56, 0.7) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 9, 20, 0.2) !important;
}

/* ==========================================================================
   WHO USES BEATUNZIP AI — AUDIENCE CARDS (Plain English for Everyone)
   ========================================================================== */
.audience-section {
  background: #09090e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.audience-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.4), transparent);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.35rem;
}

.audience-card {
  background: #0e0e16;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(229, 9, 20, 0.15);
}

.audience-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.audience-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.audience-role-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-xs);
  border: 1px solid;
}

.audience-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.audience-role-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--crimson-neon);
  margin-bottom: 0.75rem;
}

.audience-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.1rem;
  flex-grow: 0;
}

.audience-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.audience-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #d1d5db;
  line-height: 1.45;
}

.audience-feat-item strong {
  color: #fff;
}

.audience-check {
  font-weight: 900;
  color: var(--crimson-neon);
  font-size: 0.9rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.audience-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
  margin-top: auto;
  font-size: 0.73rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Special Highlight for Hobbyists & Music Lovers Card */
.featured-hobbyist-card {
  background: linear-gradient(145deg, #131219, #0e0e16);
  border: 1px solid rgba(234, 179, 8, 0.3);
  position: relative;
}

.featured-hobbyist-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(234, 179, 8, 0.2);
  pointer-events: none;
}

.featured-hobbyist-card:hover {
  border-color: rgba(234, 179, 8, 0.7) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 22px rgba(234, 179, 8, 0.25) !important;
}

/* ==========================================================================
   WHAT CAN YOU DROP INTO BEATUNZIP AI (Supported Audio Section)
   ========================================================================== */
.supported-audio-section {
  background: #09090e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.supported-audio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.4), transparent);
}

.audio-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.35rem;
}

.audio-type-card {
  background: #0e0e16;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.audio-type-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(16, 185, 129, 0.15);
}

.audio-type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.audio-type-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.audio-type-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-xs);
  border: 1px solid;
}

.audio-type-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.audio-type-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.user-perspective-block {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.perspective-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.perspective-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.perspective-val {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.audio-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.audio-tag-mini {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #9ca3af;
  background: #14141f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   INTERACTIVE VIRTUAL PIANO & HARMONIC PROOF STUDIO
   ========================================================================== */
.piano-verifier-container {
  margin-top: 1.5rem;
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.95) 0%, rgba(10, 10, 14, 0.98) 100%);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.piano-keys-wrapper {
  position: relative;
  height: 145px;
  min-height: 145px;
  width: 100%;
  min-width: 740px;
  background: #08080c;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.8);
  user-select: none;
  overflow-x: auto;
  overflow-y: hidden;
}

.piano-white-key {
  position: absolute;
  top: 8px;
  height: calc(100% - 16px);
  width: 32px;
  background: linear-gradient(180deg, #f8f8fb 0%, #d8d8e2 85%, #bcbccb 100%);
  border: 1px solid #1a1a24;
  border-radius: 0 0 6px 6px;
  cursor: pointer;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 6px;
  transition: all 0.1s ease;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.piano-white-key:hover {
  background: #ffffff;
}

.piano-white-key:active, .piano-white-key.active-press {
  background: #e2e2ec;
  transform: translateY(2px);
}

.piano-black-key {
  position: absolute;
  top: 8px;
  width: 20px;
  height: 58%;
  background: linear-gradient(180deg, #2b2b36 0%, #121217 80%, #060608 100%);
  border: 1px solid #000;
  border-radius: 0 0 4px 4px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 4px;
  transition: all 0.1s ease;
}

.piano-black-key:hover {
  background: #3b3b48;
}

.piano-black-key:active, .piano-black-key.active-press {
  background: #1e1e24;
  transform: translateY(2px);
}

.key-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #4b4b5a;
  pointer-events: none;
}

.piano-black-key .key-label {
  color: #8b8b9a;
  font-size: 0.58rem;
}

/* Key Highlighting for Scale, Root, and Chord Voicings */
.piano-key.scale-note {
  border-bottom: 4px solid #38bdf8;
}

.piano-key.chord-bass {
  background: linear-gradient(180deg, #991b1b 0%, #e50914 100%) !important;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.8) !important;
}

.piano-key.chord-bass .key-label {
  color: #fff !important;
  font-weight: 800 !important;
}

.piano-key.chord-triad {
  background: linear-gradient(180deg, #f59e0b 0%, #ff4d5a 100%) !important;
  box-shadow: 0 0 14px rgba(255, 77, 90, 0.8) !important;
}

.piano-key.chord-triad .key-label {
  color: #fff !important;
  font-weight: 800 !important;
}

.chord-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chord-badge-pill .chord-pill-name {
  color: #ff4d5a;
  font-weight: 700;
  transition: color 0.18s ease;
}

.chord-badge-pill .chord-pill-time {
  color: var(--text-muted, #94a3b8);
  font-size: 0.65rem;
  transition: color 0.18s ease;
}

.chord-badge-pill:hover {
  background: rgba(255, 42, 64, 0.18);
  border-color: rgba(255, 42, 64, 0.55);
  transform: translateY(-1px);
}

.chord-badge-pill:hover .chord-pill-name {
  color: #ff758f;
}

.chord-badge-pill:hover .chord-pill-time {
  color: #e2e8f0;
}

/* HIGH-CONTRAST ULTRA-READABLE ACTIVE CHORD STATE (No scale transform to avoid scroll-tray flicker) */
.chord-badge-pill.active {
  background: linear-gradient(180deg, #2c0a0e 0%, #170406 100%) !important;
  border: 1.5px solid #ff2a40 !important;
  box-shadow: 0 0 10px rgba(255, 42, 64, 0.6) !important;
}

.chord-badge-pill.active .chord-pill-name,
.chord-badge-pill.active span:first-child {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.chord-badge-pill.active .chord-pill-time,
.chord-badge-pill.active span:last-child {
  color: #38bdf8 !important; /* Electric Cyan for extreme contrast against dark red */
  font-weight: 700 !important;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.7), 0 1px 2px rgba(0, 0, 0, 0.9) !important;
  opacity: 1 !important;
}

/* ==========================================================================
   MUSIC INTELLIGENCE REPORT MULTI-PAGE NAVIGATION BAR & TABS
   ========================================================================== */
.report-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.report-tabs-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.report-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 8px 22px;
  min-height: 40px;
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.28), rgba(178, 7, 16, 0.32));
  color: #ffffff;
  border: 1.5px solid rgba(229, 9, 20, 0.55);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.22);
  white-space: nowrap;
}

.report-tab-btn:hover {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.65), rgba(178, 7, 16, 0.7));
  border-color: rgba(255, 77, 90, 0.85);
  box-shadow: 0 0 22px var(--crimson-glow-strong);
  transform: translateY(-1px);
  color: #ffffff;
}

.report-tab-btn.active {
  background: linear-gradient(135deg, var(--crimson-vivid), var(--crimson-deep)) !important;
  color: #ffffff !important;
  border: 1.5px solid #ff4d5a !important;
  box-shadow: 0 0 24px var(--crimson-glow-strong), 0 4px 16px rgba(0, 0, 0, 0.6) !important;
  font-weight: 900;
}

.report-tab-btn.report-reset-btn {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(130, 10, 20, 0.25));
  border: 1.5px solid rgba(229, 9, 20, 0.5);
  color: #ffffff;
}

.report-tab-btn.report-reset-btn:hover {
  background: linear-gradient(135deg, #e50914, #990000);
  border-color: #ff4d5a;
  box-shadow: 0 0 22px rgba(229, 9, 20, 0.6);
  color: #ffffff;
}

/* Tab pages transition */
.report-tab-page {
  animation: fadeInReportPage 0.15s ease-out forwards;
}

@keyframes fadeInReportPage {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   TRACK OVERVIEW: BIG ANIMATED KPI BOXES & SONG DECONSTRUCTION DASHBOARD
   ========================================================================== */
.overview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 1200px) {
  .overview-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .overview-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.overview-big-box {
  background: linear-gradient(145deg, rgba(22, 22, 34, 0.95), rgba(10, 10, 16, 0.98));
  border: 1px solid rgba(229, 9, 20, 0.32);
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.overview-big-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--crimson-neon), var(--crimson-deep));
  box-shadow: 0 0 14px var(--crimson-glow);
}

.overview-big-box:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 24, 38, 0.75);
  box-shadow: 0 18px 45px rgba(229, 9, 20, 0.25), inset 0 0 24px rgba(229, 9, 20, 0.1);
}

.kpi-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.kpi-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.kpi-badge-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.kpi-badge-pill.crimson {
  background: rgba(229, 9, 20, 0.2);
  color: #ff4d5a;
  border-color: rgba(229, 9, 20, 0.45);
}

.kpi-badge-pill.amber {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.kpi-badge-pill.violet {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

.kpi-value-big {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.kpi-value-big.crimson-neon {
  color: var(--crimson-neon);
  text-shadow: 0 0 18px rgba(255, 24, 38, 0.5);
}

.kpi-value-big.key-color {
  color: #f43f5e;
  text-shadow: 0 0 16px rgba(244, 63, 94, 0.45);
}

.kpi-unit {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 3px;
}

.kpi-sub-text {
  font-size: 0.84rem;
  color: #cbd5e1;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.35;
}

.dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-indicator.green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.dot-indicator.red { background: var(--crimson-neon); box-shadow: 0 0 8px var(--crimson-neon); }
.dot-indicator.purple { background: #a855f7; box-shadow: 0 0 8px #a855f7; }
.dot-indicator.blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }

/* Overview Panel Cards */
.overview-panel-card {
  background: #090a10;
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.panel-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.panel-tag-pill {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #ff4d5a;
  font-weight: 700;
}

/* Song Map Timeline Track */
.song-map-track-wrap {
  overflow-x: auto;
  border-radius: 10px;
  background: #050508;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.song-map-track-wrap svg rect {
  transition: transform 0.16s ease, filter 0.16s ease, stroke-width 0.16s ease;
}

.song-map-track-wrap svg rect:hover {
  filter: brightness(1.3);
  transform: translateY(-2px);
}

.song-map-track-wrap svg rect.active-selected-block {
  stroke: #ffffff;
  stroke-width: 2.5px;
  filter: brightness(1.35) drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.song-map-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.map-legend-pill {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.map-legend-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Selected Section Inspector */
.section-inspector-box {
  background: linear-gradient(160deg, #10101a, #06060c);
  border-left: 5px solid var(--crimson-neon);
}

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

.inspector-section-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(229, 9, 20, 0.2);
  color: #ff4d5a;
  border: 1px solid rgba(229, 9, 20, 0.4);
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 5px;
  font-weight: 700;
}

.inspector-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.inspector-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-inspector-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--crimson-neon), var(--crimson-deep));
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px var(--crimson-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-inspector-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px var(--crimson-glow-strong);
}

.btn-inspector-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-inspector-verify:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.inspector-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.inspector-pill {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
}

.inspector-pill strong {
  color: #fff;
}

.inspector-chords-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.inspector-chords-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.inspector-chords-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inspector-chord-pill {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.25), rgba(117, 6, 14, 0.45));
  border: 1px solid rgba(229, 9, 20, 0.48);
  color: #fff;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-brutal);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.inspector-chord-pill:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--crimson-neon), var(--crimson-scarlet));
  box-shadow: 0 0 12px var(--crimson-glow);
}

.inspector-files-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.file-path-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Analytics Dual Grid */
.overview-analytics-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.analytics-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  font-size: 0.88rem;
  font-family: var(--font-body);
}

.analytics-key-name {
  width: 95px;
  font-weight: 700;
  color: #f1f5f9;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analytics-bar-track {
  flex: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.analytics-bar-val {
  width: 75px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Camelot Wheel Card */
.camelot-card-split-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .camelot-card-split-layout {
    grid-template-columns: 1fr;
  }
}

.camelot-svg-wrap svg {
  max-width: 290px;
  margin: auto;
  display: block;
}

.camelot-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.camelot-code-badge {
  font-size: 1.15rem;
  font-family: var(--font-brutal);
  font-weight: 800;
  background: linear-gradient(135deg, var(--crimson-neon), var(--crimson-deep));
  color: #fff;
  padding: 4px 14px;
  border-radius: 8px;
  box-shadow: 0 0 16px var(--crimson-glow);
}

.camelot-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.camelot-description {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.camelot-mixing-rules-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.mixing-rule-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.rule-content strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.active-camelot-codes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.camelot-active-pill {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #ff4d5a;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
}

/* ==========================================================================
   MODERN MUSIC PRODUCTION DAW-RACK BOXES & HIGH-END ANIMATION
   ========================================================================== */
.music-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

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

.music-prod-card {
  background: linear-gradient(160deg, rgba(20, 20, 32, 0.95) 0%, rgba(11, 11, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.music-prod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #e50914, #ff2a38, #ff4d5a, transparent);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.music-prod-card:hover {
  border-color: rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(229, 9, 20, 0.15);
}

.music-prod-card:hover::before {
  opacity: 1;
  height: 3.5px;
}

.rack-card-top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rack-ch-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.rack-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.rack-badge.cyan {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.rack-badge.crimson {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
  color: #ff4d5a;
}

/* Studio Or Divider */
.studio-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.85rem 0;
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.studio-or-divider span {
  padding: 0 10px;
}

/* Studio Path Input Wraps */
.studio-path-input-wrap {
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.05) 0%, rgba(14, 14, 20, 0.98) 100%);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 10px;
  padding: 0 12px;
  gap: 9px;
  transition: all 0.25s ease;
  width: 100%;
}

.studio-path-input-wrap:hover {
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.22);
}

.studio-path-input-wrap:focus-within {
  border-color: var(--crimson-neon);
  box-shadow: 0 0 22px rgba(229, 9, 20, 0.42);
  background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.12) 0%, rgba(16, 14, 22, 0.98) 100%);
}

.studio-path-input-wrap svg {
  stroke: #ff4d5a;
  filter: drop-shadow(0 0 5px rgba(229, 9, 20, 0.5));
}

.studio-path-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 10px 0;
}

.studio-path-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.btn-clear-path {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
  transition: color 0.15s ease;
}

.btn-clear-path:hover {
  color: #ff4d5a;
}

/* Studio Browse Folder Button */
.btn-studio-browse-folder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.15);
}

.btn-studio-browse-folder svg {
  stroke: #ff4d5a;
}

.btn-studio-browse-folder:hover {
  background: rgba(229, 9, 20, 0.22);
  border-color: var(--crimson-neon);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.4);
}

/* Mini Audio VU Equalizer (Hardware Visual) */
.mini-vu-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  padding: 0 4px;
}

.vu-bar {
  width: 3px;
  border-radius: 1px;
  background: linear-gradient(180deg, #ff4d5a 0%, #e50914 100%);
  animation: vuPulse 1.2s ease-in-out infinite alternate;
}

.vu-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.vu-bar:nth-child(2) { height: 75%; animation-delay: 0.3s; }
.vu-bar:nth-child(3) { height: 100%; animation-delay: 0.5s; }
.vu-bar:nth-child(4) { height: 60%; animation-delay: 0.2s; }
.vu-bar:nth-child(5) { height: 85%; animation-delay: 0.4s; }

@keyframes vuPulse {
  0% { transform: scaleY(0.3); opacity: 0.6; }
  50% { transform: scaleY(0.9); opacity: 1; }
  100% { transform: scaleY(0.4); opacity: 0.7; }
}

/* Center Supreme Analyze Action Button */
.studio-unified-control-bar {
  margin: 1.25rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.btn-supreme-analyze {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 44px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #e50914 0%, #b00710 50%, #80050b 100%);
  border: 1.5px solid rgba(255, 77, 90, 0.75);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.55), 0 8px 24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.btn-supreme-analyze .analyze-btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-supreme-analyze:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(229, 9, 20, 0.85), 0 12px 30px rgba(0, 0, 0, 0.85);
  border-color: #ff6b78;
}

.btn-supreme-analyze:hover:not(:disabled) .analyze-btn-glow {
  opacity: 1;
}

.btn-supreme-analyze:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.studio-validation-hint {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: center;
}

/* Tightened Header & Diagnostics Bar */
.diagnostics-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0.15rem;
}

.diagnostics-main-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 12px rgba(229, 9, 20, 0.35);
  text-align: left;
  line-height: 1.2;
}

.compact-report-nav {
  margin-top: 0.25rem !important;
  padding-top: 0.4rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 0.4rem !important;
}

.compact-report-nav .report-tabs-group {
  flex-wrap: nowrap !important;
  gap: 0.35rem !important;
  flex-shrink: 0;
}

.compact-report-nav .report-tab-btn {
  padding: 6px 11px !important;
  min-height: 34px !important;
  font-size: 0.8rem !important;
  gap: 0.35rem !important;
  flex-shrink: 0;
}

/* ==========================================================================
   NEURAL TRACK ANALYZER VIEW STYLES
   ========================================================================== */
.analyzer-hero-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.analyzer-load-box {
  background: linear-gradient(160deg, rgba(26, 16, 24, 0.98) 0%, rgba(12, 12, 20, 0.98) 100%);
  border: 1px solid rgba(229, 9, 20, 0.45);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 28px rgba(229, 9, 20, 0.16);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.analyzer-load-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e50914, #ff2a38, #ff6b7a, #e50914);
  opacity: 0.95;
}

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

.analyzer-icon-disk {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
}

.analyzer-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .analyzer-input-row {
    flex-direction: column;
  }
}

/* ==========================================================================
   SONG DECONSTRUCTION DASHBOARD (SONG_STRUCTURE_SUMMARY.CSV)
   ========================================================================== */
.song-dash-tabs-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 6px 4px 10px 4px;
  margin-bottom: 0.75rem;
  scrollbar-width: thin;
}

.grid {
  display: grid;
  gap: 14px;
}

.song-dash-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 992px) {
  .song-dash-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .song-dash-grid-4 {
    grid-template-columns: 1fr;
  }
}

.song-dash-tabs-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-block: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  scrollbar-width: none;
}

.song-dash-tabs-bar::-webkit-scrollbar {
  display: none;
}

.song-dash-tab-btn {
  flex: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.song-dash-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.song-dash-tab-btn.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.btn-sm-dash {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-sm-dash:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.song-card {
  background: #151923;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  min-width: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: border-color 0.25s ease;
}

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

.song-card h3 {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  font-family: var(--font-display);
  letter-spacing: 0.2px;
}

.song-card.wide {
  grid-column: 1 / -1;
}

.song-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.song-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.song-chords-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.song-chords-row span {
  display: inline-block;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.38);
  color: #67e8f9;
  border-radius: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sort-beats-table tr.active-row td {
  background: rgba(6, 182, 212, 0.12) !important;
  color: #ffffff;
}

/* ==========================================================================
   LEGAL & HELP VIEWS (TERMS, PRIVACY, GLOBAL FAQ) - STUDIO INTEGRATED
   ========================================================================== */
.legal-view-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.legal-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.5rem;
}

.legal-subtab-pills {
  display: inline-flex;
  gap: 6px;
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 4px;
}

.legal-subtab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.legal-subtab-pill:hover:not(.active) {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.05);
}

.legal-subtab-pill.active {
  background: var(--crimson-vivid);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 16px var(--crimson-glow);
}

.legal-doc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-xl);
  padding: 2.8rem 3rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.legal-header-row {
  margin-bottom: 2rem;
}

.legal-doc-title {
  font-family: var(--font-brutal);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-pure);
  margin: 0.6rem 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.legal-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legal-divider-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.5) 0%, rgba(255, 255, 255, 0.06) 60%, transparent 100%);
  margin: 1.75rem 0 2.25rem 0;
}

.legal-section-item {
  margin-bottom: 2.2rem;
}

.legal-section-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--crimson-neon);
}

.legal-section-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.legal-section-item strong {
  color: var(--text-pure);
}

.legal-section-item ul {
  margin: 0.6rem 0 1.2rem 1.6rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.legal-section-item li {
  margin-bottom: 0.55rem;
  line-height: 1.65;
}

.legal-highlight-box {
  background: rgba(229, 9, 20, 0.07);
  border-left: 3.5px solid var(--crimson-neon);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.65;
}

.legal-guarantee-box {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.14) 0%, rgba(30, 5, 10, 0.45) 100%);
  border: 1px solid rgba(255, 24, 38, 0.45);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 16px rgba(229, 9, 20, 0.08);
}

.legal-guarantee-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6rem;
}

.legal-guarantee-title svg {
  color: var(--crimson-neon);
  filter: drop-shadow(0 0 8px var(--crimson-neon));
}

.legal-guarantee-box p {
  margin: 0;
  color: #e5e5f0;
  font-size: 0.94rem;
  line-height: 1.65;
}

/* FAQ Controls & Accordion */
.faq-controls-row {
  display: flex;
  gap: 14px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.faq-search-wrapper {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  background: rgba(10, 10, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.faq-search-input:focus {
  border-color: var(--crimson-neon);
  box-shadow: 0 0 16px rgba(255, 24, 38, 0.28);
}

.faq-category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.faq-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 7px 15px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-chip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-pure);
}

.faq-chip-btn.active {
  background: rgba(229, 9, 20, 0.22);
  border-color: var(--crimson-vivid);
  color: #ff7580;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.2);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-card {
  background: rgba(14, 14, 22, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-accordion-card:hover {
  border-color: rgba(255, 24, 38, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.faq-accordion-header {
  padding: 1.15rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.faq-tag-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.faq-question-text {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-pure);
  margin: 0;
}

.faq-chevron-icon {
  color: var(--text-muted);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-accordion-card.open .faq-chevron-icon {
  transform: rotate(180deg);
  color: var(--crimson-neon);
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.4rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.68;
}

.faq-accordion-card.open .faq-accordion-body {
  max-height: 600px;
  padding-bottom: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.faq-accordion-body p {
  margin: 0 0 10px 0;
}

.faq-accordion-body code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ff9ca4;
  font-size: 0.88em;
}

.faq-accordion-body ul {
  margin: 6px 0 10px 1.4rem;
}

.faq-accordion-body li {
  margin-bottom: 5px;
}

.legal-footer-copyright {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .legal-doc-box {
    padding: 1.8rem 1.2rem;
  }
  .legal-doc-title {
    font-size: 1.85rem;
  }
  .legal-nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .faq-controls-row {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   SECTION AUDIO & HARMONIC VERIFIER MODAL (BROADENED 2-COLUMN VIEW)
   -------------------------------------------------------------------------- */
.verifier-modal-card {
  box-shadow: 0 0 50px rgba(229, 9, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  animation: verifierModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes verifierModalPop {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.verifier-modal-grid::-webkit-scrollbar,
#modalSectionChordsGrid::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.verifier-modal-grid::-webkit-scrollbar-track,
#modalSectionChordsGrid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.verifier-modal-grid::-webkit-scrollbar-thumb,
#modalSectionChordsGrid::-webkit-scrollbar-thumb {
  background: rgba(229, 9, 20, 0.45);
  border-radius: 4px;
}

.verifier-modal-grid::-webkit-scrollbar-thumb:hover,
#modalSectionChordsGrid::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 9, 20, 0.75);
}

@media (max-width: 820px) {
  .verifier-modal-card {
    max-height: 96vh !important;
    padding: 1.1rem !important;
  }
  .verifier-modal-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
}

/* -------------------------------------------------------------------------- */
/* STUDIO ANIMATED & BRIGHTENED OUTPUT DIRECTORY HIGHLIGHT (RED / CRIMSON THEME) */
/* -------------------------------------------------------------------------- */
@keyframes outputDirRedBreathingPulse {
  0%, 100% {
    border-color: rgba(229, 9, 20, 0.45);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.2), inset 0 0 18px rgba(229, 9, 20, 0.04);
  }
  50% {
    border-color: rgba(255, 42, 56, 0.9);
    box-shadow: 0 0 35px rgba(229, 9, 20, 0.42), inset 0 0 26px rgba(229, 9, 20, 0.1);
  }
}

.studio-path-highlight-box {
  animation: outputDirRedBreathingPulse 3.2s infinite ease-in-out;
  background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.10) 0%, rgba(24, 18, 28, 0.96) 65%, rgba(14, 14, 20, 0.98) 100%) !important;
  border: 1.5px dashed rgba(229, 9, 20, 0.65) !important;
  border-radius: 12px !important;
  padding: 4px 14px !important;
  transition: all 0.25s ease !important;
}

.studio-path-highlight-box:focus-within, .studio-path-highlight-box:hover {
  border-color: #ff2a38 !important;
  background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.18) 0%, rgba(28, 18, 30, 0.98) 65%, rgba(14, 14, 20, 0.98) 100%) !important;
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.5), inset 0 0 28px rgba(229, 9, 20, 0.15) !important;
}

.studio-path-highlight-box input {
  color: #ffffff !important;
  font-family: var(--font-mono) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
}

.studio-path-highlight-box input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.studio-path-highlight-box svg {
  stroke: #ff4d5a !important;
  filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.65));
}

.output-dir-label {
  font-size: 0.84rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.output-dir-label span.folder-badge {
  color: #ff4d5a;
  filter: drop-shadow(0 0 4px rgba(229, 9, 20, 0.6));
}

.preset-pill {
  background: rgba(229, 9, 20, 0.08) !important;
  border: 1px solid rgba(229, 9, 20, 0.35) !important;
  color: #ffffff !important;
  font-family: var(--font-mono) !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.preset-pill:hover {
  background: rgba(229, 9, 20, 0.22) !important;
  border-color: #ff4d5a !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.45) !important;
}

@keyframes dropzoneBreathingPulse {
  0%, 100% {
    border-color: rgba(229, 9, 20, 0.45);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.2), inset 0 0 18px rgba(229, 9, 20, 0.04);
  }
  50% {
    border-color: rgba(255, 42, 56, 0.9);
    box-shadow: 0 0 35px rgba(229, 9, 20, 0.42), inset 0 0 26px rgba(229, 9, 20, 0.1);
  }
}

@keyframes uploadArrowFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.studio-active-dropzone {
  animation: dropzoneBreathingPulse 3.2s infinite ease-in-out;
  background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.09) 0%, rgba(22, 16, 26, 0.95) 60%, rgba(12, 12, 18, 0.98) 100%) !important;
  border: 1.5px dashed rgba(229, 9, 20, 0.6) !important;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.studio-active-dropzone:hover, .studio-active-dropzone.dragover {
  border-color: #ff2a38 !important;
  background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.18) 0%, rgba(28, 18, 30, 0.98) 60%, rgba(14, 14, 20, 0.98) 100%) !important;
  box-shadow: 0 0 45px rgba(229, 9, 20, 0.5), inset 0 0 30px rgba(229, 9, 20, 0.18) !important;
  transform: translateY(-1px);
}

.drop-icon-animated {
  background: radial-gradient(circle, rgba(255, 42, 56, 0.3) 0%, rgba(229, 9, 20, 0.12) 100%) !important;
  border: 1.5px solid rgba(255, 42, 56, 0.75) !important;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.45) !important;
  transition: all 0.25s ease;
}

.drop-icon-animated svg {
  animation: uploadArrowFloat 2.2s infinite ease-in-out;
  stroke: #ff4d5a !important;
}

.studio-active-dropzone:hover .drop-icon-animated {
  background: var(--crimson-vivid) !important;
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.8) !important;
}

.studio-active-dropzone:hover .drop-icon-animated svg {
  stroke: #ffffff !important;
}

.studio-tips-container {
  margin: 1.5rem 0 1rem 0;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease;
}

.studio-tips-container:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.studio-tips-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.95rem;
  flex-wrap: wrap;
  gap: 10px;
}

.studio-tips-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
}

.btn-open-tips-modal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-open-tips-modal:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  color: #fff;
}

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

.studio-tip-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.25s ease;
}

.studio-tip-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.tip-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.tip-card-accent.cyan { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.tip-card-accent.emerald { background: linear-gradient(90deg, #10b981, #059669); }
.tip-card-accent.crimson { background: linear-gradient(90deg, #e50914, #f43f5e); }

.tip-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tip-emoji {
  font-size: 1.15rem;
}

.tip-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.tip-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.tip-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: fit-content;
}

/* ==============================================================================
   AUTO-RENEWAL & CANCELLATION FACILITY STYLES
   ============================================================================== */
.auto-renewal-status-box {
  transition: all 0.25s ease;
}

.auto-renewal-status-box:hover {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.btn-outline-cancel-sm:hover,
#profBtnCancelSub:hover,
#billingBtnManageSub:hover {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: #ef4444 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-outline-resume-sm:hover,
#profBtnResumeSub:hover,
#billingBtnResumeSub:hover {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: #34d399 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.membership-billing-mgmt-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.membership-billing-mgmt-card:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ==============================================================================
   RESPONSIVE DESIGN SYSTEM: MOBILE & TABLET / IPAD VIEWPORT OPTIMIZATIONS
   Strictly scoped to <= 1024px, <= 768px, and <= 540px.
   Desktop view (>= 1025px) remains 100% UNTOUCHED and pristine.
   ============================================================================== */

/* Desktop defaults for mobile-only and responsive elements */
.mobile-only-nav-group {
  display: none !important;
}

.topbar-mobile-left {
  display: none !important;
}

.mobile-sidebar-close-btn {
  display: none !important;
}

.sidebar-mobile-backdrop {
  display: none !important;
}

.transport-mobile-progress {
  display: none !important;
}

.dashboards-guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.signatures-guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   1. TABLET & IPAD BREAKPOINT (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

  /* Prevent flex-child margin issues */
  .app-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Off-Canvas Drawer Navigation */
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 285px !important;
    max-width: 82vw !important;
    z-index: 10000 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    visibility: hidden;
    pointer-events: none;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 12px 0 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(229, 9, 20, 0.45) !important;
  }

  .mobile-sidebar-close-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-sidebar-close-btn:hover,
  .mobile-sidebar-close-btn:active {
    color: #fff;
    background: rgba(229, 9, 20, 0.3);
    border-color: #ff1826;
  }

  /* Mobile Backdrop Overlay */
  .sidebar-mobile-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 8, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-mobile-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Full Width Main Wrapper */
  .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  /* Topbar Reflow */
  .topbar {
    padding: 0 1.25rem !important;
    height: 64px !important;
    justify-content: space-between !important;
  }

  .topbar-mobile-left {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .mobile-hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-hamburger-btn:hover,
  .mobile-hamburger-btn:active {
    background: rgba(229, 9, 20, 0.22);
    border-color: #ff1826;
    color: #ff1826;
    box-shadow: 0 0 14px rgba(229, 9, 20, 0.45);
  }

  .topbar-mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
  }

  .topbar-mobile-brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: #ffffff;
  }

  .topbar-actions {
    margin-left: auto !important;
    gap: 0.65rem !important;
  }

  /* View Container Spacing */
  .view-content-area {
    padding: 1.5rem 1.25rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Grids & Cards on Tablet */
  .metrics-quad-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .about-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  .music-studio-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Bottom Transport Player Tablet Adjustments */
  .bottom-transport-bar {
    padding: 0 1rem !important;
    height: 80px !important;
  }

  .transport-track-info {
    width: 220px !important;
  }

  .transport-tools-right {
    width: 200px !important;
  }
}

/* --------------------------------------------------------------------------
   2. MOBILE VIEWPORT BREAKPOINT (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Docked single-row mobile audio player padding */
  body {
    padding-bottom: 70px !important;
  }

  /* Show mobile-only navigation in sliding drawer */
  .mobile-only-nav-group {
    display: block !important;
  }

  /* Desktop-only topbar actions hidden on mobile (accessible in drawer menu) */
  .nav-desktop-only {
    display: none !important;
  }

  .view-content-area {
    padding: 1rem 0.75rem !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* Compact Sleek Single-Row Topbar (Zero Wrapping) */
  .topbar {
    padding: 0 0.75rem !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    gap: 0.5rem !important;
  }

  .topbar-mobile-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Hide duplicate BeatUnzip brand in mobile header - brand is prominently displayed in sliding drawer */
  .topbar-mobile-brand {
    display: none !important;
  }

  .topbar-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin-left: auto !important;
  }

  .topbar-actions .btn-secondary-dark,
  .topbar-actions .btn-crimson {
    padding: 0.38rem 0.65rem !important;
    font-size: 0.75rem !important;
    gap: 0.35rem !important;
    white-space: nowrap !important;
  }

  .topbar-actions svg {
    width: 13px !important;
    height: 13px !important;
  }

  /* Mobile User Profile Badge: Spacious & Full Name (Matches Screen 1 Quality) */
  .user-profile-badge {
    padding: 4px 12px !important;
    gap: 8px !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  .user-avatar-mini {
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
  }

  .user-info-mini {
    min-width: 0 !important;
    overflow: visible !important;
  }

  .user-name-mini {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .user-role-mini {
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #ef4444 !important;
  }

  /* Universal Mobile Card Grids & Zero-Clipping Fluid Layout */
  .dashboards-guide-cards-grid,
  .signatures-guide-cards-grid,
  .audience-grid,
  .audio-types-grid,
  .pipeline-grid,
  .arsenal-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 1.15rem !important;
    box-sizing: border-box !important;
  }

  /* Universal Fluid Cards on Mobile */
  .dashboards-guide-cards-grid .card.glass-card,
  .signatures-guide-cards-grid .card.glass-card,
  .audience-card,
  .audio-type-card,
  .pipeline-step-card,
  .arsenal-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 1.15rem 0.85rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Sections Padding Reducer on Mobile */
  .supported-audio-section,
  .pipeline-section,
  .comprehensive-features-section {
    padding: 1.35rem 0.85rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .pipeline-flow-rail {
    padding: 0.65rem 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Audio Type Details on Mobile */
  .audio-type-title,
  .pipeline-step-title,
  .audience-title,
  .dashboards-guide-cards-grid h3,
  .signatures-guide-cards-grid h3,
  .arsenal-card h4 {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }

  .audio-type-subtitle {
    font-size: 0.78rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }

  .user-perspective-block {
    padding: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0.85rem !important;
  }

  .perspective-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    margin-bottom: 0.6rem !important;
    width: 100% !important;
  }

  .perspective-label {
    font-size: 0.75rem !important;
  }

  .perspective-val {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .audio-type-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }

  .audio-tag-mini {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.45rem !important;
    white-space: normal !important;
  }

  /* Card Body & Lists on Mobile */
  .dashboards-guide-cards-grid p,
  .dashboards-guide-cards-grid li,
  .signatures-guide-cards-grid p,
  .signatures-guide-cards-grid li,
  .audience-desc,
  .audience-role-sub,
  .pipeline-step-desc,
  .arsenal-card p,
  .arsenal-card li {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
  }

  .dashboards-guide-cards-grid .card.glass-card > div > div[style*="background: rgba(0, 0, 0, 0.4)"] {
    padding: 10px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* CTA Quick Mode Switcher on Mobile */
  .home-quick-launch-bar {
    padding: 1.25rem 0.85rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .home-quick-launch-bar > div:first-child {
    text-align: center !important;
    width: 100% !important;
  }

  .home-quick-launch-bar h4 {
    font-size: 1.15rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .home-quick-launch-bar p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .quick-launch-buttons,
  .home-quick-launch-bar > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.65rem !important;
  }

  .quick-launch-buttons .btn-crimson,
  .quick-launch-buttons .btn-secondary-dark,
  .home-quick-launch-bar .btn-crimson,
  .home-quick-launch-bar .btn-secondary-dark {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
    box-sizing: border-box !important;
    font-size: 0.88rem !important;
  }

  /* Hero Card Reflow on Mobile */
  .studio-hero-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-content-wrap {
    padding: 1.35rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-content-wrap h2 {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .hero-content-wrap p {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .hero-extractions-ribbon {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    width: 100% !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-ext-chip {
    font-size: 0.68rem !important;
    padding: 0.22rem 0.45rem !important;
    white-space: normal !important;
  }

  /* Single-Row High-Precision Docked Mobile Audio Player */
  .transport-mobile-progress {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    cursor: pointer !important;
    z-index: 10 !important;
  }

  .transport-mobile-progress-fill {
    height: 100% !important;
    width: 0% !important;
    background: linear-gradient(90deg, #ff1826, #ff4d5a) !important;
    box-shadow: 0 0 8px rgba(255, 24, 38, 0.8) !important;
    transition: width 0.1s linear !important;
  }

  .bottom-transport-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 0 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    z-index: 9990 !important;
    background: rgba(12, 14, 22, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6) !important;
    box-sizing: border-box !important;
  }

  /* Left track info */
  .transport-track-info {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    width: auto !important;
  }

  .transport-thumb-container,
  .transport-thumb {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  .transport-meta {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .transport-meta-header {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  .transport-title {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 110px !important;
  }

  .transport-badge-tag {
    display: none !important;
  }

  .transport-meta-sub {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .transport-artist {
    display: none !important;
  }

  .transport-live-bpm {
    font-size: 0.65rem !important;
    color: #38bdf8 !important;
  }

  /* Center controls on mobile: compact 4 transport buttons */
  .transport-controls-center {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .transport-buttons-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* Hide desktop-only secondary controls on mobile */
  .transport-scrub-row,
  .transport-tools-right,
  #transportShuffleBtn,
  #transportStopBtn,
  #masterMetronomeBtn {
    display: none !important;
  }

  .btn-transport-daw {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }

  .btn-transport-daw svg {
    width: 14px !important;
    height: 14px !important;
  }

  .btn-transport-play-hero {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .play-hero-core {
    width: 30px !important;
    height: 30px !important;
  }

  .play-hero-core svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Studio Grids Reflow to Single Column */
  .input-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .dropzone-card {
    padding: 1.1rem 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dropzone-card > div {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }

  .dropzone-card .drop-icon-circle {
    margin: 0 auto !important;
  }

  .dropzone-card .drop-title {
    text-align: center !important;
    font-size: 0.92rem !important;
  }

  .dropzone-card .drop-desc {
    text-align: center !important;
    font-size: 0.72rem !important;
  }

  .camelot-card-split-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .overview-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  /* Virtual Piano Keyboard Scroll Container */
  .piano-keys-wrapper {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Studio Action Bar & Analyze Button Fluidity */
  .studio-unified-control-bar {
    width: 100% !important;
    padding: 0 0.25rem !important;
  }

  .btn-supreme-analyze {
    width: 100% !important;
    max-width: 100% !important;
    padding: 13px 14px !important;
    font-size: 0.94rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .studio-validation-hint {
    text-align: center !important;
    font-size: 0.72rem !important;
  }

  /* Single Track & Multi Track Studio Top Banners */
  #singleTrackUploadTopBanner,
  #bulkEntryContainer > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  /* Studio Audio & Workflow Guide Cards (Single Track, Batch, Analyzer) */
  #singleTrackTipsGuide,
  #bulkTrackTipsGuide,
  #analyzerTrackTipsGuide,
  .studio-tips-guide-card {
    flex-direction: column !important;
    padding: 1.15rem 0.95rem !important;
    gap: 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #singleTrackTipsGuide > div:first-child,
  #bulkTrackTipsGuide > div:first-child,
  #analyzerTrackTipsGuide > div:first-child,
  .studio-tips-guide-icon {
    display: none !important;
  }

  #singleTrackTipsGuide > div:last-child,
  #bulkTrackTipsGuide > div:last-child,
  #analyzerTrackTipsGuide > div:last-child,
  .studio-tips-guide-content {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #singleTrackTipsGuide h4,
  #bulkTrackTipsGuide h4,
  #analyzerTrackTipsGuide h4,
  .studio-tips-guide-card h4 {
    font-size: 1.12rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    margin-bottom: 0.4rem !important;
  }

  #singleTrackTipsGuide button,
  #bulkTrackTipsGuide button,
  #analyzerTrackTipsGuide button,
  .studio-tips-guide-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    margin-top: 0.4rem !important;
    padding: 8px 14px !important;
    box-sizing: border-box !important;
  }

  /* Force all auto-fit wide minmax grids in guides & modals to 1 column on mobile */
  #singleTrackTipsGuide div[style*="grid-template-columns"],
  #bulkTrackTipsGuide div[style*="grid-template-columns"],
  #analyzerTrackTipsGuide div[style*="grid-template-columns"],
  .studio-tips-guide-grid {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #singleTrackTipsGuide div[style*="grid-template-columns"] > div,
  #bulkTrackTipsGuide div[style*="grid-template-columns"] > div,
  #analyzerTrackTipsGuide div[style*="grid-template-columns"] > div {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* --------------------------------------------------------------------------
     Page 4: About Us & Neural Engine Viewport Reflow
     -------------------------------------------------------------------------- */
  .about-hero-box {
    padding: 1.25rem 0.85rem !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .about-hero-box h2 {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .about-hero-box p {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    word-break: break-word !important;
  }

  .about-hero-box div[style*="display: flex; flex-wrap: wrap"] {
    gap: 0.35rem !important;
  }

  .about-hero-box .hero-chip-badge {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.55rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* About Us Product Sequential Cards (BeatUnzip, ComposerMind, Scoreunzip, Wavewash) */
  .about-product-card,
  #view-about div[style*="border-left: 4px solid"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.15rem 0.85rem !important;
    gap: 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .about-product-card > div:first-child,
  #view-about div[style*="border-left: 4px solid"] > div:first-child {
    padding: 10px !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .about-product-card > div:first-child svg,
  #view-about div[style*="border-left: 4px solid"] > div:first-child svg {
    width: 24px !important;
    height: 24px !important;
  }

  .about-product-card > div:last-child,
  #view-about div[style*="border-left: 4px solid"] > div:last-child {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .about-product-card h4,
  #view-about div[style*="border-left: 4px solid"] h4 {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Internal Feature Grids inside About Us Cards (Scoreunzip & Wavewash 4 boxes, BeatUnzip 8 bullets) */
  #view-about div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #view-about div[style*="grid-template-columns"] > div {
    width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Bottom Tags Chips Row inside Product Cards */
  #view-about div[style*="display:flex; gap: 1rem"],
  #view-about div[style*="display:flex; gap: 0.75rem"] {
    flex-direction: column !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }

  #view-about div[style*="display:flex; gap: 1rem"] > span,
  #view-about div[style*="display:flex; gap: 0.75rem"] > span {
    width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
    font-size: 0.78rem !important;
  }

  /* Founder Card in About Us */
  .about-founder-card,
  #view-about div[style*="border:1px solid var(--border-subtle)"] {
    flex-direction: column !important;
    padding: 1.15rem 0.85rem !important;
    gap: 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* --------------------------------------------------------------------------
     Page 6: User Profile & Telemetry Dashboard Reflow
     -------------------------------------------------------------------------- */
  .profile-hero-banner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1.25rem 0.85rem !important;
    gap: 1.15rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .profile-hero-left {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .profile-avatar-container {
    width: 76px !important;
    height: 76px !important;
    margin: 0 auto !important;
  }

  .profile-identity-info {
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  .profile-title-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .profile-name {
    font-size: 1.35rem !important;
    text-align: center !important;
  }

  .profile-contact-line {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .profile-email-badge {
    max-width: 100% !important;
    word-break: break-all !important;
    font-size: 0.74rem !important;
    text-align: center !important;
    padding: 4px 10px !important;
  }

  #btnHeroSignOut {
    margin: 6px auto 0 !important;
  }

  .profile-hero-right {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .hero-telemetry-pill {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.65rem 0.85rem !important;
  }

  .profile-dash-tabs {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    gap: 0.4rem !important;
    padding-bottom: 0.65rem !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .profile-dash-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .prof-tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    padding: 0.55rem 0.85rem !important;
  }

  .prof-content-card {
    padding: 1.15rem 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .card-section-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .billing-header-actions,
  .billing-header-actions button {
    width: 100% !important;
    justify-content: center !important;
  }

  .prof-kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .prof-telemetry-card {
    padding: 1.15rem 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .auto-renewal-status-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .membership-billing-mgmt-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1.15rem 0.85rem !important;
    gap: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .membership-billing-mgmt-card > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .membership-billing-mgmt-card > div:last-child {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .membership-billing-mgmt-card button {
    width: 100% !important;
    justify-content: center !important;
  }

  .orders-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .identity-form-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .avatar-choices-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  /* Technical Specs Modal on Mobile */
  .diag-modal-box {
    width: 95vw !important;
    max-width: 95vw !important;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
  }

  .diag-modal-box div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Music Production Cards Padding */
  .music-prod-card {
    padding: 1.15rem 0.95rem !important;
    min-height: auto !important;
  }

  .studio-path-input-wrap {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .studio-path-input-wrap input {
    font-size: 0.78rem !important;
    min-width: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   3. SMALL MOBILE PHONES BREAKPOINT (<= 540px)
   -------------------------------------------------------------------------- */
@media (max-width: 540px) {
  .topbar-mobile-brand-name {
    font-size: 0.92rem !important;
  }

  .metrics-quad-grid {
    grid-template-columns: 1fr !important;
  }

  .about-features-grid {
    grid-template-columns: 1fr !important;
  }

  .transport-title {
    max-width: 95px !important;
  }

  .user-profile-badge {
    max-width: none !important;
  }

  .user-name-mini {
    max-width: none !important;
  }

  /* Floating modals must fit within mobile screen bounds */
  .auth-modal-card,
  .verifier-modal-card {
    width: 95vw !important;
    max-width: 95vw !important;
    padding: 1.25rem 1rem !important;
  }
}



