/* ==========================================================================
   ORANDA LUXURY LIQUID GLASS & WATER DROPLET DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & DUAL-THEME VARIABLES (DARK & LIGHT MODES)
   -------------------------------------------------------------------------- */
:root, html.dark {
  /* Atmosphere & Background */
  --bg-primary: #030712;
  --bg-secondary: #0B0F19;
  
  /* Liquid Glass Surfaces (Dark Mode) */
  --glass-primary-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(15, 23, 42, 0.8) 100%);
  --glass-card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(15, 23, 42, 0.7) 100%);
  --glass-floating-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(56, 189, 248, 0.06) 50%, rgba(15, 23, 42, 0.85) 100%);
  --glass-droplet-bg: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, rgba(56, 189, 248, 0.1) 45%, rgba(15, 23, 42, 0.85) 100%);
  --glass-nav-bg: rgba(3, 7, 18, 0.85);

  /* Specular Bevel Highlights & Borders */
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-border-cyan: 1px solid rgba(56, 189, 248, 0.4);
  --glass-border-gold: 1px solid rgba(254, 240, 138, 0.5);

  /* Refraction Blurs */
  --glass-blur-high: blur(36px) saturate(210%) contrast(110%);
  --glass-blur-medium: blur(24px) saturate(180%);
  --glass-blur-soft: blur(14px) saturate(150%);

  /* Layered Shadows & Glows */
  --glass-shadow-primary: 0 30px 70px rgba(0, 0, 0, 0.75), inset 0 1.5px 0.5px rgba(255, 255, 255, 0.6), inset 1.5px 0 0.5px rgba(56, 189, 248, 0.3), inset 0 -1.5px 1px rgba(0, 0, 0, 0.6), 0 0 45px rgba(56, 189, 248, 0.2);
  --glass-shadow-card: 0 20px 45px rgba(0, 0, 0, 0.55), inset 0 1.5px 0.5px rgba(255, 255, 255, 0.5), inset 1px 0 0.5px rgba(56, 189, 248, 0.25), 0 0 30px rgba(56, 189, 248, 0.15);
  --glass-shadow-hover: 0 35px 80px rgba(14, 165, 233, 0.4), inset 0 2px 4px rgba(254, 240, 138, 0.7), 0 0 50px rgba(56, 189, 248, 0.35), 0 0 25px rgba(254, 240, 138, 0.25);
  
  /* Text Accents */
  --text-main: #F8FAFC;
  --text-sub: #CBD5E1;
  --text-muted: #94A3B8;
}

html.light-mode {
  /* Atmosphere & Background (Light Mode) */
  --bg-primary: #F0F4F9;
  --bg-secondary: #E2E8F0;

  /* Glass Surfaces (Light Mode) */
  --glass-primary-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.68) 40%, rgba(226, 232, 240, 0.82) 100%);
  --glass-card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.75) 100%);
  --glass-floating-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(186, 230, 253, 0.35) 50%, rgba(241, 245, 249, 0.9) 100%);
  --glass-droplet-bg: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98) 0%, rgba(186, 230, 253, 0.45) 45%, rgba(226, 232, 240, 0.92) 100%);
  --glass-nav-bg: rgba(248, 250, 252, 0.88);

  /* Specular Bevel Highlights & Borders */
  --glass-border: 1px solid rgba(255, 255, 255, 0.9);
  --glass-border-cyan: 1px solid rgba(2, 132, 199, 0.4);
  --glass-border-gold: 1px solid rgba(217, 119, 6, 0.4);

  /* Refraction Blurs */
  --glass-blur-high: blur(28px) saturate(180%);
  --glass-blur-medium: blur(20px) saturate(160%);
  --glass-blur-soft: blur(12px);

  /* Layered Shadows & Glows */
  --glass-shadow-primary: 0 20px 50px rgba(15, 23, 42, 0.12), inset 0 1.5px 0.5px rgba(255, 255, 255, 1), 0 0 20px rgba(2, 132, 199, 0.08);
  --glass-shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08), inset 0 1.5px 0.5px rgba(255, 255, 255, 0.95);
  --glass-shadow-hover: 0 25px 60px rgba(2, 132, 199, 0.22), inset 0 2px 4px rgba(255, 255, 255, 1), 0 0 30px rgba(2, 132, 199, 0.15);

  /* Text Accents */
  --text-main: #0F172A;
  --text-sub: #334155;
  --text-muted: #64748B;
}

/* --------------------------------------------------------------------------
   2. GLOBAL ATMOSPHERIC BACKGROUND & NON-BLOCKING OVERLAYS
   -------------------------------------------------------------------------- */
body {
  background-color: var(--bg-primary) !important;
  color: var(--text-main);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Atmospheric Refraction Light Blobs */
.water-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none !important;
  z-index: 0;
  opacity: 0.22;
  animation: float 12s ease-in-out infinite alternate;
}

/* Ambient Cursor Spotlight Glow (Non-blocking background layer) */
#cursor-glow {
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(254, 240, 138, 0.12) 40%, transparent 70%);
  pointer-events: none !important;
  transform: translate(-50%, -50%);
  z-index: 0 !important;
  transition: transform 0.06s ease-out, opacity 0.3s ease;
  mix-blend-mode: screen;
}

