/* ==========================================================================
   VERINZO Reseller Portal — premium light design system
   Register: Stripe Dashboard / Linear / Vercel. Restraint over decoration.
   Single solid-indigo accent · hairline borders · one elevation · 8px rhythm.
   ========================================================================== */

:root {
    /* --- Accent: one solid indigo, no gradient-on-everything --- */
    --accent:        #4f46e5;
    --accent-hover:  #4338ca;
    --accent-press:  #3730a3;
    --accent-weak:   #eef2ff;   /* tint fill for active/selected surfaces */
    --accent-ring:   rgba(79, 70, 229, .16);
    --accent-line:   #c7d2fe;

    /* --- Neutrals (slate) --- */
    --bg:        #f6f7f9;   /* app canvas */
    --surface:   #ffffff;   /* cards, sidebar, inputs */
    --surface-2: #fbfcfd;   /* subtle inset / table stripe */
    --raise:     #ffffff;
    --border:    #e4e7ec;   /* hairline */
    --border-2:  #eceef2;   /* softer inner dividers */
    --border-strong: #d4d8e0;

    --text:   #101828;      /* primary ink */
    --text-2: #475467;      /* secondary */
    --text-3: #667085;      /* muted labels */
    --text-4: #98a2b3;      /* faint / placeholder */

    /* --- Semantic --- */
    --ok:        #067647;
    --ok-bg:     #ecfdf3;
    --ok-line:   #abefc6;
    --warn:      #b54708;
    --warn-bg:   #fffaeb;
    --warn-line: #fedf89;
    --danger:    #b42318;
    --danger-bg: #fef3f2;
    --danger-line:#fecdca;
    --info:      #175cd3;
    --info-bg:   #eff8ff;
    --info-line: #b2ddff;

    /* --- Radius: tight, not pill-blobby --- */
    --r-xs: 5px;
    --r-sm: 7px;
    --r-md: 9px;
    --r-lg: 12px;

    /* --- Elevation: one honest shadow, plus a hover lift --- */
    --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
    --shadow-md: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
    --shadow-lg: 0 8px 24px -8px rgba(16,24,40,.14), 0 2px 6px -2px rgba(16,24,40,.06);
    --shadow-pop: 0 12px 32px -8px rgba(16,24,40,.18);

    /* --- Type --- */
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --t: 150ms var(--ease);

    --sidebar-w: 244px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.018em; color: var(--text); }
.mono { font-family: var(--font-mono); font-variant-ligatures: none; }
::selection { background: var(--accent-weak); color: var(--accent-press); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #dfe3ea; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #cfd4dd; }

/* ==========================================================================
   Shell
   ========================================================================== */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.side {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 16px;
    letter-spacing: -.02em; color: var(--text);
    padding: 6px 8px 16px;
}
.brand .mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--accent);
    display: grid; place-items: center; flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.brand .mark svg { width: 16px; height: 16px; }
/* The real mark is a blue logo on transparent, so the accent-coloured chip
   it used to sit in would have put blue on blue. The logo is the chip now. */
.brand .mark:has(img) { background: transparent; box-shadow: none; }
.brand .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Headers carry the wordmark on its own — no repeated "VERINZO" text beside
   it. Sized by height so the two wordmark files stay interchangeable. */
.brand-logo { height: 30px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.auth-aside .brand-logo { height: 34px; }
.brand small {
    display: block; font-family: var(--font-body); font-weight: 500;
    font-size: 11px; color: var(--text-3); letter-spacing: 0; margin-top: 1px;
}

.nav-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--text-4); padding: 14px 10px 6px; font-weight: 600;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--r-sm);
    color: var(--text-2); font-size: 13.5px; font-weight: 500;
    transition: background var(--t), color var(--t);
    position: relative;
}
.nav-item svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.75; flex-shrink: 0; opacity: .85; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item:hover svg { opacity: 1; }
.nav-item.active { background: var(--accent-weak); color: var(--accent-press); font-weight: 600; }
.nav-item.active svg { opacity: 1; color: var(--accent); }

.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-2); }
.side-foot .who { font-size: 12.5px; color: var(--text-3); padding: 8px 10px; line-height: 1.4; }
.side-foot .who b { color: var(--text); font-weight: 600; }

.main { padding: 26px 30px 60px; min-width: 0; }
@media (min-width: 1440px) { .main { max-width: 1240px; } }

/* ==========================================================================
   Page header
   ========================================================================== */
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.topbar h1 { font-size: 22px; font-weight: 600; }
.topbar .sub { color: var(--text-3); font-size: 13.5px; margin-top: 3px; }
.topbar .spacer { flex: 1; }

.credits-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    padding: 7px 8px 7px 14px; border-radius: 999px; font-size: 13px;
    color: var(--text-3); font-weight: 500; box-shadow: var(--shadow-sm);
}
.credits-pill b { font-family: var(--font-display); font-size: 15px; color: var(--text); font-weight: 700; }
.credits-pill .chip {
    display: inline-grid; place-items: center; width: 24px; height: 24px;
    border-radius: 7px; background: var(--accent-weak); color: var(--accent);
}
.credits-pill .chip svg { width: 14px; height: 14px; }

