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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* -------------------------------------------------------------
   Softweb CoopPlatform MemberWeb base
   Shared visual language with AdminWeb / CoopDesk.
   ------------------------------------------------------------- */

html,
body {
    margin: 0;
    padding: 0;
    font-family: OpenSansRegular, Arial, Helvetica, sans-serif;
    background: #f4f6fb;
    color: #1b2330;
}

* {
    box-sizing: border-box;
}

a {
    color: #175cd3;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* -------------------------------------------------------------
   Shared public-page container
   Kept global because Razor CSS isolation does not scope styles
   from PublicLayout.razor to the page rendered through @Body.
   ------------------------------------------------------------- */

.public-container {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* Blazor reconnect/error UI must also be styled globally because
   PublicLayout renders its own #blazor-error-ui outside MainLayout. */

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@media (max-width: 760px) {
    .public-container {
        width: min(100% - 24px, 620px);
    }
}


/* -------------------------------------------------------------
   Member authentication
   Shared public visual language with the Member Portal landing
   page, AdminWeb and CoopDesk.
   ------------------------------------------------------------- */

.auth-page {
    min-height: calc(100vh - 160px);
    padding: 64px 0 80px;
    background: radial-gradient( circle at 82% 18%, rgba(11, 127, 79, 0.09), transparent 28% ), linear-gradient( 180deg, #f7faf9 0%, #f4f6fb 100% );
}

.auth-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
    gap: 72px;
    align-items: center;
    min-height: 560px;
}

/* -------------------------------------------------------------
   Intro / left side
   ------------------------------------------------------------- */

.auth-intro {
    max-width: 590px;
}

    .auth-intro .eyebrow {
        display: inline-flex;
        align-items: center;
        padding: 7px 12px;
        margin-bottom: 18px;
        border-radius: 999px;
        background: #e7f7f0;
        color: #087f4f;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        line-height: 1;
    }

    .auth-intro h1 {
        margin: 0 0 18px;
        color: #111827;
        font-size: clamp(2.6rem, 5vw, 4.25rem);
        font-weight: 800;
        line-height: 1.02;
        letter-spacing: -0.045em;
    }

    .auth-intro > p {
        max-width: 540px;
        margin: 0 0 28px;
        color: #64748b;
        font-size: 1.05rem;
        line-height: 1.7;
    }

/* -------------------------------------------------------------
   New-member helper
   ------------------------------------------------------------- */

.auth-help-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 520px;
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid #d8e8e1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

    .auth-help-card strong {
        color: #172033;
        font-size: 0.95rem;
    }

    .auth-help-card span {
        color: #64748b;
        font-size: 0.88rem;
        line-height: 1.55;
    }

.text-action {
    color: #087f4f;
    font-weight: 700;
    text-decoration: none;
}

    .text-action:hover {
        color: #066a42;
        text-decoration: underline;
    }

/* -------------------------------------------------------------
   Authentication card
   ------------------------------------------------------------- */

.auth-card {
    width: 100%;
    padding: 34px;
    border: 1px solid #e3e8ed;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.09), 0 4px 14px rgba(15, 23, 42, 0.04);
}

.auth-card__badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #087f4f;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.auth-card h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.auth-card__lead {
    margin: 0 0 26px;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* -------------------------------------------------------------
   Form fields
   ------------------------------------------------------------- */

.auth-field {
    margin-bottom: 18px;
}

    .auth-field label {
        display: block;
        margin-bottom: 7px;
        color: #263244;
        font-size: 0.86rem;
        font-weight: 700;
    }

.auth-input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cfd8e3;
    border-radius: 9px;
    background: #ffffff;
    color: #172033;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

    .auth-input:hover {
        border-color: #aebbc9;
    }

    .auth-input:focus {
        border-color: #087f4f;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(8, 127, 79, 0.12);
    }

    .auth-input::placeholder {
        color: #94a3b8;
    }

/* -------------------------------------------------------------
   Validation
   ------------------------------------------------------------- */

.auth-card .validation-summary {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #f2b8b5;
    border-radius: 9px;
    background: #fff5f5;
    color: #b42318;
    font-size: 0.84rem;
}

    .auth-card .validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.auth-field .validation-message {
    margin-top: 5px;
    color: #b42318;
    font-size: 0.78rem;
}

/* -------------------------------------------------------------
   Primary authentication action
   ------------------------------------------------------------- */

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 5px;
    padding: 11px 18px;
    border: 1px solid #087f4f;
    border-radius: 9px;
    background: #087f4f;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    .auth-submit:hover:not(:disabled) {
        border-color: #066a42;
        background: #066a42;
        box-shadow: 0 5px 14px rgba(8, 127, 79, 0.18);
    }

    .auth-submit:active:not(:disabled) {
        transform: translateY(1px);
    }

    .auth-submit:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.auth-submit--link {
    margin-top: 16px;
}

/* -------------------------------------------------------------
   Context selection
   ------------------------------------------------------------- */

.context-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.context-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #dce4eb;
    border-radius: 11px;
    background: #ffffff;
    color: #172033;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .context-option:hover:not(:disabled) {
        border-color: #a9d8c4;
        background: #f7fcfa;
        box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
        transform: translateY(-1px);
    }

    .context-option:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.context-option__main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .context-option__main strong {
        color: #172033;
        font-size: 0.92rem;
    }

    .context-option__main span {
        color: #64748b;
        font-size: 0.78rem;
    }