html.light-mode #cursor-glow {
  background: radial-gradient(circle, rgba(3, 105, 161, 0.14) 0%, rgba(217, 119, 6, 0.12) 40%, transparent 70%);
  mix-blend-mode: multiply;
}

/* Progress bar non-blocking */
#progress-bar {
  pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   3. GLASS SURFACES & HIERARCHIES (.glass-panel, .glass-card, .glass-floating)
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--glass-primary-bg) !important;
  backdrop-filter: var(--glass-blur-high) !important;
  -webkit-backdrop-filter: var(--glass-blur-high) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  border-top: 1.5px solid rgba(254, 240, 138, 0.6) !important;
  border-left: 1.5px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: var(--glass-shadow-primary) !important;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.glass-card {
  background: var(--glass-card-bg) !important;
  backdrop-filter: var(--glass-blur-medium) !important;
  -webkit-backdrop-filter: var(--glass-blur-medium) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1.5px solid rgba(254, 240, 138, 0.5) !important;
  border-left: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: var(--glass-shadow-card) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(56, 189, 248, 0.75) !important;
  border-top-color: rgba(254, 240, 138, 0.85) !important;
  box-shadow: var(--glass-shadow-hover) !important;
}

.glass-floating {
  background: var(--glass-floating-bg) !important;
  backdrop-filter: var(--glass-blur-high) !important;
  -webkit-backdrop-filter: var(--glass-blur-high) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  border-top: 1.5px solid rgba(254, 240, 138, 0.6) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.2) !important;
}

/* Glass Glare Sweep Overlay (z-index: 0 so it stays BEHIND content) */
.glass-panel::before,
.glass-card::before,
.glass-floating::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(254, 240, 138, 0.22) 48%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(56, 189, 248, 0.22) 52%,
    transparent 60%
  );
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none !important;
  z-index: 0 !important;
}

.glass-panel:hover::before,
.glass-card:hover::before,
.glass-floating:hover::before {
  transform: rotate(30deg) translateY(100%);
}

/* Ensure ALL Content & Interactive Elements Inside Glass Containers Sit ABOVE Pseudo-Layers */
.glass-panel > *,
.glass-card > *,
.glass-floating > * {
  position: relative;
  z-index: 2;
}

/* Guaranteed Unblocked Click & Pointer Access for Interactive Controls */
button, 
a, 
input, 
select, 
textarea, 
label, 
[onclick], 
.cursor-pointer,
.pointer-events-auto {
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}

/* --------------------------------------------------------------------------
   4. WATER DROPLET CONTROLS & BUTTONS
   -------------------------------------------------------------------------- */
.glass-pill {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: var(--glass-blur-soft) !important;
  -webkit-backdrop-filter: var(--glass-blur-soft) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-top: 1px solid rgba(254, 240, 138, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}

.glass-pill:hover {
  background: rgba(56, 189, 248, 0.22) !important;
  border-color: rgba(56, 189, 248, 0.85) !important;
  transform: scale(1.05);
}

/* Liquid Glass Primary CTA Control Buttons */
.btn-liquid-glass {
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 50%, #0369A1 100%) !important;
  border: 1px solid rgba(254, 240, 138, 0.6) !important;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4), inset 0 1.5px 0.5px rgba(255, 255, 255, 0.6) !important;
  color: #FFFFFF !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}

.btn-liquid-glass:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.6), inset 0 2px 1px rgba(255, 255, 255, 0.9) !important;
}

/* Navbar Consultation CTA Button High-Contrast Styling */
.btn-nav-cta {
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 50%, #EAB308 100%) !important;
  color: #020617 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(254, 240, 138, 0.6) !important;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}

.btn-nav-cta:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5) !important;
}

html.light-mode .btn-nav-cta {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 50%, #D97706 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(2, 132, 199, 0.4) !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25) !important;
}

/* --------------------------------------------------------------------------
   5. FLOATING GLASS NAVBAR & SCROLL INTERACTION
   -------------------------------------------------------------------------- */
#navbar {
  transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  z-index: 50 !important;
  overflow: visible !important;
}

#navbar,
#navbar .glass-panel,
#navbar-container {
  overflow: visible !important;
  transform-style: flat !important;
}

#navbar .glass-panel::before,
#navbar-container::before {
  display: none !important;
}

#navbar.scrolled {
  background: var(--glass-nav-bg) !important;
  backdrop-filter: var(--glass-blur-high) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* --------------------------------------------------------------------------
   6. INPUT FIELDS & FORM CONTROLS
   -------------------------------------------------------------------------- */
input, select, textarea {
  transition: all 0.25s ease;
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(56, 189, 248, 0.85) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  outline: none !important;
}

/* --------------------------------------------------------------------------
   7. CHATBOT & MODALS LIQUID GLASS INTEGRATION
   -------------------------------------------------------------------------- */
#ai-chat-modal,
#appointment-modal > div,
#oranda-consultation-modal > div {
  background: var(--glass-floating-bg) !important;
  backdrop-filter: var(--glass-blur-high) !important;
  -webkit-backdrop-filter: var(--glass-blur-high) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5) !important;
  border-top: 1.5px solid rgba(254, 240, 138, 0.7) !important;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.75), 0 0 50px rgba(56, 189, 248, 0.25) !important;
  z-index: 9999 !important;
}

