/* ==========================================================================
   LONGTIENGPHIM.ONLINE — Commercial SaaS Web Portal Stylesheet
   Aesthetic System: Ember Obsidian + EmberAI Daylight
   Strict Modular Type Scale (>= 12px floor) · Tabular Numerals · WCAG AA
   ========================================================================== */

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/BeVietnamPro-400-vietnamese.woff2") format("woff2"),
       url("/static/BeVietnamPro-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/BeVietnamPro-500-vietnamese.woff2") format("woff2"),
       url("/static/BeVietnamPro-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/BeVietnamPro-600-vietnamese.woff2") format("woff2"),
       url("/static/BeVietnamPro-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/BeVietnamPro-700-vietnamese.woff2") format("woff2"),
       url("/static/BeVietnamPro-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/BeVietnamPro-800-vietnamese.woff2") format("woff2"),
       url("/static/BeVietnamPro-800-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/JetBrainsMono-500-vietnamese.woff2") format("woff2"),
       url("/static/JetBrainsMono-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/JetBrainsMono-600-vietnamese.woff2") format("woff2"),
       url("/static/JetBrainsMono-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/JetBrainsMono-700-vietnamese.woff2") format("woff2"),
       url("/static/JetBrainsMono-700-latin.woff2") format("woff2");
}

:root {
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* Ember Obsidian (Default Dark Cinema Palette) */
  --bg-deep: #05060b;
  --bg-elevated: #0b0d14;
  --bg-surface: rgba(15, 19, 30, 0.72);
  --bg-surface-strong: rgba(18, 23, 36, 0.90);
  --bg-input: rgba(9, 12, 20, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(245, 158, 11, 0.38);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --shadow-card: 0 24px 56px -18px rgba(0, 0, 0, 0.72);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent-amber: #f59e0b;
  --accent-gold: #fde68a;
  --accent-amber-deep: #d97706;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-sky: #38bdf8;

  --grid-line: rgba(255, 255, 255, 0.035);
  --spotlight-fill: rgba(245, 158, 11, 0.11);
  --spotlight-border: rgba(253, 230, 138, 0.48);
}

html[data-theme="light"] {
  /* EmberAI Daylight (High-Contrast Ivory Studio Palette) */
  --bg-deep: #f8fafc;
  --bg-elevated: #f1f5f9;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-strong: rgba(255, 255, 255, 0.96);
  --bg-input: rgba(248, 250, 252, 0.96);
  --border-subtle: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(217, 119, 6, 0.42);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-card: 0 20px 45px -15px rgba(15, 23, 42, 0.07);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;

  --accent-amber: #d97706;
  --accent-gold: #b45309;
  --accent-amber-deep: #b45309;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;
  --accent-sky: #0284c7;

  --grid-line: rgba(15, 23, 42, 0.045);
  --spotlight-fill: rgba(245, 158, 11, 0.09);
  --spotlight-border: rgba(217, 119, 6, 0.42);
}

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

html {
  scroll-behavior: auto;
  font-size: 16px;
}

body.portal-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-elevated) 100%);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.hidden,
[hidden] {
  display: none !important;
}

/* Tabular numeric discipline across KPIs, pricing, quotas, timers, licenses */
.tabular-nums,
.kpi-value,
.price-figure,
.license-code,
.portal-table td,
.portal-badge-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   ATMOSPHERIC DEPTH: Ambient Aurora Mesh + 36px Masked Architectural Grid
   ========================================================================== */

.portal-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  will-change: transform;
  animation: auroraDrift 22s var(--ease-spring) infinite alternate;
}

.aurora-orb-amber {
  width: 680px;
  height: 540px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.13) 0%, rgba(245, 158, 11, 0) 70%);
}

.aurora-orb-crimson {
  width: 620px;
  height: 520px;
  top: 120px;
  right: -140px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.10) 0%, rgba(56, 189, 248, 0.06) 48%, rgba(5, 6, 11, 0) 72%);
  animation-delay: -9s;
}

.aurora-orb-bottom {
  width: 760px;
  height: 460px;
  bottom: -180px;
  left: 24%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.09) 0%, rgba(16, 185, 129, 0.05) 50%, rgba(5, 6, 11, 0) 74%);
  animation-delay: -15s;
}

.architectural-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 78% 64% at 50% 24%, #000 32%, transparent 92%);
  mask-image: radial-gradient(ellipse 78% 64% at 50% 24%, #000 32%, transparent 92%);
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(36px, 24px, 0) scale(1.07);
  }
}

/* ==========================================================================
   MULTI-LAYER GLASS SURFACES & REACT BITS MICRO-INTERACTIONS
   ========================================================================== */

.glass-surface {
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight), var(--shadow-card);
}

/* SpotlightCard (--mouse-x, --mouse-y updated via Constructable Stylesheet) */
.spotlight-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight), var(--shadow-card);
  transition: transform 0.36s var(--ease-spring), border-color 0.36s var(--ease-spring), box-shadow 0.36s var(--ease-spring);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    460px circle at var(--mouse-x) var(--mouse-y),
    var(--spotlight-fill),
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease-spring);
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    300px circle at var(--mouse-x) var(--mouse-y),
    var(--spotlight-border),
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease-spring);
}

.spotlight-card:hover::before,
.spotlight-card:hover::after {
  opacity: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* TiltedCard (<= 4deg gentle physical 3D tilt) */
.tilted-card {
  --tilt-rx: 0deg;
  --tilt-ry: 0deg;
  transform: perspective(1100px) rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry));
  transition: transform 0.28s var(--ease-spring), border-color 0.32s var(--ease-spring);
  will-change: transform;
}

/* ShinyText metallic headline gradient */
.shiny-text {
  background: linear-gradient(110deg, #ffffff 20%, #fde68a 48%, #f59e0b 55%, #ffffff 80%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shinySweep 7.5s linear infinite;
}

html[data-theme="light"] .shiny-text {
  background: linear-gradient(110deg, #0f172a 18%, #b45309 48%, #d97706 56%, #0f172a 82%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes shinySweep {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -20% center;
  }
}

/* StarBorder for Hero Download & Featured Plan CTAs */
.star-border-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #0b0d14;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 52%, #d97706 100%);
  border: 1px solid rgba(253, 230, 138, 0.72);
  box-shadow: 0 12px 32px -8px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring), filter 0.28s var(--ease-spring);
}

.star-border-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -8px rgba(245, 158, 11, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  filter: brightness(1.04);
}

.portal-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s var(--ease-spring), border-color 0.28s var(--ease-spring), background 0.28s var(--ease-spring);
}

.portal-btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.portal-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.22s var(--ease-spring), border-color 0.22s var(--ease-spring), background-color 0.22s var(--ease-spring), color 0.22s var(--ease-spring);
}

.portal-btn-sm:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.portal-btn-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b0d14;
  border-color: rgba(253, 230, 138, 0.65);
  font-weight: 700;
}

.portal-btn-danger {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.35);
}

html[data-theme="light"] .portal-btn-danger {
  color: #be123c;
  background: rgba(244, 63, 94, 0.10);
}

