/* Style variables & Design Tokens */
:root {
  --bg-obsidian: #050506;
  --bg-card: #0c0c0f;
  --champagne: #e8c9a0;
  --champagne-glow: rgba(232, 201, 160, 0.2);
  --gold: #d1b38c;
  --gold-dark: #b59b75;
  --text-white: #ffffff;
  --text-muted: #a6a6a9;
  --border-line: rgba(232, 201, 160, 0.12);
  --border-hover: rgba(232, 201, 160, 0.35);
  --green: #4caf50;
  --red: #f44336;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset and Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background Atmosphere */
.aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/anova_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: blur(40px);
  z-index: -3;
  pointer-events: none;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 40%, rgba(5, 5, 6, 0.95) 100%);
  z-index: -2;
  pointer-events: none;
}

.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  background-image: radial-gradient(var(--text-white) 1px, transparent 0);
  background-size: 8px 8px;
  z-index: -1;
  pointer-events: none;
}

/* Main Application Container */
.app-container {
  width: 95vw;
  max-width: 1440px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(12, 12, 15, 0.6);
  border: 1px solid var(--border-line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
}

/* App Header styling */
.app-header {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  border-bottom: 1px solid var(--border-line);
  background: rgba(5, 5, 6, 0.4);
}

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

.brand .logo {
  width: 32px;
  height: 32px;
}

.brand-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.15em;
  background: linear-gradient(120deg, #fff, var(--champagne));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand .badge {
  font-size: 10px;
  background: rgba(232, 201, 160, 0.1);
  color: var(--champagne);
  padding: 3px 8px;
  border: 1px solid var(--border-line);
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

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

.lang-switch-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border-line);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--champagne);
  color: var(--text-white);
}

.lang-btn.active {
  background: var(--champagne);
  color: var(--bg-obsidian);
  border-color: var(--champagne);
  font-weight: 600;
}

.audio-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-line);
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.audio-btn:hover {
  background: rgba(232, 201, 160, 0.1);
  border-color: var(--border-hover);
}

.audio-btn.muted .sound-waves {
  opacity: 0.2;
}

.speaker-icon {
  width: 16px;
  height: 16px;
}

.demo-cta {
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  color: var(--bg-obsidian);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(232, 201, 160, 0.2);
}

.demo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 201, 160, 0.35);
}

/* Workspace Layout */
.workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Sidebar Storyboard */
.storyboard-panel {
  width: 280px;
  border-right: 1px solid var(--border-line);
  background: rgba(8, 8, 10, 0.3);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--champagne);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

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

.scene-item {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-line);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.scene-item:hover {
  background: rgba(232, 201, 160, 0.04);
  border-color: rgba(232, 201, 160, 0.25);
  transform: translateX(4px);
}

.scene-item.active {
  background: linear-gradient(90deg, rgba(232, 201, 160, 0.08), transparent);
  border-color: var(--champagne);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.scene-num {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--champagne);
  width: 30px;
}

.scene-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scene-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
}

.scene-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  position: absolute;
  right: 15px;
  transition: var(--transition-smooth);
}

.scene-item.active .progress-dot {
  background: var(--champagne);
  box-shadow: 0 0 10px var(--champagne);
}

.tips-box {
  background: rgba(232, 201, 160, 0.03);
  border: 1px solid var(--border-line);
  padding: 16px;
  border-radius: 12px;
  margin-top: auto;
}

.tip-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--champagne);
  margin-bottom: 6px;
}

.tip-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Center Stage Player */
.player-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(5, 5, 6, 0.2);
  padding: 24px;
  overflow: hidden;
}

