.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--bg-primary-soft);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141118;
  --bg-soft: #1c1722;
  --bg-primary-soft: #2c1824;
  --bg-secondary-soft: #241c2c;
  --bg-accent-soft: #2a1822;
  --text: #f6eef4;
  --text-light: #cbbdd0;
  --text-lighter: #a894ae;
  --border: #3d3144;
  --border-light: #2e2636;
  --theme-card-bg: #1c1724;
  --theme-soft-bg: #1c1722;
  --theme-primary-soft-bg: #2c1824;
  --theme-secondary-soft-bg: #241c2c;
  --theme-card-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
  --shadow: 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] .hero-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(232, 67, 147, .22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(168, 85, 247, .16) 0%, transparent 60%),
    linear-gradient(135deg, #1a1220 0%, #140f18 55%, #100c14 100%);
}

html[data-theme="dark"] .hero-badge {
  background: rgba(28, 23, 36, .8);
  color: var(--text);
}

html[data-theme="dark"] #mainNavbar,
html[data-theme="dark"] #mainNavbar.navbar-scrolled {
  background: rgba(20, 17, 24, .94);
  border-bottom-color: rgba(255, 255, 255, .06);
  box-shadow: none;
}

html[data-theme="dark"] .brand-regular,
html[data-theme="dark"] .toggler-bar {
  color: #f6eef4;
  background: #f6eef4;
}

html[data-theme="dark"] .brand-regular {
  background: none;
}

html[data-theme="dark"] .nav-pill {
  color: #f0e6ee !important;
}

html[data-theme="dark"] .nav-pill:hover {
  background: rgba(255, 255, 255, .06);
}

html[data-theme="dark"] .nav-icon,
html[data-theme="dark"] .mobile-nav-icon {
  background: rgba(255, 255, 255, .06);
  color: #cbbdd0;
}

html[data-theme="dark"] .nav-chevron,
html[data-theme="dark"] .mega-header-sub,
html[data-theme="dark"] .mega-item-label {
  color: #cbbdd0;
}

html[data-theme="dark"] .mega-menu-panel,
html[data-theme="dark"] .dropdown-menu {
  background: #1c1724;
  border: 1px solid #3d3144;
}

html[data-theme="dark"] .mega-header {
  border-bottom-color: rgba(255, 255, 255, .06);
}

html[data-theme="dark"] .mega-header-title,
html[data-theme="dark"] .mega-item {
  color: #f6eef4;
}

html[data-theme="dark"] .offcanvas-mobile,
html[data-theme="dark"] .offcanvas-mobile .offcanvas-header {
  background: #16121c;
  color: #f6eef4;
}

html[data-theme="dark"] .mobile-nav-link,
html[data-theme="dark"] .mobile-submenu-link,
html[data-theme="dark"] .btn-close-mobile {
  color: #e7dce8;
}

html[data-theme="dark"] .mobile-nav-item,
html[data-theme="dark"] .offcanvas-mobile .offcanvas-header {
  border-color: rgba(255, 255, 255, .06) !important;
}

html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .theme-glass {
  background: rgba(28, 23, 36, .82);
  border-color: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .form-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .accordion-item,
html[data-theme="dark"] .faq-item {
  background: #1c1724;
  color: var(--text);
  border-color: #3d3144;
}

html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-body {
  background-color: #1c1722 !important;
  color: var(--text);
}

html[data-theme="dark"] .text-muted {
  color: #cbbdd0 !important;
}

html[data-theme="dark"] .text-dark {
  color: #f6eef4 !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-modern .form-control,
html[data-theme="dark"] .form-modern .form-select {
  background-color: #221c2a;
  border-color: #3d3144;
  color: #f6eef4;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] .form-modern .form-control:focus {
  background-color: #221c2a;
  color: #f6eef4;
}

html[data-theme="dark"] .form-floating > label,
html[data-theme="dark"] .form-control::placeholder {
  color: #a894ae;
}

html[data-theme="dark"] .accordion-button {
  background: #1c1724;
  color: #f6eef4;
  box-shadow: none;
}

html[data-theme="dark"] .accordion-button:not(.collapsed) {
  background: #2c1824;
  color: #fff;
}

html[data-theme="dark"] .accordion-body {
  background: #1c1724;
  color: var(--text);
}

html[data-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: #f6eef4;
  color: #f6eef4;
}

html[data-theme="dark"] .alert-light {
  background: #241c2c;
  color: #f6eef4;
  border-color: #3d3144;
}
