/* Anas VTU — Nigerian fintech dashboard UI */

:root {
    --brand: #0066FF;
    --brand-dark: #0052CC;
    --brand-darker: #003D99;
    --brand-light: #E8F1FF;
    --brand-soft: #F0F6FF;
    --accent: #22C55E;
    --accent-light: #DCFCE7;
    --surface: #FFFFFF;
    --page-bg: #F5F7FA;
    --text: #111827;
    --text-muted: #6B7280;
    --border-soft: #EEF0F4;
    --card-radius: 1rem;
    --card-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 1px 2px rgba(16, 24, 40, 0.03);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --nav-height: 4.5rem;
    --nav-height-labeled: 4.75rem;
    --wallet-hero: #0B1F4D;
    --page-bg-home: #F5F7FA;
}

.pt-safe { padding-top: max(0.75rem, var(--safe-top)); }
.pb-safe { padding-bottom: max(0.25rem, var(--safe-bottom)); }
.pb-nav { padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 0.5rem); }

.app-shell {
    min-height: 100dvh;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    background: var(--page-bg);
    position: relative;
}

body.auth-page .app-shell { max-width: none; }
body.auth-page #splash { display: none; }

.text-ink-muted { color: #6B7280; }

/* ─── Dashboard Header ─── */
.dashboard-header {
    background: var(--header-gradient, linear-gradient(180deg, var(--brand-darker) 0%, var(--brand) 55%, var(--brand-dark) 100%));
    position: relative;
    padding-bottom: 3.25rem;
    flex-shrink: 0;
}

.logo-badge {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.header-icon-btn {
    color: #fff;
    opacity: 0.95;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.bank-card-float {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: -2.35rem;
    z-index: 20;
}

.bank-card-float__inner {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bank-icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: #FFF7ED;
    color: #C2410C;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copy-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.copy-btn:hover { background: var(--brand-light); }

/* ─── Dashboard Body ─── */
.dashboard-body {
    padding: 3.25rem 1.25rem 0;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 1rem);
    background: var(--page-bg);
    flex: 1;
}

.section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

.section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand);
}

/* ─── Services Grid (reference style) ─── */
.services-grid--dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem 0.65rem;
}

.service-tile--dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.service-tile--dashboard .service-tile__icon {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    transition: transform 0.15s, box-shadow 0.15s;
}

.service-tile--dashboard:active .service-tile__icon {
    transform: scale(0.95);
}

.service-tile--dashboard .service-tile__icon svg,
.service-tile--dashboard .service-tile__icon i {
    width: 1.35rem;
    height: 1.35rem;
}

.service-tile--dashboard .service-tile__label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.2;
}

/* Full services page grid */
.services-grid--full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.service-tile:not(.service-tile--dashboard):not(.service-tile--home) .service-tile__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.4rem;
}

/* ─── Transaction Cards ─── */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tx-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.tx-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.tx-card--empty {
    cursor: default;
    box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}

.tx-card--empty:hover {
    box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}

.tx-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-card__icon--debit {
    background: var(--brand-soft);
    color: var(--brand);
}

.tx-card__icon--credit {
    background: var(--accent-light);
    color: var(--accent);
}

.tx-card__icon--muted {
    background: #F3F4F6;
    color: #9CA3AF;
    border-radius: 0.85rem;
}

.tx-card__body {
    flex: 1;
    min-width: 0;
}

.tx-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-card__meta {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 0.15rem;
}

.tx-card__amount {
    text-align: right;
    flex-shrink: 0;
}

.tx-card__value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
}

.tx-card__status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand);
    margin-top: 0.1rem;
}

.tx-card__summary {
    text-align: right;
    flex: 0 0 auto;
    min-width: 8.75rem;
    max-width: 42%;
}

.tx-summary__amount {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
}

.tx-summary__amount--credit {
    color: var(--accent, #10B981);
}

.tx-summary__type,
.tx-summary__status,
.tx-summary__when,
.tx-summary__ref {
    margin: 0.18rem 0 0;
    font-size: 0.72rem;
    line-height: 1.3;
}

.tx-summary__type {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6B7280;
}

.tx-summary__status {
    font-weight: 700;
}

.tx-summary__status--ok { color: #059669; }
.tx-summary__status--pending { color: #D97706; }
.tx-summary__status--fail { color: #DC2626; }

.tx-summary__when,
.tx-summary__ref {
    color: #9CA3AF;
    word-break: break-all;
}

.tx-load-more {
    display: block;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    background: #fff;
    color: var(--brand);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.tx-load-more.hidden { display: none; }

.tx-detail-hero__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6B7280;
}

.tx-detail-hero__amount {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
    margin-top: 0.35rem !important;
}

.tx-detail-hero__amount--credit { color: var(--accent, #10B981); }

.tx-detail-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0 0.5rem;
}

.tx-detail__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: #F3F4F6;
    color: #4B5563;
}

.tx-detail__badge--ok { background: #ECFDF5; color: #047857; }
.tx-detail__badge--pending { background: #FFFBEB; color: #B45309; }
.tx-detail__badge--fail { background: #FEF2F2; color: #B91C1C; }

.tx-detail-hero__meta,
.tx-detail-hero__ref {
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 0.2rem !important;
}

.tx-detail-hero__ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-all;
}

.tx-detail-list {
    margin: 0;
}

.tx-detail-list__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #F3F4F6;
}

.tx-detail-list__row:last-child { border-bottom: 0; padding-bottom: 0; }
.tx-detail-list__row:first-child { padding-top: 0; }

.tx-detail-list dt {
    font-size: 0.78rem;
    color: #6B7280;
    font-weight: 600;
    flex: 0 0 42%;
}

.tx-detail-list dd {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    color: #111827;
    text-align: right;
    word-break: break-word;
}

.tx-detail-receipt {
    display: block;
    text-align: center;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: var(--brand, #6C3CF0);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 640px) {
    .tx-card {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .tx-card__summary {
        flex: 1 0 100%;
        max-width: none;
        min-width: 0;
        text-align: left;
        border-top: 1px solid #F3F4F6;
        padding-top: 0.75rem;
        margin-top: 0.15rem;
    }

    .tx-detail-list__row {
        flex-direction: column;
        gap: 0.2rem;
    }

    .tx-detail-list dt,
    .tx-detail-list dd {
        flex: none;
        text-align: left;
    }
}

/* ─── Bottom Navigation ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid #E5E7EB;
    padding-bottom: var(--safe-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.bottom-nav__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    max-width: 32rem;
    margin: 0 auto;
    min-height: var(--nav-height);
    padding: 0.35rem 0.15rem 0.3rem;
}

.bottom-nav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    padding: 0.35rem 0.1rem;
    color: #9CA3AF;
    text-decoration: none;
    min-width: 0;
    transition: color 0.15s;
    position: relative;
}

.bottom-nav__link--active {
    color: var(--brand);
}

.bottom-nav__link--active::after {
    display: none;
}

.bottom-nav__icon {
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0;
}

.bottom-nav__link--active .bottom-nav__icon {
    stroke-width: 2.25;
}

.bottom-nav__label {
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.bottom-nav__link--active .bottom-nav__label {
    font-weight: 700;
}

/* Elevated center Dashboard button */
.bottom-nav__link--center {
    flex: none;
    width: 4rem;
    padding-bottom: 0.25rem;
}

.bottom-nav__center-circle {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -1.6rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.bottom-nav__center-circle .bottom-nav__icon {
    width: 1.5rem;
    height: 1.5rem;
}

.bottom-nav__center-circle--active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.35);
}

.bottom-nav__link--center .bottom-nav__label {
    margin-top: 0.15rem;
}

body.home-page .app-shell {
    background: var(--page-bg-home);
}

/* ─── Home Dashboard (JamraPAY) ─── */
.home-top {
    background: var(--page-bg-home);
    padding: 0 1.25rem 1rem;
}

.home-top__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0 1rem;
}

.home-top__profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.home-top__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-top__level {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
}

.home-top__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-top__action {
    color: var(--brand);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.home-top__badge {
    position: absolute;
    top: 0.15rem;
    right: 0.1rem;
    width: 0.45rem;
    height: 0.45rem;
    background: #EF4444;
    border-radius: 50%;
    border: 1.5px solid var(--page-bg-home);
}

.wallet-hero {
    background: var(--wallet-hero);
    border-radius: 1.15rem;
    padding: 1.15rem 1.25rem 1.25rem;
    color: #fff;
    box-shadow: 0 8px 28px rgba(15, 45, 74, 0.35);
}

.wallet-hero__account {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.85rem;
}

.wallet-hero__copy {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    padding: 0.15rem;
    display: flex;
}

.wallet-hero__balance-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-hero__balance {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.wallet-hero__eye {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
}

.wallet-hero__updated {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.35rem;
}

.wallet-hero__actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.wallet-hero__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.wallet-hero__btn--primary {
    background: rgba(0,0,0,0.35);
    color: #fff;
}

.wallet-hero__btn--ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.wallet-hero__btn:active { opacity: 0.85; }

.home-body {
    padding: 0.25rem 1.25rem 1rem;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 1rem);
    background: var(--page-bg-home);
    flex: 1;
}

.services-grid--home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 0.5rem;
}

.service-tile--home {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: inherit;
}

.service-tile--home .service-tile__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.service-tile--home .service-tile__icon svg,
.service-tile--home .service-tile__icon i {
    width: 1.35rem;
    height: 1.35rem;
}

.service-tile--home .service-tile__label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #111;
    text-align: center;
    line-height: 1.2;
}

.rewards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.reward-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.reward-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reward-card__icon--gold {
    background: #FEF3C7;
    color: #D97706;
}

.reward-card__icon--red {
    background: #FEE2E2;
    color: #DC2626;
}

.reward-card__label {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 500;
}

.reward-card__value {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    margin-top: 0.1rem;
}

.home-tx-list {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.home-tx-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #F3F4F6;
}

.home-tx-item:last-child { border-bottom: none; }

.home-tx-item__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-tx-item__icon--debit {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.home-tx-item__icon--credit {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.home-tx-item__body {
    flex: 1;
    min-width: 0;
}

.home-tx-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-tx-item__meta {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 0.1rem;
}

.home-tx-item__amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111;
    flex-shrink: 0;
}

.home-tx-item__amount--credit {
    color: var(--accent);
}

.home-body .section-heading {
    font-size: 0.95rem;
}

.home-body .section-link {
    font-size: 0.8rem;
}


/* ─── Inner pages ─── */
.page-inner {
    padding: 1rem 1.25rem;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 1rem);
    background: #F9FAFB;
    flex: 1;
    min-height: calc(100dvh - var(--nav-height));
}

.page-inner__header {
    padding: max(0.75rem, var(--safe-top)) 1.25rem 1rem;
    background: #fff;
    border-bottom: 1px solid #F3F4F6;
    position: sticky;
    top: 0;
    z-index: 30;
}

.page-inner__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.inner-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

/* ─── Auth ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.95rem 1.25rem;
    border-radius: 0.85rem;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.22);
    transition: background 0.15s, opacity 0.15s, transform 0.12s;
}

.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: scale(0.985); }
.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-gradient {
    background: var(--auth-gradient, linear-gradient(165deg, #002B6B 0%, #003D99 40%, #0066FF 75%, #3B82F6 100%));
    min-height: 100dvh;
    width: 100%;
}

.btn-fingerprint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    border-radius: 1rem;
    border: 2px solid #E5E7EB;
    background: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

/* ─── Skeleton ─── */
.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-enter { animation: slideUp 0.35s ease-out; }

/* ─── Splash / PWA / Offline ─── */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9995;
    background: #F59E0B;
    color: #111;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    transform: translateY(-100%);
    transition: transform 0.3s;
}

.offline-banner.show { transform: translateY(0); }

.pwa-update {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom) + 0.5rem);
    left: 1rem;
    right: 1rem;
    max-width: 28rem;
    margin: 0 auto;
    z-index: 45;
    background: #111827;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
}

@media (min-width: 512px) {
    .app-shell { box-shadow: 0 0 50px rgba(0,0,0,0.07); }
    .bottom-nav { left: 50%; transform: translateX(-50%); max-width: 32rem; }
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ─── Flow Pages (transfer, data, education, statements) ─── */
.flow-page {
    background: var(--page-bg);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

.flow-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--border-soft);
}

.flow-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(0.7rem, var(--safe-top)) 1rem 0.8rem;
    gap: 0.5rem;
}

.flow-header__back,
.flow-header__action {
    width: 2.35rem;
    height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.65rem;
}

.flow-header__title {
    flex: 1;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.flow-header__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 2.35rem;
    justify-content: flex-end;
}

.flow-banner {
    background: var(--brand-light);
    color: var(--brand-dark);
    padding: 0.7rem 1.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.flow-banner i { flex-shrink: 0; color: var(--brand); }

.flow-body {
    flex: 1;
    padding: 1.1rem 1.15rem 1.5rem;
}

.flow-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
    font-weight: 500;
}

.flow-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 1rem 1.05rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(16, 24, 40, 0.03);
    margin-bottom: 1.15rem;
}

.flow-account {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.flow-account__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flow-account__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.flow-account__meta {
    font-size: 0.8rem;
    color: #757575;
    margin-top: 0.1rem;
}

.flow-account__balance {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-top: 0.35rem;
    letter-spacing: -0.02em;
}

.flow-input-wrap {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 0.55rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(16, 24, 40, 0.03);
}

.flow-input {
    width: 100%;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    background: #F5F7FA;
    outline: none;
}

.flow-input:focus {
    box-shadow: inset 0 0 0 2px var(--brand);
    background: #fff;
}

.flow-input::placeholder {
    color: #C4C9D4;
    font-weight: 500;
}

.flow-panel {
    background: #fff;
    border-radius: 1.15rem;
    padding: 1.15rem;
    margin-top: 0.25rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(16, 24, 40, 0.03);
}

.flow-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #F5F7FA;
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.flow-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    outline: none;
    color: #111;
}

