

/*html, body {*/
    /*    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    /*font-family: 'Museo Sans Cyrl';
}*/
/* ═══════════════════════════════════════════════════════════════════
   UNIFIED DESIGN TOKENS
   Single source of truth for colour, type, spacing, radius and icon
   sizing across Investments and Pension. Page-scoped .razor.css files
   should reference these vars rather than hardcoding values — scoped
   CSS is a private namespace, so hardcoded copies silently drift.
   ═══════════════════════════════════════════════════════════════════ */
:root {
    /* ── Typeface ──────────────────────────────────────────────────
       THE font switch for the whole app. Change this one line and
       every surface follows — nothing else hardcodes a family.

       To switch back to the Zamara Typekit face, set the value below to:
           "Museo Sans Cyrl 300", sans-serif
           "Montserrat", sans-serif
       Both faces are loaded in Components/App.razor, so it is a one-line
       change either way.

       Note: plain "Museo Sans Cyrl" (without the 300) is NOT a real
       family — it silently falls back to the system sans-serif, so
       don't reintroduce it.
       -------------------------------------------------------------- */
/*    --z-font-family: "Museo Sans Cyrl 300", sans-serif;*/
    --z-font-family: "Montserrat", sans-serif;
    --z-font-mono: 'Courier New', monospace;
    /* ── Brand ─────────────────────────────────────────────────── */
    --z-green: #39B54A;
    --z-green-dark: #2E9C3D;
    --z-green-soft: #EEF7F0;
    --z-navy: #2B3674;
    --z-navy-deep: #292B4D;
    --z-gold: #D5B12F;
    /* ── Text ──────────────────────────────────────────────────────
       Body copy is navy, not grey. Secondary text is a navy TINT rather
       than a neutral grey, so it stays on-brand while still receding —
       that preserves hierarchy instead of flattening everything to one
       colour. --z-muted is ~4.8:1 on white, so it clears WCAG AA.
       -------------------------------------------------------------- */
    --z-ink: var(--z-navy);
    --z-muted: #6B76A8;
    --z-line: #E0E0E0;
    --z-surface: #FFFFFF;
    --z-surface-alt: #F4F7FE;
    /* ── Status ────────────────────────────────────────────────── */
    --z-danger: #D32F2F;
    --z-warning: #D5B12F;
    --z-info: #3498DB;
    /* ── Type scale ────────────────────────────────────────────────
       Fluid between a 1024px and a 1440px viewport, then pinned.
       Small laptops — and, just as often, big laptops running Windows
       display scaling at 125/150% — report a narrow CSS viewport, which
       is why fixed px type made cards read as oversized there.
       Every page in Investments and Pension resolves type through these,
       so changing them here rescales both sections at once.
       -------------------------------------------------------------- */
    --z-text-xs: clamp(9.6px, 0.34vw + 6.2px, 11px);
    --z-text-sm: clamp(10.5px, 0.36vw + 6.8px, 12px);
    --z-text-base: clamp(12.25px, 0.42vw + 7.95px, 14px);
    --z-text-md: clamp(14px, 0.48vw + 9.08px, 16px);
    --z-text-lg: clamp(15.75px, 0.54vw + 10.21px, 18px);
    --z-text-xl: clamp(17.5px, 0.6vw + 11.35px, 20px);
    --z-text-2xl: clamp(21px, 0.72vw + 13.62px, 24px);
    --z-text-3xl: clamp(26.25px, 0.9vw + 17.03px, 30px);
    --z-display: clamp(26px, 4vw, 40px);
    --z-display-sm: clamp(22px, 3.2vw, 30px);
    /* ── Weights ───────────────────────────────────────────────── */
    --z-weight-light: 300;
    --z-weight-normal: 400;
    --z-weight-medium: 500;
    --z-weight-semibold: 600;
    --z-weight-bold: 700;
    /* ── Radius ────────────────────────────────────────────────── */
    --z-radius-sm: 8px;
    --z-radius: 12px;
    --z-radius-lg: 16px;
    --z-radius-xl: 24px;
    --z-radius-pill: 50px;
    /* ── Spacing ───────────────────────────────────────────────────
       Also fluid across the same range. Padding compresses slightly
       harder than type — that gap is most of what makes a card feel
       bloated on a narrow viewport.
       -------------------------------------------------------------- */
    --z-space-1: 4px;
    --z-space-2: clamp(6px, 0.48vw + 1.08px, 8px);
    --z-space-3: clamp(9px, 0.72vw + 1.62px, 12px);
    --z-space-4: clamp(12px, 0.96vw + 2.16px, 16px);
    --z-space-5: clamp(18px, 1.44vw + 3.25px, 24px);
    --z-space-6: clamp(24px, 1.92vw + 4.33px, 32px);
    --z-space-7: clamp(28px, 2.88vw - 1.49px, 40px);
    --z-space-8: clamp(32px, 3.85vw - 7.42px, 48px);
    /* ── Layout ────────────────────────────────────────────────── */
    --z-content-max: 1440px;
    /* ── Icons ─────────────────────────────────────────────────── */
    --z-icon-xs: 12px;
    --z-icon-sm: 16px;
    --z-icon: 24px;
    --z-icon-lg: 40px;
    --z-icon-xl: 64px;
    --z-icon-2xl: 80px;
    /* ── Elevation ─────────────────────────────────────────────── */
    --z-shadow-sm: 0 1px 3px rgba(41, 43, 77, 0.08);
    --z-shadow: 0 4px 12px rgba(41, 43, 77, 0.10);
    --z-shadow-lg: 0 8px 24px rgba(41, 43, 77, 0.14);
    /* ── Legacy aliases (kept so existing rules keep working) ──── */
    --primary-color: var(--z-green);
    --secondary-color: var(--z-navy);
    --gray-background: #f0f0f0;
    --error-color: #FF0000;
    --warning-color: #ffcc00;
    /*    These are for the onboarding form*/
    --zamara-navy: #292B4E;
    --zamara-green: var(--z-green);
    --zamara-light: #f4f6f9;
    --zamara-white: #ffffff;
    --zamara-border: #d1d5db;
    --zamara-radius: 10px;
    /*=========================*/
    --secondary-primary-white: rgba(255, 255, 255, 1);
    --zamara-body-1-font-family: var(--z-font-family);
    --zamara-body-1-font-weight: 400;
    --zamara-body-1-font-size: 16px;
    --zamara-body-1-letter-spacing: 0px;
    --zamara-body-1-line-height: normal;
    --zamara-body-1-font-style: normal;
    --zamara-title-1-font-family: var(--z-font-family);
    --zamara-title-1-font-weight: 400;
    --zamara-title-1-font-size: 32px;
    --zamara-title-1-letter-spacing: -0.64px;
    --zamara-title-1-line-height: 50.3125px;
    --zamara-title-1-font-style: normal;
    --zamara-body-2-font-family: var(--z-font-family);
    --zamara-body-2-font-weight: 400;
    --zamara-body-2-font-size: 12px;
    --zamara-body-2-letter-spacing: 0px;
    --zamara-body-2-line-height: normal;
    --zamara-body-2-font-style: normal;
    --green-bold-font-family: var(--z-font-family);
    --green-bold-font-weight: 400;
    --green-bold-font-size: 16px;
    --green-bold-letter-spacing: 0px;
    --green-bold-line-height: normal;
    --green-bold-font-style: normal;
    --zamara-title-2-font-family: var(--z-font-family);
    --zamara-title-2-font-weight: 400;
    --zamara-title-2-font-size: 18.443416595458984px;
    --zamara-title-2-letter-spacing: -0.36886833190917967px;
    --zamara-title-2-line-height: 24.591222763061523px;
    --zamara-title-2-font-style: normal;
}