.video-container {
  flex: 1;
  position: relative;
  background: #000000;
  border: 1px solid var(--border-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.9), 0 10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.video-container:fullscreen {
  border: none;
  border-radius: 0;
}

/* Video HUD */
.video-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 10;
  pointer-events: none;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-status {
  background: rgba(244, 67, 54, 0.15);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(244, 67, 54, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.hud-scene-name {
  color: var(--champagne);
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Subtitle track overlay */
.subtitle-overlay {
  position: absolute;
  bottom: 30px;
  left: 5%;
  right: 5%;
  z-index: 10;
  text-align: center;
  pointer-events: none;
  transition: var(--transition-fast);
}

.subtitle-overlay.hidden {
  opacity: 0;
}

#subtitle-text {
  display: inline-block;
  background: rgba(5, 5, 6, 0.85);
  border: 1px solid var(--border-line);
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 80%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 2px rgba(0,0,0,1);
}

/* Scenes Viewport mapping */
.scenes-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.scene-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
  padding: 60px 40px;
  background: radial-gradient(circle at center, rgba(12, 12, 15, 0.7) 0%, rgba(5, 5, 6, 0.95) 100%);
  overflow-y: auto;
}

.scene-panel.active {
  opacity: 1;
  pointer-events: auto;
}

/* Layout helpers inside panels */
.scene-layout-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  width: 100%;
  height: 100%;
  align-items: center;
}

.scene-layout-full {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.scene-visual-area {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

.scene-copy-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  font-size: 12px;
  color: var(--champagne);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  font-weight: 600;
}

.scene-header {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, var(--champagne) 70%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scene-paragraph {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-list li {
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-white);
}

.features-list .bullet {
  color: var(--champagne);
  font-size: 14px;
}

/* ========================================= */
/* SCENE 1 SPECIFICS: THE LEAKY BUCKET */
/* ========================================= */

.leaky-bucket-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  gap: 20px;
}

/* Phone shake animation */
.unanswered-phone {
  perspective: 1000px;
}

.phone-case {
  width: 140px;
  height: 250px;
  background: #18181f;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  position: relative;
  transition: var(--transition-smooth);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #09090b;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.incoming-call-alert {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.call-icon {
  font-size: 32px;
  animation: wobble 1s infinite alternate;
}

.ring-glow {
  position: absolute;
  top: 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(244, 67, 54, 0.4);
  animation: ring-ripple 1.5s infinite;
}

@keyframes ring-ripple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes wobble {
  0% { transform: rotate(-15deg) scale(1); }
  50% { transform: rotate(15deg) scale(1.1); }
  100% { transform: rotate(-15deg) scale(1); }
}

/* Active ringing shaking state triggered by play state */
.playing-state #scene-0 .phone-case {
  animation: phone-shake 0.8s infinite;
}

@keyframes phone-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-2px, -2px) rotate(-1deg); }
  20% { transform: translate(2px, 2px) rotate(1deg); }
  30% { transform: translate(-2px, 2px) rotate(-1deg); }
  40% { transform: translate(2px, -2px) rotate(1deg); }
  50% { transform: translate(-1px, -1px) rotate(-0.5deg); }
  60% { transform: translate(1px, 1px) rotate(0.5deg); }
}

.call-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.call-number {
  font-size: 11px;
  color: var(--text-muted);
}

/* Bucket visualizer */
.water-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bucket {
  width: 140px;
  height: 160px;
  background: linear-gradient(180deg, rgba(232, 201, 160, 0.05) 0%, rgba(232, 201, 160, 0.15) 100%);
  border: 2px solid var(--border-line);
  border-top: none;
  border-radius: 0 0 40px 40px;
  position: relative;
  overflow: visible;
}

.water-level {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(180deg, rgba(232, 201, 160, 0.25) 0%, rgba(232, 201, 160, 0.45) 100%);
  border-radius: 0 0 38px 38px;
  transition: height 10s linear;
}

.playing-state #scene-0 .water-level {
  animation: level-drain 12s infinite linear;
}

@keyframes level-drain {
  0% { height: 75%; }
  100% { height: 25%; }
}

/* Water dripping animation */
.drip {
  position: absolute;
  font-size: 16px;
  opacity: 0;
}