/* ==========================================================================
   Cards & stats
   ========================================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr; } }

.stat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm); position: relative;
    transition: box-shadow var(--t), border-color var(--t);
}
.stat:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.stat .k {
    color: var(--text-3); font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.stat .k .ic {
    width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2);
}
.stat .k .ic svg { width: 15px; height: 15px; stroke-width: 1.8; }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
.stat .foot { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.stat .foot strong { color: var(--ok); font-weight: 600; }
.stat.accent .v { color: var(--accent); }

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-head {
    padding: 16px 20px; border-bottom: 1px solid var(--border-2);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-head .sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.card-body { padding: 20px; }

/* ==========================================================================
   Tables
   ========================================================================== */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 12px 20px; font-size: 13.5px; }
.tbl thead th {
    color: var(--text-3); font-weight: 600; font-size: 11.5px;
    text-transform: uppercase; letter-spacing: .05em;
    background: var(--surface-2); border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.tbl tbody td { border-bottom: 1px solid var(--border-2); color: var(--text); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background var(--t); }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl td.mono, .tbl .mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); }
.tbl td .muted { color: var(--text-4); }

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; padding: 3px 9px; border-radius: 999px; font-weight: 600;
    border: 1px solid transparent; letter-spacing: .01em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-active { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge-expired { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge-info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.badge-neutral { background: var(--surface-2); color: var(--text-3); border-color: var(--border); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 13.5px; padding: 9px 15px; border-radius: var(--r-sm);
    border: 1px solid var(--border-strong); cursor: pointer;
    background: var(--surface); color: var(--text);
    transition: background var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
    font-family: var(--font-body); white-space: nowrap; box-shadow: var(--shadow-sm);
}
.btn svg { width: 16px; height: 16px; stroke-width: 1.9; }
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: translateY(.5px); }
.btn-primary {
    background: var(--accent); color: #fff; border-color: transparent;
    box-shadow: 0 1px 2px rgba(16,24,40,.12), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--surface); border-color: var(--danger-line); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-block { width: 100%; }
.btn-lg { padding: 11px 20px; font-size: 14.5px; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .hint { color: var(--text-4); font-weight: 400; font-size: 12px; }
.field input, .field select, .field textarea {
    width: 100%; background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--r-sm); padding: 10px 12px; color: var(--text);
    font-size: 14px; font-family: var(--font-body); transition: border-color var(--t), box-shadow var(--t);
    box-shadow: var(--shadow-sm);
}
.field input::placeholder { color: var(--text-4); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring);
}
.field input.mono { letter-spacing: .04em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Segmented radio (plan / interval selectors) */
.seg { display: grid; gap: 8px; }
.seg-opt {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md);
    transition: border-color var(--t), background var(--t); background: var(--surface);
}
.seg-opt:hover { border-color: var(--accent-line); background: var(--accent-weak); }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt .dot {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong);
    flex-shrink: 0; display: grid; place-items: center; transition: border-color var(--t);
}
.seg-opt .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--t); }
.seg-opt .lbl { flex: 1; font-weight: 600; font-size: 13.5px; }
.seg-opt .lbl small { display: block; font-weight: 400; color: var(--text-3); font-size: 12px; margin-top: 1px; }
.seg-opt .price { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text); }
.seg-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-weak); box-shadow: 0 0 0 1px var(--accent) inset; }
.seg-opt:has(input:checked) .dot { border-color: var(--accent); }
.seg-opt:has(input:checked) .dot::after { transform: scale(1); }

/* ==========================================================================
   Alerts / callouts
   ========================================================================== */
.alert {
    padding: 12px 14px; border-radius: var(--r-md); font-size: 13.5px;
    margin-bottom: 20px; border: 1px solid; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.alert-error { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.alert-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.alert strong { font-weight: 700; }

.note {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 12px 14px; font-size: 12.5px;
    color: var(--text-3); line-height: 1.5; display: flex; gap: 9px; align-items: flex-start;
}
.note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--text-4); }

/* ==========================================================================
   Empty state
   ========================================================================== */
.empty { text-align: center; padding: 44px 20px; }
.empty .emoji {
    width: 44px; height: 44px; border-radius: 11px; margin: 0 auto 14px;
    display: grid; place-items: center; background: var(--surface-2);
    border: 1px solid var(--border); color: var(--text-4);
}
.empty .emoji svg { width: 22px; height: 22px; }
.empty h4 { font-family: var(--font-display); color: var(--text); margin-bottom: 5px; font-size: 15px; }
.empty p { color: var(--text-3); font-size: 13px; }

/* ==========================================================================
   Checkout — stepper + summary
   ========================================================================== */
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }

