/* === AMZ Studio v7.0 — Serene Sound Sanctuary (Twilight Pastel & Midnight Indigo) === */
:root,
[data-theme="dark"] {
  --ease-silk: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-audio: cubic-bezier(0.22, 1, 0.36, 1);
  --bg: #0f1420;
  --bg-mesh:
    radial-gradient(ellipse 70% 48% at 14% -4%, rgba(124, 142, 245, 0.14) 0%, transparent 64%),
    radial-gradient(ellipse 62% 45% at 88% 104%, rgba(110, 231, 216, 0.09) 0%, transparent 62%),
    radial-gradient(ellipse 48% 36% at 50% 96%, rgba(242, 201, 138, 0.05) 0%, transparent 66%);
  --rail: rgba(13, 18, 30, 0.94);
  --surface: rgba(20, 27, 43, 0.84);
  --surface-2: rgba(26, 35, 56, 0.88);
  --surface-3: rgba(34, 46, 72, 0.95);
  --border: rgba(186, 198, 238, 0.10);
  --border-strong: rgba(140, 154, 247, 0.28);
  --glass-rim: inset 0 1px 0 rgba(235, 240, 255, 0.07);
  --text: #f1f4fc;
  --text-muted: #9aa7c5;
  --text-dim: #6e7b9a;
  --brand-1: #7c8ef5;
  --brand-2: #a5b4fc;
  --aurora: #6ee7d8;
  --lamp: #f2c98a;
  --brand-grad: linear-gradient(135deg, #687be8 0%, #8e9cf8 55%, #6ee7d8 100%);
  --brand-soft: rgba(124, 142, 245, 0.14);
  --brand-border: rgba(142, 156, 248, 0.36);
  --neon-glow: 0 10px 28px rgba(104, 123, 232, 0.26), 0 0 18px rgba(110, 231, 216, 0.10);
  --white-pill-bg: #ffffff;
  --white-pill-text: #111827;
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --warning: #f2c98a;
  --warning-soft: rgba(242, 201, 138, 0.15);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.14);
  --discord: #5865f2;
  --shadow: 0 18px 44px rgba(5, 8, 18, 0.52);
  --nav-glass: rgba(15, 20, 32, 0.74);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa7c5' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

[data-theme="light"] {
  --ease-silk: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-audio: cubic-bezier(0.22, 1, 0.36, 1);
  --bg: #f5f6fb;
  --bg-mesh:
    radial-gradient(ellipse 70% 42% at 12% -8%, rgba(124, 142, 245, 0.11) 0%, transparent 60%),
    radial-gradient(ellipse 65% 42% at 90% 105%, rgba(110, 231, 216, 0.12) 0%, transparent 60%);
  --rail: rgba(255, 255, 255, 0.94);
  --surface: rgba(255, 255, 255, 0.95);
  --surface-2: #edf0f9;
  --surface-3: #e1e6f5;
  --border: rgba(30, 41, 74, 0.09);
  --border-strong: rgba(99, 114, 224, 0.28);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.90);
  --text: #161d31;
  --text-muted: #4f5b78;
  --text-dim: #7986a6;
  --brand-1: #5a6ce0;
  --brand-2: #4f5fd4;
  --aurora: #0d9488;
  --lamp: #c98a3c;
  --brand-grad: linear-gradient(135deg, #5a6ce0 0%, #7687f2 55%, #2bb8a8 100%);
  --brand-soft: rgba(90, 108, 224, 0.10);
  --brand-border: rgba(90, 108, 224, 0.30);
  --neon-glow: 0 8px 22px rgba(90, 108, 224, 0.20);
  --white-pill-bg: #161d31;
  --white-pill-text: #ffffff;
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.12);
  --warning: #c98a3c;
  --warning-soft: rgba(201, 138, 60, 0.13);
  --danger: #e11d48;
  --danger-soft: rgba(225, 29, 72, 0.11);
  --discord: #5865f2;
  --shadow: 0 10px 28px rgba(22, 29, 49, 0.07);
  --nav-glass: rgba(255, 255, 255, 0.88);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234f5b78' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image: var(--bg-mesh);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.font-display {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}
.mono { font-family: 'JetBrains Mono', monospace; }

/* === Brand Emblem === */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(165, 180, 252, 0.40);
  box-shadow: 0 4px 16px rgba(15, 20, 32, 0.40);
  flex-shrink: 0;
}
.brand-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.brand-title span { color: var(--brand-2); }
[data-theme="light"] .brand-title span { color: var(--brand-1); }

