html[data-theme="light"] .lang-switch .dropdown-menu {
  background-color: #ffffff;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .lang-switch .dropdown-menu {
  background-color: #0F172A;
  color: #E5E7EB;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lang-switch .dropdown-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: inherit;
}

.lang-switch .dropdown-item.active,
.lang-switch .dropdown-item:active {
  background-color: rgba(99, 102, 241, 0.12);
  color: inherit;
}

.lang-switch .dropdown-item:hover {
  background-color: rgba(148, 163, 184, 0.15);
}

.lang-switch .dropdown-toggle.theme-toggle {
  width: 46px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-header .menu-btns .lang-switch .dropdown-toggle.theme-toggle {
  margin-left: 0 !important;
}

.main-header .menu-btns .lang-switch {
  margin-left: 0 !important;
}

.main-header .menu-btns {
  gap: 8px;
}

.main-header .menu-btns button,
.main-header .menu-btns .theme-btn {
  margin-left: 0 !important;
}

/* Match CTA height with theme/translate toggles in header */
@media (min-width: 992px) {

  .main-header .menu-btns .theme-btn,
  .main-header .navigation .theme-btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }

  .main-header .menu-btns .theme-btn i,
  .main-header .navigation .theme-btn i {
    margin-left: 8px;
    font-size: 0.9em;
  }
}

.lang-switch .dropdown-menu {
  z-index: 3001;
}

.lang-switch {
  position: relative;
}

.lang-switch .dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 180px;
  max-width: 260px;
  white-space: nowrap;
}

.main-header .header-upper,
.main-header .header-inner,
.main-header .nav-outer {
  overflow: visible;
}

.lang-switch .dropdown-toggle.theme-toggle .lang-abbr {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1f2937;
}

html[data-theme="dark"] {
  --heading-color: #e5e7eb;
  --base-color: #94a3b8;
  --lighter-color: #0f172a;
}

body {
  background-color: var(--bg);
  color: var(--text);
}

body p,
body li,
body span,
body a,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  color: inherit;
}

html[data-theme="dark"] .bgc-lighter {
  background-color: var(--surface) !important;
}

html[data-theme="dark"] .bgc-black {
  background-color: #070b16;
}

html[data-theme="dark"] .bgc-white {
  background-color: var(--bg);
}

html[data-theme="dark"] .icon-list li {
  color: var(--text);
}

html[data-theme="dark"] .footer-seven {
  border-top-color: var(--border);
}

html[data-theme="dark"] .home-five {
  --lighter-color: #0f172a;
}

