/* ==========================================================================
   I.N.V ULTRA-LUXURY MONOCHROME - iOS Dynamic Island & Floating Glass System
   Strict Pure Monochrome Palette (Black, White, Charcoal, Platinum Silver)
   Full Native Light Mode & Dark Mode Support
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MASTER FLOATING ISLAND HEADER (v4.18 Ultra-Refined Optical Glass)
   -------------------------------------------------------------------------- */
header.sticky {
  position: fixed !important;
  top: 14px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
  padding: 0 14px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Floating Glass Capsule */
header.sticky > .inv-header-capsule {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1001 !important;
  max-width: 960px !important;
  height: 52px !important;
  margin: 0 auto !important;
  border-radius: 9999px !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  padding: 0 8px 0 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.25s ease, transform 0.25s ease !important;
}

[dir="rtl"] header.sticky > .inv-header-capsule {
  padding: 0 10px 0 8px !important;
}

/* Capsule Themes: Dark Mode (Optical Liquid Glass) */
html.dark header.sticky > .inv-header-capsule {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.085) 0%, rgba(16, 16, 22, 0.64) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow:
    0 18px 42px -8px rgba(0, 0, 0, 0.82),
    0 4px 14px -2px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.05) !important;
}

/* Capsule Themes: Light Mode (True Apple Frosted Glass) */
html:not(.dark) header.sticky > .inv-header-capsule {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.68) 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow:
    0 16px 36px -6px rgba(15, 23, 42, 0.1),
    0 4px 12px -2px rgba(15, 23, 42, 0.04),
    inset 0 1px 1px 0 #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. REFINED BRAND IDENTITY LOCKUP (I.N.V | استوديو الإبداع والتقنية)
   -------------------------------------------------------------------------- */
.inv-hdr-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 4px 6px 4px 10px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  transition: opacity 0.22s ease, transform 0.22s ease !important;
}
[dir="rtl"] .inv-hdr-brand {
  padding: 4px 4px 4px 10px !important;
}
.inv-hdr-brand:hover {
  opacity: 0.88 !important;
}

/* Sleek Logo Emblem */
.inv-hdr-logo-wrap {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

html.dark .inv-hdr-logo-wrap {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html:not(.dark) .inv-hdr-logo-wrap {
  background: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12) !important;
}

.inv-hdr-logo-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 9999px !important;
  object-fit: cover !important;
}

/* Brand Typographic Lockup */
.inv-hdr-brand-lockup {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  white-space: nowrap !important;
}

.inv-hdr-monogram {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Outfit', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
}
[dir="rtl"] .inv-hdr-monogram {
  letter-spacing: 0 !important;
}

html.dark .inv-hdr-monogram {
  color: #ffffff !important;
}
html:not(.dark) .inv-hdr-monogram {
  color: #0f172a !important;
}

.inv-hdr-brand-sep {
  width: 1px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
}
html.dark .inv-hdr-brand-sep {
  background: rgba(255, 255, 255, 0.2) !important;
}
html:not(.dark) .inv-hdr-brand-sep {
  background: rgba(15, 23, 42, 0.18) !important;
}

.inv-hdr-studio-tag {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Outfit', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}
html.dark .inv-hdr-studio-tag {
  color: rgba(255, 255, 255, 0.72) !important;
}
html:not(.dark) .inv-hdr-studio-tag {
  color: #475569 !important;
}

/* --------------------------------------------------------------------------
   3. DESKTOP NAVIGATION ISLAND
   -------------------------------------------------------------------------- */
header.sticky nav:not([aria-label="Mobile Main Navigation"]) {
  border-radius: 9999px !important;
  padding: 3px 6px !important;
  gap: 2px !important;
  display: inline-flex !important;
  align-items: center !important;
}

html.dark header.sticky nav:not([aria-label="Mobile Main Navigation"]) {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html:not(.dark) header.sticky nav:not([aria-label="Mobile Main Navigation"]) {
  background: rgba(15, 23, 42, 0.035) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

header.sticky nav:not([aria-label="Mobile Main Navigation"]) a {
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Outfit', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

header.sticky nav:not([aria-label="Mobile Main Navigation"]) a span.absolute {
  display: none !important;
}

html.dark header.sticky nav:not([aria-label="Mobile Main Navigation"]) a {
  color: rgba(255, 255, 255, 0.74) !important;
}
html.dark header.sticky nav:not([aria-label="Mobile Main Navigation"]) a:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

html:not(.dark) header.sticky nav:not([aria-label="Mobile Main Navigation"]) a {
  color: #334155 !important;
}
html:not(.dark) header.sticky nav:not([aria-label="Mobile Main Navigation"]) a:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   4. UNIFIED CONTROL DOCK (Theme, Language & Menu Trigger)
   -------------------------------------------------------------------------- */
.inv-hdr-dock {
  display: inline-flex !important;
  align-items: center !important;
  height: 36px !important;
  padding: 2px 4px !important;
  border-radius: 9999px !important;
  gap: 2px !important;
  flex-shrink: 0 !important;
}

html.dark .inv-hdr-dock {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html:not(.dark) .inv-hdr-dock {
  background: rgba(15, 23, 42, 0.045) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
}

.inv-hdr-dock-sep {
  width: 1px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}
html.dark .inv-hdr-dock-sep {
  background: rgba(255, 255, 255, 0.14) !important;
}
html:not(.dark) .inv-hdr-dock-sep {
  background: rgba(15, 23, 42, 0.12) !important;
}

/* Frameless buttons inside the unified control dock */
.inv-hdr-icon-btn,
.inv-hdr-lang-btn,
.inv-hdr-menu-btn {
  height: 30px !important;
  border-radius: 9999px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 10px !important;
  gap: 6px !important;
}

.inv-hdr-icon-btn {
  width: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
}

@media (max-width: 767px) {
  header.sticky .inv-hdr-lang-btn.hidden,
  header.sticky .inv-hdr-dock-sep.hidden {
    display: none !important;
  }
}

html.dark .inv-hdr-icon-btn,
html.dark .inv-hdr-lang-btn,
html.dark .inv-hdr-menu-btn {
  color: rgba(255, 255, 255, 0.9) !important;
}

html.dark .inv-hdr-icon-btn:hover,
html.dark .inv-hdr-lang-btn:hover,
html.dark .inv-hdr-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

html:not(.dark) .inv-hdr-icon-btn,
html:not(.dark) .inv-hdr-lang-btn,
html:not(.dark) .inv-hdr-menu-btn {
  color: #0f172a !important;
}

html:not(.dark) .inv-hdr-icon-btn:hover,
html:not(.dark) .inv-hdr-lang-btn:hover,
html:not(.dark) .inv-hdr-menu-btn:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  color: #000000 !important;
}

.inv-hdr-svg,
.inv-hdr-lang-svg {
  width: 15.5px !important;
  height: 15.5px !important;
  stroke: currentColor !important;
  stroke-width: 1.85 !important;
  flex-shrink: 0 !important;
}

.inv-hdr-lang-text,
.inv-hdr-menu-label {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Outfit', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
}

.inv-hdr-menu-svg {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
}

@media (max-width: 640px) {
  header.sticky {
    top: 10px !important;
    padding: 0 12px !important;
  }
  header.sticky > .inv-header-capsule {
    height: 48px !important;
    padding: 0 6px 0 8px !important;
  }
  [dir="rtl"] header.sticky > .inv-header-capsule {
    padding: 0 8px 0 6px !important;
  }
  .inv-hdr-logo-wrap {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
  }
  .inv-hdr-monogram {
    font-size: 0.86rem !important;
  }
  .inv-hdr-studio-tag {
    font-size: 0.73rem !important;
  }
  .inv-hdr-dock {
    height: 34px !important;
  }
  .inv-hdr-icon-btn,
  .inv-hdr-menu-btn {
    height: 28px !important;
  }
  .inv-hdr-icon-btn {
    width: 28px !important;
    min-width: 28px !important;
  }
}

@media (max-width: 360px) {
  .inv-hdr-brand-sep,
  .inv-hdr-studio-tag {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   5. COMPLETE RECTANGLE ELIMINATION & SEAMLESS LUXURY DRAWER
   -------------------------------------------------------------------------- */

/* WHEN MENU IS OPEN: Completely hide top capsule so NO strange rectangle appears */
header.sticky.is-menu-open > div:first-child,
header.sticky:has(button[aria-expanded="true"]) > div:first-child {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Full-Screen Scrim - Smooth Apple-Grade Backdrop */
#mobile-menu-drawer {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10000 !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  /* Lower the menu card gracefully so it breathes below top notch/island */
  padding: 52px 16px 24px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  animation: iosMenuFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: auto !important;
}

@keyframes iosMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Backdrop Scrim Theme */
html.dark #mobile-menu-drawer {
  background: rgba(3, 3, 5, 0.82) !important;
}

html:not(.dark) #mobile-menu-drawer {
  background: rgba(241, 245, 249, 0.65) !important;
}

/* The Luxury Glass Card */
#mobile-menu-drawer .glass-panel {
  width: 100% !important;
  max-width: 380px !important;
  margin: 14px auto 0 auto !important;
  border-radius: 26px !important;
  padding: 18px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  position: relative !important;
  backdrop-filter: blur(32px) !important;
  -webkit-backdrop-filter: blur(32px) !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Card: Dark Mode */
html.dark #mobile-menu-drawer .glass-panel {
  background: #0f0f14 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow: 
    0 30px 80px -10px rgba(0, 0, 0, 0.98),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

/* Card: Light Mode */
html:not(.dark) #mobile-menu-drawer .glass-panel {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 
    0 25px 70px -10px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* Card Top Header: Brand Identity & Integrated X Close Button */
#mobile-menu-drawer .glass-panel > div:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding-bottom: 12px !important;
}

html.dark #mobile-menu-drawer .glass-panel > div:first-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html:not(.dark) #mobile-menu-drawer .glass-panel > div:first-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Studio Title in Drawer Header */
html.dark #mobile-menu-drawer .glass-panel span.font-extrabold {
  color: #ffffff !important;
}

html:not(.dark) #mobile-menu-drawer .glass-panel span.font-extrabold {
  color: #0f172a !important;
}

/* Integrated X Close Button inside Card */
#mobile-menu-drawer .glass-panel button[aria-label] {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark #mobile-menu-drawer .glass-panel button[aria-label] {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

html.dark #mobile-menu-drawer .glass-panel button[aria-label]:hover,
html.dark #mobile-menu-drawer .glass-panel button[aria-label]:active {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.08) !important;
}

html.dark #mobile-menu-drawer .glass-panel button[aria-label] svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
}

html:not(.dark) #mobile-menu-drawer .glass-panel button[aria-label] {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html:not(.dark) #mobile-menu-drawer .glass-panel button[aria-label]:hover,
html:not(.dark) #mobile-menu-drawer .glass-panel button[aria-label]:active {
  background: rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.08) !important;
}

html:not(.dark) #mobile-menu-drawer .glass-panel button[aria-label] svg {
  color: #0f172a !important;
  stroke: #0f172a !important;
  stroke-width: 2.2 !important;
}

