/* ============================================================
   NetPlug — light, modern service app
   Primary: green. Accent: red. Built mobile-first.
   ============================================================ */

:root {
    --green-900: #054f31;
    --green-800: #05603a;
    --green-700: #067647;
    --green-600: #0b8f4d;
    --green-500: #12b76a;
    --green-400: #32d583;
    --green-200: #a6f4c5;
    --green-100: #d1fadf;
    --green-50: #ecfdf3;

    --red-800: #912018;
    --red-700: #b42318;
    --red-600: #d92d20;
    --red-500: #f04438;
    --red-100: #fee4e2;
    --red-50: #fef3f2;

    --amber-600: #dc6803;
    --amber-100: #fef0c7;
    --amber-50: #fffaeb;

    --ink: #101828;
    --ink-2: #344054;
    --muted: #667085;
    --muted-2: #98a2b3;
    --line: #eaecf0;
    --line-2: #f2f4f7;
    --bg: #f7faf8;
    --card: #ffffff;

    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius: 20px;
    --radius-lg: 26px;
    --radius-xl: 32px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 2px 8px -2px rgba(16, 24, 40, .08);
    --shadow: 0 14px 34px -16px rgba(16, 24, 40, .20);
    --shadow-lg: 0 28px 70px -24px rgba(16, 24, 40, .30);

    --nav-h: 70px;
    --header-h: 64px;
    --ease: cubic-bezier(.22, .8, .25, 1);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.app-body {
    background:
        radial-gradient(900px 420px at 6% -8%, rgba(18, 183, 106, .13), transparent 62%),
        radial-gradient(700px 360px at 108% 4%, rgba(240, 68, 56, .09), transparent 60%),
        var(--bg);
    min-height: 100vh;
}

body.sheet-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4, p {
    margin: 0;
}

h1, h2, h3, h4 {
    line-height: 1.18;
    letter-spacing: -.02em;
}

.icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 999;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }
.text-green { color: var(--green-600); }
.text-red { color: var(--red-600); }
.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow.green { color: var(--green-700); }
.eyebrow.red { color: var(--red-600); }

:focus-visible {
    outline: 3px solid rgba(18, 183, 106, .35);
    outline-offset: 2px;
}

/* ============================================================
   App shell / header
   ============================================================ */

.app-shell {
    min-height: 100vh;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(247, 250, 248, .84);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, background .25s;
}
.app-header.is-scrolled {
    border-bottom-color: rgba(234, 236, 240, .9);
    background: rgba(255, 255, 255, .9);
}
.app-header-inner {
    height: var(--header-h);
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.app-header-left,
.app-header-right {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.app-header-left { flex: 1; min-width: 0; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.site-logo {
    display: block;
    width: auto;
    height: 54px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.page-heading h1 {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-2);
    transition: background .2s, color .2s, transform .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .9); color: var(--green-700); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .icon { width: 21px; height: 21px; }
.back-btn {
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
    margin-right: 2px;
}

.balance-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5px 12px;
    border-radius: 14px;
    border: 1px solid rgba(18, 183, 106, .22);
    background: rgba(236, 253, 243, .9);
    color: var(--green-800);
    transition: transform .2s, box-shadow .2s;
}
.balance-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(6, 118, 71, .5); }
.balance-pill-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--green-700);
    opacity: .8;
    line-height: 1.2;
}
.balance-pill strong {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    background: linear-gradient(145deg, var(--green-600), var(--green-800));
    border: 2px solid #fff;
    box-shadow: 0 4px 10px -4px rgba(6, 118, 71, .55);
}
.notif-dot {
    position: absolute;
    margin: -16px 0 0 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-500);
    border: 2px solid #fff;
}
.connection-bar {
    background: var(--amber-50);
    color: #93370d;
    font-size: 12px;
    text-align: center;
    padding: 7px 16px;
    border-bottom: 1px solid var(--amber-100);
}
.connection-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red-500);
    margin-right: 6px;
    vertical-align: 1px;
}

/* ============================================================
   Main content
   ============================================================ */

.app-main {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 18px calc(var(--nav-h) + 34px);
    animation: page-in .45s var(--ease) both;
}
.app-body[data-page="home"] .app-main { padding-top: 6px; }
@keyframes page-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 26px 2px 12px;
}
/* Quick actions sit right under the wallet row */
.section-head.quick-head {
    margin: 6px 2px 9px;
}
.section-head h2 {
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: -.025em;
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--green-700);
}
.section-link .icon { width: 15px; height: 15px; }

/* ============================================================
   Wallet card
   ============================================================ */

.wallet-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 13px 15px;
    color: #fff;
    background:
        radial-gradient(420px 220px at 105% -20%, rgba(50, 213, 131, .38), transparent 60%),
        linear-gradient(135deg, #054f31 0%, #067647 52%, #0b8f4d 100%);
    box-shadow: 0 14px 30px -22px rgba(5, 79, 49, .7);
    isolation: isolate;
}
.wallet-card::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    right: -42px;
    bottom: -46px;
    background: rgba(240, 68, 56, .2);
    filter: blur(2px);
}
.wallet-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    right: -72px;
    top: -88px;
    border: 1px solid rgba(255, 255, 255, .14);
}

