
/* ==========================================================================
   MOBILE TOP MENU SLIDER & DESKTOP NAV SCROLLBAR (MATCHING IMAGE 2)
   ========================================================================== */
.mobile-top-menu-slider {
  display: none;
}

/* Custom scrollbar for desktop .nav-links-wrap (Image 2 baseline) */
.nav-links-wrap {
  scrollbar-width: thin !important;
  scrollbar-color: #34f5c5 rgba(255, 255, 255, 0.08) !important;
}
.nav-links-wrap::-webkit-scrollbar {
  height: 4px !important;
}
.nav-links-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;
}
.nav-links-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #34f5c5, #10b981) !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 6px rgba(52, 245, 197, 0.4) !important;
}

/* Emerald Command Center Dark Theme Foundations */
html, body {
  background-color: #001711 !important;
  color: #f8fafc !important;
}

.top-emergency-bar, .top-bar-custom {
  background: #00120d !important;
  color: #94a3b8 !important;
  padding: 8px 20px !important;
  font-size: 0.78rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.top-emergency-link {
  color: #f59e0b !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  transition: opacity 0.2s ease !important;
}
.top-emergency-link:hover {
  opacity: 0.85 !important;
}

.main-nav-bar {
  background: rgba(0, 36, 27, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px 20px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9998 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.nav-inner {
  max-width: 1280px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.btn-book-nav {
  background: #f59e0b !important;
  color: #001711 !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}
.btn-book-nav:hover {
  background: #fbbf24 !important;
  transform: scale(1.03) !important;
}

.hud-hero h1, .hero-h1 {
  color: #ffffff !important;
}

.hud-hero p, .hero-sub {
  color: #cbd5e1 !important;
}

/* EcoSmartHomes Smart Scroll-Aware Navigation & Off-Canvas Side Drawer */

/* 1. Smart Scroll Behavior for Header */
.main-nav-bar {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  will-change: transform;
}
.main-nav-bar.nav-hidden {
  transform: translateY(-110%) !important;
}

/* 2. Top Bar Mobile Optimization */
@media (max-width: 640px) {
  .top-bar-custom {
    padding: 5px 12px !important;
    font-size: 0.7rem !important;
  }
  .top-bar-inner {
    padding: 0 4px !important;
  }
  .top-bar-inner a {
    font-size: 0.68rem !important;
  }
}

/* 3. Hamburger Menu Trigger Button */
.btn-tools-drawer-toggle {
  background: rgba(52, 245, 197, 0.12);
  border: 1px solid rgba(52, 245, 197, 0.35);
  color: #34f5c5;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-tools-drawer-toggle:hover {
  background: rgba(52, 245, 197, 0.22);
  transform: scale(1.03);
}

/* 4. Side Tab Floating Toggle (Static Pinned Side Bar Toggle) */
#esh-side-tab-toggle {
  position: fixed !important;
  right: 0 !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(0, 36, 27, 0.96) !important;
  border: 1.5px solid #34f5c5 !important;
  border-right: none !important;
  border-radius: 12px 0 0 12px !important;
  color: #34f5c5 !important;
  padding: 14px 8px !important;
  cursor: pointer !important;
  z-index: 999998 !important;
  box-shadow: -4px 6px 24px rgba(0, 0, 0, 0.55), 0 0 14px rgba(52, 245, 197, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  font-family: 'IBM Plex Mono', monospace !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, box-shadow 0.2s !important;
  user-select: none !important;
}
#esh-side-tab-toggle:hover {
  background: #003628 !important;
  transform: translateY(-50%) translateX(-4px) !important;
  box-shadow: -6px 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(52, 245, 197, 0.45) !important;
}
#esh-side-tab-toggle:focus-visible {
  outline: 2px solid #34f5c5 !important;
  outline-offset: 2px !important;
}

/* 5. Off-Canvas Side Drawer Overlay */
#esh-drawer-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 18, 13, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 1000000 !important;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease !important;
}
#esh-drawer-overlay.active {
  display: block !important;
  opacity: 1 !important;
}

/* 6. Off-Canvas Side Drawer Panel (Right-Hand Side) */
#esh-side-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 360px !important;
  max-width: 88vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #00241b !important;
  border-right: 1.5px solid rgba(52, 245, 197, 0.35) !important;
  border-left: none !important;
  box-shadow: 15px 0 50px rgba(0, 0, 0, 0.85) !important;
  z-index: 10000005 !important;
  transform: translateX(-100%) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  padding: 20px 16px !important;
  box-sizing: border-box !important;
  color: #f8fafc !important;
  font-family: 'Inter', sans-serif !important;
}
#esh-side-drawer.open {
  transform: translateX(0) !important;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.drawer-close-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.drawer-close-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #34f5c5;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  margin: 18px 0 10px 0;
}

.drawer-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #001711;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.drawer-link-item:hover {
  border-color: #34f5c5;
  background: rgba(52, 245, 197, 0.08);
  color: #ffffff;
  transform: translateX(-4px);
}
.drawer-link-item span.tool-icon {
  font-size: 1.3rem;
  width: 26px;
  text-align: center;
}

/* 7. Mobile Badge Pills Polish */
@media (max-width: 640px) {
  .badge-pill-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px !important;
    margin-bottom: 18px !important;
  }
  .badge-pill {
    font-size: 0.68rem !important;
    padding: 4px 10px !important;
  }
  .hero-h1 {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
  }
  .hero-sub {
    font-size: 0.88rem !important;
    margin-bottom: 24px !important;
  }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100% !important;
    text-align: center !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
  }
}

/* ==========================================================================
   ECOSMARTHOMES DESKTOP BLUEPRINT: PERSONA FILTER BAR & CTA HIERARCHY
   ========================================================================== */

/* 1. Segmented Persona Filter Bar */
.persona-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 18, 13, 0.9);
  border: 1.5px solid rgba(52, 245, 197, 0.35);
  border-radius: 9999px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.persona-pill {
  background: rgba(0, 36, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.persona-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.persona-pill.active {
  background: #10b981 !important;
  color: #001711 !important;
  font-weight: 900 !important;
  border-color: #34f5c5 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6) !important;
}

.persona-pill.active[data-persona="agent"] {
  background: #f59e0b !important;
  color: #001711 !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6) !important;
}

.persona-pill.active[data-persona="installer"] {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.6) !important;
}

.persona-pill.active[data-persona="all"] {
  background: #34f5c5 !important;
  color: #001711 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 16px rgba(52, 245, 197, 0.6) !important;
}

/* 2. Hero CTA Visual Hierarchy: Primary Solid vs Secondary Ghost */
.btn-hero-primary-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f59e0b;
  color: #00241b;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-hero-primary-star:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.55);
}

.btn-hero-ghost-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 36, 27, 0.6);
  color: #34f5c5;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 15px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid rgba(52, 245, 197, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-ghost-secondary:hover {
  background: rgba(52, 245, 197, 0.10);
  color: #34f5c5;
  border-color: #34f5c5;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(52, 245, 197, 0.2);
}

/* 3. Bloomberg-Terminal Split Layout for Desktop (>= 1024px) */
@media (min-width: 1024px) {
  .bloomberg-split-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
  }
  .desktop-tool-sidebar {
    background: #00241b;
    border: 1px solid rgba(52, 245, 197, 0.25);
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 90px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  }
  .sidebar-rail-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #34f5c5;
    text-transform: uppercase;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
  }
  .sidebar-rail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.15s;
    margin-bottom: 6px;
    border: 1px solid transparent;
  }
  .sidebar-rail-item:hover {
    background: #001711;
    border-color: rgba(52, 245, 197, 0.3);
    color: #ffffff;
    transform: translateX(4px);
  }
  .sidebar-rail-item.active {
    background: rgba(52, 245, 197, 0.15);
    border-color: #34f5c5;
    color: #ffffff;
  }
}

/* 4. Tool Card Filter Fade Effects */
.tool-showcase-box {
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.25s;
}
.tool-showcase-box.persona-hidden {
  display: none !important;
}
.tool-showcase-box.persona-highlight {
  border-color: #34f5c5 !important;
  box-shadow: 0 0 20px rgba(52, 245, 197, 0.35) !important;
  transform: translateY(-4px) !important;
}

/* 8. Mobile Bottom Safety Clearance & Input Focus Auto-Hide */
@media (max-width: 768px) {
  body {
    padding-bottom: 75px !important;
  }
  .hero-cta-row {
    position: relative;
    z-index: 10;
    margin-bottom: 24px !important;
  }
  .floating-widgets-hidden #esh-whatsapp-floating-btn,
  .floating-widgets-hidden .voice-advisor-launcher,
  .floating-widgets-hidden #esh-side-tab-toggle {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
    transition: opacity 0.2s, transform 0.2s !important;
  }
}

/* ==========================================================================
   ECOSMARTHOMES VIRAL "WOW FACTOR" MICRO-INTERACTIONS
   ========================================================================== */

/* 1. Dopamine Drip Rapid Value Counter Badge */
.dopamine-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 36, 27, 0.9);
  border: 1.5px solid #34f5c5;
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: #34f5c5;
  box-shadow: 0 0 16px rgba(52, 245, 197, 0.35);
  animation: dopaminePop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.dopamine-ticker-badge .count-number {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

@keyframes dopaminePop {
  0% { transform: scale(0.92); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

/* 2. Breathing Glow Animations for Recommended Persona Cards */
@keyframes breathingGlowMint {
  0%, 100% {
    border-color: #34f5c5;
    box-shadow: 0 0 14px rgba(52, 245, 197, 0.3), inset 0 0 10px rgba(52, 245, 197, 0.1);
  }
  50% {
    border-color: #10b981;
    box-shadow: 0 0 28px rgba(52, 245, 197, 0.65), inset 0 0 18px rgba(52, 245, 197, 0.2);
  }
}

@keyframes breathingGlowGold {
  0%, 100% {
    border-color: #fbbf24;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.3), inset 0 0 10px rgba(251, 191, 36, 0.1);
  }
  50% {
    border-color: #f59e0b;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.65), inset 0 0 18px rgba(245, 158, 11, 0.2);
  }
}

@keyframes breathingGlowBlue {
  0%, 100% {
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3), inset 0 0 10px rgba(56, 189, 248, 0.1);
  }
  50% {
    border-color: #0284c7;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.65), inset 0 0 18px rgba(56, 189, 248, 0.2);
  }
}

.tool-showcase-box.persona-highlight-mint {
  animation: breathingGlowMint 2.2s infinite ease-in-out !important;
  transform: translateY(-4px) !important;
}
.tool-showcase-box.persona-highlight-gold {
  animation: breathingGlowGold 2.2s infinite ease-in-out !important;
  transform: translateY(-4px) !important;
}
.tool-showcase-box.persona-highlight-blue {
  animation: breathingGlowBlue 2.2s infinite ease-in-out !important;
  transform: translateY(-4px) !important;
}

/* 3. Tactile "One-Click Magic" Preset Chips (Zero Keyboard Friction) */
.tactile-preset-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 14px 0;
}

.tactile-preset-chip {
  background: #001711;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.tactile-preset-chip:hover {
  border-color: #34f5c5;
  background: rgba(52, 245, 197, 0.08);
  color: #ffffff;
  transform: translateY(-2px);
}

.tactile-preset-chip.active {
  background: rgba(52, 245, 197, 0.18);
  border-color: #34f5c5;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(52, 245, 197, 0.4);
  transform: scale(1.03);
}

/* 4. Instant Penalty vs Shield Animated Comparison Bar */
.impact-bar-track {
  background: rgba(0, 18, 13, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
  text-align: left;
}

.bar-row {
  margin-bottom: 10px;
}
.bar-row-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 4px;
}
.bar-visual-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}
.bar-visual-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   3-STEP "WALLET-HIT" HOMEOWNER ONBOARDING FLOW & CARBON TAX SHIELD
   ========================================================================== */