/* Mobile Nav Container */
nav[aria-label="Mobile Main Navigation"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

/* Each Menu Item - Sleek iOS Row with Dynamic Arrow Indicator */
nav[aria-label="Mobile Main Navigation"] a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 13px 16px !important;
  border-radius: 16px !important;
  font-family: 'Cairo', 'Outfit', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

/* Dark Mode Nav Links */
html.dark nav[aria-label="Mobile Main Navigation"] a {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

html.dark nav[aria-label="Mobile Main Navigation"] a:hover,
html.dark nav[aria-label="Mobile Main Navigation"] a:active {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

/* Light Mode Nav Links */
html:not(.dark) nav[aria-label="Mobile Main Navigation"] a {
  background: rgba(0, 0, 0, 0.035) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
}

html:not(.dark) nav[aria-label="Mobile Main Navigation"] a:hover,
html:not(.dark) nav[aria-label="Mobile Main Navigation"] a:active {
  background: rgba(0, 0, 0, 0.07) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #000000 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

/* Hide legacy underline animation span */
nav[aria-label="Mobile Main Navigation"] a span.absolute {
  display: none !important;
}

/* Directional Arrow */
[dir="rtl"] nav[aria-label="Mobile Main Navigation"] a::after {
  content: '←' !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

[dir="ltr"] nav[aria-label="Mobile Main Navigation"] a::after {
  content: '→' !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

html.dark nav[aria-label="Mobile Main Navigation"] a::after {
  color: rgba(255, 255, 255, 0.35) !important;
}

html.dark nav[aria-label="Mobile Main Navigation"] a:hover::after,
html.dark nav[aria-label="Mobile Main Navigation"] a:active::after {
  color: #ffffff !important;
}

html:not(.dark) nav[aria-label="Mobile Main Navigation"] a::after {
  color: rgba(15, 23, 42, 0.45) !important;
}

html:not(.dark) nav[aria-label="Mobile Main Navigation"] a:hover::after,
html:not(.dark) nav[aria-label="Mobile Main Navigation"] a:active::after {
  color: #000000 !important;
}

[dir="rtl"] nav[aria-label="Mobile Main Navigation"] a:hover::after,
[dir="rtl"] nav[aria-label="Mobile Main Navigation"] a:active::after {
  transform: translateX(-4px) !important;
}

[dir="ltr"] nav[aria-label="Mobile Main Navigation"] a:hover::after,
[dir="ltr"] nav[aria-label="Mobile Main Navigation"] a:active::after {
  transform: translateX(4px) !important;
}

/* Card Bottom Controls (Language & Theme Toggle) */
#mobile-menu-drawer .glass-panel > div:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 12px !important;
  width: 100% !important;
}

html.dark #mobile-menu-drawer .glass-panel > div:last-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html:not(.dark) #mobile-menu-drawer .glass-panel > div:last-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

#mobile-menu-drawer .glass-panel > div:last-child button {
  width: auto !important;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

#mobile-menu-drawer .glass-panel > div:last-child button.inv-hdr-icon-btn {
  width: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
}

html.dark #mobile-menu-drawer .glass-panel > div:last-child button {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

html.dark #mobile-menu-drawer .glass-panel > div:last-child button:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

html:not(.dark) #mobile-menu-drawer .glass-panel > div:last-child button {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

html:not(.dark) #mobile-menu-drawer .glass-panel > div:last-child button:hover {
  background: rgba(0, 0, 0, 0.09) !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}

/* Dismiss area below card */
#mobile-menu-drawer .flex-1 {
  cursor: pointer !important;
  width: 100% !important;
}

/* Clean spacing for top */
main {
  padding-top: 8px !important;
}

/* ==========================================================================
   7. ULTRA-LUXURY HERO & SMART AI ASSISTANT SYSTEM
   Strict Pure Monochrome Palette + Emerald Live Indicator
   Full Dark Mode & Light Mode Contrast Fidelity
   ========================================================================== */

/* Hero Badge Pill */
.inv-badge-pill {
  transition: all 0.25s ease !important;
}
html.dark .inv-badge-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}
html:not(.dark) .inv-badge-pill {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Hero Title Typography */
html.dark .inv-hero-title .title-line-1 {
  color: #ffffff !important;
}
html.dark .inv-hero-title .title-line-2 {
  background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 45%, #a1a1aa 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html.dark .inv-hero-title .title-line-3 {
  color: #a1a1aa !important;
}

html:not(.dark) .inv-hero-title .title-line-1 {
  color: #09090b !important;
}
html:not(.dark) .inv-hero-title .title-line-2 {
  background: linear-gradient(135deg, #09090b 0%, #27272a 45%, #52525b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html:not(.dark) .inv-hero-title .title-line-3 {
  color: #4b5563 !important;
}

/* Hero Subtitle */
html.dark .inv-hero-subtitle {
  color: #a1a1aa !important;
}
html:not(.dark) .inv-hero-subtitle {
  color: #475569 !important;
}

/* Master CTAs (Buttons) */
.inv-btn-primary {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html.dark .inv-btn-primary {
  background: #ffffff !important;
  color: #09090b !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 10px 25px -4px rgba(255, 255, 255, 0.28), 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}
html.dark .inv-btn-primary:hover {
  background: #f4f4f5 !important;
  box-shadow: 0 14px 30px -4px rgba(255, 255, 255, 0.4), 0 6px 16px rgba(0, 0, 0, 0.7) !important;
  transform: translateY(-2px) !important;
}

html:not(.dark) .inv-btn-primary {
  background: #09090b !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.85) !important;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.28) !important;
}
html:not(.dark) .inv-btn-primary:hover {
  background: #18181b !important;
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px) !important;
}

.inv-btn-secondary {
  transition: all 0.25s ease !important;
}
html.dark .inv-btn-secondary {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(16px) !important;
}
html.dark .inv-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px) !important;
}

html:not(.dark) .inv-btn-secondary {
  background: rgba(255, 255, 255, 0.85) !important;
  color: #09090b !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}
html:not(.dark) .inv-btn-secondary:hover {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-2px) !important;
}

html.dark .inv-btn-tertiary {
  color: #a1a1aa !important;
}
html.dark .inv-btn-tertiary:hover {
  color: #ffffff !important;
}
html:not(.dark) .inv-btn-tertiary {
  color: #52525b !important;
}
html:not(.dark) .inv-btn-tertiary:hover {
  color: #09090b !important;
}

/* Hero AI Consultation Capsule */
.inv-hero-ai-capsule {
  transition: all 0.3s ease !important;
}
html.dark .inv-hero-ai-capsule {
  background: rgba(14, 14, 18, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8) !important;
}
html:not(.dark) .inv-hero-ai-capsule {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08) !important;
}

html.dark .inv-capsule-badge {
  color: #ffffff !important;
}
html:not(.dark) .inv-capsule-badge {
  color: #09090b !important;
}

html.dark .inv-capsule-link {
  color: #a1a1aa !important;
}
html.dark .inv-capsule-link:hover {
  color: #ffffff !important;
}
html:not(.dark) .inv-capsule-link {
  color: #64748b !important;
}
html:not(.dark) .inv-capsule-link:hover {
  color: #09090b !important;
}

/* Quick Query Chips */
.inv-chip-btn {
  transition: all 0.2s ease !important;
}
html.dark .inv-chip-btn {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #e4e4e7 !important;
}
html.dark .inv-chip-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

html:not(.dark) .inv-chip-btn {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #1e293b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
html:not(.dark) .inv-chip-btn:hover {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
  color: #09090b !important;
}

/* Input Fields */
html.dark .inv-capsule-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
html.dark .inv-capsule-input:focus {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
html.dark .inv-capsule-input::placeholder {
  color: #71717a !important;
}

html:not(.dark) .inv-capsule-input {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  color: #09090b !important;
}
html:not(.dark) .inv-capsule-input:focus {
  border-color: rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
}
html:not(.dark) .inv-capsule-input::placeholder {
  color: #94a3b8 !important;
}

/* Pillar Cards (01, 02, 03) */
.inv-feature-card {
  transition: all 0.25s ease !important;
}
html.dark .inv-feature-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px) !important;
}
html.dark .inv-feature-card:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}
html.dark .inv-feature-num {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
html.dark .inv-feature-title {
  color: #ffffff !important;
}
html.dark .inv-feature-desc {
  color: #a1a1aa !important;
}

html:not(.dark) .inv-feature-card {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}
html:not(.dark) .inv-feature-card:hover {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}
html:not(.dark) .inv-feature-num {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #09090b !important;
}
html:not(.dark) .inv-feature-title {
  color: #09090b !important;
}
html:not(.dark) .inv-feature-desc {
  color: #64748b !important;
}

/* --------------------------------------------------------------------------
   8. SMART AI ASSISTANT MODAL (FULL DIALOG WINDOW)
   -------------------------------------------------------------------------- */
.inv-ai-backdrop {
  z-index: 10005 !important;
}

.inv-ai-dialog {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Modal Window Theme: Dark */
html.dark .inv-ai-dialog {
  background: #0c0c11 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow: 
    0 35px 80px -15px rgba(0, 0, 0, 0.95),
    0 0 50px rgba(255, 255, 255, 0.05) !important;
}
html.dark .inv-ai-header {
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html.dark .inv-ai-avatar {
  background: #ffffff !important;
  color: #09090b !important;
}
html.dark .inv-ai-name {
  color: #ffffff !important;
}
html.dark .inv-ai-close {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}
html.dark .inv-ai-close:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

/* Modal Window Theme: Light */
html:not(.dark) .inv-ai-dialog {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-top: 1.5px solid rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.28) !important;
}
html:not(.dark) .inv-ai-header {
  background: rgba(0, 0, 0, 0.03) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
html:not(.dark) .inv-ai-avatar {
  background: #09090b !important;
  color: #ffffff !important;
}
html:not(.dark) .inv-ai-name {
  color: #09090b !important;
}
html:not(.dark) .inv-ai-close {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #09090b !important;
}
html:not(.dark) .inv-ai-close:hover {
  background: rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   9. DEDICATED FULL-SCREEN AI STRATEGIC ADVISOR WORKSPACE (VISIONOS LIQUID GLASS)
   ========================================================================== */

/* Visually Hidden Utility (Accessible screen-reader label per modern-web-guidance) */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.inv-ai-page-view {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Floating Glass Header Bar in AI Studio */
nav.inv-ai-nav-bar {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  padding: 12px 16px 0 !important;
  background: transparent !important;
  border: none !important;
}

.inv-ai-nav-inner {
  width: 100% !important;
  max-width: 860px !important;
  height: 56px !important;
  margin: 0 auto !important;
  padding: 0 14px !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  transition: all 0.3s ease !important;
}

html.dark .inv-ai-nav-inner {
  background: rgba(14, 14, 20, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html:not(.dark) .inv-ai-nav-inner {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow: 0 14px 32px -6px rgba(15, 23, 42, 0.08), inset 0 1px 0 #ffffff !important;
}

.inv-ai-brand-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.inv-ai-brand-emblem {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px !important;
}
html.dark .inv-ai-brand-emblem {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
}
html:not(.dark) .inv-ai-brand-emblem {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1px solid #ffffff !important;
}

.inv-ai-brand-logo-img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}

.inv-ai-brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.2 !important;
}

.inv-ai-brand-title {
  font-family: 'Outfit', 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}
html.dark .inv-ai-brand-title {
  color: #ffffff !important;
}
html:not(.dark) .inv-ai-brand-title {
  color: #0f172a !important;
}

.inv-ai-brand-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  margin-top: 2px !important;
}
html.dark .inv-ai-brand-status {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-ai-brand-status {
  color: #64748b !important;
}

.inv-ai-status-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 9999px !important;
  display: inline-block !important;
}
html.dark .inv-ai-status-dot {
  background: #e2e8f0 !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7) !important;
}
html:not(.dark) .inv-ai-status-dot {
  background: #0f172a !important;
  box-shadow: 0 0 6px rgba(15, 23, 42, 0.3) !important;
}

.inv-ai-nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.inv-ai-reset-btn,
.inv-back-btn {
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .inv-ai-reset-btn,
html.dark .inv-back-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.26) !important;
  color: #f8fafc !important;
}
html.dark .inv-ai-reset-btn:hover,
html.dark .inv-back-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px) !important;
}

html:not(.dark) .inv-ai-reset-btn,
html:not(.dark) .inv-back-btn {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-top: 1px solid #ffffff !important;
  color: #0f172a !important;
}
html:not(.dark) .inv-ai-reset-btn:hover,
html:not(.dark) .inv-back-btn:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  transform: translateY(-1px) !important;
}

/* Main AI Workspace Container */
.inv-ai-main-container {
  flex: 1 !important;
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 18px 16px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.inv-ai-stage-scroll {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* AI Welcome Glass Showcase Box */
.inv-ai-welcome-box {
  container-type: inline-size !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  border-radius: 32px !important;
  padding: 28px 24px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  backdrop-filter: blur(36px) saturate(195%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(195%) !important;
}

.inv-ai-welcome-box::before {
  content: '' !important;
  position: absolute !important;
  top: -100px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 440px !important;
  height: 220px !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

html.dark .inv-ai-welcome-box {
  background: linear-gradient(168deg, rgba(22, 22, 30, 0.72) 0%, rgba(12, 12, 18, 0.62) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 28px 70px -15px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}
html.dark .inv-ai-welcome-box::before {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%) !important;
}

html:not(.dark) .inv-ai-welcome-box {
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.78) 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow: 0 24px 60px -15px rgba(15, 23, 42, 0.08), inset 0 1px 1px #ffffff !important;
}
html:not(.dark) .inv-ai-welcome-box::before {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, transparent 70%) !important;
}

@media (max-width: 640px) {
  .inv-ai-welcome-box {
    padding: 22px 16px 18px !important;
    border-radius: 26px !important;
  }
}

.inv-ai-top-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}

/* 3D Emblem inside AI Welcome Box */
.inv-ai-3d-emblem-wrap {
  position: relative !important;
  width: 112px !important;
  height: 112px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 auto 14px auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  perspective: 900px !important;
}

@media (max-width: 640px) {
  .inv-ai-3d-emblem-wrap {
    width: 96px !important;
    height: 96px !important;
  }
}

.inv-ai-3d-emblem-img {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  animation: logo3DFloat 6s ease-in-out infinite !important;
}

.inv-ai-welcome-title {
  position: relative !important;
  z-index: 1 !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 1.95rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 0 10px 0 !important;
}
html.dark .inv-ai-welcome-title {
  color: #ffffff !important;
}
html:not(.dark) .inv-ai-welcome-title {
  color: #0f172a !important;
}

.inv-ai-welcome-subtitle {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: clamp(0.84rem, 0.78rem + 0.3vw, 0.95rem) !important;
  line-height: 1.68 !important;
  max-width: 460px !important;
  margin: 0 auto 20px auto !important;
  text-wrap: balance !important;
}
.inv-ai-welcome-subtitle .inv-subtitle-line {
  display: block !important;
}
@container (max-width: 400px) {
  .inv-ai-welcome-subtitle {
    display: block !important;
  }
  .inv-ai-welcome-subtitle .inv-subtitle-line {
    display: inline !important;
  }
}
html.dark .inv-ai-welcome-subtitle {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-ai-welcome-subtitle {
  color: #475569 !important;
}

/* 4 Bento Prompt Cards inside AI Welcome Box */
.inv-ai-bento-grid {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 580px) {
  .inv-ai-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

.inv-ai-prompt-card {
  position: relative !important;
  width: 100% !important;
  border-radius: 18px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-align: start !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .inv-ai-prompt-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}
html.dark .inv-ai-prompt-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  transform: translateY(-2px) !important;
}

html:not(.dark) .inv-ai-prompt-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.78) 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03) !important;
}
html:not(.dark) .inv-ai-prompt-card:hover {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  transform: translateY(-2px) !important;
}