/* Row: wallet card + two dedicated top-up accounts */
.wallet-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}
.wallet-row .wallet-card { grid-column: 1 / -1; }
@media (min-width: 620px) {
    .wallet-row {
        grid-template-columns: 1.7fr 1fr 1fr;
        gap: 12px;
    }
    .wallet-row .wallet-card { grid-column: auto; }
}

.topup-account-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.topup-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 14px 12px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    min-width: 0;
    position: relative;
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s;
}
.topup-card:hover {
    border-color: rgba(18, 183, 106, .35);
    box-shadow: var(--shadow-sm);
}
.topup-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    right: -34px;
    top: -40px;
    background: radial-gradient(circle, rgba(18, 183, 106, .10), transparent 70%);
    pointer-events: none;
}
.topup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}
.topup-bank {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--ink-2);
    white-space: nowrap;
}
.topup-bank .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 3px rgba(18, 183, 106, .16);
}
.topup-card.is-empty .topup-bank .dot { background: var(--red-500); box-shadow: 0 0 0 3px rgba(240, 68, 56, .14); }
.topup-badge {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--green-700);
    background: var(--green-50);
    border: 1px solid rgba(18, 183, 106, .15);
    padding: 2px 6px;
    border-radius: 999px;
    white-space: nowrap;
}
.topup-card.is-empty .topup-badge { color: var(--red-600); background: var(--red-50); border-color: var(--red-100); }
.topup-card.is-empty button.topup-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    line-height: 1.35;
    transition: background .15s, transform .15s;
}
.topup-card.is-empty button.topup-badge:hover { background: var(--red-100); }
.topup-card.is-empty button.topup-badge:active { transform: scale(.94); }
.topup-card.is-empty button.topup-badge .icon {
    width: 9px;
    height: 9px;
    stroke-width: 2.2;
}
.topup-label {
    font-size: 9px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted-2);
    position: relative;
    z-index: 1;
}
.topup-number-row {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.topup-number {
    font-size: clamp(12px, 3.5vw, 14px);
    white-space: nowrap;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}
.topup-name {
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
}
.topup-copy {
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--green-100);
    border-radius: 7px;
    background: var(--green-50);
    color: var(--green-700);
}
.topup-copy:hover { background: var(--green-100); }
.topup-copy:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }
.topup-copy .icon { width: 13px; height: 13px; }
.topup-card.is-empty .topup-empty {
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.4;
}
.wallet-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.wallet-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}
.wallet-balance {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.12;
    margin: 2px 0 0;
    font-variant-numeric: tabular-nums;
}
.wallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 9.5px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.wallet-badge .icon { width: 12px; height: 12px; }
.wallet-actions {
    display: flex;
    gap: 7px;
    margin-top: 11px;
    position: relative;
    z-index: 1;
}
.wallet-actions .btn {
    height: 34px;
    font-size: 11px;
    padding: 0 12px;
    border-radius: 10px;
}
.wallet-actions .btn-white {
    background: #fff;
    color: var(--green-800);
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4);
}
.wallet-actions .btn-white:hover { background: var(--green-50); }
.wallet-actions .btn-glass {
    background: rgba(255, 255, 255, .13);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
}
.wallet-actions .btn-glass:hover { background: rgba(255, 255, 255, .22); }
.wallet-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    position: relative;
    z-index: 1;
}
.wallet-account small {
    display: block;
    font-size: 8.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.wallet-account strong {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    margin-top: 1px;
    letter-spacing: .01em;
}
.copy-mini {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    transition: background .2s;
}
.copy-mini:hover { background: rgba(255, 255, 255, .24); }
.copy-mini .icon { width: 13px; height: 13px; }

/* ============================================================
   Quick actions
   ============================================================ */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 6px 11px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.quick-item:hover {
    transform: translateY(-2px);
    border-color: var(--green-200);
    box-shadow: var(--shadow-sm);
}
.quick-item:active { transform: scale(.97); }
.quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--green-700);
    background: var(--green-50);
    border: 1px solid rgba(18, 183, 106, .13);
}
.quick-icon .icon { width: 30px; height: 30px; }
.quick-icon img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; }
.quick-item.red .quick-icon {
    color: var(--red-600);
    background: var(--red-50);
    border-color: rgba(240, 68, 56, .14);
}
.quick-item span {
    font-size: 11.5px;
    font-weight: 650;
    color: var(--ink-2);
    text-align: center;
    line-height: 1.2;
}

/* ============================================================
   Cards, panels, lists
   ============================================================ */

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 18px;
}
.card.flush { padding: 0; overflow: hidden; }
.card-title {
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }

