/* =========================================================================
   Nexora UI — public website (Site1.Master) and sign-in pages.
   Requires nx-core.css.
   ========================================================================= */

body.nx-site { background: var(--nx-surface); }

/* Header ------------------------------------------------------------------ */
.nx-site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--nx-ink-line);
}
.nx-site-header .navbar { padding: 0; min-height: 72px; }
.nx-site-header .nx-logo img { height: 38px; }
.nx-site-header .nav-link {
  position: relative;
  padding: .5rem .9rem !important;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem; font-weight: 500;
}
.nx-site-header .nav-link:hover, .nx-site-header .nav-link:focus { color: #fff; text-decoration: none; }
.nx-site-header .nav-link.active { color: #fff; }
.nx-site-header .nav-link.active::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -.05rem; height: 2px; border-radius: 2px; background: var(--nx-gold);
}
.nx-site-header .navbar-toggler { border: 1px solid var(--nx-ink-line); color: #fff; padding: .4rem .6rem; font-size: 1.25rem; }
.nx-site-header .navbar-toggler:focus { box-shadow: none; }
.btn-ghost-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .22); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .08); --bs-btn-hover-border-color: rgba(255, 255, 255, .35); }
@media (max-width: 991.98px) {
  .nx-site-header .navbar-collapse { padding: .5rem 0 1.25rem; }
  .nx-site-header .nav-link.active::after { display: none; }
  .nx-site-header .nav-link.active { color: var(--nx-gold); }
}

/* Sections ---------------------------------------------------------------- */
.nx-section { padding: 5.5rem 0; }
.nx-section-sm { padding: 3.5rem 0; }
.nx-section-alt { background: var(--nx-bg); }
.nx-section-ink { background: var(--nx-ink); color: #c7cfdf; }
.nx-section-ink h1, .nx-section-ink h2, .nx-section-ink h3, .nx-section-ink h4 { color: #fff; }
.nx-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nx-gold-text); margin-bottom: .75rem; }
.nx-section-ink .nx-eyebrow, .nx-hero .nx-eyebrow, .nx-page-hero .nx-eyebrow { color: var(--nx-gold); }
.nx-section-title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: .9rem; }
.nx-lead { font-size: 1.075rem; line-height: 1.7; color: var(--nx-muted); }
.nx-section-ink .nx-lead { color: #9aa5bb; }
.nx-section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }

