/**
 * FIEZEL · features/interactive-chat/fiezel-voice-orb.css
 * Dynamic Soundwave Orb / Breathing Aurora Sphere ala GPT-4o & Siri.
 * Tailored for Mode Panggilan Suara Teleponan (Live Conversational AI Call).
 *
 * Design Pillars:
 * 1. 3-Tier Luxury Travertine Palette (#FDFAF3, #E8E0D5, #1B1418 with #10B981 & #E04858 accents)
 * 2. 4 Reactive Call States:
 *    - Connecting: Pulsing radar rings
 *    - Listening: Fluid breathing organic wave responsive to pupil speech
 *    - Thinking: Rotating crystalline gyroscopic orbital rings
 *    - Speaking: Harmonious equalizer soundwave pulse
 * 3. 60 FPS Hardware-Accelerated Performance (transform/opacity only, zero layout thrashing)
 * 4. Title & Action Safe Zone Margins (>= 64px horizontal, >= 120px vertical)
 * 5. Strict Zero Faux Bold 900 (weights 500, 600, 700, 800 only)
 */

:root {
  /* ── 3-Tier Luxury Travertine Core ── */
  --fzc-orb-bg-daylight: #FDFAF3;
  --fzc-orb-sandstone: #E8E0D5;
  --fzc-orb-obsidian: #1B1418;
  --fzc-orb-obsidian-glass: rgba(27, 20, 24, 0.88);
  --fzc-orb-alabaster: #F5EFEB;
  --fzc-orb-travertine-glow: rgba(253, 250, 243, 0.95);

  /* ── Dynamic State Accents ── */
  --fzc-orb-emerald: #10B981;
  --fzc-orb-emerald-glow: rgba(16, 185, 129, 0.45);
  --fzc-orb-coral: #E04858;
  --fzc-orb-coral-glow: rgba(224, 72, 88, 0.40);
  --fzc-orb-amber: #F59E0B;
  --fzc-orb-cobalt: #2563EB;
  --fzc-orb-cobalt-glow: rgba(37, 99, 235, 0.40);

  /* ── Dynamic Audio Reactivity (Set via JS CSS Variables) ── */
  --fzc-voice-level: 0;       /* 0.0 to 1.0 audio amplitude */
  --fzc-voice-pitch: 1.0;     /* 0.8 to 1.4 relative pitch */
  --fzc-orb-diameter: 196px;  /* Optimal mobile tactile size */
}

/* ==========================================================================
   1. FULLSCREEN CALL STAGE & BACKDROP
   ========================================================================== */

.fzc-call-container .fzc-call-stage {
  position: relative !important;
  inset: auto !important;
  background: transparent !important;
  overflow: visible !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  z-index: 1 !important;
}

.fzc-call-container .fzc-call-stage::before,
.fzc-call-container .fzc-call-stage::after {
  display: none !important;
  content: none !important;
}

.fzc-call-stage {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(135% 100% at 50% 20%, #0F131D 0%, #07090F 55%, #020306 100%) !important;
  color: #FDFAF3;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: env(safe-area-inset-top, 24px) 24px env(safe-area-inset-bottom, 32px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.fzc-call-stage.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Ambient Acoustic Noise Texture & Subsurface Radial Aura - disabled to eliminate hard box */
.fzc-call-stage::before {
  display: none !important;
  content: none !important;
}

/* Atmospheric Glow Floor - disabled to eliminate hard box */
.fzc-call-stage::after {
  display: none !important;
  content: none !important;
}

/* ==========================================================================
   2. CALL HEADER: PARTNER IDENTITY & STATUS BADGE
   Enforces Safe Zone margins >= 64px horizontal, >= 120px vertical
   ========================================================================== */

.fzc-call-header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: clamp(24px, 5vh, 48px);
  width: 100%;
  max-width: 440px;
  padding: 0 16px;
}

.fzc-call-partner-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(253, 250, 243, 0.4), rgba(232, 224, 213, 0.15));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.fzc-call-partner-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--fzc-orb-obsidian);
  display: block;
}