.divider { height: 1px; background: var(--line-2); border: 0; margin: 14px 0; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 38px 20px;
    border-radius: var(--radius);
    border: 1px dashed #d0d5dd;
    background: rgba(255, 255, 255, .7);
}
.empty-state.compact { padding: 26px 16px; border: 0; background: transparent; }
.empty-state h3 { font-size: 14px; font-weight: 750; }
.empty-state p { font-size: 12.5px; color: var(--muted); max-width: 30ch; }
.empty-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--green-700);
    background: var(--green-50);
    margin-bottom: 3px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .18s, background .18s, opacity .18s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
    background: linear-gradient(145deg, var(--green-500), var(--green-700));
    color: #fff;
    box-shadow: 0 12px 24px -12px rgba(6, 118, 71, .7);
}
.btn-primary:hover { box-shadow: 0 16px 28px -12px rgba(6, 118, 71, .8); }
.btn-danger {
    background: linear-gradient(145deg, var(--red-500), var(--red-700));
    color: #fff;
    box-shadow: 0 12px 24px -12px rgba(180, 35, 24, .6);
}
.btn-outline {
    background: #fff;
    color: var(--ink-2);
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
}
.btn-outline:hover { border-color: var(--green-200); color: var(--green-700); }
.btn-ghost {
    background: transparent;
    color: var(--green-700);
}
.btn-ghost:hover { background: var(--green-50); }
.btn-soft {
    background: var(--green-50);
    color: var(--green-800);
    border-color: rgba(18, 183, 106, .16);
}
.btn-soft:hover { background: var(--green-100); }
.btn-full { width: 100%; }
.btn-sm { height: 38px; padding: 0 13px; font-size: 12px; border-radius: 11px; }
.btn-xs { height: 32px; padding: 0 10px; font-size: 11px; border-radius: 9px; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading .icon { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Forms
   ============================================================ */

.form-grid { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-2);
}
.field .hint { font-size: 11.5px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

.input,
.select,
.textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-size: 14.5px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
    -webkit-appearance: none;
    appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(18, 183, 106, .12);
}
.input:disabled { background: var(--line-2); color: var(--muted); }
.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 17px;
    padding-right: 40px;
}
.textarea { min-height: 90px; resize: vertical; }

.input-wrap { position: relative; }
.input-wrap > .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted-2);
    pointer-events: none;
}
.input-wrap .input { padding-left: 42px; }
.input-wrap .pin-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
}
.input-wrap .pin-toggle:hover { background: var(--line-2); color: var(--ink-2); }
.input-wrap .pin-toggle .icon { width: 18px; height: 18px; }
.input-wrap:has(.pin-toggle) .input { padding-right: 48px; }

.checkline {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    color: var(--muted);
}
.checkline input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--green-600); }
.checkline a { color: var(--green-700); font-weight: 700; }

.form-error {
    font-size: 12px;
    color: var(--red-600);
    font-weight: 600;
}
.form-alert {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--red-50);
    border: 1px solid var(--red-100);
    color: var(--red-700);
    font-size: 12.5px;
    font-weight: 600;
}
.form-alert.success {
    background: var(--green-50);
    border-color: var(--green-100);
    color: var(--green-800);
}

/* ============================================================
   Segmented control / tabs
   ============================================================ */

.segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: #eef2f0;
    overflow-x: auto;
    scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button,
.segmented a {
    flex: 1 0 auto;
    min-width: max-content;
    border: 0;
    background: transparent;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    transition: background .18s, color .18s, box-shadow .18s;
}
.segmented button.is-active,
.segmented a.is-active {
    background: #fff;
    color: var(--green-800);
    box-shadow: 0 3px 8px -4px rgba(16, 24, 40, .2);
}

.brand-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.brand-logo {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}
.brand-logo-lg { width: 32px; height: 32px; }
.network-brands { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.service-card .brand-logo { width: 22px; height: 22px; }

.chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    transition: all .18s;
}
.chip:hover { border-color: var(--green-200); color: var(--green-700); }
.chip.is-active {
    background: var(--green-700);
    border-color: var(--green-700);
    color: #fff;
    box-shadow: 0 6px 14px -8px rgba(6, 118, 71, .8);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade-up .3s var(--ease) both; }
.sub-panel { display: none; }
.sub-panel.is-active { display: block; animation: fade-up .3s var(--ease) both; }
@keyframes fade-up {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
}

/* History — analytics tiles */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.stat-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 12px;
    box-shadow: var(--shadow-xs);
    min-width: 0;
}
.stat-tile small {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.stat-tile strong {
    display: block;
    margin-top: 3px;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-tile.accent {
    background: linear-gradient(135deg, #067647, #0b8f4d);
    border-color: transparent;
    color: #fff;
}
.stat-tile.accent small { color: rgba(255, 255, 255, .75); }
.stat-tile.accent strong { color: #fff; }
.spend-list { display: grid; gap: 10px; }
.spend-item { min-width: 0; }
.spend-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}
.spend-top strong { font-size: 12.5px; }
.spend-top span { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 700; }
.spend-bar {
    margin-top: 5px;
    height: 7px;
    border-radius: 999px;
    background: var(--line-2);
    overflow: hidden;
}
.spend-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green-600), var(--green-400));
}

/* ============================================================
   Network + plan pickers
   ============================================================ */

