/* ==========================================================================
   NICE RECHARGE - portal stylesheet
   Hand-written, no build step and no remote CSS: this host has blocked CDN
   stylesheets before, and a blocked CDN leaves the whole portal unstyled.
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --muted-light: #94a3b8;
    --line: #e9edf5;
    --line-soft: #f1f5f9;
    --surface: #ffffff;
    --canvas: #f7f8fc;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --info: #0891b2;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --sidebar-w: 252px;
    --header-h: 82px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; flex: none; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- Shell ------------------------------------------------------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex: none;
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
}

.sidebar__brand {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    flex: none;
}

.sidebar__mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.02em;
    flex: none;
    overflow: hidden;
}
.sidebar__mark img { width: 100%; height: 100%; object-fit: cover; }

.sidebar__name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 6px 14px 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 500;
    margin-bottom: 2px;
    border: 0;
    background: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--line-soft); color: var(--ink-soft); }
.nav-link svg { width: 21px; height: 21px; }
.nav-link .nav-link__caret { margin-left: auto; width: 17px; height: 17px; opacity: .8; transition: transform .18s; }
.nav-link.is-open .nav-link__caret { transform: rotate(90deg); }
.nav-link.is-active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .22);
}
.nav-link.is-active:hover { background: var(--primary); color: #fff; }

.nav-sub { display: none; padding: 2px 0 6px 30px; }
.nav-sub.is-open { display: block; }
.nav-sub .nav-link { padding: 8px 12px; font-size: 13.5px; }
.nav-sub .nav-link.is-active { box-shadow: none; }

.sidebar__foot {
    padding: 16px 22px 20px;
    font-size: 12px;
    color: var(--muted-light);
    line-height: 1.6;
    border-top: 1px solid var(--line-soft);
    flex: none;
}

.main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
}

/* ---------- Header ------------------------------------------------------ */

.header {
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 26px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header__burger {
    background: none; border: 0; padding: 6px;
    color: var(--ink-soft); cursor: pointer; display: flex; border-radius: 8px;
}
.header__burger:hover { background: var(--line-soft); }
.header__burger svg { width: 22px; height: 22px; }

.header__title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

.header__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 0; background: none;
    color: var(--ink-soft);
    display: grid; place-items: center;
    cursor: pointer;
}
.icon-btn:hover { background: var(--line-soft); }
.icon-btn__dot {
    position: absolute; top: 8px; right: 9px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #ef4444; border: 2px solid #fff;
}

.user-chip {
    display: flex; align-items: center; gap: 11px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    border: 0; background: none; cursor: pointer;
    font-family: inherit;
}
.user-chip:hover { background: var(--line-soft); }

.avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 600; font-size: 14.5px;
    flex: none; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 34px; height: 34px; font-size: 12.5px; }

.user-chip__meta { text-align: left; line-height: 1.25; }
.user-chip__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.user-chip__role { font-size: 12px; color: var(--muted); }
.user-chip svg { width: 17px; height: 17px; color: var(--muted); }

/* ---------- Dropdown ---------------------------------------------------- */

.dropdown { position: relative; }
.dropdown__menu {
    position: absolute;
    right: 0; top: calc(100% + 10px);
    min-width: 232px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    padding: 6px;
    display: none;
    z-index: 70;
}
.dropdown__menu.is-open { display: block; }
.dropdown__item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    color: var(--ink-soft); font-size: 13.5px; width: 100%;
    background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left;
}
.dropdown__item:hover { background: var(--line-soft); }
.dropdown__item svg { width: 18px; height: 18px; color: var(--muted); }
.dropdown__head { padding: 12px 12px 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.dropdown__title { font-size: 13px; font-weight: 600; }
.dropdown__sub { font-size: 12px; color: var(--muted); }
.dropdown__menu--wide { min-width: 320px; max-height: 400px; overflow-y: auto; }

/* ---------- Content ----------------------------------------------------- */

.content { padding: 24px 26px 30px; flex: 1; }
.content > * + * { margin-top: 20px; }

.grid { display: grid; gap: 20px; }
.grid--dash-top { grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.42fr); }
.grid--dash-bottom { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card__head {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 22px 0;
}
.card__title { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.card__link { margin-left: auto; font-size: 13.5px; font-weight: 500; color: var(--primary); }
.card__body { padding: 20px 22px 22px; }
.card__body--flush { padding: 14px 12px 16px; }

/* ---------- Wallet hero ------------------------------------------------- */

.wallet-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 26px 26px 28px;
    min-height: 202px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wallet-hero__label { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .88); }
.wallet-hero__amount {
    font-size: 34px; font-weight: 700; letter-spacing: -.02em;
    margin: 8px 0 20px; line-height: 1.1;
}
.wallet-hero__btn {
    align-self: flex-start;
    background: #fff;
    color: var(--primary);
    font-weight: 600; font-size: 14px;
    padding: 11px 22px;
    border-radius: 9px;
    border: 0; cursor: pointer; font-family: inherit;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}
.wallet-hero__btn:hover { background: #f8fafc; }
.wallet-hero__art {
    position: absolute;
    right: 22px; top: 50%;
    transform: translateY(-50%);
    width: 132px; height: 132px;
    color: rgba(255, 255, 255, .22);
    pointer-events: none;
}
.wallet-hero__art svg { width: 100%; height: 100%; stroke-width: 1.4; }

/* ---------- Quick actions ----------------------------------------------- */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 18px;
}
.quick-item {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 8px 4px;
    border-radius: 12px;
    text-align: center;
    color: var(--ink-soft);
}
.quick-item:hover { background: var(--line-soft); }
.quick-item__icon {
    width: 58px; height: 58px;
    border-radius: 50%;
    display: grid; place-items: center;
}
.quick-item__icon svg { width: 25px; height: 25px; }
.quick-item__label { font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--ink-soft); }
.quick-item__label span { display: block; }