/* ==========================================================================
   SERENE SOUND SANCTUARY — FLOATING MINIMAL NAVBAR
   ========================================================================== */
.serene-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 20px clamp(20px, 5vw, 68px);
}
.serene-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nav-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(186, 198, 238, 0.08);
  box-shadow: 0 12px 36px rgba(6, 10, 22, 0.32);
  opacity: 0;
  transition: opacity 420ms var(--ease-silk);
  pointer-events: none;
  z-index: -1;
}
.serene-nav.scrolled::before { opacity: 1; }

.serene-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.serene-nav-right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}
.serene-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 36px);
}
.serene-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(244, 247, 255, 0.80);
  letter-spacing: 0.03em;
  transition: opacity 300ms var(--ease-silk), color 300ms var(--ease-silk);
}
.serene-nav-link:hover,
.serene-nav-link.active {
  color: #ffffff;
  opacity: 1;
}

.serene-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11.5px;
  color: rgba(241, 244, 252, 0.45);
}
.serene-lang-btn {
  border: none;
  background: transparent;
  color: rgba(241, 244, 252, 0.56);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 6px;
  cursor: pointer;
  transition: color 280ms var(--ease-silk);
}
.serene-lang-btn.active {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--aurora);
}

/* Calm Airy Pill & Ghost Buttons */
.serene-pill-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 32px;
  border-radius: 999px;
  background: #ffffff;
  color: #131a2c;
  border: 1px solid rgba(255, 255, 255, 0.92);
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(15, 20, 42, 0.24);
  transition: transform 360ms var(--ease-silk), box-shadow 360ms var(--ease-silk), opacity 280ms var(--ease-silk);
}
.serene-pill-white:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 16px 38px rgba(15, 20, 42, 0.34), 0 0 24px rgba(255, 255, 255, 0.22);
}
.serene-pill-white:active { transform: scale(0.98); }

.serene-pill-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(15, 20, 36, 0.24);
  color: #ffffff;
  border: 1px solid rgba(241, 244, 252, 0.42);
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 340ms var(--ease-silk), border-color 340ms var(--ease-silk), background-color 340ms var(--ease-silk);
}
.serene-pill-ghost:hover {
  transform: translate3d(0, -1px, 0);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   SECTION 1: SERENE TWILIGHT HERO WITH MULTI-LAYER DAMPED PARALLAX
   ========================================================================== */
.serene-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #0f1420;
}
.serene-hero-bg {
  position: absolute;
  inset: -1% 0 -5% 0;
  transform: translate3d(0, var(--px-bg, 0px), 0);
  will-change: transform;
  z-index: 0;
  overflow: hidden;
}
.serene-scene-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 36% 62%;
  display: block;
  pointer-events: none;
  user-select: none;
}
.serene-split-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  pointer-events: none;
  user-select: none;
}
.auth-scene-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 36% 62%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
/* Gentle twilight readability veil — airy, never heavy */
.serene-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 29, 54, 0.36) 0%, rgba(22, 29, 54, 0.08) 28%, rgba(15, 20, 32, 0.06) 66%, rgba(15, 20, 32, 0.96) 98%, #0f1420 100%),
    radial-gradient(ellipse 48% 54% at 72% 48%, rgba(28, 36, 72, 0.52) 0%, rgba(36, 44, 84, 0.24) 48%, transparent 76%);
  pointer-events: none;
  z-index: 1;
}
/* Multi-plane foreground horizon ridge rising smoothly into #0f1420 */
.serene-hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: clamp(110px, 17vh, 185px);
  z-index: 2;
  pointer-events: none;
  transform: translate3d(0, var(--px-fg, 0px), 0);
  will-change: transform;
}
.serene-hero-horizon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Soft floating ambient light motes (pure GPU transform + opacity) */
.serene-motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.mote {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 240, 0.92) 0%, rgba(214, 198, 255, 0.45) 50%, transparent 75%);
  will-change: transform, opacity;
  animation: moteFloat var(--dur, 14s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes moteFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.92); opacity: 0.16; }
  50% { transform: translate3d(var(--dx, 18px), var(--dy, -26px), 0) scale(1.12); opacity: 0.56; }
}

