/* ==========================================================================
   NOVE Funding · night layer
   A dark ground with one lime accent, soft rounded cards and pill controls.
   Loaded LAST on the public site, sign-in, checkout and the client area, so
   it only restyles: every class name, template and script is unchanged.
   Remove the <link> to this file and the site returns to the light look.
   ========================================================================== */
:root, html[data-theme] {
  --night-0: #090b08;      /* page ground */
  --night-1: #121410;      /* card */
  --night-2: #191c17;      /* raised / hover */
  --night-3: #23271f;      /* chips, inputs */
  --lime: #c6f36b;
  --lime-deep: #b2e04f;
  --lime-ink: #10140a;     /* text on lime */

  --background: var(--night-0);
  --surface: var(--night-1);
  --surface-2: var(--night-2);
  --surface-3: var(--night-3);
  --surface-soft: var(--night-2);
  --ink: #f3f5ef;
  --text: #e3e6de;
  --muted: #8f9689;
  --muted-dim: #8d9386;
  --border: rgba(255, 255, 255, .07);
  --border-bright: rgba(255, 255, 255, .14);

  --brand: var(--lime);
  --brand-deep: var(--lime);
  --brand-soft: rgba(198, 243, 107, .12);
  --accent: var(--lime);
  --accent-dim: var(--lime-deep);
  --accent-ink: var(--lime-ink);
  --yellow: var(--lime);
  --yellow-deep: var(--lime-deep);
  --teal: var(--lime);
  --teal-deep: var(--lime-deep);

  --danger: #ff6b6b;
  --danger-bg: rgba(255, 107, 107, .12);
  --warning: #f2c14e;
  --warning-bg: rgba(242, 193, 78, .12);
  --success: var(--lime);
  --success-bg: rgba(198, 243, 107, .1);
  --profit: var(--lime);
  --loss: #ff6b6b;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow-xs: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

html, body { background: var(--night-0); color: var(--text); }
/* the olive glow from the brand art, behind everything */
body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(120, 160, 60, .16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(90, 120, 40, .10), transparent 60%),
    var(--night-0);
  background-attachment: fixed;
}
h1, h2, h3, h4, h5, strong, b { color: var(--ink); }
a { color: inherit; }
.lede, .muted, p.muted, small.muted { color: var(--muted); }
.eyebrow { color: var(--lime); }
::selection { background: var(--lime); color: var(--lime-ink); }
hr { border-color: var(--border); }