.fzc-call-partner-name {
  font-size: 1.25rem;
  font-weight: 800; /* strictly max 800, never 900 */
  letter-spacing: -0.02em;
  color: var(--fzc-orb-bg-daylight);
  margin: 0 0 6px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.fzc-call-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(253, 250, 243, 0.08);
  border: 1px solid rgba(232, 224, 213, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fzc-orb-sandstone);
  transition: all 0.3s ease;
}

.fzc-call-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--fzc-orb-sandstone);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   3. THE VOICE ORB: MASTER COMPOSITING CANVAS & SPHERE
   ========================================================================== */

.fzc-orb-centerpiece {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 20px 0;
}

.fzc-voice-orb-wrapper {
  position: relative;
  width: var(--fzc-orb-diameter);
  height: var(--fzc-orb-diameter);
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  transform: translateZ(0);
}

/* Primary CSS3 Visualizer Sphere */
.fzc-voice-orb {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%,
    var(--fzc-orb-bg-daylight) 0%,
    var(--fzc-orb-sandstone) 42%,
    #A39386 78%,
    var(--fzc-orb-obsidian) 100%
  );
  box-shadow:
    inset 0 0 28px rgba(253, 250, 243, 0.75),
    inset -10px -10px 32px rgba(27, 20, 24, 0.85),
    0 16px 48px rgba(0, 0, 0, 0.45);
  transform: translateZ(0);
  will-change: transform, border-radius, box-shadow, filter;
  transition: filter 0.4s ease, box-shadow 0.4s ease;
  overflow: visible;
}

/* Crystalline Specular Refraction Highlight */
.fzc-voice-orb::before {
  content: '';
  position: absolute;
  top: 6%;
  left: 12%;
  width: 44%;
  height: 36%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 72%);
  transform: rotate(-25deg);
  pointer-events: none;
  opacity: 0.9;
  filter: blur(1.5px);
  transition: opacity 0.3s ease;
}

/* Soft Internal Depth Core */
.fzc-orb-inner-core {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(253, 250, 243, 0.6) 0%,
    rgba(232, 224, 213, 0.2) 50%,
    transparent 80%
  );
  filter: blur(8px);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Optional Fluid Canvas Layer on Top/Within the Orb */
.fzc-voice-orb-canvas {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  opacity: 0.85;
  mix-blend-mode: screen;
  transform: translateZ(0);
}

/* ==========================================================================
   4. STATE 1: MENGHUBUNGKAN (CONNECTING) · PULSING RADAR RING
   ========================================================================== */

.fzc-orb--connecting .fzc-call-status-dot {
  background-color: var(--fzc-orb-amber);
  box-shadow: 0 0 10px var(--fzc-orb-amber);
  animation: fzStatusBlink 1.4s ease-in-out infinite;
}

.fzc-orb--connecting .fzc-voice-orb {
  animation: fzOrbConnectingBreath 2.4s ease-in-out infinite;
  box-shadow:
    inset 0 0 24px rgba(253, 250, 243, 0.8),
    inset -8px -8px 26px rgba(27, 20, 24, 0.8),
    0 0 32px rgba(245, 158, 11, 0.25),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

/* Multi-tier concentric radar shockwave rings */
.fzc-radar-rings {
  position: absolute;
  inset: -120px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.fzc-orb--connecting .fzc-radar-rings {
  opacity: 1;
}

.fzc-radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 224, 213, 0.45);
  box-shadow: 0 0 16px rgba(232, 224, 213, 0.2), inset 0 0 12px rgba(232, 224, 213, 0.1);
  opacity: 0;
  transform: scale(0.65) translateZ(0);
}

.fzc-orb--connecting .fzc-radar-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  animation: fzRadarShockwave 3.2s cubic-bezier(0.12, 0.8, 0.32, 1) infinite;
}

.fzc-orb--connecting .fzc-radar-ring:nth-child(2) {
  width: 100%;
  height: 100%;
  animation: fzRadarShockwave 3.2s cubic-bezier(0.12, 0.8, 0.32, 1) infinite 1.05s;
}

