/* Public marketing site (layouts/site.php + home.php). Plain CSS, scoped with the
   ns- prefix, because app.css is a prebuilt Tailwind bundle that only contains the
   classes the portal already used. */

:root {
    --ns-ink: #0b1220;
    --ns-ink-2: #334155;
    --ns-muted: #64748b;
    --ns-faint: #94a3b8;
    --ns-line: #e2e8f0;
    --ns-soft: #f6f8fa;
    --ns-brand: #059669;
    --ns-brand-dark: #047857;
    --ns-brand-tint: #ecfdf5;
    --ns-mark: #a7f3d0;
    --ns-dot: #f59e0b;
    --ns-code-bg: #0b1324;
    --ns-page: #fff;
    --ns-surface: #fff;
    --ns-header-bg: rgba(255,255,255,.88);
    --ns-overlay: rgba(255,255,255,.45);
    --ns-input-line: #d5dde8;
    --ns-line-2: #cbd5e1;
    --ns-line-soft: #eef2f6;
    --ns-hover: #fafcfd;
    --ns-dim: #8a9bb4;
    --ns-panel: #059669;
    --ns-btn: #059669;
    --ns-btn-hover: #047857;
    --ns-btn-active: #065f46;
    --ns-rgb: 5,150,105;
    --ns-line-brand: #6ee7b7;
    --ns-chart: #34d399;
    color-scheme: light;
}

/* Dark theme: <html class="dark">, set by assets/theme.js from the toggle (saved per browser).
   app.css's own dark: variants switch on from the same class, so inner pages follow too. */
html.dark {
    --ns-ink: #e7edf5;
    --ns-ink-2: #c2cdda;
    --ns-muted: #93a1b5;
    --ns-faint: #66758a;
    --ns-line: #1e293b;
    --ns-soft: #0a101c;
    --ns-brand: #34d399;
    --ns-brand-dark: #6ee7b7;
    --ns-brand-tint: rgba(52,211,153,.12);
    --ns-mark: rgba(52,211,153,.32);
    --ns-code-bg: #050a14;
    --ns-page: #070c17;
    --ns-surface: #0f1726;
    --ns-header-bg: rgba(7,12,23,.86);
    --ns-overlay: rgba(2,6,15,.55);
    --ns-input-line: #2a3649;
    --ns-line-2: #334155;
    --ns-line-soft: #18212f;
    --ns-hover: #131d2e;
    --ns-dim: #5f6f86;
    --ns-panel: #047857;
    --ns-btn: #059669;
    color-scheme: dark;
}

/* ---------- BlissPayout brand (APP_BRAND=blisspayout; layouts set data-brand on <html>) ----------
   Indigo with the amber spark from the logo. The Tailwind emerald scale used across the
   older portal pages is remapped too, so links and accents follow the brand everywhere. */
html[data-brand="blisspayout"] {
    --ns-brand: #4f46e5;
    --ns-brand-dark: #4338ca;
    --ns-brand-tint: #eef2ff;
    --ns-mark: #c7d2fe;
    --ns-panel: #4338ca;
    --ns-btn: #4f46e5;
    --ns-btn-hover: #4338ca;
    --ns-btn-active: #3730a3;
    --ns-rgb: 79,70,229;
    --ns-line-brand: #a5b4fc;
    --ns-chart: #818cf8;
    --color-emerald-50: #eef2ff;
    --color-emerald-100: #e0e7ff;
    --color-emerald-200: #c7d2fe;
    --color-emerald-300: #a5b4fc;
    --color-emerald-400: #818cf8;
    --color-emerald-500: #6366f1;
    --color-emerald-600: #4f46e5;
    --color-emerald-700: #4338ca;
    --color-emerald-800: #3730a3;
    --color-emerald-900: #312e81;
}
html.dark[data-brand="blisspayout"] {
    --ns-brand: #a5b4fc;
    --ns-brand-dark: #c7d2fe;
    --ns-brand-tint: rgba(129,140,248,.14);
    --ns-mark: rgba(129,140,248,.34);
    --ns-panel: #3730a3;
    --ns-btn: #4f46e5;
    --ns-btn-hover: #4338ca;
    --ns-line-brand: #6366f1;
}
html[data-brand="blisspayout"] .ns-panel-brand-gradient,
html[data-brand="blisspayout"] .ns-auth-panel,
html[data-brand="blisspayout"] .ns-today,
html[data-brand="blisspayout"] .ns-cta,
html[data-brand="blisspayout"] .ns-preview { background: linear-gradient(135deg, #5b4cf0 0%, #4338ca 60%, #3b2fb0 100%); }
/* "Success" stays green whatever the brand colour is. */
html[data-brand="blisspayout"] :is(.badge-success, .badge-active, .badge-delivered, .delta-up) { background: #ecfdf5; color: #047857; }
html[data-brand="blisspayout"] .alert-success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
html.dark[data-brand="blisspayout"] :is(.badge-success, .badge-active, .badge-delivered, .delta-up) { background: rgba(16,185,129,.12); color: #6ee7b7; }
html.dark[data-brand="blisspayout"] .alert-success { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.08); color: #6ee7b7; }

/* SVG logo mark (partials/logo.php): the SVG carries its own rounded background. */
.ns-logo-mark.ns-logo-mark-svg { width: 34px; height: 34px; padding: 0; background: none !important; border-radius: 10px; }
.ns-logo-mark-svg svg { display: block; width: 100%; height: 100%; }
.ns-wordmark { white-space: nowrap; }
html[data-brand="blisspayout"] .ns-logo { letter-spacing: -.02em; font-weight: 800; }
html.dark body { background: var(--ns-page); }
html.dark body.ns-app { background: var(--ns-soft); }
html.dark .ns-btn-primary:hover, html.dark .btn-primary:hover { background: var(--ns-btn-hover); border-color: var(--ns-btn-hover); }
html.dark .ns-btn-light { background: #fff; color: var(--ns-btn-hover) !important; }
html.dark .ns-logo-mark-dark, html.dark .ns-avatar-dark { background: #e7edf5; color: #070c17; }
html.dark .ns-pay, html.dark .ns-auth-sample, html.dark .ns-today-list { box-shadow: 0 24px 48px -24px rgba(0,0,0,.7); }
html.dark .ns-auth-sample-head .ns-pill { background: var(--ns-soft); }
/* White marks on a brand fill need the deeper green in dark mode for contrast. */
html.dark .ns-logo-mark:not(.ns-logo-mark-dark):not(.ns-logo-mark-svg), html.dark .ns-step-dot:not(.is-pending),
html.dark .ns-faq details[open] summary::after { background: var(--ns-btn); border-color: var(--ns-btn); }
html.dark .ns-today-list .badge, html.dark .table-base .badge { filter: saturate(1.1); }

/* Theme toggle button (partials/theme_toggle.php) */
.ns-theme { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ns-line); border-radius: 10px; background: var(--ns-surface); color: var(--ns-muted); cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
.ns-theme:hover { color: var(--ns-ink); border-color: var(--ns-line-2); }
.ns-theme svg { width: 18px; height: 18px; }
.ns-theme .ns-sun { display: none; }
html.dark .ns-theme .ns-sun { display: block; }
html.dark .ns-theme .ns-moon { display: none; }
.ns-side-head-actions { display: flex; align-items: center; gap: 8px; }

.ns { color: var(--ns-ink); background: var(--ns-page); font-family: Inter, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.ns *, .ns *::before, .ns *::after { box-sizing: border-box; }
/* :where() keeps this at zero class specificity, so Tailwind colour utilities on
   links inside .ns (support widget, alerts) still win. */
:where(.ns) a { color: inherit; text-decoration: none; }
.ns-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.ns-header { position: sticky; top: 0; z-index: 30; background: var(--ns-header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ns-line); }
.ns-header .ns-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.ns-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.ns-logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ns-brand); color: #fff; font-weight: 800; font-size: 15px; }
.ns-logo b { color: var(--ns-brand); font-weight: 700; }
.ns-nav { display: none; gap: 32px; }
.ns-nav a { font-size: 15px; color: var(--ns-muted); transition: color .15s; }
.ns-nav a:hover { color: var(--ns-ink); }
.ns-actions { display: flex; align-items: center; gap: 18px; }
.ns-login { font-size: 15px; font-weight: 500; color: var(--ns-ink-2); }
.ns-login:hover { color: var(--ns-ink); }
@media (min-width: 860px) { .ns-nav { display: flex; } }

/* Buttons */
.ns-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font-size: 15px; font-weight: 600; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.ns-btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.ns-btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.ns-btn-primary { background: var(--ns-btn); color: #fff !important; }
.ns-btn-primary:hover { background: var(--ns-brand-dark); }
.ns-btn-ghost { color: var(--ns-ink) !important; padding: 0 6px; }
.ns-btn-ghost:hover { color: var(--ns-brand) !important; }
.ns-btn-light { background: #fff; color: var(--ns-brand-dark) !important; }
.ns-btn-light:hover { background: var(--ns-brand-tint); }
.ns-btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff !important; }
.ns-btn-outline-light:hover { background: rgba(255,255,255,.1); }
.ns-btn svg { width: 18px; height: 18px; }

/* Shared type */
.ns-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ns-ink-2); }
.ns-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ns-dot); }
.ns-kicker { font-size: 15px; font-weight: 600; color: var(--ns-brand); }
.ns-h2 { margin: 10px 0 0; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; }
.ns-lead { font-size: 18px; line-height: 1.75; color: var(--ns-ink-2); }
.ns-section { padding: 96px 0; }
.ns-section-soft { background: var(--ns-soft); border-top: 1px solid var(--ns-line); border-bottom: 1px solid var(--ns-line); }
.ns-split { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .ns-split { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Hero */
.ns-hero { padding: 72px 0 88px; }
.ns-hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .ns-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; } .ns-hero { padding: 110px 0 120px; } }
.ns-hero h1 { margin: 22px 0 0; font-size: clamp(42px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; }
.ns-hero h1 .ns-dim { color: var(--ns-dim); }
.ns-mark { position: relative; z-index: 0; white-space: nowrap; }
.ns-mark::after { content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .04em; height: .42em; background: var(--ns-mark); border-radius: 3px; }
.ns-hero .ns-lead { max-width: 560px; margin: 28px 0 0; font-size: 19px; }
.ns-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 40px; }
.ns-checks { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 44px; font-size: 15px; color: var(--ns-ink-2); }
.ns-checks span { display: inline-flex; align-items: center; gap: 8px; }
.ns-checks span::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--ns-brand); border-bottom: 2px solid var(--ns-brand); transform: rotate(-45deg) translateY(-2px); }

/* Sample payment card */
.ns-pay { border: 1px solid var(--ns-line); border-radius: 22px; background: var(--ns-surface); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 48px -24px rgba(15,23,42,.18); overflow: hidden; }
.ns-pay-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; border-bottom: 1px solid var(--ns-line); font-size: 15px; font-weight: 500; }
.ns-pay-top .ns-eyebrow { color: var(--ns-ink-2); }
.ns-pill { font-size: 12px; color: var(--ns-muted); border: 1px solid var(--ns-line); border-radius: 999px; padding: 3px 10px; }
.ns-pay-body { padding: 28px 26px 8px; }
.ns-pay-label { font-size: 15px; color: var(--ns-muted); }
.ns-pay-amt { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.ns-pay-amt small { font-size: 16px; color: var(--ns-muted); }
.ns-pay-amt strong { font-size: 46px; font-weight: 800; letter-spacing: -.04em; }
.ns-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ns-pay-ref { margin-top: 6px; font-size: 14px; color: var(--ns-faint); }
.ns-steps { list-style: none; margin: 28px 0 0; padding: 0; }
.ns-steps li { position: relative; padding: 0 0 24px 46px; }
.ns-steps li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 1px; background: var(--ns-line); }
.ns-steps li:last-child::before { display: none; }
.ns-step-dot { position: absolute; left: 0; top: 0; width: 29px; height: 29px; border-radius: 50%; background: var(--ns-brand); display: flex; align-items: center; justify-content: center; }
.ns-step-dot::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.ns-step-dot.is-pending { background: var(--ns-surface); border: 2px solid var(--ns-dot); }
.ns-step-dot.is-pending::after { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--ns-dot); transform: none; }
.ns-steps strong { display: block; font-size: 16px; font-weight: 600; }
.ns-steps span { display: block; margin-top: 3px; font-size: 14px; color: var(--ns-muted); }
.ns-dest { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--ns-line); border-radius: 12px; font-size: 15px; font-weight: 500; }
.ns-dest em { font-style: normal; display: inline-flex; align-items: center; gap: 10px; }
.ns-dest i { width: 28px; height: 28px; border-radius: 50%; background: var(--ns-brand-tint); color: var(--ns-brand); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; }
.ns-pay-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 26px; border-top: 1px solid var(--ns-line); font-size: 13px; }
.ns-pay-foot code { color: var(--ns-muted); }
.ns-code-200 { display: inline-block; margin-right: 10px; padding: 2px 7px; border-radius: 6px; background: var(--ns-brand-tint); color: var(--ns-brand-dark); font-weight: 600; }
.ns-pay-foot b { font-weight: 500; }

