/* ==============================================================================
   APPLE iOS 18 / visionOS LIQUID DARK GLASSMORPHISM
   Vintage Luxe Real Estate L.L.C. // Dubai Private Advisory
   - True physical liquid glass translucency layered over floating ambient caustic orbs
   - Deep Silky Obsidian Canvas (#050508)
   - Double-specular hairline glass highlights (inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35))
   - Symmetrical, perfectly aligned non-wrapping mobile header
   - Smooth feather scrolling & touch momentum architecture
   - WhatsApp Business Live Support & CEO Desk Integration
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Philosopher:wght@400;700&display=swap');

:root {
  /* Obsidian Base Canvas */
  --bg-canvas: #050508;
  
  /* Physical Liquid Glass Layers (Translucent over Caustic Orbs) */
  --glass-sheet: rgba(255, 255, 255, 0.045);
  --glass-sheet-hover: rgba(255, 255, 255, 0.075);
  --glass-sheet-elevated: rgba(255, 255, 255, 0.065);
  --glass-pill: rgba(255, 255, 255, 0.06);
  --glass-tray: rgba(255, 255, 255, 0.04);

  /* Primary Liquid Accents */
  --liquid-violet-start: #8a5af6;
  --liquid-violet-end: #683ef3;
  --liquid-violet-glow: rgba(108, 71, 255, 0.45);

  --liquid-mint-start: #38d6b8;
  --liquid-mint-end: #15b99a;
  --liquid-mint-glow: rgba(24, 181, 152, 0.4);

  /* WhatsApp Brand Green */
  --whatsapp-green: #25D366;
  --whatsapp-glow: rgba(37, 211, 102, 0.35);

  /* Typography */
  --text-main: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;

  /* Specular Hairline Glass Borders & Caustic Depth */
  --border-specular: 1px solid rgba(255, 255, 255, 0.16);
  --border-specular-active: 1px solid rgba(255, 255, 255, 0.3);
  --shadow-liquid-glass: 
    0 30px 90px -15px rgba(0, 0, 0, 0.95),
    0 0 1px 1px rgba(255, 255, 255, 0.08),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 24px 0 rgba(255, 255, 255, 0.02),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.6);

  --shadow-pill-glass: 
    0 10px 24px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Philosopher', Georgia, serif;
}

/* ==============================================================================
   RESET & SMOOTH FEATHER SCROLLING ARCHITECTURE
   ============================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font-family);
  background-color: #000000;
  background-image: url('/static/images/liquid_glass_bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Ambient orbs disabled for pure obsidian liquid glass theme */
.ios-ambient-orb {
  display: none !important;
}

/* Safe-area Page Container */
.page-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 18px max(40px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==============================================================================
   1. TOP NAVIGATION / PERFECTLY ALIGNED GLASS HEADER
   ============================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: var(--glass-sheet);
  backdrop-filter: blur(34px) saturate(200%);
  -webkit-backdrop-filter: blur(34px) saturate(200%);
  border-radius: 9999px;
  border: var(--border-specular);
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.8),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4);
  flex-wrap: nowrap;
}

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

.brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff;
  line-height: 1.15;
}

.nav-brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #a1a1aa;
}

/* Right Nav Group: Status Pulse & Liquid Persona Switch */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.live-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  color: #38d6b8;
  letter-spacing: 0.3px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38d6b8;
  box-shadow: 0 0 0 0 rgba(56, 214, 184, 0.7);
  animation: pulseEmerald 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseEmerald {
  0% { box-shadow: 0 0 0 0 rgba(56, 214, 184, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(56, 214, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 214, 184, 0); }
}

/* Liquid Glass Persona Segmented Switch (Sarah vs David) */
.glass-persona-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  gap: 2px;
}

.header-gender-pill {
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  white-space: nowrap;
}