.fzc-orb--connecting .fzc-radar-ring:nth-child(3) {
  width: 100%;
  height: 100%;
  animation: fzRadarShockwave 3.2s cubic-bezier(0.12, 0.8, 0.32, 1) infinite 2.1s;
}

/* Rotating Radar Beam Sweep */
.fzc-radar-sweep {
  position: absolute;
  width: 130%;
  height: 130%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(232, 224, 213, 0.14) 45deg, transparent 85deg);
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
}

.fzc-orb--connecting .fzc-radar-sweep {
  opacity: 1;
  animation: fzRadarSweepRotate 3.6s linear infinite;
}

@keyframes fzRadarShockwave {
  0% {
    transform: scale(0.65) translateZ(0);
    opacity: 0.85;
    border-color: rgba(232, 224, 213, 0.65);
  }
  50% {
    opacity: 0.45;
  }
  100% {
    transform: scale(1.68) translateZ(0);
    opacity: 0;
    border-color: rgba(224, 72, 88, 0.1);
  }
}

@keyframes fzRadarSweepRotate {
  from { transform: rotate(0deg) translateZ(0); }
  to { transform: rotate(360deg) translateZ(0); }
}

@keyframes fzOrbConnectingBreath {
  0%, 100% {
    transform: scale(0.97) translateZ(0);
  }
  50% {
    transform: scale(1.03) translateZ(0);
  }
}

/* ==========================================================================
   5. STATE 2: MENDENGARKAN (LISTENING) · FLUID BREATHING ORGANIC WAVE
   Organic morphing blob with Emerald #10B981 aura reacting to voice input
   ========================================================================== */

.fzc-orb--listening .fzc-call-status-dot {
  background-color: var(--fzc-orb-emerald);
  box-shadow: 0 0 12px var(--fzc-orb-emerald);
  animation: fzStatusBreath 1.8s ease-in-out infinite;
}

.fzc-orb--listening .fzc-voice-orb {
  background: radial-gradient(circle at 40% 36%,
    var(--fzc-orb-bg-daylight) 0%,
    rgba(232, 224, 213, 0.9) 30%,
    rgba(16, 185, 129, 0.75) 68%,
    var(--fzc-orb-obsidian) 100%
  );
  box-shadow:
    inset 0 0 32px rgba(253, 250, 243, 0.85),
    inset -8px -8px 24px rgba(16, 185, 129, 0.5),
    0 0 calc(28px + (var(--fzc-voice-level) * 45px)) rgba(16, 185, 129, 0.55),
    0 16px 48px rgba(0, 0, 0, 0.5);
  animation: fzOrbOrganicMorph 5.2s ease-in-out infinite,
             fzOrbListeningBreath 2.8s ease-in-out infinite;
  transform: scale(calc(1 + (var(--fzc-voice-level) * 0.22))) translateZ(0);
}

/* Dynamic Multi-Wave Acoustic Halos */
.fzc-listening-aurora {
  position: absolute;
  inset: -45px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(16, 185, 129, 0.35) 0%,
    rgba(16, 185, 129, 0.12) 55%,
    transparent 75%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
  transform: translateZ(0);
}

.fzc-orb--listening .fzc-listening-aurora {
  opacity: calc(0.65 + (var(--fzc-voice-level) * 0.35));
  animation: fzAuroraFloat 4.2s ease-in-out infinite alternate;
  transform: scale(calc(1 + (var(--fzc-voice-level) * 0.38))) translateZ(0);
}

/* Organic Asymmetrical Fluid Morphology */
@keyframes fzOrbOrganicMorph {
  0% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  }
  25% {
    border-radius: 46% 54% 63% 37% / 55% 42% 58% 45%;
  }
  50% {
    border-radius: 58% 42% 48% 52% / 44% 60% 40% 56%;
  }
  75% {
    border-radius: 41% 59% 55% 45% / 59% 46% 54% 41%;
  }
  100% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  }
}

@keyframes fzOrbListeningBreath {
  0%, 100% {
    transform: scale(calc(1 + (var(--fzc-voice-level) * 0.22))) rotate(0deg) translateZ(0);
  }
  50% {
    transform: scale(calc(1.05 + (var(--fzc-voice-level) * 0.26))) rotate(4deg) translateZ(0);
  }
}