/* Custom High-Visibility Range Slider Track & Thumb System */
input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100%;
  height: 10px !important;
  background: linear-gradient(90deg, #0284C7 0%, #38BDF8 50%, #EAB308 100%) !important;
  border-radius: 9999px !important;
  outline: none !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 10px rgba(56, 189, 248, 0.3) !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 5 !important;
}

/* WebKit Slider Runnable Track */
input[type="range"]::-webkit-slider-runnable-track {
  height: 10px !important;
  background: linear-gradient(90deg, #0284C7 0%, #38BDF8 50%, #EAB308 100%) !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(254, 240, 138, 0.5) !important;
}

/* WebKit Slider Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #38BDF8 70%, #0284C7 100%) !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5) !important;
  margin-top: -7px !important;
  cursor: grab !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2) !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 1), 0 6px 15px rgba(0, 0, 0, 0.6) !important;
}

/* Mozilla Firefox Slider Track & Thumb */
input[type="range"]::-moz-range-track {
  height: 10px !important;
  background: linear-gradient(90deg, #0284C7 0%, #38BDF8 50%, #EAB308 100%) !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(254, 240, 138, 0.5) !important;
}

input[type="range"]::-moz-range-thumb {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #38BDF8 70%, #0284C7 100%) !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5) !important;
  cursor: grab !important;
}

/* Light Mode High-Contrast Range Slider Adjustments */
html.light-mode input[type="range"] {
  background: linear-gradient(90deg, #0284C7 0%, #0369A1 50%, #D97706 100%) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 8px rgba(2, 132, 199, 0.3) !important;
}

html.light-mode input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #0284C7 0%, #0369A1 50%, #D97706 100%) !important;
  border: 1px solid rgba(2, 132, 199, 0.4) !important;
}

html.light-mode input[type="range"]::-webkit-slider-thumb {
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #0284C7 70%, #0369A1 100%) !important;
  border: 2px solid #0284C7 !important;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.5), 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

html.light-mode input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, #0284C7 0%, #0369A1 50%, #D97706 100%) !important;
  border: 1px solid rgba(2, 132, 199, 0.4) !important;
}

html.light-mode input[type="range"]::-moz-range-thumb {
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #0284C7 70%, #0369A1 100%) !important;
  border: 2px solid #0284C7 !important;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.5), 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

/* AI Chatbot Message Bubble & Form Styling (High-Contrast Theme Compatibility) */
.ai-msg-bot {
  background: rgba(15, 23, 42, 0.88) !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.ai-msg-bot strong,
.ai-msg-bot b {
  color: #FFFFFF !important;
}

html.light-mode .ai-msg-bot {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid rgba(2, 132, 199, 0.35) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .ai-msg-bot span,
html.light-mode .ai-msg-bot p,
html.light-mode .ai-msg-bot div {
  color: #0F172A !important;
}

html.light-mode .ai-msg-bot strong,
html.light-mode .ai-msg-bot b {
  color: #0284C7 !important;
}

html.light-mode .ai-msg-bot em {
  color: #334155 !important;
}

html.light-mode .ai-disclaimer {
  border-top-color: rgba(203, 213, 225, 0.8) !important;
  color: #475569 !important;
}

html.light-mode .ai-disclaimer a {
  color: #0284C7 !important;
}

html.light-mode #chat-contact-form-card {
  background: rgba(248, 250, 252, 0.98) !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
  color: #0F172A !important;
}

html.light-mode #chat-contact-form-card label {
  color: #475569 !important;
}

html.light-mode #chat-contact-form-card input {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

/* AI Comparison Cards & Research Grounding Styling */
.ai-research-badge {
  background: rgba(8, 51, 68, 0.55) !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
  color: #E2E8F0 !important;
}

.ai-consensus-card {
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #F8FAFC !important;
}

.ai-compare-card-chatgpt {
  background: rgba(6, 78, 59, 0.35) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.ai-compare-card-gemini {
  background: rgba(12, 74, 110, 0.35) !important;
  border: 1px solid rgba(14, 165, 233, 0.4) !important;
}

.ai-action-card {
  background: rgba(8, 51, 68, 0.45) !important;
  border: 1px solid rgba(6, 182, 212, 0.45) !important;
}

/* Light Mode Overrides for AI Advisor */
html.light-mode .ai-research-badge {
  background: #F0F9FF !important;
  border: 1px solid #0284C7 !important;
}
html.light-mode .ai-research-badge span,
html.light-mode .ai-research-badge div,
html.light-mode .ai-research-badge em {
  color: #0F172A !important;
}
html.light-mode .ai-research-badge a {
  color: #0284C7 !important;
}

html.light-mode .ai-consensus-card {
  background: #FFFBEB !important;
  border: 1px solid #F59E0B !important;
}
html.light-mode .ai-consensus-card div,
html.light-mode .ai-consensus-card p,
html.light-mode .ai-consensus-card span {
  color: #0F172A !important;
}

html.light-mode .ai-compare-card-chatgpt {
  background: #F0FDF4 !important;
  border: 1px solid #10B981 !important;
}
html.light-mode .ai-compare-card-chatgpt span,
html.light-mode .ai-compare-card-chatgpt div {
  color: #0F172A !important;
}
html.light-mode .ai-compare-card-chatgpt a {
  color: #059669 !important;
}

html.light-mode .ai-compare-card-gemini {
  background: #F0F9FF !important;
  border: 1px solid #0284C7 !important;
}
html.light-mode .ai-compare-card-gemini span,
html.light-mode .ai-compare-card-gemini div {
  color: #0F172A !important;
}
html.light-mode .ai-compare-card-gemini a {
  color: #0284C7 !important;
}

html.light-mode .ai-action-card {
  background: #F8FAFC !important;
  border: 1px solid #0284C7 !important;
}
html.light-mode .ai-action-card div,
html.light-mode .ai-action-card span {
  color: #0F172A !important;
}

/* Human Consultant Presentation Styling */
.ai-recommendation-box {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
}

.ai-action-blueprint {
  background: linear-gradient(135deg, rgba(8, 51, 68, 0.45), rgba(15, 23, 42, 0.9)) !important;
  border: 1px solid rgba(6, 182, 212, 0.45) !important;
}

html.light-mode .ai-recommendation-box {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
}
html.light-mode .ai-recommendation-box div,
html.light-mode .ai-recommendation-box span {
  color: #0F172A !important;
}

html.light-mode .ai-action-blueprint {
  background: #F0FDF4 !important;
  border: 1px solid #059669 !important;
}
html.light-mode .ai-action-blueprint div,
html.light-mode .ai-action-blueprint span {
  color: #0F172A !important;
}

.ai-consultative-question {
  background: rgba(8, 51, 68, 0.4) !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
}

html.light-mode .ai-consultative-question {
  background: #F0FDF4 !important;
  border: 1px solid #059669 !important;
}
html.light-mode .ai-consultative-question div,
html.light-mode .ai-consultative-question span {
  color: #0F172A !important;
}



/* --------------------------------------------------------------------------
   8. LIGHT MODE HIGH-CONTRAST LEGIBILITY RULES
   -------------------------------------------------------------------------- */
html.light-mode body {
  background-color: var(--bg-primary) !important;
  color: var(--text-main) !important;
}

html.light-mode .glass-panel {
  border-color: rgba(2, 132, 199, 0.25) !important;
  border-top-color: rgba(217, 119, 6, 0.4) !important;
}

html.light-mode .glass-card {
  border-color: rgba(2, 132, 199, 0.2) !important;
  border-top-color: rgba(217, 119, 6, 0.35) !important;
}

html.light-mode .glass-card:hover {
  border-color: rgba(2, 132, 199, 0.6) !important;
  box-shadow: var(--glass-shadow-hover) !important;
}

html.light-mode h1, html.light-mode h2, html.light-mode h3, 
html.light-mode h4, html.light-mode h5, html.light-mode h6 {
  color: #0F172A !important;
}

html.light-mode p, html.light-mode li, html.light-mode label {
  color: #334155 !important;
}

html.light-mode .text-white,
html.light-mode .text-slate-100,
html.light-mode .text-slate-200 {
  color: #0F172A !important;
}

html.light-mode .text-slate-300,
html.light-mode .text-slate-400 {
  color: #334155 !important;
}

/* --------------------------------------------------------------------------
   9. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .glass-panel::before,
  .glass-card::before,
  .glass-floating::before,
  .water-bg-blob,
  .water-drop-dropdown,
  .water-ripple-ring {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   10. WATER-DROPLET & LIQUID-GLASS NAVIGATION DROPDOWN MENU
   -------------------------------------------------------------------------- */

/* Subtle Page Backdrop for Marketplaces Dropdown */
.marketplaces-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(5, 15, 30, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

html.light-mode .marketplaces-backdrop {
  background: rgba(15, 23, 42, 0.08);
}

.marketplaces-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Dropdown Container */
.water-drop-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -40px;
  width: min(920px, 94vw);
  max-height: min(620px, calc(100vh - 90px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: 95px 0;
  transform: scale(0.96) translateY(-6px);
  transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
  z-index: 1100;
  border-radius: 20px 24px 24px 24px;
}

/* Invisible Hover Safe Bridge - STRICTLY scoped directly beneath Marketplaces button */
.water-drop-dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 30px;
  width: 140px;
  height: 22px;
  pointer-events: auto;
}

/* Independent Frosted Glass Surface Layer */
.dropdown-glass-surface {
  position: absolute;
  inset: 0;
  border-radius: 20px 24px 24px 24px;
  pointer-events: none;
  z-index: 1;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html.light-mode .dropdown-glass-surface {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(203, 213, 225, 0.85) !important;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.16),
              0 0 0 1px rgba(14, 165, 233, 0.2),
              inset 0 1.5px 1px rgba(255, 255, 255, 1) !important;
}

html.dark .dropdown-glass-surface,
html:not(.light-mode) .dropdown-glass-surface {
  background: rgba(8, 18, 35, 0.94) !important;
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 30px 75px -12px rgba(0, 0, 0, 0.75),
              0 0 0 1px rgba(56, 189, 248, 0.25),
              inset 0 1.5px 0.5px rgba(255, 255, 255, 0.25) !important;
}

/* Independent Foreground Content Layer (100% Solid/Opaque) */
.dropdown-content-inner {
  position: relative;
  z-index: 1110;
  width: 100%;
  padding: 24px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  opacity: 1 !important;
}

/* Text Contrast Rules */
html.light-mode .dropdown-content-inner h3 {
  color: #091124 !important;
}

html.dark .dropdown-content-inner h3,
html:not(.light-mode) .dropdown-content-inner h3 {
  color: #FFFFFF !important;
}

html.light-mode .dropdown-content-inner .subtitle-text {
  color: #475569 !important;
}

html.dark .dropdown-content-inner .subtitle-text,
html:not(.light-mode) .dropdown-content-inner .subtitle-text {
  color: #CBD5E1 !important;
}

html.light-mode .dropdown-content-inner .section-label {
  color: #0F172A !important;
  font-weight: 800;
}

html.dark .dropdown-content-inner .section-label,
html:not(.light-mode) .dropdown-content-inner .section-label {
  color: #F1F5F9 !important;
  font-weight: 800;
}

/* Header & Footer Separators */
html.light-mode .dropdown-content-inner .border-b,
html.light-mode .dropdown-content-inner .border-t {
  border-color: rgba(226, 232, 240, 0.9) !important;
}

/* Liquid Meniscus Bridge at the Connection Point */
.water-liquid-bridge {
  position: absolute;
  top: calc(100% - 4px);
  left: 36px;
  width: 54px;
  height: 14px;
  pointer-events: none;
  z-index: 1095;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

html.light-mode .liquid-bridge-fill {
  fill: rgba(255, 255, 255, 0.96) !important;
}

html.dark .liquid-bridge-fill,
html:not(.light-mode) .liquid-bridge-fill {
  fill: rgba(8, 18, 35, 0.94) !important;
}

html.light-mode .liquid-bridge-edge {
  stroke: rgba(203, 213, 225, 0.85) !important;
  stroke-width: 1.2;
}

html.dark .liquid-bridge-edge,
html:not(.light-mode) .liquid-bridge-edge {
  stroke: rgba(56, 189, 248, 0.4) !important;
  stroke-width: 1.2;
}

/* Water Ripple Rings on Navbar Surface */
.water-ripple-anchor {
  position: absolute;
  bottom: -4px;
  left: 63px;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  pointer-events: none;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.water-ripple-ring {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

html.light-mode .water-ripple-ring {
  border: 1.5px solid rgba(2, 132, 199, 0.6) !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.25) !important;
}

html.dark .water-ripple-ring,
html:not(.light-mode) .water-ripple-ring {
  border: 1.5px solid rgba(56, 189, 248, 0.75) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45), inset 0 0 6px rgba(255, 255, 255, 0.6) !important;
}

/* Sleek Scrollbar for Platform Grid */
.mega-panel-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.mega-panel-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.mega-panel-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
}
.mega-panel-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.65);
}

/* ACTIVE STATE: Subtle Liquid Meniscus & Mega Panel Expansion */
#marketplaces-dropdown-wrapper.is-open .water-drop-dropdown,
.water-drop-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

#marketplaces-dropdown-wrapper.is-open .water-liquid-bridge,
.water-drop-dropdown.is-open ~ .water-liquid-bridge {
  opacity: 1;
  transform: translateY(0);
}

#marketplaces-dropdown-wrapper.is-open .water-ripple-anchor,
.water-drop-dropdown.is-open ~ .water-ripple-anchor {
  opacity: 1;
}

#marketplaces-dropdown-wrapper.is-open .water-ripple-ring.ring-1 {
  animation: waterRippleExpand 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}
#marketplaces-dropdown-wrapper.is-open .water-ripple-ring.ring-2 {
  animation: waterRippleExpand 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) 0.55s infinite;
}