/* Stats strip */
.ns-stats { border-top: 1px solid var(--ns-line); border-bottom: 1px solid var(--ns-line); }
.ns-stats .ns-wrap { display: grid; }
.ns-stat { padding: 40px 0; }
.ns-stat + .ns-stat { border-top: 1px solid var(--ns-line); }
.ns-stat strong { display: block; font-size: 36px; font-weight: 700; letter-spacing: -.03em; }
.ns-stat span { display: block; margin-top: 8px; font-size: 16px; color: var(--ns-muted); }
@media (min-width: 760px) {
    .ns-stats .ns-wrap { grid-template-columns: repeat(3, 1fr); }
    .ns-stat { padding: 48px 40px; }
    .ns-stat:first-child { padding-left: 0; }
    .ns-stat + .ns-stat { border-top: 0; border-left: 1px solid var(--ns-line); }
}

/* How it works */
.ns-how { display: grid; gap: 36px; margin-top: 72px; }
@media (min-width: 760px) { .ns-how { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.ns-how > div { border-top: 1px solid var(--ns-ink); padding-top: 30px; }
.ns-how small { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: var(--ns-faint); }
.ns-how h3 { margin: 20px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.ns-how p { margin: 14px 0 0; font-size: 16px; line-height: 1.75; color: var(--ns-ink-2); }

/* Feature grid */
.ns-features { display: grid; margin-top: 72px; border: 1px solid var(--ns-line); border-radius: 18px; overflow: hidden; background: var(--ns-surface); }
.ns-feature { padding: 40px; border-bottom: 1px solid var(--ns-line); }
.ns-feature:last-child { border-bottom: 0; }
@media (min-width: 760px) {
    .ns-features { grid-template-columns: repeat(2, 1fr); }
    .ns-feature { border-right: 1px solid var(--ns-line); }
    .ns-feature:nth-child(2n) { border-right: 0; }
    .ns-feature:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 1000px) {
    .ns-features { grid-template-columns: repeat(3, 1fr); }
    .ns-feature:nth-child(2n) { border-right: 1px solid var(--ns-line); }
    .ns-feature:nth-child(3n) { border-right: 0; }
    .ns-feature:nth-last-child(-n+3) { border-bottom: 0; }
}
.ns-icon { width: 46px; height: 46px; border-radius: 11px; background: var(--ns-brand-tint); color: var(--ns-brand); display: inline-flex; align-items: center; justify-content: center; }
.ns-icon svg { width: 20px; height: 20px; }
.ns-feature h3 { margin: 26px 0 0; font-size: 19px; font-weight: 600; }
.ns-feature p { margin: 14px 0 0; font-size: 16px; line-height: 1.75; color: var(--ns-muted); }

/* Destinations */
.ns-dests { display: grid; grid-template-columns: 1fr; margin-top: 64px; border: 1px solid var(--ns-line); border-radius: 18px; overflow: hidden; background: var(--ns-surface); }
@media (min-width: 760px) { .ns-dests { grid-template-columns: repeat(3, 1fr); } }
.ns-dests > div { padding: 32px; border-bottom: 1px solid var(--ns-line); }
.ns-dests > div:last-child { border-bottom: 0; }
@media (min-width: 760px) { .ns-dests > div { border-bottom: 0; border-right: 1px solid var(--ns-line); } .ns-dests > div:last-child { border-right: 0; } }
.ns-dests h3 { margin: 20px 0 0; font-size: 19px; font-weight: 600; }
.ns-dests p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--ns-muted); }

/* Developers */
.ns-dev { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .ns-dev { grid-template-columns: .85fr 1.15fr; gap: 80px; } }
.ns-dev-list { margin-top: 40px; border-top: 1px solid var(--ns-line); }
.ns-dev-list > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--ns-line); align-items: center; }
.ns-dev-list strong { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.ns-dev-list strong svg { width: 18px; height: 18px; color: var(--ns-brand); }
.ns-dev-list span { font-size: 15px; line-height: 1.65; color: var(--ns-muted); }
@media (max-width: 520px) { .ns-dev-list > div { grid-template-columns: 1fr; gap: 6px; } }
.ns-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-size: 17px; font-weight: 500; color: var(--ns-brand) !important; }
.ns-link:hover { text-decoration: underline; }
.ns-link svg { width: 16px; height: 16px; }

