/* SALSAN: colour overrides only. All original layout rules remain untouched. */
html[data-salsan-theme="light"] {
  color-scheme:light; --black:#f3f6fb; --surface:#fff; --surface-2:#edf3fc;
  --gold:#b18a25; --yellow:#d4af37; --muted:#52647e; --text:#172b4d;
  background:#f3f6fb; color:#172b4d;
}
html[data-salsan-theme="light"] body {background:#f3f6fb;color:#172b4d}
html[data-salsan-theme="light"] :is(.app-shell,.auth-shell,.app-main,.boot-screen){background:#f3f6fb;color:#172b4d}
html[data-salsan-theme="light"] :is(.app-topbar,.sidebar){background:#102f79;color:#fff;border-color:#d4af37}
html[data-salsan-theme="light"] :is(.topbar-title strong,.sidebar-brand strong,.sidebar-brand small,.sidebar nav button,.sidebar-logout,.sidebar .nav-icon){color:#fff}
html[data-salsan-theme="light"] .app-topbar .icon-btn{color:#f5d977}
html[data-salsan-theme="light"] .sidebar nav button.active{background:#214c9c;color:#fff;border-color:#d4af37}
html[data-salsan-theme="light"] .sidebar nav button.active .nav-icon{color:#f5d977}
html[data-salsan-theme="light"] .hero-action{background:linear-gradient(135deg,#176be5,#102f79);color:#fff;border-color:#d4af37;box-shadow:0 8px 18px #102f791c}
html[data-salsan-theme="light"] .hero-action.withdrawal{background:linear-gradient(135deg,#ffe6a0,#d4af37);color:#102f79}
html[data-salsan-theme="light"] .dark-action{background:#fff;color:#102f79;border-color:#d4af37;box-shadow:0 8px 18px #102f7914}
html[data-salsan-theme="light"] .hero-action .action-symbol{background:#fff;color:#102f79;border-color:#d4af37}
html[data-salsan-theme="light"] .dark-action .action-symbol{background:#f8e5a8;color:#102f79;border-color:#d4af37}
html[data-salsan-theme="light"] .promo-card{background:linear-gradient(135deg,#fff8e3,#fff);border-color:#d4af37;color:#102f79;box-shadow:0 5px 18px #102f7910}
html[data-salsan-theme="light"] .promo-card .eyebrow{color:#795800}
html[data-salsan-theme="light"] :is(.promo-card h2,.promo-card p){color:#102f79}
html[data-salsan-theme="light"] .promo-code{background:#fff;color:#b42318;border-color:#d4af37}
html[data-salsan-theme="light"] :is(.promo-code span,.promo-card p strong){color:#b42318}
html[data-salsan-theme="light"] .promo-platforms a{background:linear-gradient(135deg,#ffe6a0,#d4af37);color:#102f79}
html[data-salsan-theme="light"] :is(.auth-card,.gold-form,.compact-form,.list-card,.help-disclosure,.guide-card,.guide-step,.empty-card,.notice-card,.social-link,.share-app,.referral-balance,.ad-card,.app-modal,.modal-card,.toast,.thread,.transaction-summary,.ussd-popup,.transaction-success-popup){background:#fff;color:#172b4d;border-color:#c9d7ec;box-shadow:0 5px 18px #102f7910}
html[data-salsan-theme="light"] :is(.page-heading h1,.section-heading h2,.list-card h3,.guide-card h3,.modal-card h2,.auth-card h1,.share-app,.social-link strong,.referral-balance strong){color:#102f79}
html[data-salsan-theme="light"] :is(.page-heading small,.list-card small,.social-link small,.auth-intro,.meta-grid b,.summary-grid b,.amount-note,.bubble time){color:#52647e}
html[data-salsan-theme="light"] :is(.gold-form label,.compact-form label,.auth-form label,.modal-form label,.visual-choice legend,.help-disclosure summary){color:#172b4d}
html[data-salsan-theme="light"] :is(input:not([type=radio]):not([type=checkbox]),textarea,select){background:#fff;color:#172b4d;border-color:#b9cbe3}
html[data-salsan-theme="light"] :is(input[readonly],input:disabled,textarea[readonly],select:disabled){background:#edf2f8;color:#52647e;border-color:#c9d7ec}
html[data-salsan-theme="light"] :is(input,textarea)::placeholder{color:#65758b}
html[data-salsan-theme="light"] :is(.primary-btn,.copy-row button){background:#102f79;color:#fff;border-color:#102f79}
html[data-salsan-theme="light"] :is(.secondary-btn,.ghost-btn,.small-btn,.back-link,.back-home,.modal-close,.card-actions button:not(.danger),.quick-amounts button){background:#fff;color:#102f79;border-color:#b9cbe3}
html[data-salsan-theme="light"] .card-actions .danger{background:#fff1f0;color:#a61b1b;border-color:#f1b8b8}
html[data-salsan-theme="light"] .visual-choice-row label span{background:#f3f6fb;color:#102f79;border-color:#c9d7ec}
html[data-salsan-theme="light"] .visual-choice-row input:checked+span{background:#fff7dc;color:#102f79;border-color:#b18a25}
html[data-salsan-theme="light"] :is(.unread-card,.highlight,.notice,.summary-warning){background:#fff8e5;color:#694d00;border-color:#d4af37}
html[data-salsan-theme="light"] :is(.meta-grid>div,.summary-grid>div,.help-panel,.automatic-payment-state){background:#edf3fc;color:#172b4d;border-color:#c9d7ec}
html[data-salsan-theme="light"] .bubble.admin{background:#edf3fc;color:#172b4d;border-color:#c9d7ec}
html[data-salsan-theme="light"] .bubble.client{background:#dce9fc;color:#102f79;border-color:#b9cbe3}
html[data-salsan-theme="light"] .bottom-nav{background:#fff;border-color:#c9d7ec}
html[data-salsan-theme="light"] .bottom-nav button{color:#52647e}
html[data-salsan-theme="light"] .bottom-nav button.active{color:#102f79;background:none}
html[data-salsan-theme="light"] .bottom-nav button.active .nav-icon{background:#f8e5a8;color:#102f79}
html[data-salsan-theme="light"] :is(button,a,input,select,textarea):focus-visible{outline-color:#176be5}
/* Do not override existing status colours, logos or WhatsApp branding. */

/* V2: dedicated appearance control, independent of logout styling. */
#sidebar #salsan-theme-toggle {
  display:flex!important; visibility:visible!important; opacity:1!important;
  align-items:center; gap:10px; width:100%; min-height:44px;
  margin:0; padding:9px 12px; flex:none; text-align:left;
  font:inherit; font-weight:700; cursor:pointer; border-radius:10px;
  background:#171c21; border:1px solid #e6a500; color:#ffda3e;
}
#sidebar #salsan-theme-toggle .theme-icon {font-size:20px; line-height:1; flex:none; width:24px; text-align:center}
#sidebar #salsan-theme-toggle .theme-label {white-space:normal; overflow-wrap:anywhere}
html[data-salsan-theme="light"] #sidebar #salsan-theme-toggle {background:#214c9c; border-color:#d4af37; color:#fff}
/* Correct WhatsApp branding in both themes; preserve its existing geometry and visibility rules. */
html body #whatsapp-fab {background:#25d366!important; color:#fff!important; border-color:#25d366!important}
html body #whatsapp-fab svg, html body #whatsapp-fab svg path {fill:#fff!important; stroke:none!important}