.stepper {
    display: flex; align-items: center; gap: 0; margin-bottom: 24px;
    max-width: 560px; /* keeps the rail readable; no edge-clipping on wide screens */
}
.step { display: flex; align-items: center; gap: 10px; min-width: 0; }
.step:not(:last-child) { flex: 1; }          /* only steps WITH a trailing bar grow */
.step:last-child { flex: 0 0 auto; }          /* final label sizes to content */
.step .num {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
    border: 1.5px solid var(--border-strong); color: var(--text-3); background: var(--surface);
    transition: all var(--t); font-family: var(--font-display);
}
.step .txt { font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.step .bar { flex: 1; height: 1.5px; background: var(--border); margin: 0 12px; border-radius: 2px; min-width: 16px; }
.step:last-child .bar { display: none; }      /* no rail after the last node */
.step.done .num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.done .txt { color: var(--text-2); }
.step.done .bar { background: var(--accent); }
.step.current .num { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.step.current .txt { color: var(--text); }
@media (max-width: 640px) {
    .stepper { max-width: none; }
    .step .txt { display: none; }
    .step.current .txt { display: inline; }    /* show only the active step's label on mobile */
}

.summary { position: sticky; top: 26px; }
.summary .card-body { padding: 18px 20px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; font-size: 13.5px; }
.sum-row + .sum-row { border-top: 1px solid var(--border-2); }
.sum-row .lbl { color: var(--text-3); }
.sum-row .val { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; }
.sum-total .lbl { font-weight: 600; color: var(--text); font-size: 14px; }
.sum-total .val { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.trust { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-3); }
.trust-item svg { width: 15px; height: 15px; color: var(--ok); flex-shrink: 0; }

/* Pack pick grid (checkout step 1) */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pack {
    position: relative; border: 1px solid var(--border-strong); border-radius: var(--r-lg);
    padding: 18px; cursor: pointer; background: var(--surface);
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
    display: flex; flex-direction: column;
}
.pack:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow-md); }
.pack .tick {
    position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%;
    border: 1.5px solid var(--border-strong); display: grid; place-items: center; transition: all var(--t);
}
.pack .tick svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity var(--t); }
.pack:has(input:checked) .tick { background: var(--accent); border-color: var(--accent); }
.pack:has(input:checked) .tick svg { opacity: 1; }
.pack .name { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.pack .credits { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; color: var(--accent); line-height: 1; }
.pack .credits span { font-size: 13px; color: var(--text-3); font-weight: 500; font-family: var(--font-body); }
.pack .bonus { color: var(--ok); font-size: 12.5px; margin-top: 6px; font-weight: 500; }
.pack .price { margin-top: auto; padding-top: 14px; font-size: 15px; font-weight: 600; color: var(--text); }
.pack .per { font-size: 12px; color: var(--text-4); margin-top: 2px; }
.pack .ribbon {
    position: absolute; top: -1px; left: 16px; background: var(--accent); color: #fff;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: 3px 8px; border-radius: 0 0 6px 6px;
}

/* ==========================================================================
   Auth
   ========================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .auth-wrap { grid-template-columns: 1.05fr 1fr; } }

.auth-aside {
    display: none; position: relative; overflow: hidden;
    background: #0b1020;
    color: #fff; padding: 48px;
}
@media (min-width: 900px) { .auth-aside { display: flex; flex-direction: column; } }
.auth-aside::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(60% 50% at 80% 10%, rgba(79,70,229,.35), transparent 60%),
      radial-gradient(50% 40% at 10% 90%, rgba(99,102,241,.22), transparent 60%);
}
.auth-aside .aside-in { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.auth-aside .brand { color: #fff; padding: 0; margin-bottom: auto; }
.auth-aside .brand small { color: rgba(255,255,255,.6); }
.auth-aside .brand .mark { background: rgba(255,255,255,.12); box-shadow: none; }
.auth-quote { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.35; letter-spacing: -.02em; max-width: 22ch; }
.auth-sub { color: rgba(255,255,255,.62); font-size: 14px; margin-top: 14px; max-width: 40ch; }
.auth-stats { display: flex; gap: 32px; margin-top: 40px; }
.auth-stats .s .n { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.auth-stats .s .l { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .brand { padding: 0 0 24px; }
@media (min-width: 900px) { .auth-card .brand { display: none; } }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .lead { color: var(--text-3); font-size: 14px; margin-bottom: 26px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--text-4);
    padding: 6px; border-radius: 6px; display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--text-2); background: var(--surface-2); }
.pw-toggle svg { width: 17px; height: 17px; }
.remember { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.link { color: var(--accent); font-weight: 600; font-size: 13px; }
.link:hover { color: var(--accent-hover); text-decoration: underline; }

/* ==========================================================================
   404
   ========================================================================== */
.err-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.err-code { font-family: var(--font-display); font-size: 72px; font-weight: 700; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.err-page h2 { font-size: 20px; margin: 16px 0 8px; }
.err-page p { color: var(--text-3); margin-bottom: 24px; }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise .28s var(--ease) both; }
.main > * { animation: rise .3s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 760px) {
    .shell { grid-template-columns: 1fr; }
    .side {
        flex-direction: row; align-items: center; height: auto; position: sticky; top: 0; z-index: 20;
        padding: 10px 14px; gap: 4px; overflow-x: auto;
    }
    .side .brand { padding: 0; margin-right: 8px; flex-shrink: 0; }
    .side .brand small { display: none; }
    /* The sidebar is a horizontal rail here; the wordmark comes down a step so
       it does not eat the width the nav items need. */
    .side .brand-logo { height: 24px; }
    .nav-label, .side-foot .who { display: none; }
    .side-foot { margin: 0; padding: 0; border: none; }
    .nav-item { padding: 8px 10px; white-space: nowrap; }
    .nav-item span.lbl-txt { display: none; }
    .main { padding: 20px 16px 48px; }
    .summary { position: static; }
}

/* ==========================================================================
   EXPANDED PORTAL — topbar, search, modules
   ========================================================================== */

/* Layout column so topbar spans content area */
.main-col { min-width: 0; display: flex; flex-direction: column; }
.side { display: flex; flex-direction: column; }
.nav-scroll { flex: 1; overflow-y: auto; padding-bottom: 8px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
.nav-scroll::-webkit-scrollbar { width: 6px; }

/* Sidebar footer avatar */
.side-foot .who { display: flex; align-items: center; gap: 10px; }
.avatar-sm { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; font-family: var(--font-display); }
.side-foot .who .muted { color: var(--text-4); font-size: 11.5px; }

/* Topbar */
.topbar {
    height: 60px; display: flex; align-items: center; gap: 14px;
    padding: 0 24px; border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 30;
}
.topbar-spacer { flex: 1; }
.menu-btn { display: none; background: none; border: 0; color: var(--text-2); cursor: pointer; padding: 6px; border-radius: 7px; }
.menu-btn:hover { background: var(--surface-2); color: var(--text); }

/* Global search */
.global-search { position: relative; display: flex; align-items: center; gap: 9px; width: 380px; max-width: 44vw;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 12px; height: 38px; transition: border-color var(--t), box-shadow var(--t); }
.global-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); background: var(--surface); }
.global-search > svg { color: var(--text-4); flex-shrink: 0; }
.global-search input { flex: 1; border: 0; background: none; outline: none; font-size: 13.5px; color: var(--text); font-family: var(--font-body); }
.global-search input::placeholder { color: var(--text-4); }
.global-search kbd { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-pop); overflow: hidden; z-index: 50; max-height: 400px; overflow-y: auto; }
.sr-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border-2); }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: var(--surface-2); }
.sr-type { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--accent); background: var(--accent-weak); padding: 2px 7px; border-radius: 5px; text-align: center; }
.sr-label { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-meta { font-size: 12px; color: var(--text-4); font-family: var(--font-mono); }
.sr-empty { padding: 16px; text-align: center; color: var(--text-4); font-size: 13px; }

/* Icon button (bell etc.) */
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: grid; place-items: center; transition: var(--t); }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.dot-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }

