/* Black mode: the dark theme on true black with neutral greys (no blue tint).
   Applies on top of dark.css when <html data-mode="dark" data-tone="black">. */

html[data-mode="dark"][data-tone="black"] {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --raised: #1a1a1a;
  --border: #262626;
  --border-soft: #1c1c1c;
  --text: #ffffff;
  --text-2: #a3a3a3;
  --muted: #8a8a8a;
  --head: #8a8a8a;
  --primary: #8b80ff;
  --primary-h: #a39aff;
  --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow-lg: 0 30px 60px -12px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
}
html[data-mode="dark"][data-tone="black"] .sidebar { background: #000; border-right-color: var(--border); }
html[data-mode="dark"][data-tone="black"] .nav-label,
html[data-mode="dark"][data-tone="black"] input::placeholder,
html[data-mode="dark"][data-tone="black"] textarea::placeholder { color: #5c5c5c; }
html[data-mode="dark"][data-tone="black"] .nav-item:hover { background: rgba(255, 255, 255, .05); }
html[data-mode="dark"][data-tone="black"] .nav-item.active { background: rgba(255, 255, 255, .08); }
html[data-mode="dark"][data-tone="black"] option { background: #111; }

/* hovers and borders that used blue-navy tones */
html[data-mode="dark"][data-tone="black"] .asset-card:hover,
html[data-mode="dark"][data-tone="black"] .kpi:hover { border-color: #3a3a3a; }
html[data-mode="dark"][data-tone="black"] .btn-ghost:hover,
html[data-mode="dark"][data-tone="black"] .chip:hover,
html[data-mode="dark"][data-tone="black"] .look-opt:hover { border-color: #3d3d3d; }
html[data-mode="dark"][data-tone="black"] .btn:disabled { color: #5c5c5c; }
html[data-mode="dark"][data-tone="black"] .grid tbody tr:hover td { background: rgba(255, 255, 255, .03); }
html[data-mode="dark"][data-tone="black"] .kpi-accent { background: linear-gradient(135deg, rgba(83, 58, 253, .2), var(--surface) 70%); border-color: rgba(139, 128, 255, .3); }

/* bars, tracks, tooltips */
html[data-mode="dark"][data-tone="black"] .sp-track,
html[data-mode="dark"][data-tone="black"] .progress,
html[data-mode="dark"][data-tone="black"] .pc-bar,
html[data-mode="dark"][data-tone="black"] .sm-house .track,
html[data-mode="dark"][data-tone="black"] .hm-track { background: #222; }
html[data-mode="dark"][data-tone="black"] .sm-bar .b,
html[data-mode="dark"][data-tone="black"] .sm-bar.on .b { background: #8b80ff; }
html[data-mode="dark"][data-tone="black"] .sm-tip { border-color: #333; }
html[data-mode="dark"][data-tone="black"] .hm-mark { background: #a3a3a3; }
html[data-mode="dark"][data-tone="black"] .hm-fill { background: linear-gradient(90deg, #533afd, #8b80ff); }

/* popup, logo cards, scrollbars */
html[data-mode="dark"][data-tone="black"] .modal { background: rgba(0, 0, 0, .7); }
html[data-mode="dark"][data-tone="black"] .hm-logo img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 24px -8px rgba(0, 0, 0, .9); }
html[data-mode="dark"][data-tone="black"] ::-webkit-scrollbar-track { background: #000; }
html[data-mode="dark"][data-tone="black"] ::-webkit-scrollbar-thumb { background: #2a2a2a; border-color: #000; }

/* BetterInvest logo on black: all white, as the brand guide shows */
html[data-mode="dark"][data-tone="black"] .bi-arrow { fill: #ffffff; }

html[data-mode="dark"][data-tone="black"] .mbar { background: #000; }

html[data-mode="dark"][data-tone="black"] .btn-dark { color: #000000; }
html[data-mode="dark"][data-tone="black"] .btn-dark:hover { background: #e5e5e5; border-color: #e5e5e5; }