@keyframes fzAuroraFloat {
  0% {
    transform: scale(1) translate(0, 0) translateZ(0);
    filter: blur(16px);
  }
  100% {
    transform: scale(1.12) translate(0, -6px) translateZ(0);
    filter: blur(24px);
  }
}

/* ==========================================================================
   6. STATE 3: BERPIKIR (THINKING) · ROTATING CRYSTALLINE ORBITAL RINGS
   3D Gyroscopic Rings with Shimmer Refraction & Cobalt/Coral/Emerald Flare
   ========================================================================== */

.fzc-orb--thinking .fzc-call-status-dot {
  background-color: var(--fzc-orb-cobalt);
  box-shadow: 0 0 12px var(--fzc-orb-cobalt);
  animation: fzStatusOrbitPulse 1.2s ease-in-out infinite;
}

.fzc-orb--thinking .fzc-voice-orb {
  transform: scale(0.92) translateZ(0);
  background: radial-gradient(circle at 45% 40%,
    var(--fzc-orb-bg-daylight) 0%,
    var(--fzc-orb-sandstone) 38%,
    #3B4E6B 74%,
    var(--fzc-orb-obsidian) 100%
  );
  box-shadow:
    inset 0 0 28px rgba(253, 250, 243, 0.8),
    inset -8px -8px 24px rgba(37, 99, 235, 0.45),
    0 0 35px rgba(37, 99, 235, 0.35),
    0 16px 48px rgba(0, 0, 0, 0.5);
  animation: fzOrbThinkingCorePulse 2.0s ease-in-out infinite;
}

/* Gyroscopic Orbital Rings Container */
.fzc-orbital-container {
  position: absolute;
  inset: -60px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 800px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 5;
}

.fzc-orb--thinking .fzc-orbital-container {
  opacity: 1;
}

.fzc-orbital-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Ring 1: Primary Crystalline Gyroscope (Cobalt & Emerald) */
.fzc-orbital-ring:nth-child(1) {
  border-top-color: var(--fzc-orb-emerald);
  border-bottom-color: var(--fzc-orb-cobalt);
  border-left-color: rgba(253, 250, 243, 0.7);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  animation: fzOrbitalSpin1 3.4s linear infinite;
}

/* Ring 2: Tilted Planetary Ring (Coral & Travertine) */
.fzc-orbital-ring:nth-child(2) {
  width: 86%;
  height: 86%;
  border-right-color: var(--fzc-orb-coral);
  border-left-color: var(--fzc-orb-sandstone);
  border-top-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 14px rgba(224, 72, 88, 0.3);
  animation: fzOrbitalSpin2 2.6s linear infinite reverse;
}

