:root {
    --es-primary: #022A7B;
    --es-primary-dark: #011D56;
    --es-primary-soft: #EEF3FF;
    --es-green: #29BA22;
    --es-green-soft: #EAF8E9;
    --es-text: #101828;
    --es-muted: #667085;
    --es-border: #E5EAF2;
    --es-bg: #F6F8FC;
    --es-white: #FFFFFF;
    --es-danger: #D92D20;
    --es-radius: 18px;
    --es-shadow: 0 8px 30px rgba(16, 24, 40, .06);
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--es-bg);
    color: var(--es-text);
}

body.exact-app {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.exact-app a {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.app-sidebar {
    width: 258px;
    flex: 0 0 258px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1100;
    background: #fff;
    border-right: 1px solid var(--es-border);
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-top {
    height: 76px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    border-bottom: 1px solid #F0F2F6;
}

.brand img {
    width: 132px;
    height: auto;
    display: block;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--es-muted);
    font-size: 20px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 18px 14px 10px;
    padding: 12px;
    border-radius: 14px;
    background: var(--es-primary-soft);
}

.user-avatar, .header-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--es-primary);
    color: #fff;
    font-weight: 700;
}

.user-avatar {
    width: 38px;
    height: 38px;
}

.user-copy {
    min-width: 0;
}

.user-copy strong,
.user-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-copy strong {
    font-size: 13px;
}

.user-copy span {
    color: var(--es-muted);
    font-size: 11px;
    margin-top: 2px;
}

.side-nav {
    padding: 7px 12px 30px;
}

.side-label {
    padding: 18px 12px 7px;
    color: #98A2B3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.side-link {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    margin: 2px 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}

.side-link:hover {
    color: var(--es-primary);
    background: #F5F7FB;
}

.side-link.is-active {
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.side-icon {
    width: 23px;
    text-align: center;
    font-size: 15px;
}

.side-toggle .side-chevron {
    margin-left: auto;
    font-size: 10px;
    transition: transform .18s ease;
}

.side-toggle[aria-expanded="true"] .side-chevron {
    transform: rotate(180deg);
}

.side-submenu {
    display: none;
    padding: 2px 0 4px 43px;
}

.side-submenu.open {
    display: block;
}

.side-submenu a {
    display: block;
    padding: 8px 7px;
    color: #667085;
    font-size: 12px;
}

.side-submenu a:hover {
    color: var(--es-primary);
}

.side-submenu i {
    width: 18px;
    margin-right: 5px;
}

.side-logout {
    color: var(--es-danger);
    margin-top: 8px;
}

.app-main {
    width: calc(100% - 258px);
    margin-left: 258px;
    min-width: 0;
}

.app-header {
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    padding: 0 30px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--es-border);
    backdrop-filter: blur(12px);
}

.header-spacer {
    flex: 1;
}

.mobile-menu,
.mobile-brand {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.header-action {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #475467;
    border-radius: 10px;
}

.header-action:hover {
    background: var(--es-primary-soft);
    color: var(--es-primary);
}

.header-divider {
    height: 27px;
    width: 1px;
    background: var(--es-border);
}

.account-trigger {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 2px;
    cursor: pointer;
    color: var(--es-text);
}

.header-avatar {
    width: 35px;
    height: 35px;
    font-size: 13px;
}

.account-name {
    font-weight: 600;
    font-size: 13px;
}

.account-trigger > i {
    color: #98A2B3;
    font-size: 10px;
}

.account-menu-wrap {
    position: relative;
}

.account-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 220px;
    padding: 8px;
    border: 1px solid var(--es-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(16,24,40,.12);
}

.account-menu.open {
    display: block;
}

.account-menu-user {
    padding: 9px 10px 12px;
    border-bottom: 1px solid var(--es-border);
    margin-bottom: 5px;
}

.account-menu-user strong,
.account-menu-user span {
    display: block;
}

.account-menu-user strong {
    font-size: 13px;
}

.account-menu-user span {
    color: var(--es-muted);
    font-size: 11px;
    margin-top: 3px;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #475467;
    border-radius: 9px;
    font-size: 13px;
}

.account-menu a:hover {
    background: #F5F7FB;
}

.account-menu a.danger {
    color: var(--es-danger);
}

.app-content {
    min-height: calc(100vh - 76px);
    padding: 30px;
}

.dashboard-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.welcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--es-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.welcome-row h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 750;
}

.welcome-copy {
    margin: 7px 0 0;
    color: var(--es-muted);
    font-size: 13px;
}

.primary-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 0;
    border-radius: 11px;
    background: var(--es-primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(2,42,123,.18);
    transition: transform .18s ease, box-shadow .18s ease;
}

.primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(2,42,123,.22);
}