/* Home hero --------------------------------------------------------------- */
.nx-hero {
  position: relative; overflow: hidden;
  padding: 6rem 0 5.5rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(227, 181, 61, .18), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, rgba(29, 78, 216, .22), transparent 60%),
    var(--nx-ink);
  color: #c7cfdf;
}
.nx-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.nx-hero > .container { position: relative; }
.nx-hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.75rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 1.25rem; }
.nx-hero h1 span { color: var(--nx-gold); }
.nx-hero p.nx-lead { color: #a7b1c6; max-width: 560px; margin-bottom: 2rem; }
.nx-hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; font-size: .875rem; color: #a7b1c6; }
.nx-hero-points span { display: inline-flex; align-items: center; gap: .4rem; }
.nx-hero-points .bi { color: var(--nx-gold); }

.nx-glass {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.nx-glass-title { font-size: .8rem; font-weight: 600; color: #8d97ab; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; display: flex; justify-content: space-between; }
.nx-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.nx-kpi { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 1rem; }
.nx-kpi .v { font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nx-kpi .l { font-size: .78rem; color: #8d97ab; margin-top: .3rem; }
.nx-kpi.gold .v { color: var(--nx-gold); }

/* Ticker strip */
.nx-ticker { background: var(--nx-ink-2); border-top: 1px solid var(--nx-ink-line); border-bottom: 1px solid var(--nx-ink-line); min-height: 46px; }

/* Cards ------------------------------------------------------------------- */
.nx-feature {
  height: 100%;
  padding: 1.75rem;
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: 16px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.nx-feature:hover { border-color: rgba(227, 181, 61, .55); box-shadow: var(--nx-shadow); transform: translateY(-2px); }
.nx-feature h3 { font-size: 1.075rem; font-weight: 650; margin: 1.1rem 0 .5rem; }
.nx-feature p { color: var(--nx-muted); margin: 0; font-size: .925rem; line-height: 1.65; }
.nx-feature-icon {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 12px;
  background: var(--nx-gold-soft); color: var(--nx-gold-text);
  font-size: 1.35rem;
}
.nx-section-ink .nx-feature { background: var(--nx-ink-2); border-color: var(--nx-ink-line); }
.nx-section-ink .nx-feature p { color: #9aa5bb; }
.nx-section-ink .nx-feature-icon { color: var(--nx-gold); }

/* Plans */
.nx-plan {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: 18px;
}
.nx-plan.featured { border: 2px solid var(--nx-gold); box-shadow: 0 20px 50px rgba(227, 181, 61, .18); }
.nx-plan-badge { position: absolute; top: -.75rem; left: 1.75rem; padding: .25rem .7rem; border-radius: 99px; background: var(--nx-gold); color: var(--nx-ink); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nx-plan h3 { font-size: 1rem; font-weight: 650; color: var(--nx-muted); margin-bottom: 1rem; }
.nx-plan .price { font-size: 2.5rem; font-weight: 750; letter-spacing: -.02em; line-height: 1; color: var(--nx-text); }
.nx-plan .price small { font-size: .95rem; font-weight: 500; color: var(--nx-muted); letter-spacing: 0; }
.nx-plan p { color: var(--nx-muted); font-size: .9rem; margin: 1rem 0 1.5rem; flex: 1 1 auto; }
.nx-check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.nx-check-list li { display: flex; gap: .6rem; font-size: .925rem; }
.nx-check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--nx-success); flex: 0 0 auto; }

/* Steps */
.nx-steps { counter-reset: step; display: grid; gap: 1rem; }
.nx-step {
  position: relative; counter-increment: step;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: 14px;
}
.nx-step::before {
  content: counter(step);
  position: absolute; left: 1.25rem; top: 1.25rem;
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--nx-ink); color: var(--nx-gold); font-weight: 700; font-size: .9rem;
}
.nx-step h3 { font-size: 1rem; font-weight: 650; margin-bottom: .3rem; }
.nx-step p { margin: 0; color: var(--nx-muted); font-size: .925rem; line-height: 1.6; }

/* Accordion */
.nx-faq .accordion-item { border: 1px solid var(--nx-border); border-radius: 12px !important; overflow: hidden; margin-bottom: .75rem; background: var(--nx-surface); }
.nx-faq .accordion-button { font-weight: 600; padding: 1.1rem 1.25rem; background: var(--nx-surface); color: var(--nx-text); box-shadow: none; }
.nx-faq .accordion-button:not(.collapsed) { color: var(--nx-text); background: var(--nx-surface-2); }
.nx-faq .accordion-body { color: var(--nx-muted); line-height: 1.7; }

/* Data table on marketing pages */
.nx-table-card { border: 1px solid var(--nx-border); border-radius: 16px; overflow: hidden; background: var(--nx-surface); }
.nx-table-card .table > tbody > tr:last-child > * { border-bottom: 0; }
.nx-table-card tfoot td { font-weight: 700; background: var(--nx-gold-soft); }

/* CTA band */
.nx-cta {
  position: relative; overflow: hidden;
  padding: 3rem; border-radius: 22px;
  background: radial-gradient(40rem 20rem at 100% 0, rgba(227, 181, 61, .22), transparent 60%), var(--nx-ink);
  color: #a7b1c6;
}
.nx-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; margin-bottom: .5rem; }
@media (max-width: 575.98px) { .nx-cta { padding: 2rem 1.5rem; } }

/* Inner page hero ----------------------------------------------------------- */
.nx-page-hero {
  padding: 3.75rem 0 3.25rem;
  background: radial-gradient(50rem 20rem at 90% -20%, rgba(227, 181, 61, .16), transparent 60%), var(--nx-ink);
  color: #a7b1c6;
}
.nx-page-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); font-weight: 750; letter-spacing: -.02em; margin: 0 0 .6rem; }
.nx-page-hero p { max-width: 640px; margin: 0; font-size: 1.05rem; }
.nx-page-hero .breadcrumb { --bs-breadcrumb-divider-color: #5d6880; --bs-breadcrumb-item-active-color: #c7cfdf; margin-bottom: 1rem; font-size: .85rem; }
.nx-page-hero .breadcrumb a { color: #8d97ab; }

/* Prose / content pages */
.nx-prose { font-size: 1.0125rem; line-height: 1.8; color: var(--nx-text); }
.nx-prose p { color: #334155; margin-bottom: 1.15rem; }
[data-bs-theme="dark"] .nx-prose p { color: #c7cfdf; }
.nx-prose h2 { font-size: 1.5rem; margin: 2.25rem 0 1rem; }
.nx-prose h3 { font-size: 1.15rem; margin: 1.75rem 0 .75rem; }
.nx-prose ul, .nx-prose ol { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.nx-prose li { margin-bottom: .45rem; color: #334155; }
.nx-prose blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--nx-gold); background: var(--nx-bg); border-radius: 0 12px 12px 0; font-size: 1.1rem; font-style: italic; }

.nx-side-card { position: sticky; top: 96px; padding: 1.5rem; border: 1px solid var(--nx-border); border-radius: 16px; background: var(--nx-bg); }
.nx-side-card h3 { font-size: 1rem; font-weight: 650; margin-bottom: 1rem; }
.nx-side-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.nx-side-nav a { display: flex; align-items: center; justify-content: space-between; padding: .55rem .75rem; border-radius: 8px; color: var(--nx-text); font-size: .9rem; font-weight: 500; }
.nx-side-nav a:hover { background: var(--nx-surface); text-decoration: none; }
.nx-side-nav a.active { background: var(--nx-surface); color: var(--nx-gold-text); box-shadow: var(--nx-shadow-sm); }

.nx-coming { max-width: 560px; margin: 0 auto; padding: 3.5rem 1.5rem; text-align: center; border: 1px dashed var(--nx-border); border-radius: 18px; background: var(--nx-bg); }
.nx-coming .nx-feature-icon { margin-bottom: 1.25rem; }
.nx-coming h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.nx-coming p { color: var(--nx-muted); margin-bottom: 1.5rem; }

/* Contact */
.nx-contact-item { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid var(--nx-border); border-radius: 14px; background: var(--nx-surface); height: 100%; }
.nx-contact-item .nx-feature-icon { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; font-size: 1.15rem; }
.nx-contact-item h3 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--nx-muted); margin: 0 0 .25rem; }
.nx-contact-item p { margin: 0; font-weight: 500; }

/* Forms on public pages */
.nx-form-card { padding: 2.25rem; background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: 20px; box-shadow: var(--nx-shadow); }
@media (max-width: 575.98px) { .nx-form-card { padding: 1.5rem; } }
.nx-form-card .form-control, .nx-form-card .form-select { padding: .7rem .9rem; }
.nx-form-section { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nx-muted); margin: .5rem 0 1rem; padding-top: .5rem; display: flex; align-items: center; gap: .75rem; }
.nx-form-section::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--nx-border); }
.nx-radio-group { display: flex; gap: 1.25rem; padding: .55rem 0; }
.nx-radio-group label, .nx-check label { margin-left: .4rem; font-weight: 500; color: var(--nx-text); }

/* Footer ------------------------------------------------------------------ */
.nx-site-footer { background: var(--nx-ink); color: #8d97ab; padding: 4.5rem 0 0; font-size: .9rem; }
.nx-site-footer h4 { color: #fff; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.nx-site-footer a { color: #a7b1c6; }
.nx-site-footer a:hover { color: #fff; text-decoration: none; }
.nx-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.nx-footer-bottom { margin-top: 3.5rem; padding: 1.5rem 0; border-top: 1px solid var(--nx-ink-line); font-size: .8rem; }
.nx-risk-note { font-size: .78rem; line-height: 1.6; color: #6b7690; max-width: 900px; }

/* Sign-in pages (standalone, no master) ------------------------------------ */
.nx-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--nx-surface); }
.nx-auth-aside {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 3rem;
  background:
    radial-gradient(40rem 26rem at 100% 0, rgba(227, 181, 61, .2), transparent 60%),
    radial-gradient(30rem 20rem at 0 100%, rgba(29, 78, 216, .25), transparent 60%),
    var(--nx-ink);
  color: #a7b1c6;
}
.nx-auth-aside .nx-logo img { height: 56px; }
.nx-auth-aside h2 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 1rem; }
.nx-auth-aside h2 span { color: var(--nx-gold); }
.nx-auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.nx-auth-card { width: 100%; max-width: 400px; }
.nx-auth-card h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: .35rem; }
.nx-auth-card .sub { color: var(--nx-muted); margin-bottom: 2rem; }
.nx-auth-card .form-control { padding: .75rem .95rem; }
.nx-auth-mobile-logo { display: none; background: var(--nx-ink); border-radius: 12px; padding: .75rem 1rem; margin-bottom: 2rem; }
.nx-auth-mobile-logo img { height: 32px; }
@media (max-width: 991.98px) {
  .nx-auth { grid-template-columns: 1fr; }
  .nx-auth-aside { display: none; }
  .nx-auth-mobile-logo { display: inline-block; }
}
.nx-pass-wrap { position: relative; }
.nx-pass-wrap .form-control { padding-right: 2.75rem; }
.nx-pass-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--nx-muted); padding: .35rem; line-height: 1; }