/* ==========================================================================
   FLOATING TOP NAVIGATION DOCK & LOCAL DUAL-MODE BAR
   ========================================================================== */

.portal-local-switcher-bar {
  position: relative;
  z-index: 62;
  padding: 10px 24px 0;
  display: flex;
  justify-content: center;
}

.portal-local-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
}

.portal-mode-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease-spring), border-color 0.2s var(--ease-spring);
}

.portal-mode-switch-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.portal-mode-switch-link.is-active {
  color: #0b0d14;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  border-color: rgba(253, 230, 138, 0.65);
}

.portal-header-wrap {
  position: sticky;
  top: 14px;
  z-index: 60;
  padding: 0 24px;
  margin-top: 14px;
}

.portal-dock {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.portal-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #0b0d14;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 60%, #d97706 100%);
  box-shadow: 0 8px 20px -6px rgba(245, 158, 11, 0.6);
}

.portal-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.portal-brand-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-amber);
  letter-spacing: 0.04em;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.portal-nav-btn {
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-spring), border-color 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-spring);
}

.portal-nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.portal-nav-btn.is-active {
  color: #0b0d14;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  border-color: rgba(253, 230, 138, 0.65);
  font-weight: 700;
  box-shadow: 0 6px 18px -6px rgba(245, 158, 11, 0.55);
}

.portal-dock-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-account-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

.portal-account-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.portal-account-plan-pill {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.30);
  white-space: nowrap;
}

/* ==========================================================================
   MAIN CONTAINER & ZONE SHELLS
   ========================================================================== */

.portal-main {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 24px 96px;
}

.portal-zone {
  animation: zoneReveal 0.42s var(--ease-spring);
}

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

/* Strict Modular Type Scale (Impeccable Skill) */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.30);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

.hero-h1 {
  margin: 18px 0 16px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-h2 {
  margin: 12px 0 12px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.card-h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.lead-copy {
  margin: 0 0 28px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-secondary);
}

.body-copy {
  margin: 0;
  max-width: 65ch;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-secondary);
}

/* ==========================================================================
   ZONE 1: HOME — ASYMMETRIC 7:5 HERO & 9:16 INTERACTIVE CINEMA STAGE
   ========================================================================== */

.hero-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 64px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-meta-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-cloud-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.hero-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-kpi-tile {
  padding: 16px;
  border-radius: 16px;
}

.hero-kpi-num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 4px;
}

.hero-kpi-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 9:16 Interactive Cinema Showcase Card */
.showcase-stage-shell {
  padding: 18px;
  border-radius: 24px;
}

.showcase-stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.showcase-mode-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.showcase-tab-btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease-spring);
}

.showcase-tab-btn.is-active {
  background: var(--accent-amber);
  color: #0b0d14;
  font-weight: 700;
}

.showcase-loupe-btn {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.showcase-loupe-btn.is-active {
  color: var(--accent-amber);
  border-color: var(--border-strong);
  background: rgba(245, 158, 11, 0.14);
}

.cinema-frame-916 {
  --compare-split: 52%;
  --loupe-x: 50%;
  --loupe-y: 77%;
  position: relative;
  width: auto;
  max-width: min(356px, 100%);
  max-height: min(510px, 56vh);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #05060b;
  user-select: none;
  touch-action: none;
  contain: layout paint;
  cursor: ew-resize;
}

.compare-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.compare-before-clip {
  clip-path: inset(0 calc(100% - var(--compare-split)) 0 0);
  will-change: clip-path;
}

.compare-tag {
  position: absolute;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 4;
  pointer-events: none;
}

.compare-tag-before {
  left: 12px;
  color: #fecdd3;
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.45);
}

.compare-tag-after {
  right: 12px;
  color: #a7f3d0;
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.after-vn-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  text-align: center;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(6, 8, 12, 0.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(253, 230, 138, 0.34);
  color: #fef3c7;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  clip-path: inset(0 0 0 var(--compare-split));
  will-change: clip-path;
  pointer-events: none;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-split);
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, #fde68a 20%, #f59e0b 80%, transparent 100%);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.85);
  will-change: left;
  z-index: 5;
  pointer-events: none;
}

.compare-knob {
  position: absolute;
  top: 76%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  color: #0b0d14;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

/* 2.4x Optical Detail Magnifier Loupe */
.detail-loupe {
  position: absolute;
  left: var(--loupe-x);
  top: var(--loupe-y);
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  border-radius: 999px;
  border: 2px solid #fde68a;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.78);
  background-image: url("/static/showcase/ep009_after_clean.jpg?v=20261102_soundstage_v15");
  background-repeat: no-repeat;
  background-size: 240% 240%;
  background-position: var(--loupe-x) var(--loupe-y);
  z-index: 6;
  pointer-events: none;
}

.compare-range-input {
  width: 100%;
  max-width: 356px;
  display: block;
  margin: 12px auto 0;
  accent-color: #f59e0b;
  cursor: ew-resize;
}

/* Video & Live Waveform Showcase Pane */
.showcase-video-pane {
  width: 100%;
  max-width: 356px;
  margin: 0 auto;
}

.showcase-video-el {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  background: #05060b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: block;
  object-fit: cover;
}

.episode-pill-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.ep-sample-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.ep-sample-btn.is-active {
  color: #0b0d14;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  border-color: rgba(253, 230, 138, 0.7);
  font-weight: 700;
}

.waveform-strip {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.waveform-bars span {
  width: 3px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent-amber);
  opacity: 0.55;
  transition: height 0.2s ease;
}

.waveform-bars.is-playing span:nth-child(odd) {
  animation: wavePulse 0.78s ease-in-out infinite alternate;
  opacity: 1;
}

.waveform-bars.is-playing span:nth-child(even) {
  animation: wavePulse 0.56s ease-in-out 0.2s infinite alternate;
  opacity: 0.9;
}

@keyframes wavePulse {
  0% {
    height: 6px;
  }
  100% {
    height: 21px;
  }
}

.waveform-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Asymmetric Ecosystem Bento Grid (8:4 + 4:8) */
.section-header-block {
  margin-bottom: 32px;
}

.bento-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.bento-span-8 {
  grid-column: span 8;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-span-6 {
  grid-column: span 6;
}

.bento-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.bento-tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.26);
}

.bento-bullet-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.bento-bullet-list li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bento-bullet-mark {
  color: var(--accent-emerald);
  font-weight: 700;
}

/* 3-Step Workflow */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.workflow-step-card {
  padding: 26px;
}

.workflow-step-num {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #0b0d14;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  margin-bottom: 14px;
}

/* ==========================================================================
   ZONE 2: PRICING — MULTI-CYCLE SWITCHER, 4 TIER CARDS, MATRIX, FAQ
   ========================================================================== */

.pricing-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.cycle-switcher {
  display: inline-flex;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-subtle);
}

.cycle-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-spring);
}

.cycle-btn.is-active,
.cycle-btn.is-active > span:first-child {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  color: #0b0d14;
  font-weight: 700;
  border-color: rgba(253, 230, 138, 0.7);
}