#wallet-rescue-wizard {
  background: radial-gradient(120% 120% at 50% 0%, #003628 0%, #00241b 55%, #001711 100%);
  border: 2px solid rgba(52, 245, 197, 0.35);
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 860px;
  margin: 0 auto 50px auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 18, 13, 0.85);
  border: 1px solid rgba(52, 245, 197, 0.3);
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #34f5c5;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Fuel Tap Buttons */
.wizard-fuel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 24px 0;
}

.wizard-fuel-btn {
  background: #001711;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 14px;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-fuel-btn:hover {
  border-color: #34f5c5;
  background: rgba(52, 245, 197, 0.08);
  color: #ffffff;
  transform: translateY(-2px);
}

.wizard-fuel-btn.active {
  background: rgba(52, 245, 197, 0.2);
  border-color: #34f5c5;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(52, 245, 197, 0.4);
  transform: scale(1.02);
}

/* Interactive Range Slider */
.spend-slider-container {
  background: #001711;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.spend-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
  outline: none;
  margin: 14px 0;
  cursor: pointer;
}

.spend-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #00241b;
  box-shadow: 0 0 14px rgba(255,255,255,0.8);
  cursor: pointer;
  transition: transform 0.15s;
}

.spend-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Digital Penalty Clock */
.penalty-clock-container {
  background: rgba(0, 18, 13, 0.95);
  border: 2px solid #ef4444;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.35);
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.penalty-clock-digital {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  color: #f87171;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
  letter-spacing: -0.02em;
  margin: 8px 0;
}

/* Deploy Shield Button */
.btn-deploy-shield {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #00241b;
  border: 2px solid #34f5c5;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 18px 36px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.btn-deploy-shield:hover {
  background: linear-gradient(135deg, #34f5c5 0%, #10b981 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(52, 245, 197, 0.65);
}

/* Shield Deployed State (The Rescue) */
#shield-deployed-container {
  display: none;
  animation: shieldReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shieldReveal {
  0% { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.savings-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
  text-align: left;
}

.savings-stack-item {
  background: #001711;
  border: 1px solid rgba(52, 245, 197, 0.3);
  border-radius: 12px;
  padding: 16px;
}

/* ==========================================================================
   3-STEP "COMMISSION-BOOSTER" ESTATE AGENT ONBOARDING FLOW
   ========================================================================== */

#agent-rescue-wizard {
  display: block;
  background: radial-gradient(120% 120% at 50% 0%, #3d2800 0%, #1f1400 55%, #001711 100%);
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 860px;
  margin: 0 auto 50px auto;
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.agent-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 18, 13, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fbbf24;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* BER Swipe/Tap Pills */
.agent-ber-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 14px 0 20px 0;
}

.agent-ber-pill {
  flex: 1;
  min-width: 54px;
  background: #001711;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 6px;
  color: #cbd5e1;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.agent-ber-pill:hover {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.agent-ber-pill.active {
  background: #f59e0b;
  color: #00241b;
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
  transform: scale(1.05);
}

/* Equity Surge Display Box */
.equity-surge-container {
  background: rgba(0, 18, 13, 0.95);
  border: 2px solid #fbbf24;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
  margin-bottom: 24px;
}

.equity-surge-digital {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
  letter-spacing: -0.02em;
  margin: 8px 0;
}

/* Daft.ie Blurb Box */
.daft-copy-box {
  background: #001711;
  border: 1.5px dashed rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 20px;
}

.btn-copy-daft {
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid #fbbf24;
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.btn-copy-daft:hover {
  background: #fbbf24;
  color: #00241b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   3-STEP "VAN-TO-VERDICT" INSTALLER / RETROFITTER ONBOARDING FLOW
   ========================================================================== */

#installer-rescue-wizard {
  display: block;
  background: radial-gradient(120% 120% at 50% 0%, #002d4a 0%, #001a2c 55%, #001711 100%);
  border: 2px solid rgba(56, 189, 248, 0.45);
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 860px;
  margin: 0 auto 50px auto;
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.installer-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 18, 13, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Archetype Grid */
.installer-archetype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0 24px 0;
}

.installer-archetype-btn {
  background: #001711;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 12px;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.installer-archetype-btn:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  color: #ffffff;
  transform: translateY(-2px);
}

.installer-archetype-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
  transform: scale(1.02);
}

/* Room Compliance Card List */
.room-compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.installer-room-card {
  background: #001711;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
}

.badge-status-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34f5c5;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
}

.badge-status-warn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Tender Draft Box */
.tender-draft-box {
  background: #001711;
  border: 1.5px dashed rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  padding: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: #bae6fd;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 20px;
}

.btn-copy-tender {
  background: rgba(56, 189, 248, 0.15);
  border: 1.5px solid #38bdf8;
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.btn-copy-tender:hover {
  background: #38bdf8;
  color: #001a2c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   GLOBAL TOAST NOTIFICATION & SMOOTH AMBIENT SHIFT ENHANCEMENTS
   ========================================================================== */

#esh-global-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #00241b;
  border: 1.5px solid #34f5c5;
  border-radius: 9999px;
  padding: 12px 24px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(52, 245, 197, 0.4);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#esh-global-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Smooth ambient transition on Homeowner Card */
#wallet-rescue-wizard {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ==========================================================================
   NATIVE IOS MOBILE APP UI/UX REFACTOR (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
  body {
    background: linear-gradient(180deg, #061a14 0%, #0a221a 100%) !important;
    padding-bottom: 95px !important;
  }

  /* 1. Fixed iOS 5-Item Bottom Navigation Dock */
  #esh-mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(4, 26, 20, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(52, 245, 197, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 12px env(safe-area-inset-bottom, 8px) 12px;
    z-index: 99999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  }

  .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #94a3b8;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.2s;
    user-select: none;
  }

  .dock-item .dock-icon {
    font-size: 1.25rem;
    line-height: 1;
  }

  .dock-item.active, .dock-item:active {
    color: #34f5c5;
  }

  /* Elevated Central Circular Shield FAB */
  .dock-fab-center {
    position: relative;
    top: -14px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34f5c5 0%, #10b981 100%);
    border: 3px solid #041a14;
    color: #00241b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(52, 245, 197, 0.5);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .dock-fab-center:active {
    transform: scale(0.92);
  }

  .dock-fab-center.active {
    box-shadow: 0 0 25px #34f5c5, 0 6px 20px rgba(52, 245, 197, 0.8) !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
  }

  /* 2. Dense Visual Grid Tiles for Fuel / Archetypes */
  .mobile-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0 20px 0;
  }

  .mobile-fuel-tile {
    background: #001711;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
  }

  .mobile-fuel-tile .tile-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 10px auto;
    transition: transform 0.2s;
  }

  .mobile-fuel-tile .tile-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .mobile-fuel-tile .tile-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    font-family: 'IBM Plex Mono', monospace;
  }

  .mobile-fuel-tile.active {
    border-color: #34f5c5 !important;
    background: rgba(52, 245, 197, 0.14) !important;
    box-shadow: 0 0 20px rgba(52, 245, 197, 0.4) !important;
  }

  .mobile-fuel-tile.active .tile-icon-box {
    transform: scale(1.1);
    background: rgba(52, 245, 197, 0.2);
  }

  /* 3. Gliding Dynamic Value Slider Bubble */
  .slider-bubble-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 6px;
    height: 32px;
  }

  .gliding-slider-bubble {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    background: #34f5c5;
    color: #00241b;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(52, 245, 197, 0.5);
    white-space: nowrap;
    pointer-events: none;
    transition: left 0.05s ease-out;
  }

  .gliding-slider-bubble::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: #34f5c5 transparent transparent;
  }

  /* 4. Slide-Up Full-Screen Mobile Tool Sheet Modal */
  #esh-mobile-tool-sheet {
    position: fixed;
    inset: 0;
    background: rgba(0, 18, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 20px 90px 20px;
    box-sizing: border-box;
    animation: sheetSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  #esh-mobile-tool-sheet.open {
    display: flex;
  }

  @keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .sheet-handle-bar {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    margin: 0 auto 16px auto;
  }
}

/* ==========================================================================
   EXACT MOBILE APP SPECIFICATIONS (< 768px)
   ========================================================================== */

/* 1. Core App Workspace Overrides */
#mobile-app-container, .mobile-app-wrapper {
    background: linear-gradient(180deg, #061a14 0%, #0a221a 100%);
    min-height: 100vh;
    padding-bottom: 85px; /* Ensures zero collision with bottom dock */
    overflow-x: hidden;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 2. Horizontal Persona Slider Chips */
.persona-scroll-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    scrollbar-width: none; /* Hides horizontal bars on mobile Chrome/Safari */
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.persona-scroll-track::-webkit-scrollbar {
    display: none;
}
.persona-chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    color: #cbd5e1;
    user-select: none;
}
/* Active States based on current persona selections */
.persona-chip.active-homeowner { 
    background: #10b981 !important; 
    border-color: #34f5c5 !important; 
    color: #00241b !important;
    font-weight: 800 !important;
    box-shadow: 0 0 14px rgba(52, 245, 197, 0.4);
}
.persona-chip.active-agent { 
    background: #f59e0b !important; 
    border-color: #fbbf24 !important; 
    color: #00241b !important;
    font-weight: 800 !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}