/* Motion: hero ------------------------------------------------------------- */
.nx-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: nx-orb-drift 18s ease-in-out infinite alternate; }
.nx-orb.gold { width: 340px; height: 340px; background: rgba(220, 170, 60, .45); top: -80px; right: 8%; }
.nx-orb.blue { width: 420px; height: 420px; background: rgba(37, 84, 190, .5); bottom: -160px; left: -80px; animation-duration: 22s; }
.nx-orb.navy { width: 260px; height: 260px; background: rgba(96, 140, 255, .25); top: 40%; left: 45%; animation-duration: 26s; }
@keyframes nx-orb-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } 100% { transform: translate(-30px, 10px) scale(.95); } }
.nx-hero::before { animation: nx-grid-pan 40s linear infinite; }
@keyframes nx-grid-pan { to { background-position: 48px 48px, 48px 48px; } }
.nx-hero .nx-glass { animation: nx-float 7s ease-in-out infinite; }
.nx-hero-mark { position: absolute; right: -60px; bottom: -60px; width: 260px; opacity: .07; animation: nx-spin 80s linear infinite; pointer-events: none; }
.nx-kpi { transition: transform .25s, border-color .25s, background .25s; }
.nx-kpi:hover { transform: translateY(-3px); border-color: rgba(220, 170, 60, .5); background: rgba(220, 170, 60, .08); }