.playing-state #scene-0 .drip-1 {
  animation: drip-drop 2.5s infinite 0.2s;
  left: 30px;
}
.playing-state #scene-0 .drip-2 {
  animation: drip-drop 2.5s infinite 1s;
  left: 70px;
}
.playing-state #scene-0 .drip-3 {
  animation: drip-drop 2.5s infinite 1.8s;
  left: 110px;
}

@keyframes drip-drop {
  0% { top: 120px; opacity: 0; transform: scale(0.8); }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 220px; opacity: 0; transform: scale(1); }
}

.bucket-label {
  font-size: 12px;
  color: var(--champagne);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-line);
  padding: 16px;
  border-radius: 12px;
}

.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--champagne);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ========================================= */
/* SCENE 2 SPECIFICS: MEET ANOVA */
/* ========================================= */

.orb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.anova-glowing-orb {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb-core {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, #ffffff 0%, var(--champagne) 70%, var(--gold) 100%);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--champagne), inset 0 0 15px rgba(255, 255, 255, 0.8);
  z-index: 3;
}

.orb-halo {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--champagne-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(10px);
}

.orb-rings .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(232, 201, 160, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 10px var(--champagne-glow);
}

/* Animations of rings */
.playing-state #scene-1 .orb-core {
  animation: orb-pulse 2s infinite alternate ease-in-out;
}

.playing-state #scene-1 .orb-rings .ring:nth-child(1) {
  animation: ring-pulse 3s infinite linear;
}
.playing-state #scene-1 .orb-rings .ring:nth-child(2) {
  animation: ring-pulse 3s infinite linear 1s;
}
.playing-state #scene-1 .orb-rings .ring:nth-child(3) {
  animation: ring-pulse 3s infinite linear 2s;
}

@keyframes orb-pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 30px var(--champagne); }
  100% { transform: scale(1.1); box-shadow: 0 0 60px var(--champagne), 0 0 20px var(--gold); }
}

@keyframes ring-pulse {
  0% { transform: translate(-50%, -50%) scale(0.6) rotateX(45deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6) rotateX(45deg); opacity: 0; }
}

.orb-indicator-text {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Sound waves styling */
.wave-visualizer {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
}

.wave-visualizer span {
  width: 3px;
  height: 10px;
  background: var(--champagne);
  border-radius: 3px;
  transition: height 0.15s ease;
}

/* Waves animation triggered by playing state */
.playing-state #scene-1 .wave-visualizer span:nth-child(1) { animation: voice-wave 0.8s infinite 0.1s; }
.playing-state #scene-1 .wave-visualizer span:nth-child(2) { animation: voice-wave 0.8s infinite 0.3s; }
.playing-state #scene-1 .wave-visualizer span:nth-child(3) { animation: voice-wave 0.8s infinite 0.5s; }
.playing-state #scene-1 .wave-visualizer span:nth-child(4) { animation: voice-wave 0.8s infinite 0.2s; }
.playing-state #scene-1 .wave-visualizer span:nth-child(5) { animation: voice-wave 0.8s infinite 0.4s; }
.playing-state #scene-1 .wave-visualizer span:nth-child(6) { animation: voice-wave 0.8s infinite 0.1s; }
.playing-state #scene-1 .wave-visualizer span:nth-child(7) { animation: voice-wave 0.8s infinite 0.3s; }
.playing-state #scene-1 .wave-visualizer span:nth-child(8) { animation: voice-wave 0.8s infinite 0.5s; }
.playing-state #scene-1 .wave-visualizer span:nth-child(9) { animation: voice-wave 0.8s infinite 0.2s; }

@keyframes voice-wave {
  0%, 100% { height: 8px; opacity: 0.4; }
  50% { height: 35px; opacity: 1; background-color: var(--gold); }
}

/* ========================================= */
/* SCENE 3 SPECIFICS: BILINGUAL NATIVE FLOW */
/* ========================================= */

.scene-headline-group {
  text-align: center;
  max-width: 700px;
  margin-bottom: 30px;
}

.scene-headline-group .scene-paragraph {
  margin-bottom: 0;
}

.dialogue-demo-box {
  width: 100%;
  max-width: 760px;
  background: rgba(12, 12, 15, 0.8);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.dialogue-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-line);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.dialogue-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dialogue-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  padding: 2px;
}