.context-option__arrow {
    color: #087f4f;
    font-size: 1.15rem;
    font-weight: 700;
}

/* -------------------------------------------------------------
   Status messages
   ------------------------------------------------------------- */

.auth-status {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 0.84rem;
    line-height: 1.5;
}

.auth-status--info {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.auth-status--error {
    border: 1px solid #f2b8b5;
    background: #fff5f5;
    color: #b42318;
}

.auth-status--success {
    border: 1px solid #b7e4cd;
    background: #edf9f3;
    color: #087f4f;
}

/* -------------------------------------------------------------
   Successful sign-in state
   ------------------------------------------------------------- */

.auth-success {
    text-align: center;
}

.auth-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e7f7f0;
    color: #087f4f;
    font-size: 1.6rem;
    font-weight: 800;
}

.auth-success .auth-card__badge {
    justify-content: center;
}

.auth-success h2 {
    margin-bottom: 8px;
}

.auth-success p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

/* -------------------------------------------------------------
   Responsive authentication layout
   ------------------------------------------------------------- */

@media (max-width: 900px) {
    .auth-page {
        padding: 44px 0 60px;
    }

    .auth-page__grid {
        grid-template-columns: 1fr;
        gap: 34px;
        min-height: auto;
    }

    .auth-intro {
        max-width: 680px;
        margin: 0 auto;
        text-align: center;
    }

        .auth-intro > p {
            margin-left: auto;
            margin-right: auto;
        }

    .auth-help-card {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .auth-card {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .auth-page {
        padding: 30px 0 45px;
    }

    .auth-page__grid {
        gap: 26px;
    }

    .auth-intro h1 {
        font-size: 2.5rem;
    }

    .auth-intro > p {
        font-size: 0.94rem;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .auth-help-card {
        padding: 15px 16px;
    }
}


/* =============================================================
   Member Dashboard
   ============================================================= */

.member-dashboard {
    min-height: calc(100vh - 80px);
    padding: 48px 0 72px;
}


/* -------------------------------------------------------------
   Header
   ------------------------------------------------------------- */

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

    .dashboard-header h1 {
        margin: 8px 0 10px;
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.1;
        letter-spacing: -0.035em;
        color: #172033;
    }

    .dashboard-header p {
        margin: 0;
        max-width: 680px;
        color: #667085;
        line-height: 1.7;
    }

.member-reference {
    min-width: 150px;
    padding: 14px 18px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #ffffff;
    text-align: right;
}

    .member-reference span {
        display: block;
        margin-bottom: 4px;
        color: #98a2b3;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .member-reference strong {
        color: #344054;
    }


/* -------------------------------------------------------------
   Financial summary cards
   ------------------------------------------------------------- */

.financial-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 42px;
}

.financial-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 24px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(16, 24, 40, 0.045);
}

    .financial-card::after {
        content: "";
        position: absolute;
        right: -35px;
        bottom: -45px;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: rgba(23, 92, 211, 0.04);
    }

.financial-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.financial-card__label {
    color: #667085;
    font-size: 0.9rem;
    font-weight: 600;
}

.financial-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #f2f4f7;
    color: #344054;
    font-size: 0.72rem;
    font-weight: 700;
}