@keyframes waterRippleExpand {
  0% {
    width: 12px;
    height: 5px;
    opacity: 0.95;
    transform: scale(0.3);
  }
  50% {
    opacity: 0.6;
  }
  100% {
    width: 95px;
    height: 26px;
    opacity: 0;
    transform: scale(1.35);
  }
}

/* Nav Button Active State */
#marketplaces-dropdown-wrapper.is-open #marketplaces-nav-btn {
  background: rgba(224, 242, 254, 0.95) !important;
  color: #0284c7 !important;
  border-radius: 9999px !important;
  padding: 4px 14px !important;
  border: 1px solid rgba(186, 230, 253, 0.95) !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15) !important;
}

html.light-mode #marketplaces-dropdown-wrapper.is-open #marketplaces-nav-btn {
  background: rgba(224, 242, 254, 0.95) !important;
  color: #0284c7 !important;
  border-radius: 9999px !important;
  padding: 4px 14px !important;
  border: 1px solid rgba(186, 230, 253, 0.95) !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15) !important;
}

html.light-mode #marketplaces-dropdown-wrapper.is-open #marketplaces-nav-chevron {
  transform: rotate(180deg);
  color: #0284c7 !important;
}

html.dark #marketplaces-dropdown-wrapper.is-open #marketplaces-nav-btn,
html:not(.light-mode) #marketplaces-dropdown-wrapper.is-open #marketplaces-nav-btn {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
  border-radius: 9999px !important;
  padding: 4px 14px !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
}