.serene-hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 112px clamp(24px, 6vw, 72px) 120px;
  display: flex;
  justify-content: flex-end;
}
.serene-hero-stack {
  position: relative;
  width: 100%;
  max-width: 500px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate3d(0, var(--px-txt, 0px), 0);
  opacity: var(--px-op, 1);
  will-change: transform, opacity;
}
/* Live Animated Soundwave Canvas Behind Hero Title & Subtitle */
.hero-wave-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  max-width: 96vw;
  height: 160px;
  transform: translate(-50%, -62%);
  pointer-events: none;
  z-index: -1;
}
.serene-wordmark {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.1vw, 54px);
  line-height: 1.06;
  letter-spacing: 0.20em;
  text-indent: 0.20em;
  white-space: nowrap;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 8px 34px rgba(18, 24, 52, 0.48), 0 2px 10px rgba(18, 24, 52, 0.28);
  margin: 0 0 14px;
}
.serene-tagline {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 253, 252, 0.94);
  text-shadow: 0 3px 16px rgba(16, 22, 48, 0.58);
  margin: 0 0 28px;
}
.serene-hero-note {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(246, 248, 255, 0.90);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(15, 20, 42, 0.65);
}
.serene-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 255, 0.62);
  transition: color 300ms var(--ease-silk), opacity 300ms var(--ease-silk);
}
.serene-scroll-cue:hover { color: #ffffff; }
.scroll-line {
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, rgba(226, 232, 255, 0.72), transparent);
  animation: scrollBreathe 2.6s ease-in-out infinite;
}
@keyframes scrollBreathe {
  0%, 100% { transform: scaleY(0.75); opacity: 0.45; }
  50% { transform: scaleY(1.1); opacity: 0.95; }
}

/* ==========================================================================
   SECTION 2: SEAMLESS MIDNIGHT STUDIO SPLIT (LEFT COPY + RIGHT PRODUCER ART)
   ========================================================================== */
.serene-split {
  position: relative;
  background: #0f1420;
  padding: clamp(92px, 12vh, 148px) 0;
  overflow: hidden;
}
.serene-split-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(68%, 980px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.serene-split-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  user-select: none;
}
.serene-split-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, #0f1420 0%, rgba(15, 20, 32, 0.88) 24%, rgba(15, 20, 32, 0.14) 56%, rgba(15, 20, 32, 0.14) 100%),
    linear-gradient(180deg, #0f1420 0%, transparent 18%, transparent 82%, #0f1420 100%);
  pointer-events: none;
}
.serene-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 56px);
}
.serene-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-2);
  opacity: 0.85;
  margin-bottom: 12px;
  display: inline-block;
}
.serene-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f6f8ff;
  margin: 0 0 18px;
}
.serene-body {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  max-width: 440px;
  margin-top: 8px;
}
.cap-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(235, 240, 255, 0.86);
  letter-spacing: 0.01em;
}
.cap-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--aurora);
  stroke-width: 1.9;
  fill: none;
  flex-shrink: 0;
  opacity: 0.9;
}

/* ==========================================================================
   SECTION 3: SERENE 3D PERSPECTIVE STUDIO SHOWCASE CAROUSEL
   ========================================================================== */