.persona-chip.active-installer { 
    background: #0284c7 !important; 
    border-color: #38bdf8 !important; 
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}
.persona-chip.active-audit { 
    background: #8b5cf6 !important; 
    border-color: #c084fc !important; 
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.4);
}
.persona-chip.active-all { 
    background: rgba(52, 245, 197, 0.2) !important; 
    border-color: #34f5c5 !important; 
    color: #34f5c5 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 14px rgba(52, 245, 197, 0.3);
}

/* ==========================================================================
   ONE VIEW SYSTEM PAGE ARCHITECTURE (ZERO SCROLL HIJACKING)
   ========================================================================== */
#system-view-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.system-view-panel {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    width: 100%;
}

.system-view-panel.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ========================================================================= */
/* 🌟 DEDICATED PORTAL HERO STAGES                                           */
/* ========================================================================= */
.portal-hero-stage {
    padding: 60px 20px 70px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.portal-hero-stage.agent-hero-stage {
    background: radial-gradient(120% 120% at 50% -10%, #452b00 0%, #221400 60%, #001711 100%);
}

.portal-hero-stage.installer-hero-stage {
    background: radial-gradient(120% 120% at 50% -10%, #003652 0%, #001e2e 60%, #001711 100%);
}

.portal-hero-stage.audit-hero-stage {
    background: radial-gradient(120% 120% at 50% -10%, #004332 0%, #002219 60%, #001711 100%);
}

.portal-hero-stage.all-hero-stage {
    background: radial-gradient(120% 120% at 50% -10%, #004d38 0%, #00241b 60%, #001711 100%);
}

.portal-hero-h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #ffffff;
    margin: 16px auto 16px auto;
    line-height: 1.15;
    letter-spacing: -0.025em;
    max-width: 880px;
}

.portal-hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: #94a3b8;
    max-width: 740px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

/* ========================================================================= */
/* 🌐 CROSS-PORTAL GATEWAY CARDS (HOMEOWNER PORTAL HUB)                     */
/* ========================================================================= */
.cross-portal-gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 36px auto 44px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.cross-portal-gateway-card {
    background: rgba(0, 32, 24, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}

.cross-portal-gateway-card * {
    pointer-events: none;
}

.cross-portal-gateway-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
}

.cross-portal-gateway-card.agent-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 14px 35px rgba(245, 158, 11, 0.22);
}

.cross-portal-gateway-card.installer-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 14px 35px rgba(56, 189, 248, 0.22);
}

.cross-portal-gateway-card.audit-card:hover {
    border-color: #34f5c5;
    box-shadow: 0 14px 35px rgba(52, 245, 197, 0.22);
}

/* ========================================================================= */
/* 📂 COLLAPSIBLE PORTAL SECONDARY TOOL DRAWERS                              */
/* ========================================================================= */
.portal-drawer-wrapper {
    max-width: 1200px;
    margin: 30px auto 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.portal-drawer-trigger-btn {
    width: 100%;
    background: rgba(0, 36, 27, 0.9);
    border: 1.5px solid rgba(52, 245, 197, 0.35);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 800;
    font-size: 0.98rem;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
    gap: 12px;
}

.portal-drawer-trigger-btn * {
    pointer-events: none;
}

.portal-drawer-trigger-btn:hover {
    border-color: #34f5c5;
    background: rgba(0, 48, 36, 0.98);
    box-shadow: 0 8px 30px rgba(52, 245, 197, 0.25);
    transform: translateY(-2px);
}

.portal-drawer-trigger-btn.expanded {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #34f5c5;
    background: rgba(0, 48, 36, 0.98);
}

.portal-drawer-caret {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    color: #34f5c5;
}

.portal-drawer-trigger-btn.expanded .portal-drawer-caret {
    transform: rotate(180deg);
}

.portal-drawer-content {
    background: rgba(0, 20, 15, 0.85);
    border: 1.5px solid rgba(52, 245, 197, 0.3);
    border-top: none;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: 30px 20px;
    animation: drawerFadeIn 0.3s ease;
}

@keyframes drawerFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .cross-portal-gateway-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin: 20px auto 28px auto !important;
        padding: 0 16px !important;
    }
    .cross-portal-gateway-card {
        padding: 18px 16px !important;
    }
    .portal-drawer-wrapper {
        margin: 20px auto 95px auto !important;
        padding: 0 16px !important;
    }
    .portal-drawer-trigger-btn {
        font-size: 0.86rem !important;
        padding: 14px 16px !important;
    }
    .portal-drawer-content {
        padding: 20px 12px !important;
    }
    #system-view-container {
        padding-bottom: 85px !important;
    }
}

.view-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.view-panel-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0;
}

.view-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 800;
    text-transform: uppercase;
}

/* 3. Hardware-Accelerated Mobile Spend Slider */
input[type="range"].mobile-spend-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    height: 6px;
    border-radius: 3px;
}
input[type="range"].mobile-spend-slider::-moz-range-track {
    background: linear-gradient(to right, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    height: 6px;
    border-radius: 3px;
}

/* Floating Dynamic Value Bubble (GPU-Accelerated) */
.slider-value-bubble {
    position: absolute;
    top: -35px;
    background: rgba(10, 34, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #34f5c5;
    box-shadow: 0 0 10px rgba(52, 245, 197, 0.2);
    will-change: transform; /* Forces GPU acceleration for smooth sliding */
    transform: translateX(-50%);
    pointer-events: none;
}

/* 4. Pinned 5-Item Navigation Dock & Safety Architecture */
.mobile-app-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(6, 26, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    text-align: center;
    z-index: 9999; /* Guarantees it sits above all tool layers */
    padding-bottom: env(safe-area-inset-bottom, 8px); /* Fixes iOS bottom bar spacing */
}
/* ==========================================================================
   STRIPE CHECKOUT MOBILE VIEWPORT REFACTOR (< 768px)
   ========================================================================== */

#mobile-checkout-wrapper {
  background: #061a14;
  min-height: 100vh;
  padding: 16px 12px;
  padding-bottom: env(safe-area-inset-bottom, 24px);
  color: #ffffff;
  box-sizing: border-box;
}

.checkout-card-premium {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px !important;
  padding: 24px 18px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.location-summary-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid #10b981;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: #ffffff;
  box-sizing: border-box;
  width: 100%;
}

.location-summary-chip .chip-badge {
  background: #10b981;
  color: #00241b;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 9999px;
  margin-left: auto;
  letter-spacing: 0.02em;
}

.btn-pay-amber-block {
  width: 100%;
  background: #f59e0b;
  color: #001711;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 16px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.btn-pay-amber-block:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   ADAPTIVE PERSONA DROPDOWN DRAWER (< 768px)
   ========================================================================== */

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-persona-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

@media (min-width: 769px) {
  .mobile-persona-dropdown-wrapper {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .persona-filter-bar {
    display: none !important;
  }
  .mobile-persona-dropdown-wrapper {
    display: inline-block !important;
  }
}

.mobile-persona-dropdown-trigger {
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid #10b981;
  color: #34f5c5;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
  user-select: none;
}

.mobile-persona-dropdown-trigger:active {
  transform: scale(0.95);
}

.mobile-persona-dropdown-trigger.agent-active {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3) !important;
}

.mobile-persona-dropdown-trigger.installer-active {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3) !important;
}

.persona-arrow-bounce {
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1;
  animation: arrowBounce 1.8s infinite ease-in-out;
  color: inherit;
}

/* Glassmorphic Dropdown Layer */
.persona-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(6, 26, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(52, 245, 197, 0.3);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(52, 245, 197, 0.2);
  z-index: 100000;
  min-width: 250px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideDownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.persona-dropdown-panel.open {
  display: flex;
}

.persona-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.persona-option-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.persona-option-item:hover, .persona-option-item:active {
  background: rgba(52, 245, 197, 0.14);
  color: #34f5c5;
}

.persona-option-item .option-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  display: block;
}

/* ==========================================================================
   POST-CHECKOUT WHATSAPP AUTOMATION STYLES
   ========================================================================== */

@keyframes pulseWhatsApp {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    transform: scale(1.02);
  }
}

.btn-whatsapp-pulse {
  background: #25d366;
  color: #00241b !important;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 16px 24px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  animation: pulseWhatsApp 2s infinite ease-in-out;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

.btn-whatsapp-pulse:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

.whatsapp-preview-box {
  background: #001711;
  border: 1.5px dashed rgba(37, 211, 102, 0.4);
  border-radius: 14px;
  padding: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: #bae6fd;
  line-height: 1.6;
  text-align: left;
  margin: 18px 0;
  white-space: pre-wrap;
}

/* ==========================================================================
   MOBILE VIEWPORT CLEANUP & DESKTOP PARITY ENHANCEMENTS
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Mobile Vertical Floating Toggle: Follows page on scroll on left edge */
  #esh-side-tab-toggle {
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: auto !important;
    top: 48% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 36, 27, 0.96) !important;
    border: 1.5px solid #34f5c5 !important;
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
    color: #34f5c5 !important;
    padding: 12px 5px !important;
    cursor: pointer !important;
    z-index: 10000002 !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.65), 0 0 12px rgba(52, 245, 197, 0.3) !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, box-shadow 0.2s !important;
  }

  #esh-side-tab-toggle:active {
    transform: translateY(-50%) scale(0.96) !important;
  }

  /* 2. Hide redundant linear persona filter bar on mobile */
  .persona-filter-bar {
    display: none !important;
  }

  /* 3. Hide top-right adaptive dropdown on mobile (now integrated into Guide & Tools) */
  .mobile-persona-dropdown-wrapper {
    display: none !important;
  }
}

@media (min-width: 769px) {
  /* 1. Ensure desktop displays segmented persona filter bar cleanly */
  .persona-filter-bar {
    display: flex !important;
  }

  /* 2. Ensure desktop displays side drawer toggle */
  #esh-side-tab-toggle {
    display: flex !important;
  }

  /* 3. Hide mobile dropdown on wide screens */
  .mobile-persona-dropdown-wrapper {
    display: none !important;
  }
}

/* ==========================================================================
   FREEMIUM ENGINE STEP 1: ZERO-FRICTION SIGNUP MODAL
   ========================================================================== */

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#esh-freemium-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 18, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100005;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#esh-freemium-modal-overlay.active {
  display: flex;
}

.freemium-modal-card {
  background: rgba(6, 26, 20, 0.98);
  border: 1.5px solid rgba(52, 245, 197, 0.35);
  border-radius: 24px;
  padding: 32px 24px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(52, 245, 197, 0.2);
  text-align: center;
  position: relative;
  box-sizing: border-box;
  animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.freemium-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.freemium-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.freemium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #34f5c5;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.freemium-input {
  width: 100%;
  padding: 12px 14px;
  background: #001711;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.92rem;
  box-sizing: border-box;
  margin-bottom: 12px;
  transition: border-color 0.2s;
  font-family: inherit;
}

