html[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F8FC;
  --bg-2: #FFFFFF;
  --surface: rgba(15, 23, 42, 0.045);
  --surface-1: rgba(15, 23, 42, 0.035);
  --surface-2: rgba(15, 23, 42, 0.075);
  --white: #121826;
  --muted: rgba(18, 24, 38, 0.62);
  --muted-2: rgba(18, 24, 38, 0.42);
  --border: rgba(15, 23, 42, 0.12);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --glass: rgba(255, 255, 255, 0.7);
  --purple-glow: rgba(124, 58, 237, 0.16);
}

html[data-theme="light"],
html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 30rem),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 28rem),
    var(--bg);
}

html[data-theme="light"] #nav.scrolled,
html[data-theme="light"] .sidebar,
html[data-theme="light"] .modal,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .form-panel,
html[data-theme="light"] .topbar,
html[data-theme="light"] .dropdown-menu {
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mobile-menu,
html[data-theme="light"] .modal-backdrop,
html[data-theme="light"] .modal-overlay,
html[data-theme="light"] .sidebar-overlay {
  background: rgba(248, 250, 252, 0.88) !important;
}

html[data-theme="light"] .dash-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .step-card,
html[data-theme="light"] .feat-item,
html[data-theme="light"] .creator-card,
html[data-theme="light"] .testi-card,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .kpi-card,
html[data-theme="light"] .section-card,
html[data-theme="light"] .campaign-card,
html[data-theme="light"] .deal-card,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .content-card,
html[data-theme="light"] .table-card,
html[data-theme="light"] .filter-panel,
html[data-theme="light"] .search-box,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .api-banner {
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .search-input,
html[data-theme="light"] .filter-input,
html[data-theme="light"] .filter-select,
html[data-theme="light"] .adv-input,
html[data-theme="light"] .adv-select,
html[data-theme="light"] .topbar-search input {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--white) !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: rgba(18, 24, 38, 0.36) !important;
}

html[data-theme="light"] select option,
html[data-theme="light"] .field select option,
html[data-theme="light"] .filter-select option,
html[data-theme="light"] .adv-select option {
  background: #FFFFFF !important;
  color: var(--white) !important;
}

html[data-theme="light"] table tbody tr:hover,
html[data-theme="light"] .nav-item:hover,
html[data-theme="light"] .dropdown-item:hover,
html[data-theme="light"] .icon-btn:hover,
html[data-theme="light"] .more-btn:hover,
html[data-theme="light"] .btn-ghost:hover {
  background: var(--surface-2) !important;
}

html[data-theme="light"] .bubble,
html[data-theme="light"] .creator-avatar,
html[data-theme="light"] .avatar-circle {
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .orb {
  opacity: 0.42;
}

html[data-theme="light"] .btn-outline,
html[data-theme="light"] .google-btn,
html[data-theme="light"] .auth-secondary-btn,
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .btn-cancel {
  background: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="light"] .logo-mark,
html[data-theme="light"] .brand-mark {
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18);
}

html[data-theme="light"] .notice.success,
html[data-theme="light"] .status.success,
html[data-theme="light"] .error-msg.success,
html[data-theme="light"] .ai-result.show:not(.error),
html[data-theme="light"] .draft-status.visible {
  background: #DCFCE7 !important;
  border-color: #86EFAC !important;
  color: #166534 !important;
}

html[data-theme="light"] .notice.error,
html[data-theme="light"] .status.error,
html[data-theme="light"] .error-msg.error,
html[data-theme="light"] .ai-result.error,
html[data-theme="light"] .card.error,
html[data-theme="light"] .error.visible {
  background: #FEE2E2 !important;
  border-color: #FCA5A5 !important;
  color: #991B1B !important;
}

html[data-theme="light"] .field-error,
html[data-theme="light"] .form-error,
html[data-theme="light"] .validation-error {
  color: #B91C1C !important;
}

html[data-theme="light"] .discount,
html[data-theme="light"] .save-badge,
html[data-theme="light"] .result-badge {
  background: #DCFCE7 !important;
  color: #166534 !important;
}

html[data-theme="light"] .placeholder,
html[data-theme="light"] .notice.warning {
  background: #FFEDD5 !important;
  border-color: #FDBA74 !important;
  color: #9A3412 !important;
}

.theme-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 86%, transparent);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.theme-switcher:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--purple) 52%, var(--border));
}

.theme-switcher svg {
  width: 19px;
  height: 19px;
}

.theme-switcher .theme-icon-sun,
html[data-theme="light"] .theme-switcher .theme-icon-moon {
  display: none;
}

html[data-theme="light"] .theme-switcher .theme-icon-sun {
  display: block;
}

@media (max-width: 640px) {
  .theme-switcher {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}
