/* Kointent global theme: light keeps the platform palette; dark follows advertise.php. */
:root{color-scheme:light;--kt-dark-bg:#080b16;--kt-dark-surface:#111827;--kt-dark-surface-2:#172033;--kt-dark-border:rgba(255,255,255,.10);--kt-dark-text:#f8fafc;--kt-dark-muted:#94a3b8;--kt-dark-accent:#7c3aed;--kt-dark-accent-2:#4f46e5}
html[data-kt-theme="dark"]{color-scheme:dark;background:var(--kt-dark-bg)}
html[data-kt-theme="dark"] body{background:var(--kt-dark-bg)!important;color:var(--kt-dark-text)!important}
html[data-kt-theme="dark"] .bg-white{background:var(--kt-dark-surface)!important}
html[data-kt-theme="dark"] .bg-slate-50,html[data-kt-theme="dark"] .bg-gray-50{background:#0d1320!important}
html[data-kt-theme="dark"] .bg-slate-100,html[data-kt-theme="dark"] .bg-gray-100{background:#151d2c!important}
html[data-kt-theme="dark"] .bg-slate-200,html[data-kt-theme="dark"] .bg-gray-200{background:#1e293b!important}
html[data-kt-theme="dark"] .text-slate-900,html[data-kt-theme="dark"] .text-gray-900{color:#f8fafc!important}
html[data-kt-theme="dark"] .text-slate-800,html[data-kt-theme="dark"] .text-gray-800{color:#f1f5f9!important}
html[data-kt-theme="dark"] .text-slate-700,html[data-kt-theme="dark"] .text-gray-700{color:#e2e8f0!important}
html[data-kt-theme="dark"] .text-slate-600,html[data-kt-theme="dark"] .text-gray-600{color:#cbd5e1!important}
html[data-kt-theme="dark"] .text-slate-500,html[data-kt-theme="dark"] .text-gray-500{color:#94a3b8!important}
html[data-kt-theme="dark"] .text-slate-400,html[data-kt-theme="dark"] .text-gray-400{color:#64748b!important}
html[data-kt-theme="dark"] .border-slate-200,html[data-kt-theme="dark"] .border-gray-200,html[data-kt-theme="dark"] .border-gray-300{border-color:#334155!important}
html[data-kt-theme="dark"] .border-slate-100,html[data-kt-theme="dark"] .border-gray-100{border-color:rgba(255,255,255,.07)!important}
html[data-kt-theme="dark"] input,html[data-kt-theme="dark"] select,html[data-kt-theme="dark"] textarea{background:#0f172a!important;color:#f8fafc!important;border-color:#334155!important}
html[data-kt-theme="dark"] input::placeholder,html[data-kt-theme="dark"] textarea::placeholder{color:#64748b!important}
html[data-kt-theme="dark"] table thead{background:#111827!important}
html[data-kt-theme="dark"] .hover\:bg-slate-50:hover,html[data-kt-theme="dark"] .hover\:bg-gray-50:hover{background:#1a2434!important}
html[data-kt-theme="dark"] .hover\:bg-slate-100:hover,html[data-kt-theme="dark"] .hover\:bg-gray-100:hover{background:#202b3d!important}
html[data-kt-theme="dark"] .shadow-sm,html[data-kt-theme="dark"] .shadow-md,html[data-kt-theme="dark"] .shadow-lg{box-shadow:0 12px 35px rgba(0,0,0,.28)!important}
html[data-kt-theme="dark"] .bg-blue-50{background:rgba(37,99,235,.12)!important}html[data-kt-theme="dark"] .bg-green-50{background:rgba(34,197,94,.12)!important}html[data-kt-theme="dark"] .bg-red-50{background:rgba(239,68,68,.12)!important}html[data-kt-theme="dark"] .bg-amber-50{background:rgba(245,158,11,.12)!important}html[data-kt-theme="dark"] .bg-purple-50,html[data-kt-theme="dark"] .bg-violet-50{background:rgba(124,58,237,.12)!important}
html[data-kt-theme="dark"] .kt-theme-menu{background:#111827!important;border-color:#334155!important;color:#f8fafc!important}
/* Animated theme switch */
.kt-theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:9px;border:0!important;background:transparent!important;color:#0f172a!important;padding:4px!important;border-radius:999px!important;font:700 12px/1 Inter,system-ui,sans-serif;cursor:pointer;white-space:nowrap;min-height:38px;visibility:visible!important;opacity:1!important;position:relative;z-index:60;transition:transform .18s ease}
.kt-theme-toggle:active{transform:scale(.96)}
.kt-theme-switch{position:relative;display:inline-flex;align-items:center;width:54px;height:30px;flex:0 0 54px;border-radius:999px;background:#dbe4f2;border:1px solid #cbd5e1;box-shadow:inset 0 1px 2px rgba(15,23,42,.12),0 2px 6px rgba(15,23,42,.08);transition:background .35s ease,border-color .35s ease,box-shadow .35s ease}
.kt-theme-thumb{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.24);transition:transform .35s cubic-bezier(.22,1,.36,1),background .35s ease}
.kt-theme-icon{position:absolute;left:7px;top:6px;font-size:14px;line-height:18px;color:#475569;z-index:2;transition:transform .35s ease,color .35s ease}
.kt-theme-toggle.is-dark .kt-theme-switch{background:linear-gradient(135deg,#312e81,#7c3aed);border-color:#8b5cf6;box-shadow:inset 0 1px 2px rgba(255,255,255,.08),0 3px 10px rgba(124,58,237,.25)}
.kt-theme-toggle.is-dark .kt-theme-thumb{transform:translateX(24px);background:#f8fafc}
.kt-theme-toggle.is-dark .kt-theme-icon{left:31px;color:#fef3c7;transform:rotate(180deg)}
html[data-kt-theme="dark"] .kt-theme-toggle{color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-theme-switch{background:linear-gradient(135deg,#312e81,#7c3aed);border-color:#8b5cf6}
html[data-kt-theme="dark"] .kt-theme-thumb{background:#f8fafc}
.kt-theme-menu{background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.18);padding:8px}
.kt-theme-menu[hidden]{display:none!important}
@media(max-width:640px){.kt-theme-label{display:none}.kt-header-theme-toggle{padding:4px!important;min-width:54px}.kt-header-theme-toggle .kt-theme-label{display:none}}

/* Mobile-only header theme controls must stay hidden on desktop. The base
   .kt-theme-toggle rule uses !important for dashboard controls, so Tailwind
   .lg:hidden alone cannot win the cascade. */
@media(min-width:1024px){.kt-theme-toggle.lg\:hidden{display:none!important}}
@media(max-width:1023px){.kt-theme-toggle.lg\:hidden{display:inline-flex!important}}

/* Homepage: dark mode must recolor the actual surfaces, not just text. */
html[data-kt-theme="dark"] body.kt-homepage,
html[data-kt-theme="dark"] .kt-homepage{background:#080b16!important;color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-homepage .hero-gradient{background:radial-gradient(circle at 82% 8%,rgba(124,58,237,.24),transparent 34%),radial-gradient(circle at 12% 82%,rgba(59,130,246,.16),transparent 38%),linear-gradient(180deg,#111827 0%,#080b16 78%)!important}
html[data-kt-theme="dark"] .kt-homepage .hero-gradient .floating-orb{opacity:.12!important}
html[data-kt-theme="dark"] .kt-homepage .glass{background:rgba(17,24,39,.94)!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 20px 60px rgba(0,0,0,.34)!important;color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-homepage .bg-white,
html[data-kt-theme="dark"] .kt-homepage section.bg-white{background:#0f172a!important;color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-homepage .bg-gray-50{background:#111827!important}
html[data-kt-theme="dark"] .kt-homepage .border-gray-100,html[data-kt-theme="dark"] .kt-homepage .border-gray-300{border-color:#263244!important}
html[data-kt-theme="dark"] .kt-homepage .text-gray-600{color:#cbd5e1!important}
html[data-kt-theme="dark"] .kt-homepage .text-gray-500{color:#94a3b8!important}
html[data-kt-theme="dark"] .kt-homepage .text-gray-400{color:#64748b!important}
html[data-kt-theme="dark"] .kt-homepage .text-gray-900{color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-homepage .text-blue-600{color:#60a5fa!important}
html[data-kt-theme="dark"] .kt-homepage .promo-home-section{background:linear-gradient(135deg,#17112d,#0f172a)!important;border-color:rgba(124,58,237,.35)!important}
html[data-kt-theme="dark"] .kt-homepage .promo-home-card{background:#151d2c!important;border-color:#334155!important;color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-homepage .promo-home-card p.text-gray-500{color:#94a3b8!important}
html[data-kt-theme="dark"] .kt-homepage header{background:rgba(8,11,22,.96)!important;border-color:rgba(255,255,255,.10)!important;color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-homepage header a{color:#f8fafc}
html[data-kt-theme="dark"] .kt-homepage #menuBtn span{background:#f8fafc!important}
html[data-kt-theme="dark"] .kt-homepage .ticker{color:#64748b!important}
html[data-kt-theme="dark"] .kt-homepage .accordion-trigger{color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-homepage .accordion-trigger:hover{background:#172033!important}
html[data-kt-theme="dark"] .kt-homepage footer{background:#060912!important;color:#cbd5e1!important}

/* Logged-in dashboard sidebars: compact switch sits on the same row as Kointent. */
.sidebar-brand-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
.sidebar-brand-row .kt-theme-toggle{flex:0 0 auto!important}
.sidebar-brand-row .kt-theme-label{display:none!important}
.sidebar-brand-row .kt-theme-switch{width:50px;height:28px;flex-basis:50px}
.sidebar-brand-row .kt-theme-thumb{width:21px;height:21px}
.sidebar-brand-row .kt-theme-toggle.is-dark .kt-theme-thumb{transform:translateX(21px)}
.sidebar-brand-row .kt-theme-toggle.is-dark .kt-theme-icon{left:28px}

html[data-kt-theme="light"] .kt-advertise .promo-hero-copy{color:#0f172a!important}
html[data-kt-theme="light"] .kt-advertise .promo-hero-copy .text-white{color:#0f172a!important}
html[data-kt-theme="light"] .kt-advertise .promo-hero-copy .text-white\/70{color:#475569!important}
html[data-kt-theme="light"] .kt-advertise .promo-hero-copy .text-white\/75{color:#475569!important}
html[data-kt-theme="light"] .kt-advertise .promo-hero-copy .text-white\/60{color:#64748b!important}
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy{color:#0f172a!important}
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy .text-white{color:#0f172a!important}
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy .text-slate-300{color:#475569!important}
html[data-kt-theme="light"] .kt-advertise .glass{background:rgba(255,255,255,.88)!important;border-color:#e2e8f0!important;box-shadow:0 15px 40px rgba(15,23,42,.08)!important}
html[data-kt-theme="light"] .kt-advertise .bg-white\/5{background:#f8fafc!important}
html[data-kt-theme="light"] .kt-advertise .border-white\/10{border-color:#e2e8f0!important}
html[data-kt-theme="light"] .kt-advertise .border-white\/5{border-color:#e2e8f0!important}
html[data-kt-theme="light"] .kt-advertise .bg-white\/10{background:#f1f5f9!important}
html[data-kt-theme="light"] .kt-advertise .text-white\/70{color:#475569!important}
html[data-kt-theme="light"] .kt-advertise .text-white\/60{color:#64748b!important}
html[data-kt-theme="light"] .kt-advertise .text-white\/75{color:#475569!important}
html[data-kt-theme="light"] .kt-advertise-header .text-white{color:#0f172a!important}
html[data-kt-theme="light"] .kt-advertise-header .text-violet-400{color:#7c3aed!important}
html[data-kt-theme="light"] .kt-advertise .promo-dark-surface .text-slate-900{color:#0f172a!important}

html[data-kt-theme="dark"] .kt-public-header,html[data-kt-theme="dark"] .kt-advertise-header{background:rgba(8,11,22,.94)!important;border-color:rgba(255,255,255,.10)!important}
html[data-kt-theme="light"] .kt-public-header{background:rgba(255,255,255,.94)!important}

/* ==========================================================
   FINAL ADVERTISING FUNNEL THEME POLISH
   Keep both themes intentionally distinct and readable.
   ========================================================== */

/* Light mode: clean white/blue presentation. */
html[data-kt-theme="light"] body.kt-advertise{
  background:#f8fafc!important;
  color:#0f172a!important;
}
html[data-kt-theme="light"] .kt-advertise main{
  background:transparent!important;
}
html[data-kt-theme="light"] .kt-advertise .promo-hero-copy,
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy{
  color:#0f172a!important;
}
html[data-kt-theme="light"] .kt-advertise .promo-hero-copy h1,
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy h2,
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy h3,
html[data-kt-theme="light"] .kt-advertise .promo-hero-copy b,
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy .font-black{
  color:#0f172a!important;
}
html[data-kt-theme="light"] .kt-advertise .promo-hero-copy .text-slate-300,
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy .text-slate-300{
  color:#475569!important;
}
html[data-kt-theme="light"] .kt-advertise .promo-hero-copy .text-slate-200,
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy .text-slate-200{
  color:#334155!important;
}
html[data-kt-theme="light"] .kt-advertise .promo-hero-copy .text-slate-400,
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy .text-slate-400{
  color:#64748b!important;
}
html[data-kt-theme="light"] .kt-advertise .glass{
  background:#ffffff!important;
  color:#0f172a!important;
  border:1px solid #e2e8f0!important;
  box-shadow:0 10px 30px rgba(15,23,42,.08)!important;
  backdrop-filter:none!important;
}
html[data-kt-theme="light"] .kt-advertise .promo-dark-surface{
  background:#ffffff!important;
  color:#0f172a!important;
  border:1px solid #e2e8f0!important;
}
html[data-kt-theme="light"] .kt-advertise .bg-slate-50{background:#f8fafc!important}
html[data-kt-theme="light"] .kt-advertise .bg-slate-950{background:#ffffff!important}
html[data-kt-theme="light"] .kt-advertise .bg-white\/5{background:#f8fafc!important}
html[data-kt-theme="light"] .kt-advertise .bg-white\/10{background:#f1f5f9!important}
html[data-kt-theme="light"] .kt-advertise .border-white\/5,
html[data-kt-theme="light"] .kt-advertise .border-white\/10,
html[data-kt-theme="light"] .kt-advertise .border-white\/15{border-color:#e2e8f0!important}
html[data-kt-theme="light"] .kt-advertise .text-white{color:#0f172a!important}
html[data-kt-theme="light"] .kt-advertise .text-white\/60{color:#64748b!important}
html[data-kt-theme="light"] .kt-advertise .text-white\/70{color:#475569!important}
html[data-kt-theme="light"] .kt-advertise .text-white\/75{color:#475569!important}
html[data-kt-theme="light"] .kt-advertise .text-violet-200{color:#6d28d9!important}
html[data-kt-theme="light"] .kt-advertise .kt-advertise-header .text-white{color:#0f172a!important}
html[data-kt-theme="light"] .kt-advertise .kt-advertise-header .text-violet-400{color:#7c3aed!important}
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy .bg-white\/5{background:#f8fafc!important}
html[data-kt-theme="light"] .kt-advertise .promo-bottom-copy .border-white\/10{border-color:#e2e8f0!important}

/* Dark mode: navy surfaces with high-contrast readable content. */
html[data-kt-theme="dark"] body.kt-advertise{
  background:#070b18!important;
  color:#f8fafc!important;
}
html[data-kt-theme="dark"] .kt-advertise main{
  background:transparent!important;
}
html[data-kt-theme="dark"] .kt-advertise .promo-hero-copy,
html[data-kt-theme="dark"] .kt-advertise .promo-bottom-copy{
  color:#f8fafc!important;
}
html[data-kt-theme="dark"] .kt-advertise .promo-hero-copy h1,
html[data-kt-theme="dark"] .kt-advertise .promo-bottom-copy h2,
html[data-kt-theme="dark"] .kt-advertise .promo-bottom-copy h3,
html[data-kt-theme="dark"] .kt-advertise .promo-hero-copy b,
html[data-kt-theme="dark"] .kt-advertise .promo-bottom-copy .font-black{
  color:#f8fafc!important;
}
html[data-kt-theme="dark"] .kt-advertise .promo-hero-copy .text-slate-300,
html[data-kt-theme="dark"] .kt-advertise .promo-bottom-copy .text-slate-300{
  color:#cbd5e1!important;
}
html[data-kt-theme="dark"] .kt-advertise .promo-hero-copy .text-slate-200,
html[data-kt-theme="dark"] .kt-advertise .promo-bottom-copy .text-slate-200{
  color:#e2e8f0!important;
}
html[data-kt-theme="dark"] .kt-advertise .promo-hero-copy .text-slate-400,
html[data-kt-theme="dark"] .kt-advertise .promo-bottom-copy .text-slate-400{
  color:#94a3b8!important;
}
html[data-kt-theme="dark"] .kt-advertise .glass{
  background:#111827!important;
  color:#f8fafc!important;
  border:1px solid #293548!important;
  box-shadow:0 16px 38px rgba(0,0,0,.30)!important;
  backdrop-filter:none!important;
}
html[data-kt-theme="dark"] .kt-advertise .promo-dark-surface{
  background:#111827!important;
  color:#f8fafc!important;
  border:1px solid #293548!important;
}
html[data-kt-theme="dark"] .kt-advertise .bg-slate-50{background:#172033!important}
html[data-kt-theme="dark"] .kt-advertise .bg-white{background:#111827!important;color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-advertise .bg-white\/5{background:#172033!important}
html[data-kt-theme="dark"] .kt-advertise .bg-white\/10{background:#1e293b!important}
html[data-kt-theme="dark"] .kt-advertise .border-white\/5,
html[data-kt-theme="dark"] .kt-advertise .border-white\/10,
html[data-kt-theme="dark"] .kt-advertise .border-white\/15{border-color:#334155!important}
html[data-kt-theme="dark"] .kt-advertise .text-white{color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-advertise .text-white\/60{color:#94a3b8!important}
html[data-kt-theme="dark"] .kt-advertise .text-white\/70{color:#cbd5e1!important}
html[data-kt-theme="dark"] .kt-advertise .text-white\/75{color:#cbd5e1!important}
html[data-kt-theme="dark"] .kt-advertise .text-slate-900{color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-advertise .text-slate-500{color:#94a3b8!important}
html[data-kt-theme="dark"] .kt-advertise .text-slate-400{color:#94a3b8!important}
html[data-kt-theme="dark"] .kt-advertise .text-violet-200{color:#ddd6fe!important}
html[data-kt-theme="dark"] .kt-advertise .text-emerald-300{color:#6ee7b7!important}
html[data-kt-theme="dark"] .kt-advertise .promo-bottom-copy .bg-white\/5{background:#172033!important}
html[data-kt-theme="dark"] .kt-advertise .promo-bottom-copy .border-white\/10{border-color:#334155!important}

/* The large price/feature panel needs a deliberately darker surface in dark mode. */
html[data-kt-theme="dark"] .kt-advertise .promo-dark-surface .bg-slate-50{
  background:#172033!important;color:#f8fafc!important;
}
html[data-kt-theme="dark"] .kt-advertise .promo-dark-surface .bg-slate-50 *{
  color:inherit;
}
html[data-kt-theme="dark"] .kt-advertise .promo-dark-surface .text-slate-500,
html[data-kt-theme="dark"] .kt-advertise .promo-dark-surface .text-slate-400{
  color:#94a3b8!important;
}
html[data-kt-theme="dark"] .kt-advertise .promo-dark-surface input,
html[data-kt-theme="dark"] .kt-advertise .promo-dark-surface textarea,
html[data-kt-theme="dark"] .kt-advertise .promo-dark-surface select{
  background:#0f172a!important;color:#f8fafc!important;border-color:#334155!important;
}

/* Paid/receipt and warning cards remain readable in either theme. */
html[data-kt-theme="dark"] .kt-advertise .bg-emerald-50{background:rgba(16,185,129,.12)!important;color:#d1fae5!important}
html[data-kt-theme="dark"] .kt-advertise .border-emerald-200{border-color:rgba(52,211,153,.30)!important}
html[data-kt-theme="dark"] .kt-advertise .text-emerald-800,
html[data-kt-theme="dark"] .kt-advertise .text-emerald-900{color:#a7f3d0!important}
html[data-kt-theme="dark"] .kt-advertise .bg-amber-50{background:rgba(245,158,11,.12)!important;color:#fef3c7!important}
html[data-kt-theme="dark"] .kt-advertise .border-amber-200{border-color:rgba(245,158,11,.30)!important}
html[data-kt-theme="dark"] .kt-advertise .text-amber-900{color:#fde68a!important}
html[data-kt-theme="dark"] .kt-advertise .bg-red-50{background:rgba(239,68,68,.12)!important;color:#fecaca!important}
html[data-kt-theme="dark"] .kt-advertise .border-red-200{border-color:rgba(248,113,113,.30)!important}
html[data-kt-theme="dark"] .kt-advertise .text-red-700{color:#fca5a5!important}

/* Make the theme switch visually balanced beside the logo. */
.kt-advertise-header .kt-theme-toggle{margin-left:2px;flex:0 0 auto}
@media(max-width:640px){
  .kt-advertise-header .max-w-6xl{gap:10px}
  .kt-advertise-header .kt-header-theme-toggle{display:inline-flex!important}
  .kt-advertise-header .kt-theme-switch{width:50px;height:28px;flex-basis:50px}
  .kt-advertise-header .kt-theme-thumb{width:21px;height:21px}
  .kt-advertise-header .kt-theme-toggle.is-dark .kt-theme-thumb{transform:translateX(21px)}
  .kt-advertise-header .kt-theme-toggle.is-dark .kt-theme-icon{left:28px}
}

/* ==========================================================
   HOMEPAGE FINAL CONTRAST PASS
   ========================================================== */
html[data-kt-theme="dark"] body.kt-homepage,
html[data-kt-theme="dark"] .kt-homepage{
  background:#080b16!important;color:#f8fafc!important;
}
html[data-kt-theme="dark"] .kt-homepage .hero-gradient{
  background:
    radial-gradient(circle at 85% 12%,rgba(124,58,237,.20),transparent 32%),
    radial-gradient(circle at 8% 75%,rgba(37,99,235,.16),transparent 36%),
    linear-gradient(180deg,#111827 0%,#080b16 100%)!important;
}
html[data-kt-theme="dark"] .kt-homepage .hero-gradient h1,
html[data-kt-theme="dark"] .kt-homepage .hero-gradient h2,
html[data-kt-theme="dark"] .kt-homepage .hero-gradient h3{
  color:#f8fafc!important;
}
html[data-kt-theme="dark"] .kt-homepage .hero-gradient .text-gray-600,
html[data-kt-theme="dark"] .kt-homepage .hero-gradient .text-gray-700{
  color:#cbd5e1!important;
}
html[data-kt-theme="dark"] .kt-homepage .hero-gradient .text-gray-500{
  color:#94a3b8!important;
}
html[data-kt-theme="dark"] .kt-homepage .hero-gradient .glass{
  background:#111827!important;color:#f8fafc!important;border-color:#334155!important;
}
html[data-kt-theme="dark"] .kt-homepage .py-6.border-y{
  background:#0f172a!important;border-color:#263244!important;
}
html[data-kt-theme="dark"] .kt-homepage section.bg-white,
html[data-kt-theme="dark"] .kt-homepage .bg-white{
  background:#0f172a!important;color:#f8fafc!important;
}
html[data-kt-theme="dark"] .kt-homepage .bg-white .text-gray-900,
html[data-kt-theme="dark"] .kt-homepage .bg-white .text-gray-800,
html[data-kt-theme="dark"] .kt-homepage .bg-white .text-gray-700{
  color:#f1f5f9!important;
}
html[data-kt-theme="dark"] .kt-homepage .bg-white .text-gray-600{
  color:#cbd5e1!important;
}
html[data-kt-theme="dark"] .kt-homepage .bg-white .text-gray-500{
  color:#94a3b8!important;
}
html[data-kt-theme="dark"] .kt-homepage .accordion-item{
  background:#111827!important;border-color:#334155!important;color:#f8fafc!important;
}
html[data-kt-theme="dark"] .kt-homepage .accordion-item .text-gray-600,
html[data-kt-theme="dark"] .kt-homepage .accordion-item .text-gray-500{
  color:#cbd5e1!important;
}
html[data-kt-theme="dark"] .kt-homepage .promo-home-section{
  background:linear-gradient(180deg,#0f172a,#080b16)!important;
}
html[data-kt-theme="dark"] .kt-homepage .promo-home-card{
  background:#151d2c!important;color:#f8fafc!important;border-color:#334155!important;
}
html[data-kt-theme="dark"] .kt-homepage .promo-home-card .text-gray-600,
html[data-kt-theme="dark"] .kt-homepage .promo-home-card .text-gray-500{
  color:#94a3b8!important;
}
html[data-kt-theme="dark"] .kt-homepage footer{
  background:#050812!important;color:#cbd5e1!important;
}
html[data-kt-theme="light"] body.kt-homepage,
html[data-kt-theme="light"] .kt-homepage{
  background:#fff!important;color:#0f172a!important;
}
html[data-kt-theme="light"] .kt-homepage .hero-gradient h1,
html[data-kt-theme="light"] .kt-homepage .hero-gradient h2,
html[data-kt-theme="light"] .kt-homepage .hero-gradient h3{
  color:#0f172a!important;
}
html[data-kt-theme="light"] .kt-homepage .hero-gradient .text-gray-600{color:#475569!important}
html[data-kt-theme="light"] .kt-homepage .hero-gradient .text-gray-500{color:#64748b!important}

/* Theme switch: clearer on both themes and smoother physical slide. */
.kt-theme-switch{overflow:visible}
.kt-theme-thumb{will-change:transform;transition:transform .42s cubic-bezier(.34,1.56,.64,1),background .3s ease,box-shadow .3s ease}
.kt-theme-icon{pointer-events:none;transition:left .42s cubic-bezier(.34,1.56,.64,1),transform .42s ease,color .3s ease,opacity .2s ease}
.kt-theme-toggle:focus-visible{outline:3px solid rgba(99,102,241,.35);outline-offset:3px}
.kt-theme-toggle:hover .kt-theme-thumb{box-shadow:0 3px 9px rgba(15,23,42,.30)}

/* ==========================================================
   PLATFORM-WIDE DARK MODE NORMALIZATION
   This layer intentionally sits at the end of the theme file so
   page-specific Tailwind/custom styles cannot leave white cards,
   dark text, or low-contrast surfaces behind in dark mode.
   ========================================================== */
html[data-kt-theme="dark"] body{
  background:#080b16!important;
  color:#f8fafc!important;
}
html[data-kt-theme="dark"] main,
html[data-kt-theme="dark"] section,
html[data-kt-theme="dark"] article{
  border-color:#263244;
}
/* Common Tailwind surface families */
html[data-kt-theme="dark"] .bg-white,
html[data-kt-theme="dark"] .bg-white\/90,
html[data-kt-theme="dark"] .bg-white\/95,
html[data-kt-theme="dark"] .bg-white\/80,
html[data-kt-theme="dark"] .bg-white\/70,
html[data-kt-theme="dark"] .bg-white\/60{
  background:#111827!important;
  color:#f8fafc!important;
}
html[data-kt-theme="dark"] .bg-slate-50,
html[data-kt-theme="dark"] .bg-gray-50,
html[data-kt-theme="dark"] .bg-zinc-50,
html[data-kt-theme="dark"] .bg-neutral-50,
html[data-kt-theme="dark"] .bg-stone-50{
  background:#0f172a!important;
}
html[data-kt-theme="dark"] .bg-slate-100,
html[data-kt-theme="dark"] .bg-gray-100,
html[data-kt-theme="dark"] .bg-zinc-100,
html[data-kt-theme="dark"] .bg-neutral-100,
html[data-kt-theme="dark"] .bg-stone-100{
  background:#172033!important;
}
html[data-kt-theme="dark"] .bg-slate-200,
html[data-kt-theme="dark"] .bg-gray-200,
html[data-kt-theme="dark"] .bg-zinc-200,
html[data-kt-theme="dark"] .bg-neutral-200,
html[data-kt-theme="dark"] .bg-stone-200{
  background:#1e293b!important;
}
/* Soft colored panels become subtle dark-tinted panels. */
html[data-kt-theme="dark"] .bg-blue-50{background:rgba(37,99,235,.13)!important}
html[data-kt-theme="dark"] .bg-indigo-50{background:rgba(79,70,229,.14)!important}
html[data-kt-theme="dark"] .bg-violet-50{background:rgba(124,58,237,.14)!important}
html[data-kt-theme="dark"] .bg-purple-50{background:rgba(124,58,237,.14)!important}
html[data-kt-theme="dark"] .bg-emerald-50{background:rgba(16,185,129,.13)!important}
html[data-kt-theme="dark"] .bg-green-50{background:rgba(34,197,94,.13)!important}
html[data-kt-theme="dark"] .bg-amber-50{background:rgba(245,158,11,.13)!important}
html[data-kt-theme="dark"] .bg-yellow-50{background:rgba(234,179,8,.13)!important}
html[data-kt-theme="dark"] .bg-red-50{background:rgba(239,68,68,.13)!important}
html[data-kt-theme="dark"] .bg-rose-50{background:rgba(244,63,94,.13)!important}
/* Common text families */
html[data-kt-theme="dark"] .text-black{color:#f8fafc!important}
html[data-kt-theme="dark"] .text-slate-950,
html[data-kt-theme="dark"] .text-slate-900,
html[data-kt-theme="dark"] .text-gray-950,
html[data-kt-theme="dark"] .text-gray-900,
html[data-kt-theme="dark"] .text-zinc-950,
html[data-kt-theme="dark"] .text-zinc-900{color:#f8fafc!important}
html[data-kt-theme="dark"] .text-slate-800,
html[data-kt-theme="dark"] .text-gray-800,
html[data-kt-theme="dark"] .text-zinc-800{color:#f1f5f9!important}
html[data-kt-theme="dark"] .text-slate-700,
html[data-kt-theme="dark"] .text-gray-700,
html[data-kt-theme="dark"] .text-zinc-700{color:#e2e8f0!important}
html[data-kt-theme="dark"] .text-slate-600,
html[data-kt-theme="dark"] .text-gray-600,
html[data-kt-theme="dark"] .text-zinc-600{color:#cbd5e1!important}
html[data-kt-theme="dark"] .text-slate-500,
html[data-kt-theme="dark"] .text-gray-500,
html[data-kt-theme="dark"] .text-zinc-500{color:#94a3b8!important}
html[data-kt-theme="dark"] .text-slate-400,
html[data-kt-theme="dark"] .text-gray-400,
html[data-kt-theme="dark"] .text-zinc-400{color:#64748b!important}
/* Borders and dividers */
html[data-kt-theme="dark"] .border-white,
html[data-kt-theme="dark"] .border-slate-100,
html[data-kt-theme="dark"] .border-slate-200,
html[data-kt-theme="dark"] .border-gray-100,
html[data-kt-theme="dark"] .border-gray-200,
html[data-kt-theme="dark"] .border-gray-300,
html[data-kt-theme="dark"] .border-zinc-200{border-color:#334155!important}
html[data-kt-theme="dark"] hr{border-color:#263244!important;background:#263244!important}
/* Inputs, selects and table surfaces */
html[data-kt-theme="dark"] input,
html[data-kt-theme="dark"] textarea,
html[data-kt-theme="dark"] select{
  background:#0f172a!important;
  color:#f8fafc!important;
  border-color:#334155!important;
}
html[data-kt-theme="dark"] option{background:#0f172a!important;color:#f8fafc!important}
html[data-kt-theme="dark"] table{color:#e2e8f0!important}
html[data-kt-theme="dark"] thead,
html[data-kt-theme="dark"] .bg-slate-50 thead,
html[data-kt-theme="dark"] .bg-gray-50 thead{background:#111827!important}
html[data-kt-theme="dark"] tbody tr{border-color:#263244!important}
html[data-kt-theme="dark"] tbody tr:hover{background:#151d2c!important}
/* Inline styles from older pages: convert obvious light surfaces/text. */
html[data-kt-theme="dark"] [style*="background:#fff"],
html[data-kt-theme="dark"] [style*="background: #fff"],
html[data-kt-theme="dark"] [style*="background:#ffffff"],
html[data-kt-theme="dark"] [style*="background: #ffffff"],
html[data-kt-theme="dark"] [style*="background:rgb(255,255,255)"],
html[data-kt-theme="dark"] [style*="background: rgb(255, 255, 255)"]{
  background:#111827!important;
  color:#f8fafc!important;
}
html[data-kt-theme="dark"] [style*="background:#f8fafc"],
html[data-kt-theme="dark"] [style*="background: #f8fafc"],
html[data-kt-theme="dark"] [style*="background:#f1f5f9"],
html[data-kt-theme="dark"] [style*="background: #f1f5f9"],
html[data-kt-theme="dark"] [style*="background:#f9fafb"],
html[data-kt-theme="dark"] [style*="background: #f9fafb"]{
  background:#172033!important;
}
html[data-kt-theme="dark"] [style*="color:#0f172a"],
html[data-kt-theme="dark"] [style*="color: #0f172a"],
html[data-kt-theme="dark"] [style*="color:#1e293b"],
html[data-kt-theme="dark"] [style*="color: #1e293b"],
html[data-kt-theme="dark"] [style*="color:#334155"],
html[data-kt-theme="dark"] [style*="color: #334155"],
html[data-kt-theme="dark"] [style*="color:#475569"],
html[data-kt-theme="dark"] [style*="color: #475569"]{
  color:#e2e8f0!important;
}
/* Modal/dialog surfaces used throughout the older platform pages. */
html[data-kt-theme="dark"] dialog,
html[data-kt-theme="dark"] [role="dialog"],
html[data-kt-theme="dark"] .modal,
html[data-kt-theme="dark"] .modal-content,
html[data-kt-theme="dark"] .kt-modal{
  background:#111827!important;
  color:#f8fafc!important;
  border-color:#334155!important;
}
html[data-kt-theme="dark"] .modal p,
html[data-kt-theme="dark"] .modal span,
html[data-kt-theme="dark"] [role="dialog"] p,
html[data-kt-theme="dark"] [role="dialog"] span{color:#cbd5e1}
/* View Ads — deliberately complete because it contains its own custom CSS. */
html[data-kt-theme="dark"] body.kt-view-ad{background:#080b16!important;color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-view-ad header{background:rgba(8,11,22,.96)!important;border-color:#263244!important}
html[data-kt-theme="dark"] .kt-view-ad .ad-card{background:#111827!important;color:#f8fafc!important;border-color:#334155!important;box-shadow:0 16px 40px rgba(0,0,0,.30)!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-category-chip{background:#172033!important;color:#cbd5e1!important;border-color:#334155!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-cta-panel,
html[data-kt-theme="dark"] .kt-view-ad .kt-bottom-cta{background:#111827!important;color:#f8fafc!important;border-color:#334155!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-modal{background:#111827!important;color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-modal-title{color:#f8fafc!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-modal-value{color:#e2e8f0!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-modal-reason{color:#94a3b8!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-modal-label{color:#64748b!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-modal-close{background:#1e293b!important;color:#cbd5e1!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-modal-divider,
html[data-kt-theme="dark"] .kt-view-ad .kt-modal-footer{border-color:#334155!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-share-link-row input{background:#0f172a!important;color:#e2e8f0!important;border-color:#334155!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-share-copy{background:#1e293b!important;color:#e2e8f0!important;border-color:#334155!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-share-quick a{background:#172033!important;color:#e2e8f0!important;border-color:#334155!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-share-quick a:hover{background:#1e293b!important}
html[data-kt-theme="dark"] .kt-view-ad .kt-share-earn-note{background:rgba(79,70,229,.16)!important;color:#c7d2fe!important}
html[data-kt-theme="dark"] .kt-view-ad footer{color:#64748b!important}
html[data-kt-theme="dark"] .kt-view-ad footer .text-slate-600{color:#94a3b8!important}


/* Dashboard sidebar theme switch: keep it genuinely beside the logo. */
.sidebar-brand-row{width:100%!important;min-width:0!important;}
.sidebar-brand-row>div:first-child{min-width:0!important;flex:1 1 auto!important;}
.sidebar-brand-row>div:first-child>a{font-size:1.25rem!important;white-space:nowrap!important;}
.sidebar-brand-row .kt-theme-toggle{width:48px!important;min-width:48px!important;max-width:48px!important;height:34px!important;min-height:34px!important;padding:2px!important;margin:0!important;flex:0 0 48px!important;}
.sidebar-brand-row .kt-theme-switch{width:44px!important;height:26px!important;flex-basis:44px!important;}
.sidebar-brand-row .kt-theme-thumb{width:20px!important;height:20px!important;top:2px!important;left:2px!important;}
.sidebar-brand-row .kt-theme-toggle.is-dark .kt-theme-thumb{transform:translateX(18px)!important;}
.sidebar-brand-row .kt-theme-icon{left:6px!important;top:4px!important;font-size:13px!important;}
.sidebar-brand-row .kt-theme-toggle.is-dark .kt-theme-icon{left:25px!important;}

/* Authentication pages use their own coherent surface system in both themes. */
html[data-kt-theme="dark"] body.kt-auth-page{
  background:radial-gradient(circle at 85% 10%,rgba(79,70,229,.20),transparent 30%),radial-gradient(circle at 10% 90%,rgba(124,58,237,.14),transparent 32%),#080b16!important;
  color:#f8fafc!important;
}
html[data-kt-theme="dark"] .kt-auth-page .glass{
  background:#111827!important;color:#f8fafc!important;border:1px solid #334155!important;
  box-shadow:0 24px 70px rgba(0,0,0,.38)!important;backdrop-filter:none!important;
}
html[data-kt-theme="dark"] .kt-auth-page .bg-white\/40{background:#111827!important;}
html[data-kt-theme="dark"] .kt-auth-page input,
html[data-kt-theme="dark"] .kt-auth-page select,
html[data-kt-theme="dark"] .kt-auth-page textarea{
  background:#0f172a!important;color:#f8fafc!important;border-color:#334155!important;
}
html[data-kt-theme="dark"] .kt-auth-page input::placeholder{color:#64748b!important;}
html[data-kt-theme="dark"] .kt-auth-page .text-gray-900{color:#f8fafc!important;}
html[data-kt-theme="dark"] .kt-auth-page .text-gray-600{color:#cbd5e1!important;}
html[data-kt-theme="dark"] .kt-auth-page .text-gray-500{color:#94a3b8!important;}
html[data-kt-theme="dark"] .kt-auth-page .text-gray-400{color:#64748b!important;}
html[data-kt-theme="dark"] .kt-auth-page .border-gray-200,html[data-kt-theme="dark"] .kt-auth-page .border-gray-300{border-color:#334155!important;}
html[data-kt-theme="dark"] .kt-auth-page .bg-red-50{background:rgba(239,68,68,.12)!important;color:#fecaca!important;}
html[data-kt-theme="dark"] .kt-auth-page .border-red-200{border-color:rgba(248,113,113,.3)!important;}
html[data-kt-theme="dark"] .kt-auth-page .bg-emerald-50,html[data-kt-theme="dark"] .kt-auth-page .bg-green-50{background:rgba(16,185,129,.12)!important;color:#a7f3d0!important;}
html[data-kt-theme="dark"] .kt-auth-page .border-emerald-200,html[data-kt-theme="dark"] .kt-auth-page .border-green-200{border-color:rgba(52,211,153,.3)!important;}
html[data-kt-theme="dark"] .kt-auth-page .bg-blue-50{background:rgba(59,130,246,.12)!important;color:#bfdbfe!important;}
html[data-kt-theme="dark"] .kt-auth-page .border-blue-200{border-color:rgba(96,165,250,.3)!important;}
html[data-kt-theme="dark"] .kt-auth-page .bg-amber-50{background:rgba(245,158,11,.12)!important;color:#fde68a!important;}
html[data-kt-theme="dark"] .kt-auth-page .border-amber-200,html[data-kt-theme="dark"] .kt-auth-page .border-amber-300{border-color:rgba(245,158,11,.3)!important;}
html[data-kt-theme="dark"] .kt-auth-page .floating-orb{opacity:.16!important;}
html[data-kt-theme="dark"] .kt-auth-page .pw-toggle{color:#94a3b8!important;}
html[data-kt-theme="dark"] .kt-auth-page .pw-toggle:hover{color:#93c5fd!important;}
html[data-kt-theme="light"] .kt-auth-page{color:#0f172a!important;}
.kt-auth-header{position:fixed;top:0;left:0;right:0;z-index:70;display:flex;align-items:center;justify-content:space-between;padding:18px 24px;pointer-events:none;}
.kt-auth-header>*{pointer-events:auto;}
.kt-auth-header .kt-theme-toggle{margin-left:auto;}
html[data-kt-theme="dark"] .kt-auth-header .kt-theme-toggle{color:#f8fafc!important;}
@media(max-width:640px){.kt-auth-header{padding:14px 16px}.kt-auth-header .kt-theme-switch{width:48px;height:28px;flex-basis:48px}.kt-auth-header .kt-theme-thumb{width:21px;height:21px}.kt-auth-header .kt-theme-toggle.is-dark .kt-theme-thumb{transform:translateX(20px)}}