/* Topbar inside main-col means main padding stays */
.main-col .main { padding: 26px 30px 60px; }
@media (min-width: 1440px) { .main-col .main { max-width: 1280px; } }

/* KPI row (dashboard / wallet / analytics) */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; transition: box-shadow var(--t), border-color var(--t); }
.kpi:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.kpi .kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi .kpi-k { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.kpi .kpi-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-weak); color: var(--accent); }
.kpi .kpi-ic svg { width: 16px; height: 16px; }
.kpi .kpi-v { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1.05; }
.kpi .kpi-delta { font-size: 12.5px; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.kpi .kpi-delta.up { color: var(--ok); }
.kpi .kpi-delta.down { color: var(--danger); }
.kpi .kpi-delta.flat { color: var(--text-4); }
.kpi.feature { background: var(--accent); border-color: transparent; color: #fff; }
.kpi.feature .kpi-k { color: rgba(255,255,255,.8); }
.kpi.feature .kpi-ic { background: rgba(255,255,255,.16); color: #fff; }
.kpi.feature .kpi-delta { color: rgba(255,255,255,.85); }

/* Two-column dashboard layout */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* Activity timeline */
.timeline { position: relative; padding-left: 4px; }
.tl-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-2); }
.tl-item:last-child { border-bottom: 0; }
.tl-ic { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); }
.tl-ic svg { width: 15px; height: 15px; }
.tl-ic.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.tl-ic.info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.tl-ic.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.tl-body { flex: 1; min-width: 0; }
.tl-title { font-size: 13.5px; font-weight: 600; }
.tl-title span { color: var(--text-3); font-weight: 400; }
.tl-meta { font-size: 12px; color: var(--text-4); margin-top: 1px; }
.tl-amt { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.tl-amt.pos { color: var(--ok); }
.tl-amt.neg { color: var(--danger); }

/* Quick actions grid */
.qa-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.qa { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: var(--t); }
.qa:hover { border-color: var(--accent-line); background: var(--accent-weak); transform: translateY(-1px); }
.qa-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-weak); color: var(--accent); flex-shrink: 0; }
.qa-ic svg { width: 17px; height: 17px; }
.qa-txt b { display: block; font-size: 13.5px; font-weight: 600; }
.qa-txt span { font-size: 12px; color: var(--text-3); }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: var(--t); cursor: pointer; }
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Filter toolbar */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.seg-filter { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.seg-filter a { padding: 6px 12px; border-radius: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-3); transition: var(--t); }
.seg-filter a:hover { color: var(--text); }
.seg-filter a.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }

/* Meter bar (usage / analytics) */
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border-2); }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.meter.ok > i { background: var(--ok); }
.meter.warn > i { background: var(--warn); }

/* Definition list / profile */
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 0; }
.dl dt { color: var(--text-3); font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--border-2); }
.dl dd { font-size: 13.5px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--border-2); margin: 0; text-align: right; }

/* Ticket / support */
.ticket-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border-2); transition: var(--t); }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { background: var(--surface-2); }
.ticket-subj { font-weight: 600; font-size: 13.5px; }
.ticket-meta { font-size: 12px; color: var(--text-4); margin-top: 2px; }
.pri { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 5px; }
.pri-high { background: var(--danger-bg); color: var(--danger); }
.pri-med { background: var(--warn-bg); color: var(--warn); }
.pri-low { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }

/* Chat bubbles (ticket detail) */
.msg { display: flex; gap: 12px; margin-bottom: 18px; }
.msg .who-av { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; font-family: var(--font-display); }
.msg.them .who-av { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.msg.me .who-av { background: var(--accent); color: #fff; }
.msg-bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; font-size: 13.5px; line-height: 1.55; max-width: 80%; }
.msg.me { flex-direction: row-reverse; }
.msg.me .msg-bubble { background: var(--accent-weak); border-color: var(--accent-line); }
.msg-time { font-size: 11.5px; color: var(--text-4); margin-top: 6px; }

/* Data table refinements: numeric alignment */
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   FLASH BANNER — result of an action that redirected back to a list
   ========================================================================== */
.flash {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: var(--r-md); margin-bottom: 18px;
    font-size: 13.5px; line-height: 1.5; border: 1px solid transparent;
}
.flash svg { flex-shrink: 0; margin-top: 1px; }
.flash-success { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.flash-error   { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }

/* ==========================================================================
   ROW ACTIONS — inline buttons in the last cell
   Deliberately not a dropdown: this cell sits inside .tbl-wrap, which is
   overflow-x:auto, and an absolutely positioned popover is clipped by it.
   ========================================================================== */
.row-acts { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.row-acts form { margin: 0; display: inline-flex; }
.icon-btn.sm { width: 32px; height: 32px; cursor: pointer; }
.icon-btn.sm.danger { color: var(--danger); }
.icon-btn.sm.danger:hover { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
/* ==========================================================================
   CREDIT PACKS — bought straight out of the wallet balance
   ========================================================================== */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pack {
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--r-md);
    background: var(--surface); transition: border-color var(--t), box-shadow var(--t);
}
.pack:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.pack-off { opacity: .62; }
.pack-off:hover { border-color: var(--border-strong); box-shadow: none; }
.pack-name { font-size: 12.5px; color: var(--text-3); }
.pack-credits { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.pack-credits span { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--text-3); }
.pack-bonus { font-size: 12px; color: var(--ok); }
.pack-price { font-size: 14px; font-weight: 600; margin: 6px 0 10px; }
.pack button { margin-top: auto; }

/* Offline payment details returned with a pending order */
.pay-details { display: grid; gap: 8px; margin-top: 10px; }
.pay-row {
    display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
    padding: 10px 12px; border-radius: var(--r-sm);
    background: var(--surface); border: 1px solid var(--border);
    font-size: 12.5px; color: var(--text-2);
}
.pay-row b { font-size: 13px; color: var(--text); }

.cell-note {
    color: var(--text-4); font-size: 12px; margin-top: 2px;
    max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ==========================================================================
   SHEET — native <dialog> used for the edit / renew forms
   ========================================================================== */
dialog.sheet {
    width: min(440px, calc(100vw - 32px));
    border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 22px; background: var(--surface); color: var(--text);
    box-shadow: var(--shadow-pop);
}
dialog.sheet::backdrop { background: rgba(16,24,40,.45); }
dialog.sheet h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
dialog.sheet .sheet-sub { color: var(--text-3); font-size: 13px; margin: 4px 0 18px; }
dialog.sheet .sheet-hint { color: var(--text-4); font-size: 12.5px; line-height: 1.5; margin-top: -4px; }
dialog.sheet .sheet-foot {
    display: flex; justify-content: flex-end; gap: 8px;
    margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-2);
}

/* Mobile scrim + sidebar drawer override for expanded nav */
.scrim { position: fixed; inset: 0; background: rgba(16,24,40,.4); z-index: 39; }
@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .side { position: fixed; inset: 0 auto 0 0; width: 260px; height: 100vh; z-index: 40; transform: translateX(-100%); transition: transform var(--t); flex-direction: column; padding: 16px 12px; overflow-y: auto; }
    .side.open { transform: translateX(0); box-shadow: var(--shadow-pop); }
    .side .brand small { display: block; }
    .nav-label { display: block; }
    .side-foot .who { display: flex; }
    .nav-item span.lbl-txt { display: inline; }
    .menu-btn { display: grid; }
    .global-search { width: auto; flex: 1; max-width: none; }
    .global-search kbd { display: none; }
    .main-col .main { padding: 20px 16px 48px; }
    .kpi-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .qa-grid { grid-template-columns: 1fr; }
    .dl { grid-template-columns: 1fr; }
    .dl dd { text-align: left; padding-top: 0; border-bottom: 0; }
    .dl dt { border-bottom: 0; padding-bottom: 2px; }
}

/* Chart holder + page head (used across modules) */
.chart-holder { position: relative; width: 100%; }
.chart-holder canvas { display: block; width: 100%; height: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 600; }

/* ==========================================================================
   PUBLIC LANDING — marketing site (/, /index, /apply)
   Same tokens, radii, fonts and shadow scale as the reseller portal, but
   scoped to VERINZO's public brand blue so the two experiences read as one
   product without letting marketing styles leak into the dashboard.
   Reuses .btn / .card / .badge etc. from above wherever possible.
   ========================================================================== */
.pub-root {
    --accent:       #4361ee;
    --accent-hover: #364fd0;
    --accent-press: #2c42b8;
    --accent-weak:  #eef1ff;
    --accent-ring:  rgba(67, 97, 238, .16);
    --accent-line:  #c9d3fb;
    background: var(--bg);
}
.pub-root .btn-lg { padding: 13px 24px; font-size: 15px; border-radius: var(--r-md); }
.pub-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .pub-container { padding: 0 20px; } }

/* ---- Nav -------------------------------------------------------------- */
.pub-nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.pub-nav-inner { display: flex; align-items: center; gap: 8px; height: 68px; }
.pub-nav .brand { padding: 0; margin-right: 8px; }
.pub-nav-links { display: none; align-items: center; gap: 2px; margin-left: 8px; }
.pub-nav-link { padding: 9px 13px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: var(--t); }
.pub-nav-link:hover { color: var(--text); background: var(--surface-2); }
.pub-nav-spacer { flex: 1; }
.pub-nav-actions { display: none; align-items: center; gap: 10px; }
.pub-mobile-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
@media (min-width: 980px) { .pub-nav-links, .pub-nav-actions { display: flex; } .pub-mobile-toggle { display: none; } }

.pub-mobile-panel { display: none; flex-direction: column; gap: 2px; padding: 10px 0 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.pub-mobile-panel.open { display: flex; }
.pub-mobile-panel .pub-nav-link { padding: 12px 4px; border-bottom: 1px solid var(--border-2); border-radius: 0; }
.pub-mobile-panel .pub-mobile-actions { display: flex; gap: 10px; margin-top: 12px; }
@media (min-width: 980px) { .pub-mobile-panel { display: none !important; } }

/* ---- Hero --------------------------------------------------------------*/
.pub-hero { padding: 68px 0 40px; overflow: hidden; position: relative; }
@media (min-width: 760px) { .pub-hero { padding: 96px 0 56px; } }
.pub-hero::before {
    content: ""; position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: -1;
    background: radial-gradient(60% 60% at 30% 20%, var(--accent-ring), transparent 70%),
                radial-gradient(45% 45% at 85% 10%, rgba(67,97,238,.10), transparent 70%);
}
.pub-hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 1020px) { .pub-hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; } }