.header-gender-pill.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.gender-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gender-dot.female { background: #ffffff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.9); }
.gender-dot.male { background: #38d6b8; box-shadow: 0 0 8px rgba(56, 214, 184, 0.9); }

/* Hidden utility toggles/settings */
.hidden-element {
  display: none !important;
}

/* ==============================================================================
   2. MAIN HERO STAGE: THE iOS 18 LIQUID GLASS CARD
   ============================================================================== */
.siri-stage-card {
  position: relative;
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 30px 80px -15px rgba(0, 0, 0, 0.95),
    0 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.8);
  padding: 34px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Dynamic Pure Specular Liquid Glass Caustics (No Rainbow/Neon Tint) */
.siri-edge-glow {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  pointer-events: none;
  background: 
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  opacity: 0.6;
  z-index: 1;
}

/* Speaking State Glow Animation (Incandescent Liquid Amber Gold) */
.siri-stage-card.speaking {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 
    0 30px 90px -10px rgba(0, 0, 0, 0.95),
    0 0 50px rgba(245, 158, 11, 0.35),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.65);
}

.siri-stage-card.listening {
  border-color: rgba(56, 214, 184, 0.7);
  box-shadow: 
    0 30px 90px -10px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(56, 214, 184, 0.28),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.65);
}

/* Advisor Profile Header Inside Glass Card */
.advisor-profile-row {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.advisor-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.advisor-avatar-circle {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 10px 24px -4px rgba(0, 0, 0, 0.85),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advisor-portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.advisor-avatar-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38d6b8;
  border: 2px solid #050508;
  box-shadow: 0 0 8px rgba(56, 214, 184, 0.85);
}

.advisor-text-cluster h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.advisor-text-cluster p {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.siri-status-badge {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.5),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #a78bfa;
}

/* ==============================================================================
   3. FLUID IRIDESCENT HARMONIC VISUALIZER ORB & FLOATING SUBTITLE PILL
   ============================================================================== */
.siri-canvas-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.siri-canvas-overlay {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* Floating Translucent Glass Subtitle Pill */
.siri-glow-label {
  pointer-events: auto;
  background: rgba(20, 20, 28, 0.72);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-radius: 9999px;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.7),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  max-width: 90%;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.1px;
  transition: all 0.3s ease;
}

/* ==============================================================================
   4. GLOSSY LIQUID ACTION BUTTONS DOCK (APPLE DARK GLASS)
   ============================================================================== */
.siri-controls-dock {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  flex-wrap: wrap;
}

/* Primary Action: Glossy Liquid Violet Pill */
.btn-siri-call {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.07) 100%), rgba(20, 20, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  padding: 16px 36px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 
    0 14px 34px -4px rgba(0, 0, 0, 0.95),
    0 0 24px rgba(255, 255, 255, 0.12),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.8);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  touch-action: manipulation;
}

.btn-siri-call:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.12) 100%), rgba(32, 32, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 18px 42px -4px rgba(0, 0, 0, 0.98),
    0 0 32px rgba(255, 255, 255, 0.22),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.85);
}

.btn-siri-call:active {
  transform: scale(0.97);
}

.btn-siri-call.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 14px 32px rgba(239, 68, 68, 0.5),
    0 0 30px rgba(239, 68, 68, 0.35),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.65);
}

/* Secondary Action: Dark Titanium Glass Pill */
.btn-siri-interrupt {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 16px 26px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  touch-action: manipulation;
}

.btn-siri-interrupt:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 14px 30px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-siri-interrupt:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-siri-interrupt:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
  color: #71717a;
}

/* ==============================================================================
   5. QUICK INQUIRIES FLOATING DARK GLASS BUBBLES WITH FEATHER FADE
   ============================================================================== */
.siri-quick-queries {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.quick-queries-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
}

.queries-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.queries-carousel::-webkit-scrollbar {
  display: none;
}

.query-pill {
  background: var(--glass-sheet);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #e4e4e7;
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  flex-shrink: 0;
  touch-action: manipulation;
}

.query-pill svg {
  flex-shrink: 0;
  display: block;
}

.query-pill.highlight-whatsapp svg {
  stroke: #25D366;
}

.query-pill:hover {
  transform: translateY(-2px);
  background: var(--glass-sheet-hover);
  border-color: rgba(138, 90, 246, 0.5);
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(138, 90, 246, 0.25),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.query-pill.highlight-whatsapp {
  border-color: rgba(37, 211, 102, 0.4);
  color: #a7f3d0;
  background: rgba(37, 211, 102, 0.08);
}

.query-pill.highlight-whatsapp:hover {
  border-color: #25D366;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(37, 211, 102, 0.35);
  color: #ffffff;
}

.query-pill:active {
  transform: scale(0.96);
}

/* ==============================================================================
   6. SEGMENTED TABS & INTERACTIVE CONTENT PANEL
   ============================================================================== */
.content-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.panel-header-tabs {
  background: var(--glass-sheet);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 9999px;
  padding: 5px;
  border: var(--border-specular);
  display: inline-flex;
  gap: 4px;
  box-shadow: 
    0 14px 32px rgba(0, 0, 0, 0.75),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.25);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  align-self: center;
  -webkit-overflow-scrolling: touch;
}