.freemium-input:focus {
  outline: none;
  border-color: #34f5c5;
  box-shadow: 0 0 10px rgba(52, 245, 197, 0.3);
}

.freemium-btn-amber {
  width: 100%;
  background: #f59e0b;
  color: #001711;
  font-weight: 900;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  margin-top: 6px;
}

.freemium-btn-amber:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   FIXED BOTTOM DOCK VIEWPORT ANCHORING & DUPLICATE PROFILE REMOVAL
   ========================================================================== */

#esh-mobile-dock, .mobile-app-bottom-dock {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 65px !important;
  z-index: 999999 !important;
  background: rgba(4, 26, 20, 0.94) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-top: 1px solid rgba(52, 245, 197, 0.25) !important;
  padding-bottom: env(safe-area-inset-bottom, 10px) !important;
  will-change: transform !important;
  transform: translateZ(0) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  /* Complete elimination of duplicate profile pills on mobile */
  .persona-filter-bar,
  .persona-scroll-track,
  .nav-inner .persona-filter-bar,
  .nav-inner .persona-scroll-track {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
  
  .mobile-persona-dropdown-wrapper {
    display: inline-block !important;
    visibility: visible !important;
  }
}

@media (min-width: 769px) {
  #esh-mobile-dock, .mobile-app-bottom-dock {
    display: none !important;
  }
  .persona-filter-bar {
    display: flex !important;
  }
  .mobile-persona-dropdown-wrapper {
    display: none !important;
  }
}

/* ==========================================================================
   3-POINT INTERACTIVE AUDIT: REINFORCED MOBILE BOTTOM DOCK & MODAL STACKING
   ========================================================================== */

/* 1. Continuous Bottom Viewport Constraint */
#esh-mobile-dock, .mobile-app-bottom-dock {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 68px !important;
  z-index: 999990 !important;
  background: rgba(4, 26, 20, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-top: 1px solid rgba(52, 245, 197, 0.3) !important;
  
  /* 2. Safe Area Padding Check (iOS Home Indicator Line Protection) */
  padding-top: 6px !important;
  padding-bottom: max(env(safe-area-inset-bottom, 12px), 12px) !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
  
  /* Hardware Acceleration for Aggressive High-Speed Touch Scrolling */
  will-change: transform !important;
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  touch-action: pan-y !important;
}

/* Ensure dock items are vertically centered and never obscured by swipe bar */
#esh-mobile-dock .dock-item, .mobile-app-bottom-dock .dock-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  font-size: 0.68rem !important;
  line-height: 1.1 !important;
  padding: 4px 6px !important;
}

/* ==========================================================================
   MOBILE TOOL SHEET & DOCK VIEWPORT VISIBILITY ISOLATION
   ========================================================================== */

/* 1. Strictly hide mobile tool sheet and bottom dock by default and on desktop (>= 769px) */
#esh-mobile-tool-sheet {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  background: rgba(0, 18, 13, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  padding: 24px 20px 90px 20px !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  #esh-mobile-tool-sheet,
  #esh-mobile-dock,
  .mobile-app-bottom-dock {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* 2. Show mobile tool sheet only when .open on mobile viewports (< 768px) */
@media (max-width: 768px) {
  #esh-mobile-tool-sheet.open {
    display: flex !important;
    animation: sheetSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
}

/* 3. Modal View Overlay Check: Full-Screen Modals */
#esh-freemium-modal-overlay,
#ai-quote-modal-overlay,
.scanner-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* ==========================================================================
   LEFT-HAND SIDE BAR & PERSONA ACCORDION HUBS
   ========================================================================== */

/* Anchor Drawer to Left Hand Side (Connecting to Left-Side Guide & Tools Toggle) */
#esh-side-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 360px !important;
  max-width: 88vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #00241b !important;
  border-right: 1.5px solid rgba(52, 245, 197, 0.35) !important;
  border-left: none !important;
  box-shadow: 15px 0 50px rgba(0, 0, 0, 0.85) !important;
  z-index: 10000005 !important;
  transform: translateX(-100%) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  padding: 20px 16px !important;
  box-sizing: border-box !important;
  color: #f8fafc !important;
  font-family: 'Inter', sans-serif !important;
}

#esh-side-drawer.open {
  transform: translateX(0) !important;
}

/* Accordion Tab Styles */
@keyframes fadeInAccordion {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-accordion-group {
  margin-bottom: 12px;
}

.drawer-accordion-btn {
  width: 100%;
  background: #001711;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  text-align: left;
}

.drawer-accordion-btn:hover {
  border-color: #34f5c5;
  background: #00241b;
}

.drawer-accordion-btn.active {
  border-color: #34f5c5;
  background: rgba(52, 245, 197, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.drawer-accordion-btn .accordion-arrow {
  font-size: 0.8rem;
  transition: transform 0.25s ease;
  color: #34f5c5;
}

.drawer-accordion-btn.active .accordion-arrow {
  transform: rotate(180deg);
}

.drawer-accordion-panel {
  display: none;
  padding: 8px 4px 4px 6px;
}

.drawer-accordion-panel.active {
  display: block;
  animation: fadeInAccordion 0.2s ease-out forwards;
}

.drawer-tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0, 23, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  transition: all 0.2s;
}

.drawer-tool-item:hover {
  border-color: #34f5c5;
  background: rgba(52, 245, 197, 0.1);
  color: #ffffff;
  transform: translateX(4px);
}

.drawer-tool-item .tool-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.drawer-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace;
}

/* ==========================================================================
   MOBILE VIEWPORT AUTOMATIC FIT & VIEWER EXPERIENCE REFINEMENT
   ========================================================================== */

@media (max-width: 768px) {
  /* Header Flexbox Alignment - Zero Overflow */
  .main-nav-bar {
    padding: 10px 14px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 99990 !important;
    background: rgba(0, 24, 18, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(52, 245, 197, 0.2) !important;
  }

  .nav-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  /* Compact Brand Logo */
  .nav-inner a[href="/"] {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
  }

  .nav-inner a[href="/"] span:last-child {
    font-size: 1.05rem !important;
  }

  /* Right Header Controls Group */
  .mobile-persona-dropdown-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .mobile-persona-dropdown-trigger {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
  }

  .btn-tools-drawer-toggle {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    background: rgba(52, 245, 197, 0.12) !important;
    border: 1px solid #34f5c5 !important;
    color: #34f5c5 !important;
  }

  /* Compact Horizontal Badge Container */
  .badge-pill-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 14px !important;
    margin-bottom: 16px !important;
    max-width: 100% !important;
  }

  .badge-pill {
    font-size: 0.68rem !important;
    padding: 4px 10px !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  /* Mobile Hero Headline Auto-Fit */
  .hero-h1 {
    font-size: clamp(1.65rem, 5.5vw, 2.2rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    margin: 12px 0 10px 0 !important;
  }

  .hero-sub {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 18px !important;
  }

  /* Avoid Floating Widget Collisions with Bottom Dock */
  #whatsapp-floating-btn,
  .whatsapp-floating-btn,
  #aoife-voice-pill,
  .aoife-voice-pill {
    bottom: 78px !important; /* Floats cleanly above the 68px bottom dock */
  }
}

/* ==========================================================================
   PERFECT MOBILE VIEWER FIT & ZERO CLIPPING (CSS/SMART-NAV.CSS)
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Header Zero-Clipping Flex Layout & Mobile Top Menu Slider */
  .main-nav-bar {
    padding: 8px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    z-index: 999999 !important;
  }

  .nav-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 12px 6px 12px !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }

  /* Hide static pricing link & bulky Book button from row 1 on mobile */
  .nav-inner a[href="/pricing/"],
  .nav-inner .desktop-pricing-link,
  .btn-book-nav {
    display: none !important;
  }

  /* Hide inline desktop nav-links from header top row on mobile */
  .nav-links-wrap {
    display: none !important;
  }

  /* Dedicated Touch-Optimized Mobile Tools Toggle Bar */
  .mobile-tools-toggle-bar {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 5px 12px !important;
    background: rgba(0, 20, 15, 0.98) !important;
    border-top: 1px solid rgba(52, 245, 197, 0.12) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mobile-tools-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 14px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #34f5c5 !important;
    background: rgba(52, 245, 197, 0.08) !important;
    border: 1px solid rgba(52, 245, 197, 0.25) !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.02em !important;
    user-select: none !important;
    font-family: inherit !important;
  }

  .mobile-tools-toggle-btn:hover,
  .mobile-tools-toggle-btn:active,
  .mobile-tools-toggle-btn.active {
    background: rgba(52, 245, 197, 0.2) !important;
    border-color: #34f5c5 !important;
    box-shadow: 0 0 10px rgba(52, 245, 197, 0.3) !important;
  }

  .tools-toggle-chevron {
    font-size: 0.75rem !important;
    transition: transform 0.25s ease !important;
  }

  /* Dedicated Touch-Optimized Mobile Top Menu Slider (Collapsible) */
  .mobile-top-menu-slider {
    display: none !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 12px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    background: rgba(0, 20, 15, 0.98) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 1px solid rgba(52, 245, 197, 0.15) !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
    scrollbar-color: #34f5c5 rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.3s ease !important;
  }

  .mobile-top-menu-slider.is-open {
    display: flex !important;
    max-height: 60px !important;
    opacity: 1 !important;
    padding: 6px 12px 8px 12px !important;
  }

  /* Tactile Slider Scrollbar matching Image 2 */
  .mobile-top-menu-slider::-webkit-scrollbar {
    height: 4px !important;
  }
  .mobile-top-menu-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
    margin: 0 12px !important;
  }
  .mobile-top-menu-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #34f5c5, #10b981) !important;
    border-radius: 9999px !important;
    box-shadow: 0 0 8px rgba(52, 245, 197, 0.6) !important;
  }

  /* Individual Touch Slider Chips */
  .mobile-nav-slider-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #cbd5e1 !important;
    background: rgba(0, 36, 27, 0.85) !important;
    border: 1px solid rgba(52, 245, 197, 0.22) !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex-shrink: 0 !important;
    line-height: 1.3 !important;
    font-family: inherit !important;
  }

  .mobile-nav-slider-chip:hover,
  .mobile-nav-slider-chip:active,
  .mobile-nav-slider-chip.active {
    background: rgba(52, 245, 197, 0.2) !important;
    border-color: #34f5c5 !important;
    color: #34f5c5 !important;
    box-shadow: 0 0 12px rgba(52, 245, 197, 0.3) !important;
    transform: translateY(-1px) !important;
  }

  .mobile-nav-slider-chip.cta-chip {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: #f59e0b !important;
    color: #fbbf24 !important;
  }
  .mobile-nav-slider-chip.cta-chip:hover,
  .mobile-nav-slider-chip.cta-chip:active {
    background: #f59e0b !important;
    color: #001711 !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
  }

  /* Compact Brand */
  .nav-inner a[href="/"] {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .nav-inner a[href="/"] span:last-child {
    font-size: 1.05rem !important;
  }

  /* Controls Group on Right */
  .mobile-persona-dropdown-wrapper {
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .mobile-persona-dropdown-trigger {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
    border-radius: 9999px !important;
  }

  .btn-tools-drawer-toggle {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* 2. Badge Pills: Horizontal Multi-Line Wrapping (Saves 140px vertical height) */
  .badge-pill-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 12px auto 14px auto !important;
    max-width: 100% !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
  }

  .badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    margin: 0 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  /* 3. Hero Typography Auto-Fit */
  .hero-h1 {
    font-size: clamp(1.6rem, 5.2vw, 2.1rem) !important;
    line-height: 1.2 !important;
    margin: 10px 0 10px 0 !important;
  }

  .hero-sub {
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
    padding: 0 4px !important;
  }

  /* 4. Bottom Dock Safe Padding & Clearance */
  #esh-mobile-dock, .mobile-app-bottom-dock {
    height: 65px !important;
    padding-bottom: max(env(safe-area-inset-bottom, 8px), 8px) !important;
  }
}