.financial-card__amount {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    color: #101828;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.financial-card__footer {
    position: relative;
    z-index: 1;
    margin-top: 9px;
    color: #98a2b3;
    font-size: 0.82rem;
}

.financial-card--savings {
    border-top: 3px solid #175cd3;
}

.financial-card--shares {
    border-top: 3px solid #6941c6;
}

.financial-card--loans {
    border-top: 3px solid #b54708;
}


/* -------------------------------------------------------------
   Sections
   ------------------------------------------------------------- */

.dashboard-section {
    margin-top: 34px;
}

.dashboard-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
}

    .dashboard-section__header h2 {
        margin: 6px 0 0;
        color: #172033;
        font-size: 1.35rem;
        letter-spacing: -0.02em;
    }

.account-list,
.loan-list {
    display: grid;
    gap: 10px;
}


/* -------------------------------------------------------------
   Account rows
   ------------------------------------------------------------- */

.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #ffffff;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

    .account-row:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(16, 24, 40, 0.055);
    }

.account-row__identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f2f4f7;
    color: #344054;
    font-size: 0.72rem;
    font-weight: 700;
}

.account-row__identity strong,
.account-row__identity span {
    display: block;
}

.account-row__identity strong {
    color: #344054;
    font-size: 0.95rem;
}

.account-row__identity span {
    margin-top: 3px;
    color: #98a2b3;
    font-size: 0.78rem;
}

.account-row__balance {
    text-align: right;
}

    .account-row__balance span {
        display: block;
        margin-bottom: 3px;
        color: #98a2b3;
        font-size: 0.75rem;
    }

    .account-row__balance strong {
        color: #101828;
        font-size: 1rem;
    }


/* -------------------------------------------------------------
   Loan cards
   ------------------------------------------------------------- */

.loan-card {
    padding: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #ffffff;
}

.loan-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

    .loan-card__header strong,
    .loan-card__type {
        display: block;
    }

.loan-card__type {
    margin-bottom: 4px;
    color: #667085;
    font-size: 0.8rem;
}

.loan-card__header strong {
    color: #344054;
}

.loan-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.loan-status--active {
    background: #ecfdf3;
    color: #027a48;
}

.loan-status--inactive {
    background: #f2f4f7;
    color: #667085;
}

.loan-card__details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f0f2f5;
}

    .loan-card__details span,
    .loan-card__details strong {
        display: block;
    }

    .loan-card__details span {
        margin-bottom: 4px;
        color: #98a2b3;
        font-size: 0.75rem;
    }

    .loan-card__details strong {
        color: #344054;
        font-size: 0.9rem;
    }


/* -------------------------------------------------------------
   Empty state
   ------------------------------------------------------------- */

.dashboard-empty {
    padding: 28px;
    border: 1px dashed #d0d5dd;
    border-radius: 14px;
    background: #ffffff;
}

    .dashboard-empty strong {
        color: #344054;
    }

    .dashboard-empty p {
        margin: 6px 0 0;
        color: #667085;
        font-size: 0.9rem;
    }


/* -------------------------------------------------------------
   Quick actions
   ------------------------------------------------------------- */

.dashboard-section--actions {
    padding-top: 12px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-action {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    .quick-action:hover {
        transform: translateY(-1px);
        border-color: #cfd5df;
        box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
    }

.quick-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #f2f4f7;
    color: #344054;
    font-size: 0.72rem;
    font-weight: 700;
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action strong {
    color: #344054;
    font-size: 0.9rem;
}

.quick-action small {
    margin-top: 3px;
    color: #98a2b3;
    line-height: 1.45;
}

.quick-action__arrow {
    color: #98a2b3;
    font-size: 1.1rem;
}


/* -------------------------------------------------------------
   Loading / error
   ------------------------------------------------------------- */

.dashboard-loading,
.dashboard-error {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding: 22px;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #ffffff;
}

    .dashboard-loading p,
    .dashboard-error p {
        margin: 5px 0 0;
        color: #667085;
        font-size: 0.9rem;
    }

.dashboard-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e4e7ec;
    border-top-color: #175cd3;
    border-radius: 50%;
    animation: dashboard-spin 0.8s linear infinite;
}

.dashboard-error__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fef3f2;
    color: #b42318;
    font-weight: 700;
}