html, body {
    font-family: var(--z-font-family);
    font-size: 16px;
    /* Bootstrap used to set this (to a near-black #212529) because a second
       copy of it loaded after app.css. With that duplicate removed, nothing
       set a base colour and text fell back to the browser default black.
       Body copy is navy — anything that needs to recede uses --z-muted. */
    color: var(--z-ink);
}

body, p {
    font-size: 16px !important;
    font-family: var(--z-font-family);
    color: var(--z-ink);
}

/*==== Global Typography ====*/
/* Kept !important deliberately. Removing it let component classes win, which
   changed sizes in too many places at once — the heading ladder gain was not
   worth the churn. Anything that needs to override these must say !important
   too; the .z* primitives below do. */
h1 {
    font-size: 40px !important;
    line-height: 48px !important;
    font-weight: 500 !important;
}

h2 {
    font-size: 32px !important;
    line-height: 40px !important;
    font-weight: 500 !important;
}

h3 {
    font-size: 28px !important;
    line-height: 36px !important;
    font-weight: 500 !important;
}

h4 {
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 500 !important;
}

h5 {
    font-size: 20px !important;
    line-height: 28px !important;
    font-weight: 500 !important;
}

h6 {
    font-size: 18px !important;
    line-height: 26px !important;
    font-weight: 500 !important;
}

