/**
 * Haalyn Technologies FZE — World-Class Interactive Luxury Modules
 * File: assets/css/interactive-modules.css
 * 
 * Invariants:
 * - Ultra-luxury midnight obsidian & champagne gold styling
 * - Smooth 3D perspective transforms & hardware-accelerated animations
 * - Zero horizontal overflow compliance (max-width: 100%; box-sizing: border-box)
 */

/* ==========================================================================
   1. 3D HERO PERSPECTIVE & PULSATING HOTSPOTS
   ========================================================================== */

.hero-3d-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-phone-wrap {
  position: relative;
  width: 100%;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-3d-img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 25px rgba(212, 175, 55, 0.15));
  user-select: none;
  pointer-events: none;
}

.hero-3d-glare {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
  z-index: 5;
}

/* Pulsating Hotspot Beacons */
.hero-hotspot {
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -50%);
}

/* Coordinates for VX-8208 Flagship Phone */
.hotspot-display {
  top: 28%;
  left: 56%;
}

.hotspot-faceplate {
  top: 50%;
  left: 45%;
}

.hotspot-charging {
  top: 80%;
  left: 75%;
}

.hotspot-base {
  top: 82%;
  left: 25%;
}

.hotspot-trigger {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #F9DF7B 0%, #D4AF37 60%, #996515 100%);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hotspot-trigger:hover {
  transform: scale(1.15);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.95);
}

.hotspot-beacon-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.8);
  animation: beaconPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes beaconPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hotspot-icon {
  width: 14px;
  height: 14px;
  color: #060B18;
  stroke-width: 2.5;
}

/* Frosted Glass Hotspot Feature Card */
.hotspot-card {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.94);
  width: 270px;
  padding: 16px 18px;
  background: rgba(11, 19, 43, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(212, 175, 55, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
  text-align: left;
}

.hotspot-card::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(11, 19, 43, 0.94) transparent transparent transparent;
}

.hero-hotspot.is-active .hotspot-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.hotspot-card-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted-light);
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hotspot-card-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
}

.hotspot-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-metallic);
  margin-bottom: 4px;
}

.hotspot-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.3;
}

.hotspot-card-desc {
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   2. APPLE-STYLE NARRATIVE PRODUCT SCROLL
   ========================================================================== */

.narrative-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-8);
}

.narrative-card {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(11, 19, 43, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.narrative-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.15);
}

.narrative-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: 480px;
}

.narrative-card.reverse .narrative-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.narrative-card.reverse .narrative-media {
  order: 2;
}

.narrative-card.reverse .narrative-content {
  order: 1;
}

.narrative-media {
  position: relative;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(6, 11, 24, 0.9) 100%);
  padding: var(--space-8);
  overflow: hidden;
}

.narrative-img {
  max-width: 85%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.65));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.narrative-card:hover .narrative-img {
  transform: scale(1.04);
}

.narrative-media-badge {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  z-index: 2;
}

.narrative-content {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.narrative-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold-metallic);
  margin-bottom: var(--space-2);
}

.narrative-title {
  font-size: var(--text-h2);
  font-weight: var(--font-bold);
  color: #FFFFFF;
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.narrative-desc {
  font-size: var(--text-body);
  color: var(--color-text-secondary-light);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 520px;
}

.narrative-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.narrative-spec-item {
  display: flex;
  flex-direction: column;
}

.narrative-spec-k {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.narrative-spec-v {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
}

.narrative-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ==========================================================================
   3. INTERACTIVE MULTILINGUAL AI VOICE CONSOLE
   ========================================================================== */

.ai-voice-console {
  background: linear-gradient(135deg, rgba(6, 11, 24, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(212, 175, 55, 0.12);
  margin-top: var(--space-8);
}

/* Persona Selection Strip */
.ai-persona-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.ai-persona-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.ai-persona-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 175, 55, 0.3);
}

.ai-persona-tab.is-active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: var(--color-gold-metallic);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.ai-persona-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.5);
  flex-shrink: 0;
}

