/* Anas VTU — Dashboard UI (reference layout, green brand) */

:root {
    --brand: #6C3CF0;
    --brand-dark: #5B32D4;
    --brand-darker: #4C28B8;
    --brand-light: #EDE9FE;
    --brand-soft: #F5F3FF;
    --accent: #22C55E;
    --accent-light: #DCFCE7;
    --surface: #FFFFFF;
    --page-bg: #F5F7FB;
    --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: #1E1B4B;
    --page-bg-home: #F8F9FA;
}

.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: linear-gradient(180deg, #15803D 0%, #16A34A 55%, #22A55B 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: #fff;
    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: center;
    gap: 0.85rem;
}

.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;
}

/* ─── 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: stretch;
    justify-content: space-between;
    max-width: 32rem;
    margin: 0 auto;
    min-height: var(--nav-height);
    padding: 0.35rem 0.25rem 0.25rem;
}

.bottom-nav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.15rem;
    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 {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1.25rem;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

.bottom-nav__icon {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.bottom-nav__link--active .bottom-nav__icon {
    stroke-width: 2.25;
}

.bottom-nav__label {
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.bottom-nav__link--active .bottom-nav__label {
    font-weight: 700;
}

body.home-page .app-shell {
    background: var(--page-bg-home);
}

/* ─── Home Dashboard (Moniepoint-style) ─── */
.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 ─── */
.auth-gradient {
    background: linear-gradient(165deg, #3D2099 0%, #5B32D4 40%, #6C3CF0 75%, #8B5CF6 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: #F5F5F5;
    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 #F0F0F0;
}

.flow-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(0.65rem, var(--safe-top)) 1rem 0.75rem;
    gap: 0.5rem;
}

.flow-header__back,
.flow-header__action {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.flow-header__title {
    flex: 1;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.flow-header__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 2.25rem;
    justify-content: flex-end;
}

.flow-banner {
    background: var(--brand-light);
    color: var(--brand-dark);
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flow-banner i { flex-shrink: 0; }

.flow-body {
    flex: 1;
    padding: 1rem 1.25rem 1.5rem;
}

.flow-label {
    font-size: 0.8rem;
    color: #757575;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.flow-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 1.25rem;
}

.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.25rem;
    font-weight: 700;
    color: #111;
    margin-top: 0.35rem;
}

.flow-input-wrap {
    background: #fff;
    border-radius: 1rem;
    padding: 0.35rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.flow-input {
    width: 100%;
    border: 2px solid var(--brand);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #111;
    background: #fff;
    outline: none;
}

.flow-input::placeholder {
    color: #D1D5DB;
    font-weight: 400;
}

.flow-panel {
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1.25rem;
    margin: 0 -1.25rem -1.5rem;
    flex: 1;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}

.flow-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #F5F5F5;
    border-radius: 0.75rem;
    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: 1rem;
}

.flow-chip {
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--brand-light);
    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;
}

.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;
    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.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.phone-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.phone-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--brand);
    border-radius: 0.85rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
}

.network-select {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-right: 0.5rem;
    border-right: 1px solid #E5E7EB;
    cursor: pointer;
    background: none;
    border-top: none;
    border-bottom: none;
    border-left: none;
}

.network-dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    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;
    background: transparent;
    min-width: 0;
}

.phone-contact-btn {
    width: 3rem;
    border-radius: 0.85rem;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.beneficiary-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 0.85rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-top: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.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.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    background: var(--brand-light);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.plan-tab--active {
    background: var(--brand);
    color: #fff;
}

.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.plan-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s;
    text-align: left;
}

.plan-card:hover,
.plan-card--selected {
    border-color: var(--brand);
}

.plan-card__cashback {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #F3E8FF;
    color: #7C3AED;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
}

.plan-card__size {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.25rem;
}

.plan-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.plan-card__validity {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-top: 0.35rem;
}

.plan-card__desc {
    font-size: 0.7rem;
    color: #757575;
    margin-top: 0.2rem;
    line-height: 1.3;
}

/* 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);
}

.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; border-bottom: 1px solid #E5E7EB; background: #fff; }
.vcard-tab { flex: 1; padding: 0.85rem; text-align: center; font-weight: 600; font-size: 0.875rem; color: #9CA3AF; border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; }
.vcard-tab--active { color: var(--brand); border-bottom-color: var(--brand); }
.vcard-display { margin: 1.25rem; background: linear-gradient(135deg, #6C3CF0 0%, #4C28B8 50%, #3D2099 100%); border-radius: 1.25rem; padding: 1.5rem; color: #fff; min-height: 11rem; position: relative; overflow: hidden; box-shadow: 0 12px 40px rgba(108,60,240,0.35); }
.vcard-display::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.vcard-badge { display: inline-block; background: #fff; color: var(--brand); font-size: 0.6rem; font-weight: 800; padding: 0.2rem 0.5rem; border-radius: 9999px; letter-spacing: 0.05em; }
.vcard-number { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.15em; margin-top: 2rem; }
.vcard-name { font-size: 0.8rem; opacity: 0.9; margin-top: 0.5rem; text-transform: uppercase; }
.vcard-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; padding: 0 1.25rem 1.25rem; }
.vcard-action { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; background: #fff; border: none; border-radius: 1rem; padding: 0.85rem 0.5rem; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.05); font-size: 0.68rem; font-weight: 600; color: #374151; }
.vcard-action__icon { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }

/* 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; }