p {
    font-size: 16px !important;
    line-height: normal !important;
    font-weight: 500 !important;
}

span {
    font-size: 16px !important;
    line-height: normal !important;
    font-weight: 500 !important;
}

text {
    font-size: 14px !important;
    line-height: normal !important;
    font-weight: 500 !important;
}

small {
    font-size: 12px !important;
    line-height: 16px !important;
    font-weight: 500 !important;
}

input {
    font-size: 16px;
}

label {
    font-size: 14px;
}

a {
    font-size: 14px;
}

th {
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 500;
    color: #39B54A;
}

td {
    font-size: 12px;
    font-weight: 500;
    color: #292B4D;
}

/* One gap between the blocks a page places in the main column. */
article.content > *,
article.onb-content > *,
.admin-main-content > * {
    margin-bottom: 0 !important;
}

article.content > * + *,
article.onb-content > * + *,
.admin-main-content > * + * {
    margin-top: var(--z-space-5) !important;
}

/* Match the sidebar submenu (font-weight 500) on every page in the main column. */
article.content *,
article.onb-content *,
.admin-main-content * {
    font-weight: 500 !important;
}

article.content .zhero-accent,
article.onb-content .zhero-accent,
.admin-main-content .zhero-accent {
    font-weight: 700 !important;
}

.btn-primary {
    background-color: #39B54A !important;
    --bs-btn-color: #fff;
--bs-btn-bg: #39B54A !important;
--bs-btn-border-color: #39B54A !important;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #39B54A !important;
--bs-btn-hover-border-color: #39B54A !important;
--bs-btn-focus-shadow-rgb: 49,132,253;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #39B54A !important;
--bs-btn-active-border-color: #39B54A !important;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
--bs-btn-disabled-color: #fff;
--bs-btn-disabled-bg: #39B54A !important;
--bs-btn-disabled-border-color: #39B54A !important;
}

button {
    transition: transform 150ms ease, box-shadow 150ms ease;
    will-change: transform;
}

    button:hover {
        transform: scale(1.04);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    /* Click / press feedback */
    button:active {
        transform: scale(0.98);
    }

    button:focus-visible {
        outline: 2px solid rgba(0, 0, 0, 0.25);
        outline-offset: 2px;
    }

    .mud-select-input {
    text-align: right !important;
    text-align: --webkit-right;
    padding: 0 !important;
    }

/* Prevent sticky hover on touch devices */
@media (hover: none) {
    button:hover {
        transform: none;
    }
}


/*=======================================================================*/

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

/* Ensure Bootstrap/BlazorBootstrap modals sit above the sticky sidebar
   (z-index: 1200) so the backdrop dims the whole page, nav included. */
.modal-backdrop {
    z-index: 1300 !important;
}

.modal {
    z-index: 1310 !important;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.h4-title {
    font-weight: bold;
}

.vertical-green-line {
    position: relative; /* create a positioning context for ::before */
    padding-left: 10px; /* add space for the line */
}

    .vertical-green-line::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 4px; /* thickness of the line */
        height: 100%; /* full height of the paragraph */
        background: var(--primary-color, green); /* fallback if CSS var missing */
        border-radius: 2px; /* optional: rounded edges */
    }

/* Add this to your CSS file */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

    .modal-overlay .beneficiary-card {
        max-width: 600px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        margin: auto;
    }

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: var(--z-display) !important;
        line-height: 1.15 !important;
    }

    h2,
    .h2 {
        font-size: var(--z-display-sm) !important;
        line-height: 1.2 !important;
    }

    h3 {
        font-size: var(--z-text-2xl) !important;
        line-height: 1.25 !important;
    }

    h4 {
        font-size: var(--z-text-xl) !important;
        line-height: 1.3 !important;
    }
}






