/* ==========================================================================
   ZERO AUTO-POPUPS: STRICT INITIAL CLEAN VIEWPORT ENFORCEMENT
   ========================================================================== */

/* 1. All modals, sheets, dropdowns, and overlays strictly hidden on initial page load */
#esh-mobile-tool-sheet,
#esh-freemium-modal-overlay,
#ai-quote-modal-overlay,
.scanner-modal-overlay,
#esh-drawer-overlay,
.persona-dropdown-panel,
#esh-wa-modal-overlay,
.voice-advisor-modal,
#voice-modal,
.popup-overlay {
  display: none !important;
}

/* 2. Overlays only display when explicitly triggered by user click */
#esh-freemium-modal-overlay.active,
#ai-quote-modal-overlay.active,
.scanner-modal-overlay.active,
.popup-overlay.active {
  display: flex !important;
}

#esh-drawer-overlay.active {
  display: block !important;
  opacity: 1 !important;
}

.persona-dropdown-panel.open {
  display: flex !important;
}

@media (max-width: 768px) {
  #esh-mobile-tool-sheet.open {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  #esh-mobile-tool-sheet,
  #esh-mobile-dock,
  .mobile-app-bottom-dock,
  .mobile-persona-dropdown-wrapper,
  #mobileToolsToggleBar,
  .mobile-tools-toggle-bar,
  #mobileTopMenuSlider,
  .mobile-top-menu-slider {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Landscape Mobile Viewport Optimization (Compact Native-Grade View) */
@media (orientation: landscape) and (max-height: 520px) {
  .main-nav-bar {
    padding: 3px 0 0 0 !important;
  }
  .nav-inner {
    padding: 0 8px 3px 8px !important;
  }
  .persona-scroll-track {
    gap: 4px !important;
  }
  .persona-pill, .persona-chip {
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
  }
  .mobile-tools-toggle-bar {
    padding: 2px 8px !important;
  }
  .mobile-tools-toggle-btn {
    padding: 2px 10px !important;
    font-size: 0.65rem !important;
  }
  .mobile-top-menu-slider.is-open {
    padding: 4px 8px 6px 8px !important;
    max-height: 46px !important;
  }
  .mobile-nav-slider-chip {
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
  }
  .mobile-app-bottom-dock {
    height: 50px !important;
    padding: 2px 12px !important;
  }
  .dock-item {
    font-size: 0.65rem !important;
    gap: 1px !important;
  }
  .dock-icon {
    font-size: 1.1rem !important;
  }
  .dock-fab-center {
    width: 44px !important;
    height: 44px !important;
    margin-top: -18px !important;
    font-size: 1.2rem !important;
  }
  body {
    padding-bottom: 60px !important;
  }
}


/* ==========================================================================
   HIGH-VISIBILITY BOUNDARY BOX & HEADER SYSTEM (Emerald Command Center)
   ========================================================================== */

/* Universal Reset: Prevent any browser default purple visited link bleed */
a, a:visited {
  color: inherit;
  text-decoration: none;
}

/* 1. Brand Logo: Crisp, High-Contrast & Larger */
.logo, a.logo, .logo-text, .brand-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  letter-spacing: -0.02em !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.logo:hover, a.logo:hover, .logo-text:hover {
  color: #34f5c5 !important;
  transform: translateY(-1px);
}

.logo strong, .logo-text strong {
  color: #34f5c5 !important;
  font-weight: 900 !important;
}

.logo-icon {
  font-size: 1.45rem !important;
}

/* 2. Top Emergency / Notification Bar: High Contrast Boundary Box System */
.top-bar, .top-emergency-bar, .top-bar-custom, aside.top-bar {
  background: #00120d !important;
  border-bottom: 1px solid rgba(52, 245, 197, 0.25) !important;
  color: #f1f5f9 !important;
  padding: 8px 20px !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  position: relative !important;
  z-index: 1001 !important;
}

.top-bar-container, .top-bar-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.top-bar-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #e2e8f0 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  flex-wrap: wrap !important;
}

/* Protocol / Arbitrage Badge Boundary Box */
.protocol-tag, .top-bar-badge, .top-emergency-badge {
  background: rgba(52, 245, 197, 0.12) !important;
  border: 1px solid rgba(52, 245, 197, 0.4) !important;
  color: #34f5c5 !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Top Bar CTA Button: High-Contrast Glowing Amber Boundary Box */
.top-bar-cta, .top-emergency-link, a.top-bar-cta, a.top-emergency-link {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1.5px solid #f59e0b !important;
  color: #fbbf24 !important;
  padding: 4px 14px !important;
  border-radius: 9999px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  font-family: 'Inter', sans-serif !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
}

.top-bar-cta:hover, .top-emergency-link:hover, a.top-bar-cta:hover, a.top-emergency-link:hover {
  background: #f59e0b !important;
  color: #001711 !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6) !important;
  transform: translateY(-1px) scale(1.02) !important;
}

/* 3. Navigation Links & Badges Boundary Box Styling */
.header, .main-nav-bar {
  background: rgba(0, 31, 23, 0.96) !important;
  border-bottom: 1px solid rgba(52, 245, 197, 0.2) !important;
  padding: 12px 20px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999999 !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.nav a, .nav-link, .nav-link-item {
  color: #cbd5e1 !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.nav a:hover, .nav-link:hover, .nav-link-item:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.nav a.active, .nav-link.active, .nav-link-item.active {
  color: #34f5c5 !important;
  background: rgba(52, 245, 197, 0.12) !important;
  border-color: rgba(52, 245, 197, 0.35) !important;
  font-weight: 700 !important;
}

/* 4. Action Buttons (Tools Drawer & Book Survey) */
.btn-tools-drawer-toggle, button.btn-tools-drawer-toggle {
  background: rgba(52, 245, 197, 0.12) !important;
  border: 1.5px solid rgba(52, 245, 197, 0.4) !important;
  color: #34f5c5 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s !important;
}

.btn-tools-drawer-toggle:hover, button.btn-tools-drawer-toggle:hover {
  background: rgba(52, 245, 197, 0.25) !important;
  box-shadow: 0 0 16px rgba(52, 245, 197, 0.35) !important;
  transform: scale(1.02) !important;
}

.btn-book-nav, a.btn-book-nav, .header-actions a.btn-primary {
  background: #f59e0b !important;
  color: #001711 !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  border: 1.5px solid transparent !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-book-nav:hover, a.btn-book-nav:hover, .header-actions a.btn-primary:hover {
  background: #fbbf24 !important;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.6) !important;
  transform: scale(1.03) !important;
}


/* ==========================================================================
   MOBILE PERSONA DROPDOWN DRAWER ANTI-CLIPPING & STACKING FIX
   ========================================================================== */
.main-nav-bar, .header {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  z-index: 999999 !important;
}

.nav-inner {
  overflow: visible !important;
}

.mobile-persona-dropdown-wrapper {
  position: relative !important;
  overflow: visible !important;
  z-index: 1000000 !important;
}

.persona-dropdown-panel {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  z-index: 1000005 !important;
  background: rgba(6, 26, 20, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid rgba(52, 245, 197, 0.5) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(52, 245, 197, 0.35) !important;
  min-width: 250px !important;
  max-width: min(320px, 92vw) !important;
}

.persona-dropdown-panel.open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* ==========================================================================
   MOBILE HEADER ROW 1 PURITY (STRICT ROW 1 ISOLATION)
   ========================================================================== */
.mobile-left-tools-toggle {
  display: none !important;
}

#esh-drawer-overlay {
  z-index: 10000004 !important;
}

@media (max-width: 768px) {
  /* 1. Hide in-header toggle button (replaced by vertical floating toggle) */
  .mobile-left-tools-toggle {
    display: none !important;
  }

  /* 2. Header Container and Brand Logo - Completely Centered & Spacious */
  .nav-inner {
    padding: 8px 16px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .nav-inner .brand-logo {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 auto !important;
    text-decoration: none !important;
  }

  .nav-inner .brand-logo span:last-child {
    font-size: 1.1rem !important;
    letter-spacing: -0.02em !important;
  }

  .nav-inner .brand-logo-icon {
    font-size: 1.3rem !important;
  }

  /* 3. Hide all cramped dropdowns & non-essential desktop buttons on mobile header */
  .mobile-persona-dropdown-wrapper,
  .persona-filter-bar,
  .persona-scroll-track,
  .main-nav-bar .nav-inner .btn-book-nav,
  .nav-inner a.btn-book-nav,
  .nav-inner a[href*="/checkout/"],
  .nav-inner a[href*="/pricing/"],
  .nav-inner .desktop-pricing-link,
  .nav-inner > div:last-child {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    pointer-events: none !important;
  }

  /* 4. Smooth Mobile Slide-Up Bottom Sheet for Guide & Tools */
  #esh-side-drawer {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 84vh !important;
    height: 84dvh !important;
    background: #00241b !important;
    border-top: 2.5px solid #34f5c5 !important;
    border-right: none !important;
    border-left: none !important;
    border-bottom: none !important;
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(52, 245, 197, 0.25) !important;
    z-index: 10000005 !important;
    transform: translateY(100%) !important;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    padding: 14px 16px 30px 16px !important;
    box-sizing: border-box !important;
    color: #f8fafc !important;
  }

  #esh-side-drawer.open {
    transform: translateY(0) !important;
  }
}


/* ==========================================================================
   SCROLL REDUCTION & ACCORDION DRAWER ARCHITECTURE (v3.8.1)
   ========================================================================== */

/* 1. County Province Drawer Controls & Trigger Bar */
.county-drawer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.county-drawer-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(0, 36, 27, 0.85);
  border: 1px solid rgba(52, 245, 197, 0.35);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.county-drawer-trigger-btn:hover,
.county-drawer-trigger-btn:active {
  background: rgba(52, 245, 197, 0.15);
  border-color: #34f5c5;
  box-shadow: 0 0 16px rgba(52, 245, 197, 0.3);
  transform: translateY(-1px);
}

/* 2. Collapsible Province Drawer Panel */
.county-province-drawer-panel {
  background: rgba(0, 20, 15, 0.98);
  border: 1px solid rgba(52, 245, 197, 0.28);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(52, 245, 197, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: slideDrawerDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawerDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.province-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.province-drawer-section {
  margin-bottom: 14px;
}

.province-drawer-section:last-child {
  margin-bottom: 0;
}

.province-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.province-title-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  margin-right: 8px;
}

.province-desc-text {
  font-size: 0.72rem;
  color: #94a3b8;
}

.province-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 3. SEAI Grants Matrix Mobile Segmented Switcher */
.matrix-mobile-switcher {
  display: none;
}

@media (max-width: 768px) {
  .matrix-mobile-switcher {
    display: flex;
    gap: 8px;
    background: rgba(0, 24, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 9999px;
    margin-bottom: 14px;
  }

  .matrix-switch-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.76rem;
    font-weight: 800;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: center;
  }

  .matrix-switch-btn.active {
    background: rgba(52, 245, 197, 0.2);
    color: #34f5c5;
    box-shadow: 0 0 10px rgba(52, 245, 197, 0.25);
  }

  /* Show only active card on mobile based on class */
  .matrix-comparison-grid.matrix-show-oss .diy-card {
    display: none !important;
  }
  .matrix-comparison-grid.matrix-show-oss .oss-card {
    display: block !important;
  }

  .matrix-comparison-grid.matrix-show-diy .oss-card {
    display: none !important;
  }
  .matrix-comparison-grid.matrix-show-diy .diy-card {
    display: block !important;
  }
}

/* 4. 11-Tool Showcase Category Filter Tabs & Horizontal Touch Scroll */
.tool-hub-category-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px 0;
}

.tool-cat-tab {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 36, 27, 0.7);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tool-cat-tab:hover,
.tool-cat-tab.active {
  background: rgba(52, 245, 197, 0.18);
  border-color: #34f5c5;
  color: #34f5c5;
  box-shadow: 0 0 12px rgba(52, 245, 197, 0.25);
}

@media (max-width: 768px) {
  /* Horizontal Touch Carousel for Tool Showcase (Saves ~2,700px on mobile) */
  .tool-showcase-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 14px !important;
    padding: 6px 4px 16px 4px !important;
    margin: 0 -12px !important;
    padding-left: 14px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #34f5c5 rgba(255, 255, 255, 0.08) !important;
  }

  .tool-showcase-grid::-webkit-scrollbar {
    height: 4px !important;
  }
  .tool-showcase-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
  }
  .tool-showcase-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #34f5c5, #10b981) !important;
    border-radius: 9999px !important;
  }

  .tool-showcase-box {
    min-width: 280px !important;
    max-width: 295px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    margin-bottom: 0 !important;
  }

  /* 5. Horizontal Bank Ticker Glide Track (Swipe Peek: 82% card width) */
  .bank-cards-carousel,
  .ticker-cards-row,
  .bank-ticker-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 12px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding-right: 20px !important;
    padding-bottom: 12px !important;
    scrollbar-width: thin !important;
  }
  .bank-ticker-grid > *,
  .bank-cards-carousel > *,
  .ticker-cards-row > *,
  .bank-ticker-card {
    scroll-snap-align: start !important;
    flex: 0 0 82% !important;
    min-width: unset !important;
    max-width: unset !important;
  }

  /* 6. Compact Hero Cards Horizontal Micro-Track */
  .hero-cards-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 10px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 4px 12px 4px !important;
    margin-top: 14px !important;
    scrollbar-width: thin !important;
  }
  .hero-card {
    min-width: 220px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }
}