.pub-eyebrow {
    display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
    color: var(--accent); background: var(--accent-weak); border: 1px solid var(--accent-line);
    padding: 6px 13px 6px 10px; border-radius: 999px; letter-spacing: .01em;
}
.pub-eyebrow svg { width: 14px; height: 14px; }

.pub-hero-title {
    font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; color: var(--text);
    font-size: clamp(32px, 5.4vw, 52px); line-height: 1.09; margin: 18px 0 18px;
}
.pub-hero-title em { font-style: normal; color: var(--accent); }
.pub-hero-sub { font-size: 16.5px; line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.pub-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pub-hero-trust { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 34px; }
.pub-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.pub-trust-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* Hero dashboard mock */
.pub-mock-wrap { position: relative; }
.pub-mock {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-pop); overflow: hidden; transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
}
@media (max-width: 1019px) { .pub-mock { transform: none; } }
.pub-mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border-2); background: var(--surface-2); }
.pub-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.pub-mock-bar span { margin-left: 10px; font-size: 11px; color: var(--text-4); font-family: var(--font-mono); }
.pub-mock-body { padding: 20px; }
.pub-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pub-mock-kpi { border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 12px; background: var(--surface-2); }
.pub-mock-kpi .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-4); font-weight: 700; }
.pub-mock-kpi .v { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-top: 4px; color: var(--text); }
.pub-mock-kpi .v.accent { color: var(--accent); }
.pub-mock-chart { border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 14px 16px; background: var(--surface-2); margin-bottom: 12px; }
.pub-mock-chart .lbl { font-size: 11px; color: var(--text-3); font-weight: 600; margin-bottom: 10px; }
.pub-mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.pub-mock-bars i { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-hover)); border-radius: 3px 3px 0 0; opacity: .88; }
.pub-mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-2); font-size: 12px; }
.pub-mock-row:first-of-type { border-top: none; }
.pub-mock-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.pub-mock-row .t { flex: 1; color: var(--text-2); font-weight: 500; }
.pub-mock-row .m { color: var(--text-4); font-family: var(--font-mono); font-size: 11px; }