.dashboard-retry {
    margin-top: 12px;
    padding: 8px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

    .dashboard-retry:hover {
        background: #f9fafb;
    }

@keyframes dashboard-spin {
    to {
        transform: rotate(360deg);
    }
}


/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */

@media (max-width: 900px) {

    .financial-summary {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-reference {
        text-align: left;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .member-dashboard {
        padding-top: 30px;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .account-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .account-row__balance {
        width: 100%;
        text-align: left;
        padding-left: 56px;
    }

    .loan-card__details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}



/* -------------------------------------------------------------
   Member financial statements
   ------------------------------------------------------------- */

.member-statement-page {
    min-height: calc(100vh - 80px);
    padding: 48px 0 80px;
}

.statement-header {
    margin-bottom: 28px;
}

.statement-header__navigation {
    margin-bottom: 28px;
}

.statement-back-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: #175cd3;
    cursor: pointer;
    font-weight: 600;
}

.statement-header__main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.statement-header h1 {
    margin: 8px 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.statement-reference {
    margin: 0;
    color: #667085;
}

    .statement-reference strong {
        color: #344054;
    }

.statement-period {
    min-width: 180px;
    padding: 16px 18px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
}

    .statement-period span {
        display: block;
        margin-bottom: 6px;
        color: #667085;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.08em;
    }

    .statement-period strong {
        color: #344054;
    }

.statement-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.statement-summary-card {
    padding: 24px;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #ffffff;
}

    .statement-summary-card span {
        display: block;
        margin-bottom: 10px;
        color: #667085;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .statement-summary-card strong {
        display: block;
        color: #101828;
        font-size: 1.7rem;
        letter-spacing: -0.02em;
    }

.statement-summary-card--primary {
    border-color: #d0d5dd;
}

.statement-transactions {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #ffffff;
}

.statement-transactions__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #eaecf0;
}

    .statement-transactions__header h2 {
        margin: 6px 0 0;
        color: #101828;
        font-size: 1.35rem;
    }

.statement-transaction-count {
    color: #667085;
    font-size: 0.85rem;
    font-weight: 600;
}

.statement-table-wrapper {
    overflow-x: auto;
}

.statement-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

    .statement-table th {
        padding: 13px 24px;
        background: #f9fafb;
        color: #667085;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .statement-table td {
        padding: 17px 24px;
        border-top: 1px solid #eaecf0;
        color: #344054;
        font-size: 0.9rem;
        vertical-align: middle;
    }

    .statement-table .numeric {
        text-align: right;
        white-space: nowrap;
    }

.statement-date {
    white-space: nowrap;
    color: #475467;
}

.statement-details {
    color: #101828;
    font-weight: 500;
}

.statement-table .credit {
    color: #067647;
}

.statement-table .debit {
    color: #b42318;
}

.statement-table .balance {
    color: #101828;
    font-weight: 700;
}

.statement-empty {
    padding: 60px 24px;
    text-align: center;
}

    .statement-empty h3 {
        margin: 0 0 8px;
        color: #101828;
    }

    .statement-empty p {
        margin: 0;
        color: #667085;
    }

.statement-state-card {
    max-width: 620px;
    margin: 80px auto;
    padding: 48px 32px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
}

    .statement-state-card h2 {
        margin: 16px 0 8px;
        color: #101828;
    }

    .statement-state-card p {
        margin: 0;
        color: #667085;
        line-height: 1.6;
    }

.statement-state-card--error {
    border-color: #fecdca;
}

.statement-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fef3f2;
    color: #b42318;
    font-size: 1.2rem;
    font-weight: 700;
}

.statement-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 3px solid #eaecf0;
    border-top-color: #175cd3;
    border-radius: 50%;
    animation: statement-spin 0.8s linear infinite;
}

@keyframes statement-spin {
    to {
        transform: rotate(360deg);
    }
}

.statement-state-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.statement-primary-button,
.statement-secondary-button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 600;
}