.toggle-choice {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.toggle-choice.active {
  background: var(--champagne);
  color: var(--bg-obsidian);
}

.dialogue-transcript {
  height: 220px;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 75%;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  animation: bubble-appear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubble-appear {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.chat-bubble.anova {
  background: rgba(232, 201, 160, 0.06);
  border: 1px solid var(--border-line);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble.caller {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-bubble .speaker-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.chat-bubble.anova .speaker-label {
  color: var(--champagne);
}

.chat-bubble.caller .speaker-label {
  color: var(--text-muted);
}

.dialogue-controls {
  border-top: 1px solid var(--border-line);
  background: rgba(5, 5, 6, 0.4);
  padding: 16px 20px;
}

.click-instruction {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.trigger-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trigger-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-line);
  color: var(--text-white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.trigger-btn:hover {
  background: rgba(232, 201, 160, 0.08);
  border-color: var(--champagne);
}

.trigger-btn.active {
  background: var(--champagne-glow);
  border-color: var(--champagne);
}

/* ========================================= */
/* SCENE 4 SPECIFICS: THE AUTOMATION LOOP */
/* ========================================= */

.automation-showcase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
}

.crm-console, .calendar-console {
  flex: 1;
  background: rgba(12, 12, 15, 0.85);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  height: 220px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.crm-header, .calendar-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-line);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-indicator {
  font-size: 9px;
  color: var(--green);
  border: 1px solid rgba(76, 175, 80, 0.3);
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.1);
}

.crm-records-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

.crm-record {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.crm-record.active {
  opacity: 1;
  border-color: var(--champagne);
  background: rgba(232, 201, 160, 0.04);
}

.record-time {
  font-size: 10px;
  color: var(--text-muted);
}

.record-name {
  font-weight: 500;
}

.record-status {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.font-green {
  color: var(--green);
}

/* Connecting arrows flow */
.flow-connector {
  width: 40px;
  height: 2px;
  background: var(--border-line);
  position: relative;
}

.pulse-flow {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 10px var(--champagne);
}

.playing-state #scene-3 .pulse-flow {
  animation: flow-run 2s infinite linear;
}

@keyframes flow-run {
  0% { left: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  flex: 1;
}

.grid-slot {
  border: 1px solid var(--border-line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-muted);
}

.grid-slot.header-slot {
  background: rgba(232, 201, 160, 0.05);
  font-weight: 600;
  color: var(--champagne);
}

.grid-slot.booked {
  background: rgba(255, 255, 255, 0.03);
  text-decoration: line-through;
  opacity: 0.4;
}

.active-booking {
  border-color: var(--champagne);
  color: var(--champagne);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  background: rgba(232, 201, 160, 0.06);
}

.active-booking.confirmed {
  border-color: var(--green);
  color: #ffffff;
  background: rgba(76, 175, 80, 0.15);
}

.calendar-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 201, 160, 0.15), transparent);
  animation: shine-slot 3s infinite linear;
}

@keyframes shine-slot {
  0% { left: -100%; }
  100% { left: 100%; }
}

.integrations-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.integrations-checklist li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.integrations-checklist li.checked {
  color: var(--text-white);
}

/* ========================================= */
/* SCENE 5 SPECIFICS: ENTERPRISE READY */
/* ========================================= */

.compliance-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.badge-card {
  background: rgba(232, 201, 160, 0.03);
  border: 1px solid var(--border-line);
  padding: 20px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.badge-card:hover {
  background: rgba(232, 201, 160, 0.06);
  border-color: var(--champagne);
  transform: translateY(-2px);
}

.badge-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.badge-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
}

.badge-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.final-cta-block {
  background: linear-gradient(135deg, rgba(232, 201, 160, 0.08), rgba(12, 12, 15, 0.8));
  border: 1px solid var(--champagne);
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin-top: 10px;
}

.final-cta-block h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--champagne);
  margin-bottom: 8px;
}

.final-cta-block p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.cta-primary-btn {
  display: inline-block;
  background: var(--champagne);
  color: var(--bg-obsidian);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(232, 201, 160, 0.2);
}

.cta-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(232, 201, 160, 0.4);
}