/* Ring 3: Tight Inner Gyroscope (High-speed reflection) */
.fzc-orbital-ring:nth-child(3) {
  width: 72%;
  height: 72%;
  border-top-color: #FDFAF3;
  border-right-color: var(--fzc-orb-cobalt);
  box-shadow: 0 0 20px rgba(253, 250, 243, 0.5);
  animation: fzOrbitalSpin3 4.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes fzOrbitalSpin1 {
  0% {
    transform: rotateX(65deg) rotateY(15deg) rotateZ(0deg) translateZ(0);
  }
  100% {
    transform: rotateX(65deg) rotateY(15deg) rotateZ(360deg) translateZ(0);
  }
}

@keyframes fzOrbitalSpin2 {
  0% {
    transform: rotateX(35deg) rotateY(70deg) rotateZ(0deg) translateZ(0);
  }
  100% {
    transform: rotateX(35deg) rotateY(70deg) rotateZ(360deg) translateZ(0);
  }
}

@keyframes fzOrbitalSpin3 {
  0% {
    transform: rotateX(-45deg) rotateY(30deg) rotateZ(0deg) translateZ(0);
  }
  100% {
    transform: rotateX(-45deg) rotateY(30deg) rotateZ(360deg) translateZ(0);
  }
}

@keyframes fzOrbThinkingCorePulse {
  0%, 100% {
    transform: scale(0.91) translateZ(0);
    filter: brightness(0.98);
  }
  50% {
    transform: scale(0.96) translateZ(0);
    filter: brightness(1.1);
  }
}

/* ==========================================================================
   7. STATE 4: BERBICARA (SPEAKING) · EQUALIZER SOUNDWAVE PULSE HARMONIS
   Harmonious multi-tier soundwave pulse & fluid speech cadence
   ========================================================================== */

.fzc-orb--speaking .fzc-call-status-dot {
  background-color: var(--fzc-orb-coral);
  box-shadow: 0 0 12px var(--fzc-orb-coral);
  animation: fzStatusVibrate 0.8s ease-in-out infinite;
}

.fzc-orb--speaking .fzc-voice-orb {
  background: radial-gradient(circle at 42% 38%,
    var(--fzc-orb-bg-daylight) 0%,
    rgba(232, 224, 213, 0.95) 28%,
    rgba(224, 72, 88, 0.85) 62%,
    rgba(245, 158, 11, 0.75) 82%,
    var(--fzc-orb-obsidian) 100%
  );
  box-shadow:
    inset 0 0 34px rgba(253, 250, 243, 0.9),
    inset -8px -8px 28px rgba(224, 72, 88, 0.6),
    0 0 calc(32px + (var(--fzc-voice-level) * 55px)) rgba(224, 72, 88, 0.65),
    0 16px 48px rgba(0, 0, 0, 0.55);
  animation: fzOrbSpeakingCadence 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  transform: scale(calc(1.02 + (var(--fzc-voice-level) * 0.28))) translateZ(0);
}

/* Concentric Harmonic Acoustic Wavefronts */
.fzc-speaking-wavefronts {
  position: absolute;
  inset: -90px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.fzc-orb--speaking .fzc-speaking-wavefronts {
  opacity: 1;
}

.fzc-speaking-crest {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(224, 72, 88, 0.5);
  background: radial-gradient(circle at center, rgba(224, 72, 88, 0.12) 0%, transparent 68%);
  opacity: 0;
  transform: scale(0.85) translateZ(0);
}

.fzc-orb--speaking .fzc-speaking-crest:nth-child(1) {
  width: 100%;
  height: 100%;
  animation: fzSpeakingWavePulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.fzc-orb--speaking .fzc-speaking-crest:nth-child(2) {
  width: 100%;
  height: 100%;
  animation: fzSpeakingWavePulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite 0.6s;
}

.fzc-orb--speaking .fzc-speaking-crest:nth-child(3) {
  width: 100%;
  height: 100%;
  animation: fzSpeakingWavePulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite 1.2s;
}

/* Floating Micro Equalizer Bars Under Orb */
.fzc-orb-eq-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  margin-top: 26px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fzc-orb--speaking .fzc-orb-eq-dock {
  opacity: 1;
  transform: translateY(0);
}

.fzc-orb-eq-bar {
  width: 3.5px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--fzc-orb-bg-daylight) 0%, var(--fzc-orb-sandstone) 100%);
  transform-origin: bottom center;
  will-change: height, transform;
}

.fzc-orb--speaking .fzc-orb-eq-bar:nth-child(1) { animation: fzEqJump 0.85s ease-in-out infinite 0.05s; }
.fzc-orb--speaking .fzc-orb-eq-bar:nth-child(2) { animation: fzEqJump 0.75s ease-in-out infinite 0.18s; }
.fzc-orb--speaking .fzc-orb-eq-bar:nth-child(3) { animation: fzEqJump 0.95s ease-in-out infinite 0.10s; }
.fzc-orb--speaking .fzc-orb-eq-bar:nth-child(4) { animation: fzEqJump 0.70s ease-in-out infinite 0.28s; }
.fzc-orb--speaking .fzc-orb-eq-bar:nth-child(5) { animation: fzEqJump 0.90s ease-in-out infinite 0.15s; }

@keyframes fzSpeakingWavePulse {
  0% {
    transform: scale(0.82) translateZ(0);
    opacity: 0.9;
    border-color: rgba(224, 72, 88, 0.7);
  }
  60% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.58) translateZ(0);
    opacity: 0;
    border-color: rgba(245, 158, 11, 0);
  }
}