.statement-primary-button {
    border: 1px solid #175cd3;
    background: #175cd3;
    color: #ffffff;
}

.statement-secondary-button {
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #344054;
}

.statement-mobile-list {
    display: none;
}

@media (max-width: 760px) {

    .member-statement-page {
        padding: 28px 0 56px;
    }

    .statement-header__main {
        align-items: stretch;
        flex-direction: column;
    }

    .statement-period {
        min-width: 0;
    }

    .statement-summary {
        grid-template-columns: 1fr;
    }

    .statement-table-wrapper {
        display: none;
    }

    .statement-mobile-list {
        display: block;
    }

    .statement-mobile-transaction {
        padding: 18px;
        border-top: 1px solid #eaecf0;
    }

    .statement-mobile-transaction__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        color: #667085;
        font-size: 0.82rem;
    }

        .statement-mobile-transaction__top strong {
            color: #101828;
        }

    .statement-mobile-transaction__details {
        margin-top: 10px;
        color: #344054;
        font-weight: 600;
    }

    .statement-mobile-transaction__amounts {
        display: flex;
        gap: 28px;
        margin-top: 14px;
    }

        .statement-mobile-transaction__amounts span {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .statement-mobile-transaction__amounts small {
            color: #667085;
            font-size: 0.72rem;
        }

        .statement-mobile-transaction__amounts strong {
            color: #344054;
        }

        .statement-mobile-transaction__amounts .credit {
            color: #067647;
        }

        .statement-mobile-transaction__amounts .debit {
            color: #b42318;
        }

    .statement-state-actions {
        flex-direction: column;
    }
}

/* -------------------------------------------------------------
   Member dashboard additions
   ------------------------------------------------------------- */

.dashboard-cooperative-name {
    margin: 8px 0 4px;
    color: #344054;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-header__actions {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.dashboard-logout {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #ffffff;
    color: #344054;
    cursor: pointer;
    font-weight: 600;
}

    .dashboard-logout:hover {
        background: #f9fafb;
    }

.account-row__statement {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    color: #175cd3;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

    .account-row__statement:hover {
        background: #f5f8ff;
        border-color: #b2ccff;
    }

.loan-card__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eaecf0;
}

@media (max-width: 760px) {

    .dashboard-header__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-logout {
        width: 100%;
    }

    .account-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .account-row__statement {
        width: 100%;
    }

    .loan-card__actions {
        justify-content: stretch;
    }

        .loan-card__actions .account-row__statement {
            width: 100%;
        }
}

.loan-request-button {
    border: 1px solid var(--color-primary, #2563eb);
    background: var(--color-primary, #2563eb);
    color: #ffffff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.loan-request-button:hover {
    opacity: 0.92;
}

.loan-request-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

/* =========================================================
   MEMBER PORTAL - LOAN REQUESTS
   ========================================================= */

.member-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.member-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.member-page-eyebrow,
.member-section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.member-page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #263447;
}

.member-page-subtitle {
    margin: 0.4rem 0 0;
    color: #6c757d;
    font-size: 0.98rem;
}

.member-alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.member-alert-title {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.member-alert-error {
    background: #fff5f5;
    border-color: #f0caca;
    color: #8a3030;
}

.member-alert-success {
    background: #f2faf5;
    border-color: #cfe7d7;
    color: #2f6b47;
}


/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.loan-request-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
    gap: 1.5rem;
    align-items: start;
}


/* =========================================================
   PANELS
   ========================================================= */

.member-panel {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(31, 43, 58, 0.05);
}

.member-panel-header {
    margin-bottom: 1.75rem;
}

.member-panel-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.member-panel-title {
    margin: 0;
    color: #263447;
    font-size: 1.25rem;
    font-weight: 700;
}

.member-panel-subtitle {
    margin: 0.4rem 0 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}


/* =========================================================
   FORM
   ========================================================= */

.member-form-group {
    margin-bottom: 1.4rem;
}

.member-form-label {
    display: block;
    font-weight: 650;
    color: #354052;
    margin-bottom: 0.3rem;
}

.member-form-help {
    color: #7b8491;
    font-size: 0.82rem;
    margin-bottom: 0.55rem;
}

.member-form-control {
    min-height: 46px;
    border-radius: 10px;
    border-color: #d8dee7;
}

    .member-form-control:focus {
        box-shadow: 0 0 0 0.2rem rgba(57, 103, 185, 0.12);
    }

.member-textarea {
    min-height: 120px;
    resize: vertical;
}


/* =========================================================
   MONEY INPUT
   ========================================================= */

.member-money-input {
    position: relative;
}

.member-money-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667085;
    font-weight: 600;
    z-index: 2;
}