/* ========================================= */
/* BOTTOM CONTROLS PANEL */
/* ========================================= */

.player-controls {
  background: rgba(8, 8, 10, 0.8);
  border-top: 1px solid var(--border-line);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Timeline scrubber row */
.timeline-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.time-display {
  font-size: 11px;
  font-family: var(--font-sans);
  color: var(--text-muted);
  min-width: 32px;
}

.timeline-slider-container {
  flex: 1;
  position: relative;
  height: 6px;
  display: flex;
  align-items: center;
}

#timeline-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  border-radius: 3px;
  height: 6px;
  cursor: pointer;
  z-index: 2;
  position: absolute;
}

/* Progress filling track shadow */
.timeline-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-dark), var(--champagne));
  border-radius: 3px;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(232, 201, 160, 0.5);
}

#timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--gold);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.1s ease;
}

#timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Controls layout details */
.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  opacity: 0.7;
  padding: 6px;
  border-radius: 4px;
}

.control-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.control-btn.active {
  color: var(--champagne);
  opacity: 1;
}

.control-btn svg {
  width: 18px;
  height: 18px;
}

.main-play-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  opacity: 1;
}

.main-play-btn:hover {
  background: var(--champagne-glow);
  border-color: var(--champagne);
}

.main-play-btn svg {
  width: 16px;
  height: 16px;
  color: var(--champagne);
}

.hidden {
  display: none !important;
}

/* Volume Slider */
.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

#volume-slider {
  width: 70px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 4px;
  border-radius: 2px;
  outline: none;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

/* Center status banner */
.controls-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.now-playing-banner {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--champagne);
  background: rgba(232, 201, 160, 0.05);
  border: 1px solid var(--border-line);
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Speed and options buttons */
.speed-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  padding: 2px;
}

.speed-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.speed-btn:hover {
  color: var(--text-white);
}

.speed-btn.active {
  background: var(--champagne-glow);
  color: var(--champagne);
}

.cc-btn {
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border-line);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Responsive adjustment */
@media (max-width: 1024px) {
  .app-container {
    height: auto;
    min-height: 90vh;
  }
  .workspace {
    flex-direction: column;
  }
  .storyboard-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-line);
    padding: 16px 20px;
  }
  .scenes-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .scene-item {
    flex: 0 0 200px;
  }
  .tips-box {
    display: none;
  }
  .scene-layout-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .scene-visual-area {
    min-height: 180px;
  }
  .scene-panel {
    padding: 30px 20px;
  }
}

/* Export Dialog Modal Styles */
.record-modal {
  border: 1px solid var(--border-hover);
  background: rgba(12, 12, 15, 0.95);
  border-radius: 16px;
  color: var(--text-white);
  padding: 0;
  max-width: 520px;
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.record-modal::backdrop {
  background: rgba(5, 5, 6, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  padding: 30px;
}

.modal-header {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--champagne);
  margin-bottom: 15px;
  letter-spacing: 0.02em;
}

.modal-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-list {
  padding-left: 20px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-list li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-list li strong {
  color: var(--champagne);
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn {
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-btn.confirm {
  background: var(--champagne);
  color: var(--bg-obsidian);
  border: 1px solid var(--champagne);
}

.modal-btn.confirm:hover {
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.modal-btn.cancel {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-line);
}

.modal-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