.network-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.network-option { position: relative; display: block; cursor: pointer; }
.network-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.network-option .network-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 5px 9px;
    border-radius: 13px;
    border: 1.5px solid var(--line);
    background: #fff;
    transition: all .18s var(--ease);
}
.network-option .network-box img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
}
.network-option .network-fallback {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 11px;
    font-weight: 800;
}
.network-option span {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}
.network-option input:checked + .network-box {
    border-color: var(--green-500);
    background: var(--green-50);
    box-shadow: 0 0 0 3px rgba(18, 183, 106, .10);
}
.network-option input:checked + .network-box span { color: var(--green-800); }
.network-option input:focus-visible + .network-box { outline: 3px solid rgba(18, 183, 106, .35); outline-offset: 2px; }

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.plan-card {
    position: relative;
    text-align: left;
    padding: 13px 12px 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line);
    background: #fff;
    transition: all .18s var(--ease);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 92px;
}
.plan-card:hover {
    border-color: var(--green-200);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.plan-card.is-selected {
    border-color: var(--green-500);
    background: linear-gradient(180deg, #f5fff9, #fff);
    box-shadow: 0 0 0 3px rgba(18, 183, 106, .10);
}
.plan-card.is-selected::after {
    content: "✓";
    position: absolute;
    top: 9px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green-600);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.plan-name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.02em;
    padding-right: 18px;
    color: var(--ink);
}
.plan-meta { font-size: 10.5px; color: var(--muted); }
.plan-price {
    margin-top: auto;
    padding-top: 5px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--green-700);
    font-variant-numeric: tabular-nums;
}
.plan-badge {
    align-self: flex-start;
    margin-top: 2px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--red-600);
    background: var(--red-50);
    border: 1px solid var(--red-100);
    border-radius: 999px;
    padding: 2px 6px;
}

.provider-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}
.provider-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px 9px;
    border-radius: 13px;
    border: 1.5px solid var(--line);
    background: #fff;
    transition: all .18s var(--ease);
}
.provider-tile:hover { border-color: var(--green-200); transform: translateY(-1px); }
.provider-tile.is-active {
    border-color: var(--green-500);
    background: var(--green-50);
    box-shadow: 0 0 0 3px rgba(18, 183, 106, .09);
}
.provider-tile img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; }
.provider-tile span {
    font-size: 9.5px;
    font-weight: 750;
    color: var(--muted);
    text-align: center;
    line-height: 1.15;
}
.provider-tile.is-active span { color: var(--green-800); }

.selected-bar {
    position: sticky;
    bottom: calc(var(--nav-h) + 10px);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 15px;
    background: rgba(16, 24, 40, .94);
    color: #fff;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.selected-bar .icon { width: 18px; height: 18px; color: var(--green-400); }
.selected-bar .grow { min-width: 0; }
.selected-bar strong { display: block; font-size: 12px; }
.selected-bar small { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .66); }
.selected-bar .btn { height: 34px; font-size: 11.5px; padding: 0 12px; }

/* ============================================================
   Transactions
   ============================================================ */

.txn-list { display: flex; flex-direction: column; gap: 8px; }
.txn-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color .18s, transform .18s;
}
.txn-item:hover { border-color: var(--green-200); transform: translateY(-1px); }
.txn-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--green-700);
    background: var(--green-50);
    border: 1px solid rgba(18, 183, 106, .12);
}
.txn-icon .icon { width: 19px; height: 19px; }
.txn-icon.failed { color: var(--red-600); background: var(--red-50); border-color: var(--red-100); }
.txn-icon.pending { color: var(--amber-600); background: var(--amber-50); border-color: var(--amber-100); }
.txn-main { min-width: 0; flex: 1; }
.txn-main h3 {
    font-size: 12.5px;
    font-weight: 750;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.txn-main p {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.txn-side { text-align: right; flex: 0 0 auto; }
.txn-amount {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.txn-amount.credit { color: var(--green-700); }
.txn-date { font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.35;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.success { color: var(--green-700); background: var(--green-50); }
.badge.pending { color: #b54708; background: var(--amber-50); }
.badge.failed { color: var(--red-700); background: var(--red-50); }
.badge.reversed { color: var(--muted); background: var(--line-2); }
.badge.neutral { color: var(--muted); background: var(--line-2); }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
}
.pagination a,
.pagination span {
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}
.pagination .is-current { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ============================================================
   Profile / info rows
   ============================================================ */

.profile-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #fff, #f6fdf9);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}
.profile-avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, var(--green-500), var(--green-800));
    box-shadow: 0 12px 22px -14px rgba(6, 118, 71, .8);
}
.profile-hero h2 { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.profile-hero p { font-size: 12px; color: var(--muted); margin-top: 2px; }

.info-list { display: flex; flex-direction: column; }
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-2);
}
.info-row:last-child { border-bottom: 0; }
.info-row dt { font-size: 12px; color: var(--muted); }
.info-row dd {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-2);
    text-align: right;
    word-break: break-word;
}
.info-row .copy-inline {
    border: 0;
    background: var(--green-50);
    color: var(--green-700);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    margin-left: 6px;
    vertical-align: -8px;
}
.info-row .copy-inline .icon { width: 14px; height: 14px; }
.info-row code.api-base-url {
    display: inline-block;
    max-width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    font-weight: 650;
    color: var(--ink-2);
    background: var(--line-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 3px 7px;
    word-break: break-all;
    text-align: right;
}

.action-list { display: flex; flex-direction: column; }
.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line-2);
    font-size: 13px;
    font-weight: 650;
    color: var(--ink-2);
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    width: 100%;
    text-align: left;
}
.action-row:last-child { border-bottom: 0; }
.action-row:hover { color: var(--green-700); }
.action-row .action-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--green-50);
    color: var(--green-700);
}
.action-row.red .action-icon { background: var(--red-50); color: var(--red-600); }
.action-row .chev { margin-left: auto; color: var(--muted-2); }
.action-row .chev .icon { width: 16px; height: 16px; }