.member-money-control {
    padding-left: 2.2rem;
}


/* =========================================================
   TENOR
   ========================================================= */

.member-tenor-input {
    display: flex;
    align-items: stretch;
}

    .member-tenor-input .member-form-control {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

.member-tenor-suffix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: #f6f8fa;
    border: 1px solid #d8dee7;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    color: #667085;
    font-size: 0.9rem;
}

.member-form-limit {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #7b8491;
}


/* =========================================================
   SELECTED LOAN PRODUCT
   ========================================================= */

.loan-product-summary {
    border: 1px solid #dce5f2;
    background: #f8fbff;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.4rem;
}

.loan-product-summary-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #74829a;
}

.loan-product-summary-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3d54;
    margin-top: 0.15rem;
}

.loan-product-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.loan-product-detail {
    min-width: 0;
}

.loan-product-detail-label {
    color: #7b8491;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.loan-product-detail-value {
    color: #354052;
    font-size: 0.82rem;
    font-weight: 650;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.member-primary-action {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: #3f6fc5;
    color: #fff;
    font-weight: 650;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    transition: opacity 0.15s ease;
}

    .member-primary-action:hover:not(:disabled) {
        opacity: 0.92;
    }

    .member-primary-action:disabled {
        opacity: 0.65;
    }

.member-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border: 1px solid #d4dce7;
    border-radius: 10px;
    background: #fff;
    color: #49617f;
    font-size: 0.85rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

    .member-secondary-action:hover {
        background: #f8fafc;
    }


/* =========================================================
   LOADING / EMPTY STATES
   ========================================================= */

.member-loading-state {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #6c757d;
    padding: 1rem 0;
}

.member-loading-large {
    min-height: 280px;
    justify-content: center;
}

.member-empty-state {
    border: 1px dashed #d7dde5;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    background: #fbfcfd;
}

.member-empty-large {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-empty-title {
    color: #354052;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.member-empty-description {
    color: #7b8491;
    font-size: 0.88rem;
    line-height: 1.5;
}


/* =========================================================
   LOAN REQUEST CARDS
   ========================================================= */

.loan-request-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loan-request-card {
    border: 1px solid #e0e5eb;
    border-radius: 14px;
    padding: 1.1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .loan-request-card:hover {
        border-color: #cdd7e5;
        box-shadow: 0 5px 18px rgba(31, 43, 58, 0.04);
    }

.loan-request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.loan-request-type {
    font-size: 1rem;
    font-weight: 700;
    color: #344054;
}

.loan-request-code {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #8a94a3;
}

.loan-request-status {
    flex-shrink: 0;
    background: #edf7ef;
    color: #3c7b54;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.loan-request-amount {
    margin-top: 1.15rem;
    color: #263447;
    font-size: 1.45rem;
    font-weight: 750;
}

.loan-request-amount-label {
    margin-top: 0.1rem;
    font-size: 0.75rem;
    color: #7b8491;
}

.loan-request-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid #edf0f3;
}

.loan-request-detail-label,
.loan-request-purpose-label {
    font-size: 0.7rem;
    color: #8a94a3;
    margin-bottom: 0.25rem;
}

.loan-request-detail-value {
    color: #475467;
    font-size: 0.85rem;
    font-weight: 600;
}

.loan-request-purpose {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #edf0f3;
}

.loan-request-purpose-value {
    color: #667085;
    font-size: 0.85rem;
    line-height: 1.5;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .loan-request-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {

    .member-page {
        padding: 1.25rem 1rem 2rem;
    }

    .member-page-header {
        flex-direction: column;
        align-items: stretch;
    }

        .member-page-header .member-secondary-action {
            align-self: flex-start;
        }

    .member-panel {
        padding: 1.15rem;
    }

    .member-panel-header-inline {
        flex-direction: column;
    }

    .loan-product-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .member-page-title {
        font-size: 1.65rem;
    }

    .loan-request-card-header {
        flex-direction: column;
    }

    .loan-request-details {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   LOAN REQUESTS
   ========================================== */

.loan-request-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}


/* ==========================================
   LOAN APPLICATION
   ========================================== */

.loan-application-panel {
    min-width: 0;
}


.loan-product-summary {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.02);
}


.loan-product-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}


.loan-product-summary-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.6;
}


.loan-product-summary-name {
    margin-top: 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}


.loan-product-rate {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.06);
}