/* ---------- Service tiles ----------------------------------------------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 14px;
    padding-top: 18px;
}
.service-tile {
    display: flex; align-items: center; gap: 13px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.service-tile:hover {
    border-color: #cfd9ec;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
}
.service-tile__icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: grid; place-items: center;
    flex: none;
}
.service-tile__icon svg { width: 21px; height: 21px; }
.service-tile__name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.service-tile__sub { font-size: 13px; color: var(--muted); line-height: 1.3; }

/* ---------- Transaction list -------------------------------------------- */

.txn-list { padding-top: 6px; }
.txn-row {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
}
.txn-row:last-child { border-bottom: 0; }
.txn-row__icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; flex: none;
}
.txn-row__icon svg { width: 19px; height: 19px; }
.txn-row__main { min-width: 0; flex: 1; }
.txn-row__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.txn-row__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.txn-row__amount { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.txn-row__right { display: flex; align-items: center; gap: 14px; }

.pill {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    padding: 5px 12px;
    border-radius: 7px;
    white-space: nowrap;
}
.pill--success { background: var(--success-bg); color: var(--success); }
.pill--warning { background: var(--warning-bg); color: var(--warning); }
.pill--danger { background: var(--danger-bg); color: var(--danger); }
.pill--info { background: #e0f2fe; color: #0369a1; }
.pill--muted { background: var(--line-soft); color: var(--muted); }

/* ---------- Wallet summary ---------------------------------------------- */

.summary-box {
    background: #f8fafc;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin-top: 16px;
}
.summary-cell { padding: 18px 20px; }
.summary-cell:nth-child(odd) { border-right: 1px solid var(--line); }
.summary-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.summary-cell__label { font-size: 13px; color: var(--muted); }
.summary-cell__value { font-size: 19px; font-weight: 600; margin-top: 5px; letter-spacing: -.01em; }
.summary-cell__value--primary { color: var(--primary); }
.summary-cell__value--success { color: var(--success); }

/* ---------- Buttons ----------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--block { width: 100%; margin-top: 18px; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink-soft); }
.btn--ghost:hover { background: var(--line-soft); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #b91c1c; }
.btn--success { background: var(--success); color: #fff; }
.btn--success:hover { background: #15803d; }
.btn--download { background: var(--success); color: #fff; }
.btn--download:hover { background: #15803d; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--xs { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }

/* ---------- Forms ------------------------------------------------------- */

.field { margin-bottom: 16px; }
.field__label {
    display: block;
    font-size: 13.5px; font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 7px;
}
.field__hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field__error { font-size: 12.5px; color: var(--danger); margin-top: 6px; }

.input, .select, .textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #dbe2ee;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.input[readonly] { background: var(--line-soft); }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }

.checkbox { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Tables ------------------------------------------------------ */

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    text-align: left;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted);
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-soft);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcfe; }
.table__strong { font-weight: 600; color: var(--ink); }
.table__mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* ---------- Stat cards -------------------------------------------------- */

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: var(--shadow-sm);
}
.stat__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat__icon svg { width: 22px; height: 22px; }
.stat__label { font-size: 13px; color: var(--muted); }
.stat__value { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.stat__delta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Bar chart (pure CSS) ---------------------------------------- */

.chart { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 20px; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; justify-content: flex-end; }
.chart__bar {
    width: 100%; max-width: 46px;
    background: linear-gradient(180deg, var(--primary) 0%, #60a5fa 100%);
    border-radius: 7px 7px 4px 4px;
    min-height: 4px;
    position: relative;
}
.chart__bar span {
    position: absolute; top: -21px; left: 50%; transform: translateX(-50%);
    font-size: 11.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.chart__label { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Alerts / empty ---------------------------------------------- */

.alert {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    border: 1px solid transparent;
}
.alert svg { width: 19px; height: 19px; margin-top: 1px; }
.alert--success { background: var(--success-bg); color: #14532d; border-color: #bbf7d0; }
.alert--danger { background: var(--danger-bg); color: #7f1d1d; border-color: #fecaca; }
.alert--info { background: var(--primary-soft); color: #1e3a8a; border-color: #bfdbfe; }
.alert--warning { background: var(--warning-bg); color: #78350f; border-color: #fde68a; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty svg { width: 42px; height: 42px; color: #cbd5e1; margin: 0 auto 12px; }
.empty__title { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.empty__text { font-size: 13.5px; margin-top: 5px; }

/* ---------- Misc -------------------------------------------------------- */

.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head__title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.page-head__sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.page-head__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin-bottom: 0; min-width: 160px; }

.pagination { display: flex; gap: 6px; padding: 16px 22px; flex-wrap: wrap; align-items: center; }
.pagination a, .pagination span {
    padding: 7px 12px; border-radius: 8px; font-size: 13px;
    border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface);
}
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .is-disabled { opacity: .45; }

.divider { height: 1px; background: var(--line-soft); margin: 18px 0; }
.muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mb-3 { margin-bottom: 14px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 14px; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }

.kv { display: grid; grid-template-columns: 190px 1fr; gap: 10px 18px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }

.backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .45);
    display: none; z-index: 55;
}
.backdrop.is-open { display: block; }

/* ---------- Auth / public ----------------------------------------------- */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--canvas);
}
/* Simple auth: no marketing aside, one centered card */
.auth.auth--simple {
    display: block;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #eaf1ff 0, var(--canvas) 42%);
}
.auth.auth--simple .auth__main {
    min-height: 100vh;
    padding: 48px 20px;
}
.auth.auth--simple .auth__card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    margin: 0 auto;
    max-width: 460px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.auth.auth--simple .auth__title { text-align: center; }
.auth.auth--simple .auth__sub { text-align: center; }
.auth.auth--simple .auth__brand { margin-bottom: 30px; }
.auth__aside {
    background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 56px 60px;
    display: flex; flex-direction: column; justify-content: center;
}
.auth__aside h2 { color: #fff; font-size: 34px; line-height: 1.2; letter-spacing: -.02em; }
.auth__aside p { color: rgba(255, 255, 255, .86); font-size: 15.5px; margin: 18px 0 0; max-width: 460px; }
.auth__points { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 15px; }
.auth__points li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: rgba(255, 255, 255, .95); }
.auth__points svg { width: 21px; height: 21px; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 44px 28px; }
.auth__card { width: 100%; max-width: 424px; }
.auth__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 28px; }
.auth__title { font-size: 25px; letter-spacing: -.02em; }
.auth__sub { font-size: 14px; color: var(--muted); margin: 7px 0 26px; }
.auth__foot { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 22px; }

.site-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0 28px;
    height: 74px;
    display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 40;
}
.site-nav__links { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-nav__links a { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.site-nav__links a:hover { background: var(--line-soft); color: var(--ink); }

.hero { padding: 74px 28px 64px; text-align: center; background: linear-gradient(180deg, #eef4ff 0%, var(--canvas) 100%); }
.hero h1 { font-size: 42px; letter-spacing: -.03em; line-height: 1.15; max-width: 780px; margin: 0 auto; }
.hero p { font-size: 16.5px; color: var(--muted); max-width: 660px; margin: 18px auto 30px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { padding: 54px 28px; max-width: 1240px; margin: 0 auto; }
.section__head { text-align: center; margin-bottom: 34px; }
.section__head h2 { font-size: 28px; letter-spacing: -.02em; }
.section__head p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

.site-foot {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 30px 28px;
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
}

/* ---------- Print ------------------------------------------------------- */

@media print {
    .sidebar, .header, .no-print, .backdrop { display: none !important; }
    .main { margin-left: 0; }
    body { background: #fff; }
    .content { padding: 0; }
    .card { border: 0; box-shadow: none; }
}

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 1180px) {
    .grid--dash-top, .grid--dash-bottom { grid-template-columns: minmax(0, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth { grid-template-columns: 1fr; }
    .auth__aside { display: none; }
}

@media (max-width: 860px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
    .sidebar.is-open { transform: translateX(0); box-shadow: 0 0 40px rgba(15, 23, 42, .18); }
    .main { margin-left: 0; }
    .content { padding: 18px 16px 26px; }
    .header { padding: 0 16px; height: 68px; }
    .header__title { font-size: 17px; }
    .user-chip__meta { display: none; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
    .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .quick-item__icon { width: 50px; height: 50px; }
    .quick-item__label { font-size: 11.5px; }
    .service-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .service-tile { padding: 12px; gap: 10px; }
    .form-row, .form-row--3 { grid-template-columns: minmax(0, 1fr); }
    .wallet-hero__amount { font-size: 29px; }
    .wallet-hero__art { width: 96px; height: 96px; right: 10px; opacity: .8; }
    .kv { grid-template-columns: minmax(0, 1fr); gap: 3px 0; }
    .kv dd { margin-bottom: 10px; }
    .hero h1 { font-size: 30px; }
    .summary-box { grid-template-columns: minmax(0, 1fr); }
    .summary-cell:nth-child(odd) { border-right: 0; }
    .summary-cell:nth-child(3) { border-bottom: 1px solid var(--line); }
}

/* ---------- Public marketing site (home / login / register) ------------ */

.topbar {
    background: var(--ink);
    color: #cbd5e1;
    padding: 8px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}
.topbar__right { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar a { color: #cbd5e1; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; }

.site-nav__burger {
    display: none;
    margin-left: auto;
    width: 38px; height: 38px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--surface);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.site-nav__burger svg { width: 20px; height: 20px; color: var(--ink-soft); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
    gap: 48px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    text-align: left;
}
.hero__grid h1 { max-width: none; margin: 0; }
.hero h1 span { color: var(--success); }
.hero__grid .hero__actions { justify-content: flex-start; }
.hero__grid p { margin: 18px 0 28px; max-width: 560px; }

.hero__features {
    display: flex;
    gap: 28px;
    margin-top: 34px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero__feature { display: flex; align-items: center; gap: 10px; }
.hero__feature-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    display: grid;
    place-items: center;
    flex: none;
    box-shadow: var(--shadow-sm);
}
.hero__feature-icon svg { width: 20px; height: 20px; }
.hero__feature strong { display: block; font-size: 13.5px; color: var(--ink); }
.hero__feature span { font-size: 12px; color: var(--muted); }

.phone-mock {
    width: 264px;
    margin: 0 auto;
    background: var(--surface);
    border: 10px solid var(--ink);
    border-radius: 34px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, .18);
    padding: 22px 16px;
    text-align: center;
}
.phone-mock__brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 15px; }
.phone-mock__brand .sidebar__mark { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
.phone-mock__hero {
    margin-top: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 16px;
    padding: 18px;
    text-align: left;
}
.phone-mock__hero strong { display: block; font-size: 15px; }
.phone-mock__hero span { display: block; font-size: 12px; color: rgba(255,255,255,.85); margin-top: 4px; }
.phone-mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.phone-mock__grid div {
    background: var(--line-soft);
    border-radius: 11px;
    padding: 10px 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.phone-mock__grid svg { width: 17px; height: 17px; color: var(--primary); }

.stats-bar {
    background: var(--primary-soft);
    padding: 30px 28px;
}
.stats-bar__grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.stats-bar__grid > div + div { border-left: 0; }
.stats-bar h2 { color: var(--primary-dark); font-size: 28px; letter-spacing: -.02em; }
.stats-bar p { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card .service-icon {
    width: 50px; height: 50px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}
.service-card .service-icon svg { width: 23px; height: 23px; }
.service-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.service-card p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

.site-foot--rich {
    background: linear-gradient(160deg, var(--ink) 0%, #0b1730 100%);
    color: #b9c4d6;
    padding: 54px 28px 22px;
}
.site-foot--rich .foot-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
}
.site-foot--rich h3 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-foot--rich p { font-size: 13.5px; line-height: 1.75; color: #97a5bd; }
.site-foot--rich ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-foot--rich ul a { font-size: 13.5px; color: #b9c4d6; }
.site-foot--rich ul a:hover { color: #fff; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand .sidebar__name { color: #fff; }
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: grid;
    place-items: center;
}
.foot-social a:hover { background: var(--primary); }
.foot-social svg { width: 16px; height: 16px; color: #fff; }
.foot-social a span { font-size: 10.5px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.foot-bottom {
    max-width: 1240px;
    margin: 26px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: #7c8aa3;
}

.input-wrap { position: relative; }
.input-wrap .input { padding-left: 42px; }
.input-wrap .field__icon {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--muted-light);
    pointer-events: none;
    display: flex;
}
.input-wrap .field__icon svg { width: 18px; height: 18px; }
.input-wrap .field__toggle {
    position: absolute;
    right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
}
.input-wrap .field__toggle svg { width: 18px; height: 18px; }
.input-wrap .field__toggle:hover { background: var(--line-soft); color: var(--primary); }
.input-wrap .field__toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.field__toggle .icon-eye-off { display: none; }
.field__toggle.is-active .icon-eye { display: none; }
.field__toggle.is-active .icon-eye-off { display: block; }

@media (max-width: 900px) {
    .topbar { justify-content: center; font-size: 11.5px; padding: 7px 16px; }
    .hero__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .hero__grid .hero__actions, .hero__features { justify-content: center; }
    .hero__grid p { margin-left: auto; margin-right: auto; }
    .phone-mock { margin-top: 40px; }
    .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
    .stats-bar__grid > div:nth-child(odd) { border-left: 0; }
    .stats-bar__grid > div:nth-child(-n+2) { padding-bottom: 18px; border-bottom: 1px solid rgba(37,99,235,.15); }
    .site-foot--rich .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .auth.auth--simple .auth__main { padding: 24px 14px; }
    .auth.auth--simple .auth__card { padding: 24px 18px; }
    .auth.auth--simple .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 860px) {
    .site-nav__burger { display: flex; }
    .site-nav__links {
        position: absolute;
        top: 74px; left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 10px 20px 18px;
        gap: 4px;
        display: none;
        box-shadow: var(--shadow);
    }
    .site-nav__links.is-open { display: flex; }
    .site-nav__links a { padding: 11px 4px; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
    .site-nav__links .btn { margin-top: 8px; text-align: center; justify-content: center; }
}

@media (max-width: 600px) {
    .topbar { display: none; }
    .service-grid.service-grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-foot--rich .foot-grid { grid-template-columns: 1fr; gap: 28px; }
    .foot-bottom { flex-direction: column; text-align: center; }
}

.service-grid--cards { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .service-grid--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Retailer dashboard theme (.shell--user only; admin unaffected) */

.shell--user .sidebar {
    background: linear-gradient(180deg, #0a3272 0%, #061c46 100%);
    border-right: 0;
}
.shell--user .sidebar__name { color: #fff; }
.shell--user .sidebar__mark { background: #1767e9; }
.shell--user .nav-link { color: #b9caeb; }
.shell--user .nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.shell--user .nav-link.is-active {
    background: #1767e9;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.shell--user .nav-link.is-active:hover { background: #1767e9; }
.shell--user .nav-link .nav-link__caret { opacity: .7; }
.shell--user .sidebar__foot { color: rgba(255, 255, 255, .45); border-top: 1px solid rgba(255, 255, 255, .08); }

.shell--user .wallet-hero { background: linear-gradient(135deg, #2d66e8, #174bd2); }

.shell--admin .sidebar {
    background: linear-gradient(180deg, #1e2531 0%, #12161f 100%);
    border-right: 0;
}
.shell--admin .sidebar__name { color: #fff; }
.shell--admin .sidebar__mark { background: #d4a02a; color: #1e2531; }
.shell--admin .nav-link { color: #9aa4b5; }
.shell--admin .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.shell--admin .nav-link.is-active {
    background: #d4a02a;
    color: #1e2531;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}
.shell--admin .nav-link.is-active:hover { background: #d4a02a; color: #1e2531; }
.shell--admin .sidebar__foot { color: rgba(255, 255, 255, .4); border-top: 1px solid rgba(255, 255, 255, .08); }

.refer-card {
    margin: 14px 14px 6px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
}
.refer-card__title { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 13.5px; }
.refer-card__title svg { width: 17px; height: 17px; }
.refer-card p { font-size: 12px; color: #b9caeb; margin: 7px 0 12px; line-height: 1.5; }
.refer-card__code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 9px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
}
.refer-card__code button {
    border: 0;
    background: none;
    color: #cfe0ff;
    cursor: pointer;
    display: flex;
    padding: 2px;
}
.refer-card__code button svg { width: 16px; height: 16px; }
.refer-card__code button:hover { color: #fff; }

/* ---------- Admin dashboard v2: KPI cards, donut, overview chart --------- */

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.stat-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.stat-card__icon svg { width: 21px; height: 21px; }
.stat-card__label { font-size: 13px; color: var(--muted); }
.stat-card__value { font-size: 23px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; }
.stat-card__delta { font-size: 12px; margin-top: 9px; display: flex; align-items: center; gap: 4px; color: var(--muted); }
.stat-card__delta svg { width: 13px; height: 13px; }
.stat-card__delta--up { color: var(--success); }
.stat-card__delta--down { color: var(--danger); }

.status-card {
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
}
.status-card--success { background: var(--success-bg); }
.status-card--danger { background: var(--danger-bg); }
.status-card--warning { background: var(--warning-bg); }
.status-card__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.6); }
.status-card__icon svg { width: 19px; height: 19px; }
.status-card__value { font-size: 20px; font-weight: 700; line-height: 1.2; }
.status-card__label { font-size: 12.5px; color: var(--ink-soft); }
.status-card__pct { margin-left: auto; font-size: 13px; font-weight: 700; }

.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.donut { width: 168px; height: 168px; border-radius: 50%; flex: none; position: relative; }
.donut__hole {
    position: absolute; inset: 24px;
    background: var(--surface);
    border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut__total { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.donut__label { font-size: 10.5px; color: var(--muted); }
.donut-legend { flex: 1; min-width: 180px; display: grid; gap: 3px; }
.donut-legend__item { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 6px 0; }
.donut-legend__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.donut-legend__label { flex: 1; color: var(--ink-soft); }
.donut-legend__pct { font-weight: 600; color: var(--ink); }

.overview-chart { width: 100%; height: 190px; display: block; }
.overview-legend { display: flex; gap: 18px; margin-top: 6px; flex-wrap: wrap; }
.overview-legend__item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.overview-legend__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.promo-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.promo-card__icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin-bottom: 14px; }
.promo-card__icon svg { width: 21px; height: 21px; }
.promo-card__title { font-size: 16px; font-weight: 700; }
.promo-card__text { font-size: 13px; color: rgba(255,255,255,.82); margin: 8px 0 16px; line-height: 1.55; flex: 1; }
.promo-card__btn {
    align-self: flex-start;
    background: #fff;
    color: var(--primary-dark);
    border-radius: 9px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
}

.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa-item {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 16px 6px;
    border-radius: 12px;
    text-align: center;
    color: var(--ink-soft);
    border: 1px solid var(--line);
}
.qa-item:hover { background: var(--line-soft); }
.qa-item__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.qa-item__icon svg { width: 19px; height: 19px; }
.qa-item span { font-size: 12px; font-weight: 500; line-height: 1.3; }

@media (max-width: 900px) {
    .qa-grid { grid-template-columns: repeat(3, 1fr); }
    .donut-wrap { justify-content: center; }
}

/* ---------- Retailer dashboard v2: mini-stats, compact service grid ------ */

.mini-stat { border-radius: var(--radius); padding: 18px; color: #fff; }
.mini-stat--blue { background: linear-gradient(135deg, #2d66e8, #174bd2); }
.mini-stat--green { background: linear-gradient(135deg, #10b981, #059669); }
.mini-stat--orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.mini-stat--purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.mini-stat__icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.2); display: grid; place-items: center; margin-bottom: 12px; }
.mini-stat__icon svg { width: 18px; height: 18px; }
.mini-stat__label { font-size: 12.5px; opacity: .88; }
.mini-stat__value { font-size: 21px; font-weight: 700; margin-top: 3px; letter-spacing: -.02em; }
.mini-stat__actions { display: flex; gap: 8px; margin-top: 14px; }
.mini-stat__actions a { background: rgba(255,255,255,.18); color: #fff; font-size: 11.5px; font-weight: 600; padding: 8px 10px; border-radius: 7px; flex: 1; text-align: center; }
.mini-stat__actions a:hover { background: rgba(255,255,255,.3); }

.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.svc-tile {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
    padding: 14px 6px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
}
.svc-tile:hover { background: var(--line-soft); }
.svc-tile__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.svc-tile__icon svg { width: 21px; height: 21px; }
.svc-tile b { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.svc-tile span { font-size: 11px; color: var(--muted); }

.profile-card__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; margin: 0 auto 10px; }
.profile-card__name { text-align: center; font-weight: 700; font-size: 15px; }
.profile-card__role { text-align: center; margin: 5px 0 2px; }
.profile-card__row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); justify-content: center; margin-top: 4px; }
.profile-card__row svg { width: 14px; height: 14px; }
.pill svg { width: 11px; height: 11px; vertical-align: -1.5px; margin-right: 3px; }
.profile-kv { display: flex; justify-content: space-between; font-size: 12.5px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.profile-kv dt { color: var(--muted); }
.profile-kv dd { margin: 0; font-weight: 600; color: var(--ink); }

.link-list { display: grid; gap: 2px; }
.link-list a { display: flex; align-items: center; gap: 11px; padding: 10px 4px; font-size: 13px; color: var(--ink-soft); border-radius: 8px; }
.link-list a:hover { background: var(--line-soft); color: var(--ink); }
.link-list a svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.link-list a .chev { margin-left: auto; width: 15px; height: 15px; opacity: .6; }

@media (max-width: 1180px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- AePS onboarding: stepper, sidebar cards, upload boxes -------- */

.aeps-stepper { display: flex; align-items: flex-start; }
.aeps-step { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; position: relative; }
.aeps-step__circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700; font-size: 14px;
    background: var(--line-soft); color: var(--muted);
    border: 2px solid var(--line);
    z-index: 1;
}
.aeps-step__circle svg { width: 18px; height: 18px; }
.aeps-step--done .aeps-step__circle { background: var(--success); border-color: var(--success); color: #fff; }
.aeps-step--active .aeps-step__circle { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.aeps-step__label { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 10px; }
.aeps-step--pending .aeps-step__label { color: var(--muted); font-weight: 500; }
.aeps-step__sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.aeps-step--done .aeps-step__sub { color: var(--success); }
.aeps-step--active .aeps-step__sub { color: var(--primary); }
.aeps-step__line { position: absolute; top: 20px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.aeps-step--done .aeps-step__line { background: var(--success); }
.aeps-step:last-child .aeps-step__line { display: none; }

.agent-code-card { background: var(--success-bg); border-radius: var(--radius); padding: 18px; }
.agent-code-card__head { display: flex; align-items: center; gap: 8px; color: #15803d; font-weight: 600; font-size: 13.5px; }
.agent-code-card__head svg { width: 17px; height: 17px; }
.agent-code-card__value {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--surface);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 19px; font-weight: 700; color: var(--ink);
}
.agent-code-card__value button { border: 0; background: none; color: var(--muted); cursor: pointer; display: flex; }
.agent-code-card p { font-size: 12px; color: #166534; margin: 8px 0 0; line-height: 1.5; }

.doc-checklist { display: grid; gap: 14px; }
.doc-checklist__item { display: flex; align-items: flex-start; gap: 11px; }
.doc-checklist__icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.doc-checklist__icon svg { width: 16px; height: 16px; }
.doc-checklist__item strong { display: block; font-size: 13px; }
.doc-checklist__item span { font-size: 11.5px; color: var(--muted); }

.upload-box {
    position: relative;
    overflow: hidden;
    border: 1.5px dashed var(--line);
    border-radius: 12px;
    padding: 22px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.upload-box:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-box.has-file { border-style: solid; border-color: var(--success); background: var(--success-bg); }
.upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box svg { width: 26px; height: 26px; color: var(--muted-light); margin: 0 auto 8px; }
.upload-box__text { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.upload-box__hint { font-size: 11px; color: var(--muted); margin-top: 3px; }

.proof-toggle { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 14px; }
.proof-toggle input { width: 17px; height: 17px; accent-color: var(--primary); }

.role-badge {
    display: inline-flex; align-items: center;
    background: var(--primary-soft); color: var(--primary-dark);
    font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 30px;
    margin-left: 12px; vertical-align: middle;
}
.header-wallet-chip {
    display: flex; align-items: center; gap: 8px;
    background: var(--line-soft);
    border-radius: 30px;
    padding: 7px 14px 7px 8px;
    font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.header-wallet-chip svg { width: 18px; height: 18px; color: var(--primary); }
@media (max-width: 700px) { .header-wallet-chip, .role-badge { display: none; } }

/* ---------- Dashboard banner slider ------------------------------------- */

.banner-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 190px;
}
.banner-slider__track { display: flex; transition: transform .45s ease; }
.banner-slider__slide { flex: 0 0 100%; min-width: 100%; }
.banner-slider__slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.banner-slider__slide a { display: block; height: 100%; }

.banner-slider__default {
    background: linear-gradient(120deg, #0a3272 0%, #061c46 100%);
    color: #fff;
    min-height: 190px;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.banner-slider__default h3 { color: #fff; font-size: 21px; line-height: 1.35; margin: 0; }
.banner-slider__default h3 span { color: #7dd3fc; }
.banner-slider__default p { color: rgba(255,255,255,.8); font-size: 13px; margin: 10px 0 0; }
.banner-slider__default .btn { margin-top: 14px; }

.banner-slider__dots {
    position: absolute;
    left: 0; right: 0; bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 7px;
}
.banner-slider__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: 0;
    cursor: pointer;
    padding: 0;
}
.banner-slider__dot.is-active { background: #fff; width: 20px; border-radius: 4px; }
.banner-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(15,23,42,.35);
    color: #fff;
    border: 0;
    display: grid; place-items: center;
    cursor: pointer;
}
.banner-slider__arrow svg { width: 17px; height: 17px; }
.banner-slider__arrow--prev { left: 12px; }
.banner-slider__arrow--next { right: 12px; }
@media (max-width: 600px) { .banner-slider__arrow { display: none; } }

/* ---------- Home v2 — matches the client's reference screenshot (18-Sep-2026) */

.site-nav__brandtext { display: flex; flex-direction: column; line-height: 1.2; }
.site-nav__tagline { font-size: 10.5px; font-weight: 500; color: var(--muted); }

.topbar__social { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.topbar__social a { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.topbar__social a:hover { background: rgba(255, 255, 255, .32); }
.topbar__social span { font-size: 9px; font-weight: 800; color: #fff; }

.trust-badges { display: flex; gap: 24px; flex-wrap: wrap; margin: 22px 0; }
.trust-badge { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.trust-badge__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.trust-badge__icon svg { width: 17px; height: 17px; color: #fff; }
.trust-badge__icon--yellow { background: #f59e0b; }
.trust-badge__icon--blue { background: #2563eb; }
.trust-badge__icon--orange { background: #f97316; }
.trust-badge__icon--purple { background: #8b5cf6; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.hero-visual__blob { position: absolute; border-radius: 50%; z-index: 0; }
.hero-visual__blob--a { width: 260px; height: 260px; top: 10px; left: 0; background: var(--primary-soft); opacity: .8; }
.hero-visual__blob--b { width: 140px; height: 140px; bottom: 20px; right: 6px; background: #dcfce7; opacity: .8; }

.hero-pillars { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; }
.hero-pillcol { display: flex; flex-direction: column; gap: 20px; }
.hero-pillcol--right { align-items: flex-end; }
.hero-pillcol .hero-pill:nth-child(2) { margin-inline-start: 20px; }
.hero-pillcol .hero-pill:nth-child(3) { margin-inline-start: 8px; }
.hero-pillcol--right .hero-pill:nth-child(2) { margin-inline-start: 0; margin-inline-end: 20px; }
.hero-pillcol--right .hero-pill:nth-child(3) { margin-inline-start: 0; margin-inline-end: 8px; }
.hero-pill {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border-radius: 30px;
    padding: 8px 16px 8px 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
    font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap;
}
.hero-pillcol--right .hero-pill { padding: 8px 8px 8px 16px; flex-direction: row-reverse; }
.hero-pill__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.hero-pill__icon svg { width: 15px; height: 15px; color: #fff; }

.hero-phone {
    position: relative; z-index: 1; width: 230px;
    background: var(--surface); border: 9px solid var(--ink); border-radius: 36px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, .22);
    padding: 26px 18px; text-align: center;
}
.hero-phone__brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-phone__brand .sidebar__mark { width: 40px; height: 40px; font-size: 17px; }
.hero-phone__brand strong { font-size: 14px; }
.hero-phone__brand span { font-size: 8.5px; color: var(--muted); }
.hero-phone__headline { margin: 20px 0 4px; font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.hero-phone__check { width: 46px; height: 46px; border-radius: 50%; background: var(--success); display: grid; place-items: center; margin: 14px auto; }
.hero-phone__check svg { width: 24px; height: 24px; color: #fff; }
.hero-phone__caption { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }

.hero-badge-round {
    position: absolute; right: -6px; bottom: -6px; z-index: 2;
    width: 116px; height: 116px; border-radius: 50%;
    background: linear-gradient(150deg, var(--ink) 0%, #0b1730 100%); color: #fff;
    display: grid; place-items: center; text-align: center;
    font-size: 10.5px; font-weight: 800; line-height: 1.4; padding: 10px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, .3);
}

.stats-bar__item { display: flex; align-items: center; gap: 12px; }
.stats-bar__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); color: var(--primary); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.stats-bar__icon svg { width: 21px; height: 21px; }

.partner-banner { background: var(--primary-soft); padding: 26px 28px; }
.partner-banner__grid { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.partner-banner__main { display: flex; align-items: center; gap: 14px; }
.partner-banner__main .icon-circle { width: 46px; height: 46px; border-radius: 50%; background: #fef3c7; color: #b45309; display: grid; place-items: center; flex: none; }
.partner-banner__main .icon-circle svg { width: 22px; height: 22px; }
.partner-banner__main strong { display: block; font-size: 15px; color: var(--ink); }
.partner-banner__main span { font-size: 12.5px; color: var(--muted); }
.partner-banner__points { display: flex; gap: 26px; flex-wrap: wrap; }
.partner-banner__point { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--ink); }
.partner-banner__point .icon-circle { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.partner-banner__point .icon-circle svg { width: 15px; height: 15px; color: #fff; }
.partner-banner__point--green .icon-circle { background: var(--success); }
.partner-banner__point--blue .icon-circle { background: var(--primary); }

.site-foot--rich .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-contact li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #b9c4d6; }
.foot-contact svg { width: 15px; height: 15px; color: #fff; flex: none; margin-top: 2px; }
.foot-contact a { color: #b9c4d6; }
.foot-contact a:hover { color: #fff; }

@media (max-width: 900px) {
    .hero-pillars, .hero-badge-round, .hero-visual__blob { display: none; }
    .hero-visual { min-height: auto; padding: 20px 0; }
    .partner-banner__grid { justify-content: center; text-align: center; }
    .partner-banner__main { flex-direction: column; }
    .site-foot--rich .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .trust-badges { gap: 14px; }
    .site-foot--rich .foot-grid { grid-template-columns: 1fr; }
}