.pub-float-chip {
    position: absolute; display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 12.5px; font-weight: 600;
}
.pub-float-chip .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex-shrink: 0; }
.pub-float-chip .ic svg { width: 14px; height: 14px; }
.pub-float-chip.c1 { top: -6%; right: -4%; }
.pub-float-chip.c2 { bottom: 6%; left: -7%; }
.pub-float-chip.c2 .ic { background: var(--accent-weak); color: var(--accent); }
@media (max-width: 1019px) { .pub-float-chip { display: none; } }

/* ---- Section scaffolding ------------------------------------------------*/
.pub-section { padding: 64px 0; }
@media (min-width: 760px) { .pub-section { padding: 88px 0; } }
.pub-section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pub-section-head { max-width: 640px; margin: 0 0 40px; }
.pub-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.pub-section-title { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.025em; margin: 12px 0 10px; color: var(--text); }
.pub-section-sub { font-size: 15px; color: var(--text-2); line-height: 1.6; }

/* ---- How it works -------------------------------------------------------*/
.pub-steps { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: step; position: relative; }
@media (min-width: 860px) { .pub-steps { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
.pub-step { position: relative; padding: 22px 18px 20px 0; }
@media (min-width: 860px) { .pub-step { padding: 0 6px; } }
.pub-step:not(:last-child) { border-bottom: 1px solid var(--border-2); }
@media (min-width: 860px) { .pub-step:not(:last-child) { border-bottom: none; } }
.pub-step-num {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--accent-weak); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 15px;
    margin-bottom: 14px;
}
.pub-step-rail { display: none; }
@media (min-width: 860px) {
    .pub-step-rail { display: block; position: absolute; top: 19px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 1.5px; background: var(--border); }
    .pub-step:last-child .pub-step-rail { display: none; }
}
.pub-step h4 { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.pub-step p { font-size: 13px; color: var(--text-3); line-height: 1.55; }

/* ---- Benefits grid -------------------------------------------------------*/
.pub-benefits-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .pub-benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .pub-benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.pub-benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); transition: var(--t); }
.pub-benefit:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-1px); }
.pub-benefit .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.pub-benefit .ic svg { width: 18px; height: 18px; }
.pub-benefit h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.pub-benefit p { font-size: 13px; color: var(--text-3); line-height: 1.55; }

/* ---- Big dashboard preview ------------------------------------------------*/
.pub-preview-frame { max-width: 900px; margin: 0 auto; }
.pub-preview-frame .pub-mock { transform: none; }
.pub-preview-cap { text-align: center; font-size: 13.5px; color: var(--text-3); margin-top: 20px; }

/* ---- Credits flow --------------------------------------------------------*/
.pub-flow { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: stretch; }
@media (min-width: 760px) { .pub-flow { grid-template-columns: 1fr auto 1fr auto 1fr; } }
.pub-flow-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.pub-flow-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; margin: 0 auto 12px; }
.pub-flow-card .ic svg { width: 20px; height: 20px; }
.pub-flow-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.pub-flow-card p { font-size: 12.5px; color: var(--text-3); }
.pub-flow-arrow { display: none; align-items: center; justify-content: center; color: var(--border-strong); }
@media (min-width: 760px) { .pub-flow-arrow { display: flex; } }
.pub-flow-arrow svg { width: 20px; height: 20px; }
.pub-pricing-note { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); padding: 22px 24px; margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; }
.pub-pricing-note .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.pub-pricing-note .ic svg { width: 17px; height: 17px; }
.pub-pricing-note h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.pub-pricing-note p { font-size: 13px; color: var(--text-3); line-height: 1.55; }