/* ==========================================================================
   ADVANCED MOBILE SCROLL-REDUCTION ENHANCEMENTS (v3.8.1)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. County Telemetry: Compact 2x2 Grid instead of 1-col vertical stack */
  .county-telemetry-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .county-stat-card {
    padding: 10px 12px !important;
  }
  .county-stat-value {
    font-size: 1.15rem !important;
  }
  .county-stat-label {
    font-size: 0.72rem !important;
  }
  .county-stat-desc {
    font-size: 0.68rem !important;
  }

  /* 2. War Room Defense Pods: Horizontal Touch Glide Track */
  .defense-pods-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 10px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    scrollbar-width: thin !important;
  }
  .defense-pod {
    min-width: 220px !important;
    max-width: 240px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }

  /* 3. Transformation Cards: Horizontal Touch Glide Track */
  .transformation-cards-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 12px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 12px !important;
    scrollbar-width: thin !important;
  }
  .transformation-card {
    min-width: 275px !important;
    max-width: 295px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }

  /* 4. Compact Section Margins & Padding on Mobile (Tight, App-Grade Spacing) */
  .county-solar-section,
  .transformation-section,
  .grant-matrix-section,
  .mortgage-ticker-section,
  .war-room-section,
  .tool-hub-showcase {
    padding: 36px 14px !important;
  }
}

/* ==========================================================================
   MOBILE UI/UX & CONVERSION HANDOVER: SCROLL MECHANICS & DOCK COLLISION FIXES
   ========================================================================== */

/* 1. Main Viewport & Dock Clearance Buffer (Responsive: Desktop Zero Void / Mobile Clean Clearance) */
@media (min-width: 769px) {
  body,
  main,
  #mobile-app-container,
  #mobile-app-container > div:last-child,
  .main-viewport-wrapper,
  .page-container {
    padding-bottom: 0 !important;
  }
  .dock-clearance-spacer {
    display: none !important;
    height: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  body,
  main,
  #mobile-app-container,
  #mobile-app-container > div:last-child {
    padding-bottom: 0 !important;
  }
  .dock-clearance-spacer {
    display: block !important;
    height: calc(75px + env(safe-area-inset-bottom, 20px)) !important;
    padding-bottom: 0 !important;
    width: 100%;
    pointer-events: none;
  }
}

/* 2. Floating Action Row & Hide State (Collision Shielding & Force Hide Overrides) */
.floating-actions-bar,
#esh-whatsapp-floating-btn,
#voice-launcher,
.voice-advisor-launcher {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease !important;
  will-change: transform, opacity, visibility !important;
}

.floating-actions-bar.is-hidden,
.floating-actions-bar.scroll-hidden,
#esh-whatsapp-floating-btn.is-hidden,
#esh-whatsapp-floating-btn.scroll-hidden,
#voice-launcher.is-hidden,
#voice-launcher.scroll-hidden,
.voice-advisor-launcher.is-hidden,
.voice-advisor-launcher.scroll-hidden {
  transform: translateY(120px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* 3. Slider Badge Flexbox Collision Fix */
.comparison-slider-labels {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 6px !important;
}

.comparison-slider-labels span {
  font-size: 11px !important;
  white-space: nowrap !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-weight: 800 !important;
}

/* 4. Contextual Suppression: Hide Floating Triggers Over Interactive Modules */
#voice-launcher.contextual-suppressed,
.voice-advisor-launcher.contextual-suppressed,
#esh-whatsapp-floating-btn.contextual-suppressed,
.floating-actions-bar.contextual-suppressed {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(80px) scale(0.9) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
}

/* 4. Inline Dossier CTA Spotlight Pulse */
.cta-spotlight {
  border-color: #34f5c5 !important;
  box-shadow: 0 0 25px rgba(52, 245, 197, 0.75), 0 0 45px rgba(16, 185, 129, 0.45) !important;
  animation: ctaSpotlightPulse 1.8s infinite alternate ease-in-out !important;
}

@keyframes ctaSpotlightPulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(52, 245, 197, 0.5); }
  100% { transform: scale(1.025); box-shadow: 0 0 28px rgba(52, 245, 197, 0.9), 0 0 50px rgba(16, 185, 129, 0.6); }
}

/* 5. Mobile Dock Checkout Trigger State Management */
#mobile-dock-checkout.dock-checkout-disabled {
  opacity: 0.55 !important;
  pointer-events: none !important;
  filter: grayscale(0.85);
  cursor: not-allowed;
  transition: all 0.3s ease;
}

#mobile-dock-checkout.dock-checkout-active {
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
  color: #34f5c5 !important;
  position: relative;
}

#mobile-dock-checkout.dock-checkout-active .dock-icon {
  animation: dockEmeraldBounce 2s infinite ease-in-out;
  filter: drop-shadow(0 0 8px rgba(52, 245, 197, 0.8));
}

#mobile-dock-checkout.dock-checkout-active .dock-checkout-badge {
  position: absolute;
  top: 4px;
  right: 18px;
  width: 8px;
  height: 8px;
  background: #34f5c5;
  border-radius: 50%;
  box-shadow: 0 0 10px #34f5c5;
  animation: emeraldDotPulse 1.5s infinite;
}

@keyframes dockEmeraldBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes emeraldDotPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 12px #34f5c5; }
  100% { transform: scale(0.85); opacity: 0.8; }
}

/* 6. Consolidated Top Announcement Banner Carousel */
.top-bar-custom {
  background: #00120d;
  color: #94a3b8;
  padding: 5px 12px !important;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(52, 245, 197, 0.15);
  position: relative;
  z-index: 1000000;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.top-bar-carousel {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  width: 100%;
  box-sizing: border-box;
}

.top-bar-slides-track {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-bar-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  text-align: center;
  box-sizing: border-box;
  padding: 1px 4px;
}

.top-bar-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.top-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(52, 245, 197, 0.12);
  color: #34f5c5;
  border: 1px solid rgba(52, 245, 197, 0.3);
  flex-shrink: 0;
}

.top-slide-text {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.76rem;
  line-height: 1.3;
}

.top-slide-text strong {
  color: #ffffff;
  font-weight: 800;
}

.top-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #34f5c5;
  font-weight: 800;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-slide-link:hover {
  color: #6ee7b7;
  transform: translateX(2px);
}

.top-bar-nav-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  width: 24px;
  height: 24px;
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  user-select: none;
}

.top-bar-nav-btn:hover {
  color: #34f5c5;
  border-color: #34f5c5;
  background: rgba(52, 245, 197, 0.12);
}

