/* Dark mode for the ALFA pages (storefront, Main Store, chat, dashboard, auth). Vendor shops keep their own theme.
   Switched by <html data-mode="dark"> (toggle in the top bar, default = OS setting). */
html[data-mode="dark"] { color-scheme: dark; }
html[data-mode="dark"] body[data-theme="alfa"] {
  --bg: linear-gradient(180deg, #0c1513 0%, #0f1a17 100%);
  --bg-solid: #0d1715;
  --surface: #15211e;
  --surface-2: #1b2925;
  --text: #ece6d6;
  --muted: #a3ada7;
  --primary: #3fbf98;
  --primary-2: #1f5a4a;
  --primary-ink: #08130f;
  --accent: #d9b25e;
  --gold: #d9b25e;
  --gold-2: #f0d48f;
  --ink: #ece6d6;
  --border: #283833;
  --ring: #3fbf98;
  --cloud: #15211e;
  --c1: #1f5a4a; --c2: #8a6a2c; --c3: #1b2925;
  --shadow: 0 10px 28px rgba(0, 0, 0, .45);
  --tile-border: 1px solid #283833;
}
html[data-mode="dark"] body[data-theme="alfa"] .catnav { background: rgba(13, 23, 21, .94); }
html[data-mode="dark"] body[data-theme="alfa"] .hero,
html[data-mode="dark"] body[data-theme="alfa"] .hslide,
html[data-mode="dark"] body[data-theme="alfa"] .cats-head { background: linear-gradient(90deg, #12201c 0%, #1a2a25 50%, #12201c 100%); }
html[data-mode="dark"] body[data-theme="alfa"] .mh-search { background: var(--surface); }
html[data-mode="dark"] body[data-theme="alfa"] .cat-img { background: var(--surface); }
html[data-mode="dark"] body[data-theme="alfa"] .cat-img.offer { background: var(--surface-2); }
html[data-mode="dark"] body[data-theme="alfa"] .h-arrow,
html[data-mode="dark"] body[data-theme="alfa"] .fav { background: rgba(21, 33, 30, .92); color: var(--primary); }
html[data-mode="dark"] body[data-theme="alfa"] .tile,
html[data-mode="dark"] body[data-theme="alfa"] .vtile { background: var(--surface); }
html[data-mode="dark"] body[data-theme="alfa"] .dash-nav .count { background: var(--surface); }
html[data-mode="dark"] body[data-theme="alfa"] .st-new,
html[data-mode="dark"] body[data-theme="alfa"] .st-pending { background: #3a2f12; color: #f0d48f; }
html[data-mode="dark"] body[data-theme="alfa"] .st-cancelled,
html[data-mode="dark"] body[data-theme="alfa"] .st-suspended { background: #3d1a1a; color: #ffb4b4; }
html[data-mode="dark"] body[data-theme="alfa"] .import-note,
html[data-mode="dark"] body[data-theme="alfa"] .import-banner { background: #241e10; border-color: #5a4720; color: #f0deb0; }
html[data-mode="dark"] body[data-theme="alfa"] .t-two .t-txt b { background-image: linear-gradient(90deg, #c9a04e, #f3d27a 50%, #c9a04e); }
html[data-mode="dark"] body[data-theme="alfa"] .ts-medal { box-shadow: 0 0 0 3px #0d1715, 0 0 0 5px #c9a04e, 0 10px 34px rgba(217, 178, 94, .45); }
html[data-mode="dark"] body[data-theme="alfa"] img.logo-dark-fix { filter: brightness(1.1); }

/* Theme toggle in the top bar */
.mode-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: inherit; cursor: pointer; padding: 4px 6px; border-radius: 8px; font-size: 13px; }
.mode-btn:hover { background: rgba(255, 255, 255, .1); }
.mode-btn svg { width: 18px; height: 18px; }
.mode-btn .i-sun { display: none; }
html[data-mode="dark"] .mode-btn .i-sun { display: inline; }
html[data-mode="dark"] .mode-btn .i-moon { display: none; }
.mode-btn .l-light { display: none; }
html[data-mode="dark"] .mode-btn .l-light { display: inline; }
html[data-mode="dark"] .mode-btn .l-dark { display: none; }
@media (max-width: 640px) { .mode-btn > span:last-child { display: none; } }