/* ============================================================
   Fund wallet
   ============================================================ */

.bank-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 18px;
    background: linear-gradient(140deg, #0b1f17, #0b3d2a 60%, #067647);
    color: #fff;
}
.bank-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(240, 68, 56, .22);
    right: -55px;
    bottom: -60px;
}
.bank-card h3 { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .7); letter-spacing: .08em; text-transform: uppercase; }
.bank-number {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .02em;
    margin: 5px 0 2px;
    font-variant-numeric: tabular-nums;
}
.bank-name { font-size: 12px; color: rgba(255, 255, 255, .75); }
.bank-actions { display: flex; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }

.pending-request {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}
.pending-request h4 { font-size: 12.5px; font-weight: 750; }
.pending-request p { font-size: 10.5px; color: var(--muted); margin-top: 1px; }

/* ============================================================
   Notification cards
   ============================================================ */

.notification-list { display: flex; flex-direction: column; gap: 9px; }
.notification-card {
    display: flex;
    gap: 11px;
    padding: 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
}
.notification-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--red-50);
    color: var(--red-600);
}
.notification-card h3 { font-size: 12.5px; font-weight: 750; }
.notification-card p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.notification-card small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted-2); }

/* ============================================================
   Bottom navigation — pinned to the bottom edge, never floating
   ============================================================ */

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -20px rgba(16, 24, 40, .3);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-inner {
    max-width: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 8px 6px;
}
.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    border-radius: 13px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: color .18s, background .18s, transform .18s;
    -webkit-tap-highlight-color: transparent;
}
.nav-item .icon { width: 21px; height: 21px; transition: transform .22s var(--ease); }
.nav-item:hover { color: var(--green-700); background: rgba(236, 253, 243, .6); }
.nav-item.is-active { color: var(--green-800); }
.nav-item.is-active .icon { transform: translateY(-1px) scale(1.06); }
.nav-item.is-active::before {
    content: "";
    position: absolute;
    top: 1px;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--red-500);
}
.nav-item.is-active span { color: var(--green-800); }

/* ============================================================
   Floating WhatsApp support
   ============================================================ */

.whatsapp-float {
    position: fixed;
    right: calc(18px + env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: var(--green-700);
    color: #fff;
    box-shadow: var(--shadow);
    font-size: 12.5px;
    font-weight: 750;
    transition: background .18s, transform .18s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.app-body .whatsapp-float {
    bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
}
.whatsapp-float:hover { background: var(--green-800); transform: translateY(-2px); }
.whatsapp-float:focus-visible { outline: 3px solid var(--green-400); outline-offset: 4px; }
.whatsapp-float-icon { width: 26px; height: 26px; flex: 0 0 auto; }

@media (max-width: 480px) {
    .whatsapp-float { right: calc(14px + env(safe-area-inset-right)); }
}

/* ============================================================
   Loading + result dialogs
   ============================================================ */

.loading-dialog {
    width: min(280px, calc(100vw - 40px));
    margin: auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}
.loading-dialog::backdrop { background: rgba(16, 24, 40, .18); }
.loading-dialog-content { display: grid; justify-items: center; gap: 14px; text-align: center; }
.loading-dialog-content p { font-size: 13px; color: var(--muted); }
.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--green-100);
    border-top-color: var(--green-600);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.swal2-container { z-index: 200; }
.swal2-popup.app-alert { border-radius: var(--radius); font-family: var(--font); }
.app-alert .swal2-title { font-size: 21px; color: var(--ink); }
.app-alert .swal2-html-container { font-size: 14px; color: var(--muted); }
.app-alert .swal2-actions { gap: 8px; }

/* ============================================================
   Toasts
   ============================================================ */

.toast-stack {
    position: fixed;
    z-index: 120;
    left: 50%;
    bottom: calc(var(--nav-h) + 16px);
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 28px));
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(16, 24, 40, .96);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: var(--shadow-lg);
    animation: toast-in .32s var(--ease) both;
}
.toast .icon { width: 17px; height: 17px; margin-top: 1px; flex: 0 0 auto; }
.toast.success { background: #054f31; }
.toast.error { background: #7a271a; }
.toast.info { background: #101828; }
.toast.is-out { animation: toast-out .25s ease both; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: none; }
}
@keyframes toast-out {
    to { opacity: 0; transform: translateY(8px) scale(.98); }
}

/* ============================================================
   Bottom sheet
   ============================================================ */

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(16, 24, 40, .45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .25s;
}
.sheet-backdrop.is-open { opacity: 1; }
.sheet {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -20px 60px -20px rgba(16, 24, 40, .4);
    transform: translateY(102%);
    transition: transform .32s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open { transform: translateY(0); }
.sheet-handle {
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: #d0d5dd;
    margin: 9px auto 0;
    flex: 0 0 auto;
}
.sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px 8px;
    flex: 0 0 auto;
}
.sheet-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.03em; margin-top: 1px; }
.sheet-body {
    padding: 8px 18px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 9px;
    padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-2);
    background: #fff;
    flex: 0 0 auto;
}
.sheet-actions .btn { height: 46px; }