html.dark #marketplaces-dropdown-wrapper.is-open #marketplaces-nav-chevron,
html:not(.light-mode) #marketplaces-dropdown-wrapper.is-open #marketplaces-nav-chevron {
  transform: rotate(180deg);
  color: #38bdf8 !important;
}

/* Floating Glass Chip Cards */
.dropdown-platform-pill {
  border-radius: 12px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

html.light-mode .dropdown-platform-pill {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

html.light-mode .dropdown-platform-pill:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.16) !important;
}

html.dark .dropdown-platform-pill,
html:not(.light-mode) .dropdown-platform-pill {
  background: rgba(25, 40, 65, 0.85) !important;
  border: 1px solid rgba(100, 200, 255, 0.18) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

html.dark .dropdown-platform-pill:hover,
html:not(.light-mode) .dropdown-platform-pill:hover {
  background: rgba(30, 50, 80, 0.95) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -3px rgba(0, 0, 0, 0.5), 0 0 14px rgba(56, 189, 248, 0.25) !important;
}

/* Logos & Name inside card: 100% opaque */
.dropdown-platform-pill .platform-logo-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  padding: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  opacity: 1 !important;
}

html.light-mode .dropdown-platform-pill .platform-logo-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html.dark .dropdown-platform-pill .platform-logo-box,
html:not(.light-mode) .dropdown-platform-pill .platform-logo-box {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.dropdown-platform-pill .platform-logo-box img {
  opacity: 1 !important;
  max-height: 100%;
  max-width: 100%;
}

.dropdown-platform-pill .platform-name {
  font-size: 12px;
  font-weight: 700;
  opacity: 1 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

html.light-mode .dropdown-platform-pill .platform-name {
  color: #0f172a !important;
}

html.dark .dropdown-platform-pill .platform-name,
html:not(.light-mode) .dropdown-platform-pill .platform-name {
  color: #f8fafc !important;
}

html.light-mode .dropdown-platform-pill:hover .platform-name {
  color: #0284c7 !important;
}

html.dark .dropdown-platform-pill:hover .platform-name,
html:not(.light-mode) .dropdown-platform-pill:hover .platform-name {
  color: #38bdf8 !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .water-drop-dropdown {
    width: min(740px, 92vw);
    left: -20px;
    transform-origin: 75px 0;
  }
  .water-liquid-bridge {
    left: 45px;
  }
}

@media (max-width: 768px) {
  .water-drop-dropdown {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100vh - 90px);
    transform-origin: center top;
  }
  .water-liquid-bridge {
    display: none;
  }
  .water-ripple-anchor {
    display: none;
  }
}

