/* ================= Theme toggle + Light mode ================= */

/* toggle button */
.theme-toggle{width:42px;height:42px;flex:none;border-radius:50%;border:1px solid var(--card-border);background:var(--card);color:var(--text);display:grid;place-items:center;cursor:pointer;transition:.3s}
.theme-toggle:hover{transform:rotate(20deg);border-color:var(--violet)}
.theme-toggle svg{grid-area:1/1}
[data-theme="dark"] .theme-toggle .i-moon,
[data-theme="light"] .theme-toggle .i-sun{display:none}
:root:not([data-theme]) .theme-toggle .i-moon{display:none}

/* brand logo: light version (black S) / dark version (white S) */
.logo{gap:12px}
.logo-img{display:block;width:auto;flex:none}
.logo-d{display:none}
[data-theme="dark"] .logo-l{display:none}
[data-theme="dark"] .logo-d{display:block}
.logo-word{font-size:14px;font-weight:700;letter-spacing:.32em;text-transform:uppercase;color:var(--text);padding-left:12px;border-left:1px solid var(--card-border);line-height:1.6}
.footer-logo{display:inline-flex}

/* filter pills / tabs / pager: clean gradient edges, only the selected one is filled */
.filters a,.filters button,.tabs a{display:inline-flex;align-items:center;gap:7px;line-height:1.2;padding:10px 20px;background:var(--card);color:var(--muted)}
.filters a.active,.filters button.active,.tabs a.active,.pager .cur,.socials a:hover{
  background:var(--grad);background-origin:border-box;background-clip:border-box;border-color:transparent;color:#fff;
  box-shadow:0 8px 22px -10px rgba(236,72,153,.55)}
.filters a:not(.active):hover,.filters button:not(.active):hover,.tabs a:not(.active):hover{
  background:var(--card);color:var(--text);border-color:rgba(139,92,246,.55);box-shadow:none}
[data-theme="light"] .filters a:not(.active),[data-theme="light"] .tabs a:not(.active){box-shadow:0 2px 8px -5px rgba(40,30,90,.3)}

/* SVG icons */
.ico{flex:none;vertical-align:-.18em}
.btn .ico,.filters .ico,.tabs .ico{vertical-align:-.2em}
.icon svg{width:26px;height:26px}
.ci .icon svg{width:22px;height:22px}
.i1{color:#a78bfa}.i2{color:#f472b6}.i3{color:#22d3ee}.i4{color:#fbbf24}.i5{color:#4ade80}.i6{color:#60a5fa}
.product .thumb .ph,.pd-media,.post-card .thumb{color:rgba(255,255,255,.85)}
.dl-item .ic{color:#fff}
.success-ic{width:84px;height:84px;margin:0 auto;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;box-shadow:0 14px 40px -12px rgba(236,72,153,.6)}
.alert .ico{margin-right:4px}
[data-theme="light"] .i1{color:#7c3aed}[data-theme="light"] .i2{color:#db2777}[data-theme="light"] .i3{color:#0891b2}
[data-theme="light"] .i4{color:#d97706}[data-theme="light"] .i5{color:#16a34a}[data-theme="light"] .i6{color:#2563eb}
[data-theme="light"] .dl-item.soft .ic{color:#fff}

/* shared helpers */
.link{color:#c4b5fd;font-weight:600}
.ok-text{color:#86efac}
.bad-text{color:#fca5a5}
.dl-item.soft{background:rgba(0,0,0,.2)}

/* text that always sits on a dark/gradient surface */
.type-tag,.sale-tag,.avatar,.core,.tag,.checks li::before,.work .info,.btn-primary,.logo-mark{color:#fff}

/* ---------- light palette ---------- */
[data-theme="light"]{
  --bg:#f6f6fb;
  --bg-2:#ffffff;
  --card:#ffffff;
  --card-border:rgba(20,20,60,.10);
  --text:#14141f;
  --muted:#5c5c74;
}
[data-theme="light"] body{background:var(--bg)}
[data-theme="light"] .blob{opacity:.16}
[data-theme="light"] .grid-bg{background-image:linear-gradient(rgba(20,20,60,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(20,20,60,.045) 1px,transparent 1px)}
[data-theme="light"] header.scrolled{background:rgba(255,255,255,.82);box-shadow:0 6px 30px -18px rgba(40,30,90,.35)}
[data-theme="light"] .btn-ghost{background:#fff;box-shadow:0 2px 10px -6px rgba(40,30,90,.25)}
[data-theme="light"] .btn-ghost:hover{background:#f1edff}
[data-theme="light"] .badge{background:#fff}
[data-theme="light"] .marquee-track span{color:rgba(20,20,50,.22)}

[data-theme="light"] .card,
[data-theme="light"] .product,
[data-theme="light"] .post-card,
[data-theme="light"] .faq details,
[data-theme="light"] .dl-item{box-shadow:0 10px 30px -22px rgba(40,30,90,.35)}
[data-theme="light"] .card:hover{background:#fff;box-shadow:0 26px 50px -28px rgba(90,60,200,.45)}
[data-theme="light"] .faq details[open]{background:#f6f2ff}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea{background:#fff}
[data-theme="light"] select option{background:#fff;color:var(--text)}

[data-theme="light"] .hero .bn,
[data-theme="light"] .more,
[data-theme="light"] .small-link a,
[data-theme="light"] .prose a,
[data-theme="light"] .link{color:#6d28d9}
[data-theme="light"] .post-meta .cat{color:#db2777}
[data-theme="light"] label,
[data-theme="light"] .plan li,
[data-theme="light"] .testi blockquote{color:#33334a}
[data-theme="light"] .prose{color:#2c2c40}
[data-theme="light"] .prose code{background:rgba(20,20,60,.06)}

[data-theme="light"] .flash-wrap .alert{background-color:#fff}
[data-theme="light"] .alert-success{color:#15803d;background:#ecfdf3;border-color:#bbf7d0}
[data-theme="light"] .alert-error{color:#b91c1c;background:#fef2f2;border-color:#fecaca}
[data-theme="light"] .alert-info{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}
[data-theme="light"] .pill-pending{color:#b45309;background:#fef3c7}
[data-theme="light"] .pill-approved,[data-theme="light"] .pill-published,[data-theme="light"] .pill-active{color:#15803d;background:#dcfce7}
[data-theme="light"] .pill-rejected,[data-theme="light"] .pill-blocked{color:#b91c1c;background:#fee2e2}
[data-theme="light"] .pill-draft{color:#475569;background:#e2e8f0}
[data-theme="light"] .ok-text{color:#15803d}
[data-theme="light"] .bad-text{color:#b91c1c}

[data-theme="light"] .pay-number{background:#faf7ff}
[data-theme="light"] .pay-methods span{background:#fff}
[data-theme="light"] .pay-methods input:checked+span{background:#fdf2f8}
[data-theme="light"] .dl-item.soft{background:#f6f5fb}
[data-theme="light"] th{background:#f6f5fb}
[data-theme="light"] .table-wrap{background:#fff}
[data-theme="light"] .socials a{background:#fff}
[data-theme="light"] .socials a:hover{color:#fff}
[data-theme="light"] .stats,
[data-theme="light"] .contact-wrap{background:linear-gradient(135deg,#f1ebff,#fdf0f7)}

@media (max-width:760px){
  [data-theme="light"] .nav-links{background:rgba(255,255,255,.98)}
}