.flow-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.flow-chip {
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--brand-soft);
    color: var(--brand-dark);
    transition: background 0.15s, color 0.15s;
}

.flow-chip--active {
    background: var(--brand);
    color: #fff;
}

.flow-chip-link {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.45rem 0;
}

.flow-recipient {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #F3F4F6;
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.flow-recipient:last-child { border-bottom: none; }

.flow-recipient__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    flex-shrink: 0;
}

.flow-recipient__avatar--purple { background: #7C3AED; }
.flow-recipient__avatar--blue { background: #2563EB; }
.flow-recipient__avatar--green { background: var(--brand); }

.flow-recipient__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flow-recipient__bank {
    font-size: 0.75rem;
    color: #757575;
    margin-top: 0.1rem;
}

/* Education biller list */
.biller-list {
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
}

.biller-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid #F3F4F6;
    text-decoration: none;
    color: inherit;
}

.biller-item--disabled {
    opacity: 0.85;
    pointer-events: none;
}

.biller-item__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.biller-item__icon--logo {
    background: #ECFDF5;
    color: var(--brand);
    border-radius: 50%;
}

.biller-item__badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 1rem;
    height: 1rem;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #fff;
}

.biller-item__body { flex: 1; min-width: 0; }

.biller-item__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.biller-item__status {
    font-size: 0.75rem;
    color: #EF4444;
    margin-top: 0.15rem;
}

.biller-item__chevron {
    color: var(--brand);
    flex-shrink: 0;
}

/* Statement cards */
.statement-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
}

.statement-card:active { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.statement-card__body { flex: 1; }

.statement-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.35rem;
}

.statement-card__desc {
    font-size: 0.8rem;
    color: #757575;
    line-height: 1.45;
}

.statement-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stmt-period-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stmt-period-btn {
    padding: 0.65rem 0.35rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    color: #374151;
}

.stmt-period-btn--active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
    cursor: pointer;
}

.stmt-period-btn:active { background: var(--brand-soft); color: var(--brand); }

.statement-view-body { padding-bottom: 2rem; }