.cycle-btn.is-active > span:first-child {
  background: transparent;
  border-color: transparent;
}

.cycle-save-chip {
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-emerald);
}

.cycle-btn.is-active .cycle-save-chip {
  background: rgba(11, 13, 20, 0.16);
  color: #0b0d14;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 56px;
  align-items: stretch;
}

.plan-card {
  min-width: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.plan-card > meta,
.plan-card > link {
  display: none !important;
}

.plan-card-body {
  display: contents;
}

.plan-card-body > * {
  position: relative;
  z-index: 1;
}

.plan-card > button[data-select-plan] {
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  box-sizing: border-box;
}

@media (min-width: 721px) {
  .pricing-cards-grid {
    row-gap: 0;
    column-gap: 20px;
  }

  .plan-card {
    grid-row: span 8;
    display: grid;
    grid-template-rows: subgrid;
    gap: 0;
    align-items: start;
  }

  .plan-card .plan-top-badge {
    justify-self: start;
    align-self: start;
    margin: 0 0 12px;
  }

  .plan-card .card-h3 {
    align-self: start;
    margin: 0 0 8px;
  }

  .plan-card .body-copy {
    align-self: start;
    margin: 0 0 14px;
  }

  .plan-card .plan-price-row {
    align-self: end;
    margin: 0 0 8px;
  }

  .plan-card .plan-roi-note {
    align-self: start;
    margin: 0 0 12px;
  }

  .plan-card .plan-device-box {
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: 0 0 16px;
  }

  .plan-card .plan-feature-list {
    align-self: start;
    margin: 0 0 22px;
  }

  .plan-card > button[data-select-plan] {
    align-self: stretch;
  }
}

@media (min-width: 721px) and (max-width: 1120px) {
  .plan-card:nth-child(-n+2) {
    margin-bottom: 20px;
  }
}

@media (max-width: 720px) {
  .plan-card-body {
    display: block;
  }
}

.plan-card.is-featured {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 28px 64px -18px rgba(245, 158, 11, 0.25), var(--glass-highlight);
}

.plan-top-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.30);
  margin-bottom: 12px;
}

.launch-promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 14px 20px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.16) 0%, rgba(239, 68, 68, 0.12) 52%, rgba(56, 189, 248, 0.12) 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 14px 36px -14px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(254, 243, 199, 0.18);
}

.launch-promo-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-width: 0;
  flex: 1 1 360px;
}

.launch-promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  color: #0b0d14;
  white-space: nowrap;
}

.launch-promo-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.launch-promo-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.42);
  white-space: nowrap;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 8px;
}

.plan-price-row.is-discounted {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.plan-price-strike-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.plan-price-main-row {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.price-original {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: 0.85;
}

.price-discount-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  color: #0b0d14;
}

.matrix-col-old-price {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.78;
}

.price-figure {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.price-period {
  font-size: 13px;
  color: var(--text-muted);
}

.plan-device-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.plan-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.plan-feature-item.is-muted {
  opacity: 0.58;
}

/* Comparison Table */
.matrix-card {
  padding: 28px;
  margin-bottom: 56px;
}

.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.portal-table th {
  padding: 14px 16px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.portal-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.portal-table td:first-child {
  font-family: var(--font-sans);
  font-weight: 600;
}

.portal-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  padding: 20px 24px;
  border-radius: 16px;
}

.faq-q-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq-a-body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================================================
   ZONE 3: MEMBER DASHBOARD — LICENSE KEY, HWID MANAGER, DOWNLOAD CENTER
   ========================================================================== */

.kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.kpi-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.kpi-card {
  padding: 22px 24px;
}

.kpi-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.kpi-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.member-two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  margin-bottom: 24px;
}

.panel-card {
  padding: 26px;
}

.license-box {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.license-code {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-amber);
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.download-cards-grid.download-cards-grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1200px) {
  .download-cards-grid.download-cards-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.portal-btn-macos {
  border-color: rgba(248, 250, 252, 0.24);
}

body.is-macos-visitor #heroDownloadDmgBtn,
body.is-macos-visitor #finaleDownloadDmgBtn,
body.is-macos-visitor #memDownloadDmgCard {
  order: -1;
}

.download-item-card {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.gate-card {
  max-width: 560px;
  margin: 48px auto;
  padding: 36px;
  text-align: center;
}

/* ==========================================================================
   ZONE 4: ADMIN COMMAND CENTER — USERS, CLOUD KEYS, RELEASE PUBLISHER
   ========================================================================== */

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

.portal-input,
.portal-select,
.portal-textarea {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.22s var(--ease-spring);
}

.portal-input:focus,
.portal-select:focus,
.portal-textarea:focus {
  border-color: var(--accent-amber);
}

.portal-textarea {
  width: 100%;
  min-height: 110px;
  font-family: var(--font-mono);
  font-size: 13px;
  resize: vertical;
}

.admin-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill-active {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.30);
}

.status-pill-locked {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.32);
}

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   MODALS: QR CHECKOUT MODAL & TOAST NOTIFICATIONS
   ========================================================================== */

.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 6, 11, 0.78);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.qr-modal-card {
  width: 100%;
  max-width: 760px;
  padding: 30px;
  border-radius: 24px;
}

.qr-checkout-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}

.qr-frame {
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.qr-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.qr-scan-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #1e293b;
}

.adm-webhook-row {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: grid;
  gap: 8px;
}

.adm-webhook-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.adm-webhook-row .portal-input {
  flex: 1 1 320px;
}

.adm-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.adm-checkbox-row {
  margin: 12px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
}

.otp-verify-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.otp-code-input {
  flex: 1 1 140px;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.otp-send-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.otp-send-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .adm-form-grid-2 {
    grid-template-columns: 1fr;
  }
  .otp-verify-row {
    flex-direction: column;
  }
}

.transfer-detail-list {
  display: grid;
  gap: 10px;
}

.transfer-row {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portal-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-spring);
}

.portal-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 28px 24px 42px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1120px) {
  .hero-bento-grid {
    grid-template-columns: 1fr;
  }
  .pricing-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-span-8,
  .bento-span-4,
  .bento-span-6 {
    grid-column: span 12;
  }
  .member-two-col,
  .admin-two-col {
    grid-template-columns: 1fr;
  }
  .download-cards-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-h1 {
    font-size: 32px;
  }
  .section-h2 {
    font-size: 24px;
  }
  .pricing-cards-grid,
  .kpi-grid-4,
  .kpi-grid-3,
  .hero-kpi-strip,
  .faq-grid,
  .qr-checkout-grid {
    grid-template-columns: 1fr;
  }
  .portal-dock {
    justify-content: center;
  }
}

/* ==========================================================================
   CINEMATIC 3D STUDIO AUTHENTICATION MODAL (>= 12px Typography Floor)
   Obsidian Frosted Glass + 9:16 Exhibition Wall + SpotlightCard Glow
   ========================================================================== */

.auth-modal-overlay {
  --auth-px: 0px;
  --auth-py: 0px;
  --auth-rx: 0deg;
  --auth-ry: 0deg;
  --auth-scan-pct: 54%;

  position: fixed;
  inset: 0;
  z-index: 150;
  background: #05060b;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 0.28s var(--ease-spring);
}

