/* Three selectable visual themes — public pages and admin */
:root{--theme-accent:#8b5cf6;--theme-strong:#6d28d9;--theme-soft:#ede9fe;--theme-surface:#fff;--theme-bg:#faf7ff;--theme-text:#302348;--theme-border:#e9def8;--theme-glow:rgba(139,92,246,.15)}
:root[data-theme="cream"]{--theme-accent:#c99536;--theme-strong:#946418;--theme-soft:#fff1d0;--theme-surface:#fffdfa;--theme-bg:#fff9ef;--theme-text:#3b2c1d;--theme-border:#f1e2c7;--theme-glow:rgba(201,149,54,.13)}
:root[data-theme="blue"]{--theme-accent:#3b82f6;--theme-strong:#1d4ed8;--theme-soft:#dbeafe;--theme-surface:#fff;--theme-bg:#f2f8ff;--theme-text:#1b3658;--theme-border:#d8e8fa;--theme-glow:rgba(59,130,246,.14)}
/* Shop: keep existing layout, update its visual identity */
html[data-theme] body:has(#effects){background:radial-gradient(ellipse at 18% 5%,var(--theme-glow),transparent 48%),linear-gradient(135deg,var(--theme-bg),var(--theme-surface));color:var(--theme-text)}
html[data-theme] body:has(#effects) :is(.price-card,.plan,.card,.step,.faq-item){border-color:var(--theme-border)}
html[data-theme] body:has(#effects) :is(button,.btn,a){transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,transform .2s}
html[data-theme] body:has(#effects) :is(button:focus-visible,a:focus-visible,input:focus-visible){outline:3px solid var(--theme-accent);outline-offset:3px}
/* Payment: override its existing gold token system */
html[data-theme] .pay-page{--ink:var(--theme-text);--gold:var(--theme-strong);--line:var(--theme-border);--muted:#788397}
html[data-theme] body:has(.pay-page){background:radial-gradient(ellipse at 50% 0,var(--theme-glow),transparent 55%),var(--theme-bg);color:var(--theme-text)}
html[data-theme] .pay-page :is(.pay-panel,.pay-qr-wrap){border-color:var(--theme-border)}
html[data-theme] .pay-page :is(.pay-eyebrow,.pay-spark,.pay-amount,.pay-required){color:var(--theme-strong)}
/* Admin: override dark default and apply consistent light theme */
html[data-theme] body:has(.admin-shell){background:var(--theme-bg);color:var(--theme-text)}
html[data-theme] body:has(.admin-shell) .topbar,html[data-theme] body:has(.admin-shell) footer{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme] .admin-sidebar{background:var(--theme-surface);border-color:var(--theme-border);box-shadow:0 14px 45px var(--theme-glow)}
html[data-theme] .admin-sidebar .brand{color:var(--theme-text)}
html[data-theme] .admin-sidebar .brand b,html[data-theme] .eyebrow,html[data-theme] .top a,html[data-theme] .pager a{color:var(--theme-strong)}
html[data-theme] .admin-sidebar .brand small,html[data-theme] .muted,html[data-theme] .kpis small{color:#718096}
html[data-theme] .admin-sidebar nav a,html[data-theme] .admin-sidebar .logout{background:var(--theme-bg);color:var(--theme-text);border:1px solid var(--theme-border)}
html[data-theme] .admin-sidebar nav a:hover{background:var(--theme-soft);color:var(--theme-strong)}
html[data-theme] .kpis article,html[data-theme] .panel{background:var(--theme-surface);border-color:var(--theme-border);box-shadow:0 7px 25px rgba(31,41,55,.035)}
html[data-theme] .kpis strong{color:var(--theme-strong)}
html[data-theme] .admin-content :is(input,select,textarea){background:#fff;color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme] .admin-content :is(button,.btn){background:var(--theme-accent);color:#fff}
html[data-theme] .admin-content .secondary{background:var(--theme-soft);color:var(--theme-strong)}
html[data-theme] .admin-content .danger{background:#b91c1c;color:#fff}
html[data-theme] .admin-content :is(th,td){border-bottom-color:var(--theme-border);color:var(--theme-text)}
html[data-theme] .admin-content th{background:var(--theme-bg);color:#536173}
html[data-theme] .admin-content td a{color:var(--theme-strong)}
html[data-theme] .chart-bars span{background:linear-gradient(180deg,var(--theme-accent),var(--theme-strong))}
html[data-theme] .chart-bars small{color:#718096}
.theme-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:4px 0 22px}
.theme-option{display:flex;flex-direction:column;gap:10px;padding:18px;border:2px solid var(--theme-border);border-radius:16px;cursor:pointer;background:#fff;color:#273244}
.theme-option:has(input:checked){border-color:var(--theme-accent);box-shadow:0 0 0 3px var(--theme-glow)}
.theme-option input{accent-color:var(--theme-accent);width:18px;height:18px}
.theme-option strong{font-size:16px}.theme-option small{color:#64748b}
.theme-swatch{display:flex;gap:8px;padding:12px;border-radius:12px;background:#f6f3ff}
.theme-swatch i{display:block;height:36px;flex:1;border-radius:8px;background:#8b5cf6}.theme-swatch i:nth-child(2){background:#ddd6fe}.theme-swatch i:nth-child(3){background:#fff}
.theme-option-cream .theme-swatch{background:#fff8e8}.theme-option-cream .theme-swatch i:first-child{background:#c99536}.theme-option-cream .theme-swatch i:nth-child(2){background:#fce9c1}
.theme-option-blue .theme-swatch{background:#edf6ff}.theme-option-blue .theme-swatch i:first-child{background:#3b82f6}.theme-option-blue .theme-swatch i:nth-child(2){background:#bfdbfe}
@media(max-width:700px){.theme-picker{grid-template-columns:1fr}}