/*New syles from the new app.css from self-onboarding form*/
/* ---- Form-specific ---- */
.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-control, .form-select {
    border-radius: 8px !important;
    border: 1.5px solid var(--zamara-border) !important;
    padding: 0.6rem 0.85rem;
    font-size: 0.92rem;
    background-color: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* A .form-select draws its dropdown caret as a background image inset from the
   right edge, so it needs room reserved for it. The rule above was written for
   .form-control — which has no caret — and applying its 0.85rem right padding
   to selects too made the caret sit on top of the text (e.g. the "KES" currency
   picker). Restore Bootstrap's allowance. */
.form-select {
    padding-right: 2.25rem;
    background-position: right 0.75rem center;
}

    .form-select.form-select-sm {
        padding-right: 2rem;
        background-position: right 0.6rem center;
    }

    .form-control:focus, .form-select:focus {
        border-color: var(--zamara-green) !important;
        box-shadow: 0 0 0 3px rgba(76, 184, 71, 0.15) !important;
        background-color: #fff;
    }

/* ---- Cards & Sections ---- */
.card {
    border-radius: var(--zamara-radius) !important;
    overflow: hidden;
}

.section-header {
    background-color: var(--zamara-navy);
    color: white;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.section-body {
    background-color: white;
    padding: 24px 20px;
    border: 1px solid #e9ecef;
    border-top: none;
}

.account-type-card {
    border: 2px solid #dee2e6;
    border-radius: 14px;
    padding: 2.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    background-color: white !important;
}

    .account-type-card:hover {
        border-color: var(--zamara-navy);
        box-shadow: 0 8px 25px rgba(41, 43, 78, 0.15);
        transform: translateY(-3px);
    }

.fund-card {
    border: 2px solid #dee2e6;
    border-radius: var(--zamara-radius);
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .fund-card.selected {
        border-color: var(--zamara-green);
        background-color: #f0fdf0;
    }

/* ---- Buttons ---- */
.btn-zamara-navy {
    background: linear-gradient(135deg, #292B4E 0%, #1e2040 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s;
}

    .btn-zamara-navy:hover {
        background: linear-gradient(135deg, #1e2040 0%, #16173a 100%);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(41, 43, 78, 0.3);
    }

.btn-zamara-green {
    background: linear-gradient(135deg, #4CB847 0%, #3da33a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s;
}

    .btn-zamara-green:hover {
        background: linear-gradient(135deg, #3da33a 0%, #2e8a2b 100%);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(76, 184, 71, 0.35);
    }

/* ---- Alerts ---- */
.alert-info {
    border-radius: 8px;
    border: none;
    background: #eff6ff;
    color: #1e40af;
}

.alert-danger {
    border-radius: 8px;
    border: none;
    background: #fef2f2;
    color: #991b1b;
}

/* ---- Withdrawal modal (BlazorBootstrap) corner radius ---- */
.withdrawal-modal .modal-content {
    border-radius: 16px;
}


/* ═══════════════════════════════════════════════════════════════════
   UNIFIED PRIMITIVES
   These live in the GLOBAL stylesheet on purpose. Blazor CSS isolation
   gives every .razor.css its own namespace, so a primitive copied into
   page-scoped files forks the moment one copy is edited. Keep them here.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Buttons ───────────────────────────────────────────────────────
   Usage: <button class="zbtn zbtn-primary">Save</button>
   Variants: -primary (green) -navy -gold -secondary (outline) -ghost
   Sizes:    -sm  -lg        Layout: -half (equal width in a flex row)
   ------------------------------------------------------------------ */
.zbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--z-space-2);
    padding: 9px 26px;
    min-width: 96px;
    border: 1px solid transparent;
    border-radius: var(--z-radius-pill);
    font-size: var(--z-text-base);
    font-weight: var(--z-weight-medium);
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s, opacity .18s, transform .15s;
}

    .zbtn:active {
        transform: scale(0.97);
    }

    .zbtn:focus {
        outline: none;
        box-shadow: none;
    }

    .zbtn:focus-visible {
        outline: 2px solid var(--z-navy);
        outline-offset: 2px;
    }

    .zbtn:disabled,
    .zbtn.disabled {
        opacity: .5;
        cursor: not-allowed;
        transform: none;
    }

/* Variants */
.zbtn-primary {
    background-color: var(--z-green);
    border-color: var(--z-green);
    color: #fff;
}

    .zbtn-primary:hover {
        background-color: var(--z-green-dark);
        border-color: var(--z-green-dark);
        color: #fff;
    }

.zbtn-outline-primary {
    background-color: transparent;
    border-color: var(--z-green);
    color: var(--z-green);
}

    .zbtn-outline-primary:hover:not(:disabled) {
        background-color: var(--z-green);
        border-color: var(--z-green);
        color: #fff;
    }

.zbtn-navy {
    background-color: var(--z-navy);
    border-color: var(--z-navy);
    color: #fff;
}

    .zbtn-navy:hover {
        opacity: .9;
        color: #fff;
    }

.zbtn-gold {
    background-color: var(--z-gold);
    border-color: var(--z-gold);
    color: #fff;
}

    .zbtn-gold:hover {
        opacity: .9;
        color: #fff;
    }

.zbtn-secondary {
    background-color: transparent;
    border-color: var(--z-navy);
    color: var(--z-navy);
}

    .zbtn-secondary:hover {
        background-color: rgba(43, 54, 116, 0.08);
        color: var(--z-navy);
    }

.zbtn-ghost {
    background-color: transparent;
    border-color: transparent;
    color: var(--z-navy);
    min-width: auto;
    padding: 6px 12px;
}

    .zbtn-ghost:hover {
        background-color: rgba(43, 54, 116, 0.08);
        color: var(--z-navy);
    }

.zbtn-danger {
    background-color: transparent;
    border-color: var(--z-danger);
    color: var(--z-danger);
}

    .zbtn-danger:hover {
        background-color: var(--z-danger);
        color: #fff;
    }

/* Sizes */
.zbtn-sm {
    padding: 7px 20px;
    font-size: var(--z-text-sm);
    min-width: auto;
}

.zbtn-lg {
    padding: 12px 32px;
    font-size: var(--z-text-md);
}

/* Layout helpers */
.zbtn-half {
    flex: 1 1 0;
    min-width: 0;
    padding-left: var(--z-space-3);
    padding-right: var(--z-space-3);
}

.zbtn-block {
    display: flex;
    width: 100%;
}

/* Action row — standard placement: secondary left, primary right */
.zbtn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--z-space-3);
    align-items: center;
}

.zbtn-row-end {
    justify-content: flex-end;
}

@media (max-width: 575.98px) {
    .zbtn-row > .zbtn {
        flex: 1 1 100%;
    }
}


/* ── Page hero / banner ────────────────────────────────────────────
   Rendered by <PageHero>. One height ramp, one type ramp, everywhere.
   ------------------------------------------------------------------ */
.zhero {
    position: relative;
    width: 100%;
    min-height: 220px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: var(--z-space-6) var(--z-space-5);
    margin-bottom: var(--z-space-5);
    border-radius: var(--z-radius-lg);
    overflow: hidden;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--z-surface-alt);
}

@media (min-width: 576px) {
    .zhero {
        /* Height tracks the viewport, not a fixed px value. A 320px hero
           eats 47% of the fold on a 768px-tall laptop but only 33% on
           1080p — vh keeps that proportion steady across both. */
        min-height: clamp(220px, 26vh + 60px, 320px);
        padding: var(--z-space-7) var(--z-space-6);
    }
}

@media (min-width: 992px) {
    .zhero {
        padding: var(--z-space-7) var(--z-space-8);
    }
}

/* Compact variant for secondary / form pages */
.zhero-compact {
    min-height: 160px;
}

@media (min-width: 576px) {
    .zhero-compact {
        min-height: clamp(160px, 14vh + 60px, 200px);
    }
}

/* Title-only banners (e.g. "Pension", "My Investments") — a single heading
   doesn't warrant the full editorial band, so keep the height tight and
   proportional. Declared after .zhero-compact so it wins when both apply. */
.zhero-titleonly {
    min-height: 120px;
}

@media (min-width: 576px) {
    .zhero-titleonly {
        min-height: clamp(128px, 10vh + 40px, 156px);
    }
}

.zhero-box {
    max-width: 600px;
    width: 100%;
}

.zhero-title {
    margin: 0 0 var(--z-space-2);
    color: var(--z-navy);
    font-size: var(--z-display) !important;
    font-weight: var(--z-weight-bold) !important;
    line-height: 1.1 !important;
}

.zhero-accent {
    color: var(--z-green);
    font-weight: 700 !important;
}

.zhero-subtitle {
    margin: 0 0 var(--z-space-3);
    color: var(--z-navy);
    font-size: var(--z-text-md) !important;
    font-weight: var(--z-weight-normal) !important;
    line-height: 1.4 !important;
}

.zhero-light-text .zhero-title {
    color: #ffffff !important;
}

.zhero-light-text .zhero-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

.zhero-label {
    margin: 0 0 var(--z-space-1);
    color: var(--z-navy);
    font-size: var(--z-text-base) !important;
    font-weight: var(--z-weight-normal) !important;
}

/* Caps at 24px to match the Bootstrap fs-4 the Pension balance used before
   the migration. --z-display-sm rendered 30px at desktop, which read as
   oversized against the rest of the hero. */
.zhero-amount {
    color: var(--z-green);
    font-size: var(--z-text-xl) !important;
    font-weight: var(--z-weight-bold) !important;
    letter-spacing: -0.5px;
}

/* Keep sensitive balances in place when hidden so their layout does not jump. */
.balance-amount {
    transition: filter 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
}

    .balance-amount.blurred {
        filter: blur(6px);
        opacity: 0.75;
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.25), 0 0 16px rgba(0, 0, 0, 0.15);
        user-select: none;
    }

.zhero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--z-space-3);
    margin-top: var(--z-space-4);
}