/* Interactive 3D Screening Room & 9:16 Drama Poster Wall */
.auth-cinema-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 88% 66% at 24% 20%, rgba(245, 158, 11, 0.16), transparent 64%),
    radial-gradient(ellipse 75% 60% at 84% 78%, rgba(229, 184, 105, 0.12), transparent 64%),
    linear-gradient(180deg, #06070d 0%, #090b13 52%, #05060b 100%);
}

.auth-cinema-grid {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(to right, rgba(229, 184, 105, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(229, 184, 105, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 78% at 50% 48%, #000 28%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 85% 78% at 50% 48%, #000 28%, transparent 82%);
  transform: translate3d(calc(var(--auth-px) * -0.22), calc(var(--auth-py) * -0.22), 0);
}

.auth-anamorphic-beams {
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.auth-beam {
  position: absolute;
  border-radius: 999px;
  filter: blur(46px);
  mix-blend-mode: screen;
}

.auth-beam-gold {
  width: 68vw;
  height: 240px;
  top: 7%;
  left: -10%;
  background: linear-gradient(90deg, rgba(253, 230, 138, 0.28) 0%, rgba(245, 158, 11, 0.16) 52%, rgba(245, 158, 11, 0) 100%);
  transform: rotate(-16deg) translate3d(calc(var(--auth-px) * 0.45), calc(var(--auth-py) * 0.3), 0);
}

.auth-beam-amber {
  width: 62vw;
  height: 200px;
  bottom: 10%;
  right: -8%;
  background: linear-gradient(270deg, rgba(229, 184, 105, 0.24) 0%, rgba(217, 119, 6, 0.13) 56%, rgba(217, 119, 6, 0) 100%);
  transform: rotate(-14deg) translate3d(calc(var(--auth-px) * -0.38), calc(var(--auth-py) * -0.26), 0);
}

.auth-beam-cyan {
  width: 48vw;
  height: 150px;
  top: 46%;
  left: 18%;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0.10) 50%, rgba(56, 189, 248, 0) 100%);
  transform: rotate(-8deg);
}

.auth-3d-poster-wall {
  position: absolute;
  inset: -6% -8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  opacity: 0.62;
  transform: perspective(1280px) rotateX(calc(7deg + var(--auth-rx))) rotateY(calc(-7deg + var(--auth-ry)));
  transition: transform 0.14s linear;
}

.auth-wall-layer {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 18px;
}

.auth-wall-layer-far {
  filter: blur(2.2px) saturate(1.08) brightness(0.68);
  transform: translate3d(calc(var(--auth-px) * -0.45), calc(var(--auth-py) * -0.35), 0) scale(0.95);
}

.auth-wall-layer-mid {
  filter: blur(0.6px) saturate(1.16) brightness(0.84);
  transform: translate3d(calc(var(--auth-px) * 0.65), calc(var(--auth-py) * 0.45), 0);
}

.auth-wall-layer-near {
  filter: blur(2.8px) saturate(1.18) brightness(0.66);
  transform: translate3d(calc(var(--auth-px) * 1.15), calc(var(--auth-py) * 0.80), 0) scale(1.04);
}

.auth-poster-tile {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(229, 184, 105, 0.24);
  background: #0c0f18;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.62);
}

.auth-poster-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-poster-tile span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(8, 10, 16, 0.80);
  border: 1px solid rgba(229, 184, 105, 0.28);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fde68a;
}

.auth-cinema-wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.88;
}

.auth-cinema-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 76% 72% at 50% 50%, rgba(6, 8, 14, 0.22) 0%, rgba(5, 6, 11, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 6, 11, 0.56) 0%, rgba(5, 6, 11, 0.18) 32%, rgba(5, 6, 11, 0.22) 72%, rgba(5, 6, 11, 0.76) 100%);
}

/* Split Shell + Obsidian Frosted Glass + SpotlightCard Glow */
.auth-split-shell {
  width: 100%;
  max-width: 1220px;
  border-radius: 26px;
  background: rgba(10, 12, 18, 0.62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(229, 184, 105, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.14),
    0 32px 84px rgba(0, 0, 0, 0.72);
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(390px, 0.86fr);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.auth-frosted-spotlight {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  background: rgba(14, 16, 22, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(229, 184, 105, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 220, 0.12),
    0 18px 44px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.auth-frosted-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    360px circle at var(--spot-x) var(--spot-y),
    rgba(229, 184, 105, 0.16),
    rgba(245, 158, 11, 0.05) 42%,
    transparent 74%
  );
  opacity: 0.92;
}

.auth-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(229, 184, 105, 0.30);
  background: rgba(14, 16, 22, 0.82);
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.auth-close-btn:hover {
  border-color: rgba(253, 230, 138, 0.65);
  color: #fde68a;
}

.auth-showcase-pane {
  padding: 28px 30px;
  background: linear-gradient(155deg, rgba(229, 184, 105, 0.09) 0%, rgba(8, 10, 16, 0.42) 100%);
  border-right: 1px solid rgba(229, 184, 105, 0.20);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.auth-showcase-top-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-showcase-grid-body {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 6px;
}

/* Live 9:16 Studio Preview Showcase */
.auth-live-preview-showcase {
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.auth-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.auth-preview-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fde68a;
}

.auth-preview-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
}

.auth-preview-tc {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.auth-preview-scanner-stage {
  position: relative;
  aspect-ratio: 9 / 15.2;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(229, 184, 105, 0.30);
  cursor: ew-resize;
  z-index: 1;
}

.auth-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-preview-before-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--auth-scan-pct)) 0 0);
}

.auth-preview-tag {
  position: absolute;
  top: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.auth-preview-tag-raw {
  left: 7px;
  background: rgba(15, 23, 42, 0.84);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.42);
}

.auth-preview-tag-clean {
  right: 7px;
  background: rgba(6, 78, 59, 0.86);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.auth-preview-laser-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--auth-scan-pct);
  width: 2px;
  background: linear-gradient(180deg, #fde68a 0%, #38bdf8 52%, #f59e0b 100%);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9), 0 0 24px rgba(245, 158, 11, 0.65);
  z-index: 3;
}

.auth-preview-laser-pill {
  position: absolute;
  bottom: 14px;
  left: clamp(58px, var(--auth-scan-pct), calc(100% - 58px));
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.90);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  z-index: 4;
}

.auth-preview-wave-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-preview-wave-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #cbd5e1;
}

.auth-preview-wave-meta strong {
  color: #fde68a;
  font-size: 12px;
}

.auth-preview-osc-canvas {
  width: 100%;
  height: 32px;
  display: block;
  border-radius: 8px;
  background: rgba(6, 9, 16, 0.76);
  border: 1px solid rgba(229, 184, 105, 0.18);
}

/* 3 Commercial Feature Cards */
.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.auth-feature-item {
  border-radius: 15px;
  padding: 13px 15px;
  transition: transform 0.22s var(--ease-spring), border-color 0.22s ease;
}

.auth-feature-item:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 230, 138, 0.50);
}