html[data-theme="dark"] .hero-bg-wave-shapes {
  background: var(--lighter-color) !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .pricing-item,
html[data-theme="dark"] .iconic-box,
html[data-theme="dark"] .numbered-box,
html[data-theme="dark"] .accordion-item {
  border-color: var(--border) !important;
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.theme-toggle .icon-sun {
  display: inline-block;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: inline-block;
}

.theme-toggle i {
  font-size: 18px;
}

html[data-theme="light"] .theme-toggle {
  background: #eef2f7;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .theme-toggle:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .main-header .menu-btns {
    padding-right: 16px;
  }
}

html[data-theme="dark"] .theme-btn {
  filter: brightness(1.05) saturate(0.95);
}

/* Utility: 50% gap vs gap-lg-4 (1.5rem -> 0.75rem) for desktop nav */
@media (min-width: 992px) {
  .gap-lg-3-half {
    gap: 0.75rem !important;
  }

  /* 25% smaller than 0.75rem (current), i.e., 0.5625rem ≈ 9px */
  .gap-lg-9px {
    gap: 9px !important;
  }

  /* Match header buttons gap (darkmode ↔ translate) exactly: 8px */
  .gap-lg-8px {
    gap: 8px !important;
  }
}

/* Header CTA: dark mode hover should turn white, matching CTA behavior elsewhere */
html[data-theme="dark"] .main-header .menu-btns .theme-btn:not(.style-seven),
html[data-theme="dark"] .main-header .menu-btns .theme-btn.style-link {
  background-image: none !important;
  background-color: transparent !important;
  color: #ffffff !important;
}

/* Fix for Start Now button (style-seven) to stay green in dark mode */
html[data-theme="dark"] .main-header .menu-btns .theme-btn.style-seven {
  background-color: #08C16A !important;
  border-color: #08C16A !important;
  color: #ffffff !important;
  background-image: none !important;
}

html[data-theme="dark"] .main-header .menu-btns .theme-btn.style-seven:hover {
  background-color: #06a558 !important;
  border-color: #06a558 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .main-header .menu-btns .theme-btn.style-link:hover {
  color: var(--primary-color) !important;
}

/* Form labels in dark mode */
html[data-theme="dark"] .contact-form label,
html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .form-group2 label {
  color: #E5E7EB !important;
}


html[data-theme="dark"] .main-header .menu-btns .theme-btn.style-link,
html[data-theme="dark"] .main-header .navigation .theme-btn.style-link {
  background-image: none !important;
  background-color: transparent !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .main-header .menu-btns .theme-btn:hover,
html[data-theme="dark"] .main-header .menu-btns a.theme-btn:hover,
html[data-theme="dark"] .main-header .navigation .theme-btn:hover,
html[data-theme="dark"] .main-header .navigation a.theme-btn:hover {
  color: var(--lighter-color) !important;
}

html[data-theme="dark"] .main-header .menu-btns .theme-btn.style-link:hover,
html[data-theme="dark"] .main-header .menu-btns a.theme-btn.style-link:hover {
  color: var(--primary-color) !important;
}


.main-header .header-upper {
  background-color: var(--bg);
}

.main-header .navigation>li>a,
.main-header .navigation li a {
  color: var(--text);
}

.navbar-toggle .icon-bar {
  background-color: var(--text);
}

/* Ensure header CTA text is white in light mode, overriding nav link color */
html[data-theme="light"] .main-header .navigation .theme-btn,
html[data-theme="light"] .main-header .navigation a.theme-btn {
  color: #ffffff !important;
}

html[data-theme="light"] .main-header .navigation .theme-btn:hover,
html[data-theme="light"] .main-header .navigation a.theme-btn:hover {
  color: #ffffff !important;
}

html[data-theme="light"] #features .feature-icon-box .content p {
  color: #696969 !important;
}

html[data-theme="light"] #features .management-content>p {
  color: #696969 !important;
}

html[data-theme="light"] .about-area-five .about-content-five>p {
  color: #696969 !important;
}

html[data-theme="light"] .about-area-five .feature-icon-box .content p {
  color: #696969 !important;
}

html[data-theme="light"] #home.hero-area-five .hero-content>p {
  color: #696969 !important;
}

html[data-theme="light"] .main-footer.footer-seven .footer-cta-two .section-title>p {
  color: #696969 !important;
}

html[data-theme="dark"] #home.hero-area-five .hero-content>p {
  color: var(--muted) !important;
}

html[data-theme="dark"] #features .management-content>p,
html[data-theme="dark"] #features .feature-icon-box .content p {
  color: var(--muted) !important;
}

html[data-theme="dark"] .about-area-five .about-content-five>p,
html[data-theme="dark"] .about-area-five .feature-icon-box .content p {
  color: var(--muted) !important;
}

html[data-theme="dark"] .how-to-manage-area .feature-icon-box.style-three {
  background-color: #1f2937;
}

html[data-theme="dark"] .how-to-manage-area .feature-icon-box.style-three:after {
  background-color: #1f2937;
}

html[data-theme="dark"] .how-to-manage-area .feature-icon-box.style-three h5 {
  color: #ffffff;
}

html[data-theme="dark"] .how-to-manage-area .feature-icon-box.style-three p {
  color: var(--muted);
}

html[data-theme="dark"] .main-footer.footer-seven .footer-cta-two .section-title>p {
  color: var(--muted) !important;
}

.main-header .navigation>li>a:hover,
.main-header .navigation li a:hover,
.main-header .navigation>li>a:focus,
.main-header .navigation li a:focus,
.main-header .navigation li.current>a {
  color: var(--primary-color);
}

.main-header.fixed-header .header-upper {
  background-color: var(--bg) !important;
  border-bottom: 1px solid var(--border);
}