/* ── Section headings (in-page, below the hero) ────────────────── */
.zsection {
    margin-bottom: var(--z-space-6);
}

.zsection-title {
    margin: 0 0 var(--z-space-4);
    color: var(--z-navy);
    font-size: var(--z-text-2xl) !important;
    font-weight: var(--z-weight-bold) !important;
    line-height: 1.3 !important;
}

.zcard-title {
    margin: 0;
    color: var(--z-navy);
    font-size: var(--z-text-lg) !important;
    font-weight: var(--z-weight-semibold) !important;
}


/* ── Icons ─────────────────────────────────────────────────────── */
.zicon-xs { width: var(--z-icon-xs); height: var(--z-icon-xs); }
.zicon-sm { width: var(--z-icon-sm); height: var(--z-icon-sm); }
.zicon    { width: var(--z-icon);    height: var(--z-icon); }
.zicon-lg { width: var(--z-icon-lg); height: var(--z-icon-lg); }
.zicon-xl { width: var(--z-icon-xl); height: var(--z-icon-xl); }
.zicon-2xl { width: var(--z-icon-2xl); height: var(--z-icon-2xl); }

/* ── Tab / category selector ───────────────────────────────────────
   The strip of icon+label tabs used to switch views within a page.
   There were four separate implementations of this — Profile used
   .fund-category, Investment Products had its own copy of the same
   class names, Transaction Statement used inline-styled divs, and
   Pension Contributions used .contribution-stats. Same control, four
   looks. This is the single definition; pages use .ztabs / .ztab.

   Usage:
     <div class="ztabs">
       <div class="ztab active"><img class="ztab-icon" …/><span>Label</span></div>
     </div>
   ------------------------------------------------------------------ */