.ns-code { border-radius: 20px; background: var(--ns-code-bg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(2,6,23,.5); min-width: 0; }
.ns-code-bar { display: flex; align-items: center; gap: 22px; padding: 0 20px; height: 62px; border-bottom: 1px solid rgba(255,255,255,.08); overflow-x: auto; }
.ns-code-dots { display: flex; gap: 7px; flex: none; }
.ns-code-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.ns-code-tab { position: relative; height: 62px; padding: 0 12px; background: none; border: 0; color: rgba(255,255,255,.55); font: 500 15px Inter, system-ui, sans-serif; cursor: pointer; flex: none; }
.ns-code-tab:hover { color: #fff; }
.ns-code-tab.active { color: #fff; }
.ns-code-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ns-dot); }
.ns-code pre { margin: 0; padding: 26px 28px; overflow-x: auto; font: 14px/1.85 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #e2e8f0; }
.ns-code .k { color: #fff; font-weight: 700; }
.ns-code .s { color: #fcd34d; }
.ns-code .p { color: #93c5fd; }
.ns-code-res { border-top: 1px solid rgba(255,255,255,.08); }
.ns-code-res-head { display: flex; align-items: center; gap: 10px; padding: 20px 28px 0; font-size: 14px; color: rgba(255,255,255,.7); }
.ns-code-res-head b { padding: 2px 8px; border-radius: 6px; background: rgba(16,185,129,.18); color: #6ee7b7; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; }
.ns-code .hidden { display: none; }

/* Trust */
.ns-trust { display: grid; gap: 40px; margin-top: 64px; }
@media (min-width: 640px) { .ns-trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ns-trust { grid-template-columns: repeat(4, 1fr); } }
.ns-trust svg { width: 24px; height: 24px; color: var(--ns-ink); }
.ns-trust h3 { margin: 24px 0 0; font-size: 19px; font-weight: 600; }
.ns-trust p { margin: 12px 0 0; font-size: 16px; line-height: 1.75; color: var(--ns-muted); }

/* FAQ */
.ns-faq-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .ns-faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.ns-faq { border-top: 1px solid var(--ns-line); }
.ns-faq details { border-bottom: 1px solid var(--ns-line); }
.ns-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.ns-faq summary::-webkit-details-marker { display: none; }
.ns-faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ns-line); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 400; color: var(--ns-muted); transition: background .15s, color .15s, transform .15s; }
.ns-faq details[open] summary::after { content: "×"; background: var(--ns-brand); border-color: var(--ns-brand); color: #fff; }
.ns-faq details p { margin: -6px 0 0; padding: 0 56px 26px 0; font-size: 16px; line-height: 1.8; color: var(--ns-ink-2); }

/* CTA */
.ns-cta { margin: 0 auto; max-width: 1200px; border-radius: 26px; background: var(--ns-panel); color: #fff; padding: 56px 32px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .ns-cta { grid-template-columns: 1.3fr 1fr; padding: 72px 60px; } }
.ns-cta h2 { margin: 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.ns-cta p { margin: 18px 0 0; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.85); }
.ns-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 1000px) { .ns-cta-actions { justify-content: flex-end; } }
.ns-cta-wrap { padding: 32px 20px 96px; }

/* Footer */
.ns-footer { border-top: 1px solid var(--ns-line); }
.ns-footer-grid { display: grid; gap: 40px; padding: 64px 0; }
@media (min-width: 860px) { .ns-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.ns-footer p { margin: 22px 0 0; max-width: 380px; font-size: 16px; line-height: 1.75; color: var(--ns-muted); }
.ns-footer h4 { margin: 0; font-size: 14px; font-weight: 500; color: var(--ns-faint); }
.ns-footer ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.ns-footer li a { font-size: 16px; color: var(--ns-ink-2); }
.ns-footer li a:hover { color: var(--ns-brand); }
.ns-footer-bottom { border-top: 1px solid var(--ns-line); }
.ns-footer-bottom .ns-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; padding-bottom: 26px; font-size: 14px; color: var(--ns-muted); }
.ns-footer-bottom .ns-eyebrow { font-size: 14px; color: var(--ns-muted); }

/* Grid children default to min-width:auto, so a wide <pre> would stretch the
   page past the phone's width. Let every column shrink and scroll inside. */
.ns-hero-grid > *, .ns-split > *, .ns-dev > *, .ns-faq-grid > *, .ns-how > *, .ns-cta > * { min-width: 0; }
.ns-nowrap { white-space: nowrap; }
.ns-dev .ns-lead { margin: 22px 0 0; }
@media (max-width: 520px) {
    .ns-header .ns-wrap { height: 60px; }
    .ns-actions { gap: 12px; }
    .ns-logo { font-size: 15px; }
    .ns-btn-lg { height: 50px; padding: 0 20px; font-size: 15px; }
    .ns-section { padding: 72px 0; }
    .ns-feature, .ns-dests > div { padding: 30px 24px; }
    .ns-pay-body, .ns-pay-top, .ns-pay-foot { padding-left: 18px; padding-right: 18px; }
    .ns-pay-foot code { font-size: 12px; }
    .ns-faq details p { padding-right: 0; }
}

/* ---------- Log in / register (layouts/auth.php) ---------- */
body.ns { margin: 0; min-height: 100vh; }
.ns-auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ns-auth-switch { font-size: 15px; color: var(--ns-muted); }
.ns-auth-switch a, .ns-auth-alt a { color: var(--ns-brand); font-weight: 500; }
.ns-auth-switch a:hover, .ns-auth-alt a:hover { text-decoration: underline; }

.ns-auth-split { display: grid; min-height: 100vh; }
@media (min-width: 1000px) { .ns-auth-split { grid-template-columns: 1fr 1fr; } }
.ns-auth-left { display: flex; flex-direction: column; padding: 28px 24px; min-width: 0; }
@media (min-width: 640px) { .ns-auth-left { padding: 36px 64px; } }
.ns-auth-form { flex: 1; width: 100%; max-width: 450px; margin: 0 auto; padding: 72px 0 48px; display: flex; flex-direction: column; justify-content: center; }
.ns-auth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ns-muted); }
.ns-auth-lock, .ns-auth-note { display: inline-flex; align-items: center; gap: 8px; }
.ns-auth-lock svg, .ns-auth-note svg { width: 15px; height: 15px; }

.ns-auth-h1 { margin: 18px 0 0; font-size: 34px; line-height: 1.15; letter-spacing: -.03em; font-weight: 700; }
.ns-auth-h1-sm { margin-top: 0; font-size: 30px; }
.ns-auth-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.7; color: var(--ns-muted); }
.ns-auth-alerts { margin-top: 26px; }
.ns-field { margin-bottom: 22px; }
.ns-field label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 500; }
.ns-opt { font-weight: 400; color: var(--ns-faint); }
.ns-input { display: block; width: 100%; height: 54px; padding: 0 18px; border: 1px solid var(--ns-input-line); border-radius: 10px; background: var(--ns-surface); font: 16px Inter, system-ui, sans-serif; color: var(--ns-ink); transition: border-color .15s, box-shadow .15s; }
.ns-input::placeholder { color: var(--ns-faint); }
.ns-input:focus { outline: 0; border-color: var(--ns-brand); box-shadow: 0 0 0 4px rgba(var(--ns-rgb),.14); }
.ns-input-error { border-color: #ef4444; }
.ns-input-error:focus { box-shadow: 0 0 0 4px rgba(239,68,68,.14); }
.ns-pw { position: relative; }
.ns-pw .ns-input { padding-right: 52px; }
.ns-pw-toggle { position: absolute; top: 0; right: 0; width: 52px; height: 54px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ns-faint); cursor: pointer; }
.ns-pw-toggle:hover, .ns-pw-toggle.is-on { color: var(--ns-ink-2); }
.ns-pw-toggle svg { width: 20px; height: 20px; }
.ns-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.ns-strength i { height: 4px; border-radius: 4px; background: var(--ns-line); transition: background .2s; }
.ns-strength[data-level="1"] i:nth-child(-n+1) { background: #ef4444; }
.ns-strength[data-level="2"] i:nth-child(-n+2) { background: var(--ns-dot); }
.ns-strength[data-level="3"] i:nth-child(-n+3) { background: #10b981; }
.ns-strength[data-level="4"] i { background: var(--ns-brand); }
.ns-btn-block { width: 100%; height: 58px; margin-top: 12px; font-size: 16px; }
.ns-auth-alt { margin: 34px 0 0; padding-top: 30px; border-top: 1px solid var(--ns-line); font-size: 16px; color: var(--ns-muted); }

/* Brand panel */
.ns-auth-panel { display: none; position: relative; overflow: hidden; background: var(--ns-panel); color: #fff; padding: 56px 64px; flex-direction: column; justify-content: space-between; gap: 40px; }
@media (min-width: 1000px) { .ns-auth-panel { display: flex; } }
.ns-auth-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 10%, rgba(255,255,255,.16), transparent 70%), radial-gradient(50% 40% at 10% 100%, rgba(0,0,0,.14), transparent 70%); pointer-events: none; }
.ns-auth-panel > * { position: relative; }
.ns-auth-panel .ns-eyebrow { color: rgba(255,255,255,.88); font-size: 16px; }
.ns-auth-sample { align-self: center; width: 100%; max-width: 500px; background: var(--ns-surface); color: var(--ns-ink); border-radius: 18px; padding: 30px; box-shadow: 0 30px 60px -20px rgba(2,44,34,.45); }
.ns-auth-sample-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ns-muted); }
.ns-auth-sample-head .ns-pill { letter-spacing: 0; text-transform: none; background: var(--ns-soft); }
.ns-auth-sample .ns-pay-amt { margin-top: 18px; }
.ns-auth-sample .ns-pay-amt strong { font-size: 52px; font-weight: 800; letter-spacing: -.04em; }
.ns-auth-sample-sub { margin-top: 10px; font-size: 15px; color: var(--ns-muted); padding-bottom: 20px; border-bottom: 1px solid var(--ns-line); }
.ns-auth-sample-sub b { color: var(--ns-brand); font-weight: 600; }
.ns-auth-sample ul { list-style: none; margin: 0; padding: 0; }
.ns-auth-sample li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ns-line); }
.ns-auth-sample li:last-child { border-bottom: 0; padding-bottom: 0; }
.ns-auth-sample li i { width: 9px; height: 9px; border-radius: 50%; background: #10b981; }
.ns-auth-sample li.is-wait i { background: var(--ns-dot); }
.ns-auth-sample strong { display: block; font-size: 16px; font-weight: 500; }
.ns-auth-sample li span { display: block; margin-top: 2px; font-size: 14px; color: var(--ns-faint); }
.ns-auth-sample .r { text-align: right; }
.ns-auth-sample li.is-wait .r span { color: #d97706; }
.ns-auth-panel h2 { margin: 0; font-size: clamp(30px, 2.6vw, 40px); letter-spacing: -.03em; font-weight: 700; }
.ns-auth-under { position: relative; white-space: nowrap; }
.ns-auth-under::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 4px; border-radius: 4px; background: var(--ns-dot); }
.ns-auth-checks { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 26px; font-size: 16px; color: rgba(255,255,255,.9); }
.ns-auth-checks span { display: inline-flex; align-items: center; gap: 10px; }
.ns-auth-checks span::before { content: ""; width: 12px; height: 6px; border-left: 2px solid var(--ns-dot); border-bottom: 2px solid var(--ns-dot); transform: rotate(-45deg) translateY(-2px); }

/* Register: centred card */
.ns-auth-solo { min-height: 100vh; background: var(--ns-soft); display: flex; flex-direction: column; padding: 28px 24px; }
@media (min-width: 640px) { .ns-auth-solo { padding: 32px 40px; } }
.ns-auth-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 0; }
.ns-auth-card { width: 100%; max-width: 580px; background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: 16px; padding: 40px 28px; }
@media (min-width: 640px) { .ns-auth-card { padding: 44px 40px; } }
.ns-auth-note { margin: 28px 0 0; font-size: 14px; color: var(--ns-muted); }