/* ---------- surfaces: anything that was white is now a dark card ---------- */
.hero, .hc-hero, .trust-bar, .section, .section-soft, .section-alt,
.client-shell, .shell, .client-main, main { background: transparent; }
.card, .panel, .stat, .table-wrap, .step-card, .chip, .cond, .help-cat, .help-results,
.hc-buy, .hc-sim-card, .newsletter, .cal-day, .score-ring > div, .qr, .modal-box,
.acct-card, .comp-card, .comp-featured, .tool-card, .bias-item, .greet-card,
.portfolio-item, .form-section, .lb-filters, .lb-top, .records, .cal-filters,
.journey-node, .empty, .opt, .buy-head, .top-icon, .timeline-item::before,
.pay-channel, .pay-qr-frame, .pay-upload, .pay-others, .split-pay .total,
.auth-card, .auth-box, .content .panel, .section-soft .panel, .section-alt .panel {
  background: var(--night-1);
  border-color: var(--border);
  color: var(--text);
}
.card, .panel, .stat, .table-wrap, .hc-buy, .hc-sim-card, .acct-card, .comp-card,
.tool-card, .greet-card, .form-section, .lb-top, .records, .empty, .auth-card, .auth-box {
  border-radius: var(--radius-lg);
}
.hc-buy { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- header, sidebar, footer ---------- */
.site-header, .topbar, html[data-theme] .topbar {
  background: rgba(9, 11, 8, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-links a, .site-header a { color: #c9cec2; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after { background: var(--lime); }
.nav-links.open, .site-header .nav-links.open,
:root:lang(sw) .site-header .nav-links.open { background: var(--night-1) !important; }
.sidebar, .client-side, html[data-theme] .sidebar { background: var(--night-1); border-color: var(--border); }
.client-side .side-nav a, .side-nav a { color: #b9bfb2; border-radius: 14px; }
.client-side .side-nav a:hover, .side-nav a:hover { background: var(--night-2); color: var(--ink); }
.side-nav a.active, html[data-theme] .side-nav a.active { background: var(--brand-soft); color: var(--lime); }
.side-nav a.active::before { background: var(--lime); }
.side-btn { color: #b9bfb2; }
/* one look now: the light/dark switch has nothing left to switch */
#themeToggle { display: none !important; }
.site-footer { background: #060705; border-top: 1px solid var(--border); }

/* ---------- brand mark: lime tile instead of red ---------- */
.brand-mark { background: var(--lime) !important; color: var(--lime-ink) !important; box-shadow: 0 0 0 6px rgba(198, 243, 107, .08) !important; }

/* ---------- buttons: pills, lime primary ---------- */
.btn { border-radius: 999px; }
.btn-primary, .btn-buy, .side-buy, html[data-theme] .btn-buy, html[data-theme] .side-buy {
  background: var(--lime); border-color: var(--lime); color: var(--lime-ink);
}
.btn-primary:hover, .btn-buy:hover, .side-buy:hover,
html[data-theme] .btn-primary:hover, html[data-theme] .side-buy:hover {
  background: #d6fa86; border-color: #d6fa86; color: var(--lime-ink);
}
.btn-ghost, .btn-white, .btn-quiet, .pay .btn-ghost, html[data-theme] .btn-ghost {
  background: var(--night-2); border-color: var(--border-bright); color: var(--ink);
}
.btn-ghost:hover, .btn-white:hover, html[data-theme] .btn-ghost:hover { background: var(--night-3); color: var(--ink); }
.btn-dark, .btn-ink { background: var(--night-3); color: var(--ink); border-color: var(--border-bright); }
.hc-buy .btn::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); }

/* segmented choices (Classic / One / Instant, sizes, timeframes) */
.hc-seg button, .seg button, .view-toggle button, .impact-btn, .lb-filters a, .lb-filters button,
.chip, .tabs a, .tabs button, .pill-tabs a {
  background: var(--night-2); color: #c9cec2; border-color: transparent; border-radius: 999px;
}
.hc-seg button.on, .hc-seg button.active, .hc-seg button[aria-pressed="true"],
.seg button.active, .view-toggle button.active, .lb-filters a.active, .lb-filters button.active,
.chip.active, .tabs a.active, .tabs button.active, .pill-tabs a.active, .opt.active, html[data-theme] .opt.active {
  background: var(--lime); color: var(--lime-ink); border-color: var(--lime);
}

/* ---------- forms ---------- */
.input, input.input, select.input, textarea.input,
.desk input, .desk select, html[data-theme] .input {
  background: var(--night-2); color: var(--ink); border-color: var(--border-bright); border-radius: 14px;
}
.input::placeholder { color: var(--muted-dim); }
.input:focus, html[data-theme] .input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198, 243, 107, .14); }
select.input { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23e3e6de' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.switch i { background: var(--night-3); }
.switch i::before { background: #e3e6de; }
.switch input:checked + i { background: var(--lime); }
.cookie-banner { background: var(--night-2); border-color: var(--border-bright); color: var(--text); }

/* ---------- tables ---------- */
table.data th, html[data-theme] table.data th { background: var(--night-2); color: var(--muted); border-color: var(--border); }
table.data td { border-color: var(--border); }
table.data tbody tr:hover, html[data-theme] table.data tbody tr:hover { background: var(--night-2); }

/* ---------- numbers: big, light, tabular like the price cards ---------- */
.stat .v, .number .n, .hc-price strong, .spec-list .v, .meter-head .val { color: var(--ink); font-variant-numeric: tabular-nums; }
.pos, .stat .v.pos, html[data-theme] .pos { color: var(--lime); }
.neg, .stat .v.neg, html[data-theme] .neg { color: var(--loss); }

/* ---------- highlights ---------- */
.hc-hero h1 mark, .hero mark {
  background-image: linear-gradient(to bottom, transparent 17%, var(--lime) 17%, var(--lime) 90%, transparent 90%);
  color: var(--lime-ink);
}
mark { background: var(--lime); color: var(--lime-ink); }
.notice, html[data-theme] .notice { background: var(--brand-soft); color: var(--text); border-color: rgba(198, 243, 107, .2); }
.notice.red, html[data-theme] .notice.red { background: var(--danger-bg); }
.flash-info, html[data-theme] .flash-info { background: var(--night-2); }
.pill-neutral, html[data-theme] .pill-neutral { background: var(--night-3); color: var(--text); }
.tier-pill, html[data-theme] .tier-pill { background: rgba(242, 193, 78, .14); color: #f2c14e; }
.avatar, html[data-theme] .avatar { background: var(--night-3); color: var(--ink); }

/* ---------- charts drawn in SVG ---------- */
.radar .grid, .radar line, .radar polygon.grid { stroke: rgba(255, 255, 255, .1); }
.radar .lbl, html[data-theme] .radar .lbl { fill: var(--muted); }
.radar .area, .radar polygon.val { fill: rgba(198, 243, 107, .18); stroke: var(--lime); }

/* support bubble: lime, not red */
.sc-launcher, .support-launcher, #scLauncher { background: var(--lime) !important; color: var(--lime-ink) !important; }

/* phone: tighter card radius so content keeps its width */
@media (max-width: 640px) {
  :root, html[data-theme] { --radius-lg: 22px; }
}

/* ---------- fixes found on the first screenshots ---------- */
.site-header .btn-primary, .site-header a.btn-primary, .topbar .btn-primary, .topbar a.btn-buy { color: var(--lime-ink) !important; }
.site-header .btn-primary:hover { color: var(--lime-ink) !important; }
/* a chosen option is outlined in lime, not flooded, so its text stays readable */
.opt.active, html[data-theme] .opt.active {
  background: rgba(198, 243, 107, .07); border-color: var(--lime); color: var(--text);
  box-shadow: 0 0 0 1px var(--lime) inset;
}
.opt.active .t, .opt.active strong, .opt.active b { color: var(--ink); }
.badge-new, .opt .badge-new { background: var(--lime); color: var(--lime-ink); }
.hc-seg button { box-shadow: none !important; }
.nsc-bubble { background: var(--lime) !important; color: var(--lime-ink) !important; box-shadow: 0 10px 30px -8px rgba(198, 243, 107, .45) !important; }
.nsc-bubble svg { color: var(--lime-ink); stroke: currentColor; }

/* ---------- contrast on lime surfaces ----------
   Headings and bold text are white by default (above), which made them
   vanish on lime cards, chips and badges. Anything that sits on lime uses
   the dark ink, children included. */
.badge-accent { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.nx-chip.on, .nx-chip.on b { color: var(--lime-ink); }
.nx-chip.on b { opacity: .7; }
:is(.btn-primary, .badge-accent, .badge-new, .kx-mission, .nx-chip.on, .brand-mark, .journey-node.on, .journey-node.active) :is(strong, b, h1, h2, h3, h4, h5, span, small, em, svg) { color: inherit; }
mark { color: var(--lime-ink); }
/* help centre hero kept its old ink background, which is white in night */
.help-hero { background: var(--night-1); color: var(--ink); }
.help-hero h1 { color: var(--ink); }
.help-hero .lede, .help-hero .tiny { color: #c3c8bb; }
.help-hero a { color: #e6e9e1; }
/* secondary text was too dim on near-black */
html[data-theme] { --muted-dim: #8d9386; }
/* a disabled lime button read as faded lime; show it plainly as unavailable */
.btn-primary:disabled, .btn-primary[disabled] { background: var(--night-2); border-color: rgba(255, 255, 255, .14); color: #c3c8bb; opacity: 1; }