.ztabs {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: var(--z-space-2);
    padding: var(--z-space-2) var(--z-space-4);
    margin-bottom: var(--z-space-4);
    background: var(--z-surface);
    border-radius: var(--z-radius-lg);
    overflow-x: auto;
    flex-shrink: 0;
}

.ztab {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--z-space-2);
    flex: 1 1 0;
    min-width: 0;
    padding: var(--z-space-3) var(--z-space-4);
    border: none;
    background: none;
    border-radius: var(--z-radius);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    color: var(--z-navy);
    font-size: var(--z-text-base) !important;
    font-weight: var(--z-weight-semibold) !important;
    line-height: 1.3 !important;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

    .ztab:hover {
        background-color: rgba(43, 54, 116, 0.05);
    }

    .ztab.active {
        color: var(--z-green);
        border-bottom-color: var(--z-green);
    }

.ztab-icon {
    height: var(--z-icon);
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter .2s ease;
}

    .ztab.active .ztab-icon,
    .ztab:hover .ztab-icon {
        filter: none;
    }

@media (max-width: 575.98px) {
    .ztab {
        flex-direction: column;
        gap: var(--z-space-1);
        padding: var(--z-space-2);
        font-size: var(--z-text-sm);
    }
}


.zicon-xs, .zicon-sm, .zicon, .zicon-lg, .zicon-xl, .zicon-2xl {
    flex-shrink: 0;
    object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════════════
   BLAZOR RECONNECT OVERLAY
   Replaces the default plain-text "Attempting to reconnect" banner
   with a branded modal. Blazor toggles the class on the wrapper div;
   all we do is show/hide and swap copy.
   ═══════════════════════════════════════════════════════════════════ */
/* MudBlazor ships `#components-reconnect-modal { background-color: … !important }`
   which would paint this full-screen container opaque and hide the page behind
   it. Same specificity (1,0,0) and app.css loads later, so !important here wins
   the tie. The visible scrim is .zreconnect-backdrop, not this element. */
#components-reconnect-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#components-reconnect-modal.components-reconnect-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    opacity: 1;
    visibility: visible;
}