.serene-showcase {
  position: relative;
  padding: clamp(88px, 11vh, 136px) 0;
  background: linear-gradient(180deg, #0f1420 0%, #151c31 50%, #0f1420 100%);
  overflow: hidden;
}
.stage-frame {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 56px) clamp(18px, 4vw, 48px) 36px;
  border-radius: 24px;
  background: radial-gradient(ellipse 75% 60% at 50% 42%, rgba(124, 142, 245, 0.10), rgba(15, 20, 32, 0.56) 72%);
  border: 1px solid rgba(165, 180, 252, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 64px rgba(5, 8, 18, 0.45);
}
.stage-deck {
  position: relative;
  height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  margin: 10px 0 28px;
}
.stage-card {
  position: absolute;
  width: min(330px, 84vw);
  min-height: 368px;
  padding: 26px 24px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(28, 37, 62, 0.94) 0%, rgba(17, 23, 39, 0.96) 100%);
  border: 1px solid rgba(165, 180, 252, 0.20);
  box-shadow: 0 22px 54px rgba(4, 7, 16, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  will-change: transform, opacity;
  transition:
    transform 680ms var(--ease-silk),
    opacity 620ms var(--ease-silk),
    border-color 420ms var(--ease-silk),
    box-shadow 420ms var(--ease-silk);
}
.stage-card[data-pos="center"] {
  z-index: 3;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  border-color: rgba(110, 231, 216, 0.46);
  box-shadow: 0 28px 68px rgba(4, 7, 16, 0.68), 0 0 38px rgba(124, 142, 245, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.stage-card[data-pos="left"] {
  z-index: 2;
  opacity: 0.54;
  transform: translate3d(-86%, 10px, -90px) scale(0.86) rotateY(15deg);
}
.stage-card[data-pos="right"] {
  z-index: 2;
  opacity: 0.54;
  transform: translate3d(86%, 10px, -90px) scale(0.86) rotateY(-15deg);
}
.stage-card[data-pos="left"]:hover,
.stage-card[data-pos="right"]:hover {
  opacity: 0.78;
  border-color: rgba(165, 180, 252, 0.36);
}
.stage-card-visual {
  position: relative;
  height: 150px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(124, 142, 245, 0.16), rgba(12, 16, 28, 0.78) 76%);
  border: 1px solid rgba(165, 180, 252, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
/* Subtle Living Micro-Motion on Cards 02 & 03 */
.cloud-arrow-float {
  animation: cloudFloat 3.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes cloudFloat {
  0%, 100% { transform: translate3d(0, 2px, 0); opacity: 0.86; }
  50% { transform: translate3d(0, -4px, 0); opacity: 1; }
}
.cloud-dot-pulse {
  animation: dotSoftPulse 2.8s ease-in-out infinite;
}
.cloud-dot-pulse-b {
  animation: dotSoftPulse 2.8s ease-in-out 1.4s infinite;
}
@keyframes dotSoftPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.95; }
}
.shield-ring-spin {
  transform-origin: 110px 56px;
  animation: shieldOrbit 22s linear infinite;
}
@keyframes shieldOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.stage-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--aurora);
  text-align: center;
}
.stage-card-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
}
.stage-card-desc {
  font-size: 13px;
  line-height: 1.66;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.stage-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stage-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: rgba(226, 232, 255, 0.78);
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 4px;
  transition: color 280ms var(--ease-silk), transform 280ms var(--ease-silk);
}
.stage-nav-btn:hover { color: #ffffff; }
.stage-nav-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(124, 142, 245, 0.18);
  border: 1px solid rgba(165, 180, 252, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  transition: background-color 280ms var(--ease-silk), border-color 280ms var(--ease-silk);
}
.stage-nav-btn:hover .stage-nav-ico {
  background: rgba(124, 142, 245, 0.34);
  border-color: var(--aurora);
}
.stage-dashes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.stage-dash {
  width: 26px;
  height: 3px;
  border-radius: 999px;
  border: none;
  background: rgba(165, 180, 252, 0.24);
  cursor: pointer;
  padding: 0;
  transition: background-color 360ms var(--ease-silk), width 360ms var(--ease-silk);
}
.stage-dash.active {
  width: 42px;
  background: linear-gradient(90deg, var(--brand-1), var(--aurora));
}

/* ==========================================================================
   SECTION 4: SERENE STUDIO PASS PRICING & FOOTER
   ========================================================================== */
.serene-pricing {
  position: relative;
  padding: clamp(88px, 11vh, 136px) 0 48px;
  background:
    radial-gradient(ellipse 75% 44% at 50% 104%, rgba(124, 142, 245, 0.16) 0%, transparent 66%),
    radial-gradient(ellipse 55% 36% at 50% 108%, rgba(110, 231, 216, 0.10) 0%, transparent 64%),
    #0f1420;
}

/* Gentle Unforced Entrance Animations */
.hero-stagger {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  animation: sereneEnter 620ms var(--ease-silk) forwards;
  animation-delay: calc(var(--stagger, 0) * 70ms);
}
@keyframes sereneEnter {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 840ms var(--ease-silk),
    transform 840ms var(--ease-silk);
  transition-delay: calc(var(--reveal-idx, 0) * 80ms);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Pricing Cards (Serene Glass — Calm Hover Elevation) */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: rgba(20, 27, 43, 0.74);
  border: 1px solid rgba(186, 198, 238, 0.11);
  border-radius: 16px;
  padding: 26px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    opacity 840ms var(--ease-silk),
    transform 360ms var(--ease-silk),
    border-color 360ms var(--ease-silk);
}
.pricing-card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(165, 180, 252, 0.28);
}
.pricing-popular {
  border-color: rgba(110, 231, 216, 0.42);
  background: linear-gradient(170deg, rgba(28, 38, 64, 0.86) 0%, rgba(19, 26, 43, 0.82) 100%);
  box-shadow: 0 20px 48px rgba(5, 8, 20, 0.45), 0 0 34px rgba(124, 142, 245, 0.12);
}