.auth-feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-feature-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: #fef3c7;
}

.auth-feature-copy span {
  font-size: 13px;
  line-height: 1.48;
  color: #cbd5e1;
}

.auth-security-footer {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(14, 16, 22, 0.72);
  border: 1px solid rgba(229, 184, 105, 0.24);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #e2e8f0;
}

/* Right Column Obsidian Frosted Glass Card */
.auth-form-pane {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card {
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-tab-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(8, 10, 16, 0.78);
  border: 1px solid rgba(229, 184, 105, 0.22);
}

.auth-tab-btn {
  padding: 9px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab-btn.is-active {
  background: linear-gradient(135deg, #fde68a 0%, #e5b869 48%, #d97706 100%);
  color: #0b0d14;
  font-weight: 800;
}

.auth-gold-shimmer-btn {
  width: 100%;
  justify-content: center;
  background: linear-gradient(115deg, #fde68a 0%, #e5b869 36%, #fffbeb 50%, #f59e0b 70%, #d97706 100%);
  background-size: 220% 100%;
  color: #090b10;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: authGoldSweep 5.5s ease-in-out infinite;
}

@keyframes authGoldSweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.auth-alert-box {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
  font-size: 13px;
  font-weight: 600;
}

html[data-theme="light"] .auth-alert-box {
  color: #be123c;
}

.auth-session-notice {
  font-size: 13px;
  color: #e2e8f0;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(229, 184, 105, 0.10);
  border: 1px solid rgba(229, 184, 105, 0.26);
}

@media (max-width: 1024px) {
  .auth-split-shell {
    grid-template-columns: 1fr;
  }
  .auth-showcase-pane {
    border-right: none;
    border-bottom: 1px solid rgba(229, 184, 105, 0.22);
  }
}

@media (max-width: 680px) {
  .auth-showcase-grid-body {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PHOTOREALISTIC LIVE-ACTION FILM STUDIO SCROLLYTELLING (#view-home)
   Pinned 500vh Track + Sticky 100vh Viewport + 35mm Studio Plates + Day/Night Morph
   ========================================================================== */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.studio-scrolly-home {
  --journey-pct: 0%;
  --intake-pct: 32%;
  --stem-raw-width: 82%;
  --stem-dub-width: 78%;
  --dof-x: 0px;
  --dof-y: 0px;

  /* Backdrop 35mm photography optical dolly & cross-dissolve variables */
  --bg1-op: 1;
  --bg1-scale: 1.03;
  --bg2-op: 0;
  --bg2-scale: 1.08;
  --bg3-op: 0;
  --bg3-scale: 1.05;
  --s3-afternoon-mix: 0;
  --s3-night-mix: 0;
  --bg4-op: 0;
  --bg4-scale: 1.07;
  --bg5-op: 0;
  --bg5-scale: 1.05;

  /* Foreground 5-scene optical transition variables */
  --s1-op: 1;
  --s1-scale: 1;
  --s1-y: 0px;
  --s1-monitor-scale: 1;
  --s2-op: 0;
  --s2-scale: 0.96;
  --s2-y: 26px;
  --s3-op: 0;
  --s3-scale: 0.96;
  --s3-y: 26px;
  --s4-op: 0;
  --s4-scale: 0.96;
  --s4-y: 26px;
  --s5-op: 0;
  --s5-scale: 0.96;
  --s5-y: 26px;
  --win-open-scale: 0.94;
  --win-open-y: 22px;

  position: relative;
  animation: none;
}

.studio-scrolly-home.hidden .studio-webgl-stage,
.studio-scrolly-home.hidden .studio-journey-rail {
  display: none !important;
}

/* Full-Bleed Pinned 500vh Scrollytelling Track */
.studio-scrolly-track {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -110px;
  margin-bottom: 0;
  height: 500vh;
  z-index: 2;
}

.studio-sticky-viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 3;
}

/* Full-Viewport Fixed Three.js PBR WebGL Photorealistic Hollywood Mega-Soundstage */
.studio-webgl-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: #06070a;
}

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

.studio-3d-edge-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 7, 10, 0.72) 0%, rgba(6, 7, 10, 0.28) 28%, rgba(6, 7, 10, 0) 44%),
    radial-gradient(ellipse 98% 94% at 64% 50%, rgba(6, 7, 10, 0) 62%, rgba(6, 7, 10, 0.48) 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.44) 0%, rgba(6, 7, 10, 0) 12%, rgba(6, 7, 10, 0) 88%, rgba(6, 7, 10, 0.58) 100%);
}

html[data-theme="light"] .studio-3d-edge-vignette {
  background:
    radial-gradient(ellipse 96% 92% at 58% 50%, rgba(248, 250, 252, 0) 60%, rgba(226, 232, 240, 0.45) 100%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.55) 0%, rgba(248, 250, 252, 0) 14%, rgba(241, 245, 249, 0.52) 100%);
}

.studio-3d-texture-pool {
  position: fixed;
  right: 2px;
  bottom: 2px;
  width: 2px;
  height: 2px;
  opacity: 0.01;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Zero Backdrop-Blur Compositing Over Fullscreen 3D WebGL Stage = 120 FPS Zero-Lag */
body.is-home-zone .portal-atmosphere {
  display: none;
}

body.is-home-zone .portal-dock {
  background: linear-gradient(145deg, rgba(10, 12, 18, 0.94), rgba(6, 8, 12, 0.97));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  contain: layout style paint;
}

html[data-theme="light"] body.is-home-zone .portal-dock {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.97));
}

body.is-home-zone #view-home .glass-surface,
body.is-home-zone #view-home .spotlight-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Single Compact 380px Left HUD Control Dock (Zero Backdrop-Blur Over WebGL = 120 FPS!) */
.scrolly-side-hud {
  width: 380px;
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(145deg, rgba(10, 12, 18, 0.94), rgba(6, 8, 12, 0.97));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(226, 232, 240, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(253, 230, 138, 0.16),
    0 26px 54px -18px rgba(2, 4, 10, 0.78);
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  contain: layout style paint;
}

.spatial-hud-dock {
  position: absolute;
  left: 24px;
  top: 76px;
  bottom: 84px;
  width: 380px;
  max-width: 380px;
  z-index: 12;
  justify-content: space-between;
  pointer-events: auto;
}

.hud-dock-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}

html[data-theme="light"] .hud-dock-chrome {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

.hud-dock-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fde68a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] .hud-dock-stage-pill {
  color: #b45309;
}

.hud-morph-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.hud-slide-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.hud-slide-body::-webkit-scrollbar {
  display: none;
}

