/* ═══════════════════════════════════════════════════════════════════════
   MIZZY SALES — contrast / readability fixes
   Load this LAST on every customer page (after all other stylesheets).
   Fixes text that was the same (or nearly the same) colour as its background.
   ═══════════════════════════════════════════════════════════════════════ */

/* 1. TOP HEADER (.std-header) ───────────────────────────────────────────
   It used an undefined colour variable, so it was always dark even in light
   mode, while the text turned dark too → "Mizzy Sales" and the menu icon
   disappeared. Now it follows the theme. */
html body .std-header {
  background: var(--ms-nav, rgba(11, 15, 25, .94)) !important;
  color: var(--ms-t1, #f0f6fc) !important;
  border-bottom: 1px solid var(--ms-border, #29394f) !important;
}
html body .std-header .std-brand,
html body .std-header .std-brand span {
  color: var(--ms-t1, #f0f6fc) !important;
  -webkit-text-fill-color: var(--ms-t1, #f0f6fc) !important;
}
html body .std-header .std-burger { color: var(--ms-t1, #f0f6fc) !important; }

/* 2. WALLET / BALANCE CARD (Deposit page etc.) ──────────────────────────
   Text was navy (#0b1b3a) on a dark card. Card is now a fixed blue gradient
   with white text, in both light and dark mode. */
html body .wallet-card {
  background: linear-gradient(135deg, #0562d6 0%, #0c3d6f 70%, #071f3d 100%) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
}
html body .wallet-card .wc-brand,
html body .wallet-card .wc-amount,
html body .wallet-card .wc-amount *,
html body .wallet-card .wc-id,
html body .wallet-card .wc-lifetime b { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html body .wallet-card .wc-label,
html body .wallet-card .wc-lifetime { color: rgba(255, 255, 255, .86) !important; -webkit-text-fill-color: rgba(255, 255, 255, .86) !important; }
html body .wallet-card .wc-refresh { color: #ffffff !important; }

/* 3. DEPOSIT PAGE ──────────────────────────────────────────────────────── */
/* sub-header bar was always white (undefined variable) with light text in dark mode */
html body .dep-subnav {
  background: var(--ms-nav, rgba(11, 15, 25, .94)) !important;
  border-bottom-color: var(--ms-border, #29394f) !important;
}
html body .dep-subnav .dep-subnav-title { color: var(--ms-t1, #f0f6fc) !important; }
/* bank name on the blue/purple gradient header */
html body .va-bank-name, html body .va-bank-type { color: #ffffff !important; }
html body .va-status-pill { color: #ffffff !important; background: rgba(255, 255, 255, .18) !important; border-color: rgba(255, 255, 255, .45) !important; }
/* yellow text was unreadable on light backgrounds */
html[data-theme="light"] .how-warning,
html[data-theme="light"] .how-warning b,
html[data-theme="light"] .va-fee-box-title { color: #7a4b00 !important; }
html[data-theme="light"] .dmc-badge-red,
html[data-theme="light"] .dep-unavail-note { color: #b4172b !important; }

/* 4. LIGHT MODE: pale-blue text on white ─────────────────────────────── */
html[data-theme="light"] .mz-see-all,
html[data-theme="light"] .std-rec-head a,
html[data-theme="light"] .step-label,
html[data-theme="light"] .msp-bal,
html[data-theme="light"] .sub-label,
html[data-theme="light"] .wrap label,
html[data-theme="light"] .live-support-status { color: #0066ae !important; }
html[data-theme="light"] .supp-wa { color: #0b6b36 !important; }
html[data-theme="light"] .std-rec-price { color: #15803d !important; }
html[data-theme="light"] .std-rec-body small { color: #52627a !important; }

/* 5. DARK MODE: white text on bright-cyan buttons / dark-blue text on dark ─ */
html[data-theme="dark"] .choice .btn,
html[data-theme="dark"] .msp-tabs button.on,
html[data-theme="dark"] .nav-link.active { color: #04121a !important; }
html[data-theme="dark"] .game-card-btn { background: #7c3aed !important; color: #ffffff !important; }
html[data-theme="dark"] .live-support-status,
html[data-theme="dark"] .tb-back,
html[data-theme="dark"] .stock-chip { color: #5cc8ff !important; }

/* 6. BUY NUMBER 2 (OTP) — navy text was placed on dark background ─────── */
html[data-theme="dark"] .wrap h1,
html[data-theme="dark"] .wrap h2,
html[data-theme="dark"] .wrap .guide-list,
html[data-theme="dark"] .wrap .guide-list li,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .msg { color: #f0f6fc !important; -webkit-text-fill-color: #f0f6fc !important; }

/* 7. BUY NUMBER 1 — pale text on a white card in light mode ───────────── */
html[data-theme="light"] .rules li,
html[data-theme="light"] .rules { color: #2a3348 !important; }
html[data-theme="light"] .bal-card { background: linear-gradient(135deg, #0562d6, #0c3d6f) !important; }
html[data-theme="light"] .bal-card .lbl { color: #e6f4ff !important; }

/* 8. UNDEFINED COLOUR VARIABLE ─────────────────────────────────────────
   site-header.css / dashboard-redesign.css use var(--bg-card, #0f1626) but
   --bg-card was never defined, so the header and the "Your balance" strip were
   always dark, even in light mode, with dark text on top. Defining it fixes
   every place that uses it. */
:root, html[data-theme] { --bg-card: var(--ms-card, #131b2e); }
html body .std-numbal { background: var(--ms-card, #131b2e) !important; border-color: var(--ms-border, #29394f) !important; color: var(--ms-t1, #f0f6fc) !important; }
html body .std-numbal .std-numbal-txt b { color: var(--ms-t1, #f0f6fc) !important; }
html body .std-numbal .std-numbal-txt small { color: var(--ms-t2, #a6b5cb) !important; }
html body .std-numbal .std-numbal-eye { color: var(--ms-t1, #f0f6fc) !important; }

/* 9. MARKETPLACE 1-5 tab switcher: active tab text on cyan ───────────── */
html[data-theme="dark"]  .mkt-page-switch a[aria-current="page"] { color: #04121a !important; }
html[data-theme="light"] .mkt-page-switch a[aria-current="page"] { color: #ffffff !important; background: #0066ae !important; }

/* 10. BOTTOM BAR (Home / Boost / Orders / Wallet / Services) colours ────── */
html[data-theme="dark"]  body nav.ms-dock > .ms-dock-link { color: #a6b5cb !important; }
html[data-theme="dark"]  body nav.ms-dock > .ms-dock-link.active { color: #5cc8ff !important; }
html[data-theme="light"] body nav.ms-dock > .ms-dock-link { color: #52627a !important; }
html[data-theme="light"] body nav.ms-dock > .ms-dock-link.active { color: #0066ae !important; background: rgba(0, 132, 214, .12) !important; }
html[data-theme="light"] body nav.ms-dock { background: rgba(255, 255, 255, .96) !important; }

/* 11. "Shop" tab etc. — white text on bright cyan in light mode ─────────── */
html[data-theme="light"] .msp-tabs button.on { background: #0066ae !important; border-color: #0066ae !important; color: #ffffff !important; }

/* 12. "+ Add funds" button: white text on a too-light cyan end of the gradient */
html body .std-numbal-add { background: linear-gradient(135deg, #0a8fe0, #0066ae) !important; color: #ffffff !important; }