.loan-product-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}


.loan-product-summary-item {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.65);
}


    .loan-product-summary-item span {
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.75rem;
        opacity: 0.65;
    }


    .loan-product-summary-item strong {
        font-size: 0.9rem;
    }


.member-input-with-prefix,
.member-input-with-suffix {
    position: relative;
}


.member-input-prefix,
.member-input-suffix {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0.65;
}


.member-input-prefix {
    left: 1rem;
}


.member-input-suffix {
    right: 1rem;
}


.member-form-control-with-prefix {
    padding-left: 2rem !important;
}


.member-form-control-with-suffix {
    padding-right: 5.5rem !important;
}


.member-textarea {
    resize: vertical;
    min-height: 110px;
}


.loan-application-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.75rem;
}


.loan-application-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.85rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.035);
}


.loan-application-note-icon {
    display: flex;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
}


.loan-submit-button {
    width: 100%;
    justify-content: center;
}


/* ==========================================
   DOCUMENT PANEL
   ========================================== */

.loan-documents-panel {
    min-width: 0;
}


.loan-documents-header {
    align-items: flex-start;
}


.loan-document-progress {
    min-width: 74px;
    padding: 0.7rem;
    text-align: center;
    border-radius: 0.9rem;
    background: rgba(0, 0, 0, 0.045);
}


.loan-document-progress-count {
    font-size: 1.05rem;
    font-weight: 800;
}


.loan-document-progress-label {
    margin-top: 0.1rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}


/* ==========================================
   WAITING STATE
   ========================================== */

.loan-documents-awaiting {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
}


.loan-documents-awaiting-icon {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.06);
}


.loan-documents-awaiting-title {
    margin-bottom: 0.3rem;
    font-weight: 700;
}


.loan-documents-awaiting-description {
    font-size: 0.85rem;
    line-height: 1.55;
    opacity: 0.65;
}


/* ==========================================
   DOCUMENT STATUS
   ========================================== */

.loan-documents-status {
    margin-bottom: 1rem;
}


.loan-documents-complete,
.loan-documents-pending {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
}


.loan-documents-complete {
    background: rgba(25, 135, 84, 0.09);
}


.loan-documents-pending {
    background: rgba(255, 193, 7, 0.11);
}


.loan-documents-complete-icon,
.loan-documents-pending-icon {
    display: flex;
    width: 1.65rem;
    height: 1.65rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
}


.loan-documents-complete-icon {
    color: #fff;
    background: #198754;
}


.loan-documents-pending-icon {
    background: rgba(255, 193, 7, 0.35);
}


.loan-documents-complete strong,
.loan-documents-pending strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.88rem;
}


.loan-documents-complete span,
.loan-documents-pending span {
    display: block;
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.7;
}


/* ==========================================
   DOCUMENT CARDS
   ========================================== */

.loan-document-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}


.loan-document-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}


    .loan-document-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    }


.loan-document-card-selected {
    border-color: rgba(13, 110, 253, 0.45);
}


.loan-document-card-complete {
    border-color: rgba(25, 135, 84, 0.3);
}


.loan-document-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


.loan-document-icon {
    display: flex;
    width: 2.7rem;
    height: 2.7rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.055);
}