.hud-dual-download-dock {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

html[data-theme="light"] .hud-dual-download-dock {
  border-top-color: rgba(15, 23, 42, 0.1);
}

.hud-dl-btn {
  width: 100%;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.hud-dock-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.hud-dock-meta-row > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-pricing-link-btn {
  flex-shrink: 0;
  padding: 2px 6px;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  cursor: pointer;
}

.hud-pricing-link-btn:hover {
  text-decoration: underline;
}

.finale-release-sync-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.finale-sync-chip {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
}

.finale-sync-chip:hover {
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--text-primary);
}

.scrolly-side-hud .scene-telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.scrolly-side-hud .eyebrow-pill {
  font-size: 12px;
  padding: 4px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scrolly-side-hud .portal-badge-mono {
  white-space: nowrap;
  flex-shrink: 0;
}

.scrolly-side-hud .star-border-btn {
  white-space: nowrap;
}

html[data-theme="light"] .scrolly-side-hud {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.97));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 44px -16px rgba(15, 23, 42, 0.12);
}

/* Bottom Horizontal Cinema Timeline (5 Stations + Smooth Progress Bar, Zero Backdrop-Blur) */
.studio-journey-rail {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 48;
  width: min(960px, calc(100vw - 40px));
  padding: 8px 14px 10px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: linear-gradient(145deg, rgba(10, 12, 18, 0.94), rgba(6, 8, 12, 0.97));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(226, 232, 240, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(253, 230, 138, 0.14),
    0 20px 44px -14px rgba(0, 0, 0, 0.78);
  will-change: transform, opacity;
  contain: layout style paint;
  transition: border-color 0.35s var(--ease-spring);
}

.spatial-bottom-timeline {
  bottom: 14px;
  left: 50%;
  right: auto;
  top: auto;
}

html[data-theme="light"] .studio-journey-rail {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.97));
  border-color: rgba(15, 23, 42, 0.12);
}

.journey-timeline-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.journey-rail-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  white-space: nowrap;
}

.journey-rail-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.38);
  white-space: nowrap;
}

.journey-rail-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.journey-rail-progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fde68a 0%, #f59e0b 55%, #38bdf8 100%);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.journey-rail-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.journey-active-glider {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc((100% - 24px) / 5);
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transform: translate3d(var(--rail-glider-x, 0px), 0, 0);
  will-change: transform;
}

.journey-step-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 32px;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.22s var(--ease-spring), border-color 0.22s var(--ease-spring), color 0.22s var(--ease-spring);
}

.journey-step-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  color: var(--text-primary);
  border-color: rgba(245, 158, 11, 0.28);
}

.journey-step-btn.is-active {
  color: var(--text-primary);
}

.journey-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
  background: rgba(148, 163, 184, 0.55);
  border: 1px solid rgba(253, 230, 138, 0.45);
}

.journey-step-btn.is-active .journey-step-dot {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.9);
  transform: scale(1.25);
}

/* Pinned 100vh Foreground Layer (72%+ Right & Center Open Spatial Stage) */
.scrolly-pinned-scenes-layer {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.scrolly-station {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#scrolly-scene-1 {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0px, 0);
}

/* MotionSites.ai Modular HUD Micro-Components (Zero Backdrop-Blur, Pure GPU Transform) */
.shelf-hero-rack {
  transform: perspective(900px) rotateX(var(--shelf-rx, 0deg)) rotateY(var(--shelf-ry, 0deg));
  will-change: transform;
}

.shelf-spine-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 14px -6px rgba(0, 0, 0, 0.65);
}

.sun-timeline-arc {
  position: relative;
  width: 100%;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12) 0%, rgba(253, 230, 138, 0.16) 50%, rgba(245, 158, 11, 0.22) 100%);
  border: 1px solid rgba(253, 230, 138, 0.24);
  overflow: hidden;
}

.sun-timeline-curve {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 7px;
  height: 34px;
  border-radius: 50% 50% 0 0;
  border-top: 1.5px dashed rgba(253, 230, 138, 0.52);
  pointer-events: none;
}

.sun-timeline-orb {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, #fffbeb 20%, #f59e0b 75%);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.95);
  transform: translate3d(var(--sun-x, 18px), var(--sun-y, 13px), 0);
  will-change: transform;
}

.living-portrait-row {
  transform: translate3d(var(--lp-shift-x, 0px), 0, 0);
  will-change: transform;
}

.lumora-stage-card {
  border-color: transparent;
  box-shadow: none;
}

.studio-scrolly-home .hero-h1 {
  font-size: clamp(21px, 1.85vw, 25px);
  line-height: 1.2;
  margin: 0;
}

.studio-scrolly-home .lead-copy,
.studio-scrolly-home .body-copy {
  font-size: 13px;
  line-height: 1.48;
  margin: 0;
}

.studio-scrolly-home .section-h2 {
  margin: 0;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.24;
}

.studio-scrolly-home .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-scrolly-home .hero-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.studio-scrolly-home .hero-kpi-tile {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html[data-theme="light"] .studio-scrolly-home .hero-kpi-tile {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(15, 23, 42, 0.08);
}

.hud-laser-control-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 14, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .hud-laser-control-box {
  background: rgba(241, 245, 249, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
}

.hud-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hud-control-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.cinema-frame-916.cinema-frame-compact {
  width: 118px;
  max-height: 192px;
  margin: 0 auto;
  border-radius: 12px;
}

.studio-timepiece-inline {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 14, 24, 0.62);
  border: 1px solid rgba(245, 158, 11, 0.28);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html[data-theme="light"] .studio-timepiece-inline {
  background: rgba(254, 252, 232, 0.85);
}

.hud-cast-mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-cast-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(10, 14, 24, 0.62);
  border: 1px solid rgba(229, 184, 105, 0.16);
}

html[data-theme="light"] .hud-cast-mini-row {
  background: rgba(241, 245, 249, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
}

.hud-cast-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(229, 184, 105, 0.5);
}

.hud-cast-monogram {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fde68a;
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.24), rgba(56, 189, 248, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.hud-cast-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-cast-info strong {
  font-size: 13.5px;
  color: var(--text-primary);
}

.hud-cast-info span {
  font-size: 12px;
  color: var(--text-secondary);
}

.hud-theater-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hud-video-sync-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.hud-mini-video-shell {
  width: 82px;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.44);
  background: #05060b;
}

.hud-mini-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.episode-pill-bar.episode-pill-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.episode-pill-bar.episode-pill-stack .ep-sample-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 6px 12px;
  font-size: 12.5px;
}

.hud-scrubber-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-slider-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.waveform-strip.waveform-strip-compact {
  padding: 8px 10px;
  gap: 8px;
}

.scrolly-hero-editorial .hero-h1 {
  margin: 4px 0 4px;
  font-size: clamp(28px, 2.85vw, 40px);
  line-height: 1.15;
}

.scrolly-hero-editorial .lead-copy {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.56;
}

.scrolly-hero-editorial .hero-cta-row {
  margin-bottom: 2px;
  gap: 12px;
}

.scrolly-hero-editorial .hero-meta-caption {
  margin-bottom: 2px;
  font-size: 12.5px;
}

.scrolly-hero-editorial .hero-kpi-tile {
  padding: 11px 13px;
}

.scrolly-hero-editorial .hero-kpi-num {
  font-size: 19px;
  margin-bottom: 2px;
}

.scrolly-hero-editorial .hero-kpi-label {
  font-size: 12px;
  line-height: 1.38;
}

.studio-intake-hud {
  padding: 12px 15px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.intake-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.intake-hud-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-emerald);
}