.ai-persona-tab.is-active .ai-persona-avatar {
  border-color: var(--color-gold-metallic);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.ai-persona-meta {
  display: flex;
  flex-direction: column;
}

.ai-persona-tab-name {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}

.ai-persona-tab-role {
  font-size: 11px;
  color: var(--color-emerald-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Soundstage Console Terminal */
.ai-soundstage {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

.ai-soundstage-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ai-soundstage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.ai-status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-emerald-400);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.ai-lang-selector {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ai-lang-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-muted-light);
  font-weight: 600;
}

.ai-lang-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-secondary-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.ai-lang-btn.is-active {
  background: var(--color-gold-metallic);
  color: #060B18;
  border-color: var(--color-gold-metallic);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Audio Waveform Canvas */
.ai-waveform-wrap {
  width: 100%;
  height: 64px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ai-waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.voice-transcript-box {
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--color-gold-metallic);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.voice-transcript-text {
  font-size: 13px;
  font-style: italic;
  color: #F1F5F9;
  line-height: 1.5;
  margin: 0;
}

/* Big Play Trigger Button */
.voice-play-trigger {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #F9DF7B 0%, #D4AF37 55%, #AA7A1E 100%);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #060B18;
  transition: all 0.25s ease;
  position: relative;
  flex-shrink: 0;
}

.voice-play-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.9);
}

.voice-play-trigger.is-playing {
  background: radial-gradient(circle, #34D399 0%, #10B981 60%, #059669 100%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
}

.voice-play-icon {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.voice-play-trigger.is-playing .voice-play-icon {
  margin-left: 0;
}

/* ==========================================================================
   4. INTERACTIVE AEI DCS SERVERLESS MESH VISUALIZER
   ========================================================================== */

.mesh-interactive-container {
  background: linear-gradient(135deg, rgba(11, 19, 43, 0.95) 0%, rgba(6, 11, 24, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  margin-top: var(--space-8);
}

.mesh-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mesh-mode-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mesh-toggle-btn {
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
}

.mesh-toggle-btn.is-active {
  background: var(--color-gold-metallic);
  color: #060B18;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.mesh-status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: #F1F5F9;
}

.status-dot.warning {
  background-color: #F59E0B;
}

.status-dot.error {
  background-color: #EF4444;
}

.mesh-canvas-wrap {
  width: 100%;
  height: 380px;
  position: relative;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8) 0%, rgba(6, 11, 24, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: crosshair;
}

.mesh-topology-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.mesh-bottom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.mesh-capex-highlight {
  font-size: 13px;
  color: var(--color-text-secondary-light);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mesh-capex-highlight strong {
  color: var(--color-gold-metallic);
}

/* ==========================================================================
   5. SLEEK FLOATING LUXURY ACTION BAR
   ========================================================================== */

.floating-luxury-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: auto;
  max-width: calc(100vw - 32px);
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.floating-bar-glass {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 8px 14px 8px 18px;
  background: rgba(6, 11, 24, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);
}

.floating-bar-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-bar-status-text {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.floating-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-floating {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
  border-radius: var(--radius-full);
}

.btn-dark-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-dark-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

/* ==========================================================================
   6. RESPONSIVE REFINEMENTS
   ========================================================================== */

@media (max-width: 1024px) {
  .narrative-grid,
  .narrative-card.reverse .narrative-grid {
    grid-template-columns: 1fr;
  }

  .narrative-card.reverse .narrative-media {
    order: 0;
  }

  .narrative-card.reverse .narrative-content {
    order: 0;
  }

  .ai-persona-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-soundstage {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ai-soundstage-header {
    justify-content: center;
  }

  .voice-play-trigger {
    margin: var(--space-4) auto 0;
  }
}

@media (max-width: 768px) {
  .floating-bar-status {
    display: none;
  }

  .floating-bar-glass {
    padding: 6px 10px;
    gap: var(--space-2);
  }

  .btn-floating {
    padding: 7px 12px;
    font-size: 11px;
  }

  .ai-persona-strip {
    grid-template-columns: 1fr;
  }

  .narrative-specs-grid {
    grid-template-columns: 1fr;
  }

  .narrative-content {
    padding: var(--space-6);
  }

  .hotspot-card {
    width: 220px;
    padding: 12px 14px;
  }
}

/* ==========================================================================
   10. LUXURY VISUAL HARDWARE GALLERY & SHOWROOM
   ========================================================================== */

.section-gallery {
  background-color: var(--color-canvas-light, #f8fafc);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.gallery-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.gallery-filter-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter-btn:hover {
  border-color: var(--color-gold-500);
  color: var(--color-gold-700);
  background: #fffdf5;
}

.gallery-filter-btn.is-active {
  background: var(--color-midnight-obsidian, #0b1120);
  color: #ffffff;
  border-color: var(--color-gold-500);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.gallery-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--color-gold-500);
}

.gallery-media {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  overflow: hidden;
}

.gallery-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.gallery-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-model {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-cyan-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.gallery-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-midnight-obsidian, #0b1120);
  margin-bottom: 8px;
  line-height: 1.3;
}

.gallery-desc {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  margin-bottom: var(--space-4);
}

.gallery-tag {
  font-size: 10.5px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
}

.gallery-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: var(--space-3);
  display: flex;
  justify-content: flex-end;
}

/* Customization Banner */
.gallery-customization-banner {
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-xl, 16px);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.custom-banner-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: var(--space-2) 0;
}

.custom-banner-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.custom-finishes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finish-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.finish-black { background: #000000; color: #ffffff; border: 1px solid #334155; }
.finish-white { background: #ffffff; color: #0f172a; border: 1px solid #e2e8f0; }
.finish-gold { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.finish-silver { background: #e2e8f0; color: #334155; border: 1px solid #94a3b8; }

@media (max-width: 900px) {
  .gallery-customization-banner {
    flex-direction: column;
    text-align: center;
  }
  .custom-finishes-list {
    justify-content: center;
  }
}

/* ==========================================================================
   11. WHATSAPP VOICE & TEXT AI CHATBOT WIDGET
   ========================================================================== */

.ai-bot-wrapper {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 999;
}

.ai-bot-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 40px;
  padding: 5px 16px 5px 5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

.ai-bot-bubble:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #25D366;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.25);
}

.ai-bot-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}

.ai-bot-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #25D366;
}

.ai-bot-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #25D366;
  border: 2px solid #0b1120;
  border-radius: 50%;
  box-shadow: 0 0 6px #25D366;
}

.ai-bot-bubble-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ai-bot-bubble-badge {
  font-size: 10px;
  font-weight: 700;
  color: #25D366;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-bot-bubble-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.ai-bot-waveform {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 16px;
  padding-left: 4px;
}

.ai-bot-waveform span {
  width: 3px;
  background: #25D366;
  border-radius: 2px;
  animation: wavePulse 1.2s ease-in-out infinite;
}

.ai-bot-waveform span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.ai-bot-waveform span:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.ai-bot-waveform span:nth-child(3) { height: 18px; animation-delay: 0.2s; }
.ai-bot-waveform span:nth-child(4) { height: 10px; animation-delay: 0.4s; }
.ai-bot-waveform span:nth-child(5) { height: 8px; animation-delay: 0.15s; }

@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Chat Drawer Panel */
.ai-bot-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #0b1120;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-bot-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-bot-header {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-bot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-bot-header-avatar {
  position: relative;
  width: 38px;
  height: 38px;
}

.ai-bot-header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #25D366;
}

.ai-bot-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.ai-bot-subtitle {
  font-size: 11px;
  color: #94a3b8;
}

.ai-bot-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.ai-bot-close-btn:hover {
  color: #ffffff;
}

.ai-bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 92%;
}

.ai-msg-bot {
  align-self: flex-start;
}

.ai-msg-user {
  align-self: flex-end;
}

.ai-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.5;
}

.ai-msg-bot .ai-msg-bubble {
  background: #1e293b;
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-msg-user .ai-msg-bubble {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.ai-msg-note {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

/* Voice Demo Bubble */
.voice-demo-bubble {
  background: linear-gradient(135deg, #172554 0%, #1e293b 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.voice-demo-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
}

.voice-demo-player {
  display: flex;
  align-items: center;
}

.voice-play-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #0b1120;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.voice-play-trigger:hover {
  background: #1ebe5d;
  transform: scale(1.03);
}

.voice-play-trigger.is-playing {
  background: #f59e0b;
  color: #000000;
}

.play-icon {
  font-size: 10px;
}

/* Quick Prompts */
.ai-quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.quick-prompts-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 2px;
}

.quick-prompt-btn {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-prompt-btn:hover {
  background: #334155;
  color: #ffffff;
  border-color: #25D366;
}

/* Direct WhatsApp Bar */
.ai-bot-whatsapp-bar {
  padding: 8px 14px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-wa-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-wa-direct:hover {
  background: #20ba59;
  color: #ffffff;
}

/* Footer Form */
.ai-bot-footer {
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
}

.ai-bot-input-wrap {
  display: flex;
  gap: 8px;
  position: relative;
}

.ai-bot-input-wrap input {
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #ffffff;
  outline: none;
}

.ai-bot-input-wrap input:focus {
  border-color: #25D366;
}

.ai-bot-send-btn {
  background: #25D366;
  border: none;
  color: #0b1120;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.ai-bot-send-btn:hover {
  background: #1ebe5d;
}

.ai-bot-privacy-note {
  font-size: 10px;
  color: #64748b;
  text-align: center;
  margin-top: 6px;
}