.stmt-document {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.stmt-document__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.stmt-brand { font-size: 0.7rem; font-weight: 800; color: var(--brand); letter-spacing: 0.08em; text-transform: uppercase; }
.stmt-title { font-size: 1.15rem; font-weight: 800; color: #111; margin: 0.2rem 0; }
.stmt-sub { font-size: 0.75rem; color: #6b7280; }
.stmt-generated { text-align: right; font-size: 0.7rem; color: #6b7280; }
.stmt-generated strong { display: block; color: #111; font-size: 0.75rem; margin-top: 0.15rem; }

.stmt-account-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    background: #f9fafb;
    border-radius: 0.85rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.stmt-label { font-size: 0.65rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; }
.stmt-value { font-size: 0.82rem; font-weight: 700; color: #111; margin-top: 0.15rem; line-height: 1.35; }

.stmt-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.stmt-summary-item {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 0.75rem;
    padding: 0.75rem;
    font-size: 0.68rem;
    color: #6b7280;
}

.stmt-summary-item strong { display: block; font-size: 0.9rem; color: #111; margin-top: 0.2rem; }
.stmt-credit { color: #059669 !important; }
.stmt-debit { color: #dc2626 !important; }

.stmt-table-wrap { overflow-x: auto; margin-bottom: 1rem; }

.stmt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.stmt-table th {
    text-align: left;
    padding: 0.55rem 0.35rem;
    border-bottom: 2px solid #e5e7eb;
    color: #6b7280;
    font-weight: 700;
    white-space: nowrap;
}

.stmt-table td {
    padding: 0.6rem 0.35rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.stmt-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stmt-tx-desc { font-weight: 600; color: #111; line-height: 1.3; }
.stmt-tx-ref { font-size: 0.65rem; color: #9ca3af; margin-top: 0.15rem; word-break: break-all; }
.stmt-opening-row td { background: #fafafa; }
.stmt-empty { text-align: center; color: #9ca3af; padding: 1.5rem !important; }
.stmt-footer { font-size: 0.68rem; color: #9ca3af; line-height: 1.5; border-top: 1px solid #f0f0f0; padding-top: 0.85rem; }

/* Legal pages */
.legal-page { padding-bottom: 2rem; }
.legal-card { padding: 1.25rem; }
.legal-content {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #374151;
}
.legal-content p { margin-bottom: 0.75rem; }

@media print {
    body * { visibility: hidden; }
    .stmt-document, .stmt-document * { visibility: visible; }
    .stmt-document { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border-radius: 0; }
    .flow-header, .bottom-nav, .statement-view-page .flow-header { display: none !important; }
}

.data-promo {
    background: #F3E8FF;
    color: #6B21A8;
    padding: 0.65rem 1.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
}

.phone-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 0.85rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(16, 24, 40, 0.03);
    margin-bottom: 1.15rem;
}

.phone-input-row {
    display: flex;
    gap: 0.55rem;
    align-items: stretch;
}

.phone-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: none;
    border-radius: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: #F5F7FA;
    min-height: 3.25rem;
}

.network-select {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding-right: 0.55rem;
    border-right: 1px solid #E5E7EB;
    cursor: pointer;
    background: none;
    border-top: none;
    border-bottom: none;
    border-left: none;
    flex-shrink: 0;
    position: relative;
}

.network-select select {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.network-dot {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
}

.network-dot--mtn { background: #FFCC00; color: #111; }
.network-dot--glo { background: #00A651; }
.network-dot--airtel { background: #ED1C24; }
.network-dot--9mobile { background: #006848; }

.phone-input-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    min-width: 0;
    color: var(--text);
}

.phone-input-box input::placeholder {
    color: #B0B7C3;
    font-weight: 500;
}

.phone-contact-btn {
    width: 3.15rem;
    border-radius: 0.75rem;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.phone-paste-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.phone-paste-bar[hidden] { display: none !important; }

.beneficiary-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem 0.15rem 0.15rem;
    background: transparent;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border-soft);
    margin-top: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    box-shadow: none;
}

.beneficiary-bar .chevron { margin-left: auto; color: #9CA3AF; }

.plan-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.plan-tabs::-webkit-scrollbar { display: none; }

.plan-tab {
    padding: 0.55rem 1.05rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    background: #EEF2F7;
    color: #6B7280;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.plan-tab--active {
    background: var(--brand);
    color: #fff;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.plan-card {
    position: relative;
    background: #fff;
    border-radius: 0.95rem;
    padding: 1rem 0.9rem 0.9rem;
    text-align: left;
    border: 1.5px solid transparent;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.plan-card:hover,
.plan-card--selected {
    border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.12);
}

.plan-card--selected {
    background: var(--brand-soft);
}

.plan-card__cashback {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    background: #F3E8FF;
    color: #7C3AED;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 9999px;
}

.plan-card__size {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}

.plan-card__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.35rem;
}

.plan-card__validity {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.35rem;
}

.plan-card__desc {
    font-size: 0.68rem;
    color: #9CA3AF;
    margin: 0;
    line-height: 1.35;
}

.bene-avatar {
    position: relative;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
}

.bene-avatar__main {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: #E8ECF2;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bene-avatar__net {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 0.45rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.amount-chip {
    padding: 0.55rem 0.95rem;
    border-radius: 0.75rem;
    background: #F3F4F6;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    border: none;
    cursor: pointer;
}

.amount-chip:hover,
.amount-chip--active {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.wallet-balance-card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
    color: #fff;
    border: none !important;
    text-align: center;
    padding: 1.75rem 1.25rem !important;
}

.dashboard-header.profile-shell,
.profile-shell.dashboard-header {
    background: var(--header-gradient, linear-gradient(180deg, var(--brand-darker) 0%, var(--brand) 55%, var(--brand-dark) 100%));
}

.page-inner__header {
    background: #fff;
    padding: max(0.85rem, var(--safe-top)) 1.15rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 30;
}

.page-inner__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    text-align: center;
}

.tx-card {
    background: #fff;
    border-radius: 0.95rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(16, 24, 40, 0.03);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
}

@media (min-width: 768px) {
    .app-shell {
        max-width: 28rem;
        box-shadow: 0 0 0 1px rgba(16,24,40,0.04), 0 24px 64px rgba(16,24,40,0.08);
        min-height: 100dvh;
    }
    body:not(.auth-page) {
        background: #E8ECF2;
    }
}

/* All services grid */
.all-services-page {
    background: #F5F5F5;
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

.all-services-search {
    padding: 0 1.25rem 1rem;
    background: #fff;
}

.all-services-body {
    padding: 0.5rem 1.25rem 1.5rem;
}

.all-services-section {
    margin-bottom: 1.5rem;
}

.all-services-section__title {
    font-size: 0.8rem;
    color: #757575;
    margin-bottom: 0.85rem;
    font-weight: 500;
}

.all-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem 0.5rem;
}

.all-services-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: inherit;
}

.all-services-item__icon {
    width: 3.25rem;
    height: 3.25rem;
    background: #fff;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    color: #111;
}

.all-services-item__icon svg,
.all-services-item__icon i {
    width: 1.35rem;
    height: 1.35rem;
}

.all-services-item__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    color: #111;
    line-height: 1.2;
}

.flow-confirm-bar {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom));
    left: 0;
    right: 0;
    max-width: 32rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    background: #fff;
    border-top: 1px solid #F0F0F0;
    z-index: 35;
}

.flow-confirm-bar .btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border-radius: 0.85rem;
}

.api-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.api-status__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.api-status--on {
    background: #DCFCE7;
    color: #15803D;
}

.api-status--on .api-status__dot {
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.api-status--off {
    background: #FEE2E2;
    color: #B91C1C;
}

.api-status--off .api-status__dot {
    background: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.api-status--warn {
    background: #FEF3C7;
    color: #B45309;
}

.api-status--warn .api-status__dot {
    background: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.flow-confirm-bar .btn-primary {
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
}

.flow-confirm-bar .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.transfer-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 0;
    background: var(--page-bg);
}

.transfer-tab {
    flex: 1;
    padding: 0.65rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: #fff;
    color: #6B7280;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.transfer-tab--active {
    background: var(--brand);
    color: #fff;
}

/* Virtual Card */
.vcard-page { background: var(--page-bg); min-height: 100dvh; padding-bottom: calc(var(--nav-height) + var(--safe-bottom)); }
.vcard-tabs { display: flex; gap: 0; margin: 0 1.25rem; background: #EDE9FE; border-radius: 999px; padding: 0.25rem; }
.vcard-tab { flex: 1; border: 0; background: transparent; padding: 0.65rem; font-size: 0.8rem; font-weight: 700; color: #6B7280; border-radius: 999px; cursor: pointer; }
.vcard-tab--active { background: #fff; color: #6C3CF0; box-shadow: 0 2px 8px rgba(108,60,240,0.15); }
.vcard-display {
    margin: 1.25rem;
    background: linear-gradient(145deg, #4C1D95 0%, #6C3CF0 42%, #2E1065 100%);
    border-radius: 1.35rem;
    padding: 1.4rem 1.5rem 1.25rem;
    color: #fff;
    min-height: 12.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(76, 29, 149, 0.45);
}
.vcard-display::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.18), transparent 35%),
        radial-gradient(circle at 10% 90%, rgba(167,139,250,0.35), transparent 40%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 40c20-20 40-20 60 0s40 20 60 0v40H0z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.vcard-display__brand {
    position: relative; z-index: 2;
    display: flex; justify-content: space-between; align-items: flex-start;
}
.vcard-display__logo {
    font-weight: 900; letter-spacing: 0.04em; font-size: 1.05rem;
}
.vcard-display__logo span { opacity: 0.85; font-weight: 700; }
.vcard-badge {
    display: inline-block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em;
    background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25);
    padding: 0.3rem 0.55rem; border-radius: 999px; backdrop-filter: blur(6px);
}
.vcard-chip {
    width: 2.4rem; height: 1.8rem; border-radius: 0.35rem; margin: 1.1rem 0 0.85rem;
    background: linear-gradient(135deg, #FDE68A, #F59E0B 40%, #D97706);
    position: relative; z-index: 2;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.vcard-number {
    position: relative; z-index: 2;
    font-size: 1.35rem; font-weight: 700; letter-spacing: 0.18em;
    font-variant-numeric: tabular-nums; margin: 0.35rem 0 1rem;
}
.vcard-footer {
    position: relative; z-index: 2;
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
}
.vcard-name { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.vcard-network { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.08em; opacity: 0.95; }
.vcard-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; padding: 0 1.25rem 0.5rem; }
.vcard-action {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    background: transparent; border: 0; cursor: pointer; font-size: 0.68rem; font-weight: 700; color: #374151;
}
.vcard-action__icon {
    width: 2.75rem; height: 2.75rem; border-radius: 999px;
    background: #F3F0FF; color: #6C3CF0;
    display: flex; align-items: center; justify-content: center;
}
.vcard-tx-item {
    display: flex; justify-content: space-between; gap: 0.75rem;
    padding: 0.85rem 0; border-bottom: 1px solid #F3F4F6;
}
.vcard-tx-item:last-child { border-bottom: 0; }
.vcard-status {
    display: inline-block; font-size: 0.65rem; font-weight: 800; padding: 0.15rem 0.45rem; border-radius: 999px;
}
.vcard-status--success { background: #DCFCE7; color: #166534; }
.vcard-status--pending { background: #FEF3C7; color: #92400E; }
.vcard-status--failed { background: #FEE2E2; color: #991B1B; }

/* Settings */
.settings-group { background: #fff; border-radius: 1.25rem; overflow: hidden; margin-bottom: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.settings-item { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.15rem; border-bottom: 1px solid #F3F4F6; text-decoration: none; color: inherit; width: 100%; text-align: left; background: none; border-left: none; border-right: none; border-top: none; cursor: pointer; }
.settings-item:last-child { border-bottom: none; }
.settings-item__icon { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-item__title { font-size: 0.875rem; font-weight: 700; color: #1F2937; }
.settings-item__sub { font-size: 0.75rem; color: #6B7280; margin-top: 0.1rem; }

/* Biller brand colors */
.brand-dstv { background: #0066CC; color: #fff; }
.brand-gotv { background: #00A651; color: #fff; }
.brand-startimes { background: #FF6600; color: #fff; }
.brand-showmax { background: #111; color: #fff; }

/* NIN Slip */
.nin-slip-toggle {
    display: flex;
    gap: 0.5rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 0.85rem;
}
.nin-slip-toggle__btn {
    flex: 1;
    padding: 0.65rem;
    border: none;
    border-radius: 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
}
.nin-slip-toggle__btn--on {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nin-slip-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.nin-slip-option--selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(108, 60, 240, 0.12);
}
.nin-slip-option__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nin-slip-option__icon svg { width: 1.15rem; height: 1.15rem; }
.nin-slip-option__body { flex: 1; min-width: 0; }
.nin-slip-option__name { font-size: 0.85rem; font-weight: 700; color: #111827; }
.nin-slip-option__desc { font-size: 0.7rem; color: #6b7280; margin-top: 0.15rem; line-height: 1.3; }
.nin-slip-option__price { font-size: 0.85rem; font-weight: 800; color: var(--brand); flex-shrink: 0; }

/* NIN Slip type picker (dropdown + preview cards) */
.slip-picker__dropdown { position: relative; }
.slip-picker__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    cursor: pointer;
    text-align: left;
}
.slip-picker__trigger:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.slip-picker__trigger-main { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.slip-picker__trigger-thumb {
    width: 2.75rem; height: 3.5rem; object-fit: cover; border-radius: 0.4rem;
    border: 1px solid #E5E7EB; background: #F8FAFC; flex-shrink: 0;
}
.slip-picker__panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 0.45rem);
    z-index: 40; background: #fff; border: 1px solid #E5E7EB; border-radius: 1.1rem;
    box-shadow: 0 16px 40px rgba(15,23,42,0.12); padding: 0.55rem; max-height: min(70vh, 28rem);
    overflow-y: auto;
}
.slip-picker__option {
    width: 100%; display: grid; grid-template-columns: 72px 1fr auto; gap: 0.75rem;
    align-items: center; padding: 0.65rem; border-radius: 0.85rem; border: 1.5px solid transparent;
    background: transparent; cursor: pointer; text-align: left; margin-bottom: 0.35rem;
}
.slip-picker__option:last-child { margin-bottom: 0; }
.slip-picker__option:hover { background: #F8FAFC; }
.slip-picker__option.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.slip-picker__preview {
    position: relative; width: 72px; height: 92px; border-radius: 0.5rem; overflow: hidden;
    border: 1px solid #E5E7EB; background: #F1F5F9;
}
.slip-picker__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slip-picker__sample-tag {
    position: absolute; left: 0.25rem; bottom: 0.25rem; font-size: 0.55rem; font-weight: 800;
    letter-spacing: 0.04em; text-transform: uppercase; background: rgba(15,23,42,0.75); color: #fff;
    padding: 0.1rem 0.3rem; border-radius: 0.25rem;
}
.slip-picker__meta { min-width: 0; }
.slip-picker__name { font-size: 0.9rem; font-weight: 800; color: #111827; margin: 0; }
.slip-picker__desc { font-size: 0.72rem; color: #6B7280; margin: 0.2rem 0 0; line-height: 1.35; }
.slip-picker__price { font-size: 0.95rem; font-weight: 800; color: var(--brand); margin: 0.35rem 0 0; }
.slip-picker__check {
    width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.slip-picker__selected-board { margin-top: 0.85rem; }
.slip-picker__board-frame {
    border-radius: 1rem; overflow: hidden; border: 1px solid #E5E7EB; background: #F8FAFC;
    max-height: 280px; display: flex; align-items: center; justify-content: center;
}
.slip-picker__board-img { width: 100%; max-height: 280px; object-fit: contain; display: block; }

@media (min-width: 640px) {
    .slip-picker__option { grid-template-columns: 96px 1fr auto; }
    .slip-picker__preview { width: 96px; height: 120px; }
    .slip-picker__board-frame { max-height: 360px; }
    .slip-picker__board-img { max-height: 360px; }
}

/* NIN Verification (VVN-style flow) */
[x-cloak] { display: none !important; }
.nv-page { min-height: 100%; background: #F5F7FB; }
.nv-body { padding: 1rem 1rem 6.5rem; max-width: 32rem; margin: 0 auto; }
.nv-hero {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem;
    background: #fff; border: 1px solid #E5E7EB; border-radius: 1.15rem;
    box-shadow: 0 4px 18px rgba(15,23,42,0.05); padding: 1.1rem 1.15rem; margin-bottom: 1rem;
}
.nv-hero__icon {
    width: 3.25rem; height: 3.25rem; border-radius: 1rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #ECFDF5, #D1FAE5); color: #059669;
}
.nv-hero__icon svg { width: 1.55rem; height: 1.55rem; }
.nv-hero__text { flex: 1; min-width: 0; }
.nv-hero__title { margin: 0; font-size: 1.05rem; font-weight: 800; color: #111827; }
.nv-hero__sub { margin: 0.2rem 0 0; font-size: 0.75rem; color: #6B7280; line-height: 1.4; }
.nv-hero__status { width: 100%; }
.nv-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 1.15rem;
    box-shadow: 0 4px 18px rgba(15,23,42,0.05); padding: 1.15rem;
}
.nv-form { display: flex; flex-direction: column; gap: 0.95rem; }
.nv-field { display: flex; flex-direction: column; gap: 0.4rem; }
.nv-label { font-size: 0.78rem; font-weight: 700; color: #374151; }
.nv-optional { font-weight: 500; color: #9CA3AF; }
.nv-input {
    width: 100%; border: 1.5px solid #E5E7EB; border-radius: 0.9rem;
    background: #F9FAFB; padding: 0.85rem 1rem; font-size: 0.95rem; font-weight: 600;
    color: #111827; outline: none;
}
.nv-input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.nv-input--pin { letter-spacing: 0.35em; text-align: center; font-size: 1.2rem; }
.nv-preview {
    border: 1px solid #E5E7EB; border-radius: 1rem; background: #F8FAFC; padding: 0.75rem;
}
.nv-preview__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.55rem; }
.nv-preview__name { margin: 0; font-size: 0.88rem; font-weight: 800; color: #111827; }
.nv-preview__price { margin: 0; font-size: 0.9rem; font-weight: 800; color: var(--brand); }
.nv-preview__frame {
    border-radius: 0.75rem; overflow: hidden; border: 1px solid #E5E7EB; background: #fff;
    max-height: 240px; display: flex; align-items: center; justify-content: center;
}
.nv-preview__img { width: 100%; max-height: 240px; object-fit: contain; display: block; }
.nv-preview__note { margin: 0.5rem 0 0; text-align: center; font-size: 0.68rem; color: #9CA3AF; }
.nv-consent {
    display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.72rem; color: #6B7280; line-height: 1.4;
}
.nv-consent input { margin-top: 0.15rem; }
.nv-charge {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 0.9rem; border-radius: 0.85rem; background: #ECFDF5; color: #065F46;
    font-size: 0.85rem; font-weight: 700;
}
.nv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    min-height: 3rem; padding: 0.75rem 1rem; border-radius: 0.9rem; font-size: 0.92rem;
    font-weight: 800; border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
    text-align: center; width: 100%;
}
.nv-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.nv-btn--primary { background: var(--brand); color: #fff; }
.nv-btn--primary:hover { background: var(--brand-dark); }
.nv-btn--ghost { background: #F3F4F6; color: #111827; }
.nv-btn--outline { background: #fff; border-color: #D1D5DB; color: #111827; }
.nv-actions { display: grid; gap: 0.55rem; margin-top: 1rem; }
.nv-actions--modal { margin-top: 1.1rem; }
.nv-result { text-align: center; }
.nv-result__badge {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem;
    border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
}
.nv-result__badge--ok { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.nv-result__badge svg { width: 0.95rem; height: 0.95rem; }
.nv-result__title { margin: 0.75rem 0 0.25rem; font-size: 1.15rem; font-weight: 800; color: #111827; }
.nv-result__sub { margin: 0 0 1rem; font-size: 0.8rem; color: #6B7280; }
.nv-result__doc {
    text-align: left; border: 1px solid #E5E7EB; border-radius: 1rem; overflow: hidden; background: #fff;
}
.nv-doc__brand {
    display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #0F766E 0%, #059669 50%, #22C55E 100%); color: #fff;
}
.nv-doc__logo { width: 2.4rem; height: 2.4rem; border-radius: 0.65rem; object-fit: cover; background: rgba(255,255,255,0.2); }
.nv-doc__brand-name { margin: 0; font-size: 0.95rem; font-weight: 800; }
.nv-doc__brand-sub { margin: 0; font-size: 0.7rem; opacity: 0.9; }
.nv-doc__status {
    margin-left: auto; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
    padding: 0.3rem 0.55rem; border-radius: 999px; background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
}
.nv-doc__rows { margin: 0; padding: 0.35rem 1rem 0.85rem; }
.nv-doc__rows > div {
    display: flex; justify-content: space-between; gap: 0.75rem;
    padding: 0.65rem 0; border-bottom: 1px solid #F1F5F9; font-size: 0.82rem;
}
.nv-doc__rows > div:last-child { border-bottom: 0; }
.nv-doc__rows dt { margin: 0; color: #6B7280; font-weight: 600; }
.nv-doc__rows dd { margin: 0; color: #111827; font-weight: 700; text-align: right; }
.nv-modal {
    position: fixed; inset: 0; z-index: 10040; background: rgba(15,23,42,0.45);
    display: flex; align-items: center; justify-content: center; padding: 1.25rem;
}
.nv-modal__card {
    width: 100%; max-width: 22rem; background: #fff; border-radius: 1.25rem;
    padding: 1.4rem 1.2rem; text-align: center; box-shadow: 0 20px 50px rgba(15,23,42,0.2);
}
.nv-modal__card--loading { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.nv-modal__icon {
    width: 3rem; height: 3rem; border-radius: 999px; margin: 0 auto 0.75rem;
    display: flex; align-items: center; justify-content: center;
}
.nv-modal__icon--err { background: #FEF2F2; color: #DC2626; }
.nv-modal__icon svg { width: 1.4rem; height: 1.4rem; }
.nv-modal__title { margin: 0; font-size: 1.05rem; font-weight: 800; color: #111827; }
.nv-modal__text { margin: 0.45rem 0 0; font-size: 0.82rem; color: #6B7280; line-height: 1.45; }
.nv-spinner {
    width: 2.75rem; height: 2.75rem; margin: 0 auto 0.9rem; border-radius: 999px;
    border: 3px solid #D1FAE5; border-top-color: #059669; animation: nv-spin 0.8s linear infinite;
}
@keyframes nv-spin { to { transform: rotate(360deg); } }

@media (min-width: 640px) {
    .nv-preview__frame { max-height: 320px; }
    .nv-preview__img { max-height: 320px; }
    .nv-actions { grid-template-columns: 1fr 1fr; }
    .nv-actions .nv-btn--outline { grid-column: 1 / -1; }
}

/* Dynamic site branding */
.site-brand-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: inherit;
}

.site-logo {
    object-fit: contain;
    display: block;
}

.site-logo--main,
.header-logo-img.site-logo--main {
    height: 2.25rem;
    max-width: 9rem;
    width: auto;
}

.site-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-logo-fallback--main,
.header-logo-img.site-logo-fallback--main {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.site-logo-fallback__svg {
    width: 1.25rem;
    height: 1.25rem;
}

.auth-brand-mark {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 12px 40px -8px rgba(22, 163, 74, 0.35);
    overflow: hidden;
}

.auth-brand-mark__img.site-logo--icon {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.auth-brand-mark .site-logo-fallback--icon {
    width: 100%;
    height: 100%;
    color: #fff;
    background: transparent;
}

.auth-brand-mark .site-logo-fallback__svg {
    width: 2rem;
    height: 2rem;
}

.splash-brand-mark {
    width: 5rem;
    height: 5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.splash-brand-mark__img.site-logo--icon {
    width: 100%;
    height: 100%;
}

.splash-brand-mark .site-logo-fallback--icon {
    width: 100%;
    height: 100%;
    color: #fff;
    background: transparent;
}

.splash-brand-mark .site-logo-fallback__svg {
    width: 2.5rem;
    height: 2.5rem;
}

.auth-logo__img.site-logo--icon {
    width: 100%;
    height: 100%;
}

.auth-logo .site-logo-fallback--icon {
    width: 100%;
    height: 100%;
    color: var(--brand, #6C3CF0);
}

/* AI Trading Robot */
.trading-robot-card {
    display: block;
}

.trading-robot-card__inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #6d28d9 100%);
    box-shadow: 0 12px 40px -8px rgba(76, 29, 149, 0.45);
    color: #fff;
}

.trading-robot-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.trading-robot-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.trading-robot-card__sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.15rem;
}

.trading-tabs {
    scrollbar-width: none;
}

.trading-tab,
.trading-filter {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
}

.trading-tab.active,
.trading-filter.active {
    background: var(--brand, #6C3CF0);
    border-color: var(--brand, #6C3CF0);
    color: #fff;
}

.dashboard-header--compact {
    padding-bottom: 0;
}

.dashboard-header--compact .dashboard-header__inner {
    padding-bottom: 0.5rem;
}

/* ── Slip selector (NIN Phone / Demography / BVN) ── */
.slip-page {
    max-width: 42rem;
    margin: 0 auto;
}

.slip-selector {
    margin-bottom: 1.25rem;
}

.slip-selector__card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem 1.15rem 1.35rem;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
}

.slip-selector__heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
}

.slip-selector__desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 1.1rem;
    line-height: 1.45;
}

.slip-selector__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.45rem;
}

.slip-selector__select-wrap {
    position: relative;
}

.slip-selector__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #dbe3ef;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.9rem center / 1rem no-repeat;
    border-radius: 0.9rem;
    padding: 0.95rem 2.5rem 0.95rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    outline: none;
}

.slip-selector__select:focus {
    border-color: var(--brand, #6C3CF0);
    box-shadow: 0 0 0 3px rgba(108, 60, 240, 0.15);
}

.slip-selector__chosen {
    margin-top: 1rem;
}

.slip-selector__chosen-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.slip-selector__preview {
    margin-top: 1rem;
}

.slip-selector__preview-frame {
    border: 2px dashed #94a3b8;
    border-radius: 1rem;
    background: #f8fafc;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16rem;
}

.slip-selector__preview-img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 28rem;
    object-fit: contain;
    object-position: center;
}

.slip-selector__sample-note {
    margin: 0.55rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}

.slip-selector__fee {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.slip-selector__fee--brand {
    background: linear-gradient(135deg, var(--brand, #6C3CF0) 0%, var(--brand-dark, #5B32D4) 55%, #16A34A 140%);
}

.slip-selector__fee--green {
    background: linear-gradient(135deg, #15803D 0%, #16A34A 55%, #22C55E 100%);
}

.slip-selector__fee-icon {
    font-size: 1rem;
    line-height: 1;
}

.slip-details-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.2rem 1.15rem 1.35rem;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 1rem;
}

.slip-details-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.85rem;
}

.slip-details-card__field {
    margin-bottom: 0.85rem;
}

.slip-details-card__field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.35rem;
}

.slip-details-card__field input,
.slip-details-card__field select {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
}

.slip-details-card__field input:focus,
.slip-details-card__field select:focus {
    border-color: var(--brand, #6C3CF0);
    box-shadow: 0 0 0 3px rgba(108, 60, 240, 0.12);
}

@media (min-width: 768px) {
    .slip-page {
        max-width: 48rem;
        padding-top: 0.5rem;
    }

    .slip-selector__card,
    .slip-details-card {
        padding: 1.5rem 1.6rem 1.7rem;
    }

    .slip-selector__preview-frame {
        min-height: 20rem;
        padding: 1.25rem;
    }
}



/* Virtual account creation modal */
.va-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.va-modal--open { display: flex; }
.va-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.va-modal__card {
    position: relative;
    width: 100%;
    max-width: 22rem;
    background: #fff;
    border-radius: 1.35rem;
    padding: 1.75rem 1.35rem 1.35rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}
.va-modal__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.va-spinner {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 3px solid var(--brand-light);
    border-top-color: var(--brand);
    animation: va-spin 0.8s linear infinite;
}
@keyframes va-spin { to { transform: rotate(360deg); } }
.va-success-check {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.va-error-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #FEE2E2;
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
}
.va-modal__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.5rem;
}
.va-modal__text {
    font-size: 0.88rem;
    color: #6B7280;
    margin: 0 0 1rem;
    line-height: 1.45;
}
.va-modal__details {
    background: #F5F7FA;
    border-radius: 0.95rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
}
.va-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
    padding: 0.35rem 0;
}
.va-detail-row span { color: #6B7280; }
.va-detail-row strong { color: #111827; text-align: right; }
.va-acct { letter-spacing: 0.04em; font-family: ui-monospace, monospace; }
.va-modal__actions { display: flex; flex-direction: column; gap: 0.55rem; }
.va-modal__secondary {
    width: 100%;
    padding: 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid #E5E7EB;
    background: #fff;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
}

/* Premium 3D popup notifications */
.jamra-notify-container {
    position: fixed;
    top: max(0.85rem, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10020;
    width: min(94vw, 23.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    perspective: 1200px;
}
.jamra-notify {
    --jn-accent: var(--brand, #0066ff);
    --jn-accent-soft: color-mix(in srgb, var(--jn-accent) 18%, white);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.05rem 1.1rem;
    border-radius: 1.25rem;
    pointer-events: auto;
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(-1.25rem) rotateX(12deg) scale(0.94);
    transform-origin: top center;
    transition:
        opacity 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 -1px 0 rgba(15, 23, 42, 0.04) inset,
        0 18px 40px -12px rgba(15, 23, 42, 0.28),
        0 8px 16px -8px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.jamra-notify--in {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
}
.jamra-notify--out {
    opacity: 0;
    transform: translateY(-0.75rem) rotateX(-6deg) scale(0.96);
}
.jamra-notify__glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 70%;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--jn-accent) 35%, transparent), transparent 70%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.jamra-notify__icon-wrap,
.jamra-notify__body,
.jamra-notify__close {
    position: relative;
    z-index: 1;
}
.jamra-notify__icon-wrap {
    flex-shrink: 0;
    perspective: 600px;
}
.jamra-notify__icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--jn-accent) 88%, white), var(--jn-accent));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45) inset,
        0 10px 18px -8px color-mix(in srgb, var(--jn-accent) 70%, transparent),
        0 4px 8px -4px rgba(15, 23, 42, 0.35);
    transform: translateZ(12px) rotateX(8deg) rotateY(-6deg);
    animation: jamraNotifyIconFloat 2.8s ease-in-out infinite;
}
.jamra-notify__icon svg,
.jamra-notify__icon i {
    width: 1.2rem;
    height: 1.2rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}
.jamra-notify__body { flex: 1; min-width: 0; padding-top: 0.05rem; }
.jamra-notify__badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--jn-accent);
    background: var(--jn-accent-soft);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    margin-bottom: 0.28rem;
}
.jamra-notify__title {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.jamra-notify__msg {
    font-size: 0.78rem;
    margin: 0.28rem 0 0;
    color: #64748b;
    line-height: 1.45;
}
.jamra-notify__close {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border: 0;
    border-radius: 0.55rem;
    background: rgba(15, 23, 42, 0.05);
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.jamra-notify__close:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #475569;
    transform: scale(1.05);
}
.jamra-notify__close svg,
.jamra-notify__close i { width: 0.9rem; height: 0.9rem; }
.jamra-notify__progress {
    position: absolute;
    left: 0; bottom: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--jn-accent), color-mix(in srgb, var(--jn-accent) 55%, white));
    transform-origin: left;
    animation-name: jamraNotifyProgress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    z-index: 2;
    opacity: 0.9;
}
.jamra-notify--success { --jn-accent: #16a34a; }
.jamra-notify--error { --jn-accent: #dc2626; }
.jamra-notify--warning { --jn-accent: #d97706; }
.jamra-notify--info { --jn-accent: var(--brand, #0066ff); }
.jamra-notify--reward { --jn-accent: #c026d3; }
.jamra-notify--verification { --jn-accent: #4f46e5; }

html.dark .jamra-notify,
body.dark .jamra-notify {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.92));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 22px 48px -14px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(148, 163, 184, 0.08);
}
html.dark .jamra-notify__title,
body.dark .jamra-notify__title { color: #f8fafc; }
html.dark .jamra-notify__msg,
body.dark .jamra-notify__msg { color: #94a3b8; }
html.dark .jamra-notify__close,
body.dark .jamra-notify__close {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

@keyframes jamraNotifyProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes jamraNotifyIconFloat {
    0%, 100% { transform: translateZ(12px) rotateX(8deg) rotateY(-6deg) translateY(0); }
    50% { transform: translateZ(16px) rotateX(4deg) rotateY(4deg) translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
    .jamra-notify,
    .jamra-notify__icon { animation: none !important; transition-duration: 0.01ms !important; }
}

/* Thokin reference reconstruction: dashboard and compact primary navigation */
body.home-page { background: #f4f5f7; }
body.home-page .app-shell { background: #f4f5f7; }
.home-top { padding: var(--safe-top) 1.25rem 1.35rem; background: #f4f5f7; }
.home-top__bar { padding: .8rem 0 1.05rem; }
.home-top__profile { gap: .8rem; }
.home-top__avatar { width: 2.75rem; height: 2.75rem; overflow: hidden; font-size: .78rem; }
.home-top__avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-top__level { color: #555; font-size: 1rem; font-weight: 700; }
.home-top__actions { gap: .9rem; }
.home-top__action { color: #171717; padding: .35rem; }
.home-top__action svg { width: 1.55rem; height: 1.55rem; stroke-width: 2.2; }
.wallet-hero { background: #06275c !important; border-radius: 1.15rem; padding: 1.5rem 1.25rem 1.35rem; box-shadow: none; }
.wallet-hero__account { margin: 0 0 1.45rem; gap: .55rem; font-size: .82rem; color: rgba(255,255,255,.94); }
.wallet-hero__copy svg { width: 1rem; height: 1rem; }
.wallet-hero__create-account { margin: 0 0 1.35rem; padding: .5rem .8rem; border: 1px solid rgba(255,255,255,.22); border-radius: .65rem; background: rgba(255,255,255,.1); color: #fff; font-size: .75rem; font-weight: 700; }
.wallet-hero__balance { margin: 0; font-size: 2.05rem; font-weight: 800; letter-spacing: -.035em; }
.wallet-hero__eye svg { width: 1.15rem; height: 1.15rem; }
.wallet-hero__updated { margin: .8rem 0 0; font-size: .76rem; color: rgba(255,255,255,.62); }
.wallet-hero__updated strong { color: #fff; font-weight: 700; }
.wallet-hero__actions { margin-top: 1.25rem; justify-content: flex-start; gap: .65rem; }
.wallet-hero__btn { flex: 0 1 auto; min-width: 7.1rem; padding: .65rem .9rem; border-radius: 999px; font-size: .78rem; }
.wallet-hero__btn svg { width: 1rem; height: 1rem; }
.wallet-hero__btn--primary,
.wallet-hero__btn--ghost { background: rgba(255,255,255,.14); border: 0; }
.wallet-hero__btn--primary { background: rgba(255,255,255,.12); }
.home-body { padding: .35rem 1.25rem calc(var(--nav-height) + var(--safe-bottom) + 1rem); background: #f4f5f7; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; margin: .15rem 0 .75rem; }
.home-section-heading--spaced { margin-top: 1.35rem; }
.home-section-heading h2 { margin: 0; color: #555; font-size: .85rem; font-weight: 650; }
.home-section-heading a { color: var(--brand); font-size: .8rem; font-weight: 650; text-decoration: none; }
.home-services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .62rem; }
.home-service-card { min-width: 0; min-height: 5.5rem; padding: .82rem .25rem .68rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .62rem; border-radius: .9rem; background: #fff; color: #1d1d1f; text-decoration: none; box-shadow: none; transition: transform .15s ease, box-shadow .15s ease; }
.home-service-card:active { transform: scale(.97); }
.home-service-card__icon { width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: .65rem; }
.home-service-card__icon svg { width: 1.35rem; height: 1.35rem; stroke-width: 2.1; }
.home-service-card__label { min-width: 0; color: #262626; font-size: .67rem; font-weight: 700; line-height: 1.15; text-align: center; white-space: nowrap; }
.home-service-card--blue .home-service-card__icon { background: #eaf3ff; color: #1372e8; }
.home-service-card--violet .home-service-card__icon { background: #f0ebff; color: #7057e8; }
.home-service-card--green .home-service-card__icon { background: #e7f8ee; color: #169c55; }
.home-service-card--amber .home-service-card__icon { background: #fff4dc; color: #d88708; }
.home-service-card--cyan .home-service-card__icon { background: #e8f8fc; color: #0289ad; }
.home-service-card--indigo .home-service-card__icon { background: #ebedff; color: #4b5bdc; }
.home-service-card--rose .home-service-card__icon { background: #fff0f2; color: #e04b68; }
.home-service-card--slate .home-service-card__icon { background: #eef1f4; color: #4c5663; }
.rewards-row { gap: .7rem; margin: 0; }
.reward-card { min-width: 0; min-height: 7.1rem; align-items: flex-start; flex-direction: column; gap: .55rem; padding: .85rem; border-radius: 1rem; box-shadow: none; }
.reward-card__icon { width: 2rem; height: 2rem; border-radius: .65rem; }
.reward-card__icon svg { width: 1.1rem; height: 1.1rem; }
.reward-card__label, .reward-card__value { display: block; }
.reward-card__label { color: #707070; font-size: .75rem; font-weight: 700; }
.reward-card__value { margin-top: .32rem; color: #151515; font-size: .9rem; font-weight: 700; }
.home-tx-list { border-radius: 1rem; box-shadow: none; }
.home-tx-item { display: flex; align-items: center; gap: .75rem; padding: .82rem .9rem; color: inherit; text-decoration: none; }
.home-tx-item__icon { width: 2.25rem; height: 2.25rem; background: #edf5ff; color: #0b78ea; }
.home-tx-item__icon svg { width: 1rem; height: 1rem; }
.home-tx-item__body { flex: 1; min-width: 0; }
.home-tx-item__body strong { display: block; overflow: hidden; color: #171717; font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.home-tx-item__body small { display: block; margin-top: .15rem; overflow: hidden; color: #777; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.home-tx-item__amount { flex-shrink: 0; text-align: right; }
.home-tx-item__amount strong { display: block; color: #333; font-size: .76rem; }
.home-tx-item__amount small { display: block; margin-top: .12rem; color: #999; font-size: .58rem; text-transform: uppercase; }
.home-tx-item__amount--credit strong { color: #159657; }
.home-tx-empty { min-height: 8rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; color: #9ca3af; font-size: .72rem; }
.home-tx-empty svg { width: 1.5rem; }
.home-tx-empty strong { color: #374151; }
.home-tx-error { padding: 2rem 1rem; color: #9ca3af; font-size: .75rem; text-align: center; }

.bottom-nav { border-top-color: #e9eaec; box-shadow: none; }
.bottom-nav__inner { max-width: 28rem; min-height: 4.35rem; align-items: center; padding: .35rem .9rem .3rem; }
.bottom-nav__link { justify-content: center; gap: .28rem; padding: .25rem; color: #666; }
.bottom-nav__icon { width: 1.35rem; height: 1.35rem; }
.bottom-nav__label { font-size: .65rem; font-weight: 650; }
.bottom-nav__link--active { color: #1976e9; }
.bottom-nav__link--active .bottom-nav__icon { fill: currentColor; stroke: currentColor; }
.bottom-nav__link--active .bottom-nav__label { font-weight: 750; }

@media (max-width: 359px) {
    .home-top, .home-body { padding-left: .9rem; padding-right: .9rem; }
    .home-services-grid { gap: .4rem; }
    .home-service-card__label { font-size: .6rem; }
    .wallet-hero__balance { font-size: 1.75rem; }
}

/* Airtime and data purchase pages based on the supplied mobile references */
body.vtu-flow-page { background: #f7f7f8; }
body.vtu-flow-page .app-shell,
body.vtu-flow-page .flow-page { background: #f7f7f8; }
body.vtu-flow-page .flow-header { position: relative; border: 0; box-shadow: none; }
body.vtu-flow-page .flow-header__bar { min-height: 5.7rem; padding: max(.85rem, var(--safe-top)) 1.25rem .85rem; }
body.vtu-flow-page .flow-header__back,
body.vtu-flow-page .flow-header__action { color: #0875e1; }
body.vtu-flow-page .flow-header__back svg { width: 1.6rem; height: 1.6rem; }
body.vtu-flow-page .flow-header__action svg { width: 1.55rem; height: 1.55rem; }
body.vtu-flow-page .flow-header__title { font-size: 1.05rem; font-weight: 800; color: #090909; }
body.vtu-flow-page .data-promo { min-height: 2.9rem; padding: .72rem 1rem; background: #f5edff; color: #a94fce; font-size: .77rem; font-weight: 750; }
body.vtu-flow-page .flow-body { padding: 1.8rem 1.25rem 2rem; }
body.vtu-flow-page .flow-label { margin: 0 0 .65rem; color: #777; font-size: .77rem; font-weight: 550; }
body.vtu-flow-page .phone-card { padding: 1.05rem; border: 0; border-radius: 1.15rem; box-shadow: none; }
body.vtu-flow-page .phone-input-row { gap: .7rem; }
body.vtu-flow-page .phone-input-box { min-height: 3.7rem; padding: .55rem .8rem; border-radius: .78rem; background: #f2f4f8; }
body.vtu-flow-page .phone-input-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand); background: #fff; }
body.vtu-flow-page .phone-input-box input { font-size: 1.05rem; letter-spacing: .015em; }
body.vtu-flow-page .phone-input-box input::placeholder { color: #dfe3ea; }
body.vtu-flow-page .phone-contact-btn { width: 2.75rem; background: transparent; color: #0875e1; }
body.vtu-flow-page .phone-contact-btn svg { width: 1.8rem; height: 1.8rem; stroke-width: 2.5; }
.detected-network-chip { display: inline-flex; padding-right: .55rem; border-right: 1px solid #d9dde4; }
.detected-network-chip[hidden] { display: none !important; }
body.vtu-flow-page .network-dot { width: 2.25rem; height: 2.25rem; font-size: .67rem; }
body.vtu-flow-page .network-detection { margin: .7rem 0 0; padding: .6rem .7rem; border-radius: .7rem; box-shadow: none; }
body.vtu-flow-page .network-detection .network-dot { width: 1.8rem; height: 1.8rem; min-width: 1.8rem; }
body.vtu-flow-page .network-detection__message { font-size: .72rem; }
body.vtu-flow-page .network-detection__hint { font-size: .62rem; }
body.vtu-flow-page .beneficiary-bar { min-height: 3rem; margin-top: .8rem; padding: .75rem 0 .05rem; color: #252525; font-size: .77rem; }
body.vtu-flow-page .beneficiary-bar strong { color: #0875e1; font-weight: 750; }
body.vtu-flow-page .beneficiary-bar .chevron { margin-left: auto; }
body.vtu-flow-page .flow-panel { padding: 1.05rem; border: 0; border-radius: 1.15rem; box-shadow: none; }
body.vtu-flow-page .flow-search { min-height: 3.1rem; margin-bottom: .9rem; border-radius: .75rem; background: #f2f4f8; }
body.vtu-flow-page .flow-chips { margin-bottom: .6rem; }
body.vtu-flow-page .flow-chip { padding: .48rem .9rem; background: #e8eefb; color: #526b90; font-size: .7rem; }
body.vtu-flow-page .flow-chip--active { background: #0875e1; color: #fff; }
body.vtu-flow-page .flow-chip-link { color: #0875e1; font-size: .7rem; }
body.vtu-flow-page .flow-recipient { padding: .72rem .05rem; }
body.vtu-flow-page .flow-recipient__name { font-size: .82rem; }
body.vtu-flow-page .flow-recipient__bank { font-size: .68rem; }
body.airtime-redesign .airtime-beneficiaries > .flow-label { margin-top: 1.8rem; }
body.data-redesign #dataPlanSection > .flow-label { margin-top: 1.8rem !important; }
body.data-redesign .plan-tabs { gap: .55rem; margin: 0 -.25rem 1rem; padding: 0 .25rem .25rem; }
body.data-redesign .plan-tab { min-height: 2.55rem; padding: .55rem 1.15rem; background: #eaf0fb; color: #557099; font-size: .72rem; }
body.data-redesign .plan-tab--active { background: #0875e1; color: #fff; }
body.data-redesign .plan-grid { gap: .7rem; }
body.data-redesign .plan-card { min-height: 8.8rem; padding: 1.15rem .85rem .85rem; border: 0; border-radius: .9rem; box-shadow: none; }
body.data-redesign .plan-card--selected { box-shadow: inset 0 0 0 2px #0875e1; background: #f4f8ff; }
body.data-redesign .plan-card__cashback { top: .45rem; right: .45rem; border-radius: .35rem; background: #f6ebff; color: #a34dcc; font-size: .57rem; }
body.data-redesign .plan-card__size { margin-top: .65rem; font-size: 1.08rem; }
body.data-redesign .plan-card__price { font-size: 1rem; }
body.data-redesign .plan-card__validity { font-size: .72rem; }
body.data-redesign .plan-card__desc { font-size: .65rem; line-height: 1.45; }
body.vtu-flow-page .amount-chip { border-radius: 999px; }
body.vtu-flow-page .flow-confirm-bar { border-top-color: #eceef1; box-shadow: 0 -7px 22px rgba(15,23,42,.05); }

@media (min-width: 768px) {
    body.vtu-flow-page .flow-body { padding-left: 1.6rem; padding-right: 1.6rem; }
}

/* StroWallet-inspired dashboard treatment: Thokin data and features stay unchanged. */
body.home-page,
body.home-page .app-shell { background: #f7f8f7; }
body.home-page .app-shell { max-width: 64rem; overflow-x: hidden; }
.stro-home-hero {
    position: relative;
    padding: max(1rem, var(--safe-top)) clamp(1rem, 4vw, 2.5rem) 4.8rem;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 6%, rgba(118, 211, 150, .22), transparent 28%),
        linear-gradient(145deg, #006844 0%, #004f35 58%, #003c2b 100%);
    border-radius: 0 0 2rem 2rem;
}
.stro-home-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stro-home-brand { min-width: 0; display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.stro-home-brand strong { overflow: hidden; font-size: clamp(1.2rem, 4.5vw, 1.75rem); font-weight: 800; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.stro-home-brand__mark { width: 2.8rem; height: 2.8rem; padding: .38rem; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid rgba(194, 255, 178, .72); border-radius: .8rem; background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(169,245,142,.08); }
.stro-home-brand__logo { width: 100%; height: 100%; object-fit: contain; }
.stro-home-actions { display: flex; align-items: center; gap: .45rem; }
.stro-home-action { position: relative; width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #fff; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.stro-home-action:hover { background: rgba(255,255,255,.12); }
.stro-home-action:active { transform: scale(.95); }
.stro-home-action svg { width: 1.38rem; height: 1.38rem; stroke-width: 2; }
.stro-home-action__badge { position: absolute; top: .34rem; right: .38rem; width: .46rem; height: .46rem; border: 2px solid #00573a; border-radius: 999px; background: #fbbf24; }
.stro-wallet { margin-top: 2.1rem; }
.stro-wallet__label-row { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.86); }
.stro-wallet__eye { width: 1.7rem; height: 1.7rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: #fff; }
.stro-wallet__eye svg { width: 1.15rem; height: 1.15rem; }
.stro-wallet__balance-row { margin-top: .45rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.stro-wallet__balance { min-width: 0; margin: 0; overflow: hidden; color: #fff; font-size: clamp(1.8rem, 8vw, 3rem); font-weight: 800; letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }
.stro-wallet__currency { flex: 0 0 auto; min-height: 2.45rem; padding: .55rem .85rem; display: inline-flex; align-items: center; gap: .55rem; border-radius: 999px; background: #fff; color: #111827; font-size: .76rem; font-weight: 800; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.stro-wallet__flag { width: 1.5rem; height: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: .14rem; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.stro-wallet__flag i:nth-child(1), .stro-wallet__flag i:nth-child(3) { background: #008751; }
.stro-wallet__flag i:nth-child(2) { background: #fff; }
.stro-wallet-account { min-height: 4.8rem; margin-top: 1.55rem; padding: .8rem .9rem; display: flex; align-items: center; gap: .75rem; border-radius: 1.15rem; background: #fff; color: #0b2f23; box-shadow: 0 16px 36px rgba(0, 35, 23, .22); }
.stro-wallet-account__icon { width: 3.05rem; height: 3.05rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: .9rem; background: #e7f8ee; color: #006844; }
.stro-wallet-account__icon svg { width: 1.45rem; height: 1.45rem; stroke-width: 2.2; }
.stro-wallet-account__details { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .18rem; }
.stro-wallet-account__details strong { overflow: hidden; color: #10231d; font-size: .86rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.stro-wallet-account__details small { overflow: hidden; color: #5e6f69; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.stro-wallet-account__copy { width: 2.7rem; height: 2.7rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: .85rem; background: #ebf8f0; color: #00764d; }
.stro-wallet-account__copy svg { width: 1.25rem; height: 1.25rem; }
body.home-page .home-body { position: relative; z-index: 2; margin-top: -3.25rem; padding: 0 clamp(1rem, 4vw, 2.5rem) calc(var(--nav-height) + var(--safe-bottom) + 1.4rem); background: transparent; }
.stro-quick-card { padding: 1.2rem 1rem 1rem; border: 1px solid rgba(0, 87, 57, .06); border-radius: 1.3rem; background: #fff; box-shadow: 0 16px 42px rgba(22, 51, 41, .1); }
.stro-quick-card .home-section-heading { margin: 0 0 1rem; }
.stro-quick-card .home-section-heading h2 { color: #13261f; font-size: 1rem; font-weight: 800; }
body.home-page .home-services-grid { gap: 1rem .55rem; }
body.home-page .home-service-card { min-height: 5.3rem; padding: 0 .1rem; gap: .48rem; border-radius: .85rem; background: transparent; box-shadow: none; }
body.home-page .home-service-card__icon { width: 3.15rem; height: 3.15rem; border: 1px solid #dce8e2; border-radius: .9rem; background: linear-gradient(145deg,#fff,#f5faf7) !important; color: #005f40 !important; box-shadow: 0 6px 14px rgba(0,80,54,.07); }
body.home-page .home-service-card__icon svg { width: 1.55rem; height: 1.55rem; stroke-width: 2; }
body.home-page .home-service-card__label { max-width: 100%; color: #17231f; font-size: .67rem; font-weight: 750; white-space: normal; }
.stro-home-shortcuts { margin: .85rem 0 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; }
.stro-home-shortcuts a { min-height: 3rem; padding: .7rem .85rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid #dfe9e4; border-radius: .9rem; background: #fff; color: #075d41; font-size: .72rem; font-weight: 750; text-decoration: none; box-shadow: 0 6px 18px rgba(23,62,48,.05); }
.stro-home-shortcuts svg { width: 1rem; height: 1rem; }
body.home-page .home-section-heading--spaced { margin-top: 0; }
body.home-page .home-section-heading h2 { color: #24342e; font-size: .9rem; font-weight: 800; }
body.home-page .home-section-heading a { color: #00754d; font-weight: 750; }
body.home-page .home-tx-list { overflow: hidden; border: 1px solid #e6ece9; border-radius: 1.15rem; background: #fff; box-shadow: 0 10px 28px rgba(20,55,43,.06); }
body.home-page .home-tx-item { padding: .9rem; }
body.home-page .home-tx-item__icon { background: #e9f8ef; color: #00754d; }
body.home-page .home-tx-item__icon--debit { background: #eef9f2; color: #00754d; }
body.home-page .home-tx-item__amount--credit strong { color: #00754d; }
body.home-page .bottom-nav { border-top-color: #e4ebe7; }
body.home-page .bottom-nav__link--active { color: #008456; }

@media (min-width: 700px) {
    .stro-home-hero { padding-left: 3rem; padding-right: 3rem; }
    body.home-page .home-body { padding-left: 3rem; padding-right: 3rem; }
    .stro-quick-card { padding: 1.5rem 1.4rem; }
    body.home-page .home-services-grid { gap: 1.2rem .8rem; }
    body.home-page .home-service-card__label { font-size: .76rem; }
}

@media (max-width: 359px) {
    .stro-home-hero { padding-left: .8rem; padding-right: .8rem; }
    body.home-page .home-body { padding-left: .8rem; padding-right: .8rem; }
    .stro-wallet__currency { padding: .48rem .65rem; }
    .stro-wallet__balance { font-size: 1.65rem; }
    .stro-quick-card { padding-left: .65rem; padding-right: .65rem; }
    body.home-page .home-services-grid { gap: .75rem .25rem; }
    body.home-page .home-service-card__icon { width: 2.75rem; height: 2.75rem; }
    body.home-page .home-service-card__label { font-size: .59rem; }
}

/* Provider-neutral Gift Card module */
body.gift-card-page { background: #f6f8f7; }
body.gift-card-page .app-shell { max-width: 54rem; background: #f6f8f7; }
.gc-header { min-height: 6.4rem; padding: max(1rem, var(--safe-top)) 1rem 1.15rem; display: grid; grid-template-columns: 2.6rem minmax(0,1fr) 2.6rem; align-items: center; gap: .65rem; color: #fff; background: linear-gradient(145deg,#006844,#004a33); }
.gc-header h1 { margin: 0; font-size: 1.12rem; font-weight: 800; text-align: center; }
.gc-header p { margin: .18rem 0 0; color: rgba(255,255,255,.72); font-size: .66rem; text-align: center; }
.gc-header__back,.gc-header__history { width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: .8rem; color: #fff; text-decoration: none; }
.gc-header__back:hover,.gc-header__history:hover { background: rgba(255,255,255,.1); }
.gc-header svg { width: 1.2rem; height: 1.2rem; }
.gc-main { width: 100%; padding: 1rem 1rem calc(var(--nav-height) + var(--safe-bottom) + 1.2rem); }
.gc-notice { margin-bottom: .85rem; padding: .8rem .9rem; display: flex; align-items: flex-start; gap: .55rem; border: 1px solid #f5d391; border-radius: .85rem; background: #fff8e8; color: #8a5c08; font-size: .72rem; line-height: 1.45; }
.gc-notice[hidden] { display: none; }
.gc-notice svg { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: .08rem; }
.gc-tabs { margin-bottom: 1rem; padding: .32rem; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .3rem; border: 1px solid #e0e9e4; border-radius: 1rem; background: #fff; box-shadow: 0 8px 22px rgba(25,57,46,.05); }
.gc-tab { min-height: 2.7rem; padding: .55rem .4rem; display: inline-flex; align-items: center; justify-content: center; gap: .38rem; border: 0; border-radius: .72rem; background: transparent; color: #68766f; font-size: .71rem; font-weight: 750; }
.gc-tab svg { width: .98rem; height: .98rem; }
.gc-tab--active { background: #006844; color: #fff; box-shadow: 0 7px 15px rgba(0,104,68,.2); }
.gc-panel { padding: 1.1rem; border: 1px solid #e4ebe7; border-radius: 1.15rem; background: #fff; box-shadow: 0 12px 34px rgba(27,58,47,.07); }
.gc-panel[hidden] { display: none; }
.gc-panel__intro { margin-bottom: 1.1rem; display: flex; align-items: center; gap: .72rem; }
.gc-panel__icon { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: .8rem; background: #e8f8ef; color: #006844; }
.gc-panel__icon svg { width: 1.25rem; height: 1.25rem; }
.gc-panel__intro h2 { margin: 0; color: #10271f; font-size: .95rem; font-weight: 800; }
.gc-panel__intro p { margin: .2rem 0 0; color: #78837e; font-size: .65rem; line-height: 1.4; }
.gc-form-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: .9rem; }
.gc-field { margin: 0 0 .9rem; display: flex; flex-direction: column; gap: .42rem; }
.gc-form-grid .gc-field { margin: 0; }
.gc-field > span { color: #34463f; font-size: .69rem; font-weight: 750; }
.gc-field select,.gc-field input,.gc-field textarea { width: 100%; min-height: 3rem; padding: .7rem .8rem; border: 1px solid #dce6e1; border-radius: .78rem; outline: 0; background: #fbfcfb; color: #17241f; font-family: inherit; font-size: .76rem; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.gc-field textarea { min-height: 5.5rem; resize: vertical; }
.gc-field input[type=file] { padding: .55rem; }
.gc-field select:focus,.gc-field input:focus,.gc-field textarea:focus { border-color: #139565; background: #fff; box-shadow: 0 0 0 3px rgba(19,149,101,.11); }
.gc-field small { min-height: .85rem; color: #89938f; font-size: .59rem; line-height: 1.4; }
.gc-money-input { position: relative; }
.gc-money-input > span { position: absolute; z-index: 1; left: .8rem; top: 50%; transform: translateY(-50%); color: #006844; font-size: .76rem; font-weight: 800; }
.gc-money-input input { padding-left: 2.25rem; }
.gc-quote { min-height: 5.2rem; margin: 1.05rem 0; padding: .9rem; display: flex; flex-direction: column; justify-content: center; gap: .28rem; border: 1px solid #cce8d9; border-radius: .9rem; background: linear-gradient(145deg,#f2fbf6,#eaf8f0); }
.gc-quote > span { color: #4e6d61; font-size: .65rem; }
.gc-quote > strong { color: #005a3d; font-size: 1.35rem; font-weight: 850; letter-spacing: -.035em; }
.gc-quote > small { color: #698076; font-size: .59rem; }
.gc-quote .gc-quote__error { color: #bd2c3c; }
.gc-loading-inline { animation: gcPulse 1.2s ease-in-out infinite; }
.gc-primary-btn { width: 100%; min-height: 3.25rem; padding: .75rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .48rem; border: 0; border-radius: .85rem; background: linear-gradient(145deg,#00764d,#005c3e); color: #fff; font-family: inherit; font-size: .76rem; font-weight: 800; box-shadow: 0 10px 20px rgba(0,104,68,.22); }
.gc-primary-btn:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
.gc-primary-btn:not(:disabled):active { transform: scale(.99); }
.gc-primary-btn svg { width: 1rem; height: 1rem; }
.gc-security-note { margin: .75rem 0 0; display: flex; align-items: flex-start; justify-content: center; gap: .32rem; color: #7c8883; font-size: .57rem; line-height: 1.45; text-align: center; }
.gc-security-note svg { width: .78rem; height: .78rem; flex: 0 0 auto; margin-top: .03rem; }
.gc-divider { margin: .95rem 0; display: flex; align-items: center; gap: .7rem; color: #8d9793; font-size: .59rem; text-transform: uppercase; }
.gc-divider::before,.gc-divider::after { content:""; height: 1px; flex: 1; background: #e5ebe8; }
.gc-history-list { display: flex; flex-direction: column; }
.gc-history-item { width: 100%; padding: .85rem .2rem; display: flex; align-items: center; gap: .65rem; border: 0; border-bottom: 1px solid #edf1ef; background: transparent; color: inherit; font-family: inherit; text-align: left; }
.gc-history-item:last-child { border-bottom: 0; }
.gc-history-item__icon { width: 2.35rem; height: 2.35rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #eaf8f0; color: #00754d; }
.gc-history-item__icon svg { width: 1rem; height: 1rem; }
.gc-history-item__body { min-width: 0; flex: 1; }
.gc-history-item__body strong,.gc-history-item__body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-history-item__body strong { color: #1d2b26; font-size: .7rem; }
.gc-history-item__body small { margin-top: .18rem; color: #8a9490; font-size: .55rem; }
.gc-history-item__amount { flex: 0 0 auto; text-align: right; }
.gc-history-item__amount strong,.gc-history-item__amount small { display: block; }
.gc-history-item__amount strong { color: #26352f; font-size: .68rem; }
.gc-history-item__amount small { margin-top: .18rem; color: #a06e0c; font-size: .54rem; font-weight: 750; text-transform: capitalize; }
.gc-history-item__amount small.is-good { color: #078051; }
.gc-history-item__amount small.is-bad { color: #c23e4d; }
.gc-loading,.gc-empty { min-height: 10rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; color: #89948f; font-size: .66rem; text-align: center; }
.gc-loading span { width: 1.4rem; height: 1.4rem; border: 2px solid #dbe9e2; border-top-color: #00754d; border-radius: 999px; animation: gcSpin .8s linear infinite; }
.gc-empty svg { width: 1.7rem; height: 1.7rem; color: #93b5a7; }
.gc-empty strong { color: #3e5149; }
.gc-modal { position: fixed; z-index: 10020; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.gc-modal__backdrop { position: absolute; inset: 0; background: rgba(4,25,18,.58); backdrop-filter: blur(3px); }
.gc-modal__sheet { position: relative; z-index: 1; width: min(100%,32rem); max-height: 86vh; padding: 1.4rem 1.1rem calc(1.2rem + var(--safe-bottom)); overflow-y: auto; border-radius: 1.4rem 1.4rem 0 0; background: #fff; box-shadow: 0 -20px 45px rgba(0,0,0,.18); }
.gc-modal__close { position: absolute; top: .8rem; right: .8rem; width: 2.3rem; height: 2.3rem; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: #f1f5f3; color: #64736d; }
.gc-modal__close svg { width: 1rem; height: 1rem; }
.gc-modal__status { width: 3.3rem; height: 3.3rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #e7f8ef; color: #00754d; }
.gc-modal__status svg { width: 1.5rem; height: 1.5rem; }
.gc-modal h3 { margin: .8rem 0 .2rem; color: #172a22; font-size: 1.05rem; font-weight: 800; }
.gc-modal > .gc-modal__sheet > p { margin: 0; color: #6e7e77; font-size: .68rem; text-transform: capitalize; }
.gc-modal dl { margin: 1rem 0; border-top: 1px solid #e9efec; }
.gc-modal dl div { padding: .65rem 0; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e9efec; }
.gc-modal dt { color: #7a8882; font-size: .62rem; }
.gc-modal dd { margin: 0; overflow-wrap: anywhere; color: #24362f; font-size: .65rem; font-weight: 750; text-align: right; }
.gc-code { margin-top: .65rem; padding: .85rem; display: flex; flex-direction: column; gap: .3rem; border: 1px dashed #81bca2; border-radius: .8rem; background: #f1faf5; }
.gc-code span,.gc-code small { color: #6a8177; font-size: .58rem; }
.gc-code strong { overflow-wrap: anywhere; color: #075f41; font-size: .78rem; letter-spacing: .04em; }
.gc-code a { color: #00754d; font-size: .62rem; font-weight: 750; }
.gc-code-note { padding: .85rem; border-radius: .8rem; background: #f5f7f6; color: #73817b; font-size: .64rem; text-align: center; }
@keyframes gcSpin { to { transform: rotate(360deg); } }
@keyframes gcPulse { 50% { opacity: .55; } }

@media (min-width: 640px) {
    .gc-main { padding: 1.4rem 1.5rem calc(var(--nav-height) + 1.5rem); }
    .gc-panel { padding: 1.5rem; }
    .gc-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
    .gc-header { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* Card Details redesign — reference-led, provider-safe and mobile first */
body.vcard-details-page {
    --vcd-ink: #1d2738;
    --vcd-muted: #657084;
    --vcd-line: #dce3eb;
    --vcd-page: #f8fafc;
    --vcd-card-a: #063b2c;
    --vcd-card-b: #087a55;
    background: var(--vcd-page);
}
body.vcard-details-page .app-shell { max-width: 46rem; background: var(--vcd-page); }
body.vcard-details-page .vcard-page {
    min-height: 100dvh;
    padding: 0 0 max(2rem, env(safe-area-inset-bottom));
    overflow-x: clip;
    background: var(--vcd-page);
}
.vcard-details-header {
    min-height: 7.4rem;
    padding: max(1.35rem, env(safe-area-inset-top)) 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #fff;
}
.vcard-details-header h1 {
    margin: 0;
    color: var(--vcd-ink);
    font-size: clamp(1.38rem, 5vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -.025em;
}
.vcard-details-header__back {
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--brand);
    border-radius: 999px;
    color: var(--brand);
    background: #fff;
    transition: transform .18s ease, background .18s ease;
}
.vcard-details-header__back:active { transform: scale(.95); }
.vcard-details-header__back svg { width: 1.75rem; height: 1.75rem; stroke-width: 2.5; }
.vcard-details-content { padding: 2rem 1.45rem 0; }
.vcard-details-panel,
.vcard-transactions-panel {
    border: 1.5px solid var(--vcd-line);
    border-radius: 2.15rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(15, 38, 30, .025);
}
.vcard-details-panel { padding: 1.65rem 1.55rem 1.75rem; }
body.vcard-details-page .vcard-display {
    width: 100%;
    aspect-ratio: 1.59 / 1;
    min-height: 0;
    margin: 0;
    padding: 1.45rem 1.55rem 1.3rem;
    display: flex;
    flex-direction: column;
    border-radius: 1.7rem;
    color: #fff;
    background: linear-gradient(135deg, var(--vcd-card-b), var(--vcd-card-a) 64%, #02281e);
    box-shadow: 0 20px 44px rgba(3, 64, 47, .26);
    isolation: isolate;
}
body.vcard-details-page .vcard-display::before {
    z-index: -1;
    opacity: .82;
    background:
        linear-gradient(36deg, transparent 46%, rgba(255,255,255,.055) 47% 53%, transparent 54%) 0 0 / 5.6rem 5.6rem,
        linear-gradient(144deg, transparent 46%, rgba(255,255,255,.045) 47% 53%, transparent 54%) 0 0 / 5.6rem 5.6rem,
        radial-gradient(circle at 92% 4%, rgba(120, 255, 189, .16), transparent 34%);
}
body.vcard-details-page .vcard-display::after {
    content: '';
    position: absolute;
    inset: auto -14% -42% 30%;
    height: 70%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(0,0,0,.13);
    transform: rotate(-8deg);
}
body.vcard-details-page .vcard-display__brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}
.vcard-balance-toggle {
    min-height: 2.05rem;
    padding: .45rem .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    color: #233042;
    font-size: clamp(.58rem, 2.2vw, .72rem);
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 5px 14px rgba(0,0,0,.08);
}
body.vcard-details-page .vcard-display__logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    font-size: clamp(.9rem, 3.4vw, 1.25rem);
    font-weight: 850;
    letter-spacing: -.025em;
}
.vcard-display__logo-icon {
    width: 1.9rem !important;
    height: 1.9rem !important;
    max-width: 1.9rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
body.vcard-details-page .vcard-chip {
    width: 3rem;
    height: 2.25rem;
    margin: clamp(1rem, 5vw, 1.75rem) 0 .55rem;
    border: 1px solid rgba(112, 74, 0, .26);
    border-radius: .5rem;
    background:
        linear-gradient(90deg, transparent 46%, rgba(119,76,0,.44) 47% 52%, transparent 53%),
        linear-gradient(0deg, transparent 44%, rgba(119,76,0,.42) 45% 51%, transparent 52%),
        linear-gradient(135deg, #f7d870, #c99325 58%, #ffdf76);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.vcard-number-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .65rem;
}
body.vcard-details-page .vcard-number {
    min-width: 0;
    margin: .25rem 0 .9rem;
    overflow: hidden;
    color: #fff;
    font-size: clamp(.92rem, 4.25vw, 1.5rem);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: clamp(.07em, .6vw, .16em);
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0,0,0,.18);
}
.vcard-copy-button {
    width: 2.1rem;
    height: 2.1rem;
    margin: -.5rem 0 .2rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .65rem;
    background: rgba(255,255,255,.13);
    color: #fff;
}
.vcard-copy-button svg { width: 1.15rem; height: 1.15rem; }
body.vcard-details-page .vcard-footer {
    margin-top: auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: clamp(.5rem, 2.2vw, 1.1rem);
}
body.vcard-details-page .vcard-footer > div:first-child > p:last-child { display: none; }
body.vcard-details-page .vcard-name {
    max-width: 11rem;
    overflow: hidden;
    font-size: clamp(.62rem, 2.6vw, .82rem);
    line-height: 1.2;
    letter-spacing: .04em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.vcard-validity { display: flex; align-items: end; gap: .7rem; }
.vcard-validity span {
    display: grid;
    gap: .16rem;
    color: rgba(255,255,255,.65);
    font-size: .46rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .04em;
}
.vcard-validity strong { color: #fff; font-size: clamp(.62rem, 2.4vw, .78rem); letter-spacing: .08em; }
body.vcard-details-page .vcard-network {
    position: relative;
    color: #fff;
    font-size: clamp(.82rem, 3.1vw, 1.1rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -.03em;
}
.vcard-network--mastercard { padding-top: 1.35rem; font-size: .58rem !important; font-style: normal !important; letter-spacing: 0 !important; }
.vcard-network--mastercard::before,
.vcard-network--mastercard::after {
    content: '';
    width: 1.55rem;
    height: 1.55rem;
    position: absolute;
    top: -.05rem;
    border-radius: 999px;
    opacity: .96;
}
.vcard-network--mastercard::before { right: 1rem; background: #f04b38; }
.vcard-network--mastercard::after { right: 0; background: #f7a72b; mix-blend-mode: screen; }
.vcard-network--visa { font-family: Arial Black, Arial, sans-serif; transform: skew(-9deg); }
.vcard-network--verve { padding: .24rem .38rem; border-radius: .18rem; background: #fff; color: #16784f !important; font-size: .7rem !important; font-style: normal !important; }
.vcard-network--afrigo { padding: .24rem .35rem; border: 1px solid rgba(255,255,255,.65); border-radius: .28rem; font-size: .67rem !important; font-style: normal !important; }
body.vcard-details-page .vcard-actions {
    padding: 1.65rem .15rem 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.35rem, 2vw, 1rem);
}
body.vcard-details-page .vcard-action {
    min-width: 0;
    padding: 0;
    gap: .55rem;
    border: 0;
    background: transparent;
    color: var(--vcd-ink);
    box-shadow: none;
    font-size: clamp(.62rem, 2.6vw, .78rem);
}
body.vcard-details-page .vcard-action strong { font-weight: 750; line-height: 1.15; text-align: center; }
body.vcard-details-page .vcard-action__icon {
    width: clamp(3.2rem, 13vw, 4.15rem);
    height: clamp(3.2rem, 13vw, 4.15rem);
    border: 1.5px solid var(--vcd-line);
    border-radius: 1.12rem;
    background: #fff;
    color: var(--vcd-ink);
    box-shadow: 0 4px 12px rgba(28, 43, 37, .035);
}
body.vcard-details-page .vcard-action__icon svg { width: 1.65rem; height: 1.65rem; stroke-width: 2; }
body.vcard-details-page .vcard-action--danger .vcard-action__icon { color: #ed4343; }
.vcard-transactions-panel {
    min-height: 36rem;
    margin-top: 1.75rem;
    padding: 1.8rem 1.55rem;
}
.vcard-transactions-panel > h2 {
    margin: 0 0 1.2rem;
    color: var(--vcd-ink);
    font-size: 1.23rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.vcard-history-skeleton { display: grid; gap: 1rem; }
.vcard-history-skeleton span {
    height: 4.35rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, #f0f3f6 25%, #e6ebef 42%, #f0f3f6 64%);
    background-size: 300% 100%;
    animation: vcdShimmer 1.25s ease infinite;
}
@keyframes vcdShimmer { to { background-position: -150% 0; } }
.vcard-empty-state {
    min-height: 27rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.05rem;
    color: var(--brand);
    text-align: center;
}
.vcard-empty-state__icon {
    width: 7rem;
    height: 5.5rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.vcard-empty-state__icon > svg:first-child { width: 5.9rem; height: 5.9rem; stroke-width: 1.55; }
.vcard-empty-state__search {
    width: 2.8rem !important;
    height: 2.8rem !important;
    position: absolute;
    right: .05rem;
    bottom: -.1rem;
    padding: .3rem;
    border-radius: 999px;
    background: #fff;
}
.vcard-empty-state p { margin: 0; color: var(--vcd-muted); font-size: .78rem; }
body.vcard-details-page .vcard-tx-item { padding: 1rem .1rem; border-bottom: 1px solid #edf0f3; }
.vcard-history-error {
    min-height: 23rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: #d74444;
    text-align: center;
}
.vcard-history-error svg { width: 2.3rem; height: 2.3rem; }
.vcard-history-error p { margin: 0; max-width: 17rem; color: var(--vcd-muted); font-size: .8rem; }
.vcard-history-error button {
    padding: .65rem 1.1rem;
    border: 0;
    border-radius: .8rem;
    background: var(--brand);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
}
.vcard-info-modal {
    position: fixed;
    z-index: 10040;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.vcard-info-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(6, 27, 20, .58); backdrop-filter: blur(3px); }
.vcard-info-modal__sheet {
    width: min(100%, 31rem);
    max-height: 86vh;
    padding: 1.75rem 1.4rem calc(1.35rem + env(safe-area-inset-bottom));
    position: relative;
    overflow-y: auto;
    border-radius: 1.65rem 1.65rem 0 0;
    background: #fff;
    box-shadow: 0 -22px 50px rgba(0,0,0,.2);
}
.vcard-info-modal__close {
    width: 2.45rem;
    height: 2.45rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f1f4f6;
    color: #526071;
}
.vcard-info-modal__close svg { width: 1.1rem; height: 1.1rem; }
.vcard-info-modal__icon {
    width: 3.65rem;
    height: 3.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    background: #e8f7f0;
    color: var(--brand);
}
.vcard-info-modal__icon--danger { background: #fff0f0; color: #e33e3e; }
.vcard-info-modal__icon svg { width: 1.75rem; height: 1.75rem; }
.vcard-info-modal h2 { margin: 1rem 0 .3rem; color: var(--vcd-ink); font-size: 1.25rem; font-weight: 850; }
.vcard-info-modal p { margin: 0; color: var(--vcd-muted); font-size: .84rem; line-height: 1.6; }
.vcard-info-modal dl { margin: 1.2rem 0; border-top: 1px solid #e8edf1; }
.vcard-info-modal dl div { padding: .8rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e8edf1; }
.vcard-info-modal dt { color: var(--vcd-muted); font-size: .78rem; }
.vcard-info-modal dd { margin: 0; color: var(--vcd-ink); font-size: .8rem; font-weight: 800; text-align: right; }
.vcard-info-modal__notice {
    margin: 1rem 0;
    padding: .85rem;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    border-radius: .9rem;
    background: #eef8f4;
    color: #436158;
    font-size: .76rem;
    line-height: 1.45;
}
.vcard-info-modal__notice svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; color: var(--brand); }
.vcard-info-modal__primary {
    width: 100%;
    min-height: 3.1rem;
    margin-top: 1.05rem;
    border: 0;
    border-radius: 1rem;
    background: var(--brand);
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
}
@media (min-width: 640px) {
    .vcard-details-content { padding: 2.15rem 2rem 0; }
    .vcard-details-panel { padding: 1.85rem; }
    .vcard-info-modal { align-items: center; padding: 1.5rem; }
    .vcard-info-modal__sheet { border-radius: 1.65rem; }
}
@media (max-width: 390px) {
    .vcard-details-header { min-height: 6.5rem; padding-left: 1rem; padding-right: 1rem; }
    .vcard-details-header__back { width: 2.85rem; height: 2.85rem; border-width: 2px; }
    .vcard-details-content { padding: 1.25rem .75rem 0; }
    .vcard-details-panel { padding: .8rem .72rem 1.15rem; border-radius: 1.5rem; }
    body.vcard-details-page .vcard-display { padding: 1rem; border-radius: 1.15rem; }
    body.vcard-details-page .vcard-chip { width: 2.45rem; height: 1.82rem; margin-top: .7rem; }
    body.vcard-details-page .vcard-actions { padding-top: 1.1rem; }
    .vcard-transactions-panel { min-height: 28rem; margin-top: 1rem; padding: 1.25rem 1rem; border-radius: 1.5rem; }
    .vcard-empty-state { min-height: 21rem; }
}
@media (prefers-reduced-motion: reduce) {
    .vcard-history-skeleton span { animation: none; }
}

/* ================================================================
   Universal authenticated mobile shell + Scan to Pay
   ================================================================ */
[x-cloak] { display: none !important; }

body.has-mobile-nav {
    --mobile-app-width: 30rem;
    background: #eef1f0;
}
body.has-mobile-nav .app-shell {
    width: min(100%, var(--mobile-app-width));
    max-width: var(--mobile-app-width) !important;
    min-height: 100dvh;
    padding-bottom: calc(7.35rem + env(safe-area-inset-bottom));
    background: #f8faf9;
    box-shadow: 0 0 46px rgba(19, 49, 39, .09);
}
body.has-mobile-nav .bottom-nav {
    width: min(100%, var(--mobile-app-width));
    max-width: var(--mobile-app-width);
    height: calc(5.75rem + env(safe-area-inset-bottom));
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    position: fixed;
    z-index: 999;
    right: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(13, 61, 45, .08);
    border-bottom: 0;
    border-radius: 1.8rem 1.8rem 0 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -13px 34px rgba(26, 53, 45, .1);
    backdrop-filter: blur(18px);
}
body.has-mobile-nav .bottom-nav__inner {
    height: 100%;
    padding: .45rem .25rem .25rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
}
body.has-mobile-nav .bottom-nav__link {
    min-width: 0;
    height: 4.8rem;
    padding: .42rem .12rem .5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    border-radius: 1rem;
    color: #59605f;
    text-decoration: none;
}
body.has-mobile-nav .bottom-nav__link::after { display: none; }
body.has-mobile-nav .bottom-nav__icon { width: 1.55rem; height: 1.55rem; stroke-width: 2; }
body.has-mobile-nav .bottom-nav__label {
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: clamp(.56rem, 2.35vw, .68rem);
    font-weight: 720;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.has-mobile-nav .bottom-nav__link--active { color: var(--brand, #07533a); }
body.has-mobile-nav .bottom-nav__link--active:not(.bottom-nav__link--center)::before {
    content: '';
    width: 1.8rem;
    height: .22rem;
    position: absolute;
    right: 0;
    bottom: .08rem;
    left: 0;
    margin: auto;
    border-radius: 99px;
    background: currentColor;
}
body.has-mobile-nav .bottom-nav__link--center {
    padding-bottom: .5rem;
    overflow: visible;
    color: var(--brand, #07533a);
}
body.has-mobile-nav .bottom-nav__center-circle {
    width: 4.55rem;
    height: 4.55rem;
    margin-bottom: .08rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    border-radius: 999px;
    background: linear-gradient(145deg, #0b6348, #063e2c);
    color: #fff;
    box-shadow: 0 9px 21px rgba(5, 72, 49, .27);
    transform: translateY(-1.75rem);
}
body.has-mobile-nav .bottom-nav__link--center .bottom-nav__label {
    margin-top: -1.7rem;
    color: var(--brand, #07533a);
    overflow: visible;
    font-size: clamp(.54rem, 2.2vw, .64rem);
    text-overflow: clip;
}
body.has-mobile-nav .bottom-nav__center-circle .bottom-nav__icon { width: 2rem; height: 2rem; stroke-width: 1.85; }

.scan-pay-page { background: #eef1f0; }
.scan-pay-page .app-shell { background: #f7f9f8; }
.scan-pay {
    --scan-green: #07533a;
    --scan-green-dark: #043e2b;
    --scan-soft: #eaf5f0;
    --scan-ink: #17231f;
    --scan-muted: #71807a;
    min-height: calc(100dvh - 7.35rem);
    background:
        radial-gradient(circle at 100% 0, rgba(34, 147, 106, .11), transparent 16rem),
        #f7f9f8;
    color: var(--scan-ink);
}
.scan-pay__header {
    min-height: 6.35rem;
    padding: calc(1rem + env(safe-area-inset-top)) 1.05rem .9rem;
    display: grid;
    grid-template-columns: 2.9rem minmax(0, 1fr) 2.9rem;
    align-items: center;
    gap: .7rem;
    background: rgba(247, 249, 248, .92);
    backdrop-filter: blur(16px);
}
.scan-pay__header > div { min-width: 0; text-align: center; }
.scan-pay__header h1 { margin: 0; color: var(--scan-ink); font-size: 1.12rem; font-weight: 850; letter-spacing: -.025em; }
.scan-pay__header p { margin: .18rem 0 0; overflow: hidden; color: var(--scan-muted); font-size: .69rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.scan-pay__back,
.scan-pay__header-action {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce4e0;
    border-radius: .95rem;
    background: #fff;
    color: var(--scan-green);
    box-shadow: 0 5px 14px rgba(22, 54, 43, .06);
}
.scan-pay__back svg,
.scan-pay__header-action svg { width: 1.3rem; height: 1.3rem; }
.scan-pay__permission,
.scan-pay__sheet-page,
.scan-pay__success {
    margin: .4rem .9rem 1rem;
    padding: 1.55rem 1.2rem;
    border: 1px solid #e1e8e5;
    border-radius: 1.75rem;
    background: #fff;
    box-shadow: 0 13px 34px rgba(22, 56, 44, .075);
    text-align: center;
}
.scan-pay__permission { padding-top: 2rem; }
.scan-pay__permission-visual {
    width: 7.5rem;
    height: 7.5rem;
    margin: 0 auto 1.4rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2.2rem;
    background: linear-gradient(145deg, #e3f6ed, #f5faf7);
    color: var(--scan-green);
    transform: rotate(-4deg);
}
.scan-pay__permission-visual span {
    width: 4.6rem;
    height: 4.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(7, 83, 58, .22);
    border-radius: 1.35rem;
    transform: rotate(4deg);
}
.scan-pay__permission-visual span svg { width: 2.8rem; height: 2.8rem; stroke-width: 1.4; }
.scan-pay__permission-visual > svg { width: 1.75rem; height: 1.75rem; position: absolute; right: -.2rem; bottom: .2rem; padding: .35rem; border-radius: 999px; background: var(--scan-green); color: #fff; transform: rotate(4deg); }
.scan-pay__permission h2,
.scan-pay__sheet-page h2,
.scan-pay__success h2 { margin: 0; color: var(--scan-ink); font-size: 1.45rem; font-weight: 850; letter-spacing: -.035em; }
.scan-pay__permission > p,
.scan-pay__sheet-page > p,
.scan-pay__success > p { max-width: 22rem; margin: .6rem auto 1.35rem; color: var(--scan-muted); font-size: .83rem; line-height: 1.58; }
.scan-pay__privacy,
.scan-pay__verified-note {
    margin: 1.1rem 0 1.35rem;
    padding: .85rem;
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    border-radius: 1rem;
    background: var(--scan-soft);
    color: #426157;
    font-size: .72rem;
    line-height: 1.5;
    text-align: left;
}
.scan-pay__privacy svg,
.scan-pay__verified-note svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; color: var(--scan-green); }
.scan-pay__primary,
.scan-pay__secondary,
.scan-pay__text-action {
    width: 100%;
    min-height: 3.35rem;
    padding: .8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border-radius: 1.05rem;
    font-size: .84rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}
.scan-pay__primary { border: 0; background: linear-gradient(135deg, var(--scan-green), var(--scan-green-dark)); color: #fff; box-shadow: 0 10px 21px rgba(7, 83, 58, .2); }
.scan-pay__primary:disabled { opacity: .5; box-shadow: none; }
.scan-pay__primary svg,
.scan-pay__secondary svg,
.scan-pay__text-action svg { width: 1.15rem; height: 1.15rem; }
.scan-pay__secondary { margin-top: .7rem; border: 1px solid #dbe5e1; background: #fff; color: var(--scan-green); }
.scan-pay__text-action { margin-top: .5rem; border: 0; background: transparent; color: var(--scan-green); }
.scan-pay__scanner { min-height: calc(100dvh - 13.75rem); display: flex; flex-direction: column; }
.scan-pay__camera {
    margin: .35rem .9rem 0;
    min-height: min(105vw, 31rem);
    position: relative;
    overflow: hidden;
    border-radius: 1.8rem;
    background: #061a13;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}
.scan-pay__camera video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.scan-pay__camera::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0 34%, rgba(0, 18, 12, .58) 56%); pointer-events: none; }
.scan-pay__frame { width: min(66vw, 18rem); aspect-ratio: 1; position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.scan-pay__frame span { width: 3.2rem; height: 3.2rem; position: absolute; border-color: #fff; border-style: solid; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.scan-pay__frame span:nth-child(1) { top: 0; left: 0; border-width: 4px 0 0 4px; border-radius: 1.15rem 0 0; }
.scan-pay__frame span:nth-child(2) { top: 0; right: 0; border-width: 4px 4px 0 0; border-radius: 0 1.15rem 0 0; }
.scan-pay__frame span:nth-child(3) { right: 0; bottom: 0; border-width: 0 4px 4px 0; border-radius: 0 0 1.15rem; }
.scan-pay__frame span:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-radius: 0 0 0 1.15rem; }
.scan-pay__frame b { height: 2px; position: absolute; right: 1rem; left: 1rem; top: 12%; background: #6ff3b9; box-shadow: 0 0 14px #43e6a0; animation: scanPayLine 2.1s ease-in-out infinite; }
@keyframes scanPayLine { 50% { top: 88%; } }
.scan-pay__camera-state { position: absolute; z-index: 4; inset: 0; display: flex; align-items: center; justify-content: center; gap: .6rem; color: #fff; font-size: .78rem; font-weight: 700; }
.scan-pay__scanner-hint { margin: 1rem 1rem .5rem; color: var(--scan-muted); font-size: .76rem; text-align: center; }
.scan-pay__scanner-actions { margin-top: auto; padding: 1rem 1rem .3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.scan-pay__scanner-actions button,
.scan-pay__myqr-actions button {
    min-height: 4.6rem;
    padding: .65rem .25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    border: 1px solid #dce5e1;
    border-radius: 1.15rem;
    background: #fff;
    color: #52615c;
    font-size: .67rem;
    font-weight: 750;
}
.scan-pay__scanner-actions button.is-active { background: var(--scan-green); color: #fff; }
.scan-pay__scanner-actions svg,
.scan-pay__myqr-actions svg { width: 1.45rem; height: 1.45rem; }
.scan-pay__section-icon,
.scan-pay__verified-mark,
.scan-pay__success-mark {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    background: var(--scan-soft);
    color: var(--scan-green);
}
.scan-pay__section-icon svg,
.scan-pay__verified-mark svg { width: 2rem; height: 2rem; }
.scan-pay__field { margin: 1.25rem 0 1rem; display: block; text-align: left; }
.scan-pay__field > span,
.scan-pay__amount-field > span { margin: 0 0 .5rem .15rem; display: flex; justify-content: space-between; color: #53625d; font-size: .72rem; font-weight: 750; }
.scan-pay__field small { color: #9aa6a2; font-weight: 600; }
.scan-pay__field input,
.scan-pay__field textarea,
.scan-pay__otp input {
    width: 100%;
    min-height: 3.2rem;
    padding: .85rem 1rem;
    border: 1px solid #dce4e0;
    border-radius: 1rem;
    outline: none;
    background: #f8faf9;
    color: var(--scan-ink);
    font-size: .85rem;
    resize: vertical;
}
.scan-pay__field input:focus,
.scan-pay__field textarea:focus,
.scan-pay__otp input:focus { border-color: var(--scan-green); box-shadow: 0 0 0 3px rgba(7, 83, 58, .1); }
.scan-pay__error { margin: .8rem 0 !important; color: #cc3535 !important; font-size: .74rem !important; font-weight: 650; }
.scan-pay__spinner { width: 1rem; height: 1rem; display: inline-block; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; animation: scanPaySpin .7s linear infinite; }
@keyframes scanPaySpin { to { transform: rotate(360deg); } }
.scan-pay__verified-mark { border-radius: 999px; background: #dcf8eb; }
.scan-pay__eyebrow { margin: .2rem auto .4rem !important; color: #148057 !important; font-size: .65rem !important; font-weight: 850; letter-spacing: .12em; }
.scan-pay__recipient-card,
.scan-pay__payee-compact {
    margin: 1.35rem 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    border: 1px solid #e0e8e4;
    border-radius: 1.2rem;
    background: #fbfcfb;
    text-align: left;
}
.scan-pay__avatar { width: 3rem; height: 3rem; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: linear-gradient(145deg, #d7f2e6, #bfe4d4); color: var(--scan-green); font-size: .82rem; font-weight: 850; }
.scan-pay__recipient-card > div:nth-child(2),
.scan-pay__payee-compact > div:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.scan-pay__recipient-card strong,
.scan-pay__payee-compact strong { overflow: hidden; color: var(--scan-ink); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.scan-pay__recipient-card span,
.scan-pay__payee-compact span,
.scan-pay__payee-compact small { margin-top: .12rem; overflow: hidden; color: var(--scan-muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.scan-pay__recipient-card > svg,
.scan-pay__payee-compact > svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; color: #159263; }
.scan-pay__amount-field { margin: 1.2rem 0; display: block; text-align: left; }
.scan-pay__amount-field > div { min-height: 5rem; padding: .5rem 1rem; display: flex; align-items: center; border: 1.5px solid #d8e3df; border-radius: 1.2rem; background: #fff; }
.scan-pay__amount-field b { color: var(--scan-green); font-size: 1.65rem; }
.scan-pay__amount-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--scan-ink); font-size: 2rem; font-weight: 850; letter-spacing: -.04em; }
.scan-pay__quick-amounts { margin: -.25rem 0 1.35rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .42rem; }
.scan-pay__quick-amounts button { min-height: 2.6rem; padding: .4rem .2rem; border: 1px solid #dce5e1; border-radius: .8rem; background: #f8faf9; color: var(--scan-green); font-size: .7rem; font-weight: 800; }
.scan-pay__review-list { margin: 1.25rem 0; border: 1px solid #e1e8e5; border-radius: 1.2rem; background: #fbfcfb; overflow: hidden; text-align: left; }
.scan-pay__review-list > div { min-height: 3.3rem; padding: .75rem .9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e7ecea; }
.scan-pay__review-list > div:last-child { border-bottom: 0; }
.scan-pay__review-list dt { color: var(--scan-muted); font-size: .71rem; }
.scan-pay__review-list dd { max-width: 60%; margin: 0; display: flex; flex-direction: column; color: var(--scan-ink); font-size: .74rem; font-weight: 800; text-align: right; }
.scan-pay__review-list dd small { margin-top: .1rem; color: var(--scan-muted); font-size: .62rem; font-weight: 600; }
.scan-pay__review-total { background: var(--scan-soft); }
.scan-pay__review-total dt,
.scan-pay__review-total dd { color: var(--scan-green); font-size: .87rem; font-weight: 850; }
.scan-pay__otp { margin: 0 0 1rem; padding: .9rem; border-radius: 1rem; background: #fff9eb; text-align: left; }
.scan-pay__otp > div { margin-bottom: .55rem; display: flex; justify-content: space-between; gap: 1rem; color: #755711; font-size: .7rem; }
.scan-pay__otp button { border: 0; background: transparent; color: var(--scan-green); font-weight: 800; }
.scan-pay__otp input { min-height: 2.8rem; background: #fff; letter-spacing: .25em; text-align: center; }
.scan-pay__otp small { margin-top: .4rem; display: block; color: #856d36; font-size: .64rem; text-align: center; }
.scan-pay__success { padding-top: 2.1rem; }
.scan-pay__success-mark { border-radius: 999px; background: var(--scan-green); color: #fff; box-shadow: 0 10px 24px rgba(7,83,58,.22); }
.scan-pay__success-mark svg { width: 2.1rem; height: 2.1rem; stroke-width: 2.8; }
.scan-pay__success > h2 { font-size: 2rem; color: var(--scan-green); }
.scan-pay__success-card { margin: 1.3rem 0; padding: .25rem .95rem; border: 1px solid #e0e8e4; border-radius: 1.2rem; background: #fbfcfb; }
.scan-pay__success-card > div { padding: .8rem 0; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e7ecea; text-align: left; }
.scan-pay__success-card > div:last-child { border-bottom: 0; }
.scan-pay__success-card span { color: var(--scan-muted); font-size: .68rem; }
.scan-pay__success-card strong { max-width: 65%; color: var(--scan-ink); font-size: .7rem; text-align: right; word-break: break-word; }
.scan-pay__qr-card { margin: 1.25rem 0; padding: 1.25rem; display: flex; flex-direction: column; align-items: center; border: 1px solid #dce6e1; border-radius: 1.5rem; background: linear-gradient(160deg, #fff, #f3faf6); }
.scan-pay__qr-output { width: 15.2rem; max-width: 100%; aspect-ratio: 1; margin-bottom: 1rem; padding: .65rem; display: flex; align-items: center; justify-content: center; border: 1px solid #dce5e1; border-radius: 1.2rem; background: #fff; }
.scan-pay__qr-output canvas,
.scan-pay__qr-output img { width: 100% !important; height: auto !important; border-radius: .35rem; }
.scan-pay__qr-card > strong { color: var(--scan-ink); font-size: .9rem; }
.scan-pay__qr-card > span { margin-top: .2rem; color: var(--scan-muted); font-size: .72rem; }
.scan-pay__qr-card > small { margin-top: .45rem; color: #148057; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.scan-pay__myqr-actions { margin-bottom: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.scan-pay__myqr .scan-pay__privacy { margin-bottom: 1rem; }

@media (max-width: 360px) {
    body.has-mobile-nav .bottom-nav__label { font-size: .52rem; }
    body.has-mobile-nav .bottom-nav__center-circle { width: 4.15rem; height: 4.15rem; }
    .scan-pay__permission, .scan-pay__sheet-page, .scan-pay__success { margin-right: .6rem; margin-left: .6rem; padding-right: .9rem; padding-left: .9rem; }
    .scan-pay__quick-amounts { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 481px) {
    body.has-mobile-nav { padding: 1rem 0; }
    body.has-mobile-nav .app-shell { min-height: calc(100dvh - 2rem); border-radius: 1.7rem; overflow: hidden; }
    body.has-mobile-nav .bottom-nav { bottom: 1rem; border-bottom: 1px solid rgba(13, 61, 45, .08); border-radius: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .scan-pay__frame b, .scan-pay__spinner { animation: none; }
}
