/* ===== THÈME CLAIR (activé dans Réglages) — mêmes rouges, fond blanc cassé ===== */
html[data-theme="light"] {
    --bg: #f6f4f4;
    --bg-2: #f1eeee;
    --card: #ffffff;
    --card-2: #f7f3f3;
    --border: #e6e0e0;
    --border-2: #d9d1d1;
    --text: #1b1415;
    --muted: #6b6264;
    --faint: #9a9193;
    --blue: var(--acc-mid);
    --cyan: var(--acc-mid);
    --orange: #d9711f;
    --red: #d6283a;
    --green: #17a35a;
    --amber: #b7790c;
    --glow-blue: 0 6px 18px rgb(var(--acc-rgb) / .22);
    --btn-shadow: 0 6px 16px rgb(var(--acc-rgb) / .28), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .18);
    color-scheme: light;
}
html[data-theme="light"] body {
    background:
        radial-gradient(55% 45% at 0% 0%, rgb(var(--acc-rgb) / .07), transparent 70%),
        radial-gradient(45% 40% at 100% 100%, rgb(var(--acc-rgb) / .05), transparent 70%),
        var(--bg);
}
html[data-theme="light"] .sidebar { background: rgba(255, 255, 255, .92); }
html[data-theme="light"] .nav-item:hover { background: rgb(var(--acc-rgb) / .06); }
html[data-theme="light"] .nav-item.active { color: var(--blue); background: linear-gradient(90deg, rgb(var(--acc-rgb) / .12), rgb(var(--acc-rgb) / .03)); border-color: rgb(var(--acc-rgb) / .3); }
html[data-theme="light"] .btn-ghost { background: #fff; }
html[data-theme="light"] .btn-danger { color: #c4192a; background: rgba(214, 40, 58, .06); }
html[data-theme="light"] .card { background: #fff; box-shadow: 0 1px 2px rgba(27, 20, 21, .04), 0 6px 20px rgba(27, 20, 21, .04); }
html[data-theme="light"] .row,
html[data-theme="light"] .svc-row { background: var(--card-2); }
html[data-theme="light"] .badge { background: rgb(var(--acc-rgb) / .1); color: #b3141d; }
html[data-theme="light"] .badge.expired { background: rgba(214, 40, 58, .1); color: #c4192a; }
html[data-theme="light"] .badge.ok { background: rgba(23, 163, 90, .12); color: #11804a; }
html[data-theme="light"] .badge.soon { background: rgba(183, 121, 12, .12); color: #94600a; }
html[data-theme="light"] .badge.wait { background: rgba(217, 113, 31, .12); color: #b05a14; }
html[data-theme="light"] .svc-tab .count { background: rgba(27, 20, 21, .07); }
html[data-theme="light"] .svc-tab.active { color: var(--blue); background: linear-gradient(135deg, rgb(var(--acc-rgb) / .1), rgb(var(--acc-rgb) / .03)); }
html[data-theme="light"] .account-head { background: var(--card-2); }
html[data-theme="light"] .mini-btn:hover,
html[data-theme="light"] .add-account:hover { color: var(--text); }
html[data-theme="light"] .account.dragging { box-shadow: 0 18px 40px rgba(27, 20, 21, .18), 0 0 0 1px var(--cyan); }
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea { background: #fff; }
html[data-theme="light"] select option { background: #fff; }
html[data-theme="light"] .overlay { background: rgba(27, 20, 21, .38); }
html[data-theme="light"] .sheet { background: #fff; box-shadow: 0 30px 80px rgba(27, 20, 21, .2); }
html[data-theme="light"] .toast { background: #fff; box-shadow: 0 10px 30px rgba(27, 20, 21, .14); }
html[data-theme="light"] .gate-card { background: #fff; box-shadow: 0 30px 80px rgba(27, 20, 21, .14); }
html[data-theme="light"] .gate-card a { color: var(--blue); }
html[data-theme="light"] .gate-err { color: #c4192a; }
html[data-theme="light"] .adm-avatar .dot { background: #c9c2c3; }
@media (max-width: 820px) {
    html[data-theme="light"] .bottom-nav,
    html[data-theme="light"] .bnav { background: rgba(255, 255, 255, .95); }
}

/* Sélecteur de thème (Réglages) */
.theme-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-pick button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--border-2); background: var(--card-2); color: var(--muted); font-weight: 800; font-size: 14px; }
.theme-pick button i { font-size: 26px; }
.theme-pick button.active { border-color: var(--blue); color: var(--text); box-shadow: 0 0 0 1px var(--blue) inset; }
.theme-pick button.active i { color: var(--blue); }