.intake-hud-counter {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-gold);
}

.intake-reel-track {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.reel-chip {
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.reel-chip.is-lit {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.48);
  color: var(--text-primary);
}

.intake-story-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.20);
  overflow: hidden;
}

.intake-story-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b 0%, #fde68a 60%, #10b981 100%);
  transform-origin: left center;
  transform: scaleX(0.3);
  will-change: transform;
}

/* Physical Machined Aluminum Studio Monitor Rig (Dolly-In Optical Target) */
.physical-monitor-assembly {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(var(--s1-monitor-scale));
  transform-origin: 50% 44%;
  will-change: transform;
}

.physical-monitor-bezel {
  width: 100%;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #161b26 0%, #0a0d14 100%);
  border: 2px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 32px 64px -16px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.holo-deck-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.holo-window-dots {
  display: flex;
  gap: 6px;
}

.holo-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.65);
}

.holo-window-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cbd5e1;
}

.holo-monitor-screen {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #05070d;
}

.holo-studio-shot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.holo-conveyor-overlay {
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.90) 0%, rgba(8, 11, 18, 0.98) 100%);
  border-top: 1px solid rgba(245, 158, 11, 0.28);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.holo-conveyor-pill {
  font-size: 12px;
  font-weight: 700;
  color: #fde68a;
}

.holo-conveyor-hint {
  font-size: 12px;
  color: #cbd5e1;
}

.physical-monitor-chin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
}

.monitor-power-led {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
}

.monitor-brand-etch {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.physical-monitor-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.monitor-stand-neck {
  width: 58px;
  height: 28px;
  background: linear-gradient(90deg, #1e293b 0%, #475569 48%, #0f172a 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.monitor-stand-foot {
  width: 196px;
  height: 10px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(90deg, #0f172a 0%, #64748b 50%, #0f172a 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.85);
}

/* Scene 2: Close-Up 9:16 Optical Reference Monitor (EP009) */
.studio-scrolly-home .grading-bay-monitor {
  padding: 16px;
  border-color: rgba(245, 158, 11, 0.36);
}

.studio-scrolly-home .cinema-frame-916 {
  max-height: min(460px, 51vh);
}

.exploded-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.exploded-caption {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--text-secondary);
  text-align: center;
}

/* Scene 3: Maison Odile Real-Time Studio Clock (08:00 -> 14:00 -> 21:00) & EP009 Portraits */
.studio-timepiece-card {
  padding: 16px 20px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-color: rgba(253, 230, 138, 0.36);
}

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

.timepiece-clock-cluster {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timepiece-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
}

.timepiece-digits {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.timepiece-phase-pill {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(253, 230, 138, 0.42);
}

html[data-theme="light"] .timepiece-phase-pill {
  color: #78350f;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(217, 119, 6, 0.45);
}

.timepiece-ticks-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.timepiece-tick {
  text-align: center;
  padding: 5px 8px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.24s var(--ease-spring);
}

.timepiece-tick.is-active {
  color: #0b0d14;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  border-color: rgba(253, 230, 138, 0.75);
  font-weight: 700;
}

.character-dossier-deck {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.char-dossier-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.char-portrait-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.char-real-avatar {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(253, 230, 138, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.char-meta-col {
  flex: 1;
  min-width: 0;
}

.char-meta-col .card-h3 {
  font-size: 17.5px;
  margin-bottom: 4px;
}

.char-role-lead-male {
  border-color: rgba(245, 158, 11, 0.40);
}

.char-role-lead-female {
  border-color: rgba(244, 63, 94, 0.36);
}

.char-dossier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.char-role-pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
}

.char-role-lead-female .char-role-pill {
  color: #fda4af;
}

html[data-theme="light"] .char-role-lead-female .char-role-pill {
  color: #be123c;
}

.char-pronoun-lock {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.char-dialogue-sample {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-amber);
  font-size: 13px;
  color: var(--text-primary);
}

/* Scene 4: ADR Condenser Studio & Physical Mixing Console + Live Audio Preview */
.acoustic-stem-console {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-color: rgba(245, 158, 11, 0.36);
}

.scrolly-side-hud .stem-lanes-stack {
  gap: 7px;
}

.scrolly-side-hud .stem-lane {
  padding: 8px 12px;
  gap: 5px;
}

.stem-lanes-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stem-lane {
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stem-lane-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.stem-db-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.stem-meter-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.stem-meter-fill {
  height: 100%;
  border-radius: 999px;
}

.stem-fill-raw {
  width: 100%;
  background: linear-gradient(90deg, #64748b 0%, #f43f5e 100%);
  transform-origin: left center;
  transform: scaleX(0.82);
  will-change: transform;
}

.stem-fill-bgm {
  width: 94%;
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 100%);
}

.stem-fill-vndub {
  width: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #fde68a 100%);
  transform-origin: left center;
  transform: scaleX(0.44);
  will-change: transform;
}

.acoustic-stem-console.is-auditioning .stem-fill-vndub,
.acoustic-stem-console.is-auditioning .stem-fill-bgm {
  animation: consoleMeterBounce 0.45s ease-in-out infinite alternate;
}

@keyframes consoleMeterBounce {
  0% {
    filter: brightness(0.95);
    transform: scaleX(0.92);
    transform-origin: left center;
  }
  100% {
    filter: brightness(1.22);
    transform: scaleX(1);
    transform-origin: left center;
  }
}

.console-audition-deck {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(253, 230, 138, 0.30);
}

.console-audio-preview-btn {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(253, 230, 138, 0.75);
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  color: #0b0d14;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-spring);
}

.console-audio-preview-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(245, 158, 11, 0.65);
}

.console-audio-preview-btn.is-playing {
  background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
  border-color: rgba(167, 243, 208, 0.85);
  color: #052e16;
}

.console-ext-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Scene 5: Private Screening Theater & Authentic Windows 11 Explorer Vault */
.scrolly-finale-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr);
  gap: 26px;
  align-items: center;
}

.win-explorer-window {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: translate3d(0, var(--win-open-y), 0) scale(var(--win-open-scale));
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.win-explorer-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

html[data-theme="light"] .win-explorer-chrome {
  background: rgba(226, 232, 240, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.10);
}

.win-explorer-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.win-explorer-tab-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.win-explorer-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.pc-folder-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: rgba(9, 13, 22, 0.65);
  border-bottom: 1px solid var(--border-subtle);
}

html[data-theme="light"] .pc-folder-titlebar {
  background: rgba(248, 250, 252, 0.9);
}

.win-addr-chip {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-gold);
}

.pc-folder-icon {
  font-size: 16px;
}

.pc-folder-path {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-gold);
  flex: 1;
  min-width: 180px;
  word-break: break-all;
}

.pc-folder-files-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 18px 10px;
}

.pc-file-row {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.pc-file-row:hover {
  border-color: rgba(245, 158, 11, 0.48);
}

.pc-file-row.is-playing {
  border-color: rgba(245, 158, 11, 0.56);
  background: rgba(245, 158, 11, 0.12);
}

.pc-file-row.is-merged {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.09);
}