@media (max-width: 768px) {
  .top-bar-custom {
    padding: 6px 8px !important;
  }
  .top-bar-carousel {
    min-height: 38px;
    gap: 4px;
  }
  .top-bar-slides-track {
    min-height: 36px;
  }
  .top-bar-slide {
    flex-wrap: wrap;
    gap: 4px 6px;
    justify-content: center;
  }
  .top-slide-badge {
    font-size: 0.62rem;
    padding: 1px 5px;
  }
  .top-slide-text {
    font-size: 0.70rem;
    line-height: 1.25;
  }
  .top-slide-link {
    font-size: 0.70rem;
  }
  .top-bar-nav-btn {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }
}


.top-alert-link {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  transition: color 0.2s ease !important;
}

.top-alert-link:hover {
  color: #ffffff !important;
}

.top-pricing-link {
  color: #f59e0b !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease !important;
}

.top-pricing-link:hover {
  opacity: 0.85 !important;
}

.hero-primary-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-secondary-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 12px 12px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
  margin: 0 auto 20px auto;
  box-sizing: border-box;
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.hero-secondary-badge-row::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .hero-secondary-badge-row {
    justify-content: flex-start !important;
    padding-left: 1rem !important;
    padding-right: 2rem !important;
    scroll-snap-type: x mandatory !important;
    width: 100% !important;
    box-sizing: border-box !important;
    mask-image: linear-gradient(to right, black 85%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%) !important;
  }
  .hero-secondary-badge-row::after {
    content: '' !important;
    display: block !important;
    min-width: 1.5rem !important;
    width: 1.5rem !important;
    flex-shrink: 0 !important;
  }
  .hero-secondary-badge-row .badge-pill {
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .hero-secondary-badge-row .badge-pill:last-child {
    margin-right: 1.5rem !important;
  }
}

/* 7. Dossier State Machine: Skeleton Pulse & Staggered Animations */
.dossier-skeleton-card {
  background: rgba(0, 36, 27, 0.85);
  border: 1.5px solid rgba(52, 245, 197, 0.3);
  border-radius: 20px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.skeleton-pulse-emerald {
  background: linear-gradient(90deg, rgba(0, 24, 18, 0.8) 0%, rgba(52, 245, 197, 0.15) 50%, rgba(0, 24, 18, 0.8) 100%);
  background-size: 200% 100%;
  animation: emeraldSkeletonShimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes emeraldSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dossier-card-stagger {
  opacity: 0;
  transform: translateY(18px);
  animation: dossierFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dossier-card-stagger:nth-child(1) { animation-delay: 0ms; }
.dossier-card-stagger:nth-child(2) { animation-delay: 150ms; }
.dossier-card-stagger:nth-child(3) { animation-delay: 300ms; }
.dossier-card-stagger:nth-child(4) { animation-delay: 450ms; }

@keyframes dossierFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 8. Non-Blocking Recovery Error Banner */
.dossier-error-banner {
  background: rgba(40, 15, 15, 0.95);
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fecaca;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dossier-error-banner .error-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dossier-error-banner .btn-recovery {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.dossier-error-banner .btn-recovery:hover {
  background: #34f5c5;
  color: #001711;
  border-color: #34f5c5;
}

/* 9. Persona Root Data Attributes */
[data-persona="homeowner"] {
  --theme-accent: #34f5c5;
  --theme-glow: rgba(52, 245, 197, 0.4);
}
[data-persona="agent"] {
  --theme-accent: #fbbf24;
  --theme-glow: rgba(251, 191, 36, 0.4);
}
[data-persona="installer"] {
  --theme-accent: #38bdf8;
  --theme-glow: rgba(56, 189, 248, 0.4);
}

/* 10. Mobile Feature Card Grid Clipping Fix for <= 480px / 390px viewports */
@media (max-width: 480px) {
  .hero-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 10px !important;
    overflow-x: visible !important;
    padding-bottom: 4px !important;
  }
  .hero-card {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* 11. Scanner Card Mobile Dock Clearance Buffer & Visual Clearance */
.hero-scanner-card {
  scroll-margin-top: 110px;
  scroll-margin-bottom: calc(110px + env(safe-area-inset-bottom, 20px));
}

@media (max-width: 768px) {
  /* Hero typography & spacing compaction so scanner card is fully clear of bottom dock on initial fold */
  .hero-h1 {
    font-size: clamp(1.42rem, 4.6vw, 1.82rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.02em !important;
    margin: 8px 0 6px 0 !important;
  }

  .hero-sub {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    padding: 0 4px !important;
  }

  .hero-primary-badge-wrap {
    margin-bottom: 8px !important;
  }

  .hero-secondary-badge-row {
    margin-bottom: 12px !important;
  }

  .hero-scanner-card {
    margin-top: 14px !important;
    margin-bottom: calc(48px + 70px + env(safe-area-inset-bottom, 20px)) !important;
    padding: 14px 14px 16px 14px !important;
    border-radius: 16px !important;
  }

  /* 12. Interactive Modules Bottom Clearance & Scroll Margins */
  .mortgage-ticker-section,
  .transformation-section,
  #transformation-slider,
  #green-mortgage-ticker {
    scroll-margin-top: 90px !important;
    scroll-margin-bottom: calc(100px + env(safe-area-inset-bottom, 20px)) !important;
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 20px)) !important;
  }
}

/* ==========================================================================
   NATIVE-GRADE UPPER-CLASS MOBILE UI/UX ARCHITECTURE (SECTIONS 1 - 5)
   ========================================================================== */

/* 1. Glassmorphic Navigation & Dynamic Depth */
.bottom-dock,
.mobile-app-bottom-dock,
#esh-mobile-dock,
.top-header-nav,
.main-nav-bar {
  background: rgba(11, 26, 20, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-top: 1px solid rgba(52, 245, 197, 0.15) !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45) !important;
}

/* Active Glow Dock Indicator */
#esh-mobile-dock .dock-item.active,
.mobile-app-bottom-dock .dock-item.active {
  position: relative !important;
}

#esh-mobile-dock .dock-item.active::before,
.mobile-app-bottom-dock .dock-item.active::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -60%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(52, 245, 197, 0.28) 0%, transparent 70%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  animation: dockActiveBloom 3s ease-in-out infinite alternate !important;
}

@keyframes dockActiveBloom {
  0% { transform: translate(-50%, -60%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -60%) scale(1.18); opacity: 1; }
}

#esh-mobile-dock .dock-item.active .dock-icon,
.mobile-app-bottom-dock .dock-item.active .dock-icon {
  position: relative !important;
  z-index: 1 !important;
  filter: drop-shadow(0 0 8px rgba(52, 245, 197, 0.6)) !important;
}

/* 2. Native-Feel Gesture Mechanics & Carousels */
.badge-scroll-track,
.hero-secondary-badge-row,
.mobile-top-menu-slider,
.bank-cards-carousel,
.bank-ticker-grid {
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  padding-right: 2rem !important;
}

@media (max-width: 768px) {
  .bank-ticker-grid > *,
  .bank-cards-carousel > *,
  .bank-ticker-card {
    width: 84vw !important;
    flex: 0 0 84vw !important;
    max-width: 84vw !important;
    min-width: 84vw !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
  }
  .bank-ticker-grid,
  .bank-cards-carousel {
    scroll-snap-type: x mandatory !important;
  }
}

/* 3. Tactile Micro-Interactions & Tap States */
button,
.interactive-card,
.tool-chip,
.tactile-preset-chip,
.mobile-nav-slider-chip,
.badge-pill,
.btn-hero-primary,
.btn-hero-secondary,
.dock-item,
.dock-fab-center,
.fab-action-btn,
.fab-trigger-btn,
.sim-pill,
.agent-ber-pill,
.county-btn-chip {
  -webkit-tap-highlight-color: transparent !important;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

button:active,
.interactive-card:active,
.tool-chip:active,
.tactile-preset-chip:active,
.dock-item:active,
.dock-fab-center:active,
.sim-pill:active,
.agent-ber-pill:active,
.county-btn-chip:active {
  transform: scale(0.97) !important;
}

/* 4. Precision Typography & Visual Hierarchy */
.sim-metric-value,
.metric-value,
.equity-surge-digital,
#lbl-agent-price-val,
#leakLiveCounter,
.bank-ticker-rate,
.tabular-nums,
[data-metric],
.metric-tabular,
#simGrantVal,
#simTaxVal,
#simBillVal,
#simMortgageVal,
#hero-grant-val,
#hero-bill-val,
#lbl-agent-equity-surge {
  font-variant-numeric: tabular-nums !important;
  font-family: 'IBM Plex Mono', monospace !important;
}

.sim-metric-label,
.metric-label,
.agent-step-badge,
.installer-step-badge {
  font-size: 0.68rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.sim-metric-value,
.metric-value {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #34f5c5 !important;
}

/* ==========================================================================
   ROLE SELECTOR VS. ASK AOIFE EQUALIZATION (SCREEN 12)
   ========================================================================== */
.simulator-action-bar {
  display: grid !important;
  grid-template-columns: 1.25fr 1fr !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 14px !important;
  box-sizing: border-box !important;
}

.simulator-action-bar > * {
  height: 100% !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  margin: 0 !important;
}

.simulator-action-bar .btn-sim-voice-ai {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.26) 0%, rgba(5, 150, 105, 0.18) 100%) !important;
  border: 1.5px solid #10b981 !important;
  color: #34f5c5 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.22) !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.simulator-action-bar .btn-sim-voice-ai:hover {
  background: linear-gradient(135deg, rgba(52, 245, 197, 0.35) 0%, rgba(16, 185, 129, 0.28) 100%) !important;
  box-shadow: 0 6px 20px rgba(52, 245, 197, 0.35) !important;
  transform: translateY(-1px) !important;
}

.simulator-action-bar .modal-reopen-item {
  background: rgba(11, 26, 20, 0.78) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1.5px solid rgba(52, 245, 197, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  font-size: 0.85rem !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease !important;
}

.simulator-action-bar .modal-reopen-item:hover {
  border-color: #34f5c5 !important;
  background: rgba(16, 185, 129, 0.16) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 768px) {
  .simulator-action-bar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .simulator-action-bar .btn-sim-voice-ai,
  .simulator-action-bar .modal-reopen-item {
    padding: 8px 8px !important;
    font-size: 0.74rem !important;
    min-height: 52px !important;
  }
  .simulator-action-bar .btn-sim-voice-ai span#simVoiceCtaText {
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
  }
  .simulator-action-bar .modal-reopen-item div > div {
    font-size: 0.76rem !important;
  }
  .simulator-action-bar .modal-reopen-item .option-desc {
    font-size: 0.65rem !important;
  }
}

/* 5. Radial Floating Action Hub (Integrated Single Floating Hub Above Dock) */
.fab-radial-container {
  position: fixed !important;
  right: 18px !important;
  bottom: calc(78px + env(safe-area-inset-bottom, 18px)) !important;
  z-index: 1050 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  opacity: 1 !important;
  transform: translateZ(0) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease !important;
  will-change: transform, opacity !important;
  pointer-events: auto !important;
}

/* Smart Momentum Hide on Fast Downward Scroll or Full-Screen Modals */
.fab-radial-container.scroll-hidden,
body.floating-widgets-hidden .fab-radial-container {
  transform: translateY(110px) scale(0.9) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Primary Launcher Button */
.fab-trigger-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(52, 245, 197, 0.45);
  background: linear-gradient(135deg, #0f382a 0%, #061e16 100%);
  color: #34f5c5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(52, 245, 197, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.fab-trigger-btn:active {
  transform: scale(0.92) !important;
}

.fab-trigger-icon {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Rotates into a clean 'X' close state */
.fab-radial-container.is-open .fab-trigger-icon {
  transform: rotate(135deg);
}

/* Soft Ambient Pulse Ring */
.fab-trigger-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #34f5c5;
  opacity: 0.35;
  animation: fabPulse 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fabPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.12); opacity: 0.05; }
}

/* Radial Action Items */
.fab-actions {
  position: absolute;
  bottom: 72px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.fab-radial-container.is-open .fab-actions {
  pointer-events: auto;
}

.fab-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translateY(18px) scale(0.7);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  transition-delay: calc((3 - var(--i)) * 40ms);
}

.fab-radial-container.is-open .fab-action-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fab-action-btn:active .fab-icon {
  transform: scale(0.9);
}

/* Pill Label */
.fab-label {
  background: rgba(11, 26, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(52, 245, 197, 0.25);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* Circular Icon Housing */
.fab-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 26, 20, 0.95);
  border: 1px solid rgba(52, 245, 197, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.15s ease;
}

/* Dimmer Scrim */
.fab-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 9, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  z-index: 1040;
  transition: opacity 0.25s ease;
}

.fab-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Cleanly Suppress Legacy Wide Floating Pills on Mobile to Prevent Screen Crowding */
@media (max-width: 768px) {
  #esh-whatsapp-floating-btn,
  .floating-actions-bar,
  #voice-launcher,
  .voice-advisor-launcher {
    display: none !important;
  }
}

/* Mobile-Exclusive: Hide Radial FAB and Backdrop on Desktop Viewports */
@media (min-width: 769px) {
  .fab-radial-container,
  .fab-backdrop {
    display: none !important;
  }
}

/* ==========================================================================
   PROPERTY AUDITOR & CONVERSION DOSSIER ENHANCEMENTS
   ========================================================================== */

/* 1-Tap Mobile Clipboard Paste Button */
.btn-scanner-paste {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn-scanner-paste:hover {
  background: rgba(52, 245, 197, 0.22) !important;
  border-color: #34f5c5 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-scanner-paste:active {
  transform: scale(0.94);
  background: rgba(52, 245, 197, 0.32) !important;
}

/* Primary Star Conversion Dossier CTA */
.btn-dossier-checkout-primary {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn-dossier-checkout-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 245, 197, 0.55) !important;
  filter: brightness(1.06);
}

.btn-dossier-checkout-primary:active {
  transform: scale(0.97);
  box-shadow: 0 3px 12px rgba(52, 245, 197, 0.35) !important;
}

/* 2x2 Compact Metric Grid on Mobile */
@media (max-width: 480px) {
  .eircode-meta-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .eircode-meta-box {
    padding: 10px 8px !important;
  }
  .dossier-ber-leap-banner {
    padding: 8px 10px !important;
    font-size: 0.72rem !important;
  }
}

/* ==========================================================================
   EcoOS: UNIFIED ONE-PAGE RETROFIT OPERATING SYSTEM STYLES
   ========================================================================== */

/* 1. EcoOS Fullscreen Workspace Sheet */
.eco-os-workspace-sheet {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.eco-os-workspace-sheet.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  justify-content: center;
  align-items: center;
}
.eco-os-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 11, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.eco-os-sheet-window {
  position: relative;
  width: 95vw;
  max-width: 1440px;
  height: 92vh;
  height: 92dvh;
  background: #001f17;
  border: 1.5px solid rgba(52, 245, 197, 0.35);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 45px rgba(52, 245, 197, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(24px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.eco-os-workspace-sheet.active .eco-os-sheet-window {
  transform: scale(1) translateY(0);
}
.eco-os-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(0, 36, 27, 0.95);
  border-bottom: 1px solid rgba(52, 245, 197, 0.2);
  gap: 16px;
}
.eco-os-sheet-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.eco-os-sheet-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eco-os-sheet-badge {
  background: rgba(52, 245, 197, 0.12);
  border: 1px solid #34f5c5;
  color: #34f5c5;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.eco-os-sheet-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.eco-os-sync-indicator {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.eco-os-sync-indicator:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #10b981;
}
.eco-os-sheet-ext-btn,
.eco-os-sheet-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.eco-os-sheet-ext-btn:hover {
  background: rgba(52, 245, 197, 0.2);
  border-color: #34f5c5;
  color: #34f5c5;
}
.eco-os-sheet-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #f87171;
  transform: scale(1.05);
}
.eco-os-sheet-body {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  background: #001711;
  overflow: hidden;
}
.eco-os-sheet-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #001711;
}
.eco-os-sheet-loader {
  position: absolute;
  inset: 0;
  background: #001711;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  gap: 14px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-family: 'IBM Plex Mono', monospace;
}
.eco-os-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(52, 245, 197, 0.2);
  border-top-color: #34f5c5;
  border-radius: 50%;
  animation: esh-spin 0.8s linear infinite;
}
@keyframes esh-spin {
  to { transform: rotate(360deg); }
}

