/* ==========================================================================
   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--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);
}
.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); }
}