/* Auth & Discord Gate Full-Bleed Serene Backdrop */
.auth-scene-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 20px;
  overflow: hidden;
}
.auth-scene-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  z-index: 0;
}
.auth-scene-scrim {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(15, 20, 32, 0.50) 0%, rgba(11, 15, 25, 0.86) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   INNER CREATOR STUDIO SPA SHELL (Serene Midnight Indigo & Aurora Teal)
   ========================================================================== */
.spa-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}

.spa-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--rail);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  z-index: 30;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 24px;
}
.rail-btn {
  position: relative;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: transform 240ms var(--ease-silk), background-color 240ms var(--ease-silk), color 240ms var(--ease-silk);
  text-align: left;
}
.rail-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rail-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.rail-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}
.rail-btn:active { transform: scale(0.985); }
.rail-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(104, 123, 232, 0.92), rgba(124, 142, 245, 0.82));
  box-shadow: var(--neon-glow);
}

.rail-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--glass-rim);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.spa-stage {
  min-width: 0;
  padding: 24px 26px 80px;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}
.spa-stage h1 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.spa-view {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp 460ms var(--ease-silk);
}
.spa-view.active { display: flex; }

@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* === Mobile Header + Bottom Dock === */
.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 35;
  height: 58px;
  padding: 0 16px;
  background: var(--rail);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
}
.mobile-dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  background: rgba(13, 18, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 6px;
  gap: 0;
  justify-content: space-around;
  box-shadow: var(--shadow);
}
[data-theme="light"] .mobile-dock { background: rgba(255, 255, 255, 0.95); }

.dock-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 5);
  border-radius: 11px;
  background: linear-gradient(135deg, #687be8, #8e9cf8);
  box-shadow: 0 4px 16px rgba(104, 123, 232, 0.36);
  transform: translate3d(calc(var(--dock-idx, 0) * 100%), 0, 0);
  transition: transform 300ms var(--ease-silk), opacity 240ms var(--ease-silk);
  pointer-events: none;
  z-index: 0;
}

.dock-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 4px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: transform 200ms var(--ease-silk), color 200ms var(--ease-silk);
}
.dock-btn:active { transform: scale(0.95); }
.dock-btn svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.9; fill: none; }
.dock-btn.active { color: #ffffff; }

/* === Cards & Surfaces === */
.card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--glass-rim), var(--shadow);
}
.card-inset {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  box-shadow: var(--glass-rim);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 260ms var(--ease-silk), opacity 220ms var(--ease-silk), border-color 260ms var(--ease-silk);
}
.btn:hover:not(:disabled) { transform: translate3d(0, -1px, 0); }
.btn:active:not(:disabled) { transform: scale(0.975); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-white {
  background: var(--white-pill-bg);
  color: var(--white-pill-text);
  box-shadow: 0 8px 24px rgba(5, 8, 20, 0.24);
}
.btn-glass {
  background: rgba(20, 27, 43, 0.65);
  color: #ffffff;
  border-color: rgba(186, 198, 238, 0.24);
}
.btn-primary {
  background: linear-gradient(135deg, #6578e6 0%, #8393f7 100%);
  color: #ffffff;
  box-shadow: var(--neon-glow);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--border-strong); }
.btn-success { background: var(--success-soft); color: var(--success); border-color: rgba(52, 211, 153, 0.32); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(251, 113, 133, 0.32); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }

/* === Inputs & Selects === */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.01em; }
.hint { font-size: 11.5px; color: var(--text-dim); }