/* Motion: cards ------------------------------------------------------------- */
.nx-feature-icon { transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .3s, color .3s; }
.nx-feature:hover .nx-feature-icon { transform: translateY(-3px) rotate(-8deg) scale(1.08); background: var(--nx-gold-gradient); color: var(--nx-ink); }
.nx-feature { position: relative; overflow: hidden; }
.nx-feature::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--nx-gold-gradient); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.nx-feature:hover::after { transform: scaleX(1); }
.nx-plan { transition: transform .3s, box-shadow .3s; }
.nx-plan:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10, 24, 56, .12); }
.nx-plan.featured { border-color: transparent; background: linear-gradient(var(--nx-surface), var(--nx-surface)) padding-box, conic-gradient(from var(--nx-angle, 0deg), #f3d27a, #dcaa3c, #13306b, #dcaa3c, #f3d27a) border-box; animation: nx-spin-angle 6s linear infinite; }
.nx-step { transition: transform .25s, border-color .25s; }
.nx-step:hover { transform: translateX(4px); border-color: rgba(220, 170, 60, .6); }

/* Income plan ---------------------------------------------------------------- */
.nx-status-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 99px; background: rgba(252, 211, 77, .12); border: 1px solid rgba(252, 211, 77, .35); color: #fcd34d; font-size: .8rem; font-weight: 600; }
.nx-figure { position: relative; height: 100%; padding: 1.4rem; border-radius: 16px; background: var(--nx-surface); border: 1px solid var(--nx-border); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.nx-figure:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow); }
.nx-figure .v { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--nx-text); font-variant-numeric: tabular-nums; }
.nx-figure .l { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--nx-muted); margin-bottom: .5rem; padding-right: 2rem; }
.nx-figure .s { font-size: .82rem; color: var(--nx-muted); margin-top: .35rem; }
.nx-figure .ic { position: absolute; right: 1rem; top: 1rem; font-size: 1.6rem; color: var(--nx-gold); opacity: .45; }

/* Cycle flow diagram */
.nx-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; position: relative; }
.nx-flow-step { position: relative; padding: 1.25rem; border-radius: 16px; background: var(--nx-surface); border: 1px solid var(--nx-border); text-align: center; }
.nx-flow-step .nx-feature-icon { margin-bottom: .75rem; }
.nx-flow-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.nx-flow-step p { margin: 0; font-size: .85rem; color: var(--nx-muted); }
.nx-flow-step:not(:last-child)::after { content: "\F138"; font-family: "bootstrap-icons"; position: absolute; right: -1.1rem; top: 50%; transform: translateY(-50%); z-index: 2; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--nx-gold); color: var(--nx-ink); font-size: .9rem; }
@media (max-width: 767.98px) {
  .nx-flow { grid-template-columns: 1fr; }
  .nx-flow-step:not(:last-child)::after { content: "\F128"; right: 50%; top: auto; bottom: -1.1rem; transform: translateX(50%); }
}

