:root[data-sf-theme-mode="dark"] {
  --sf-bg: #07111f;
  --sf-bg-soft: #0b1526;
  --sf-text: #f8fafc;
  --sf-muted: #b8c4d4;
  --sf-line: rgba(148, 163, 184, 0.26);
  --sf-blue: #79a7ff;
  --sf-green: #58e2a0;
  --sf-blue-soft: rgba(96, 165, 250, 0.16);
  --sf-green-soft: rgba(34, 197, 94, 0.14);
  --sf-navy: #f8fafc;
  --sf-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

html[data-sf-theme-mode="dark"] body,
body[data-sf-theme-mode="dark"] {
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.22), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(16, 185, 129, 0.14), transparent 32%),
    linear-gradient(180deg, #07111f 0%, #0b1526 46%, #07111f 100%) !important;
  color: var(--sf-text) !important;
}

html[data-sf-theme-mode="dark"] .sf-site-header,
html[data-sf-theme-mode="dark"] header.sf-site-header {
  border-bottom-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(7, 17, 31, 0.82) !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(18px);
}

html[data-sf-theme-mode="dark"] .sf-logo-frame,
html[data-sf-theme-mode="dark"] .sf-card,
html[data-sf-theme-mode="dark"] .sf-service-card,
html[data-sf-theme-mode="dark"] .sf-solution-card,
html[data-sf-theme-mode="dark"] .sf-team-card,
html[data-sf-theme-mode="dark"] .sf-form-card,
html[data-sf-theme-mode="dark"] .sf-language-switcher summary,
html[data-sf-theme-mode="dark"] .sf-whatsapp-card,
html[data-sf-theme-mode="dark"] .sf-panel,
html[data-sf-theme-mode="dark"] .sf-editor-content,
html[data-sf-theme-mode="dark"] .sf-mobile-panel,
html[data-sf-theme-mode="dark"] .sf-hero-visual,
html[data-sf-theme-mode="dark"] .sf-visual-card,
html[data-sf-theme-mode="dark"] .sf-metric-card,
html[data-sf-theme-mode="dark"] .sf-contact-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(11, 21, 38, 0.78)) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  box-shadow: var(--sf-shadow) !important;
}

html[data-sf-theme-mode="dark"] .sf-hero,
html[data-sf-theme-mode="dark"] .sf-section:not(.dark),
html[data-sf-theme-mode="dark"] main,
html[data-sf-theme-mode="dark"] .site-main {
  background-color: transparent !important;
}

html[data-sf-theme-mode="dark"] .sf-hero-eyebrow,
html[data-sf-theme-mode="dark"] .sf-kicker,
html[data-sf-theme-mode="dark"] .sf-chip,
html[data-sf-theme-mode="dark"] .sf-badge {
  background: rgba(96, 165, 250, 0.13) !important;
  border-color: rgba(125, 175, 255, 0.28) !important;
  color: #d8e7ff !important;
}

html[data-sf-theme-mode="dark"] h1,
html[data-sf-theme-mode="dark"] h2,
html[data-sf-theme-mode="dark"] h3,
html[data-sf-theme-mode="dark"] h4,
html[data-sf-theme-mode="dark"] .sf-site-title,
html[data-sf-theme-mode="dark"] .sf-nav a,
html[data-sf-theme-mode="dark"] .sf-mobile-nav a,
html[data-sf-theme-mode="dark"] .sf-footer a,
html[data-sf-theme-mode="dark"] .sf-language-switcher strong {
  color: #f8fafc !important;
}

html[data-sf-theme-mode="dark"] .sf-muted,
html[data-sf-theme-mode="dark"] p,
html[data-sf-theme-mode="dark"] li,
html[data-sf-theme-mode="dark"] .sf-card p,
html[data-sf-theme-mode="dark"] .sf-service-card p,
html[data-sf-theme-mode="dark"] .sf-solution-card p,
html[data-sf-theme-mode="dark"] .sf-team-card p,
html[data-sf-theme-mode="dark"] .sf-language-label {
  color: var(--sf-muted) !important;
}

html[data-sf-theme-mode="dark"] .sf-button:not(.sf-button-primary):not(.sf-button-header),
html[data-sf-theme-mode="dark"] .sf-button-secondary {
  background: rgba(15, 23, 42, 0.72) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #f8fafc !important;
}