/* ---- Why VERINZO ----------------------------------------------------------*/
.pub-why-grid { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 640px) { .pub-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .pub-why-grid { grid-template-columns: repeat(4, 1fr); } }
.pub-why-item { background: var(--surface); padding: 22px 20px; }
.pub-why-item svg { width: 20px; height: 20px; color: var(--accent); margin-bottom: 12px; }
.pub-why-item h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 5px; }
.pub-why-item p { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

/* ---- FAQ (native details/summary — accessible, no JS needed) -------------*/
.pub-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pub-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.pub-faq-item summary {
    list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; font-size: 14px; font-weight: 600; color: var(--text);
}
.pub-faq-item summary::-webkit-details-marker { display: none; }
.pub-faq-item summary .chev { flex-shrink: 0; color: var(--text-4); transition: transform var(--t); }
.pub-faq-item[open] summary .chev { transform: rotate(180deg); color: var(--accent); }
.pub-faq-item .faq-body { padding: 0 20px 18px; font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.pub-faq-item:has(summary:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Final CTA -------------------------------------------------------------*/
.pub-cta-final { text-align: center; padding: 70px 24px; }
.pub-cta-final h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -.025em; margin-bottom: 12px; }
.pub-cta-final p { color: var(--text-2); font-size: 15.5px; max-width: 50ch; margin: 0 auto 28px; }
.pub-cta-final .pub-hero-ctas { justify-content: center; }

/* ---- Footer ------------------------------------------------------------*/
.pub-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.pub-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
@media (max-width: 860px) { .pub-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pub-footer-grid { grid-template-columns: 1fr; } }
.pub-footer-brand p { color: var(--text-3); font-size: 13px; line-height: 1.6; margin-top: 12px; max-width: 32ch; }
.pub-footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-4); font-weight: 700; margin-bottom: 14px; }
.pub-footer-col a { display: block; font-size: 13.5px; color: var(--text-2); padding: 5px 0; }
.pub-footer-col a:hover { color: var(--accent); }
.pub-footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-2); padding-top: 22px; font-size: 12.5px; color: var(--text-4); }

/* ---- Scroll-reveal (subtle, respects reduced motion) ---------------------*/
.pub-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pub-reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .pub-reveal { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   Payment details — the bank accounts and cash-pickup receivers the panel
   publishes. Shown while choosing a method and again after the order is
   placed, so the reseller never has to go looking for where to send money.
   --------------------------------------------------------------------- */
.pd-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--surface-2);
    margin-bottom: 10px;
}
.pd-card:last-child { margin-bottom: 0; }
.pd-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pd-h b { font-size: 14.5px; }
.pd-cur {
    margin-left: auto; font-size: 11.5px; color: var(--text-3);
    border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px;
}
.pd-r {
    display: flex; justify-content: space-between; gap: 14px;
    font-size: 13.5px; color: var(--text-3);
    padding: 5px 0; border-bottom: 1px solid var(--border);
}
.pd-r:last-of-type { border-bottom: 0; }
.pd-r b { color: var(--text); word-break: break-all; text-align: right; font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; }
.pd-note { margin-top: 10px; font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* --- Welcome dialog: the credit packs, shown once to an empty balance -----
   Sized off the pack cards on the Buy page rather than reusing .pack, which
   carries a radio input and a selected state this has no use for. */
.welcome-veil {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(16, 24, 40, .55);
    /* Nothing behind it should read as available while it is open. */
    backdrop-filter: blur(2px);
}
.welcome-box {
    position: relative;
    width: 100%; max-width: 620px;
    max-height: calc(100vh - 48px); overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg, 12px);
    box-shadow: var(--shadow-pop);
    padding: 28px;
}
.welcome-box h2 { font-size: 19px; line-height: 1.3; margin: 0 8px 6px 0; }
.welcome-sub { color: var(--text-3); font-size: 13.5px; margin-bottom: 20px; }
.welcome-x {
    position: absolute; top: 14px; right: 14px;
    display: grid; place-items: center;
    width: 30px; height: 30px; padding: 0;
    border: 0; border-radius: var(--r-sm, 6px);
    background: transparent; color: var(--text-3); cursor: pointer;
}
.welcome-x:hover { background: var(--surface-2); color: var(--text); }
.welcome-x svg { width: 16px; height: 16px; }

.welcome-packs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px; margin-bottom: 22px;
}
.welcome-pack {
    position: relative;
    display: flex; flex-direction: column; gap: 3px;
    padding: 16px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-md, 8px);
    background: var(--surface-2);
}
.welcome-pack.is-best { border-color: var(--accent-line); background: var(--accent-weak); }
.welcome-tag {
    position: absolute; top: -9px; left: 12px;
    padding: 2px 8px; border-radius: 999px;
    background: var(--accent); color: #fff;
    font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
}
.welcome-name    { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.welcome-credits { font-size: 19px; font-weight: 700; color: var(--text); }
.welcome-credits span { font-size: 12px; font-weight: 500; color: var(--text-3); }
.welcome-bonus   { font-size: 11.5px; color: var(--ok); }
.welcome-price   { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }

.welcome-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

@media (max-width: 520px) {
    .welcome-box { padding: 22px 18px; }
    .welcome-actions .btn { flex: 1; justify-content: center; }
}