.zreconnect-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 54, 116, 0.55);
    backdrop-filter: blur(4px);
}

.zreconnect-dialog {
    position: relative;
    background: var(--z-surface);
    border-radius: var(--z-radius-xl);
    padding: 40px 48px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--z-shadow-lg);
    animation: zreconnect-enter 0.35s ease;
}

@keyframes zreconnect-enter {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.zreconnect-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.zreconnect-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 20px;
    border: 3px solid var(--z-line);
    border-top-color: var(--z-green);
    border-radius: 50%;
    animation: zreconnect-spin 0.8s linear infinite;
}

@keyframes zreconnect-spin {
    to { transform: rotate(360deg); }
}

.zreconnect-title {
    font-family: var(--z-font-family);
    font-size: var(--z-text-xl);
    font-weight: var(--z-weight-bold);
    color: var(--z-navy);
    margin: 0 0 8px;
}

.zreconnect-msg {
    font-family: var(--z-font-family);
    font-size: var(--z-text-base);
    color: var(--z-muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Failure-state pieces are hidden by default; the state classes below swap them in. */
.zreconnect-title--fail { display: none; }
.zreconnect-msg--fail   { display: none; }
.zreconnect-reload      { display: none; }

/* Retrying: spinner + retry copy */
.components-reconnect-show .zreconnect-spinner      { display: block; }
.components-reconnect-show .zreconnect-title--retry { display: block; }
.components-reconnect-show .zreconnect-title--fail  { display: none; }
.components-reconnect-show .zreconnect-msg--retry   { display: block; }
.components-reconnect-show .zreconnect-msg--fail    { display: none; }
.components-reconnect-show .zreconnect-reload       { display: none; }

/* Failed / rejected: drop the spinner, swap in failure copy + reload button */
.components-reconnect-failed .zreconnect-spinner,
.components-reconnect-rejected .zreconnect-spinner      { display: none; }

.components-reconnect-failed .zreconnect-title--retry,
.components-reconnect-rejected .zreconnect-title--retry { display: none; }

.components-reconnect-failed .zreconnect-title--fail,
.components-reconnect-rejected .zreconnect-title--fail  { display: block; color: var(--z-danger); }

.components-reconnect-failed .zreconnect-msg--retry,
.components-reconnect-rejected .zreconnect-msg--retry   { display: none; }

.components-reconnect-failed .zreconnect-msg--fail,
.components-reconnect-rejected .zreconnect-msg--fail    { display: block; }

.components-reconnect-failed .zreconnect-reload,
.components-reconnect-rejected .zreconnect-reload       { display: inline-flex; }

/* MudBlazor ships its own `#components-reconnect-modal button {…}` rule — an ID
   selector (1,0,1) that outranks the plain `.zbtn` class (0,1,0) regardless of
   source order, which is what flattened this button to a square grey-text box.
   Scoping under the same ID (1,1,0) wins it back without reaching for
   !important. Keep the ID in the selector or MudBlazor takes over again. */
#components-reconnect-modal .zreconnect-reload {
    display: none;
    align-items: center;
    justify-content: center;
    margin: 4px auto 0;
    padding: 11px 30px;
    min-width: 150px;
    border: none;
    border-radius: var(--z-radius-pill);
    background-color: var(--z-green);
    color: #fff;
    font-family: var(--z-font-family);
    font-size: var(--z-text-base);
    font-weight: var(--z-weight-semibold);
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(57, 181, 74, 0.32);
    transition: background-color .18s ease, box-shadow .18s ease, transform .15s ease;
}

#components-reconnect-modal .zreconnect-reload:hover {
    background-color: var(--z-green-dark);
    box-shadow: 0 6px 16px rgba(57, 181, 74, 0.42);
}