/* Loading overlay while a [data-loading] form submits (see app.js) */
.ns-loading { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: var(--ns-overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ns-loading.is-on { display: flex; }
.ns-loading > div { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 34px; border-radius: 16px; background: var(--ns-surface); box-shadow: 0 20px 50px -20px rgba(15,23,42,.35); font-size: 15px; font-weight: 500; color: var(--ns-ink-2); }
.ns-spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--ns-brand-tint); border-top-color: var(--ns-brand); border-right-color: var(--ns-dot); animation: ns-spin .8s linear infinite; }
@keyframes ns-spin { to { transform: rotate(360deg); } }

/* ---------- Merchant portal shell (layouts/app.php) ---------- */
body.ns-app { margin: 0; background: var(--ns-soft); color: var(--ns-ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.ns-app-grid { min-height: 100vh; }
@media (min-width: 64rem) { .ns-app-grid { display: grid; grid-template-columns: 272px 1fr; } }

.ns-side { background: var(--ns-surface); border-bottom: 1px solid var(--ns-line); padding: 16px 16px 14px; }
@media (min-width: 64rem) {
    .ns-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 26px 18px 22px; border-bottom: 0; border-right: 1px solid var(--ns-line); overflow-y: auto; }
}
.ns-side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.ns-side-nav { flex-direction: column; gap: 2px; margin-top: 14px; }
@media (min-width: 64rem) { .ns-side-nav { flex: 1; margin-top: 0; } }
.ns-side-label { display: block; margin: 18px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ns-faint); }
.ns-side-label:first-child { margin-top: 4px; }
.ns-side .nav-link { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ns-ink-2); text-decoration: none; }
.ns-side .nav-link svg { width: 18px; height: 18px; flex: none; color: var(--ns-faint); }
.ns-side .nav-link:hover { background: var(--ns-soft); color: var(--ns-ink); }
.ns-side .nav-link.active { background: var(--ns-brand-tint); color: var(--ns-brand-dark); font-weight: 600; }
.ns-side .nav-link.active svg { color: var(--ns-brand); }
.ns-side .nav-link.is-locked { color: var(--ns-line-2); cursor: not-allowed; }
.ns-side .nav-link.is-locked:hover { background: none; }
.ns-side-count { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--ns-soft); border: 1px solid var(--ns-line); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ns-ink-2); }
.ns-side-foot { flex-direction: column; gap: 12px; margin-top: 14px; padding: 16px 6px 0; border-top: 1px solid var(--ns-line); }
.ns-side-user { display: flex; align-items: center; gap: 12px; }
.ns-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ns-brand-tint); color: var(--ns-brand-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ns-side-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-side-mail { font-size: 12px; color: var(--ns-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-side-links { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
.ns-side-links a { color: var(--ns-ink-2); text-decoration: none; }
.ns-side-links a:hover, .ns-side-links .link-btn:hover { color: var(--ns-brand); }

.ns-app-main { min-width: 0; padding: 24px 16px 48px; }
@media (min-width: 640px) { .ns-app-main { padding: 32px 28px 56px; } }
@media (min-width: 64rem) { .ns-app-main { padding: 40px 44px 64px; } }
.ns-app-inner { max-width: 1180px; margin: 0 auto; }

/* Shared portal components (card, btn, input, table-base, badge, alert...), used by
   every user, admin and docs page. Kept inside Tailwind's `components` layer so they
   replace app.css's component look while utility classes on the same element
   (mt-4, text-red-600, w-full...) still win, exactly as before. */
@layer components {
    .card { border: 1px solid var(--ns-line); border-radius: 16px; background: var(--ns-surface); box-shadow: none; }
    .card-pad { padding: 24px; }
    @media (min-width: 640px) { .card-pad { padding: 26px 28px; } }

    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--ns-line); border-radius: 10px; background: var(--ns-surface); color: var(--ns-ink); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; box-shadow: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
    .btn:hover { background: var(--ns-soft); border-color: var(--ns-line-2); }
    .btn svg { width: 16px; height: 16px; }
    .btn-primary { background: var(--ns-btn); border-color: var(--ns-btn); color: #fff; }
    .btn-primary:hover { background: var(--ns-brand-dark); border-color: var(--ns-brand-dark); }
    .btn-primary:active { background: var(--ns-btn-active); }
    .btn-danger { color: #dc2626; border-color: #fecaca; }
    .btn-danger:hover { background: #fef2f2; border-color: #fca5a5; }
    .btn-sm { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
    .btn-lg { min-height: 50px; padding: 0 22px; font-size: 15px; }
    .btn-block { width: 100%; }
    .link-btn { color: var(--ns-brand); font-weight: 600; }
    .icon-btn { border-color: var(--ns-line); border-radius: 10px; }

    .field-label { margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--ns-ink); }
    .field-hint { margin-top: 6px; font-size: 13px; color: var(--ns-muted); }
    .field-error { margin-top: 6px; font-size: 13px; color: #dc2626; }
    .input { min-height: 46px; padding: 10px 14px; border: 1px solid var(--ns-input-line); border-radius: 10px; background-color: var(--ns-surface); font-size: 15px; color: var(--ns-ink); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
    .input::placeholder { color: var(--ns-faint); }
    .input:focus { outline: 0; border-color: var(--ns-brand); box-shadow: 0 0 0 4px rgba(var(--ns-rgb),.14); }
    .input-error, .input.input-error { border-color: #ef4444; }

    .table-base { font-size: 14px; }
    .table-base th { padding: 12px 16px; background: var(--ns-soft); border-color: var(--ns-line); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ns-muted); white-space: nowrap; }
    .table-base td { padding: 14px 16px; border-color: var(--ns-line-soft); color: var(--ns-ink-2); }
    .table-base tbody tr { transition: background-color .12s; }
    .table-base tbody tr:hover td { background: var(--ns-hover); }
    .table-base tbody tr:last-child td { border-bottom: 0; }

    .badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
    .delta { padding: 3px 9px; border-radius: 999px; font-size: 12px; }
    .alert { border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.6; }
    .icon-badge { width: 40px; height: 40px; border-radius: 10px; background: var(--ns-brand-tint); color: var(--ns-brand); }
    .icon-badge svg { width: 18px; height: 18px; }
    .icon-badge-lg { width: 48px; height: 48px; border-radius: 12px; }
    .icon-badge-lg svg { width: 22px; height: 22px; }
}

/* Page titles on portal and admin pages are plain <h1 class="text-2xl ..."> */
.ns-app-main h1.text-2xl { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.03em; font-weight: 700; }
.ns-app-main h2.font-semibold { letter-spacing: -.01em; }
.ns-logo-mark-dark, .ns-avatar-dark { background: var(--ns-ink); color: #fff; }
.ns-side-count-warn { background: var(--ns-dot); border-color: var(--ns-dot); color: #fff; }

/* Dashboard page */
.ns-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.ns-page-title { margin: 12px 0 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -.03em; font-weight: 700; }
.ns-page-sub { margin: 8px 0 0; font-size: 16px; color: var(--ns-muted); }
.ns-page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ns-btn-outline { background: var(--ns-surface); border-color: var(--ns-line); color: var(--ns-ink) !important; }
.ns-btn-outline:hover { border-color: var(--ns-line-2); background: var(--ns-soft); }
.ns-app .ns-btn { text-decoration: none; }

.ns-dash-top { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 1100px) { .ns-dash-top { grid-template-columns: 1.05fr 1fr; } }

.ns-today { position: relative; overflow: hidden; border-radius: 20px; background: var(--ns-panel); color: #fff; padding: 28px; }
@media (min-width: 640px) { .ns-today { padding: 32px 34px; } }
.ns-today::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 90% 0%, rgba(255,255,255,.18), transparent 70%); pointer-events: none; }
.ns-today > * { position: relative; }
.ns-today-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.ns-today .delta { background: rgba(255,255,255,.16); color: #fff; letter-spacing: 0; text-transform: none; }
.ns-today-amt { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.ns-today-amt small { font-size: 18px; color: rgba(255,255,255,.75); }
.ns-today-amt strong { font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ns-today-sub { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.8); }
.ns-today-sub b { color: #fff; font-weight: 600; }
.ns-today-empty { margin: 26px 0 0; padding: 18px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 15px; color: rgba(255,255,255,.85); }
.ns-today-list { list-style: none; margin: 24px 0 0; padding: 6px 20px; border-radius: 14px; background: var(--ns-surface); color: var(--ns-ink); }
.ns-today-list li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--ns-line); }
.ns-today-list li:last-child { border-bottom: 0; }
.ns-today-list li i { width: 9px; height: 9px; border-radius: 50%; background: var(--ns-line-2); }
.ns-today-list li.is-success i { background: #10b981; }
.ns-today-list li.is-pending i, .ns-today-list li.is-initiated i { background: var(--ns-dot); }
.ns-today-list li.is-failed i, .ns-today-list li.is-cancelled i, .ns-today-list li.is-timeout i { background: #ef4444; }
.ns-today-list a { display: block; font-size: 15px; font-weight: 500; color: var(--ns-ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-today-list a:hover { color: var(--ns-brand); }
.ns-today-list li > div { min-width: 0; }
.ns-today-list li span { display: block; margin-top: 2px; font-size: 13px; color: var(--ns-faint); }
.ns-today-list .r { text-align: right; }
.ns-today-list .r strong { display: block; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ns-today-list .r .badge { margin-top: 3px; }

.ns-kpis { display: grid; gap: 20px; }
@media (min-width: 640px) { .ns-kpis { grid-template-columns: 1fr 1fr; } }
.ns-kpi { display: flex; flex-direction: column; background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: 18px; padding: 22px 24px; min-width: 0; }
.ns-kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ns-kpi .ns-icon { width: 40px; height: 40px; border-radius: 10px; }
.ns-kpi .ns-icon svg { width: 18px; height: 18px; }
.ns-kpi-label { font-size: 14px; font-weight: 500; color: var(--ns-muted); }
.ns-kpi-value { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ns-kpi-note { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ns-muted); }
.ns-kpi-link { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ns-kpi-link:hover { border-color: var(--ns-line-brand); box-shadow: 0 10px 30px -18px rgba(var(--ns-rgb),.5); }
.ns-kpi-go { font-size: 13px; font-weight: 600; color: var(--ns-brand); }

.ns-panel { background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: 18px; padding: 24px; margin-bottom: 20px; }
@media (min-width: 640px) { .ns-panel { padding: 26px 28px; } }
.ns-panel-flush { padding: 0; overflow: hidden; }
.ns-panel-flush .ns-panel-head { padding: 22px 24px 16px; margin: 0; }
.ns-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ns-panel-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.ns-panel-head > span { font-size: 14px; color: var(--ns-muted); }
.ns-panel-head > span strong { color: var(--ns-ink); font-weight: 600; }
.ns-panel-head > a { font-size: 14px; font-weight: 600; color: var(--ns-brand); text-decoration: none; }
.ns-panel-head > a:hover { text-decoration: underline; }
.ns-panel-empty { padding: 40px 24px; text-align: center; font-size: 15px; color: var(--ns-muted); }
.ns-panel-cta { text-align: center; padding: 56px 24px; }
.ns-panel-cta .ns-icon { margin: 0 auto; }
.ns-panel-cta h3 { margin: 18px 0 0; font-size: 20px; font-weight: 600; }
.ns-panel-cta p { margin: 8px auto 22px; max-width: 420px; font-size: 15px; line-height: 1.7; color: var(--ns-muted); }
.ns-chart svg { display: block; width: 100%; height: 160px; }
.ns-chart-base { stroke: var(--ns-line); }
.ns-chart-bar { fill: var(--ns-chart); transition: fill .15s; cursor: default; }
.ns-chart-bar:hover { fill: var(--ns-brand); }
.ns-chart-zero { fill: var(--ns-line); }
.ns-chart-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--ns-muted); }

/* ---------- Link an account (accounts/create.php) ---------- */
[data-for-type].hidden { display: none !important; }
.ns-back { display: inline-block; margin-bottom: 10px; font-size: 14px; font-weight: 500; color: var(--ns-muted); text-decoration: none; }
.ns-back:hover { color: var(--ns-brand); }
.ns-link-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1100px) { .ns-link-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; } }
.ns-link-main { min-width: 0; }
.ns-step { background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: 18px; padding: 24px; margin-bottom: 18px; }
@media (min-width: 640px) { .ns-step { padding: 28px 30px; } }
.ns-step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.ns-step-num { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ns-brand); color: var(--ns-brand); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.ns-step-head h2 { margin: 3px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.ns-step-head p { margin: 5px 0 0; font-size: 14px; color: var(--ns-muted); }
.ns-type-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .ns-type-grid { grid-template-columns: repeat(3, 1fr); } }
.ns-type { display: block; cursor: pointer; }
.ns-type-card { display: flex; flex-direction: column; height: 100%; padding: 18px; border: 1.5px solid var(--ns-line); border-radius: 14px; background: var(--ns-surface); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.ns-type:hover .ns-type-card { border-color: var(--ns-line-2); }
.ns-type input:checked + .ns-type-card { border-color: var(--ns-brand); background: var(--ns-brand-tint); box-shadow: 0 0 0 3px rgba(var(--ns-rgb),.12); }
.ns-type input:focus-visible + .ns-type-card { box-shadow: 0 0 0 3px rgba(var(--ns-rgb),.35); }
.ns-type-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ns-type-card .ns-icon { width: 42px; height: 42px; border-radius: 11px; }
.ns-type-card .ns-icon svg { width: 19px; height: 19px; }
.ns-type input:checked + .ns-type-card .ns-icon { background: var(--ns-btn); color: #fff; }
.ns-type-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ns-line-2); position: relative; }
.ns-type input:checked + .ns-type-card .ns-type-check { background: var(--ns-btn); border-color: var(--ns-btn); }
.ns-type input:checked + .ns-type-card .ns-type-check::after { content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.ns-type-card strong { font-size: 16px; font-weight: 600; color: var(--ns-ink); }
.ns-type-card > span:last-child { margin-top: 5px; font-size: 13px; line-height: 1.55; color: var(--ns-muted); }
.ns-field-row { margin-bottom: 18px; }
.ns-field-row:last-child { margin-bottom: 0; }
.ns-field-2 { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .ns-field-2 { grid-template-columns: 1fr 1fr; } .ns-field-2 .ns-field-row { margin-bottom: 0; } }
.ns-input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.ns-code-inline { padding: 1px 6px; border-radius: 6px; background: var(--ns-soft); border: 1px solid var(--ns-line); font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ns-ink-2); }
.ns-link-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 6px 0 8px; }
.ns-link-submit span { font-size: 14px; color: var(--ns-muted); }

.ns-link-side { display: grid; gap: 18px; }
@media (min-width: 1100px) { .ns-link-side { position: sticky; top: 28px; } }
.ns-preview { border-radius: 18px; background: var(--ns-panel); padding: 22px; color: #fff; position: relative; overflow: hidden; }
.ns-preview::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, rgba(255,255,255,.18), transparent 70%); pointer-events: none; }
.ns-preview > * { position: relative; }
.ns-preview-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.ns-preview-head .ns-pill { letter-spacing: 0; text-transform: none; border-color: rgba(255,255,255,.3); color: #fff; }
.ns-preview-card { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--ns-surface); color: var(--ns-ink); }
.ns-preview-card .ns-icon { flex: none; }
.ns-preview-card strong { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-preview-card span:not(.ns-icon) { display: block; margin-top: 2px; font-size: 13px; color: var(--ns-muted); }
.ns-preview-rows { margin: 14px 0 0; padding: 4px 16px; border-radius: 14px; background: var(--ns-surface); color: var(--ns-ink); }
.ns-preview-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ns-line); font-size: 14px; }
.ns-preview-rows > div:last-child { border-bottom: 0; }
.ns-preview-rows > div[hidden] { display: none; }
.ns-preview-rows dt { color: var(--ns-muted); }
.ns-preview-rows dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.ns-after { background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: 18px; padding: 22px; }
.ns-after h3 { margin: 0; font-size: 16px; font-weight: 600; }
.ns-after ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.ns-after li { display: flex; gap: 12px; align-items: flex-start; }
.ns-after .ns-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; }
.ns-after .ns-icon svg { width: 16px; height: 16px; }
.ns-after strong { display: block; font-size: 14px; font-weight: 600; }
.ns-after li span:not(.ns-icon) { display: block; margin-top: 3px; font-size: 13px; line-height: 1.55; color: var(--ns-muted); }
.ns-link-docs { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--ns-brand); text-decoration: none; }
.ns-link-docs:hover { text-decoration: underline; }

/* ---------- API docs (docs.php + partials/wallet_docs.php) ---------- */
.ns-docs { max-width: 1240px; margin: 0 auto; padding: 32px 20px 96px; display: grid; gap: 32px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ns-ink); }
@media (min-width: 1000px) { .ns-docs { grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding-top: 48px; } }
html.dark main:has(> .ns-docs) { background: var(--ns-page); }

.ns-docs-nav { min-width: 0; }
@media (min-width: 1000px) { .ns-docs-nav { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; } }
.ns-docs-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--ns-line); border-radius: 10px; background: var(--ns-surface); color: var(--ns-faint); }
.ns-docs-search:focus-within { border-color: var(--ns-brand); box-shadow: 0 0 0 4px rgba(var(--ns-rgb),.12); }
.ns-docs-search svg { width: 17px; height: 17px; flex: none; }
.ns-docs-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 15px Inter, system-ui, sans-serif; color: var(--ns-ink); }
.ns-docs-search input::placeholder { color: var(--ns-faint); }
.ns-docs-group { margin-top: 28px; display: flex; flex-direction: column; }
.ns-docs-group strong { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ns-ink); }
.ns-docs-group a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0 7px 16px; border-left: 1px solid var(--ns-line); font-size: 15px; color: var(--ns-muted); text-decoration: none; transition: color .12s, border-color .12s; }
.ns-docs-group a:hover { color: var(--ns-ink); }
.ns-docs-group a.is-active { color: var(--ns-ink); font-weight: 500; border-left: 2px solid var(--ns-brand); padding-left: 15px; }
.ns-docs-group a em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ns-faint); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ns-docs-group a em.get { color: var(--ns-brand); }
.ns-docs-group.is-empty, .ns-docs-group a[hidden] { display: none; }
.ns-docs-none { margin-top: 24px; font-size: 14px; color: var(--ns-muted); }