/* ==========================================================================
   11. SERVICES WATER-DROPLET & LIQUID-GLASS NAVIGATION DROPDOWN
   ========================================================================== */

/* Services Dropdown Menu Panel */
.services-drop-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -150px;
  width: min(840px, 94vw);
  max-height: min(620px, calc(100vh - 90px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: 198px 0;
  transform: scale(0.96) translateY(-6px);
  transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
  z-index: 1100;
  border-radius: 20px 24px 24px 24px;
}

/* Invisible Hover Safe Bridge - STRICTLY scoped directly beneath Services button */
.services-drop-dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 140px;
  width: 115px;
  height: 22px;
  pointer-events: auto;
}

/* Services Liquid Meniscus Bridge at the Connection Point */
.services-liquid-bridge {
  position: absolute;
  top: calc(100% - 4px);
  left: 21px;
  width: 54px;
  height: 14px;
  pointer-events: none;
  z-index: 1095;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Services Water Ripple Anchor */
.services-ripple-anchor {
  position: absolute;
  bottom: -4px;
  left: 48px;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  pointer-events: none;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ACTIVE STATE: Services Expansion */
#services-dropdown-wrapper.is-open .services-drop-dropdown,
.services-drop-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

#services-dropdown-wrapper.is-open .services-liquid-bridge,
.services-drop-dropdown.is-open ~ .services-liquid-bridge {
  opacity: 1;
  transform: translateY(0);
}

#services-dropdown-wrapper.is-open .services-ripple-anchor,
.services-drop-dropdown.is-open ~ .services-ripple-anchor {
  opacity: 1;
}

#services-dropdown-wrapper.is-open .services-ripple-anchor .water-ripple-ring.ring-1 {
  animation: waterRippleExpand 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}
#services-dropdown-wrapper.is-open .services-ripple-anchor .water-ripple-ring.ring-2 {
  animation: waterRippleExpand 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) 0.55s infinite;
}

/* Services Nav Button Active State */
#services-dropdown-wrapper.is-open #services-nav-btn {
  border-radius: 9999px !important;
  padding: 4px 14px !important;
}

html.light-mode #services-dropdown-wrapper.is-open #services-nav-btn {
  background: rgba(224, 242, 254, 0.95) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(186, 230, 253, 0.95) !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15) !important;
}

html.light-mode #services-dropdown-wrapper.is-open #services-nav-chevron {
  transform: rotate(180deg);
  color: #0284c7 !important;
}

html.dark #services-dropdown-wrapper.is-open #services-nav-btn,
html:not(.light-mode) #services-dropdown-wrapper.is-open #services-nav-btn {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
}