@keyframes fzOrbSpeakingCadence {
  0%, 100% {
    transform: scale(calc(1.0 + (var(--fzc-voice-level) * 0.24))) translateZ(0);
  }
  50% {
    transform: scale(calc(1.08 + (var(--fzc-voice-level) * 0.32))) translateZ(0);
  }
}

@keyframes fzEqJump {
  0%, 100% {
    height: 6px;
    background: var(--fzc-orb-sandstone);
  }
  50% {
    height: 24px;
    background: var(--fzc-orb-coral);
    box-shadow: 0 0 8px rgba(224, 72, 88, 0.6);
  }
}

/* ==========================================================================
   8. REAL-TIME SUBTITLE / TRANSCRIPTION DISPLAY
   Clean, distraction-free phonetic and Indonesian reflection box
   ========================================================================== */

.fzc-call-transcript-box {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  min-height: 58px;
  padding: 12px 20px;
  margin: 12px 0 20px 0;
  text-align: center;
  background: rgba(253, 250, 243, 0.05);
  border: 1px solid rgba(232, 224, 213, 0.12);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.fzc-call-transcript-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--fzc-orb-bg-daylight);
  margin: 0;
  word-break: break-word;
}

.fzc-call-transcript-text:empty::before {
  content: '...';
  color: rgba(232, 224, 213, 0.4);
  letter-spacing: 0.2em;
}

/* ==========================================================================
   9. CALL CONTROLS DOCK: MUTE, HANGUP & AUDIO MODE
   Enforces tactile ergonomics, 48px+ touch targets, safe bottom clearance
   ========================================================================== */

.fzc-call-controls-dock {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 420px;
  margin-bottom: clamp(16px, 4vh, 36px);
  padding: 0 16px;
}

.fzc-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  background: rgba(253, 250, 243, 0.12);
  color: var(--fzc-orb-bg-daylight);
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 224, 213, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.fzc-call-btn:hover {
  transform: scale(1.06);
  background: rgba(253, 250, 243, 0.2);
}

.fzc-call-btn:active {
  transform: scale(0.94);
}

/* Red Emergency End Call Button */
.fzc-call-btn--hangup {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #FF4558 0%, #E04858 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(224, 72, 88, 0.45);
}

.fzc-call-btn--hangup:hover {
  background: linear-gradient(135deg, #FF5C6D 0%, #D13444 100%);
  box-shadow: 0 12px 36px rgba(224, 72, 88, 0.6);
}

/* Active / Muted Toggled State */
.fzc-call-btn.is-muted {
  background: rgba(224, 72, 88, 0.25);
  border-color: rgba(224, 72, 88, 0.5);
  color: #FF8591;
}

/* ==========================================================================
   10. STATUS PULSE UTILITY KEYFRAMES
   ========================================================================== */

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

@keyframes fzStatusBreath {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--fzc-orb-emerald); }
  50% { transform: scale(1.3); box-shadow: 0 0 18px var(--fzc-orb-emerald); }
}

@keyframes fzStatusOrbitPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--fzc-orb-cobalt); }
  50% { transform: scale(1.25); box-shadow: 0 0 18px var(--fzc-orb-cobalt); }
}

@keyframes fzStatusVibrate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); box-shadow: 0 0 16px var(--fzc-orb-coral); }
}

/* ==========================================================================
   11. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .fzc-voice-orb,
  .fzc-radar-ring,
  .fzc-radar-sweep,
  .fzc-orbital-ring,
  .fzc-speaking-crest,
  .fzc-orb-eq-bar,
  .fzc-call-status-dot {
    animation: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
  }

  .fzc-voice-orb {
    border-radius: 50% !important;
    transform: none !important;
  }
}

/* ==========================================================================
   12. RESPONSIVE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 380px) {
  :root {
    --fzc-orb-diameter: 168px;
  }

  .fzc-call-btn {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .fzc-call-btn--hangup {
    width: 64px;
    height: 64px;
  }

  .fzc-call-controls-dock {
    gap: 18px;
  }
}