.inv-ai-prompt-card-top {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.inv-ai-prompt-icon-box {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html.dark .inv-ai-prompt-icon-box {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: #f8fafc !important;
}
html:not(.dark) .inv-ai-prompt-icon-box {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

.inv-ai-prompt-num {
  position: absolute !important;
  top: 10px !important;
  inset-inline-end: 12px !important;
  font-family: 'Outfit', monospace !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  opacity: 0.55 !important;
}
html.dark .inv-ai-prompt-num {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-ai-prompt-num {
  color: #64748b !important;
}

.inv-ai-prompt-card-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  padding-inline-end: 28px !important;
}

.inv-ai-prompt-title {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}
html.dark .inv-ai-prompt-title {
  color: #f8fafc !important;
}
html:not(.dark) .inv-ai-prompt-title {
  color: #0f172a !important;
}

.inv-ai-prompt-desc {
  font-size: 0.73rem !important;
  line-height: 1.45 !important;
}
html.dark .inv-ai-prompt-desc {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-ai-prompt-desc {
  color: #64748b !important;
}

/* Conversation Thread Messages */
.inv-ai-messages-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  padding: 8px 0 !important;
}

.inv-ai-msg-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
}
.inv-ai-msg-row-user {
  justify-content: flex-end !important;
}
.inv-ai-msg-row-assistant {
  justify-content: flex-start !important;
}

.inv-ai-msg-avatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 11px !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 2px !important;
}
html.dark .inv-ai-msg-avatar {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
html:not(.dark) .inv-ai-msg-avatar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}
.inv-ai-msg-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.inv-ai-msg-bubble {
  max-width: 84% !important;
  padding: 14px 18px !important;
  border-radius: 20px !important;
  font-size: 0.88rem !important;
  line-height: 1.75 !important;
}

html.dark .inv-msg-assistant {
  background: rgba(20, 20, 28, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #f1f5f9 !important;
  backdrop-filter: blur(24px) !important;
}
html:not(.dark) .inv-msg-assistant {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  color: #0f172a !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
}

html.dark .inv-msg-user {
  background: #ffffff !important;
  color: #09090b !important;
  font-weight: 600 !important;
}
html:not(.dark) .inv-msg-user {
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.inv-ai-typing-indicator {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.76rem !important;
  padding: 6px 12px !important;
  color: #94a3b8 !important;
}
.inv-ai-typing-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 9999px !important;
  background: currentColor !important;
  animation: pulse 1.4s infinite !important;
}

/* Bottom Glass Console Area */
.inv-ai-console {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding-top: 12px !important;
}
html.dark .inv-ai-console {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html:not(.dark) .inv-ai-console {
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

/* Monochrome Frosted Quick Action Chips */
.inv-ai-quick-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.inv-ai-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 13px !important;
  border-radius: 9999px !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
html.dark .inv-ai-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #cbd5e1 !important;
}
html.dark .inv-ai-chip:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}
html:not(.dark) .inv-ai-chip {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-top: 1px solid #ffffff !important;
  color: #334155 !important;
}
html:not(.dark) .inv-ai-chip:hover {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

/* Unified Apple VisionOS Glass Composer Bar */
.inv-ai-composer-bar {
  width: 100% !important;
  min-height: 54px !important;
  padding: 6px 6px 6px 14px !important;
  border-radius: 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease !important;
}
[dir="rtl"] .inv-ai-composer-bar {
  padding: 6px 14px 6px 6px !important;
}

html.dark .inv-ai-composer-bar {
  background: rgba(16, 16, 22, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.26) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
html.dark .inv-ai-composer-bar:focus-within {
  border-color: rgba(255, 255, 255, 0.34) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 0 3px rgba(255, 255, 255, 0.07) !important;
}

html:not(.dark) .inv-ai-composer-bar {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.11) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}
html:not(.dark) .inv-ai-composer-bar:focus-within {
  border-color: rgba(15, 23, 42, 0.28) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1), 0 0 0 3px rgba(15, 23, 42, 0.05) !important;
}

.inv-ai-input-field {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 40px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 1rem !important; /* 16px prevents iOS Safari auto-zoom */
  padding: 0 4px !important;
}
html.dark .inv-ai-input-field {
  color: #ffffff !important;
}
html.dark .inv-ai-input-field::placeholder {
  color: #64748b !important;
}
html:not(.dark) .inv-ai-input-field {
  color: #0f172a !important;
}
html:not(.dark) .inv-ai-input-field::placeholder {
  color: #94a3b8 !important;
}

.inv-ai-send-btn {
  flex-shrink: 0 !important;
  width: auto !important;
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html.dark .inv-ai-send-btn {
  background: #ffffff !important;
  color: #09090b !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.18) !important;
}
html.dark .inv-ai-send-btn:hover {
  background: #f1f5f9 !important;
  transform: translateY(-1px) !important;
}
html:not(.dark) .inv-ai-send-btn {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16) !important;
}
html:not(.dark) .inv-ai-send-btn:hover {
  background: #1e293b !important;
  transform: translateY(-1px) !important;
}

/* Monochrome Liquid Glass WhatsApp Transfer Bar */
.inv-ai-whatsapp-bar {
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  transition: all 0.22s ease !important;
}
html.dark .inv-ai-whatsapp-bar {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #e2e8f0 !important;
}
html.dark .inv-ai-whatsapp-bar:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}
html:not(.dark) .inv-ai-whatsapp-bar {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-top: 1px solid #ffffff !important;
  color: #1e293b !important;
}
html:not(.dark) .inv-ai-whatsapp-bar:hover {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

.inv-ai-wa-icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  opacity: 0.9 !important;
}
.inv-ai-wa-arrow {
  opacity: 0.65 !important;
  font-size: 0.82rem !important;
}


/* ==========================================================================
   11. EXECUTIVE ARABIC TYPOGRAPHY & VISUAL BREATHING SYSTEM
   Pure typographic balance: IBM Plex Sans Arabic, open line-heights, zero tracking
   Visual Comfort (الراحة البصرية): generous whitespace, quiet restrained weights
   ========================================================================== */

/* Apply IBM Plex Sans Arabic to all RTL elements */
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

/* Master Hero Section Container Spacing */
.inv-hero-section {
  padding-top: 145px !important;
  padding-bottom: 85px !important;
  position: relative !important;
}
@media (max-width: 640px) {
  .inv-hero-section {
    padding-top: 110px !important;
    padding-bottom: 50px !important;
  }
}

/* Ambient Celestial Glow behind Hero */
.inv-hero-glow {
  transition: opacity 0.5s ease !important;
  animation: heroGlowPulse 7s ease-in-out infinite alternate !important;
}
@keyframes heroGlowPulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.16; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.28; }
}

html.dark .inv-hero-glow {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 45%, transparent 75%) !important;
}
html:not(.dark) .inv-hero-glow {
  background: radial-gradient(circle, rgba(15, 23, 42, 0.07) 0%, rgba(15, 23, 42, 0.02) 45%, transparent 75%) !important;
}

/* --------------------------------------------------------------------------
   iOS CENTERED HERO EMBLEM (Apple-Grade Liquid Glass Squircle)
   -------------------------------------------------------------------------- */
.inv-hero-emblem-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==========================================================================
   Apple VisionOS / iOS Liquid Glass Showcase Box
   ========================================================================== */
.inv-hero-glass-box {
  container-type: inline-size !important;
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 38px 34px 28px !important;
  border-radius: 36px !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.inv-hero-glass-box::before {
  content: '' !important;
  position: absolute !important;
  top: -120px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 520px !important;
  height: 260px !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

html.dark .inv-hero-glass-box::before {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.02) 48%, transparent 72%) !important;
}

html:not(.dark) .inv-hero-glass-box::before {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.35) 50%, transparent 75%) !important;
}

@media (max-width: 640px) {
  .inv-hero-glass-box {
    padding: 26px 16px 22px !important;
    border-radius: 28px !important;
  }
}