.confirm-summary {
    border-radius: var(--radius-sm);
    background: var(--green-50);
    border: 1px solid rgba(18, 183, 106, .14);
    padding: 14px;
    margin-bottom: 13px;
}
.confirm-summary .row-between { padding: 5px 0; }
.confirm-summary span { font-size: 11.5px; color: var(--muted); }
.confirm-summary strong { font-size: 12.5px; color: var(--ink-2); }
.confirm-summary .total strong { color: var(--green-800); font-size: 16px; }
.sheet-note {
    display: flex;
    gap: 8px;
    padding: 11px;
    border-radius: 12px;
    background: var(--amber-50);
    border: 1px solid var(--amber-100);
    color: #93370d;
    font-size: 11.5px;
    line-height: 1.4;
}
.sheet-note .icon { width: 16px; height: 16px; margin-top: 1px; }

/* ============================================================
   Landing page
   ============================================================ */

.landing-body {
    background:
        radial-gradient(1100px 600px at 5% -10%, rgba(18, 183, 106, .18), transparent 60%),
        radial-gradient(900px 500px at 105% 0%, rgba(240, 68, 56, .11), transparent 55%),
        #f8fbf9;
}
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(248, 251, 249, .78);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(234, 236, 240, .7);
}
.landing-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 66px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.landing-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.landing-links a {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--muted);
}
.landing-links a:hover { color: var(--green-700); background: rgba(236, 253, 243, .8); }
.landing-cta { display: flex; align-items: center; gap: 8px; }
.landing-cta .btn { height: 40px; padding: 0 14px; font-size: 12.5px; border-radius: 11px; }
@media (max-width: 720px) { .landing-links { display: none; } }

.hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 44px 20px 20px;
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: 38px;
    align-items: center;
}
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 7px; }
.hero-copy .eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red-500);
    box-shadow: 0 0 0 4px rgba(240, 68, 56, .12);
}
.hero h1 {
    font-size: clamp(34px, 5.4vw, 58px);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: 1.04;
    margin: 13px 0 14px;
}
.hero h1 .accent {
    color: var(--green-600);
    position: relative;
    white-space: nowrap;
}
.hero h1 .accent::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 3px;
    height: 8px;
    border-radius: 999px;
    background: rgba(240, 68, 56, .22);
    z-index: -1;
}
.hero p.lead {
    font-size: 15px;
    color: var(--muted);
    max-width: 48ch;
    line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-actions .btn { height: 50px; padding: 0 20px; }
.hero-stats {
    display: flex;
    gap: 22px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.hero-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.04em;
    color: var(--ink);
}
.hero-stat span { font-size: 11px; color: var(--muted); font-weight: 600; }

.hero-visual {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-orb {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(18, 183, 106, .24), rgba(6, 118, 71, .06));
    filter: blur(2px);
}
.hero-orb.red {
    width: 180px;
    height: 180px;
    right: 10px;
    top: 20px;
    background: radial-gradient(circle, rgba(240, 68, 56, .22), transparent 68%);
    filter: blur(6px);
}
.hero-phone {
    position: relative;
    z-index: 2;
    width: min(300px, 82vw);
    border-radius: 34px;
    padding: 12px;
    background: #0b1f17;
    box-shadow: 0 40px 80px -30px rgba(5, 79, 49, .55);
    transform: rotate(-2.5deg);
}
.hero-screen {
    border-radius: 26px;
    background: linear-gradient(170deg, #f6fdf9, #fff 40%);
    padding: 15px;
    min-height: 380px;
    overflow: hidden;
}
.hero-screen .mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hero-screen .mini-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(145deg, var(--green-500), var(--green-700)); }
.hero-screen .mini-lines { display: flex; flex-direction: column; gap: 4px; }
.hero-screen .mini-lines i { display: block; height: 6px; border-radius: 99px; background: #e4e7ec; }
.hero-screen .mini-lines i:first-child { width: 78px; }
.hero-screen .mini-lines i:last-child { width: 50px; }
.hero-wallet {
    border-radius: 18px;
    padding: 14px;
    color: #fff;
    background: linear-gradient(140deg, #054f31, #0b8f4d);
    box-shadow: 0 16px 30px -18px rgba(5, 79, 49, .8);
}
.hero-wallet small { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
.hero-wallet strong { display: block; font-size: 26px; font-weight: 850; letter-spacing: -.04em; margin: 3px 0 1px; }
.hero-wallet span { font-size: 9.5px; color: rgba(255, 255, 255, .7); }
.hero-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.hero-mini-grid div {
    aspect-ratio: 1;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--green-700);
}
.hero-mini-grid div:nth-child(2) { color: var(--red-600); }
.hero-mini-grid .icon { width: 16px; height: 16px; }
.hero-tx { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-top: 1px solid var(--line-2); }
.hero-tx span { width: 25px; height: 25px; border-radius: 8px; background: var(--green-50); display: grid; place-items: center; color: var(--green-700); }
.hero-tx .icon { width: 12px; height: 12px; }
.hero-tx div { flex: 1; }
.hero-tx b { display: block; font-size: 8.5px; }
.hero-tx i { display: block; width: 46px; height: 4px; border-radius: 99px; background: #e4e7ec; margin-top: 2px; }
.hero-float {
    position: absolute;
    z-index: 3;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 10px 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 750;
    animation: float 5s ease-in-out infinite;
}
.hero-float.one { top: 52px; left: 0; }
.hero-float.two { bottom: 46px; right: 0; animation-delay: -2.5s; }
.hero-float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.hero-float.red .dot { background: var(--red-500); }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.landing-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 46px 20px;
}
.section-copy { max-width: 560px; margin-bottom: 24px; }
.section-copy h2 {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 850;
    letter-spacing: -.045em;
    margin: 7px 0 8px;
}
.section-copy p { font-size: 14px; color: var(--muted); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.service-card {
    padding: 16px 13px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--green-200);
    box-shadow: var(--shadow);
}
.service-card .service-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--green-50);
    color: var(--green-700);
    border: 1px solid rgba(18, 183, 106, .13);
    margin-bottom: 12px;
}
.service-card:nth-child(3n) .service-icon { background: var(--red-50); color: var(--red-600); border-color: var(--red-100); }
.service-card h3 { font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.service-card p { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.service-card img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.feature-card {
    padding: 18px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
}
.feature-card .icon { width: 24px; height: 24px; color: var(--green-600); margin-bottom: 10px; }
.feature-card:nth-child(2) .icon { color: var(--red-500); }
.feature-card h3 { font-size: 13px; font-weight: 800; }
.feature-card p { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

.landing-cta-band {
    max-width: 1120px;
    margin: 20px auto 0;
    padding: 34px 28px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(420px 220px at 100% 0, rgba(240, 68, 56, .22), transparent 60%),
        linear-gradient(135deg, #054f31, #0b8f4d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.landing-cta-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 850; letter-spacing: -.04em; }
.landing-cta-band p { font-size: 13px; color: rgba(255, 255, 255, .72); margin-top: 4px; }
.landing-cta-band .btn-white { background: #fff; color: var(--green-800); }
.landing-cta-band .btn-white:hover { background: var(--green-50); }

.landing-footer {
    max-width: 1120px;
    margin: 30px auto 0;
    padding: 22px 20px 34px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 11.5px;
    color: var(--muted);
}
.landing-footer .footer-links { display: flex; gap: 14px; }
.landing-footer a:hover { color: var(--green-700); }

/* ============================================================
   Auth pages
   ============================================================ */

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(900px 500px at 0% 0%, rgba(18, 183, 106, .14), transparent 60%),
        radial-gradient(700px 400px at 100% 100%, rgba(240, 68, 56, .09), transparent 55%),
        #f7faf8;
}
.auth-shell {
    min-height: 100vh;
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 20px;
    align-items: stretch;
}
.auth-aside {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(400px 260px at 100% 0, rgba(50, 213, 131, .35), transparent 60%),
        linear-gradient(150deg, #042f1d, #05603a 55%, #0b8f4d);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 620px;
}
.auth-aside::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(240, 68, 56, .2);
    right: -80px;
    bottom: -90px;
}
.auth-aside .site-logo { height: 112px; border-radius: 12px; }
.auth-card .auth-mobile-brand { justify-content: center; }
.auth-mobile-brand .site-logo { height: 84px; }
.auth-aside h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 850;
    letter-spacing: -.05em;
    line-height: 1.05;
    margin: 16px 0 12px;
}
.auth-aside p { font-size: 14px; color: rgba(255, 255, 255, .72); max-width: 38ch; }
.auth-points { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; position: relative; z-index: 1; }
.auth-point { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: rgba(255, 255, 255, .86); }
.auth-point span {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .16);
}
.auth-point .icon { width: 14px; height: 14px; color: var(--green-300, #6ce9a6); }
.auth-aside-foot { position: relative; z-index: 1; font-size: 11px; color: rgba(255, 255, 255, .55); }

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(234, 236, 240, .9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 28px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.auth-card h1 { font-size: 24px; font-weight: 850; letter-spacing: -.04em; }
.auth-card .auth-sub { font-size: 13px; color: var(--muted); margin-top: 4px; margin-bottom: 20px; }
.auth-switch { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 18px; }
.auth-switch a { color: var(--green-700); font-weight: 800; }
.auth-mobile-brand { display: none; margin-bottom: 18px; }

@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; padding: 14px; }
    .auth-aside { display: none; }
    .auth-card { max-width: 520px; padding: 22px; }
    .auth-mobile-brand { display: flex; align-items: center; justify-content: space-between; }
}

/* ============================================================
   Responsive layout
   ============================================================ */

@media (min-width: 620px) {
    .quick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .app-main { padding: 22px 24px calc(var(--nav-h) + 40px); }
    .app-header-inner { padding: 0 24px; }
    .wallet-card { padding: 16px 20px; }
    .balance-pill { padding: 6px 14px; }
    .balance-pill strong { font-size: 15px; }
}

@media (min-width: 900px) {
    .dashboard-split {
        display: grid;
        grid-template-columns: 1.15fr .85fr;
        gap: 18px;
        align-items: start;
    }
    .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .service-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .app-main { padding: 26px 28px calc(var(--nav-h) + 46px); }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 34px; gap: 26px; }
    .hero-visual { min-height: 330px; order: 2; }
    .hero-orb { width: 290px; height: 290px; }
    .hero-phone { width: min(280px, 78vw); }
    .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-cta-band { flex-direction: column; align-items: flex-start; }
    .landing-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .provider-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .provider-tile { padding: 8px 3px 7px; }
    .provider-tile img { width: 24px; height: 24px; }
    .provider-tile span { font-size: 8.5px; }
    .hero-stats { gap: 16px; }
    .hero-stat strong { font-size: 19px; }
    .auth-card { padding: 20px; border-radius: 22px; }
    .sheet { border-radius: 22px 22px 0 0; }
    .landing-nav-inner { height: 60px; padding: 0 14px; }
    .landing-cta .btn-outline { display: none; }
    .balance-pill { display: none; }
    .app-header-right { gap: 4px; }
}

@media (min-width: 760px) {
    .sheet {
        left: 50%;
        right: auto;
        width: min(520px, calc(100vw - 40px));
        bottom: 18px;
        border-radius: 24px;
        transform: translate(-50%, 105%);
    }
    .sheet.is-open { transform: translate(-50%, 0); }
    .sheet-actions { border-radius: 0 0 24px 24px; }
    .toast-stack { bottom: calc(var(--nav-h) + 22px); }
}

/* ============================================================
   Small utilities & motion preferences
   ============================================================ */

.hide { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 6px !important; }
.mt-2 { margin-top: 12px !important; }
.mt-3 { margin-top: 18px !important; }
.mb-1 { margin-bottom: 6px !important; }
.mb-2 { margin-bottom: 12px !important; }
.mb-3 { margin-bottom: 18px !important; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Purchases: OTP-style PIN entry + success sheet + toast action
   ============================================================ */

.toast-action {
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
    flex: 0 0 auto;
    margin-left: 2px;
    transition: background .18s;
}
.toast-action:hover { background: rgba(255, 255, 255, .26); }

.pin-field { max-width: 280px; }
.pin-field > label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 2px;
    display: block;
}
.input-wrap.otp { position: static; }
.otp-input {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .7em;
    text-align: center;
    padding-left: 14px;
    font-variant-numeric: tabular-nums;
}
.otp-input:focus { letter-spacing: .7em; }

.purchase-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 6px 6px;
}
.done-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--green-500), var(--green-700));
    box-shadow: 0 16px 30px -14px rgba(6, 118, 71, .8);
    animation: pop-in .4s var(--ease) both;
}
.done-icon .icon { width: 26px; height: 26px; }
.purchase-done h3 { font-size: 17px; font-weight: 800; letter-spacing: -.025em; }
.purchase-done p { font-size: 13px; color: var(--muted); max-width: 40ch; line-height: 1.5; }
@keyframes pop-in {
    from { opacity: 0; transform: scale(.6); }
    to { opacity: 1; transform: none; }
}
.purchase-done .order-ref {
    margin-top: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--line-2);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-amount-bar {
    position: sticky;
    bottom: calc(var(--nav-h) + 10px);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 16px;
    background: rgba(16, 24, 40, .94);
    color: #fff;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.live-amount-bar .live-label {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.live-amount-bar small {
    font-size: 10.5px;
    color: rgba(255, 255, 255, .62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-amount-bar strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.live-amount-bar .btn { height: 40px; font-size: 12px; padding: 0 16px; }

.beneficiary-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-2);
    cursor: pointer;
    transition: all .16s;
}
.beneficiary-chip:hover { border-color: var(--green-200); color: var(--green-700); }
.beneficiary-chip .icon { width: 13px; height: 13px; color: var(--green-600); }

.promo-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 16px 18px;
    color: #fff;
    background:
        radial-gradient(300px 160px at 100% 0, rgba(240, 68, 56, .35), transparent 65%),
        linear-gradient(130deg, #101828, #054f31 130%);
}
.promo-card h3 { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.promo-card p { font-size: 11.5px; color: rgba(255, 255, 255, .72); margin-top: 3px; }
.promo-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    right: -40px;
    bottom: -50px;
}

.status-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 11px 13px;
    border-radius: 12px;
    background: var(--green-50);
    border: 1px solid rgba(18, 183, 106, .15);
    color: var(--green-800);
    font-size: 11.5px;
    line-height: 1.45;
}
.status-note .icon { width: 16px; height: 16px; margin-top: 1px; flex: 0 0 auto; }

.copy-inline {
    border: 0;
    background: var(--green-50);
    color: var(--green-700);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    vertical-align: -8px;
    cursor: pointer;
    transition: background .18s;
}
.copy-inline:hover { background: var(--green-100); }
.copy-inline .icon { width: 14px; height: 14px; }

.naira-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-2);
    font-weight: 800;
    pointer-events: none;
    z-index: 1;
}