/* Day timeline */
.nx-timeline { display: grid; grid-template-columns: repeat(var(--days, 20), minmax(0, 1fr)); gap: 4px; margin: 1.25rem 0 .5rem; }
.nx-timeline span { height: 34px; border-radius: 6px; background: var(--nx-surface-2); border: 1px solid var(--nx-border); transition: transform .2s; }
.nx-timeline span.p { background: var(--nx-navy); border-color: var(--nx-navy); }
.nx-timeline span.g { background: var(--nx-gold); border-color: var(--nx-gold); }
.nx-timeline span.now { transform: scaleY(1.25); box-shadow: 0 0 0 2px var(--nx-surface), 0 0 0 4px var(--nx-gold); }
.nx-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: var(--nx-muted); }
.nx-legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .35rem; vertical-align: -.1em; }
.nx-range { width: 100%; accent-color: var(--nx-gold); }

/* Level ladder */
.nx-ladder { display: grid; gap: .45rem; }
.nx-ladder-row { display: grid; grid-template-columns: 6rem 1fr 4rem 4.5rem; align-items: center; gap: .75rem; font-size: .875rem; }
.nx-ladder-row .lv { font-weight: 600; }
.nx-ladder-row .pct { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.nx-ladder-row .amt { color: var(--nx-muted); text-align: right; font-variant-numeric: tabular-nums; }
.nx-bar { height: 12px; border-radius: 99px; background: var(--nx-surface-2); overflow: hidden; }
.nx-bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--nx-gold-gradient); }
.nx-ladder-row.direct .nx-bar-fill { background: linear-gradient(90deg, #13306b, #2554be); }
@media (max-width: 575.98px) { .nx-ladder-row { grid-template-columns: 4.75rem 1fr 3.5rem; } .nx-ladder-row .amt { display: none; } }

/* Donut */
.nx-donut { --a: 0; --b: 0; width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#13306b 0 calc(var(--a) * 1%), var(--nx-gold) 0 calc((var(--a) + var(--b)) * 1%), var(--nx-surface-2) 0); }
.nx-donut::before { content: ""; grid-area: 1 / 1; width: 150px; height: 150px; border-radius: 50%; background: var(--nx-surface); }
.nx-donut-center { grid-area: 1 / 1; position: relative; text-align: center; }
.nx-donut-center strong { display: block; font-size: 1.8rem; font-weight: 800; }
.nx-donut-center span { font-size: .75rem; color: var(--nx-muted); }

/* Upline chain diagram */
.nx-chain { display: flex; flex-direction: column-reverse; align-items: center; gap: .3rem; }
.nx-chain-node { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: min(100%, 340px); padding: .45rem .85rem; border-radius: 10px; background: var(--nx-surface); border: 1px solid var(--nx-border); font-size: .84rem; }
.nx-chain-node strong { color: var(--nx-gold-text); }
.nx-chain-node.me { background: var(--nx-ink); color: #fff; border-color: var(--nx-ink); }
.nx-chain-node.me strong { color: var(--nx-gold); }
.nx-chain-node.sponsor { border-color: #2554be; box-shadow: inset 3px 0 0 #2554be; }
.nx-chain-arrow { color: var(--nx-gold); font-size: .85rem; line-height: 1; }

/* Calculator */
.nx-calc input[type="number"] { max-width: 6.5rem; }
.nx-calc-total { padding: 1.25rem; border-radius: 14px; background: var(--nx-ink); color: #c7cfdf; }
.nx-calc-total strong { display: block; font-size: 2rem; color: #fff; font-variant-numeric: tabular-nums; }

/* Open questions */
.nx-question { display: flex; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid #fde68a; background: #fffbeb; border-radius: 14px; height: 100%; }
.nx-question .n { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: #f59e0b; color: #fff; font-weight: 700; font-size: .85rem; }
.nx-question h3 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.nx-question p { margin: 0; font-size: .875rem; color: #78350f; }
[data-bs-theme="dark"] .nx-question { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); }
[data-bs-theme="dark"] .nx-question p { color: #fcd34d; }

/* Brand logo sizes */
.nx-site-header .nx-logo img { height: 42px; }
.nx-site-footer .nx-logo img { height: 46px; }