#components-reconnect-modal .zreconnect-reload:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(57, 181, 74, 0.32);
}

#components-reconnect-modal .zreconnect-reload:focus-visible {
    outline: 2px solid var(--z-navy);
    outline-offset: 3px;
}

#components-reconnect-modal.components-reconnect-failed .zreconnect-reload,
#components-reconnect-modal.components-reconnect-rejected .zreconnect-reload {
    display: inline-flex;
}

.z-yield {
    background: #39B54A;
    color: #fff;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0;
}

.z-yield-track {
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
    animation: z-yield-pass 56s linear infinite;
    will-change: transform;
}

.z-yield:hover .z-yield-track {
    animation-play-state: paused;
}

.z-yield-item {
    display: inline-block;
    padding-right: 3rem;
    font-size: 13px;
    font-weight: 600;
}

.z-yield-item span {
    font-weight: 500;
    margin-left: 0.35rem;
}

@keyframes z-yield-pass {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 1024.98px) {
    .z-yield {
        padding-left: 48px;
    }
}

@media (max-width: 768px) {
    .invh-table,
    .transaction-table,
    .vuna-members-table {
        min-width: 0 !important;
    }

    .invh-table thead,
    .transaction-table thead,
    .vuna-members-table thead {
        display: none;
    }

    .invh-table tbody,
    .transaction-table tbody,
    .vuna-members-table tbody,
    .invh-table tr,
    .transaction-table tr,
    .vuna-members-table tr,
    .invh-table td,
    .transaction-table td,
    .vuna-members-table td {
        display: block;
        width: 100% !important;
    }

    .invh-table tr,
    .transaction-table tr,
    .vuna-members-table tr {
        margin: 0 0 12px;
        padding: 8px 12px;
        border: 1px solid #e4e8f2 !important;
        border-radius: 12px;
        background: #fff;
    }

    .invh-table td,
    .transaction-table td,
    .vuna-members-table td {
        text-align: left !important;
        padding: 6px 0 !important;
        border: 0 !important;
    }

    .vuna-members-table td:first-child:not(:has(input)) {
        display: none;
    }

    .invh-table td[data-label]:not([data-label=""])::before,
    .transaction-table td[data-label]:not([data-label=""])::before,
    .vuna-members-table td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 11px !important;
        line-height: 1.2 !important;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #6B76A8;
    }
}

@media (min-width: 1025px) {
    .sidebar,
    .onb-sidebar {
        transition: width 0.22s ease, flex-basis 0.22s ease, min-width 0.22s ease, max-width 0.22s ease;
    }

    .sidebar:has(.sidebar-shell.is-collapsed),
    .onb-sidebar:has(.sidebar-shell.is-collapsed) {
        flex: 0 0 76px;
        width: 76px;
        min-width: 76px;
        max-width: 76px;
    }

    .page:has(.sidebar-shell.is-collapsed) main,
    .onb-page:has(.sidebar-shell.is-collapsed) .onb-main {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }
}

/* ---------------------------------------------------------------------------
   Skeleton placeholders.

   Used while a page's data is still in flight. The point is that the member
   sees the shape of what is coming instead of an empty card that looks broken,
   or worse, a card showing blanks that reads as "we have no details for you".
   --------------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #ECEFF3 25%, #F6F8FA 37%, #ECEFF3 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.3s ease-in-out infinite;
    border-radius: 6px;
    display: inline-block;
}

.skeleton-line {
    height: 12px;
    width: 100%;
}

.skeleton-line.short { width: 35%; }
.skeleton-line.medium { width: 55%; }

@keyframes skeleton-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Respect a reader who has asked the system to stop moving things. */
@media (prefers-reduced-motion: reduce) {
    .skeleton { animation: none; }
}