html[data-sf-theme-mode="dark"] input,
html[data-sf-theme-mode="dark"] select,
html[data-sf-theme-mode="dark"] textarea {
  background: rgba(2, 6, 23, 0.56) !important;
  border-color: rgba(148, 163, 184, 0.30) !important;
  color: #f8fafc !important;
}

html[data-sf-theme-mode="dark"] input::placeholder,
html[data-sf-theme-mode="dark"] textarea::placeholder {
  color: rgba(203, 213, 225, 0.72) !important;
}

html[data-sf-theme-mode="dark"] img {
  filter: saturate(1.03) contrast(1.01);
}

.sfdm-toggle {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 58px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  z-index: 50;
}

.sfdm-toggle__track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 58px;
  height: 34px;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.30);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.74)),
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.16), transparent 42%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255,255,255,0.82);
  overflow: hidden;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.sfdm-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #eaf1ff);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255,255,255,0.95);
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), background 220ms ease, box-shadow 220ms ease;
}

.sfdm-toggle__spark {
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: radial-gradient(circle, #facc15 0 36%, transparent 39%);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.45);
  transition: opacity 180ms ease, transform 220ms ease;
}

.sfdm-toggle__icon {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  justify-self: center;
  opacity: .86;
  transition: opacity 180ms ease, transform 220ms ease;
}

.sfdm-toggle__icon--sun {
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.sfdm-toggle__icon--moon {
  border-radius: 50%;
  background: #64748b;
  box-shadow: inset -5px 0 0 #e2e8f0;
}

html[data-sf-theme-mode="dark"] .sfdm-toggle__track {
  border-color: rgba(125, 175, 255, 0.32);
  background:
    radial-gradient(circle at 72% 36%, rgba(96, 165, 250, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.82));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.09);
}

html[data-sf-theme-mode="dark"] .sfdm-toggle__thumb {
  transform: translateX(24px);
  background: linear-gradient(135deg, #1e293b, #020617);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.12);
}

html[data-sf-theme-mode="dark"] .sfdm-toggle__spark {
  opacity: .95;
  transform: scale(.96);
  background: radial-gradient(circle at 64% 44%, #dbeafe 0 25%, transparent 27%);
  box-shadow: -5px 0 0 #020617, 0 0 18px rgba(147, 197, 253, 0.48);
}

html[data-sf-theme-mode="dark"] .sfdm-toggle__icon--sun {
  opacity: .42;
  transform: scale(.86);
}

html[data-sf-theme-mode="dark"] .sfdm-toggle__icon--moon {
  opacity: 1;
  transform: scale(1.05);
  background: #bfdbfe;
  box-shadow: inset -5px 0 0 #1e293b;
}

.sfdm-toggle--mobile {
  margin: 0 0 14px auto;
}

.sfdm-toggle--fixed {
  position: fixed !important;
  top: 22px;
  right: 18px;
  z-index: 99999;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.16));
}

.admin-bar .sfdm-toggle--fixed {
  top: 54px;
}

@media (max-width: 920px) {
  .sfdm-toggle--header {
    width: 54px;
    height: 32px;
  }

  .sfdm-toggle--header .sfdm-toggle__track {
    width: 54px;
    height: 32px;
  }

  .sfdm-toggle--header .sfdm-toggle__thumb {
    width: 24px;
    height: 24px;
  }

  html[data-sf-theme-mode="dark"] .sfdm-toggle--header .sfdm-toggle__thumb {
    transform: translateX(22px);
  }

  .sfdm-toggle--fixed {
    top: 18px;
    right: 72px;
  }

  .admin-bar .sfdm-toggle--fixed {
    top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sfdm-toggle,
  .sfdm-toggle * {
    transition: none !important;
  }
}


/* --- v1.0.2: curated dark surfaces for Solution Firms sections --- */
html[data-sf-theme-mode="dark"] .sf-section.dark {
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.22), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(16, 185, 129, 0.12), transparent 28%),
    linear-gradient(135deg, #07111f, #091525 54%, #0b1728) !important;
}

html[data-sf-theme-mode="dark"] .sf-section.dark::before {
  opacity: .48;
}

html[data-sf-theme-mode="dark"] .sf-card,
html[data-sf-theme-mode="dark"] .sf-solution-card,
html[data-sf-theme-mode="dark"] .sf-form-card,
html[data-sf-theme-mode="dark"] .sf-outcome-card,
html[data-sf-theme-mode="dark"] .sf-process-step,
html[data-sf-theme-mode="dark"] .sf-problem-item,
html[data-sf-theme-mode="dark"] .sf-system-panel,
html[data-sf-theme-mode="dark"] .sf-diagnosis,
html[data-sf-theme-mode="dark"] .sf-team-card,
html[data-sf-theme-mode="dark"] .sf-link-card,
html[data-sf-theme-mode="dark"] .sf-dark-card,
html[data-sf-theme-mode="dark"] .sf-journey-step {
  background: linear-gradient(180deg, rgba(11, 21, 38, 0.94), rgba(7, 17, 31, 0.92)) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24) !important;
}