html.dark .inv-hero-glass-box {
  background: linear-gradient(168deg, rgba(22, 22, 30, 0.72) 0%, rgba(12, 12, 18, 0.64) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(40px) saturate(195%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(195%) !important;
  box-shadow: 
    0 32px 84px -16px rgba(0, 0, 0, 0.92),
    0 0 56px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html:not(.dark) .inv-hero-glass-box {
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.86) 0%, rgba(248, 250, 252, 0.76) 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1.5px solid #ffffff !important;
  border-bottom: 1.5px solid rgba(15, 23, 42, 0.11) !important;
  backdrop-filter: blur(40px) saturate(195%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(195%) !important;
  box-shadow: 
    0 26px 72px -16px rgba(15, 23, 42, 0.09),
    0 4px 20px rgba(15, 23, 42, 0.03),
    inset 0 1px 1px #ffffff !important;
}

/* ==========================================================================
   Center 3D Logo Container & Compositor-Friendly Animations (v4.20)
   1. Page-Load Entrance (invLogoIntro)
   2. Gentle Continuous Levitation (invLogoGentleFloat)
   3. Tactile Click/Tap Spring + Optical Ripple Ring (invLogoTapPulse)
   ========================================================================== */
.logo-3d-container {
  width: 210px !important;
  height: 210px !important;
  min-width: 210px !important;
  min-height: 210px !important;
  max-width: 210px !important;
  max-height: 210px !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  margin: 0 auto !important;
  position: relative !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  animation: invLogoIntro 0.95s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@media (max-width: 640px) {
  .logo-3d-container {
    width: 156px !important;
    height: 156px !important;
    min-width: 156px !important;
    min-height: 156px !important;
    max-width: 156px !important;
    max-height: 156px !important;
  }
}

/* Stage 1: Initial Page-Load Entrance */
@keyframes invLogoIntro {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.82);
  }
  65% {
    opacity: 1;
    transform: translateY(-3px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Stage 2: Gentle Continuous Floating Wrapper (Separated so it never conflicts with click/hover) */
.logo-3d-float-stage {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  will-change: transform !important;
  animation: invLogoGentleFloat 5.6s ease-in-out 0.95s infinite !important;
}

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

/* Stage 3: Interactive Click/Tap Stage */
.logo-3d-click-stage {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  will-change: transform !important;
}

.logo-3d-click-stage.is-pulsing {
  animation: invLogoTapPulse 0.62s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@keyframes invLogoTapPulse {
  0% {
    transform: scale(1) translateY(0);
  }
  24% {
    transform: scale(0.91) translateY(2px);
  }
  62% {
    transform: scale(1.065) translateY(-5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

/* Soft Ambient Backlight */
.logo-3d-ambient-light {
  position: absolute !important;
  width: 165px !important;
  height: 165px !important;
  border-radius: 50% !important;
  filter: blur(28px) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}

html.dark .logo-3d-ambient-light {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(200, 200, 220, 0.07) 55%, transparent 75%) !important;
  opacity: 0.85 !important;
}

html:not(.dark) .logo-3d-ambient-light {
  background: radial-gradient(circle, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.02) 55%, transparent 75%) !important;
  opacity: 0.55 !important;
}

.logo-3d-click-stage.is-pulsing .logo-3d-ambient-light {
  animation: invLogoGlowPulse 0.62s ease-out !important;
}

@keyframes invLogoGlowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  45% {
    transform: scale(1.22);
    opacity: 1;
  }
}

/* Optical Ripple Halo on Click */
.logo-3d-ripple-ring {
  position: absolute !important;
  width: 132px !important;
  height: 132px !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0 !important;
  transform: scale(0.72) !important;
}

html.dark .logo-3d-ripple-ring {
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.16) !important;
}

html:not(.dark) .logo-3d-ripple-ring {
  border: 1px solid rgba(15, 23, 42, 0.22) !important;
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.08) !important;
}

@media (max-width: 640px) {
  .logo-3d-ripple-ring {
    width: 104px !important;
    height: 104px !important;
  }
}

.logo-3d-click-stage.is-pulsing .logo-3d-ripple-ring {
  animation: invLogoRippleOut 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes invLogoRippleOut {
  0% {
    opacity: 0.65;
    transform: scale(0.72);
  }
  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

/* Emblem SVG / Image (No harsh drop-shadow or animation-play-state freeze) */
.logo-3d-container img,
.logo-3d-container svg,
.logo-3d-svg {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  filter: none !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform !important;
}

@media (hover: hover) and (pointer: fine) {
  .logo-3d-container:hover .logo-3d-svg {
    transform: scale(1.035) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-3d-container,
  .logo-3d-float-stage {
    animation: none !important;
  }
}

.inv-hero-badge-wrap {
  position: relative !important;
  z-index: 1 !important;
  margin-bottom: 16px !important;
}

.logo-3d-container {
  margin-bottom: 20px !important;
}

/* Hero Badge Pill - Liquid Frosted Glass with Moving Shimmer */
.inv-badge-pill {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  padding: 5px 15px !important;
  border-radius: 9999px !important;
  transition: all 0.25s ease !important;
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
}

.inv-badge-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 9999px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}
html.dark .inv-badge-dot {
  background: #f8fafc !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7) !important;
}
html:not(.dark) .inv-badge-dot {
  background: #0f172a !important;
  box-shadow: 0 0 6px rgba(15, 23, 42, 0.3) !important;
}

.inv-badge-pill::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 60% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent) !important;
  transform: skewX(-20deg) !important;
  animation: badgeShine 6s infinite ease-in-out !important;
  pointer-events: none !important;
}
@keyframes badgeShine {
  0%, 70% { left: -100%; }
  100% { left: 200%; }
}

html.dark .inv-badge-pill {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
html.dark .inv-badge-pill:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

html:not(.dark) .inv-badge-pill {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-top: 1.5px solid #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
html:not(.dark) .inv-badge-pill:hover {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

/* Hero Main Title Typography (Fluid clamp combining rem + vw & generous vertical breathing) */
.inv-hero-title {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: clamp(1.68rem, 1.12rem + 2.5vw, 2.85rem) !important;
  font-weight: 700 !important;
  line-height: 1.24 !important;
  letter-spacing: normal !important;
}
.inv-hero-title .title-line-1,
.inv-hero-title .title-line-2 {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
}

html.dark .inv-hero-title .title-line-1 {
  color: #ffffff !important;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.14) !important;
}
html.dark .inv-hero-title .title-line-2 {
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 55%, #94a3b8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html:not(.dark) .inv-hero-title .title-line-1 {
  color: #0f172a !important;
}
html:not(.dark) .inv-hero-title .title-line-2 {
  background: linear-gradient(180deg, #1e293b 0%, #334155 55%, #64748b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

@container (max-width: 480px) {
  .inv-hero-title {
    font-size: clamp(1.48rem, 0.92rem + 3.2vw, 1.88rem) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }
}

/* Hero Subtitle Typography - Symmetrical 2-Line Executive Balance */
.inv-hero-subtitle {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: clamp(0.9rem, 0.8rem + 0.42vw, 1.04rem) !important;
  font-weight: 400 !important;
  line-height: 1.72 !important;
  letter-spacing: normal !important;
  max-width: 490px !important;
  text-wrap: balance !important;
}

.inv-hero-subtitle .inv-subtitle-line {
  display: block !important;
}

@container (max-width: 400px) {
  .inv-hero-subtitle {
    display: block !important;
    max-width: 94% !important;
    margin-bottom: 20px !important;
  }
  .inv-hero-subtitle .inv-subtitle-line {
    display: inline !important;
  }
}

html.dark .inv-hero-subtitle {
  color: #cbd5e1 !important;
}
html:not(.dark) .inv-hero-subtitle {
  color: #475569 !important;
}

/* Single-Row Monochrome Micro-Tags (Frosted Glass Trust Chips) */
.inv-hero-tags-row {
  position: relative !important;
  z-index: 1 !important;
  gap: 10px !important;
  margin-bottom: 24px !important;
}

.inv-hero-micro-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 11px !important;
  border-radius: 9999px !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  transition: all 0.22s ease !important;
  cursor: default !important;
}

@container (max-width: 420px) {
  .inv-hero-tags-row {
    gap: 6px !important;
    margin-bottom: 20px !important;
  }
  .inv-hero-micro-tag {
    padding: 4px 9px !important;
    font-size: 0.68rem !important;
  }
}

html.dark .inv-hero-micro-tag {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #cbd5e1 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
html.dark .inv-hero-micro-tag:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

html:not(.dark) .inv-hero-micro-tag {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1px solid #ffffff !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
html:not(.dark) .inv-hero-micro-tag:hover {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

/* CTA Buttons Typography & Squircle Aesthetics */
.inv-hero-actions {
  position: relative !important;
  z-index: 1 !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.inv-btn-primary {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  letter-spacing: normal !important;
  padding: 10px 24px !important;
  height: 46px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html.dark .inv-btn-primary {
  background: #ffffff !important;
  color: #09090b !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.16) !important;
}
html.dark .inv-btn-primary:hover {
  background: #f1f5f9 !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.24) !important;
}

html:not(.dark) .inv-btn-primary {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16) !important;
}
html:not(.dark) .inv-btn-primary:hover {
  background: #1e293b !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22) !important;
}

.inv-btn-secondary {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  letter-spacing: normal !important;
  padding: 10px 22px !important;
  height: 46px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.22s ease !important;
}
html.dark .inv-btn-secondary {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: #f1f5f9 !important;
}
html.dark .inv-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  transform: translateY(-1.5px) !important;
}

html:not(.dark) .inv-btn-secondary {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-top: 1px solid #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}
html:not(.dark) .inv-btn-secondary:hover {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  transform: translateY(-1.5px) !important;
}

/* Structured Glass Box Footer Link */
.inv-hero-box-footer {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 440px !important;
  margin-top: 4px !important;
  padding-top: 12px !important;
  display: flex !important;
  justify-content: center !important;
}
html.dark .inv-hero-box-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}
html:not(.dark) .inv-hero-box-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.07) !important;
}

.inv-btn-tertiary {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.8rem !important;
  letter-spacing: normal !important;
  padding: 4px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}
html.dark .inv-btn-tertiary {
  color: #94a3b8 !important;
}
html.dark .inv-btn-tertiary:hover {
  color: #ffffff !important;
  transform: translateY(1px) !important;
}
html:not(.dark) .inv-btn-tertiary {
  color: #64748b !important;
}
html:not(.dark) .inv-btn-tertiary:hover {
  color: #0f172a !important;
  transform: translateY(1px) !important;
}

@media (max-width: 640px) {
  .inv-btn-primary,
  .inv-btn-secondary {
    width: 100% !important;
    max-width: 310px !important;
    height: 45px !important;
    font-size: 0.88rem !important;
  }
}

/* ==========================================================================
   Feature Pillars (01, 02, 03) - Apple VisionOS Bento Glass Cards
   ========================================================================== */
.inv-feature-grid {
  width: 100% !important;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.inv-feature-card {
  container-type: inline-size !important;
  position: relative !important;
  border-radius: 20px !important;
  padding: 14px 15px !important;
  overflow: hidden !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.inv-feature-card:has(> svg) {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  column-gap: 13px !important;
  row-gap: 4px !important;
  align-items: center !important;
}

.inv-feature-card::before {
  content: "" !important;
  position: absolute !important;
  top: -32px !important;
  inset-inline-start: -32px !important;
  width: 115px !important;
  height: 115px !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transition: opacity 0.3s ease !important;
}

html.dark .inv-feature-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%) !important;
  opacity: 0.8 !important;
}

html:not(.dark) .inv-feature-card::before {
  background: radial-gradient(circle, rgba(15, 23, 42, 0.04) 0%, transparent 70%) !important;
  opacity: 0.6 !important;
}

html.dark .inv-feature-card {
  background: linear-gradient(145deg, rgba(22, 22, 30, 0.72) 0%, rgba(13, 13, 19, 0.58) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  box-shadow: 
    0 16px 36px -10px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html:not(.dark) .inv-feature-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.78) 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1.5px solid #ffffff !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  box-shadow: 
    0 14px 32px -10px rgba(15, 23, 42, 0.06),
    inset 0 1px 1px #ffffff !important;
}

/* Stretched-link card pattern */
.inv-feature-card:has(a.card-link) {
  position: relative !important;
}

.inv-feature-card a.card-link {
  color: inherit !important;
  text-decoration: none !important;
}

.inv-feature-card a.card-link::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  border-radius: inherit !important;
}

.inv-feature-card a.card-link:focus-visible {
  outline: none !important;
}

html.dark .inv-feature-card:has(a.card-link:focus-visible) {
  outline: 2px solid rgba(255, 255, 255, 0.7) !important;
  outline-offset: 2px !important;
}

html:not(.dark) .inv-feature-card:has(a.card-link:focus-visible) {
  outline: 2px solid #0f172a !important;
  outline-offset: 2px !important;
}

html.dark .inv-feature-card:has(a.card-link:hover) {
  transform: translateY(-3px) !important;
  background: linear-gradient(145deg, rgba(30, 30, 42, 0.85) 0%, rgba(18, 18, 26, 0.72) 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-top-color: rgba(255, 255, 255, 0.38) !important;
  box-shadow: 
    0 20px 44px -10px rgba(0, 0, 0, 0.88),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html:not(.dark) .inv-feature-card:has(a.card-link:hover) {
  transform: translateY(-3px) !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 
    0 18px 38px -10px rgba(15, 23, 42, 0.11),
    inset 0 1px 1px #ffffff !important;
}

/* Monochrome Frosted Squircle Icon */
.inv-feature-icon {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 10px !important;
  border-radius: 14px !important;
  position: relative !important;
  z-index: 1 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .inv-feature-icon {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #f8fafc !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html:not(.dark) .inv-feature-icon {
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1px solid #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff !important;
}

html.dark .inv-feature-card:has(a.card-link:hover) .inv-feature-icon {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
}

html:not(.dark) .inv-feature-card:has(a.card-link:hover) .inv-feature-icon {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
}

/* Header & Index Badge */
.inv-feature-header {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

.inv-feature-title {
  margin: 0 !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
}

html.dark .inv-feature-title {
  color: #f8fafc !important;
}

html:not(.dark) .inv-feature-title {
  color: #0f172a !important;
}

.inv-feature-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2.5px 8px !important;
  border-radius: 9999px !important;
  font-family: 'Outfit', monospace !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease !important;
}

html.dark .inv-feature-badge {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(226, 232, 240, 0.82) !important;
}

html:not(.dark) .inv-feature-badge {
  background: rgba(15, 23, 42, 0.045) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}

.inv-feature-arrow {
  font-size: 0.65rem !important;
  opacity: 0.65 !important;
  transition: transform 0.25s ease, opacity 0.25s ease !important;
}

html.dark .inv-feature-card:has(a.card-link:hover) .inv-feature-badge {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

html:not(.dark) .inv-feature-card:has(a.card-link:hover) .inv-feature-badge {
  background: rgba(15, 23, 42, 0.09) !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
}

.inv-feature-card:has(a.card-link:hover) .inv-feature-arrow {
  opacity: 1 !important;
  transform: translateY(-1px) !important;
}

/* Supporting Description */
.inv-feature-desc {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  position: relative !important;
  z-index: 1 !important;
}

html.dark .inv-feature-desc {
  color: #94a3b8 !important;
}

html:not(.dark) .inv-feature-desc {
  color: #64748b !important;
}

/* Container query adaptation when card has wider inline space (e.g., stacked mobile or wide desktop) */
@container (min-width: 300px) {
  .inv-feature-card:has(> svg) {
    padding: 16px 18px !important;
    column-gap: 15px !important;
    row-gap: 5px !important;
  }
  .inv-feature-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 11px !important;
    border-radius: 15px !important;
  }
  .inv-feature-title {
    font-size: 0.94rem !important;
  }
  .inv-feature-desc {
    font-size: 0.8rem !important;
  }
  .inv-feature-badge {
    padding: 3.5px 10px !important;
    font-size: 0.72rem !important;
  }
}

/* ==========================================================================
   Floating Action Capsules (Bottom-Left WhatsApp & Bottom-Right Smart Chat)
   Sleek Single-Line Monochrome Liquid Glass Pills (No Dots, No Inner Circle)
   ========================================================================== */
.inv-fab-pill {
  position: fixed !important;
  bottom: 22px !important;
  z-index: 45 !important;
  width: 142px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  cursor: pointer !important;
  backdrop-filter: blur(28px) saturate(195%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(195%) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.inv-fab-right {
  right: 22px !important;
  left: auto !important;
}

.inv-fab-left {
  left: 22px !important;
  right: auto !important;
}

html.dark .inv-fab-pill {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(16, 16, 24, 0.68) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.36) !important;
  color: #f8fafc !important;
  box-shadow:
    0 16px 36px -8px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html.dark .inv-fab-pill:hover {
  transform: translateY(-3px) !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #09090b !important;
  box-shadow: 0 18px 40px -8px rgba(255, 255, 255, 0.28) !important;
}

html:not(.dark) .inv-fab-pill {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.86) 0%,
    rgba(248, 250, 252, 0.74) 100%
  ) !important;
  border: 1px solid rgba(15, 23, 42, 0.11) !important;
  border-top: 1.5px solid #ffffff !important;
  color: #0f172a !important;
  box-shadow:
    0 14px 32px -8px rgba(15, 23, 42, 0.12),
    inset 0 1px 1px #ffffff !important;
}

html:not(.dark) .inv-fab-pill:hover {
  transform: translateY(-3px) !important;
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 18px 38px -8px rgba(15, 23, 42, 0.24) !important;
}

.inv-fab-svg {
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Optical size compensation: WhatsApp path spans 0..24 (100% of viewBox) while Chat path spans 3..21 (75% of viewBox) */
.inv-fab-right .inv-fab-svg {
  width: 18px !important;
  height: 18px !important;
}
.inv-fab-left .inv-fab-svg {
  width: 15.5px !important;
  height: 15.5px !important;
}

.inv-fab-pill:hover .inv-fab-svg {
  transform: scale(1.08) !important;
}

.inv-fab-label {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 640px) {
  .inv-fab-pill {
    bottom: 14px !important;
    width: 126px !important;
    height: 38px !important;
    padding: 0 12px !important;
    gap: 7px !important;
  }
  .inv-fab-right {
    right: 12px !important;
  }
  .inv-fab-left {
    left: 12px !important;
  }
  .inv-fab-right .inv-fab-svg {
    width: 16.5px !important;
    height: 16.5px !important;
  }
  .inv-fab-left .inv-fab-svg {
    width: 14.5px !important;
    height: 14.5px !important;
  }
  .inv-fab-label {
    font-size: 0.74rem !important;
  }
}





/* ==========================================================================
   Services Section Header - Apple VisionOS Centered Liquid Glass Card
   ========================================================================== */
.inv-services-header-card {
  container-type: inline-size !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto 38px auto !important;
  padding: 32px 28px 26px !important;
  border-radius: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  backdrop-filter: blur(36px) saturate(195%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(195%) !important;
}

.inv-services-header-card::before {
  content: '' !important;
  position: absolute !important;
  top: -100px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 460px !important;
  height: 220px !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

html.dark .inv-services-header-card {
  background: linear-gradient(168deg, rgba(22, 22, 30, 0.7) 0%, rgba(12, 12, 18, 0.6) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 26px 68px -16px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}
html.dark .inv-services-header-card::before {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.075) 0%, transparent 70%) !important;
}

html:not(.dark) .inv-services-header-card {
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.76) 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow: 0 22px 58px -15px rgba(15, 23, 42, 0.08), inset 0 1px 1px #ffffff !important;
}
html:not(.dark) .inv-services-header-card::before {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, transparent 70%) !important;
}

@media (max-width: 640px) {
  .inv-services-header-card {
    padding: 24px 16px 20px !important;
    border-radius: 26px !important;
    margin-bottom: 28px !important;
  }
}

.inv-services-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}

.inv-services-title {
  position: relative !important;
  z-index: 1 !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: clamp(1.55rem, 1.1rem + 2vw, 2.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  margin: 0 0 12px 0 !important;
}
html.dark .inv-services-title {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 60%, #94a3b8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html:not(.dark) .inv-services-title {
  color: #0f172a !important;
}

.inv-services-subtitle {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: clamp(0.88rem, 0.8rem + 0.35vw, 1rem) !important;
  line-height: 1.72 !important;
  max-width: 480px !important;
  margin: 0 auto 20px auto !important;
  text-wrap: balance !important;
}
.inv-services-subtitle .inv-subtitle-line {
  display: block !important;
}
@container (max-width: 400px) {
  .inv-services-subtitle {
    display: block !important;
  }
  .inv-services-subtitle .inv-subtitle-line {
    display: inline !important;
  }
}
html.dark .inv-services-subtitle {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-services-subtitle {
  color: #475569 !important;
}

.inv-services-pillars-strip {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding-top: 14px !important;
}
html.dark .inv-services-pillars-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}
html:not(.dark) .inv-services-pillars-strip {
  border-top: 1px solid rgba(15, 23, 42, 0.07) !important;
}

.inv-services-pillar-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
}
html.dark .inv-services-pillar-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #cbd5e1 !important;
}
html.dark .inv-services-pillar-chip:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}
html:not(.dark) .inv-services-pillar-chip {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1px solid #ffffff !important;
  color: #334155 !important;
}
html:not(.dark) .inv-services-pillar-chip:hover {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

.inv-services-pillar-num {
  font-family: 'Outfit', monospace !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  opacity: 0.6 !important;
}


/* ==========================================================================
   Services 4-Pillar Bento Grid - Apple VisionOS Liquid Glass Cards
   ========================================================================== */
.inv-services-bento-grid {
  width: 100% !important;
  max-width: 1020px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

@media (max-width: 768px) {
  .inv-services-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.inv-service-bento-card {
  container-type: inline-size !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  padding: 26px 24px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 18px !important;
  backdrop-filter: blur(36px) saturate(195%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(195%) !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
}

.inv-service-bento-card::before {
  content: '' !important;
  position: absolute !important;
  top: -80px !important;
  inset-inline-start: -60px !important;
  width: 260px !important;
  height: 200px !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transition: opacity 0.35s ease !important;
}

html.dark .inv-service-bento-card {
  background: linear-gradient(155deg, rgba(24, 24, 34, 0.72) 0%, rgba(12, 12, 18, 0.58) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.26) !important;
  box-shadow: 
    0 24px 54px -14px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
html.dark .inv-service-bento-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.075) 0%, transparent 70%) !important;
}

html.dark .inv-service-bento-card:hover {
  transform: translateY(-4px) !important;
  background: linear-gradient(155deg, rgba(30, 30, 42, 0.82) 0%, rgba(16, 16, 24, 0.68) 100%) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  border-top-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow: 
    0 30px 64px -12px rgba(0, 0, 0, 0.92),
    0 0 36px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

html:not(.dark) .inv-service-bento-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.8) 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow: 
    0 20px 48px -14px rgba(15, 23, 42, 0.07),
    inset 0 1px 1px #ffffff !important;
}
html:not(.dark) .inv-service-bento-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, transparent 70%) !important;
}

html:not(.dark) .inv-service-bento-card:hover {
  transform: translateY(-4px) !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  box-shadow: 
    0 26px 56px -12px rgba(15, 23, 42, 0.12),
    inset 0 1px 1px #ffffff !important;
}

/* Card Top Header - Clean Editorial Identity & Single Architectural Index */
.inv-service-card-top {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.inv-service-identity {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.inv-service-icon-squircle {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html.dark .inv-service-icon-squircle {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #f8fafc !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
html:not(.dark) .inv-service-icon-squircle {
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1px solid #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05), inset 0 1px 0 #ffffff !important;
}

.inv-service-bento-card:hover .inv-service-icon-squircle {
  transform: scale(1.05) !important;
}
html.dark .inv-service-bento-card:hover .inv-service-icon-squircle {
  background: #ffffff !important;
  color: #09090b !important;
  border-color: #ffffff !important;
}
html:not(.dark) .inv-service-bento-card:hover .inv-service-icon-squircle {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

.inv-service-category-label {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}
html.dark .inv-service-category-label {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-service-category-label {
  color: #64748b !important;
}

.inv-service-num-badge {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1 !important;
  user-select: none !important;
}
html.dark .inv-service-num-badge {
  color: rgba(255, 255, 255, 0.28) !important;
}
html:not(.dark) .inv-service-num-badge {
  color: rgba(15, 23, 42, 0.25) !important;
}

/* Card Body Title & Description */
.inv-service-card-body {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  text-align: start !important;
}

.inv-service-card-title {
  margin: 0 !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: clamp(1.22rem, 1rem + 0.65vw, 1.44rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
}
html.dark .inv-service-card-title {
  color: #ffffff !important;
}
html:not(.dark) .inv-service-card-title {
  color: #0f172a !important;
}

.inv-service-card-desc {
  margin: 0 !important;
  font-size: 0.88rem !important;
  line-height: 1.75 !important;
}
html.dark .inv-service-card-desc {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-service-card-desc {
  color: #475569 !important;
}

/* Frameless 2x2 Architectural Specification Checklist (No Box-in-a-Box) */
.inv-service-specs-grid {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 14px !important;
  row-gap: 11px !important;
  padding: 15px 0 !important;
}
html.dark .inv-service-specs-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
}
html:not(.dark) .inv-service-specs-grid {
  border-top: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
}

@container (max-width: 340px) {
  .inv-service-specs-grid {
    grid-template-columns: 1fr !important;
  }
}

.inv-service-spec-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-align: start !important;
  min-width: 0 !important;
}

.inv-service-spec-check {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease !important;
}
html.dark .inv-service-spec-check {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #e2e8f0 !important;
}
html:not(.dark) .inv-service-spec-check {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

.inv-service-spec-svg {
  width: 10px !important;
  height: 10px !important;
}

.inv-service-spec-text {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.81rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html.dark .inv-service-spec-text {
  color: #cbd5e1 !important;
}
html:not(.dark) .inv-service-spec-text {
  color: #334155 !important;
}

/* Interactive Card Footer Action Bar */
.inv-service-card-footer {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

/* Native Button with Stretched Hit-Target Overlay (::after) */
.inv-service-explore-btn {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  padding: 2px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
}
.inv-service-explore-btn::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  border-radius: 28px !important;
}
.inv-service-explore-btn:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 4px !important;
  border-radius: 10px !important;
}

.inv-service-explore-text {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  transition: color 0.22s ease !important;
}
html.dark .inv-service-explore-text {
  color: #e2e8f0 !important;
}
html.dark .inv-service-bento-card:hover .inv-service-explore-text {
  color: #ffffff !important;
}
html:not(.dark) .inv-service-explore-text {
  color: #0f172a !important;
}

.inv-service-arrow-circle {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html.dark .inv-service-arrow-circle {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
}
html.dark .inv-service-bento-card:hover .inv-service-arrow-circle {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #09090b !important;
  transform: translateX(-3px) !important;
}
html:not(.dark) .inv-service-arrow-circle {
  background: rgba(15, 23, 42, 0.045) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}
html:not(.dark) .inv-service-bento-card:hover .inv-service-arrow-circle {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  transform: translateX(-3px) !important;
}
html[dir="ltr"] .inv-service-bento-card:hover .inv-service-arrow-circle {
  transform: translateX(3px) !important;
}

/* Modal Dialog Glass Styling */
html.dark .inv-service-modal-dialog {
  background: rgba(14, 14, 20, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(40px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(190%) !important;
}
html:not(.dark) .inv-service-modal-dialog {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-top: 1.5px solid #ffffff !important;
  backdrop-filter: blur(40px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(190%) !important;
}

/* ==========================================================================
   EXECUTIVE CASE STUDY MODAL (.inv-case-modal-*) - v4.27
   Cinematic Presentation, Dual Column Glass Showcase, KPI Matrix & Actions
   ========================================================================== */

.inv-case-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10010 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  animation: invCaseFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes invCaseFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes invCaseZoomIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.inv-case-modal-dialog {
  position: relative !important;
  width: 100% !important;
  max-width: 1040px !important;
  max-height: 90vh !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  animation: invCaseZoomIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.95) !important;
}

@media (min-width: 860px) {
  .inv-case-modal-dialog {
    flex-direction: row !important;
  }
}

html.dark .inv-case-modal-dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 30%, transparent 60%),
    rgba(12, 12, 16, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html:not(.dark) .inv-case-modal-dialog {
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(250, 250, 252, 0.98) 100%) !important;
  border: 1px solid rgba(9, 9, 11, 0.12) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow:
    0 35px 80px -20px rgba(9, 9, 11, 0.18),
    inset 0 1px 0 #ffffff !important;
}

/* Modal Close Button */
.inv-case-modal-close {
  position: absolute !important;
  top: 16px !important;
  inset-inline-end: 16px !important;
  z-index: 30 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .inv-case-modal-close {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}
html.dark .inv-case-modal-close:hover {
  background: #ffffff !important;
  color: #09090b !important;
  transform: rotate(90deg) scale(1.06) !important;
}

html:not(.dark) .inv-case-modal-close {
  background: #f4f4f6 !important;
  border: 1px solid rgba(9, 9, 11, 0.1) !important;
  color: #09090b !important;
}
html:not(.dark) .inv-case-modal-close:hover {
  background: #09090b !important;
  color: #ffffff !important;
  transform: rotate(90deg) scale(1.06) !important;
}

/* Left Showcase Stage */
.inv-case-showcase-stage {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  overflow: hidden !important;
}

@media (min-width: 860px) {
  .inv-case-showcase-stage {
    width: 55% !important;
    min-height: 520px !important;
  }
}

html.dark .inv-case-showcase-stage {
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
    #08080b !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
@media (min-width: 860px) {
  html.dark .inv-case-showcase-stage {
    border-bottom: none !important;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
}

html:not(.dark) .inv-case-showcase-stage {
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, transparent 70%),
    #eef0f4 !important;
  border-bottom: 1px solid rgba(9, 9, 11, 0.08) !important;
}
@media (min-width: 860px) {
  html:not(.dark) .inv-case-showcase-stage {
    border-bottom: none !important;
    border-inline-end: 1px solid rgba(9, 9, 11, 0.08) !important;
  }
}

.inv-case-watermark-tag {
  position: absolute !important;
  top: 18px !important;
  inset-inline-start: 18px !important;
  z-index: 10 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-family: 'Outfit', monospace !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}
html.dark .inv-case-watermark-tag {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f4f4f5 !important;
}
html:not(.dark) .inv-case-watermark-tag {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(9, 9, 11, 0.1) !important;
  color: #09090b !important;
}

/* Right Content Column */
.inv-case-content-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 28px 24px !important;
  overflow-y: auto !important;
  max-height: 55vh !important;
}
@media (min-width: 860px) {
  .inv-case-content-col {
    width: 45% !important;
    max-height: 90vh !important;
    padding: 34px 30px !important;
  }
}

/* Top Agency Lockup Badge */
.inv-case-agency-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: 'Outfit', 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  width: fit-content !important;
  margin-bottom: 12px !important;
}
html.dark .inv-case-agency-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #e4e4e7 !important;
}
html:not(.dark) .inv-case-agency-pill {
  background: rgba(9, 9, 11, 0.05) !important;
  border: 1px solid rgba(9, 9, 11, 0.1) !important;
  color: #09090b !important;
}

.inv-case-title {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.55rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 10px 0 !important;
}
html.dark .inv-case-title { color: #ffffff !important; }
html:not(.dark) .inv-case-title { color: #09090b !important; }

.inv-case-desc {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.88rem !important;
  line-height: 1.68 !important;
  font-weight: 400 !important;
  margin: 0 0 18px 0 !important;
}
html.dark .inv-case-desc { color: #a1a1aa !important; }
html:not(.dark) .inv-case-desc { color: #52525b !important; }

/* KPI Metrics 2-Card Grid */
.inv-case-kpi-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
}
.inv-case-kpi-card {
  padding: 12px 14px !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
html.dark .inv-case-kpi-card {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
}
html:not(.dark) .inv-case-kpi-card {
  background: #f4f4f6 !important;
  border: 1px solid rgba(9, 9, 11, 0.08) !important;
  border-top: 1.5px solid #ffffff !important;
}
.inv-case-kpi-label {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
}
html.dark .inv-case-kpi-label { color: #71717a !important; }
html:not(.dark) .inv-case-kpi-label { color: #71717a !important; }

.inv-case-kpi-val {
  font-family: 'Outfit', 'IBM Plex Sans Arabic', monospace !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
}
html.dark .inv-case-kpi-val { color: #ffffff !important; }
html:not(.dark) .inv-case-kpi-val { color: #09090b !important; }

/* Tech Stack Tags */
.inv-case-tags-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 22px !important;
}
.inv-case-tag-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  font-family: 'Outfit', 'IBM Plex Sans Arabic', monospace !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}
html.dark .inv-case-tag-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #d4d4d8 !important;
}
html:not(.dark) .inv-case-tag-chip {
  background: #ffffff !important;
  border: 1px solid rgba(9, 9, 11, 0.1) !important;
  color: #27272a !important;
}

/* Dual Action Buttons Bar */
.inv-case-actions-bar {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html:not(.dark) .inv-case-actions-bar {
  border-top-color: rgba(9, 9, 11, 0.08) !important;
}

.inv-case-btn-calc {
  width: 100% !important;
  padding: 12px 20px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
}
html.dark .inv-case-btn-calc {
  background: #ffffff !important;
  color: #09090b !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.18) !important;
}
html.dark .inv-case-btn-calc:hover {
  background: #f4f4f5 !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.26) !important;
}
html:not(.dark) .inv-case-btn-calc {
  background: #09090b !important;
  color: #ffffff !important;
  border: 1px solid #09090b !important;
  box-shadow: 0 4px 14px rgba(9, 9, 11, 0.16) !important;
}
html:not(.dark) .inv-case-btn-calc:hover {
  background: #27272a !important;
  transform: translateY(-1.5px) !important;
}

.inv-case-btn-wa {
  width: 100% !important;
  padding: 11px 18px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
}
html.dark .inv-case-btn-wa {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #f4f4f5 !important;
}
html.dark .inv-case-btn-wa:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  transform: translateY(-1.5px) !important;
}
html:not(.dark) .inv-case-btn-wa {
  background: #ffffff !important;
  border: 1px solid rgba(9, 9, 11, 0.12) !important;
  color: #09090b !important;
}
html:not(.dark) .inv-case-btn-wa:hover {
  background: #f4f4f6 !important;
  border-color: rgba(9, 9, 11, 0.22) !important;
  transform: translateY(-1.5px) !important;
}


/* ==========================================================================
   Portfolio Editorial Header & True Single-Line iOS Segmented Control
   ========================================================================== */
.inv-portfolio-editorial-header {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto 42px auto !important;
  padding: 0 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.inv-editorial-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  margin-bottom: 10px !important;
}
.inv-editorial-eyebrow::before,
.inv-editorial-eyebrow::after {
  content: '' !important;
  display: inline-block !important;
  width: 24px !important;
  height: 1px !important;
}
html.dark .inv-editorial-eyebrow {
  color: #94a3b8 !important;
}
html.dark .inv-editorial-eyebrow::before,
html.dark .inv-editorial-eyebrow::after {
  background: rgba(255, 255, 255, 0.18) !important;
}
html:not(.dark) .inv-editorial-eyebrow {
  color: #64748b !important;
}
html:not(.dark) .inv-editorial-eyebrow::before,
html:not(.dark) .inv-editorial-eyebrow::after {
  background: rgba(15, 23, 42, 0.16) !important;
}

.inv-portfolio-title {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: clamp(1.65rem, 1.2rem + 2vw, 2.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  margin: 0 0 12px 0 !important;
}
html.dark .inv-portfolio-title {
  color: #ffffff !important;
}
html:not(.dark) .inv-portfolio-title {
  color: #0f172a !important;
}

.inv-portfolio-subtitle {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: clamp(0.9rem, 0.82rem + 0.35vw, 1.02rem) !important;
  line-height: 1.72 !important;
  max-width: 520px !important;
  margin: 0 auto 26px auto !important;
  text-wrap: balance !important;
}
html.dark .inv-portfolio-subtitle {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-portfolio-subtitle {
  color: #475569 !important;
}

/* Single-Row Apple iOS Segmented Pill Track */
.inv-apple-segmented-control {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 5px !important;
  border-radius: 9999px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}
.inv-apple-segmented-control::-webkit-scrollbar {
  display: none !important;
}

html.dark .inv-apple-segmented-control {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html:not(.dark) .inv-apple-segmented-control {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff !important;
}

.inv-apple-segment-btn {
  flex-shrink: 0 !important;
  padding: 8px 18px !important;
  border-radius: 9999px !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  border: none !important;
  background: transparent !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (max-width: 640px) {
  .inv-apple-segment-btn {
    padding: 7px 13px !important;
    font-size: 0.75rem !important;
  }
}

html.dark .inv-apple-segment-btn {
  color: #94a3b8 !important;
}
html.dark .inv-apple-segment-btn:hover:not(.is-active) {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

html:not(.dark) .inv-apple-segment-btn {
  color: #475569 !important;
}
html:not(.dark) .inv-apple-segment-btn:hover:not(.is-active) {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.04) !important;
}

html.dark .inv-apple-segment-btn.is-active {
  background: #ffffff !important;
  color: #09090b !important;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.18) !important;
}

html:not(.dark) .inv-apple-segment-btn.is-active {
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18) !important;
}


/* ==========================================================================
   Smart Studio Cost Calculator - Compact Animated Apple Control Console
   ========================================================================== */
@keyframes invOrbFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(-18px, 12px, 0) scale(1.12);
    opacity: 0.85;
  }
}

@keyframes invTileShimmer {
  0% {
    transform: translateX(120%) skewX(-18deg);
  }
  100% {
    transform: translateX(-160%) skewX(-18deg);
  }
}

@keyframes invChipPop {
  0% {
    opacity: 0;
    transform: scale(0.86) translateY(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes invDotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.55;
  }
}

.inv-calc-console {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 30px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  backdrop-filter: blur(44px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(44px) saturate(200%) !important;
  transition: box-shadow 0.35s ease, border-color 0.35s ease !important;
}

@media (max-width: 640px) {
  .inv-calc-console {
    padding: 18px 15px !important;
    border-radius: 26px !important;
    gap: 14px !important;
  }
}

html.dark .inv-calc-console {
  background: linear-gradient(160deg, rgba(22, 22, 32, 0.82) 0%, rgba(10, 10, 16, 0.72) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 30px 70px -16px rgba(0, 0, 0, 0.88),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html:not(.dark) .inv-calc-console {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.86) 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow:
    0 24px 60px -16px rgba(15, 23, 42, 0.08),
    inset 0 1px 1px #ffffff !important;
}

.inv-calc-ambient-orb {
  position: absolute !important;
  top: -90px !important;
  inset-inline-start: -60px !important;
  width: 320px !important;
  height: 240px !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  animation: invOrbFloat 7s ease-in-out infinite !important;
}
html.dark .inv-calc-ambient-orb {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.085) 0%, transparent 70%) !important;
}
html:not(.dark) .inv-calc-ambient-orb {
  background: radial-gradient(circle, rgba(15, 23, 42, 0.04) 0%, transparent 70%) !important;
}

/* 1. Top Live Telemetry Bar */
.inv-calc-telemetry-bar {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding-bottom: 16px !important;
}
html.dark .inv-calc-telemetry-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html:not(.dark) .inv-calc-telemetry-bar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.inv-calc-price-cluster {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.inv-calc-telemetry-label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}
html.dark .inv-calc-telemetry-label {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-calc-telemetry-label {
  color: #64748b !important;
}

.inv-calc-price-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.inv-calc-live-number {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(2rem, 1.65rem + 1.4vw, 2.65rem) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  font-variant-numeric: tabular-nums !important;
  display: inline-block !important;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.24s ease !important;
}
html.dark .inv-calc-live-number {
  color: #ffffff !important;
}
html:not(.dark) .inv-calc-live-number {
  color: #0f172a !important;
}

.inv-calc-live-number.is-pulsing {
  transform: scale(1.06) !important;
}
html.dark .inv-calc-live-number.is-pulsing {
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.35)) !important;
}

.inv-calc-mono-icon {
  width: 13.5px !important;
  height: 13.5px !important;
  flex-shrink: 0 !important;
  opacity: 0.78 !important;
}

.inv-calc-timeline-meta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 30px !important;
  padding: 0 11px !important;
  border-radius: 9999px !important;
  font-size: 0.73rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  animation: invChipPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html.dark .inv-calc-timeline-meta {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}
html:not(.dark) .inv-calc-timeline-meta {
  background: rgba(15, 23, 42, 0.045) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}

.inv-calc-telemetry-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.inv-calc-express-pill,
.inv-calc-mini-reset {
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 13px !important;
  border-radius: 9999px !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .inv-calc-express-pill,
html.dark .inv-calc-mini-reset {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #cbd5e1 !important;
}
html.dark .inv-calc-express-pill:hover,
html.dark .inv-calc-mini-reset:hover {
  background: rgba(255, 255, 255, 0.085) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}
html.dark .inv-calc-express-pill.is-active {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #09090b !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2) !important;
}

html:not(.dark) .inv-calc-express-pill,
html:not(.dark) .inv-calc-mini-reset {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  color: #334155 !important;
}
html:not(.dark) .inv-calc-express-pill:hover,
html:not(.dark) .inv-calc-mini-reset:hover {
  background: rgba(15, 23, 42, 0.075) !important;
  color: #0f172a !important;
}
html:not(.dark) .inv-calc-express-pill.is-active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18) !important;
}

/* 2. 3-Column iOS Control Center Tiles (Single Sleek Row!) */
.inv-calc-tiles-grid {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 640px) {
  .inv-calc-tiles-grid {
    gap: 8px !important;
  }
}

.inv-calc-tile {
  position: relative !important;
  overflow: hidden !important;
  padding: 14px 13px !important;
  border-radius: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 10px !important;
  text-align: start !important;
  cursor: pointer !important;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

@media (max-width: 640px) {
  .inv-calc-tile {
    padding: 12px 10px !important;
    border-radius: 18px !important;
    gap: 8px !important;
  }
}

.inv-calc-tile:active {
  transform: scale(0.96) !important;
}

.inv-calc-tile.is-selected::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 60% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent) !important;
  pointer-events: none !important;
  animation: invTileShimmer 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

html.dark .inv-calc-tile {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html.dark .inv-calc-tile:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-2px) !important;
}
html.dark .inv-calc-tile.is-selected {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
}

html:not(.dark) .inv-calc-tile {
  background: rgba(15, 23, 42, 0.025) !important;
  border: 1px solid rgba(15, 23, 42, 0.075) !important;
}
html:not(.dark) .inv-calc-tile:hover {
  background: rgba(15, 23, 42, 0.045) !important;
  transform: translateY(-2px) !important;
}
html:not(.dark) .inv-calc-tile.is-selected {
  background: #ffffff !important;
  border: 1.5px solid #0f172a !important;
  box-shadow: 0 12px 26px -10px rgba(15, 23, 42, 0.14) !important;
  transform: translateY(-2px) !important;
}

.inv-calc-tile-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100% !important;
}

.inv-calc-tile-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
html.dark .inv-calc-tile-icon {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
}
html.dark .inv-calc-tile.is-selected .inv-calc-tile-icon {
  background: #ffffff !important;
  color: #09090b !important;
  transform: scale(1.06) !important;
}
html:not(.dark) .inv-calc-tile-icon {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #334155 !important;
}
html:not(.dark) .inv-calc-tile.is-selected .inv-calc-tile-icon {
  background: #0f172a !important;
  color: #ffffff !important;
  transform: scale(1.06) !important;
}

.inv-calc-tile-check {
  width: 22px !important;
  height: 22px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
html.dark .inv-calc-tile-check {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #64748b !important;
}
html.dark .inv-calc-tile.is-selected .inv-calc-tile-check {
  background: #ffffff !important;
  color: #09090b !important;
  transform: scale(1.1) !important;
}
html:not(.dark) .inv-calc-tile-check {
  background: rgba(15, 23, 42, 0.05) !important;
  color: #64748b !important;
}
html:not(.dark) .inv-calc-tile.is-selected .inv-calc-tile-check {
  background: #0f172a !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

.inv-calc-tile-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.inv-calc-tile-title {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
@media (max-width: 640px) {
  .inv-calc-tile-title {
    font-size: 0.76rem !important;
  }
}
html.dark .inv-calc-tile-title {
  color: #f8fafc !important;
}
html:not(.dark) .inv-calc-tile-title {
  color: #0f172a !important;
}

.inv-calc-tile-sub {
  font-size: 0.68rem !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html.dark .inv-calc-tile-sub {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-calc-tile-sub {
  color: #64748b !important;
}

.inv-calc-tile-price {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
}
html.dark .inv-calc-tile-price {
  color: #e2e8f0 !important;
}
html.dark .inv-calc-tile.is-selected .inv-calc-tile-price {
  color: #ffffff !important;
}
html:not(.dark) .inv-calc-tile-price {
  color: #0f172a !important;
}

/* 3. Compact Animated Liquid-Track Sliders */
.inv-calc-sliders-grid {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 640px) {
  .inv-calc-sliders-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

.inv-calc-slider-box {
  padding: 13px 15px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
  transition: all 0.25s ease !important;
}
html.dark .inv-calc-slider-box {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html.dark .inv-calc-slider-box.is-active {
  border-color: rgba(255, 255, 255, 0.16) !important;
}
html:not(.dark) .inv-calc-slider-box {
  background: rgba(15, 23, 42, 0.025) !important;
  border: 1px solid rgba(15, 23, 42, 0.075) !important;
}

.inv-calc-slider-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.inv-calc-slider-label-group {
  display: flex !important;
  align-items: baseline !important;
  gap: 7px !important;
}

.inv-calc-slider-title {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
html.dark .inv-calc-slider-title {
  color: #f8fafc !important;
}
html:not(.dark) .inv-calc-slider-title {
  color: #0f172a !important;
}

.inv-calc-slider-rate {
  font-size: 0.7rem !important;
  font-weight: 500 !important;
}
html.dark .inv-calc-slider-rate {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-calc-slider-rate {
  color: #64748b !important;
}

.inv-calc-compact-stepper {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px !important;
  border-radius: 10px !important;
}
html.dark .inv-calc-compact-stepper {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
}
html:not(.dark) .inv-calc-compact-stepper {
  background: rgba(15, 23, 42, 0.045) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.inv-calc-cstep-btn {
  width: 26px !important;
  height: 26px !important;
  border-radius: 7px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}
.inv-calc-cstep-btn:active:not(:disabled) {
  transform: scale(0.9) !important;
}
.inv-calc-cstep-btn:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}
html.dark .inv-calc-cstep-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
html.dark .inv-calc-cstep-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18) !important;
}
html:not(.dark) .inv-calc-cstep-btn {
  background: #ffffff !important;
  color: #0f172a !important;
}

.inv-calc-cstep-count {
  min-width: 26px !important;
  text-align: center !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
}
html.dark .inv-calc-cstep-count {
  color: #ffffff !important;
}
html:not(.dark) .inv-calc-cstep-count {
  color: #0f172a !important;
}

.inv-calc-slider-track-wrap {
  position: relative !important;
  width: 100% !important;
  height: 8px !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
}
html.dark .inv-calc-slider-track-wrap {
  background: rgba(255, 255, 255, 0.09) !important;
}
html:not(.dark) .inv-calc-slider-track-wrap {
  background: rgba(15, 23, 42, 0.1) !important;
}

.inv-calc-slider-fill {
  position: absolute !important;
  inset-block: 0 !important;
  inset-inline-start: 0 !important;
  width: var(--pct, 0%) !important;
  border-radius: 9999px !important;
  pointer-events: none !important;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html.dark .inv-calc-slider-fill {
  background: linear-gradient(90deg, #94a3b8 0%, #ffffff 100%) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3) !important;
}
html:not(.dark) .inv-calc-slider-fill {
  background: #0f172a !important;
}

.inv-calc-liquid-range {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 18px !important;
  margin: 0 !important;
  background: transparent !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
}
.inv-calc-liquid-range::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.inv-calc-liquid-range::-webkit-slider-thumb:hover,
.inv-calc-liquid-range:active::-webkit-slider-thumb {
  transform: scale(1.22) !important;
}

/* 4. Bottom Dock: Animated Scope Chips & WhatsApp Action */
.inv-calc-console-dock {
  position: relative !important;
  z-index: 1 !important;
  padding-top: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
html.dark .inv-calc-console-dock {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html:not(.dark) .inv-calc-console-dock {
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.inv-calc-active-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 28px !important;
}

.inv-calc-empty-hint {
  font-size: 0.78rem !important;
}
html.dark .inv-calc-empty-hint {
  color: #64748b !important;
}
html:not(.dark) .inv-calc-empty-hint {
  color: #64748b !important;
}

.inv-calc-scope-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 11px !important;
  border-radius: 9999px !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  animation: invChipPop 0.26s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
html.dark .inv-calc-scope-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}
html.dark .inv-calc-scope-chip strong {
  font-family: 'Outfit', sans-serif !important;
  color: #ffffff !important;
}
html:not(.dark) .inv-calc-scope-chip {
  background: rgba(15, 23, 42, 0.05) !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  color: #334155 !important;
}
html:not(.dark) .inv-calc-scope-chip strong {
  font-family: 'Outfit', sans-serif !important;
  color: #0f172a !important;
}

.inv-calc-dock-cta {
  width: 100% !important;
  padding: 14px 20px !important;
  border-radius: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .inv-calc-dock-cta {
  background: #ffffff !important;
  color: #09090b !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 12px 30px -6px rgba(255, 255, 255, 0.24) !important;
}
html.dark .inv-calc-dock-cta:hover:not(.is-disabled) {
  transform: translateY(-2px) !important;
  background: #f1f5f9 !important;
  box-shadow: 0 16px 36px -6px rgba(255, 255, 255, 0.34) !important;
}

html:not(.dark) .inv-calc-dock-cta {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.22) !important;
}
html:not(.dark) .inv-calc-dock-cta:hover:not(.is-disabled) {
  transform: translateY(-2px) !important;
  background: #1e293b !important;
}

.inv-calc-dock-cta.is-disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.inv-calc-cta-arrow {
  transition: transform 0.25s ease !important;
}
.inv-calc-dock-cta:hover .inv-calc-cta-arrow {
  transform: translateX(-4px) !important;
}
html[dir="ltr"] .inv-calc-dock-cta:hover .inv-calc-cta-arrow {
  transform: translateX(4px) !important;
}


/* ==========================================================================
   Direct Contact Hub (#contact) - 3-Channel Apple Liquid Glass Console
   ========================================================================== */
.inv-contact-console {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 30px !important;
  padding: 36px 28px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 26px !important;
  backdrop-filter: blur(44px) saturate(195%) !important;
  -webkit-backdrop-filter: blur(44px) saturate(195%) !important;
}

@media (max-width: 640px) {
  .inv-contact-console {
    padding: 26px 16px 20px !important;
    border-radius: 26px !important;
    gap: 20px !important;
  }
}

html.dark .inv-contact-console {
  background: linear-gradient(160deg, rgba(22, 22, 32, 0.8) 0%, rgba(10, 10, 16, 0.68) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 28px 64px -16px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html:not(.dark) .inv-contact-console {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.86) 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow:
    0 24px 56px -16px rgba(15, 23, 42, 0.08),
    inset 0 1px 1px #ffffff !important;
}

.inv-contact-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  max-width: 540px !important;
}

.inv-contact-title {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: clamp(1.55rem, 1.15rem + 1.8vw, 2.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  margin: 0 0 10px 0 !important;
}
html.dark .inv-contact-title {
  color: #ffffff !important;
}
html:not(.dark) .inv-contact-title {
  color: #0f172a !important;
}

.inv-contact-subtitle {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: clamp(0.88rem, 0.82rem + 0.3vw, 0.98rem) !important;
  line-height: 1.72 !important;
  margin: 0 !important;
  text-wrap: balance !important;
}
html.dark .inv-contact-subtitle {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-contact-subtitle {
  color: #475569 !important;
}

.inv-contact-channels-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

@media (max-width: 768px) {
  .inv-contact-channels-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

.inv-contact-channel-card {
  padding: 15px 16px !important;
  border-radius: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  text-decoration: none !important;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

html.dark .inv-contact-channel-card {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
}
html.dark .inv-contact-channel-card:hover {
  transform: translateY(-3px) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  border-top-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.75) !important;
}

html:not(.dark) .inv-contact-channel-card {
  background: rgba(15, 23, 42, 0.025) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}
html:not(.dark) .inv-contact-channel-card:hover {
  transform: translateY(-3px) !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.1) !important;
}

.inv-contact-channel-main {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.inv-contact-channel-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html.dark .inv-contact-channel-icon {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}
html.dark .inv-contact-channel-card:hover .inv-contact-channel-icon {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #09090b !important;
  transform: scale(1.06) !important;
}
html:not(.dark) .inv-contact-channel-icon {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}
html:not(.dark) .inv-contact-channel-card:hover .inv-contact-channel-icon {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  transform: scale(1.06) !important;
}

.inv-contact-channel-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  text-align: start !important;
  min-width: 0 !important;
}

.inv-contact-channel-title {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
html.dark .inv-contact-channel-title {
  color: #ffffff !important;
}
html:not(.dark) .inv-contact-channel-title {
  color: #0f172a !important;
}

.inv-contact-channel-meta {
  font-family: 'Outfit', monospace !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  animation: invChipPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html.dark .inv-contact-channel-meta {
  color: #e2e8f0 !important;
}
html:not(.dark) .inv-contact-channel-meta {
  color: #0f172a !important;
}

.inv-contact-channel-hint {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html.dark .inv-contact-channel-hint {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-contact-channel-hint {
  color: #64748b !important;
}

.inv-contact-channel-arrow {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.85rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html.dark .inv-contact-channel-arrow {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}
html.dark .inv-contact-channel-card:hover .inv-contact-channel-arrow {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #09090b !important;
  transform: translateX(-3px) !important;
}
html:not(.dark) .inv-contact-channel-arrow {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}
html:not(.dark) .inv-contact-channel-card:hover .inv-contact-channel-arrow {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  transform: translateX(-3px) !important;
}
html[dir="ltr"] .inv-contact-channel-card:hover .inv-contact-channel-arrow {
  transform: translateX(3px) !important;
}


/* ==========================================================================
   Editorial Studio Footer (Xp) - Clean, Monochrome, Address-Free
   ========================================================================== */
.inv-editorial-footer {
  position: relative !important;
  padding: 44px 0 96px !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  transition: background 0.3s ease, border-color 0.3s ease !important;
}

@media (max-width: 640px) {
  .inv-editorial-footer {
    padding: 34px 0 92px !important;
  }
}

html.dark .inv-editorial-footer {
  background: rgba(8, 8, 12, 0.72) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html:not(.dark) .inv-editorial-footer {
  background: rgba(255, 255, 255, 0.78) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.inv-footer-main {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
  padding-bottom: 28px !important;
}

@media (max-width: 768px) {
  .inv-footer-main {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 22px !important;
    padding-bottom: 22px !important;
  }
}

.inv-footer-brand {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-width: 360px !important;
}

@media (max-width: 768px) {
  .inv-footer-brand {
    align-items: center !important;
  }
}

.inv-footer-brand-head {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}

.inv-footer-logo-ring {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 50% !important;
  padding: 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
html.dark .inv-footer-logo-ring {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5) !important;
}
html:not(.dark) .inv-footer-logo-ring {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
}

.inv-footer-logo-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.inv-footer-brand-titles {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  text-align: start !important;
}

.inv-footer-brand-name {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
html.dark .inv-footer-brand-name {
  color: #ffffff !important;
}
html:not(.dark) .inv-footer-brand-name {
  color: #0f172a !important;
}

.inv-footer-brand-sub {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
}
html.dark .inv-footer-brand-sub {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-footer-brand-sub {
  color: #64748b !important;
}

.inv-footer-desc {
  margin: 0 !important;
  font-size: 0.82rem !important;
  line-height: 1.68 !important;
}
html.dark .inv-footer-desc {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-footer-desc {
  color: #475569 !important;
}

.inv-footer-links-area {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 16px !important;
}

@media (max-width: 768px) {
  .inv-footer-links-area {
    align-items: center !important;
    width: 100% !important;
  }
}

.inv-footer-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px 18px !important;
}

.inv-footer-nav-link {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  padding: 4px 2px !important;
  transition: color 0.2s ease !important;
}
html.dark .inv-footer-nav-link {
  color: #94a3b8 !important;
}
html.dark .inv-footer-nav-link:hover {
  color: #ffffff !important;
}
html:not(.dark) .inv-footer-nav-link {
  color: #475569 !important;
}
html:not(.dark) .inv-footer-nav-link:hover {
  color: #0f172a !important;
}

.inv-footer-socials {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.inv-footer-social-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html.dark .inv-footer-social-btn {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}
html.dark .inv-footer-social-btn:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #09090b !important;
  transform: translateY(-2px) !important;
}
html:not(.dark) .inv-footer-social-btn {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}
html:not(.dark) .inv-footer-social-btn:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.inv-footer-bottom {
  padding-top: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
html.dark .inv-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
html:not(.dark) .inv-footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.inv-footer-copy {
  margin: 0 !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
}
html.dark .inv-footer-copy {
  color: #64748b !important;
}
html:not(.dark) .inv-footer-copy {
  color: #64748b !important;
}



/* ==========================================================================
   PURE MONOCHROME BLACK & WHITE LUXURY GLASS ARCHITECTURE (v4.25)
   Inspired by Linear, Raycast, Vercel & Apple Pro Design Systems:
   1. Clean, uncluttered monochrome studio stage (zero noisy rings/beams/orbs).
   2. Dark Mode: Deep Smoked-Onyx Glass (#0a0a0d at 80% density) with a
      whisper-soft top sheen and razor-sharp 1px white specular top rim —
      never milky or washed-out gray.
   3. Light Mode: Pure Alabaster & Frosted Pearl Glass (#ffffff over #f4f4f6)
      with crisp #09090b obsidian contrast and subtle architectural shadows.
   ========================================================================== */

:root {
  color-scheme: light dark;
}

/* 1. Root & Section Transparency + Native Color-Scheme Adaptation */
body,
#root > div.min-h-screen,
main {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
  background-color: transparent !important;
}

html.dark {
  color-scheme: dark !important;
  background-color: #050507 !important;
  accent-color: #ffffff !important;
  scrollbar-color: #3f3f46 #09090b !important;
}

html:not(.dark) {
  color-scheme: light !important;
  background-color: #f4f4f6 !important;
  accent-color: #09090b !important;
  scrollbar-color: #a1a1aa #f4f4f6 !important;
}

.inv-hero-section,
#services,
#portfolio,
#calculator,
#contact {
  position: relative !important;
  background: transparent !important;
  background-color: transparent !important;
  overflow: hidden !important;
}

/* Disable legacy body::before / body::after */
body::before,
body::after {
  display: none !important;
}

/* ==========================================================================
   2. CLEAN MONOCHROME ARCHITECTURAL STUDIO STAGE (.inv-optical-glass-stage)
   Zero cluttered rings, zero diagonal stripes, zero floating spheres.
   Pure obsidian/alabaster canvas + overhead architectural spotlight + fine grid.
   ========================================================================== */
.inv-optical-glass-stage {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

html.dark .inv-optical-glass-stage {
  background:
    radial-gradient(ellipse 75% 42% at 50% -4%, rgba(255, 255, 255, 0.068) 0%, rgba(255, 255, 255, 0.016) 52%, transparent 80%),
    linear-gradient(180deg, #070709 0%, #050507 50%, #040406 100%) !important;
}

html:not(.dark) .inv-optical-glass-stage {
  background:
    radial-gradient(ellipse 75% 45% at 50% -5%, #ffffff 0%, rgba(255, 255, 255, 0.6) 50%, transparent 80%),
    linear-gradient(180deg, #f6f6f8 0%, #eeeeF1 50%, #f4f4f6 100%) !important;
}

/* 2A. Soft Overhead Studio Spotlight (.inv-stage-spotlight) */
.inv-stage-spotlight {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
}

html.dark .inv-stage-spotlight {
  background:
    radial-gradient(circle 520px at 50% 26%, rgba(255, 255, 255, 0.035) 0%, transparent 70%) !important;
}

html:not(.dark) .inv-stage-spotlight {
  background:
    radial-gradient(circle 560px at 50% 26%, rgba(255, 255, 255, 0.85) 0%, transparent 70%) !important;
}

/* 2B. Ultra-Fine Monochrome Architectural Grid (.inv-stage-grid) */
.inv-stage-grid {
  position: absolute !important;
  inset: 0 !important;
  background-size: 48px 48px !important;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, rgba(0, 0, 0, 0.35) 65%, transparent 100%) !important;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, rgba(0, 0, 0, 0.35) 65%, transparent 100%) !important;
}

html.dark .inv-stage-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.026) 1px, transparent 1px) !important;
}

html:not(.dark) .inv-stage-grid {
  background-image:
    linear-gradient(to right, rgba(9, 9, 11, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9, 9, 11, 0.032) 1px, transparent 1px) !important;
}

/* 2C. Soft Diffused Section Backlights (No Hard Circles or Borders) */
#services::before,
#portfolio::before,
#calculator::before,
#contact::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  width: 640px !important;
  height: 320px !important;
  top: 8% !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  border: none !important;
  box-shadow: none !important;
  filter: blur(60px) !important;
}

html.dark #services::before,
html.dark #portfolio::before,
html.dark #calculator::before,
html.dark #contact::before {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.038) 0%, transparent 72%) !important;
}

html:not(.dark) #services::before,
html:not(.dark) #portfolio::before,
html:not(.dark) #calculator::before,
html:not(.dark) #contact::before {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, transparent 72%) !important;
}

#services > div:not([role="dialog"]),
#portfolio > div:not([role="dialog"]),
#calculator > div:not([role="dialog"]),
#contact > div:not([role="dialog"]) {
  position: relative !important;
  z-index: 1 !important;
}

#services > div[role="dialog"],
#portfolio > div[role="dialog"],
.inv-service-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
}

/* Keep internal card top-glow subtle so it never washes out dark cards */
html.dark .inv-hero-glass-box::before,
html.dark .inv-services-header-card::before {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, transparent 70%) !important;
}

html:not(.dark) .inv-hero-glass-box::before,
html:not(.dark) .inv-services-header-card::before {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 0%, transparent 70%) !important;
}

/* ==========================================================================
   3. PRIMARY MONOCHROME GLASS CARDS (DARK: SMOKED ONYX / LIGHT: FROSTED PEARL)
   ========================================================================== */
html.dark .inv-hero-glass-box,
html.dark .inv-services-header-card,
html.dark .inv-service-bento-card,
html.dark #portfolio-grid > article.glass-card,
html.dark .inv-calc-console,
html.dark .inv-contact-console,
html.dark .inv-ai-welcome-box {
  background:
    /* Subtle top-edge glass sheen (fades out by 30% so card interior stays deep black-onyx) */
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(255, 255, 255, 0.015) 28%,
      rgba(255, 255, 255, 0) 60%
    ),
    /* Deep Smoked-Onyx Glass Core */
    linear-gradient(
      165deg,
      rgba(15, 15, 19, 0.8) 0%,
      rgba(9, 9, 12, 0.86) 55%,
      rgba(12, 12, 16, 0.84) 100%
    ) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 28px 64px -16px rgba(0, 0, 0, 0.92),
    0 6px 20px -4px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
}

/* Interactive Hover State for Primary Glass Cards in Dark Mode */
html.dark .inv-service-bento-card:hover,
html.dark #portfolio-grid > article.glass-card:hover {
  transform: translateY(-4px) !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 32%,
      rgba(255, 255, 255, 0) 65%
    ),
    linear-gradient(
      165deg,
      rgba(18, 18, 23, 0.84) 0%,
      rgba(11, 11, 15, 0.88) 55%,
      rgba(14, 14, 19, 0.86) 100%
    ) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  border-top-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow:
    0 34px 72px -14px rgba(0, 0, 0, 0.95),
    0 0 32px -8px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

/* Primary Glass Cards in Light Mode (Pure Frosted Alabaster & Crisp Obsidian Contrast) */
html:not(.dark) .inv-hero-glass-box,
html:not(.dark) .inv-services-header-card,
html:not(.dark) .inv-service-bento-card,
html:not(.dark) #portfolio-grid > article.glass-card,
html:not(.dark) .inv-calc-console,
html:not(.dark) .inv-contact-console,
html:not(.dark) .inv-ai-welcome-box {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(250, 250, 252, 0.84) 100%
    ) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border: 1px solid rgba(9, 9, 11, 0.085) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow:
    0 24px 52px -14px rgba(9, 9, 11, 0.08),
    0 4px 14px -2px rgba(9, 9, 11, 0.04),
    inset 0 1px 0 0 #ffffff !important;
}

html:not(.dark) .inv-service-bento-card:hover,
html:not(.dark) #portfolio-grid > article.glass-card:hover {
  transform: translateY(-4px) !important;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      rgba(252, 252, 253, 0.92) 100%
    ) !important;
  border-color: rgba(9, 9, 11, 0.14) !important;
  border-top-color: #ffffff !important;
  box-shadow:
    0 30px 60px -12px rgba(9, 9, 11, 0.12),
    0 6px 18px -2px rgba(9, 9, 11, 0.06),
    inset 0 1px 0 0 #ffffff !important;
}

/* ==========================================================================
   4. INNER SUB-CARDS, BENTO PILLARS, CALCULATOR TILES & CONTACT CHANNELS
   ========================================================================== */
html.dark .inv-feature-card,
html.dark .inv-calc-tile,
html.dark .inv-calc-slider-box,
html.dark .inv-contact-channel-card,
html.dark .inv-ai-prompt-card {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.048) 0%,
      rgba(255, 255, 255, 0.01) 38%,
      rgba(255, 255, 255, 0) 100%
    ),
    rgba(10, 10, 13, 0.84) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    0 14px 32px -8px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.14) !important;
}

html.dark .inv-feature-card:hover,
html.dark .inv-feature-card:has(a.card-link:hover),
html.dark .inv-calc-tile:hover:not(.is-selected),
html.dark .inv-contact-channel-card:hover,
html.dark .inv-ai-prompt-card:hover {
  transform: translateY(-3px) !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.075) 0%,
      rgba(255, 255, 255, 0.02) 45%,
      rgba(255, 255, 255, 0) 100%
    ),
    rgba(14, 14, 18, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  border-top-color: rgba(255, 255, 255, 0.36) !important;
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.88),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22) !important;
}

/* Active / Selected Calculator Tile in Dark Mode — High-Contrast White Rim */
html.dark .inv-calc-tile.is-selected {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 255, 255, 0.05) 100%
    ),
    rgba(16, 16, 22, 0.9) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow:
    0 18px 38px -8px rgba(0, 0, 0, 0.88),
    0 0 24px -6px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px) !important;
}

/* Inner Sub-Cards in Light Mode */
html:not(.dark) .inv-feature-card,
html:not(.dark) .inv-calc-tile,
html:not(.dark) .inv-calc-slider-box,
html:not(.dark) .inv-contact-channel-card,
html:not(.dark) .inv-ai-prompt-card {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      rgba(250, 250, 252, 0.9) 100%
    ) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  border: 1px solid rgba(9, 9, 11, 0.08) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow:
    0 12px 26px -8px rgba(9, 9, 11, 0.06),
    0 2px 6px rgba(9, 9, 11, 0.03),
    inset 0 1px 0 0 #ffffff !important;
}

html:not(.dark) .inv-feature-card:hover,
html:not(.dark) .inv-feature-card:has(a.card-link:hover),
html:not(.dark) .inv-calc-tile:hover:not(.is-selected),
html:not(.dark) .inv-contact-channel-card:hover,
html:not(.dark) .inv-ai-prompt-card:hover {
  transform: translateY(-3px) !important;
  background: #ffffff !important;
  border-color: rgba(9, 9, 11, 0.15) !important;
  box-shadow:
    0 18px 36px -10px rgba(9, 9, 11, 0.1),
    0 4px 10px rgba(9, 9, 11, 0.04) !important;
}

/* ==========================================================================
   5. HIGH-CONTRAST BLACK & WHITE BADGES, MICRO-TAGS, BUTTONS & SQUIRCLES
   ========================================================================== */
html.dark .inv-badge-pill,
html.dark .inv-hero-micro-tag,
html.dark .inv-btn-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.015) 100%),
    rgba(9, 9, 12, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.26) !important;
  color: #f4f4f5 !important;
  box-shadow:
    0 6px 18px -4px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

html.dark .inv-badge-pill:hover,
html.dark .inv-hero-micro-tag:hover,
html.dark .inv-btn-secondary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(14, 14, 18, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  border-top-color: rgba(255, 255, 255, 0.42) !important;
  color: #ffffff !important;
}

html:not(.dark) .inv-badge-pill,
html:not(.dark) .inv-hero-micro-tag,
html:not(.dark) .inv-btn-secondary {
  background: #ffffff !important;
  border: 1px solid rgba(9, 9, 11, 0.11) !important;
  color: #09090b !important;
  box-shadow: 0 2px 8px rgba(9, 9, 11, 0.05) !important;
}

html:not(.dark) .inv-badge-pill:hover,
html:not(.dark) .inv-hero-micro-tag:hover,
html:not(.dark) .inv-btn-secondary:hover {
  background: #f4f4f5 !important;
  border-color: rgba(9, 9, 11, 0.22) !important;
  color: #09090b !important;
}

html.dark .inv-service-icon-squircle,
html.dark .inv-feature-icon,
html.dark .inv-contact-channel-icon,
html.dark .inv-calc-tile-icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(9, 9, 12, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  box-shadow:
    0 8px 20px -4px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* Service Card Bottom Action Button — Frosted Monochrome Pill Bar */
.inv-service-explore-btn {
  padding: 9px 11px 9px 18px !important;
  border-radius: 16px !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
[dir="ltr"] .inv-service-explore-btn {
  padding: 9px 18px 9px 11px !important;
}

html.dark .inv-service-explore-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(9, 9, 12, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.26) !important;
  box-shadow:
    0 10px 24px -6px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html.dark .inv-service-bento-card:hover .inv-service-explore-btn {
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 10px 28px -6px rgba(255, 255, 255, 0.25) !important;
}
html.dark .inv-service-bento-card:hover .inv-service-explore-text {
  color: #09090b !important;
}
html.dark .inv-service-bento-card:hover .inv-service-arrow-circle {
  background: #09090b !important;
  border-color: #09090b !important;
  color: #ffffff !important;
}

html:not(.dark) .inv-service-explore-btn {
  background: #f4f4f6 !important;
  border: 1px solid rgba(9, 9, 11, 0.09) !important;
  box-shadow: inset 0 1px 0 #ffffff !important;
}

html:not(.dark) .inv-service-bento-card:hover .inv-service-explore-btn {
  background: #09090b !important;
  border-color: #09090b !important;
}
html:not(.dark) .inv-service-bento-card:hover .inv-service-explore-text {
  color: #ffffff !important;
}
html:not(.dark) .inv-service-bento-card:hover .inv-service-arrow-circle {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #09090b !important;
}

/* Floating Header Capsule & Bottom FAB Pills — Smoked Onyx / Frosted Alabaster Glass */
html.dark header.sticky > .inv-header-capsule,
html.dark .inv-fab-pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.015) 100%),
    rgba(9, 9, 12, 0.84) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 18px 40px -8px rgba(0, 0, 0, 0.88),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18) !important;
}

html:not(.dark) header.sticky > .inv-header-capsule,
html:not(.dark) .inv-fab-pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 248, 250, 0.88) 100%) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border: 1px solid rgba(9, 9, 11, 0.09) !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow:
    0 16px 36px -8px rgba(9, 9, 11, 0.09),
    inset 0 1px 0 0 #ffffff !important;
}

html.dark .inv-fab-pill:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #09090b !important;
  box-shadow: 0 20px 44px -6px rgba(255, 255, 255, 0.28) !important;
}

/* ==========================================================================
   FULL-SCREEN ANIMATED LIQUID GLASS CHAT INTERFACE (AiPage - v4.15)
   Full-Screen View + Fixed Avatar Alignment + Open/Close/Send/Reply Animations
   ========================================================================== */

@keyframes invFullscreenChatIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes invFullscreenChatOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
    filter: blur(6px);
  }
}

@keyframes invUserBubbleSpring {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes invAiBubbleSpring {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.95);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

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

@keyframes invTypingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes invSendArrowLaunch {
  0% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-7px) scale(0.9);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Fullscreen Container (z-index 9999 covers the site's z-index 1000 navbar & FABs) */
.inv-chat-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  backdrop-filter: blur(40px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(190%) !important;
}

html.dark .inv-chat-fullscreen {
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 232, 240, 0.08) 0%, transparent 55%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(6, 6, 10, 0.96) !important;
  background-size: 100% 100%, 44px 44px, 44px 44px, 100% 100% !important;
}

html:not(.dark) .inv-chat-fullscreen {
  background:
    radial-gradient(circle at 50% 0%, rgba(148, 163, 184, 0.16) 0%, transparent 55%),
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    rgba(248, 250, 252, 0.96) !important;
  background-size: 100% 100%, 44px 44px, 44px 44px, 100% 100% !important;
}

.inv-chat-fullscreen.is-opening {
  animation: invFullscreenChatIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.inv-chat-fullscreen.is-closing {
  animation: invFullscreenChatOut 0.26s cubic-bezier(0.4, 0, 1, 1) forwards !important;
  pointer-events: none !important;
}

.inv-chat-shell {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Full-Screen Top Chat Header */
.inv-chat-header {
  width: 100% !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 2 !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

html.dark .inv-chat-header {
  background: rgba(12, 12, 18, 0.78) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html:not(.dark) .inv-chat-header {
  background: rgba(255, 255, 255, 0.82) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.inv-chat-header-inner {
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 14px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.inv-chat-header-identity {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.inv-chat-header-avatar {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 9999px !important;
  padding: 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
html.dark .inv-chat-header-avatar {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}
html:not(.dark) .inv-chat-header-avatar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

.inv-chat-header-avatar-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 9999px !important;
  object-fit: cover !important;
}

.inv-chat-header-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.inv-chat-header-title {
  font-family: 'IBM Plex Sans Arabic', 'Outfit', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}
html.dark .inv-chat-header-title {
  color: #ffffff !important;
}
html:not(.dark) .inv-chat-header-title {
  color: #0f172a !important;
}

.inv-chat-header-sub {
  font-size: 0.74rem !important;
  font-weight: 500 !important;
}
html.dark .inv-chat-header-sub {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-chat-header-sub {
  color: #64748b !important;
}

.inv-chat-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.inv-chat-action-pill,
.inv-chat-close-btn {
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .inv-chat-action-pill,
html.dark .inv-chat-close-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #f8fafc !important;
}
html.dark .inv-chat-action-pill:hover,
html.dark .inv-chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

html:not(.dark) .inv-chat-action-pill,
html:not(.dark) .inv-chat-close-btn {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-top: 1px solid #ffffff !important;
  color: #0f172a !important;
}
html:not(.dark) .inv-chat-action-pill:hover,
html:not(.dark) .inv-chat-close-btn:hover {
  background: rgba(15, 23, 42, 0.09) !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  transform: translateY(-1px) !important;
}

/* Scrollable Chat Stream Body */
.inv-chat-stream {
  flex: 1 !important;
  width: 100% !important;
  overflow-y: auto !important;
  scroll-behavior: smooth !important;
}

.inv-chat-stream-inner {
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 22px 20px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

/* Date Divider Pill */
.inv-chat-date-divider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 4px !important;
}

.inv-chat-date-pill {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  padding: 4px 14px !important;
  border-radius: 9999px !important;
}
html.dark .inv-chat-date-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}
html:not(.dark) .inv-chat-date-pill {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #64748b !important;
}

/* Chat Message Rows (Avatar strictly anchored at top-start of the message bubble!) */
.inv-chat-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
}

.inv-chat-row-ai {
  justify-content: flex-start !important;
}

.inv-chat-row-user {
  justify-content: flex-end !important;
}

.inv-chat-avatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 9999px !important;
  padding: 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}
html.dark .inv-chat-avatar {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
html:not(.dark) .inv-chat-avatar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

.inv-chat-avatar-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 9999px !important;
  object-fit: cover !important;
}

/* Chat Bubbles */
.inv-chat-bubble {
  position: relative !important;
  max-width: min(82%, 580px) !important;
  padding: 14px 18px 11px !important;
  border-radius: 22px !important;
  line-height: 1.72 !important;
  font-size: 0.9rem !important;
}

.inv-chat-bubble-ai {
  border-start-start-radius: 6px !important;
  animation: invAiBubbleSpring 0.42s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
}

html.dark .inv-chat-bubble-ai {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.095) 0%,
    rgba(20, 20, 30, 0.68) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.65) !important;
}

html:not(.dark) .inv-chat-bubble-ai {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-top: 1.5px solid #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.07) !important;
}

.inv-chat-bubble-user {
  border-start-end-radius: 6px !important;
  animation: invUserBubbleSpring 0.36s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

html.dark .inv-chat-bubble-user {
  background: #ffffff !important;
  color: #09090b !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 26px -6px rgba(255, 255, 255, 0.16) !important;
}

html:not(.dark) .inv-chat-bubble-user {
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.22) !important;
}

.inv-chat-text {
  margin: 0 !important;
  white-space: pre-line !important;
  word-break: break-word !important;
}

.inv-chat-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  margin-top: 6px !important;
  opacity: 0.6 !important;
}

.inv-chat-time {
  font-size: 0.66rem !important;
  font-family: 'Outfit', 'IBM Plex Sans Arabic', sans-serif !important;
}

.inv-chat-read-icon {
  width: 13px !important;
  height: 13px !important;
}

/* Inline WhatsApp Action inside AI Reply Bubble */
.inv-chat-wa-inline {
  margin-top: 12px !important;
  padding: 8px 13px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.77rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .inv-chat-wa-inline {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
html.dark .inv-chat-wa-inline:hover {
  background: #ffffff !important;
  color: #09090b !important;
  transform: translateY(-1px) !important;
}

html:not(.dark) .inv-chat-wa-inline {
  background: rgba(15, 23, 42, 0.05) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}
html:not(.dark) .inv-chat-wa-inline:hover {
  background: #0f172a !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Quick-Reply Suggestions Block (Outside .inv-chat-row, aligned with bubble edge) */
.inv-chat-suggestions-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 9px !important;
  padding-inline-start: 46px !important;
  max-width: 640px !important;
}

@media (max-width: 640px) {
  .inv-chat-suggestions-block {
    padding-inline-start: 46px !important;
  }
}

.inv-chat-suggestions-label {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  padding-inline-start: 4px !important;
}
html.dark .inv-chat-suggestions-label {
  color: #94a3b8 !important;
}
html:not(.dark) .inv-chat-suggestions-label {
  color: #64748b !important;
}

.inv-chat-suggestions-list,
.inv-chat-followups {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.inv-chat-suggestion-chip,
.inv-chat-followup-chip {
  padding: 9px 15px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  text-align: start !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  animation: invSuggestionCascade 0.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  animation-delay: calc(0.12s + var(--sug-idx, 0) * 0.06s) !important;
}

html.dark .inv-chat-suggestion-chip,
html.dark .inv-chat-followup-chip {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.26) !important;
  color: #e2e8f0 !important;
}
html.dark .inv-chat-suggestion-chip:hover,
html.dark .inv-chat-followup-chip:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

html:not(.dark) .inv-chat-suggestion-chip,
html:not(.dark) .inv-chat-followup-chip {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(15, 23, 42, 0.11) !important;
  border-top: 1px solid #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}
html:not(.dark) .inv-chat-suggestion-chip:hover,
html:not(.dark) .inv-chat-followup-chip:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.inv-chat-suggestion-arrow {
  font-size: 0.74rem !important;
  opacity: 0.65 !important;
}

/* Animated Typing Indicator Bubble */
.inv-chat-typing-bubble {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 18px !important;
}

.inv-typing-dots {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.inv-typing-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 9999px !important;
  background: currentColor !important;
  animation: invTypingBounce 1.2s infinite ease-in-out !important;
}
.inv-typing-dot:nth-child(2) {
  animation-delay: 0.16s !important;
}
.inv-typing-dot:nth-child(3) {
  animation-delay: 0.32s !important;
}

.inv-typing-label {
  font-size: 0.76rem !important;
  opacity: 0.75 !important;
}

/* Single, Uncluttered Bottom Composer Footer */
.inv-chat-footer {
  width: 100% !important;
  flex-shrink: 0 !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

html.dark .inv-chat-footer {
  background: rgba(12, 12, 18, 0.78) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
}
html:not(.dark) .inv-chat-footer {
  background: rgba(255, 255, 255, 0.82) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.inv-chat-footer-inner {
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 12px 20px 16px !important;
}

.inv-chat-composer {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 6px 6px 16px !important;
  border-radius: 9999px !important;
  transition: all 0.22s ease !important;
}
[dir="rtl"] .inv-chat-composer {
  padding: 6px 18px 6px 6px !important;
}

html.dark .inv-chat-composer {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
}
html.dark .inv-chat-composer:focus-within {
  background: rgba(255, 255, 255, 0.085) !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) !important;
}

html:not(.dark) .inv-chat-composer {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
html:not(.dark) .inv-chat-composer:focus-within {
  border-color: rgba(15, 23, 42, 0.32) !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06) !important;
}

.inv-chat-input {
  flex: 1 !important;
  min-width: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  padding: 6px 0 !important;
}

html.dark .inv-chat-input {
  color: #ffffff !important;
}
html.dark .inv-chat-input::placeholder {
  color: #64748b !important;
}

html:not(.dark) .inv-chat-input {
  color: #0f172a !important;
}
html:not(.dark) .inv-chat-input::placeholder {
  color: #94a3b8 !important;
}

.inv-chat-send-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .inv-chat-send-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.4) !important;
}
html.dark .inv-chat-send-btn.is-ready {
  background: #ffffff !important;
  color: #09090b !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25) !important;
}
html.dark .inv-chat-send-btn.is-ready:hover {
  transform: scale(1.06) !important;
}

html:not(.dark) .inv-chat-send-btn {
  background: rgba(15, 23, 42, 0.08) !important;
  color: rgba(15, 23, 42, 0.35) !important;
}
html:not(.dark) .inv-chat-send-btn.is-ready {
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22) !important;
}
html:not(.dark) .inv-chat-send-btn.is-ready:hover {
  transform: scale(1.06) !important;
}

.inv-chat-send-btn:disabled {
  cursor: default !important;
}

.inv-chat-send-icon {
  width: 18px !important;
  height: 18px !important;
}

.inv-chat-send-btn.is-sending .inv-chat-send-icon {
  animation: invSendArrowLaunch 0.34s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ==========================================================================
   SERVICE CARD 01 - MOTION GRAPHICS REEL STAGE (v4.21)
   ========================================================================== */
.inv-service-motion-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  flex: 1 !important;
  width: 100% !important;
}

.inv-motion-card-title {
  margin-bottom: 0 !important;
}

.inv-motion-reel-stage {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 8.2 !important;
  min-height: 210px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  background: #07070b !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 16px 36px -10px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

html:not(.dark) .inv-motion-reel-stage {
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow:
    0 16px 34px -10px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.inv-motion-reel-stage:hover {
  border-color: rgba(255, 255, 255, 0.32) !important;
  transform: translateY(-2px) !important;
}

.inv-motion-reel-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

/* Top HUD Overlay inside Motion Stage */
.inv-motion-reel-hud-top {
  position: absolute !important;
  top: 10px !important;
  left: 12px !important;
  right: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.inv-motion-scene-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 11px !important;
  border-radius: 9999px !important;
  background: rgba(10, 10, 16, 0.68) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Outfit', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}

.inv-motion-scene-code {
  font-family: 'Outfit', monospace !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.inv-motion-scene-sep {
  opacity: 0.35 !important;
}

.inv-motion-scene-name {
  color: rgba(241, 245, 249, 0.9) !important;
}

.inv-motion-live-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 9px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  font-family: 'Outfit', monospace !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.inv-motion-live-dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8) !important;
}

/* Bottom Interactive 3-Segment Timeline Bar */
.inv-motion-timeline-bar {
  position: absolute !important;
  bottom: 10px !important;
  left: 12px !important;
  right: 12px !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  z-index: 3 !important;
}

.inv-motion-segment-btn {
  background: transparent !important;
  border: none !important;
  padding: 4px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

.inv-motion-segment-track {
  flex: 1 !important;
  height: 3px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  overflow: hidden !important;
  position: relative !important;
}

.inv-motion-segment-fill {
  display: block !important;
  height: 100% !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  transition: width 0.08s linear !important;
}

.inv-motion-segment-label {
  font-family: 'Outfit', monospace !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.inv-motion-segment-btn.is-active .inv-motion-segment-label {
  color: #ffffff !important;
}