.panel-header-tabs::-webkit-scrollbar {
  display: none;
}

.panel-tab {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
}

.panel-tab.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.tab-clear-btn {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  border-radius: 9999px;
  transition: color 0.2s;
}

.tab-clear-btn:hover {
  color: #ff453a;
}

/* Tab Views Container */
.tab-view {
  display: none;
  width: 100%;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-view.active {
  display: block;
}

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

/* ==============================================================================
   7. VIEW 1: LIVE DIALOGUE STREAM & DARK GLASS CHAT BAR
   ============================================================================== */
.transcript-feed {
  background: var(--glass-sheet);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border-radius: 28px;
  border: var(--border-specular);
  box-shadow: var(--shadow-liquid-glass);
  padding: 24px;
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.transcript-feed::-webkit-scrollbar {
  width: 6px;
}
.transcript-feed::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 9999px;
}

.transcript-placeholder {
  margin: auto;
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  max-width: 340px;
  padding: 30px 10px;
}

/* Dialogue Messages */
.transcript-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 82%;
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

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

.transcript-msg.agent {
  align-self: flex-start;
  align-items: flex-start;
}

.transcript-msg.system {
  align-self: center;
  align-items: center;
  max-width: 90%;
}

.msg-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.msg-bubble {
  border-radius: 20px;
  padding: 12px 18px;
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.transcript-msg.user .msg-bubble {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.transcript-msg.agent .msg-bubble {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-left-radius: 4px;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.transcript-msg.system .msg-bubble {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 12.5px;
  border-radius: 9999px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Floating Dark Glass Chat Input Pill */
.chat-input-bar {
  margin-top: 14px;
  background: var(--glass-sheet);
  backdrop-filter: blur(34px);
  -webkit-backdrop-filter: blur(34px);
  border-radius: 9999px;
  border: var(--border-specular);
  box-shadow: 
    0 14px 32px rgba(0, 0, 0, 0.75),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.3);
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14.5px;
  color: #ffffff;
  font-family: inherit;
}

.chat-input-bar input::placeholder {
  color: var(--text-tertiary);
}

.btn-chat-send {
  background: linear-gradient(135deg, var(--liquid-violet-start) 0%, var(--liquid-violet-end) 100%);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px var(--liquid-violet-glow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-chat-send:active {
  transform: scale(0.92);
}

/* ==============================================================================
   8. VIEW 2: VERIFIED PROPERTIES (TRANSLUCENT DARK GLASS CARDS)
   ============================================================================== */
.properties-deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.prop-card {
  background: var(--glass-sheet);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: 26px;
  border: var(--border-specular);
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.75),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.25);
  padding: 22px;
  cursor: pointer;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  touch-action: manipulation;
}

.prop-card:hover {
  transform: translateY(-4px);
  background: var(--glass-sheet-hover);
  border-color: rgba(138, 90, 246, 0.5);
  box-shadow: 
    0 24px 50px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(108, 71, 255, 0.25),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.4);
}

.prop-card:active {
  transform: scale(0.98);
}

.prop-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.prop-badge.sale { color: #a78bfa; border-color: rgba(167, 139, 250, 0.4); }
.prop-badge.rental { color: #38d6b8; border-color: rgba(56, 214, 184, 0.4); }
.prop-badge.offplan { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); }

.prop-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.prop-loc {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.prop-price {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
}

.prop-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==============================================================================
   9. VIEW 3: ADVISORY SPECIALISTS & HUMAN SUPPORT DIRECTORY
   ============================================================================== */
.team-deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.team-card {
  background: var(--glass-sheet);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 22px;
  border: var(--border-specular);
  box-shadow: 
    0 14px 30px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
  position: relative;
}

.team-card:hover {
  transform: translateY(-3px);
  background: var(--glass-sheet-hover);
  border-color: rgba(138, 90, 246, 0.5);
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(108, 71, 255, 0.25);
}

.team-card.vip-support-card {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.05);
}

.team-card.vip-support-card:hover {
  border-color: #25D366;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(37, 211, 102, 0.3);
}

.team-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.06) 100%), rgba(20, 20, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.team-avatar.whatsapp-avatar {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.team-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-info strong {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

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

.team-contact {
  font-size: 11.5px;
  font-weight: 600;
  color: #a78bfa;
  margin-top: 2px;
}

.btn-whatsapp-touch {
  background: #25D366;
  color: #ffffff;
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.btn-whatsapp-touch:hover {
  transform: scale(1.05);
}

/* ==============================================================================
   10. VIEW 4: DUBAI MARKET GUIDE
   ============================================================================== */
.guide-deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.guide-card {
  background: var(--glass-sheet);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 22px;
  border: var(--border-specular);
  box-shadow: 
    0 14px 30px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
  padding: 22px;
  display: flex;
  gap: 14px;
}

.guide-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.guide-content h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.guide-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==============================================================================
   11. MINIMALIST CORPORATE FOOTER
   ============================================================================== */
.corporate-footer {
  margin-top: 20px;
  background: var(--glass-sheet);
  backdrop-filter: blur(34px);
  -webkit-backdrop-filter: blur(34px);
  border-radius: 28px;
  border: var(--border-specular);
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.8),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.25);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer-brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-company-name {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
}

.footer-pill-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-contact-link {
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.footer-contact-link.whatsapp {
  color: #34d399;
}

.footer-contact-link:hover {
  opacity: 0.8;
}

.footer-legal-copy {
  font-size: 11.5px;
  color: var(--text-tertiary);
}

/* ==============================================================================
   12. FLOATING APPLE DARK GLASS WHATSAPP BUSINESS BUTTON
   ============================================================================== */
.floating-whatsapp-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: rgba(18, 18, 24, 0.82);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1.5px solid rgba(37, 211, 102, 0.45);
  border-radius: 9999px;
  padding: 10px 20px 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 
    0 14px 34px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(37, 211, 102, 0.35),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

.floating-whatsapp-pill:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #25D366;
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(37, 211, 102, 0.5),
    inset 0 2px 2px 0 rgba(255, 255, 255, 0.45);
}

.floating-whatsapp-pill:active {
  transform: scale(0.96);
}

.whatsapp-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 8px #25D366;
}

/* ==============================================================================
   13. MOBILE & ANDROID WEBVIEW MEDIA QUERIES (PERFECT SYMMETRICAL HEADER)
   ============================================================================== */
@media (max-width: 650px) {
  .page-container {
    padding: max(10px, env(safe-area-inset-top)) 10px max(28px, env(safe-area-inset-bottom));
    gap: 14px;
  }

  /* Single-Line Perfectly Balanced Symmetrical Floating Header */
  .top-nav {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    border-radius: 9999px;
  }

  .nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .brand-logo-img {
    height: 28px;
  }

  .nav-brand-title {
    font-size: 14px;
    font-weight: 700;
  }

  .nav-brand-sub {
    display: none; /* Hide subtitle to preserve clean non-wrapping row */
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .glass-persona-switch {
    padding: 3px;
    gap: 3px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .header-gender-pill {
    padding: 6px 12px;
    font-size: 12px;
    gap: 5px;
  }

  .siri-stage-card {
    padding: 22px 14px 18px;
    border-radius: 28px;
    gap: 16px;
  }

  .siri-canvas-container {
    height: 135px;
  }

  .siri-glow-label {
    font-size: 12px;
    padding: 8px 16px;
  }

  .btn-siri-call {
    width: 100%;
    padding: 15px 22px;
    font-size: 14px;
  }

  .btn-siri-interrupt {
    width: 100%;
    padding: 13px 18px;
    justify-content: center;
  }

  .panel-tab {
    padding: 8px 14px;
    font-size: 12px;
  }

  .properties-deck,
  .team-deck,
  .guide-deck {
    grid-template-columns: 1fr;
  }

  .transcript-feed {
    padding: 16px;
    max-height: 380px;
  }

  .floating-whatsapp-pill {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 12px;
  }
}