/* 2. EcoOS Quick Command Palette (Ctrl+K) */
.eco-os-command-palette {
  position: fixed;
  inset: 0;
  z-index: 250000;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.eco-os-command-palette.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
}
.eco-os-palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.eco-os-palette-dialog {
  position: relative;
  width: 92vw;
  max-width: 680px;
  background: #00241b;
  border: 1.5px solid rgba(52, 245, 197, 0.45);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(52, 245, 197, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 75vh;
  z-index: 2;
  transform: translateY(-10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.eco-os-command-palette.active .eco-os-palette-dialog {
  transform: translateY(0);
}
.eco-os-palette-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 36, 27, 0.98);
}
.eco-os-palette-icon {
  color: #34f5c5;
  flex-shrink: 0;
}
.eco-os-command-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.eco-os-command-input::placeholder {
  color: #64748b;
}
.eco-os-palette-esc {
  font-size: 0.68rem;
  font-family: 'IBM Plex Mono', monospace;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 7px;
  border-radius: 6px;
  color: #94a3b8;
  font-weight: 700;
}
.eco-os-palette-results {
  overflow-y: auto;
  padding: 10px;
  max-height: 52vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eco-os-palette-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.eco-os-palette-item:hover {
  background: rgba(52, 245, 197, 0.08);
  border-color: rgba(52, 245, 197, 0.3);
  transform: translateX(4px);
}
.eco-os-palette-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.eco-os-palette-item-content {
  flex: 1;
  min-width: 0;
}
.eco-os-palette-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eco-os-palette-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eco-os-palette-item-badge {
  font-size: 0.65rem;
  background: rgba(52, 245, 197, 0.15);
  color: #34f5c5;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.eco-os-palette-item-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eco-os-palette-item-action {
  font-size: 0.78rem;
  font-weight: 800;
  color: #34f5c5;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.eco-os-palette-item:hover .eco-os-palette-item-action {
  opacity: 1;
}
.eco-os-palette-empty {
  padding: 36px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.88rem;
}
.eco-os-palette-quick-btn {
  margin-top: 14px;
  background: #34f5c5;
  color: #001711;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}
.eco-os-palette-quick-btn:hover {
  background: #10b981;
  transform: translateY(-1px);
}
.eco-os-palette-footer {
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 18, 13, 0.85);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
}

/* 3. Floating Live Blueprint Widget */
.eco-os-floating-blueprint {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99990;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  pointer-events: none;
}
.eco-os-blueprint-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 36, 27, 0.95);
  border: 1.5px solid rgba(52, 245, 197, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(52, 245, 197, 0.25);
  border-radius: 30px;
  padding: 7px 16px;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.eco-os-blueprint-pill:hover {
  transform: translateY(-2px);
  border-color: #34f5c5;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), 0 0 30px rgba(52, 245, 197, 0.4);
}
.eco-os-blueprint-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34f5c5;
  box-shadow: 0 0 10px #34f5c5;
  animation: esh-pulse 1.8s infinite;
  flex-shrink: 0;
}
.eco-os-blueprint-tag {
  color: #34f5c5;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.eco-os-blueprint-prop {
  color: #cbd5e1;
}
.eco-os-blueprint-ber {
  color: #fbbf24;
  font-weight: 800;
  font-family: 'IBM Plex Mono', monospace;
}
.eco-os-blueprint-grant {
  color: #10b981;
  font-weight: 800;
}
.eco-os-blueprint-cmd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: 'IBM Plex Mono', monospace;
}
@media (max-width: 768px) {
  .eco-os-floating-blueprint {
    bottom: calc(84px + env(safe-area-inset-bottom, 16px));
    left: 14px;
    right: auto;
  }
  .eco-os-blueprint-cmd {
    display: none;
  }
}
@media (max-width: 480px) {
  .eco-os-floating-blueprint {
    bottom: calc(84px + env(safe-area-inset-bottom, 16px));
    left: 10px;
    right: auto;
  }
  .eco-os-blueprint-pill {
    padding: 5px 12px;
    font-size: 0.74rem;
    gap: 6px;
  }
  .eco-os-blueprint-prop {
    display: none;
  }
  .eco-os-sheet-window {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
}

/* 4. Embedded Sub-Tool Clean Mode */
body[data-embedded="true"] .top-bar-custom,
body[data-embedded="true"] .main-nav-bar,
body[data-embedded="true"] footer,
body[data-embedded="true"] #esh-floating-dock,
body[data-embedded="true"] .eco-os-floating-blueprint,
body[data-embedded="true"] #esh-side-tab-toggle {
  display: none !important;
}
body[data-embedded="true"] {
  padding-top: 0 !important;
  background: #001711 !important;
}

/* 5. Legacy floating guide trigger suppressed globally to prevent overlap with EcoOS Live */
#esh-help-floating-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