.primary-action.small {
    min-height: 39px;
    padding: 0 13px;
    font-size: 12px;
}

.balance-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.balance-card,
.stat-card,
.info-card,
.verification-card,
.funding-section,
.services-section,
.admin-section {
    background: #fff;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    box-shadow: var(--es-shadow);
}

.balance-card {
    min-height: 154px;
    padding: 22px;
}

.balance-main {
    color: #fff;
    background: linear-gradient(135deg, #022A7B 0%, #0646B8 100%);
    border: 0;
    box-shadow: 0 12px 30px rgba(2,42,123,.20);
}

.balance-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.balance-label {
    display: block;
    opacity: .76;
    font-size: 12px;
    margin-bottom: 5px;
}

.balance-value {
    display: block;
    font-size: 29px;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.balance-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,.13);
    font-size: 17px;
}

.balance-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.16);
    font-size: 11px;
}

.balance-footer span {
    opacity: .78;
}

.balance-footer a {
    color: #fff;
    font-weight: 700;
}

.stat-card {
    min-height: 154px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.stat-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.stat-icon.blue {
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.stat-icon.green {
    color: #16801A;
    background: var(--es-green-soft);
}

.stat-card span {
    display: block;
    color: var(--es-muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.stat-card strong {
    display: block;
    font-size: 23px;
    line-height: 1.2;
}

.stat-card a {
    display: inline-block;
    margin-top: 13px;
    color: var(--es-primary);
    font-size: 11px;
    font-weight: 700;
}

.funding-section,
.services-section,
.admin-section {
    padding: 23px;
    margin-bottom: 24px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 750;
}

.section-heading p:not(.eyebrow) {
    max-width: 650px;
    margin: 5px 0 0;
    color: var(--es-muted);
    font-size: 12px;
    line-height: 1.55;
}

.section-heading.compact {
    align-items: center;
}

.text-action {
    color: var(--es-primary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.bank-card {
    min-height: 188px;
    position: relative;
    overflow: hidden;
    padding: 19px;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(16,24,40,.12);
}

.bank-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -65px;
    bottom: -80px;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
}

.bank-card-blue {
    background: linear-gradient(135deg, #022A7B, #1768C8);
}

.bank-card-green {
    background: linear-gradient(135deg, #006C41, #008751);
}

.bank-card-dark {
    background: linear-gradient(135deg, #182333, #34485F);
}

.bank-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.bank-provider {
    font-size: 13px;
    font-weight: 750;
}

.bank-chip {
    width: 35px;
    height: 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, #F8E18A, #B98B20);
}

.bank-number-label {
    position: relative;
    z-index: 1;
    margin-top: 27px;
    opacity: .68;
    font-size: 9px;
    letter-spacing: .08em;
}

.bank-number-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
}

.bank-number-row strong {
    font-size: 20px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.copy-account {
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #fff;
    border-radius: 7px;
    padding: 6px 8px;
    font-size: 10px;
    cursor: pointer;
}

.copy-account:hover {
    background: rgba(255,255,255,.2);
}

.bank-details {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.bank-details span {
    min-width: 0;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bank-details small {
    display: block;
    margin-bottom: 2px;
    opacity: .55;
    font-size: 8px;
    text-transform: uppercase;
}

.funding-empty,
.verification-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px dashed #C9D2E2;
    border-radius: 14px;
    background: #FAFBFD;
}

.empty-icon,
.verification-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.funding-empty strong,
.verification-card h2 {
    display: block;
    margin: 0;
    font-size: 14px;
}

.funding-empty p,
.verification-card p {
    margin: 3px 0 0;
    color: var(--es-muted);
    font-size: 11px;
}

.funding-empty .primary-action,
.verification-card .primary-action {
    margin-left: auto;
}

.verification-card {
    margin-bottom: 24px;
    border-style: solid;
}

.verification-card h2 {
    font-size: 16px;
    margin: 2px 0;
}

.service-hint {
    color: var(--es-muted);
    font-size: 11px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.service-card {
    min-height: 118px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--es-border);
    border-radius: 14px;
    background: #fff;
    color: var(--es-text);
    transition: .18s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: #C8D5EE;
    box-shadow: 0 9px 24px rgba(16,24,40,.07);
}

.service-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 14px;
}

.service-icon.data { background: #EEF3FF; color: #1E5AD7; }
.service-icon.airtime { background: #FFF0F0; color: #D92D20; }
.service-icon.electricity { background: #FFF8E5; color: #A46B00; }
.service-icon.cable { background: #F3EEFF; color: #6941C6; }
.service-icon.exam { background: #ECFDF3; color: #16801A; }
.service-icon.recharge { background: #FFF3EA; color: #C35B00; }
.service-icon.cash { background: #EAF8E9; color: #16801A; }
.service-icon.bucket { background: #EEF4FF; color: #175CD3; }
.service-icon.cac { background: #F2EEFF; color: #6941C6; }

.service-card strong {
    font-size: 13px;
}

.service-card small {
    margin-top: 3px;
    color: var(--es-muted);
    font-size: 10px;
}

.service-arrow {
    position: absolute;
    right: 15px;
    bottom: 16px;
    color: #98A2B3;
    font-size: 10px;
}

.lower-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.info-card {
    padding: 20px;
}

.info-card-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.info-card h3 {
    margin: 0;
    font-size: 16px;
}

.info-card > p {
    margin: 14px 0;
    color: var(--es-muted);
    font-size: 12px;
    line-height: 1.55;
}

.info-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.info-icon.referral {
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.info-icon.support {
    color: #16801A;
    background: var(--es-green-soft);
}

.referral-box {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 5px 4px 11px;
    border: 1px solid var(--es-border);
    border-radius: 10px;
    background: #F9FAFB;
}

.referral-box span {
    flex: 1;
    min-width: 0;
    color: #475467;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.referral-box button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 0;
    border-radius: 8px;
    color: var(--es-primary);
    background: var(--es-primary-soft);
    cursor: pointer;
}

.copy-feedback {
    display: block;
    min-height: 15px;
    margin-top: 5px;
    color: var(--es-green);
    font-size: 10px;
    font-weight: 600;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--es-primary);
    font-size: 12px;
    font-weight: 700;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.admin-stat {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px;
    border: 1px solid var(--es-border);
    border-radius: 13px;
}

.admin-stat > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 10px;
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.admin-stat small,
.admin-stat strong {
    display: block;
}

.admin-stat small {
    color: var(--es-muted);
    font-size: 10px;
}

.admin-stat strong {
    font-size: 15px;
}

.admin-stat a {
    margin-left: auto;
    color: var(--es-primary);
    font-size: 10px;
    font-weight: 700;
}

.admin-links {
    display: flex;
    gap: 9px;
    margin-top: 12px;
}

.admin-links a {
    padding: 9px 12px;
    border-radius: 9px;
    background: #F5F7FB;
    color: #475467;
    font-size: 11px;
    font-weight: 600;
}

.mobile-bottom-nav,
.sidebar-overlay {
    display: none;
}

@media (max-width: 1100px) {
    .balance-grid {
        grid-template-columns: 1fr 1fr;
    }

    .balance-main {
        grid-column: 1 / -1;
    }

    .bank-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .app-sidebar {
        width: 282px;
        max-width: 86vw;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 15px 0 40px rgba(16,24,40,.15);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(16,24,40,.42);
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .app-main {
        width: 100%;
        margin-left: 0;
    }

    .app-header {
        height: 64px;
        padding: 0 15px;
    }

    .mobile-menu {
        width: 39px;
        height: 39px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 10px;
        background: var(--es-primary-soft);
        color: var(--es-primary);
    }

    .mobile-brand {
        display: block;
        margin-left: 10px;
    }

    .mobile-brand img {
        width: 105px;
        display: block;
    }

    .account-name,
    .account-trigger > i,
    .header-divider {
        display: none;
    }

    .header-action {
        display: none;
    }

    .app-content {
        padding: 19px 14px 90px;
    }

    .welcome-row {
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .welcome-row h1 {
        font-size: 21px;
    }

    .welcome-copy {
        font-size: 12px;
        line-height: 1.45;
    }

    .welcome-row .primary-action {
        display: none;
    }

    .balance-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .balance-main,
    .stat-card {
        min-height: 0;
    }

    .balance-card {
        padding: 18px;
    }

    .balance-value {
        font-size: 27px;
    }

    .stat-card {
        padding: 15px;
    }

    .funding-section,
    .services-section,
    .admin-section {
        padding: 16px;
        margin-bottom: 18px;
        border-radius: 15px;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        font-size: 17px;
    }

    .section-heading p:not(.eyebrow) {
        font-size: 11px;
    }

    .text-action {
        display: inline-block;
        margin-top: 10px;
    }

    .bank-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .bank-card {
        min-height: 175px;
    }

    .funding-empty,
    .verification-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .funding-empty .primary-action,
    .verification-card .primary-action {
        width: 100%;
        margin-left: 0;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .service-card {
        min-height: 112px;
        padding: 13px;
    }

    .service-card strong {
        font-size: 12px;
    }

    .service-card small {
        font-size: 9px;
    }

    .lower-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: max(9px, env(safe-area-inset-bottom));
        z-index: 1000;
        height: 63px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
        padding: 5px;
        border: 1px solid var(--es-border);
        border-radius: 18px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 10px 35px rgba(16,24,40,.15);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav a {
        height: 52px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: #667085;
        font-size: 9px;
        font-weight: 600;
    }

    .mobile-bottom-nav a i {
        font-size: 16px;
    }

    .mobile-bottom-nav a.active {
        color: var(--es-primary);
    }

    .mobile-bottom-nav .mobile-fund {
        position: relative;
        color: var(--es-primary);
        margin-top: -20px;
    }

    .mobile-fund span {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        background: var(--es-primary);
        border: 5px solid var(--es-bg);
        box-shadow: 0 7px 18px rgba(2,42,123,.25);
        font-size: 17px;
    }

    .mobile-fund b {
        position: absolute;
        bottom: -1px;
        font-size: 9px;
        font-weight: 700;
    }
}

@media (max-width: 390px) {
    .welcome-row h1 {
        font-size: 19px;
    }

    .balance-value {
        font-size: 24px;
    }

    .bank-number-row strong {
        font-size: 17px;
    }

    .service-card {
        min-height: 105px;
    }

    .service-card small {
        max-width: 100px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   ExactSub header notifications, navigation polish and branded messages
   -------------------------------------------------------------------------- */
.notification-wrap {
    position: relative;
}

.notification-trigger {
    position: relative;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #FF9F1C;
}

.notification-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(360px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid var(--es-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(16,24,40,.14);
}

.notification-menu.open {
    display: block;
    animation: exactsub-menu-in .16s ease;
}

.notification-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--es-border);
}

.notification-menu-head strong {
    font-size: 13px;
}

.notification-menu-head span {
    color: var(--es-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.notification-item {
    display: flex;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid #F1F3F7;
}

.notification-item-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
}

.notification-item-icon.blue {
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.notification-item-icon.green {
    color: #16801A;
    background: var(--es-green-soft);
}

.notification-item strong {
    display: block;
    font-size: 11px;
}

.notification-item p {
    margin: 3px 0 0;
    color: var(--es-muted);
    font-size: 11px;
    line-height: 1.45;
}

.notification-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 100px;
    color: var(--es-muted);
    font-size: 11px;
}

.nav-access-badge {
    margin-left: auto;
    padding: 2px 5px;
    border-radius: 5px;
    color: var(--es-primary);
    background: var(--es-primary-soft);
    font-size: 8px;
    font-weight: 800;
}

.exactsub-footer {
    margin-left: 258px;
    padding: 16px 30px 28px;
    border-top: 1px solid var(--es-border);
    color: #98A2B3;
    background: var(--es-bg);
    font-size: 10px;
    text-align: center;
}

.footer-separator {
    padding: 0 5px;
}

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1005;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 12px 28px rgba(16,24,40,.20);
    transition: transform .18s ease, box-shadow .18s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(16,24,40,.24);
}

.floating-whatsapp svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.whatsapp-tooltip {
    position: absolute;
    right: 66px;
    padding: 7px 9px;
    border-radius: 7px;
    color: #fff;
    background: #101828;
    white-space: nowrap;
    font-size: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(4px);
    transition: .16s ease;
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.exactsub-alert-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(16,24,40,.52);
    backdrop-filter: blur(6px);
    animation: exactsub-fade-in .18s ease;
}

.exactsub-alert {
    width: min(440px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(16,24,40,.25);
    animation: exactsub-alert-in .22s ease;
}

.exactsub-alert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--es-primary), #0B4CCB);
}

.exactsub-alert-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
}

.exactsub-alert-brand img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
}

.exactsub-alert-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.12);
    cursor: pointer;
}

.exactsub-alert-content {
    padding: 26px 24px 20px;
    text-align: center;
}

.exactsub-alert-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 13px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--es-primary);
    background: var(--es-primary-soft);
    font-size: 18px;
}

.exactsub-alert h2 {
    margin: 0;
    color: var(--es-text);
    font-size: 18px;
    font-weight: 800;
}

.exactsub-alert-message {
    margin: 9px auto 0;
    max-width: 350px;
    color: var(--es-muted);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.exactsub-alert-actions {
    padding: 0 24px 22px;
}

.exactsub-alert-ok {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--es-primary);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(2,42,123,.18);
}

@keyframes exactsub-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes exactsub-alert-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes exactsub-menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
    .exactsub-footer {
        margin-left: 0;
        padding: 14px 14px 100px;
    }

    .floating-whatsapp {
        right: 16px;
        bottom: 84px;
        width: 52px;
        height: 52px;
    }

    .floating-whatsapp svg {
        width: 27px;
        height: 27px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .notification-menu {
        position: fixed;
        top: 70px;
        right: 14px;
        left: 14px;
        width: auto;
    }

    .exactsub-alert-backdrop {
        align-items: end;
        padding: 0;
    }

    .exactsub-alert {
        width: 100%;
        border-radius: 22px 22px 0 0;
        animation-name: exactsub-sheet-in;
    }

    .exactsub-alert-content {
        padding-top: 23px;
    }
}

@keyframes exactsub-sheet-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   ExactSub v5 refinements
   ========================================================= */
.balance-grid.balance-single {
    display: block;
    margin-bottom: 24px;
}

.balance-grid.balance-single .balance-card {
    width: 100%;
}

.balance-secondary {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.15);
}

.balance-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.balance-mini span {
    color: rgba(255,255,255,.78);
    font-size: 11px;
}

.balance-mini span i {
    margin-right: 5px;
    color: #B9F5B5;
}

.balance-mini strong {
    color: #fff;
    font-size: 16px;
}

.balance-mini-link {
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.transaction-summary-card {
    margin-bottom: 24px;
}

.transaction-summary-card .stat-card {
    min-height: 110px;
}

.services-section {
    scroll-margin-top: 96px;
}

.kyc-nav-link {
    border: 1px solid #DCE7FA;
    background: #F7FAFF;
}

.kyc-nav-link .side-icon {
    color: var(--es-primary);
}

.kyc-modal-open {
    overflow: hidden;
}

#exactsub-kyc-prompt {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(16,24,40,.54);
    backdrop-filter: blur(7px);
    animation: exactsub-fade-in .18s ease;
}

#exactsub-kyc-prompt[hidden] {
    display: none;
}

.kyc-prompt-content {
    width: min(480px, 100%);
    padding: 30px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(16,24,40,.25);
    text-align: center;
    animation: exactsub-alert-in .22s ease;
}

.kyc-prompt-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: var(--es-primary);
    background: var(--es-primary-soft);
    font-size: 22px;
}

.kyc-prompt-content .eyebrow {
    margin-bottom: 7px;
}

.kyc-prompt-content h2 {
    margin: 0;
    color: var(--es-text);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.kyc-prompt-content > p:not(.eyebrow) {
    margin: 11px auto 0;
    max-width: 405px;
    color: var(--es-muted);
    font-size: 13px;
    line-height: 1.65;
}

.kyc-prompt-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    margin-top: 23px;
}

.kyc-skip {
    min-height: 44px;
    border: 1px solid var(--es-border);
    border-radius: 11px;
    background: #fff;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.kyc-skip:hover {
    background: #F8FAFC;
}

@media (max-width: 800px) {
    .balance-secondary {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .balance-mini-link {
        justify-self: start;
    }

    .transaction-summary-card {
        margin-bottom: 18px;
    }

    .kyc-prompt-content {
        width: 100%;
        padding: 24px 19px 19px;
        border-radius: 22px;
    }

    .kyc-prompt-content h2 {
        font-size: 19px;
    }

    .kyc-prompt-content > p:not(.eyebrow) {
        font-size: 12px;
    }

    .kyc-prompt-actions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ExactSub v6 — requested mobile balance-card height refinement
   ========================================================= */
@media (max-width: 800px) {
    .balance-card.balance-main {
        min-height: 0;
        padding: 12px 14px;
    }

    .balance-value {
        font-size: 25px;
    }

    .balance-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .balance-secondary {
        margin-top: 10px;
        padding: 7px 0;
    }

    .balance-footer {
        margin-top: 8px;
        padding-top: 8px;
    }
}