html[data-sf-theme-mode="dark"] .sf-diagnosis,
html[data-sf-theme-mode="dark"] .sf-system-panel {
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.14), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(16, 185, 129, 0.10), transparent 30%),
    linear-gradient(135deg, rgba(11, 21, 38, 0.98), rgba(7, 17, 31, 0.96)) !important;
}

html[data-sf-theme-mode="dark"] .sf-problem-item span,
html[data-sf-theme-mode="dark"] .sf-outcome-card span,
html[data-sf-theme-mode="dark"] .sf-process-step span,
html[data-sf-theme-mode="dark"] .sf-journey-step span {
  background: rgba(59, 130, 246, 0.16) !important;
  color: #93c5fd !important;
}

html[data-sf-theme-mode="dark"] .sf-problem-item p,
html[data-sf-theme-mode="dark"] .sf-process-step p,
html[data-sf-theme-mode="dark"] .sf-outcome-card p,
html[data-sf-theme-mode="dark"] .sf-card p,
html[data-sf-theme-mode="dark"] .sf-solution-card p,
html[data-sf-theme-mode="dark"] .sf-form-card p,
html[data-sf-theme-mode="dark"] .sf-diagnosis p,
html[data-sf-theme-mode="dark"] .sf-system-panel p,
html[data-sf-theme-mode="dark"] .sf-dark-card p,
html[data-sf-theme-mode="dark"] .sf-team-card p,
html[data-sf-theme-mode="dark"] .sf-link-card p {
  color: #b8c4d4 !important;
}

html[data-sf-theme-mode="dark"] .sf-problem-item strong,
html[data-sf-theme-mode="dark"] .sf-process-step h3,
html[data-sf-theme-mode="dark"] .sf-outcome-card h3,
html[data-sf-theme-mode="dark"] .sf-card h2,
html[data-sf-theme-mode="dark"] .sf-card h3,
html[data-sf-theme-mode="dark"] .sf-solution-card h2,
html[data-sf-theme-mode="dark"] .sf-solution-card h3,
html[data-sf-theme-mode="dark"] .sf-dark-card h3,
html[data-sf-theme-mode="dark"] .sf-team-card h3,
html[data-sf-theme-mode="dark"] .sf-link-card h3,
html[data-sf-theme-mode="dark"] .sf-system-panel h2,
html[data-sf-theme-mode="dark"] .sf-diagnosis h2,
html[data-sf-theme-mode="dark"] .sf-diagnosis .sf-eyebrow,
html[data-sf-theme-mode="dark"] .sf-section-intro h2,
html[data-sf-theme-mode="dark"] .sf-split h2,
html[data-sf-theme-mode="dark"] .sf-dark-intro h2,
html[data-sf-theme-mode="dark"] .sf-page-hero h1,
html[data-sf-theme-mode="dark"] .sf-page-hero p,
html[data-sf-theme-mode="dark"] .sf-page-hero .sf-eyebrow {
  color: #f8fafc !important;
}

html[data-sf-theme-mode="dark"] .sf-diagnosis .sf-eyebrow,
html[data-sf-theme-mode="dark"] .sf-section-intro .sf-eyebrow,
html[data-sf-theme-mode="dark"] .sf-dark-intro .sf-eyebrow,
html[data-sf-theme-mode="dark"] .sf-page-hero .sf-eyebrow {
  color: #7fb1ff !important;
}

html[data-sf-theme-mode="dark"] .sf-process-line::before {
  background: linear-gradient(90deg, rgba(96,165,250,.75), rgba(52,211,153,.65)) !important;
}

html[data-sf-theme-mode="dark"] .sf-whatsapp-card,
html[data-sf-theme-mode="dark"] .sf-language-switcher summary,
html[data-sf-theme-mode="dark"] .sf-logo-frame,
html[data-sf-theme-mode="dark"] .sf-mobile-panel,
html[data-sf-theme-mode="dark"] .sf-contact-card,
html[data-sf-theme-mode="dark"] .sf-editor-content,
html[data-sf-theme-mode="dark"] .sf-panel,
html[data-sf-theme-mode="dark"] .sf-hero-visual,
html[data-sf-theme-mode="dark"] .sf-visual-card,
html[data-sf-theme-mode="dark"] .sf-metric-card {
  background: linear-gradient(180deg, rgba(11, 21, 38, 0.94), rgba(7, 17, 31, 0.92)) !important;
}