.input, .select, .textarea {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 240ms var(--ease-silk), box-shadow 240ms var(--ease-silk);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.input::file-selector-button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 5px 12px;
  margin-right: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.select { padding-right: 32px; cursor: pointer; }
.textarea { min-height: 110px; resize: vertical; }
.range-slider { width: 100%; accent-color: var(--brand-1); cursor: pointer; }

/* === Badges & Pills === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-brand { background: var(--brand-soft); color: var(--brand-2); border: 1px solid var(--brand-border); }
[data-theme="light"] .badge-brand { color: var(--brand-1); }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.badge-success { background: var(--success-soft); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.26); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green { background: var(--success); box-shadow: 0 0 8px var(--success); }
.dot-amber { background: var(--warning); }
.dot-gray { background: var(--text-dim); }

/* === Creator Studio Unified Controls === */
.status-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--glass-rim), var(--shadow);
}

.source-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--surface-2);
  padding: 5px;
  border-radius: 11px;
  border: 1px solid var(--border);
}
.source-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 200ms var(--ease-silk), background-color 240ms var(--ease-silk), color 240ms var(--ease-silk);
}
.source-tab:active { transform: scale(0.98); }
.source-tab.active {
  background: var(--white-pill-bg);
  color: var(--white-pill-text);
  box-shadow: 0 4px 14px rgba(5, 8, 20, 0.24);
}

/* Speed Mode Cards */
.speed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.speed-card {
  position: relative;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  transition: transform 240ms var(--ease-silk), border-color 240ms var(--ease-silk), background-color 240ms var(--ease-silk);
}
.speed-card:hover { transform: translate3d(0, -1px, 0); border-color: var(--border-strong); }
.speed-card:active { transform: scale(0.985); }
.speed-card.active { border-color: var(--brand-2); background: var(--brand-soft); }
.speed-card-val { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 15px; }
.speed-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.dest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  padding: 30px 18px;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  transition: transform 260ms var(--ease-silk), border-color 260ms var(--ease-silk), background-color 260ms var(--ease-silk);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--aurora);
  background: var(--brand-soft);
}

/* === Live Pipeline Stepper & Wavy Progress Bar === */
.job-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  contain: content;
  animation: fadeUp 420ms var(--ease-silk);
}
.pipeline-wrap { display: flex; flex-direction: column; gap: 10px; }
.pipeline-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.p-step {
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: transform 260ms var(--ease-silk), opacity 260ms var(--ease-silk);
}
.p-step-badge {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  flex-shrink: 0;
}
.p-step-num { transition: transform 220ms var(--ease-silk), opacity 220ms var(--ease-silk); }
.p-step-check {
  position: absolute;
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.35);
  transition: transform 260ms var(--ease-silk), opacity 220ms var(--ease-silk);
}
.p-step.active {
  color: var(--brand-2);
  border-color: var(--brand-border);
  background: var(--brand-soft);
}
[data-theme="light"] .p-step.active { color: var(--brand-1); }
.p-step.active .p-step-badge { border-color: var(--brand-2); color: var(--brand-2); }
.p-step.done {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.08);
}
.p-step.done .p-step-badge { background: var(--success); border-color: var(--success); }
.p-step.done .p-step-num { opacity: 0; transform: scale(0.4); }
.p-step.done .p-step-check { opacity: 1; transform: scale(1); }

.wave-progress-track {
  position: relative;
  height: 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.wave-progress-fill {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--brand-grad);
  transform-origin: left center;
  transform: scaleX(var(--prog, 0.08));
  transition: transform 520ms var(--ease-silk);
  overflow: hidden;
  will-change: transform;
}
.wave-progress-crest {
  position: absolute;
  inset: 0;
  width: 200%;
  height: 100%;
  display: flex;
  opacity: 0.48;
  will-change: transform;
  animation: barWaveFlow 2.1s linear infinite;
}
.wave-progress-crest svg { width: 50%; height: 100%; flex-shrink: 0; }
@keyframes barWaveFlow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.wave-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.wave-canvas { flex: 1; min-width: 110px; }