.loan-document-state {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.loan-document-state-required {
    opacity: 0.55;
}


.loan-document-state-selected {
    color: #0d6efd;
}


.loan-document-state-success {
    color: #198754;
}


.loan-document-card-content {
    margin-top: 0.85rem;
}


    .loan-document-card-content h3 {
        margin: 0 0 0.3rem;
        font-size: 0.95rem;
        font-weight: 700;
    }


    .loan-document-card-content p {
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.45;
        opacity: 0.65;
    }


/* ==========================================
   FILE DISPLAY
   ========================================== */

.loan-document-file {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.035);
}


.loan-document-file-uploaded {
    background: rgba(25, 135, 84, 0.075);
}


.loan-document-file-icon {
    display: flex;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.07);
}


.loan-document-file-uploaded
.loan-document-file-icon {
    color: #fff;
    background: #198754;
}


.loan-document-file-details {
    min-width: 0;
}


.loan-document-file-name {
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.loan-document-file-meta {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    opacity: 0.6;
}


/* ==========================================
   DOCUMENT UPLOAD ZONE
   ========================================== */

.loan-document-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 105px;
    margin-top: 1rem;
    padding: 1rem;
    cursor: pointer;
    border: 1px dashed rgba(0, 0, 0, 0.18);
    border-radius: 0.85rem;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}


    .loan-document-upload-zone:hover {
        border-color: rgba(13, 110, 253, 0.45);
        background: rgba(13, 110, 253, 0.035);
    }


.loan-document-upload-zone-icon {
    display: flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    border-radius: 0.65rem;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.055);
}


.loan-document-upload-zone-title {
    font-size: 0.82rem;
    font-weight: 700;
}


.loan-document-upload-zone-text {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    opacity: 0.55;
}


.loan-document-hidden-input {
    display: none;
}


/* ==========================================
   DOCUMENT ACTIONS
   ========================================== */

.loan-document-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
}


.loan-document-change,
.loan-document-replace {
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0d6efd;
}


.loan-document-actions
.loan-document-change {
    margin-left: 0.25rem;
}


.loan-document-upload-button {
    flex: 1;
    min-height: 2.35rem;
    border: none;
    border-radius: 0.65rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    background: #0d6efd;
    transition: opacity 0.2s ease, transform 0.2s ease;
}


    .loan-document-upload-button:hover:not(:disabled) {
        transform: translateY(-1px);
    }


    .loan-document-upload-button:disabled {
        cursor: not-allowed;
        opacity: 0.65;
    }


.loan-document-replace {
    display: inline-block;
    margin-top: 0.75rem;
}


/* ==========================================
   REQUEST HISTORY
   ========================================== */

.loan-request-history-panel {
    margin-top: 1.5rem;
}


.loan-request-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}


.loan-request-card {
    padding: 1.15rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: #fff;
}


.loan-request-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}


.loan-request-type {
    font-size: 0.95rem;
    font-weight: 700;
}


.loan-request-code {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    opacity: 0.55;
}


.loan-request-status {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.09);
}


.loan-request-amount {
    margin-top: 1.5rem;
    font-size: 1.45rem;
    font-weight: 800;
}


.loan-request-amount-label {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    opacity: 0.55;
}


.loan-request-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
}


.loan-request-detail {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}


.loan-request-detail-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.5;
}


.loan-request-detail-value {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
}


.loan-request-purpose {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}


.loan-request-purpose-label {
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.55;
}


.loan-request-purpose-value {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.75;
}


.auth-demo-code {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
}

    .auth-demo-code span {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        margin-bottom: 0.5rem;
    }

    .auth-demo-code strong {
        display: block;
        font-size: 2rem;
        letter-spacing: 0.2em;
    }

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1199.98px) {

    .loan-request-layout {
        grid-template-columns: 1fr;
    }

    .loan-request-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 767.98px) {

    .loan-product-summary-grid {
        grid-template-columns: 1fr;
    }

    .loan-document-progress {
        min-width: 64px;
    }

    .loan-request-list {
        grid-template-columns: 1fr;
    }

    .loan-request-details {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 575.98px) {

    .loan-product-summary-header {
        flex-direction: column;
    }

    .loan-document-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .loan-document-actions
        .loan-document-change {
            margin-left: 0;
            text-align: center;
        }

    .loan-documents-awaiting {
        flex-direction: column;
    }
}