html[data-sf-theme-mode="dark"] .sf-site-footer,
html[data-sf-theme-mode="dark"] footer.sf-site-footer {
  background: linear-gradient(180deg, #06101d 0%, #040b16 100%) !important;
}

html[data-sf-theme-mode="dark"] .sf-site-footer p,
html[data-sf-theme-mode="dark"] .sf-site-footer li,
html[data-sf-theme-mode="dark"] .sf-site-footer .sf-footer-email,
html[data-sf-theme-mode="dark"] .sf-site-footer .sf-footer-bottom {
  color: #b8c4d4 !important;
}

html[data-sf-theme-mode="dark"] .sf-button-header,
html[data-sf-theme-mode="dark"] .sf-button-primary {
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.28) !important;
}

html[data-sf-theme-mode="dark"] .sf-button-secondary,
html[data-sf-theme-mode="dark"] .sf-text-link,
html[data-sf-theme-mode="dark"] .sf-link-card {
  color: #e5eefc !important;
}

html[data-sf-theme-mode="dark"] .sf-link-card,
html[data-sf-theme-mode="dark"] .sf-button-secondary {
  background: rgba(11, 21, 38, 0.84) !important;
}


/* --- v1.0.5: strong dark header/menu/dropdown fix --- */
html[data-sf-theme-mode="dark"] .sf-site-header,
html[data-sf-theme-mode="dark"] header.sf-site-header,
html[data-sf-theme-mode="dark"] .site-header,
html[data-sf-theme-mode="dark"] header {
  background: rgba(7, 17, 31, 0.94) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}

html[data-sf-theme-mode="dark"] .sf-nav,
html[data-sf-theme-mode="dark"] .sf-desktop-nav,
html[data-sf-theme-mode="dark"] .main-navigation,
html[data-sf-theme-mode="dark"] nav[class*="nav"] {
  color: #f8fafc !important;
}

html[data-sf-theme-mode="dark"] .sf-nav a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav a,
html[data-sf-theme-mode="dark"] .main-navigation a,
html[data-sf-theme-mode="dark"] nav[class*="nav"] a {
  color: #f8fafc !important;
  text-shadow: none !important;
}

html[data-sf-theme-mode="dark"] .sf-nav > ul > li > a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav > ul > li > a,
html[data-sf-theme-mode="dark"] .main-navigation > ul > li > a,
html[data-sf-theme-mode="dark"] nav[class*="nav"] > ul > li > a {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: #f8fafc !important;
}

html[data-sf-theme-mode="dark"] .sf-nav > ul > li:hover > a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav > ul > li:hover > a,
html[data-sf-theme-mode="dark"] .main-navigation > ul > li:hover > a,
html[data-sf-theme-mode="dark"] nav[class*="nav"] > ul > li:hover > a,
html[data-sf-theme-mode="dark"] .sf-nav > ul > li.current-menu-item > a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav > ul > li.current-menu-item > a,
html[data-sf-theme-mode="dark"] .main-navigation > ul > li.current-menu-item > a,
html[data-sf-theme-mode="dark"] nav[class*="nav"] > ul > li.current-menu-item > a,
html[data-sf-theme-mode="dark"] .sf-nav > ul > li.current_page_item > a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav > ul > li.current_page_item > a,
html[data-sf-theme-mode="dark"] a[aria-current="page"] {
  background: rgba(96, 165, 250, 0.16) !important;
  border-color: rgba(147, 197, 253, 0.24) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(37, 99, 235, .12) !important;
}

html[data-sf-theme-mode="dark"] .sf-nav ul ul,
html[data-sf-theme-mode="dark"] .sf-desktop-nav ul ul,
html[data-sf-theme-mode="dark"] .main-navigation ul ul,
html[data-sf-theme-mode="dark"] nav[class*="nav"] ul ul,
html[data-sf-theme-mode="dark"] .sf-nav .sub-menu,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sub-menu,
html[data-sf-theme-mode="dark"] .main-navigation .sub-menu,
html[data-sf-theme-mode="dark"] .sub-menu,
html[data-sf-theme-mode="dark"] .children,
html[data-sf-theme-mode="dark"] .dropdown-menu,
html[data-sf-theme-mode="dark"] [class*="dropdown"] {
  background: rgba(7, 17, 31, 0.98) !important;
  background-color: rgba(7, 17, 31, 0.98) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  opacity: 1 !important;
}