.main-header.fixed-header .navigation>li>a,
.main-header.fixed-header .navigation li a {
  color: var(--text);
}

.main-header.fixed-header .navbar-toggle .icon-bar {
  background-color: var(--text);
}

.main-header.fixed-header .navigation>li>a:hover,
.main-header.fixed-header .navigation li a:hover,
.main-header.fixed-header .navigation>li>a:focus,
.main-header.fixed-header .navigation li a:focus,
.main-header.fixed-header .navigation li.current>a {
  color: var(--primary-color);
}

html[data-theme="dark"] .main-header .header-upper {
  background-color: #070b16 !important;
}

html[data-theme="dark"] .main-header.fixed-header .header-upper {
  background-color: #070b16 !important;
}

@media (max-width: 991px) {
  .main-menu .navbar-header {
    margin-right: auto;
  }

  .main-menu .navbar-header .navbar-toggle {
    margin-right: 12px;
  }

  .main-menu .navbar-collapse {
    pointer-events: none;
  }

  .main-menu .navbar-collapse.show {
    pointer-events: auto;
  }

  .main-menu .navbar-header .navbar-toggle {
    float: left !important;
    margin-left: 8px;
    z-index: 1;
  }

  .main-menu .navbar-collapse>ul {
    padding-right: 80px;
  }

  .main-header .menu-btns {
    position: relative;
    z-index: 2002;
  }

  html[data-theme="dark"] .main-menu .navbar-collapse>ul {
    background: var(--lighter-color) !important;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .main-menu .navbar-collapse li {
    border-top-color: var(--border) !important;
  }

  html[data-theme="dark"] .main-menu .navbar-collapse li a,
  html[data-theme="dark"] .main-header .navigation>li>a,
  html[data-theme="dark"] .main-header .navigation li a {
    color: var(--text) !important;
  }
}

html[data-theme="dark"] .home-five .hero-area-five .subtitle-one {
  background: rgba(8, 193, 106, 0.12) !important;
  color: var(--primary-color) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .home-five .hero-area-five .subtitle-one i {
  color: var(--primary-color) !important;
}

.logo img.logo-dark,
.mobile-logo img.logo-dark {
  display: none;
}

html[data-theme="dark"] .logo img.logo-light,
html[data-theme="dark"] .mobile-logo img.logo-light {
  display: none;
}

html[data-theme="dark"] .logo img.logo-dark,
html[data-theme="dark"] .mobile-logo img.logo-dark {
  display: inline;
}

html[data-theme="dark"] .bg-lines span {
  background: rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="dark"] .main-header .bg-lines span {
  background: rgba(255, 255, 255, 0.05) !important;
}

.hero-image-area img {
  border-radius: 0 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

html[data-theme="light"] .main-footer.footer-seven .widget-about p,
html[data-theme="light"] .main-footer.footer-seven .footer-bottom .footer-bottom-menu ul li,
html[data-theme="light"] .main-footer.footer-seven .copyright-text,
html[data-theme="light"] .main-footer.footer-seven .copyright-text p {
  color: rgba(255, 255, 255, 0.45) !important;
}

html[data-theme="dark"] .footer-cta-shape img {
  filter: invert(1) brightness(1.2) contrast(1.1);
  opacity: 0.7;
}

html[data-theme="dark"] .footer-cta-two:after {
  filter: invert(1) brightness(1.1) contrast(1.05);
  opacity: 0.25;
}

html[data-theme="dark"] .pricing-area .pricing-item:not(.text-white) .price,
html[data-theme="dark"] .pricing-area .pricing-item:not(.text-white) .price .prev,
html[data-theme="dark"] .pricing-area .pricing-item:not(.text-white) .price .next,
html[data-theme="dark"] .pricing-area .pricing-item:not(.text-white) .text {
  color: #ffffff !important;
}


html[data-theme="dark"] .pricing-area .pricing-item:not(.text-white) .theme-btn {
  background-image: linear-gradient(to top, var(--primary-color) 50%, #ffffff 50%) !important;
}

html[data-theme="dark"] .pricing-area .pricing-item:not(.text-white) .theme-btn:hover,
html[data-theme="dark"] .pricing-area .pricing-item:not(.text-white) a.theme-btn:hover {
  color: var(--lighter-color) !important;
}

html[data-theme="dark"] .pricing-area .pricing-item:not(.text-white) .circle img {
  filter: invert(1) brightness(1.15) contrast(1.05);
  opacity: 0.85;
}

@media only screen and (max-width: 991px) {
  html[data-theme="dark"] .main-menu .navbar-collapse>ul {
    background-color: var(--surface) !important;
    box-shadow: inset 0px 0px 30px 0px rgba(0, 0, 0, 0.3) !important;
  }
}

html[data-theme="dark"] .main-menu .navbar-collapse li ul {
  background-color: var(--surface) !important;
  border-color: var(--border) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .main-menu .navbar-collapse li.dropdown .dropdown-btn {
  color: var(--text) !important;
}

html[data-theme="dark"] .main-menu .navbar-collapse li ul li a,
html[data-theme="dark"] .main-menu .navbar-collapse li .megamenu li a {
  color: var(--text) !important;
}

html[data-theme="dark"] .main-menu .navbar-collapse li ul li a:hover,
html[data-theme="dark"] .main-menu .navbar-collapse li .megamenu li a:hover {
  color: var(--primary-color) !important;
}

html[data-theme="dark"] .main-menu .navbar-collapse li .megamenu {
  background-color: var(--surface) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .hero-area-six .hero-bg-shapes {
  background: transparent !important;
}

html[data-theme="dark"] .advanced-tab.style-two .nav-link {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .advanced-tab.style-two .nav-link.active {
  color: #ffffff !important;
}

html[data-theme="dark"] .subtitle-one {
  background: rgba(8, 193, 106, 0.12) !important;
  color: var(--primary-color) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .subtitle-one i {
  color: var(--primary-color) !important;
}

/* Fix for Numbered Box in Dark Mode */
html[data-theme="dark"] .numbered-box {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
}

html[data-theme="dark"] .numbered-box.bg-two,
html[data-theme="dark"] .numbered-box.bg-three {
  background-color: #1f2937 !important;
}

html[data-theme="dark"] .numbered-box h4 a {
  color: #ffffff !important;
}

html[data-theme="dark"] .numbered-box p {
  color: #e5e7eb !important;
}

html[data-theme="dark"] .numbered-box .number {
  background-color: #374151 !important;
  color: #ffffff !important;
  border-color: #4b5563 !important;
}

/* Fix for Iconic Box in Dark Mode */
html[data-theme="dark"] .iconic-box {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
}

html[data-theme="dark"] .iconic-box h5 a {
  color: #ffffff !important;
}

html[data-theme="dark"] .iconic-box p {
  color: #e5e7eb !important;
}

html[data-theme="dark"] .iconic-box .icon {
  background-color: #374151 !important;
}

html[data-theme="dark"] .iconic-box .icon i {
  color: #08C16A !important;
}

/* Fix for Iconic Box Style Ten Hover in Dark Mode */
html[data-theme="dark"] .iconic-box.style-ten:hover {
  background-color: #1f2937 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .iconic-box.style-ten:hover .icon {
  background-color: #374151 !important;
  border-color: #374151 !important;
}

html[data-theme="dark"] .iconic-box.style-ten:hover .icon i {
  color: #08C16A !important;
}

html[data-theme="dark"] .iconic-box.style-ten:hover h5 a {
  text-decoration: none !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .iconic-box.style-ten:hover p {
  color: #e5e7eb !important;
}

/* Fix for Work Process Background in Dark Mode */
html[data-theme="dark"] #work-step,
html[data-theme="dark"] .work-process-image-area {
  background-color: #0F172A !important;
}

/* Fix for Pricing Card Style Five in Dark Mode */
html[data-theme="dark"] .pricing-item.style-five {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
}

html[data-theme="dark"] .pricing-item.style-five .title-price .price,
html[data-theme="dark"] .pricing-item.style-five .text,
html[data-theme="dark"] .pricing-item.style-five .footer-text {
  color: #ffffff !important;
}

html[data-theme="dark"] .pricing-item.style-five .icon-list li {
  color: #e5e7eb !important;
}

html[data-theme="dark"] .pricing-item.style-five .icon-list i {
  color: #08C16A !important;
}