.pc-file-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.pc-file-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.finale-vault-copy {
  padding: 6px 18px 8px;
}

.finale-vault-h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.24;
  color: var(--text-primary);
}

.finale-vault-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.finale-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0 0;
}

.finale-cta-stack .star-border-btn,
.finale-cta-stack .portal-btn-secondary {
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.28;
  gap: 2px;
  justify-content: center;
  white-space: normal;
  text-align: center;
}

.finale-cta-stack .portal-badge-mono {
  font-size: 12px;
  opacity: 0.92;
}

.interactive-flat-card {
  transform: none;
  transition: border-color 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring);
}

.interactive-flat-card::before,
.interactive-flat-card::after {
  display: none;
}

.theater-3d-screen-shell {
  padding: 15px 16px;
  border-color: rgba(245, 158, 11, 0.45);
}

.theater-video-frame-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: #05060b;
}

.theater-video-frame-wrap .showcase-video-el {
  max-height: min(435px, 48vh);
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  margin: 0 auto;
}

.cinema-sound-toggle-btn {
  position: relative;
  z-index: 6;
  width: 100%;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(253, 230, 138, 0.78);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24) 0%, rgba(15, 23, 42, 0.92) 100%);
  color: #fde68a;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
  transition: background 0.22s var(--ease-spring), border-color 0.22s var(--ease-spring), color 0.22s var(--ease-spring), transform 0.18s var(--ease-spring);
}

.cinema-sound-toggle-btn:hover {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  color: #05060b;
  transform: translateY(-1px);
}

.cinema-sound-toggle-btn:active {
  transform: translateY(0);
}

.cinema-sound-toggle-btn.is-unmuted {
  border-color: rgba(16, 185, 129, 0.82);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.26) 0%, rgba(15, 23, 42, 0.92) 100%);
  color: #6ee7b7;
}

html[data-theme="light"] .cinema-sound-toggle-btn {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #d97706;
  color: #78350f;
}

html[data-theme="light"] .cinema-sound-toggle-btn.is-unmuted {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #059669;
  color: #065f46;
}

/* Tablet & Mobile Graceful Fallback (Natural Stacked Cinema Sections) */
@media (max-width: 1180px) {
  .studio-journey-rail {
    bottom: 12px;
    width: calc(100vw - 32px);
    padding: 8px 10px;
  }

  .journey-rail-steps {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }

  .journey-active-glider {
    display: none;
  }

  .journey-step-btn {
    width: auto;
    white-space: nowrap;
    padding: 6px 12px;
  }
}

@media (max-width: 1024px) {
  .studio-scrolly-track {
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .studio-sticky-viewport {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .scrolly-pinned-scenes-layer {
    height: auto;
    padding: 16px 20px 96px;
    pointer-events: auto;
  }

  .spatial-hud-dock {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .hud-morph-viewport {
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .scrolly-station {
    position: relative;
    inset: auto;
    height: auto;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* ==========================================================================
   AUTH REMEMBER CHECKBOX, MACOS GATEKEEPER NOTE & INLINE APPLE SVG
   ========================================================================== */
.os-logo-svg,
.windows-logo-svg,
.apple-logo-svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
  flex-shrink: 0;
  vertical-align: -2px;
}

.portal-btn-win,
.portal-btn-macos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dmg-open-note {
  margin: 8px 0 0;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(209, 179, 123, 0.32);
  background: rgba(209, 179, 123, 0.06);
  color: var(--amber2, #e7d7b4);
  font-size: 12px;
  line-height: 1.5;
}

.auth-remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 12px;
  color: rgba(241, 238, 231, 0.86);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.auth-remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #c3a36e;
  cursor: pointer;
}

/* ==========================================================================
   CONVERSION ADVANTAGES, ROI ANCHOR STRIP, PRICING TRUST PILLS & SEO FOOTER
   (Strict >= 12px floor · JetBrains Mono tabular-nums · Dark & Light Harmony)
   ========================================================================== */
.advantages-showcase {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid rgba(209, 179, 123, 0.22);
}

.advantages-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.advantages-head h2 {
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.12;
  margin: 12px 0 0;
}

.advantages-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted, #cbd5e1);
}

.roi-compare-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.roi-card {
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 16, 22, 0.72);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.light-mode .roi-card {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 23, 42, 0.12);
}

.roi-card.is-win {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(15, 18, 26, 0.88));
  box-shadow: 0 20px 48px -18px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.light-mode .roi-card.is-win {
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.92), rgba(255, 255, 255, 0.95));
}

.roi-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.roi-card.is-win .roi-tag {
  color: #fbbf24;
}

body.light-mode .roi-card.is-win .roi-tag {
  color: #b45309;
}

.roi-figure {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
}

body.light-mode .roi-figure {
  color: #0f172a;
}

.roi-card.is-win .roi-figure {
  color: #fde68a;
}

body.light-mode .roi-card.is-win .roi-figure {
  color: #92400e;
}

.roi-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

body.light-mode .roi-card p {
  color: #334155;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.adv-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.adv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.adv-num {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--amber2, #fde68a);
}

.adv-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #f8fafc;
}

body.light-mode .adv-card h3 {
  color: #0f172a;
}

.adv-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
}

body.light-mode .adv-card p {
  color: #334155;
}

#page-pricing {
  width: 100%;
  max-width: 100%;
}

.pricing-intro-block {
  min-width: 0;
  max-width: 720px;
}

.pricing-cycle-stack {
  width: 456px;
  max-width: 100%;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cycle-saving-note {
  margin: 0;
  width: 100%;
  max-width: 456px;
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(9, 12, 18, 0.76);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--accent-emerald, #10b981);
  text-align: right;
  box-sizing: border-box;
}

body.light-mode .cycle-saving-note {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(5, 150, 105, 0.28);
  color: #047857;
}

.pricing-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 28px;
}

.trust-pill-item {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.light-mode .trust-pill-item {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.1);
}

.trust-pill-item strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
}

.trust-pill-item span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary, #cbd5e1);
}

.plan-roi-note {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--accent-emerald, #10b981);
  margin: 0 0 12px;
}

.plan-roi-note.is-gold {
  color: var(--accent-amber, #f59e0b);
}

.footer-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.footer-seo-links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber2, #e7d7b4);
  transition: opacity 0.2s ease;
}

.footer-seo-links a:hover {
  opacity: 0.82;
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .pricing-hero-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pricing-cycle-stack {
    width: 100%;
    max-width: 100%;
    justify-self: start;
    align-items: flex-start;
  }
  .cycle-saving-note {
    max-width: 100%;
    min-height: 0;
    text-align: left;
  }
  .advantages-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .roi-compare-strip,
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .pricing-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pricing-trust-strip {
    grid-template-columns: 1fr;
  }
  .cycle-switcher {
    flex-wrap: wrap;
    white-space: normal;
  }
}

.mc-col-right {
  text-align: right;
}

.adm-cloud-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.adm-cloud-btn-row > .mc-action-btn {
  flex: 1 1 200px;
}

.adm-cloud-remove-btn {
  padding: 4px 10px;
  font-size: 12px;
}