/* Body typography. These rules also restyle the Tailwind-classed wallet partial,
   so they are unlayered and use !important where they must beat its utility classes. */
.ns-docs-body { min-width: 0; font-size: 16px; line-height: 1.75; }
.ns-docs-body section { scroll-margin-top: 88px; padding: 44px 0; margin: 0 !important; border-top: 1px solid var(--ns-line) !important; }
.ns-docs-body section.ns-docs-intro { padding-top: 0; border-top: 0 !important; }
.ns-docs-body h1 { margin: 16px 0 0 !important; font-size: clamp(34px, 4vw, 48px) !important; line-height: 1.08 !important; letter-spacing: -.04em; font-weight: 700 !important; color: var(--ns-ink) !important; }
.ns-docs-body h2 { margin: 0 0 16px !important; font-size: 26px !important; line-height: 1.25 !important; letter-spacing: -.025em; font-weight: 700 !important; color: var(--ns-ink) !important; }
.ns-docs-body h3 { scroll-margin-top: 88px; margin: 32px 0 12px !important; font-size: 18px !important; font-weight: 600 !important; color: var(--ns-ink) !important; }
.ns-docs-body p { margin: 0 0 16px !important; color: var(--ns-ink-2) !important; }
.ns-docs-body p a, .ns-docs-body li a, .ns-docs-body dd a { color: var(--ns-brand) !important; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ns-docs-body strong { color: var(--ns-ink) !important; }
.ns-docs-body :not(pre) > code { padding: 2px 6px !important; border-radius: 6px !important; border: 1px solid var(--ns-line); background: var(--ns-soft) !important; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; color: var(--ns-ink) !important; }
.ns-docs-body td code { overflow-wrap: anywhere; }
.ns-docs-body pre { margin: 0 0 18px !important; padding: 20px 22px !important; border-radius: 14px !important; background: var(--ns-code-bg) !important; color: #dbe4ef !important; font: 13.5px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; overflow-x: auto; }
.ns-docs-body .ns-codebox pre { margin: 0 !important; border-radius: 0 0 14px 14px !important; }
.ns-docs-body .overflow-x-auto:has(> .table-base), .ns-docs-table { margin: 0 0 20px !important; border: 1px solid var(--ns-line); border-radius: 14px; overflow-x: auto; background: var(--ns-surface); }
.ns-docs-body .table-base td { vertical-align: top; line-height: 1.6; }
.ns-docs-body .table-base td:first-child { white-space: nowrap; }
/* The wallet partial's own "POST /path" chip */
.ns-docs-body div.inline-flex.font-mono { display: flex !important; width: 100%; margin: 0 0 20px !important; padding: 12px 16px !important; border: 1px solid var(--ns-line); border-radius: 12px !important; background: var(--ns-surface) !important; font-size: 15px !important; color: var(--ns-ink) !important; }
.ns-docs-body div.inline-flex.font-mono > span { padding: 2px 9px; border-radius: 6px; background: #eff6ff; color: #1d4ed8 !important; font-size: 12px; letter-spacing: .04em; }
html.dark .ns-docs-body div.inline-flex.font-mono > span { background: rgba(59,130,246,.15); color: #93c5fd !important; }

.ns-docs-ver { margin-left: 2px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--ns-line); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--ns-muted); }
.ns-docs-lead { margin-top: 18px !important; max-width: 760px; font-size: 19px; line-height: 1.75; }
.ns-docs-base { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; padding: 14px 16px; border: 1px solid var(--ns-line); border-radius: 12px; background: var(--ns-surface); }
.ns-docs-base > span { font-size: 14px; color: var(--ns-muted); }
.ns-docs-body .ns-docs-base > code, .ns-docs-body .ns-ep > code, .ns-docs-body .ns-docs-index a > code { flex: 1; min-width: 0; padding: 0 !important; border: 0 !important; background: none !important; font-size: 15px !important; overflow: hidden; text-overflow: ellipsis; }
.ns-ep-copy { flex: none; margin-left: auto; padding: 5px 12px; border: 1px solid var(--ns-line); border-radius: 8px; background: var(--ns-surface); font: 600 13px Inter, system-ui, sans-serif; color: var(--ns-ink-2); cursor: pointer; }
.ns-ep-copy:hover { border-color: var(--ns-line-2); color: var(--ns-ink); }
.ns-docs-facts { margin: 28px 0 0; border-top: 1px solid var(--ns-line); }
.ns-docs-facts > div { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--ns-line); }
@media (min-width: 640px) { .ns-docs-facts > div { grid-template-columns: 170px 1fr; } }
.ns-docs-facts dt { font-size: 15px; color: var(--ns-muted); }
.ns-docs-facts dd { margin: 0; font-size: 15px; color: var(--ns-ink); }
.ns-docs-index { margin-top: 32px; border-top: 1px solid var(--ns-line); }
.ns-docs-index a { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 6px 14px; padding: 16px 0; border-bottom: 1px solid var(--ns-line); text-decoration: none; color: var(--ns-ink); }
@media (min-width: 640px) { .ns-docs-index a { grid-template-columns: 56px 1fr auto; } }
.ns-docs-body .ns-docs-index a:hover > code { color: var(--ns-brand) !important; }
.ns-docs-index a > span:last-child { grid-column: 2; font-size: 15px; color: var(--ns-muted); }
@media (min-width: 640px) { .ns-docs-index a > span:last-child { grid-column: auto; } }

.ns-ep { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 10px 12px 10px 14px; border: 1px solid var(--ns-line); border-radius: 12px; background: var(--ns-surface); }
.ns-ep-m { flex: none; display: inline-block; min-width: 46px; padding: 3px 0; border-radius: 6px; text-align: center; font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.ns-ep-post { background: #eff6ff; color: #1d4ed8; }
.ns-ep-get { background: var(--ns-brand-tint); color: var(--ns-brand-dark); }
html.dark .ns-ep-post { background: rgba(59,130,246,.15); color: #93c5fd; }

.ns-docs-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.ns-docs-steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 58px; border: 1px solid var(--ns-line); border-radius: 12px; background: var(--ns-surface); color: var(--ns-ink-2); }
.ns-docs-steps li::before { content: counter(s); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--ns-btn); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ns-callout { margin: 4px 0 0; padding: 14px 16px; border: 1px solid #fde68a; border-left: 4px solid var(--ns-dot); border-radius: 10px; background: #fffbeb; font-size: 15px; color: #78350f; }
.ns-docs-body .ns-callout strong { color: #78350f !important; }
html.dark .ns-callout { border-color: rgba(245,158,11,.3); border-left-color: var(--ns-dot); background: rgba(245,158,11,.08); color: #fcd34d; }
html.dark .ns-docs-body .ns-callout strong { color: #fde68a !important; }

.ns-codebox { margin: 0 0 18px; border-radius: 14px; background: var(--ns-code-bg); overflow: hidden; min-width: 0; }
.ns-codebox-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; color: rgba(255,255,255,.62); }
.ns-codebox-bar span:last-child { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: rgba(255,255,255,.4); }
.ns-200, .ns-4xx { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; }
.ns-200 { background: rgba(16,185,129,.18); color: #6ee7b7; }
.ns-4xx { background: rgba(245,158,11,.18); color: #fcd34d; }
.ns-code-pair { display: grid; gap: 0 16px; }
@media (min-width: 1280px) { .ns-code-pair { grid-template-columns: 1fr 1fr; } }
.ns-req, .ns-opt-tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ns-req { background: var(--ns-brand-tint); color: var(--ns-brand-dark); }
.ns-opt-tag { background: var(--ns-soft); color: var(--ns-muted); border: 1px solid var(--ns-line); }
.ns-http { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #fff7ed; color: #c2410c; font: 600 13px ui-monospace, Menlo, Consolas, monospace; }
.ns-http-5 { background: #fef2f2; color: #b91c1c; }
html.dark .ns-http { background: rgba(249,115,22,.14); color: #fdba74; }
html.dark .ns-http-5 { background: rgba(239,68,68,.14); color: #fca5a5; }

/* ---------- Landing hero: animated payment request (app.js adds .is-animating) ---------- */
@keyframes ns-pop { 0% { transform: scale(.55); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes ns-ring { 0% { box-shadow: 0 0 0 0 rgba(245,158,11,.45); } 100% { box-shadow: 0 0 0 10px rgba(245,158,11,0); } }
.ns-pay { transition: box-shadow .5s ease, border-color .5s ease; }
.ns-pay.is-animating .ns-steps li { opacity: .38; transition: opacity .35s ease; }
.ns-pay.is-animating .ns-steps li.is-active,
.ns-pay.is-animating .ns-steps li.is-done { opacity: 1; }
.ns-pay.is-animating .ns-steps li::before { background: linear-gradient(var(--ns-btn), var(--ns-btn)) top / 1px 0 no-repeat, var(--ns-line); transition: background-size .9s ease; }
.ns-pay.is-animating .ns-steps li.is-done::before { background-size: 1px 100%, auto; }
.ns-pay.is-animating .ns-steps li .ns-step-dot { background: var(--ns-surface); border: 2px solid var(--ns-line-2); transition: background-color .25s, border-color .25s; }
.ns-pay.is-animating .ns-steps li .ns-step-dot::after { opacity: 0; }
.ns-pay.is-animating .ns-steps li.is-active .ns-step-dot { border-color: var(--ns-dot); border-top-color: transparent; animation: ns-spin .7s linear infinite, ns-ring 1s ease-out infinite; }
.ns-pay.is-animating .ns-steps li.is-done .ns-step-dot { background: var(--ns-btn); border-color: var(--ns-btn); animation: ns-pop .4s ease; }
.ns-pay.is-animating .ns-steps li.is-done .ns-step-dot::after { opacity: 1; transition: opacity .2s .1s; }
.ns-pay.is-animating .ns-dest { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.ns-pay.is-animating li.is-active .ns-dest, .ns-pay.is-animating li.is-done .ns-dest { opacity: 1; transform: none; }
.ns-pay.is-animating .ns-pay-foot { opacity: .45; transition: opacity .4s ease; }
.ns-pay.is-animating.is-delivered .ns-pay-foot { opacity: 1; }
.ns-pay.is-animating.is-delivered .ns-code-200 { animation: ns-pop .45s ease; }
.ns-pay-state { transition: color .3s; }
.ns-pay.is-animating.is-delivered .ns-pay-state { color: #059669; }
html.dark .ns-pay.is-animating.is-delivered .ns-pay-state { color: #34d399; }
/* "Paid" celebration: a green wave floods the card from the Paid step's dot, a ring and a
   check draw themselves, sparks burst, then the receipt details rise in. */
.ns-pay { position: relative; }
.ns-paid { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 28px; text-align: center; color: #fff; pointer-events: none;
    background: radial-gradient(110% 80% at 50% 28%, #34d399 0%, #10b981 32%, #059669 68%, #047857 100%);
    clip-path: circle(0px at var(--paid-x, 44px) var(--paid-y, 75%));
    transition: clip-path .8s cubic-bezier(.65, 0, .35, 1); }
.ns-paid::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.4px) 0 0 / 18px 18px; -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent); }
.ns-paid::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%); transform: translateX(-60%); }
.ns-pay.is-paid .ns-paid { clip-path: circle(160% at var(--paid-x, 44px) var(--paid-y, 75%)); }
.ns-pay.is-paid .ns-paid::after { animation: ns-sheen 1.4s 1.5s ease-out forwards; }
@keyframes ns-sheen { to { transform: translateX(60%); } }
.ns-paid-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.ns-paid-mark { position: relative; width: 116px; height: 116px; margin-bottom: 22px; transform: scale(.6); opacity: 0; }
.ns-pay.is-paid .ns-paid-mark { animation: ns-mark-in .55s .45s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes ns-mark-in { to { transform: scale(1); opacity: 1; } }
.ns-paid-mark svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.ns-paid-ring { fill: rgba(255,255,255,.14); stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 315; stroke-dashoffset: 315; transform: rotate(-90deg); transform-origin: 60px 60px; }
.ns-paid-tick { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 72; stroke-dashoffset: 72; }
.ns-pay.is-paid .ns-paid-ring { animation: ns-draw .65s .55s ease-out forwards; }
.ns-pay.is-paid .ns-paid-tick { animation: ns-draw .4s 1.1s cubic-bezier(.65, 0, .45, 1) forwards; }
@keyframes ns-draw { to { stroke-dashoffset: 0; } }
.ns-paid-glow { position: absolute; inset: 0; border-radius: 50%; }
.ns-pay.is-paid .ns-paid-glow { animation: ns-glow 1.6s 1.2s ease-out 2; }
@keyframes ns-glow { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { box-shadow: 0 0 0 34px rgba(255,255,255,0); } }
.ns-spark { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0); }
.ns-spark:nth-child(odd) { background: #fde68a; width: 6px; height: 6px; }
.ns-pay.is-paid .ns-spark { animation: ns-spark .9s 1.25s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes ns-spark {
    0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-30px) scale(.4); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(1); }
}
.ns-paid-title, .ns-paid-amt, .ns-paid-meta, .ns-paid-dest, .ns-paid-hook { opacity: 0; transform: translateY(12px); }
.ns-pay.is-paid :is(.ns-paid-title, .ns-paid-amt, .ns-paid-meta, .ns-paid-dest, .ns-paid-hook) { animation: ns-rise .5s ease-out forwards; }
.ns-pay.is-paid .ns-paid-title { animation-delay: 1.3s; }
.ns-pay.is-paid .ns-paid-amt { animation-delay: 1.42s; }
.ns-pay.is-paid .ns-paid-meta { animation-delay: 1.54s; }
.ns-pay.is-paid .ns-paid-dest { animation-delay: 1.66s; }
.ns-pay.is-paid .ns-paid-hook { animation-delay: 1.95s; }
@keyframes ns-rise { to { opacity: 1; transform: none; } }
.ns-paid-title { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.ns-paid-amt { margin-top: 8px; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ns-paid-meta { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.88); }
.ns-paid-meta b { font-weight: 600; color: #fff; }
.ns-paid-dest { margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); font-size: 14px; font-weight: 500; }
.ns-paid-hook { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.85); }
.ns-paid-hook b { margin-right: 6px; padding: 2px 7px; border-radius: 6px; background: #fff; color: #047857; font-weight: 700; }
.ns-pay.is-animating.is-delivered { border-color: var(--ns-line-brand); box-shadow: 0 0 0 5px rgba(var(--ns-rgb),.10), 0 24px 48px -24px rgba(15,23,42,.18); }

/* ---------- Linked accounts (accounts/index.php) ---------- */
.ns-acc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-bottom: 22px; border: 1px solid var(--ns-line); border-radius: 16px; overflow: hidden; background: var(--ns-line); }
@media (min-width: 900px) { .ns-acc-stats { grid-template-columns: repeat(4, 1fr); } }
.ns-acc-stats > div { padding: 18px 22px; background: var(--ns-surface); }
.ns-acc-stats span { display: block; font-size: 13px; color: var(--ns-muted); }
.ns-acc-stats strong { display: block; margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ns-acc-stats small { font-size: 15px; font-weight: 500; color: var(--ns-faint); }

.ns-acc-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ns-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--ns-line); border-radius: 999px; background: var(--ns-surface); font: 500 14px Inter, system-ui, sans-serif; color: var(--ns-ink-2); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.ns-chip span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--ns-soft); font-size: 12px; font-weight: 600; color: var(--ns-muted); }
.ns-chip:hover { border-color: var(--ns-line-2); }
.ns-chip.is-on { border-color: var(--ns-brand); background: var(--ns-brand-tint); color: var(--ns-brand-dark); }
.ns-chip.is-on span { background: var(--ns-btn); color: #fff; }
.ns-acc-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 320px; height: 40px; padding: 0 14px; border: 1px solid var(--ns-line); border-radius: 10px; background: var(--ns-surface); color: var(--ns-faint); }
.ns-acc-search:focus-within { border-color: var(--ns-brand); box-shadow: 0 0 0 4px rgba(var(--ns-rgb),.12); }
.ns-acc-search svg { width: 17px; height: 17px; flex: none; }
.ns-acc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 14px Inter, system-ui, sans-serif; color: var(--ns-ink); }

.ns-acc-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .ns-acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .ns-acc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ns-acc { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: 18px; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ns-acc[hidden] { display: none; }
.ns-acc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ns-btn); opacity: .9; }
.ns-acc.is-pending::before { background: var(--ns-dot); }
.ns-acc.is-off::before { background: var(--ns-line-2); }
.ns-acc:hover { border-color: var(--ns-line-2); box-shadow: 0 14px 34px -22px rgba(15,23,42,.35); transform: translateY(-2px); }
.ns-acc.is-off { opacity: .75; }
.ns-acc-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 0; }
.ns-acc-head .ns-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.ns-acc-title { flex: 1; min-width: 0; }
.ns-acc-title a { display: block; font-size: 17px; font-weight: 600; color: var(--ns-ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-acc-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.ns-acc-title a:hover { color: var(--ns-brand); }
.ns-acc-title > span { display: block; margin-top: 2px; font-size: 13px; color: var(--ns-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-acc-status { flex: none; text-align: right; position: relative; z-index: 1; }
.ns-acc-status a { text-decoration: none; }
.ns-acc-status small { display: block; margin-top: 4px; font-size: 11px; color: var(--ns-faint); }
.ns-acc-money { padding: 20px 22px 4px; }
.ns-acc-money span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ns-faint); }
.ns-acc-money strong { display: block; margin-top: 4px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ns-acc-rows { margin: 12px 22px 0; padding: 0; }
.ns-acc-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ns-line-soft); font-size: 14px; }
.ns-acc-rows dt { color: var(--ns-muted); }
.ns-acc-rows dd { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-weight: 600; color: var(--ns-ink); }
.ns-acc-rows dd .ns-mono, .ns-acc-rows dd.ns-mono { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-copy { position: relative; z-index: 1; flex: none; padding: 3px 9px; border: 1px solid var(--ns-line); border-radius: 7px; background: var(--ns-surface); font: 600 12px Inter, system-ui, sans-serif; color: var(--ns-ink-2); cursor: pointer; }
.ns-copy:hover { border-color: var(--ns-brand); color: var(--ns-brand); }
.ns-acc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 14px 22px; border-top: 1px solid var(--ns-line); background: var(--ns-soft); }
.ns-acc-rows + .ns-acc-foot { margin-top: 14px; }
.ns-acc-foot > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--ns-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-acc-foot svg { width: 15px; height: 15px; flex: none; }
.ns-acc-foot .ns-btn, .ns-acc-open { position: relative; z-index: 1; flex: none; }
.ns-acc-open { font-size: 14px; font-weight: 600; color: var(--ns-brand); text-decoration: none; }
.ns-acc-open:hover { text-decoration: underline; }
.ns-acc-add { align-items: center; justify-content: center; gap: 6px; min-height: 260px; padding: 28px; border: 2px dashed var(--ns-line-2); background: transparent; text-align: center; text-decoration: none; color: var(--ns-muted); }
.ns-acc-add::before { display: none; }
.ns-acc-add:hover { border-color: var(--ns-brand); color: var(--ns-brand); background: var(--ns-brand-tint); }
.ns-acc-add-plus { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: var(--ns-btn); color: #fff; font-size: 28px; font-weight: 400; line-height: 1; transition: transform .2s; }
.ns-acc-add:hover .ns-acc-add-plus { transform: rotate(90deg); }
.ns-acc-add strong { font-size: 16px; font-weight: 600; color: var(--ns-ink); }
.ns-acc-add > span:last-child { font-size: 14px; }
.ns-acc-rows dd.ns-acc-soft { font-weight: 500; color: var(--ns-muted); }
.ns-acc-none { margin: 24px 0 0; text-align: center; font-size: 15px; color: var(--ns-muted); }

.ns-acc-empty { padding: 56px 24px; border: 1px solid var(--ns-line); border-radius: 20px; background: var(--ns-surface); text-align: center; }
.ns-acc-empty > .ns-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto; }
.ns-acc-empty > .ns-icon svg { width: 24px; height: 24px; }
.ns-acc-empty h2 { margin: 18px 0 0; font-size: 22px; font-weight: 700; }
.ns-acc-empty > p { max-width: 460px; margin: 10px auto 0; font-size: 15px; line-height: 1.7; color: var(--ns-muted); }
.ns-acc-empty-types { display: grid; gap: 12px; max-width: 720px; margin: 28px auto; }
@media (min-width: 640px) { .ns-acc-empty-types { grid-template-columns: repeat(3, 1fr); } }
.ns-acc-empty-types > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 1px solid var(--ns-line); border-radius: 14px; }
.ns-acc-empty-types .ns-icon { margin-bottom: 8px; }
.ns-acc-empty-types strong { font-size: 15px; }
.ns-acc-empty-types span:last-child { font-size: 13px; color: var(--ns-muted); }

/* ---------- Payment outcome explanations ---------- */
.ns-txn-status { min-width: 9.5rem; max-width: 15rem; }
.ns-txn-reason {
  margin-top: .3rem; font-size: .72rem; line-height: 1.3; color: var(--ns-muted);
  white-space: normal; cursor: help;
}
.ns-why {
  display: flex; gap: .85rem; align-items: flex-start;
  margin-bottom: 1.25rem; padding: .95rem 1.1rem; border-radius: 14px;
  border: 1px solid #fecaca; background: #fef2f2; color: #7f1d1d;
}
.ns-why strong { display: block; font-size: .95rem; font-weight: 650; }
.ns-why p { margin: .2rem 0 0; font-size: .85rem; line-height: 1.45; opacity: .9; }
.ns-why-icon {
  flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px;
  background: #dc2626; color: #fff; font-weight: 800; font-size: 1rem;
}
.ns-why-icon svg { width: 1.05rem; height: 1.05rem; }
.ns-why-timeout, .ns-why-cancelled { border-color: #fde68a; background: #fffbeb; color: #78350f; }
.ns-why-timeout .ns-why-icon, .ns-why-cancelled .ns-why-icon { background: #d97706; }
.ns-why-pending, .ns-why-initiated { border-color: #bfdbfe; background: #eff6ff; color: #1e3a8a; }
.ns-why-pending .ns-why-icon, .ns-why-initiated .ns-why-icon { background: #2563eb; }
html.dark .ns-why { border-color: rgba(248,113,113,.3); background: rgba(127,29,29,.25); color: #fecaca; }
html.dark .ns-why-timeout, html.dark .ns-why-cancelled { border-color: rgba(251,191,36,.3); background: rgba(120,53,15,.25); color: #fde68a; }
html.dark .ns-why-pending, html.dark .ns-why-initiated { border-color: rgba(96,165,250,.3); background: rgba(30,58,138,.25); color: #bfdbfe; }