/* Asset ID Fade-In & Copy Feedback */
.asset-fade-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  animation: assetReveal 500ms var(--ease-silk) both;
}
@keyframes assetReveal {
  from { opacity: 0; transform: translate3d(0, 7px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.copy-chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 220ms var(--ease-silk), border-color 220ms var(--ease-silk);
}
.copy-chip svg, .btn svg {
  width: 13.5px;
  height: 13.5px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.copy-chip:hover { border-color: var(--aurora); background: var(--brand-soft); }
.copy-chip:active { transform: scale(0.97); }
.copy-chip code { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--brand-2); }
[data-theme="light"] .copy-chip code { color: var(--brand-1); }

.copy-chip.is-copied,
.btn.is-copied {
  background: var(--success-soft) !important;
  border-color: rgba(52, 211, 153, 0.50) !important;
  color: var(--success) !important;
  box-shadow: none !important;
}
.copy-check-ico {
  stroke: var(--success) !important;
  stroke-width: 2.6 !important;
  animation: checkPop 260ms var(--ease-silk) both;
}
@keyframes checkPop {
  from { opacity: 0; transform: scale(0.45); }
  to { opacity: 1; transform: scale(1); }
}

/* Grids & Balanced Bento Columns */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.bento-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bento-fill { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.table-wrap::-webkit-scrollbar { height: 7px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(140, 154, 247, 0.045); }

/* Inline Audio Library Player Mounted Directly Under Active Song Row */
.lib-player-row td { padding: 6px 8px 14px !important; background: transparent !important; }
.lib-player-row:hover td { background: transparent !important; }
.lib-inline-player {
  animation: fadeUp 300ms var(--ease-silk);
  box-shadow: 0 8px 26px rgba(104, 123, 232, 0.14);
}

.lib-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.lib-btn { height: 32px; padding: 0 11px; border-radius: 8px; font-size: 12px; font-weight: 600; gap: 5px; }
.lib-icon-btn { width: 32px; height: 32px; padding: 0; border-radius: 8px; }
.lib-select {
  width: auto;
  min-width: 118px;
  max-width: 155px;
  height: 32px;
  padding: 0 28px 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 9px center;
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.76);
  backdrop-filter: blur(10px);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--glass-rim), var(--shadow);
  animation: fadeUp 320ms var(--ease-silk);
}

.toast-stack {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--brand-border);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: fadeUp 280ms var(--ease-silk);
}

/* Responsive Mobile & Tablet */
@media (max-width: 960px) {
  .serene-nav-links { display: none; }
  .serene-hero-inner { justify-content: center; padding-top: 120px; }
  .serene-split-art { width: 100%; opacity: 0.34; }
  .stage-card[data-pos="left"] { transform: translate3d(-55%, 10px, -110px) scale(0.80) rotateY(12deg); opacity: 0.25; }
  .stage-card[data-pos="right"] { transform: translate3d(55%, 10px, -110px) scale(0.80) rotateY(-12deg); opacity: 0.25; }
  .spa-shell { grid-template-columns: 1fr; }
  .spa-rail { display: none; }
  .mobile-topbar { display: flex; }
  .mobile-dock { display: flex; }
  .spa-stage { padding: 18px 14px 96px; }
  .speed-grid, .pipeline-steps { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Adaptive Mobile Card Layout for Audio Library on Phones (<= 720px) */
@media (max-width: 720px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-card[data-pos="left"], .stage-card[data-pos="right"] { opacity: 0; pointer-events: none; }
  .lib-table thead { display: none; }
  .lib-table, .lib-table tbody { display: block; width: 100%; }
  .lib-table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
  }
  .lib-table tbody tr:last-child { margin-bottom: 0; }
  .lib-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border-bottom: none;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
  }
  .lib-table tbody td[data-label]::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin-right: 10px;
    flex-shrink: 0;
  }
  .lib-table tbody td:first-child {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .lib-table tbody td:first-child .hint { white-space: normal !important; }
  .lib-table tbody td:last-child { padding-top: 8px; border-top: 1px solid var(--border); }
  .lib-table tbody td:last-child .lib-inline { width: 100%; justify-content: space-between !important; flex-wrap: wrap; }
  .lib-table tbody td:last-child .lib-btn { flex: 1; }
  .lib-table .lib-inline { flex-wrap: wrap; justify-content: flex-end; }
  .lib-table tbody tr.lib-player-row {
    padding: 0;
    border: none;
    background: transparent;
    margin-top: -4px;
    margin-bottom: 12px;
  }
  .lib-table tbody tr.lib-player-row td {
    display: block;
    width: 100%;
    padding: 0 !important;
    border: none !important;
  }
}

/* === Accessibility: Strict Reduced-Motion Support === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .hero-stagger { opacity: 1 !important; transform: none !important; }
  .mote, .scroll-line, .wave-progress-crest, .cloud-arrow-float, .cloud-dot-pulse, .cloud-dot-pulse-b, .shield-ring-spin { animation: none !important; }
}