html.dark #services-dropdown-wrapper.is-open #services-nav-chevron,
html:not(.light-mode) #services-dropdown-wrapper.is-open #services-nav-chevron {
  transform: rotate(180deg);
  color: #38bdf8 !important;
}

/* Service Card Pill in Dropdown */
.service-dropdown-card {
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

html.light-mode .service-dropdown-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

html.light-mode .service-dropdown-card:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.16) !important;
}

html.dark .service-dropdown-card,
html:not(.light-mode) .service-dropdown-card {
  background: rgba(25, 40, 65, 0.85) !important;
  border: 1px solid rgba(100, 200, 255, 0.18) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

html.dark .service-dropdown-card:hover,
html:not(.light-mode) .service-dropdown-card:hover {
  background: rgba(30, 50, 80, 0.95) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -3px rgba(0, 0, 0, 0.5), 0 0 14px rgba(56, 189, 248, 0.25) !important;
}

/* Featured Consulting Card */
.service-dropdown-card.featured-service {
  position: relative;
}

html.light-mode .service-dropdown-card.featured-service {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
}

html.dark .service-dropdown-card.featured-service,
html:not(.light-mode) .service-dropdown-card.featured-service {
  background: linear-gradient(135deg, rgba(25, 40, 65, 0.95) 0%, rgba(15, 30, 55, 0.95) 100%) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

/* Service Card Typography & Elements */
.service-dropdown-card .service-title {
  font-size: 13px;
  font-weight: 700;
  transition: color 0.15s ease;
}

html.light-mode .service-dropdown-card .service-title {
  color: #0f172a !important;
}

html.dark .service-dropdown-card .service-title,
html:not(.light-mode) .service-dropdown-card .service-title {
  color: #f8fafc !important;
}

html.light-mode .service-dropdown-card:hover .service-title {
  color: #0284c7 !important;
}

html.dark .service-dropdown-card:hover .service-title,
html:not(.light-mode) .service-dropdown-card:hover .service-title {
  color: #38bdf8 !important;
}

.service-dropdown-card .service-desc {
  font-size: 11px;
  line-height: 1.35;
}

html.light-mode .service-dropdown-card .service-desc {
  color: #475569 !important;
}

html.dark .service-dropdown-card .service-desc,
html:not(.light-mode) .service-dropdown-card .service-desc {
  color: #94a3b8 !important;
}

.service-dropdown-card .service-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}

html.light-mode .service-dropdown-card .service-tag {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

html.dark .service-dropdown-card .service-tag,
html:not(.light-mode) .service-dropdown-card .service-tag {
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Target Service Card Highlight Animation (on scroll into view) */
@keyframes serviceCardHighlight {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  50% { transform: scale(1.02); box-shadow: 0 0 35px 4px rgba(56, 189, 248, 0.5); border-color: rgba(56, 189, 248, 0.9) !important; }
  100% { transform: scale(1); box-shadow: none; }
}
.service-card-pulse {
  animation: serviceCardHighlight 1.8s cubic-bezier(0.16, 1, 0.3, 1) 2;
}

/* Responsive Breakpoints for Services Dropdown */
@media (max-width: 1024px) {
  .services-drop-dropdown {
    width: min(720px, 92vw);
    left: -100px;
    transform-origin: 148px 0;
  }
  .services-drop-dropdown::before {
    left: 90px;
  }
}

@media (max-width: 768px) {
  .services-drop-dropdown {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100vh - 90px);
    transform-origin: center top;
  }
  .services-liquid-bridge {
    display: none;
  }
  .services-ripple-anchor {
    display: none;
  }
}

/* Flagship Onboarding Service Card Enhancements */
#service-onboarding {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html.light-mode #service-onboarding {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08) !important;
}

html.light-mode #service-onboarding .bg-slate-950\/40 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light-mode #service-onboarding .bg-slate-900\/80 {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light-mode #service-onboarding .bg-slate-900\/80:hover {
  background-color: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

/* ==========================================================================
   ADVANCED AUDIT MULTI-SELECT DROPDOWN (Services & Marketplaces)
   ========================================================================== */

/* Parent Field Stacking Context Override:
   Must sit higher than subsequent form fields (Textarea and Submit button) */
.audit-multiselect-field {
  position: relative !important;
  z-index: 50 !important;
}

.audit-multiselect-field:has(.is-open),
.audit-multiselect-field.is-open,
.audit-multiselect-wrap.is-open {
  z-index: 99999 !important;
}

.audit-multiselect-wrap {
  position: relative;
  width: 100%;
}

.audit-multiselect-trigger {
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
}

html.dark .audit-multiselect-trigger,
html:not(.light-mode) .audit-multiselect-trigger {
  background: #0d192e !important;
  border: 1px solid #334155;
  color: #f8fafc;
}

html.dark .audit-multiselect-trigger:hover,
html:not(.light-mode) .audit-multiselect-trigger:hover,
.audit-multiselect-wrap.is-open .audit-multiselect-trigger {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

html.light-mode .audit-multiselect-trigger {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html.light-mode .audit-multiselect-trigger:hover,
html.light-mode .audit-multiselect-wrap.is-open .audit-multiselect-trigger {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.audit-multiselect-placeholder {
  font-size: 13px;
  color: #94a3b8;
}

html.light-mode .audit-multiselect-placeholder {
  color: #64748b !important;
}

.audit-multiselect-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

html.dark .audit-multiselect-chip,
html:not(.light-mode) .audit-multiselect-chip {
  background: rgba(14, 165, 233, 0.2) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
}

html.light-mode .audit-multiselect-chip {
  background: #e0f2fe !important;
  border: 1px solid #7dd3fc !important;
  color: #0369a1 !important;
}

.audit-multiselect-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.audit-multiselect-chip button:hover {
  opacity: 1;
}

/* Dropdown Menu Panel:
   SOLID 100% OPAQUE BACKGROUND, ABSOLUTELY NO BACKDROP-FILTER (prevents WebKit transparent composite bug),
   MAX Z-INDEX TO FLOAT OVER FORM CONTROLS */
.audit-multiselect-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 99999 !important;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 440px;
  opacity: 1 !important;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform-origin: top center;
}

html.dark .audit-multiselect-panel,
html:not(.light-mode) .audit-multiselect-panel {
  background: #0d192e !important; /* 100% Solid Dark Navy */
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.95), 0 0 20px rgba(56, 189, 248, 0.15) !important;
}

html.light-mode .audit-multiselect-panel {
  background: #ffffff !important; /* 100% Solid Pure White */
  border: 1px solid #94a3b8 !important;
  box-shadow: 0 25px 65px -10px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(2, 132, 199, 0.2) !important;
}

/* Search Header */
.audit-multiselect-header {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

html.dark .audit-multiselect-header,
html:not(.light-mode) .audit-multiselect-header {
  background: #091322 !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
}

html.light-mode .audit-multiselect-header {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

.audit-multiselect-search {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
  transition: all 0.15s ease;
}

html.dark .audit-multiselect-search,
html:not(.light-mode) .audit-multiselect-search {
  background: #132238 !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}

html.dark .audit-multiselect-search:focus,
html:not(.light-mode) .audit-multiselect-search:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}

html.light-mode .audit-multiselect-search {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html.light-mode .audit-multiselect-search:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
}

/* Service Category Group */
.audit-service-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html.light-mode .audit-service-group {
  border-bottom: 1px solid #e2e8f0 !important;
}

.audit-service-group-header {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 10;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

html.dark .audit-service-group-header,
html:not(.light-mode) .audit-service-group-header {
  background: #111e33 !important;
  color: #38bdf8 !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
}

html.dark .audit-service-group-header:hover,
html:not(.light-mode) .audit-service-group-header:hover {
  background: #162640 !important;
}

html.light-mode .audit-service-group-header {
  background: #e2e8f0 !important;
  color: #0369a1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

html.light-mode .audit-service-group-header:hover {
  background: #cbd5e1 !important;
}

.audit-service-toggle-btn {
  font-size: 10px;
  font-weight: 600;
  text-transform: none;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

html.dark .audit-service-toggle-btn,
html:not(.light-mode) .audit-service-toggle-btn {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

html.dark .audit-service-toggle-btn:hover,
html:not(.light-mode) .audit-service-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.35) !important;
  color: #ffffff !important;
}

html.light-mode .audit-service-toggle-btn {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

html.light-mode .audit-service-toggle-btn:hover {
  background: #bae6fd !important;
  color: #0369a1 !important;
}

/* Item List */
.audit-multiselect-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}

html.dark .audit-multiselect-item,
html:not(.light-mode) .audit-multiselect-item {
  color: #e2e8f0 !important;
}

html.dark .audit-multiselect-item:hover,
html:not(.light-mode) .audit-multiselect-item:hover {
  background: #172844 !important;
}

html.dark .audit-multiselect-item.is-selected,
html:not(.light-mode) .audit-multiselect-item.is-selected {
  background: #15365e !important;
  color: #ffffff !important;
}

html.light-mode .audit-multiselect-item {
  color: #1e293b !important;
}

html.light-mode .audit-multiselect-item:hover {
  background: #f1f5f9 !important;
}

html.light-mode .audit-multiselect-item.is-selected {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

.audit-multiselect-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

html.dark .audit-multiselect-checkbox,
html:not(.light-mode) .audit-multiselect-checkbox {
  border: 1.5px solid #475569 !important;
  background: #091322 !important;
}

.audit-multiselect-item.is-selected .audit-multiselect-checkbox {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

html.light-mode .audit-multiselect-checkbox {
  border: 1.5px solid #94a3b8 !important;
  background: #ffffff !important;
}

.audit-tag-qcommerce {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

html.light-mode .audit-tag-qcommerce {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}

.audit-tag-marketplace {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border: 1px solid #334155 !important;
}

html.light-mode .audit-tag-marketplace {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

/* Footer Actions */
.audit-multiselect-footer {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  flex-shrink: 0;
}

html.dark .audit-multiselect-footer,
html:not(.light-mode) .audit-multiselect-footer {
  background: #091322 !important;
  border-top: 1px solid rgba(56, 189, 248, 0.2) !important;
}

html.light-mode .audit-multiselect-footer {
  background: #f8fafc !important;
  border-top: 1px solid #cbd5e1 !important;
}