html[data-sf-theme-mode="dark"] .sf-nav ul ul li,
html[data-sf-theme-mode="dark"] .sf-desktop-nav ul ul li,
html[data-sf-theme-mode="dark"] .main-navigation ul ul li,
html[data-sf-theme-mode="dark"] .sub-menu li,
html[data-sf-theme-mode="dark"] .children li,
html[data-sf-theme-mode="dark"] .dropdown-menu li {
  background: transparent !important;
  color: #f8fafc !important;
}

html[data-sf-theme-mode="dark"] .sf-nav ul ul a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav ul ul a,
html[data-sf-theme-mode="dark"] .main-navigation ul ul a,
html[data-sf-theme-mode="dark"] nav[class*="nav"] ul ul a,
html[data-sf-theme-mode="dark"] .sf-nav .sub-menu a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sub-menu a,
html[data-sf-theme-mode="dark"] .main-navigation .sub-menu a,
html[data-sf-theme-mode="dark"] .sub-menu a,
html[data-sf-theme-mode="dark"] .children a,
html[data-sf-theme-mode="dark"] .dropdown-menu a,
html[data-sf-theme-mode="dark"] [class*="dropdown"] a {
  display: block !important;
  color: #e5eefc !important;
  background: transparent !important;
  border-radius: 12px !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

html[data-sf-theme-mode="dark"] .sf-nav ul ul a:hover,
html[data-sf-theme-mode="dark"] .sf-desktop-nav ul ul a:hover,
html[data-sf-theme-mode="dark"] .main-navigation ul ul a:hover,
html[data-sf-theme-mode="dark"] .sub-menu a:hover,
html[data-sf-theme-mode="dark"] .children a:hover,
html[data-sf-theme-mode="dark"] .dropdown-menu a:hover,
html[data-sf-theme-mode="dark"] [class*="dropdown"] a:hover {
  background: rgba(96, 165, 250, 0.16) !important;
  color: #ffffff !important;
}

html[data-sf-theme-mode="dark"] .sf-nav .sub-menu *,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sub-menu *,
html[data-sf-theme-mode="dark"] .main-navigation .sub-menu *,
html[data-sf-theme-mode="dark"] .sub-menu *,
html[data-sf-theme-mode="dark"] .children *,
html[data-sf-theme-mode="dark"] .dropdown-menu *,
html[data-sf-theme-mode="dark"] [class*="dropdown"] * {
  color: #e5eefc !important;
  opacity: 1 !important;
}

html[data-sf-theme-mode="dark"] .sf-language-switcher summary,
html[data-sf-theme-mode="dark"] .sf-language-switcher details,
html[data-sf-theme-mode="dark"] .sf-language-switcher ul,
html[data-sf-theme-mode="dark"] .sf-language-switcher [role="listbox"],
html[data-sf-theme-mode="dark"] .sf-language-switcher [class*="dropdown"] {
  background: rgba(7, 17, 31, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #f8fafc !important;
}

html[data-sf-theme-mode="dark"] .sf-language-switcher a,
html[data-sf-theme-mode="dark"] .sf-language-switcher button,
html[data-sf-theme-mode="dark"] .sf-language-switcher strong,
html[data-sf-theme-mode="dark"] .sf-language-switcher span {
  color: #f8fafc !important;
}


/* --- v1.0.6: final isolated desktop dropdown correction --- */
html[data-sf-theme-mode="dark"] .sf-site-header,
html[data-sf-theme-mode="dark"] .sf-site-header *,
html[data-sf-theme-mode="dark"] .sf-header-inner,
html[data-sf-theme-mode="dark"] .sf-desktop-nav,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li {
  overflow: visible !important;
}

html[data-sf-theme-mode="dark"] .sf-site-header {
  z-index: 9990 !important;
}

html[data-sf-theme-mode="dark"] .sf-header-inner {
  position: relative !important;
  z-index: 9991 !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav {
  position: relative !important;
  z-index: 9992 !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li > a {
  position: relative !important;
  z-index: 2 !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #f8fafc !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.current-menu-item:not(:hover):not(:focus-within) > a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.current_page_item:not(:hover):not(:focus-within) > a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.current-menu-ancestor:not(:hover):not(:focus-within) > a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.current_page_ancestor:not(:hover):not(:focus-within) > a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li:not(:hover):not(:focus-within) > a[aria-current="page"] {
  background: transparent !important;
  border-color: transparent !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li:hover > a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li:focus-within > a {
  background: rgba(96, 165, 250, 0.15) !important;
  border-color: rgba(147, 197, 253, 0.28) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(37, 99, 235, .12) !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.has-dropdown > .sf-dropdown,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.menu-item-has-children > .sub-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: max-content !important;
  min-width: 250px !important;
  max-width: 340px !important;
  margin: 0 !important;
  padding: 10px !important;
  list-style: none !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.985), rgba(5, 13, 24, 0.985)) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  transform: translate(-50%, 8px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  overflow: visible !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.has-dropdown:hover > .sf-dropdown,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.has-dropdown:focus-within > .sf-dropdown,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.menu-item-has-children:hover > .sub-menu,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.menu-item-has-children:focus-within > .sub-menu {
  transform: translate(-50%, 0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.has-dropdown > .sf-dropdown::before,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.menu-item-has-children > .sub-menu::before {
  content: "" !important;
  position: absolute !important;
  top: -10px !important;
  left: 0 !important;
  right: 0 !important;
  height: 10px !important;
  background: transparent !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.has-dropdown > .sf-dropdown > li,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.menu-item-has-children > .sub-menu > li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  color: #e5eefc !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.has-dropdown > .sf-dropdown > li > a,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.menu-item-has-children > .sub-menu > li > a {
  display: block !important;
  width: 100% !important;
  min-height: auto !important;
  padding: 11px 13px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #e5eefc !important;
  font-size: .92rem !important;
  font-weight: 760 !important;
  line-height: 1.28 !important;
  white-space: normal !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.has-dropdown > .sf-dropdown > li > a:hover,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.has-dropdown > .sf-dropdown > li > a:focus-visible,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.menu-item-has-children > .sub-menu > li > a:hover,
html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.menu-item-has-children > .sub-menu > li > a:focus-visible {
  background: rgba(96, 165, 250, 0.16) !important;
  color: #ffffff !important;
  outline: none !important;
}

@media (max-width: 920px) {
  html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.has-dropdown > .sf-dropdown,
  html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.menu-item-has-children > .sub-menu {
    left: 0 !important;
    transform: translate(0, 8px) !important;
  }

  html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.has-dropdown:hover > .sf-dropdown,
  html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.has-dropdown:focus-within > .sf-dropdown,
  html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.menu-item-has-children:hover > .sub-menu,
  html[data-sf-theme-mode="dark"] .sf-desktop-nav .sf-nav > li.menu-item-has-children:focus-within > .sub-menu {
    transform: translate(0, 0) !important;
  }
}


/* --- v1.0.7: clean premium header nav; remove permanent top-menu pills --- */
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li:hover > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li:focus-within > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.current-menu-item > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.current_page_item > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.current-menu-ancestor > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.current_page_ancestor > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li > a[aria-current="page"] {
  min-height: 40px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: #f8fafc !important;
  text-decoration: none !important;
}

html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li > a::before,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li > a::after {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li:hover > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li:focus-within > a {
  color: #93c5fd !important;
}

html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li:hover > a::after,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li:focus-within > a::after {
  content: "" !important;
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 4px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(96,165,250,.95), rgba(52,211,153,.8)) !important;
  box-shadow: 0 0 14px rgba(96,165,250,.26) !important;
}

html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.has-dropdown > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.menu-item-has-children > a {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.has-dropdown:hover > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.menu-item-has-children:hover > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.has-dropdown:focus-within > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.menu-item-has-children:focus-within > a {
  background: transparent !important;
  border-color: transparent !important;
  color: #93c5fd !important;
}

html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav {
  gap: 12px !important;
}

/* Keep the dropdown panel premium and readable while the top label stays clean. */
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.has-dropdown > .sf-dropdown,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.menu-item-has-children > .sub-menu {
  top: calc(100% + 9px) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.99), rgba(4, 11, 22, 0.99)) !important;
}

html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.has-dropdown > .sf-dropdown > li > a,
html[data-sf-theme-mode="dark"] .sf-site-header .sf-desktop-nav .sf-nav > li.menu-item-has-children > .sub-menu > li > a {
  border-radius: 12px !important;
  color: #e8f1ff !important;
}
