.member-portal-shell {
    min-height: 100vh;
    background: #f4f7f5;
}

.member-portal-header {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand));
    color: #fff;
    box-shadow: 0 8px 24px rgba(9, 42, 32, .12);
}

.member-portal-header-inner {
    min-height: 72px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.member-portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

    .member-portal-brand:hover {
        color: #fff;
    }

    .member-portal-brand img {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        object-fit: cover;
        background: #fff;
        border: 1px solid rgba(255, 255, 255, .25);
    }

    .member-portal-brand strong,
    .member-portal-brand small {
        display: block;
    }

    .member-portal-brand strong {
        font-size: 16px;
        letter-spacing: .025em;
    }

    .member-portal-brand small {
        margin-top: 2px;
        color: rgba(255, 255, 255, .68);
        font-size: 13px;
    }

.member-portal-account {
    display: flex;
    align-items: center;
    gap: 14px;
}

.member-portal-account-copy {
    text-align: right;
    line-height: 1.2;
}

    .member-portal-account-copy strong,
    .member-portal-account-copy small {
        display: block;
    }

    .member-portal-account-copy strong {
        font-size: 14px;
    }

    .member-portal-account-copy small {
        margin-top: 3px;
        color: rgba(255, 255, 255, .64);
        font-size: 12px;
    }

.member-portal-signout {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-color: rgba(255, 255, 255, .3);
}

.member-portal-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.member-portal-nav-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .member-portal-nav-inner::-webkit-scrollbar {
        display: none;
    }

.member-portal-nav-link {
    min-height: 52px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    color: #66736e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .member-portal-nav-link:hover {
        color: var(--brand);
    }

    .member-portal-nav-link.active {
        color: var(--brand);
        border-bottom-color: var(--brand);
        font-weight: 750;
    }

.member-portal-main {
    min-height: calc(100vh - 124px);
}

.member-portal-content {
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px 28px 48px;
}

.member-portal-kicker {
    display: block;
    margin-bottom: 5px;
    color: #8a7a4f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
}

.member-portal-welcome-card {
    padding: 30px 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-radius: 20px;
    background: radial-gradient(circle at 90% 20%, rgba(199, 165, 74, .28), transparent 24%), linear-gradient(135deg, var(--brand-deep), #205f49);
    color: #fff;
    box-shadow: 0 12px 32px rgba(12, 52, 39, .14);
}

    .member-portal-welcome-card h1 {
        margin: 0 0 7px;
        font-size: clamp(25px, 3vw, 36px);
        font-weight: 800;
        letter-spacing: -.035em;
    }

    .member-portal-welcome-card p {
        margin: 0;
        color: rgba(255, 255, 255, .78);
        font-size: 15px;
    }

.member-portal-member-status {
    min-width: 150px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 13px;
    background: rgba(255, 255, 255, .08);
}

    .member-portal-member-status span,
    .member-portal-member-status small {
        display: block;
    }

    .member-portal-member-status span {
        font-weight: 800;
    }

    .member-portal-member-status small {
        margin-top: 3px;
        color: rgba(255, 255, 255, .62);
        font-size: 12px;
    }

.member-portal-metric-grid,
.member-portal-summary-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.member-portal-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-financial-summary {
    border-top: 1px solid var(--line);
}

.member-financial-summary-identity {
    padding: 16px 20px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

    .member-financial-summary-identity > div {
        min-width: 0;
    }

    .member-financial-summary-identity h2,
    .member-financial-summary-identity h3 {
        margin: 0;
        color: var(--ink);
        font-size: 17px;
        font-weight: 750;
    }

    .member-financial-summary-identity p {
        margin: 4px 0 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.4;
    }

    .member-financial-summary-identity .member-portal-status {
        flex: 0 0 auto;
    }

.member-financial-identity-value {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.member-financial-detail-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 20px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8faf9;
    overflow: hidden;
}

.member-financial-detail {
    min-width: 0;
    padding: 13px 16px;
}

    .member-financial-detail + .member-financial-detail {
        border-left: 1px solid var(--line);
    }

    .member-financial-detail small,
    .member-financial-detail strong,
    .member-financial-detail span {
        display: block;
    }

    .member-financial-detail small {
        color: var(--muted);
        font-size: 13px;
        font-weight: 650;
    }

    .member-financial-detail strong {
        margin-top: 4px;
        color: var(--ink);
        font-size: 18px;
        font-weight: 800;
        line-height: 1.25;
    }

    .member-financial-detail span {
        margin-top: 3px;
        color: #89948f;
        font-size: 13px;
        line-height: 1.35;
    }

.member-capital-financial-summary + .table-responsive {
    border-top: 1px solid var(--line);
}

.member-portal-metric,
.member-portal-summary-card,
.member-portal-panel,
.member-portal-state-card,
.member-notice-card {
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 6px 20px rgba(32, 57, 48, .04);
}

.member-portal-metric {
    position: relative;
    padding: 18px 19px;
    border-radius: 15px;
    text-align: left;
    color: var(--ink);
}

    .member-portal-metric:hover {
        border-color: #c8d9d2;
        box-shadow: 0 10px 24px rgba(32, 57, 48, .08);
    }

    .member-portal-metric small,
    .member-portal-metric strong,
    .member-portal-metric em {
        display: block;
    }

    .member-portal-metric small {
        color: var(--muted);
        font-size: 13px;
        font-weight: 650;
    }

    .member-portal-metric strong {
        margin-top: 7px;
        padding-right: 36px;
        font-size: 24px;
        font-style: normal;
        font-weight: 800;
        letter-spacing: -.03em;
    }

    .member-portal-metric em {
        margin-top: 5px;
        color: #7f8b86;
        font-size: 12px;
        font-style: normal;
    }

.member-portal-metric-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
}

.member-portal-panel {
    border-radius: 16px;
    overflow: hidden;
}

.member-portal-panel-head {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .member-portal-panel-head h2 {
        margin: 0;
        font-size: 17px;
        font-weight: 750;
    }

.member-portal-count {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

.member-portal-quick-grid {
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

    .member-portal-quick-grid button {
        padding: 15px;
        display: grid;
        grid-template-columns: 34px 1fr;
        grid-template-rows: auto auto;
        column-gap: 11px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fbfcfb;
        text-align: left;
        color: var(--ink);
    }

        .member-portal-quick-grid button:hover {
            background: var(--brand-soft);
            border-color: #c8d9d2;
        }

    .member-portal-quick-grid i {
        grid-row: 1 / 3;
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        background: #fff;
        color: var(--brand);
        font-size: 16px;
    }

    .member-portal-quick-grid span {
        font-size: 14px;
        font-weight: 750;
    }

    .member-portal-quick-grid small {
        color: var(--muted);
        font-size: 12px;
        line-height: 1.4;
    }

.member-standing-list {
    padding: 0 20px 20px;
}

    .member-standing-list > div {
        padding: 12px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
    }

        .member-standing-list > div:last-child {
            border-bottom: 0;
        }

    .member-standing-list span {
        color: var(--muted);
    }

    .member-standing-list strong {
        text-align: right;
    }

.member-portal-page-head {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

    .member-portal-page-head h1 {
        margin: 0 0 5px;
        font-size: 26px;
        font-weight: 800;
        letter-spacing: -.025em;
    }

    .member-portal-page-head p {
        max-width: 760px;
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
    }

.member-portal-summary-card {
    padding: 18px 20px;
    border-radius: 15px;
}

    .member-portal-summary-card small,
    .member-portal-summary-card strong,
    .member-portal-summary-card span {
        display: block;
    }

    .member-portal-summary-card small {
        color: var(--muted);
        font-size: 13px;
        font-weight: 650;
    }

    .member-portal-summary-card strong {
        margin-top: 6px;
        font-size: 25px;
        font-weight: 800;
        letter-spacing: -.03em;
    }

    .member-portal-summary-card span {
        margin-top: 4px;
        color: #89948f;
        font-size: 12px;
    }

    .member-portal-summary-card.primary {
        background: linear-gradient(135deg, var(--brand-deep), var(--brand));
        color: #fff;
        border-color: transparent;
    }

        .member-portal-summary-card.primary small,
        .member-portal-summary-card.primary span {
            color: rgba(255, 255, 255, .67);
        }

.member-portal-table-toolbar {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.member-portal-search {
    max-width: 540px;
    min-height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #89948f;
}

    .member-portal-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 14px;
    }

.member-portal-table {
    font-size: 14px;
}

    .member-portal-table thead th {
        padding: 11px 16px;
        border-bottom: 1px solid var(--line);
        background: #f8faf9;
        color: #78837e;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .member-portal-table tbody td {
        padding: 13px 16px;
        border-color: var(--line);
        vertical-align: middle;
    }

    .member-portal-table tbody tr:last-child td {
        border-bottom: 0;
    }

.member-portal-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2f0;
    color: #68746f;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

    .member-portal-status.success {
        background: #e7f4ed;
        color: #247653;
    }

    .member-portal-status.warning {
        background: #fff4dc;
        color: #9c6c12;
    }

    .member-portal-status.danger {
        background: #fbeaea;
        color: #a54040;
    }

    .member-portal-status.muted {
        background: #f0f2f1;
        color: #7c8581;
    }

.member-portal-state-card {
    min-height: 240px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 16px;
    text-align: center;
}

    .member-portal-state-card span {
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
    }

.member-portal-inline-empty {
    padding: 24px 20px;
    color: var(--muted);
    font-size: 14px;
}

.member-portal-icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-portal-confirm-box {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid #f0d7d7;
    border-radius: 12px;
    background: #fff8f8;
}

    .member-portal-confirm-box > i {
        color: #a54040;
        font-size: 22px;
    }

    .member-portal-confirm-box p {
        margin-top: 4px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
    }

.member-process-list,
.member-assistance-types {
    padding: 0 20px 20px;
}

    .member-process-list > div,
    .member-assistance-types > div {
        padding: 13px 0;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        border-bottom: 1px solid var(--line);
    }

        .member-process-list > div:last-child,
        .member-assistance-types > div:last-child {
            border-bottom: 0;
        }

        .member-process-list > div > span {
            width: 28px;
            height: 28px;
            flex: 0 0 28px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background: var(--brand-soft);
            color: var(--brand);
            font-size: 12px;
            font-weight: 800;
        }

    .member-process-list strong,
    .member-process-list small,
    .member-assistance-types strong,
    .member-assistance-types small {
        display: block;
    }

    .member-process-list strong,
    .member-assistance-types strong {
        font-size: 14px;
    }

    .member-process-list small,
    .member-assistance-types small {
        margin-top: 3px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.5;
    }

    .member-assistance-types i {
        width: 31px;
        height: 31px;
        flex: 0 0 31px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        background: var(--brand-soft);
        color: var(--brand);
    }

.member-notice-list {
    display: grid;
    gap: 12px;
}

.member-notice-card {
    padding: 17px 19px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-radius: 14px;
}

.member-notice-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #edf3f0;
    color: var(--brand);
}

.member-notice-card.warning .member-notice-icon {
    background: #fff4dc;
    color: #9c6c12;
}

.member-notice-card.danger .member-notice-icon {
    background: #fbeaea;
    color: #a54040;
}

.member-notice-card.success .member-notice-icon {
    background: #e7f4ed;
    color: #247653;
}

.member-notice-content {
    min-width: 0;
    flex: 1;
}

.member-notice-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #89948f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.member-notice-content h2 {
    margin: 5px 0 3px;
    font-size: 16px;
    font-weight: 750;
}

.member-notice-content p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.member-login-view {
    min-height: 100vh;
    padding: 32px 18px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 12% 10%, rgba(199, 165, 74, .18), transparent 22%), linear-gradient(145deg, #edf3f0, #f8faf9 50%, #eef4f1);
}

.member-login-card {
    width: min(100%, 560px);
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(24, 58, 47, .12);
}

.member-login-brand {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 13px;
}

    .member-login-brand img {
        width: 50px;
        height: 50px;
        border-radius: 13px;
        object-fit: cover;
    }

    .member-login-brand span {
        color: #8a7a4f;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .11em;
    }

    .member-login-brand h1 {
        margin: 2px 0 0;
        font-size: 21px;
        font-weight: 800;
    }

.member-login-heading {
    margin-bottom: 20px;
}

    .member-login-heading h2 {
        margin: 0 0 5px;
        font-size: 20px;
        font-weight: 800;
    }

    .member-login-heading p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
    }

.member-login-password-note {
    color: var(--muted);
    font-size: 12px;
}

.member-login-switch,
.member-login-staff-link {
    margin-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.member-login-staff-link {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

    .member-login-switch a,
    .member-login-staff-link a {
        color: var(--brand);
        font-weight: 700;
    }

@media (max-width: 991.98px) {
    .member-portal-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-financial-detail-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-financial-detail + .member-financial-detail {
        border-left: 0;
    }

    .member-financial-detail:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .member-financial-detail:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 767.98px) {
    .member-portal-header-inner,
    .member-portal-nav-inner,
    .member-portal-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .member-portal-nav-link {
        min-height: 48px;
        padding: 0 10px;
        font-size: 14px;
    }

    .member-portal-welcome-card,
    .member-portal-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-portal-member-status {
        min-width: 0;
        width: 100%;
    }

    .member-portal-summary-grid {
        grid-template-columns: 1fr;
    }

    .member-financial-summary-identity {
        padding: 15px 16px 13px;
    }

    .member-financial-detail-band {
        grid-template-columns: 1fr;
        margin: 0 16px 14px;
    }

    .member-financial-detail:nth-child(even) {
        border-left: 0;
    }

    .member-financial-detail:nth-child(n + 2) {
        border-top: 1px solid var(--line);
    }

    .member-portal-quick-grid {
        grid-template-columns: 1fr;
    }

    .member-login-card {
        padding: 24px 20px;
    }
}

@media (max-width: 520px) {
    .member-portal-metric-grid {
        grid-template-columns: 1fr;
    }

    .member-portal-brand strong {
        font-size: 15px;
    }

    .member-portal-brand small {
        font-size: 12px;
    }
}


/* Member Portal readability baseline — older-member/staff friendly. */
.member-portal-signout {
    min-height: 40px;
    font-size: 14px;
}

.member-portal-panel-head p,
.member-portal-panel p,
.member-portal-panel small,
.member-portal-state-card small {
    font-size: 13px;
    line-height: 1.45;
}

/* Member home action inbox and request updates. */
.member-home-inbox-panel {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(32, 57, 48, .04);
}

.member-home-inbox-panel-attention {
    border-color: #ead8d3;
    box-shadow: 0 8px 24px rgba(118, 58, 42, .06);
}

.member-home-inbox-head {
    padding: 18px 20px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.member-home-inbox-head h2,
.member-home-updates-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.member-home-inbox-head p,
.member-home-updates-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.member-home-inbox-count {
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f8e9e5;
    color: #9b3d2c;
    font-size: 13px;
    font-weight: 800;
}

.member-home-inbox-list {
    border-top: 1px solid var(--line);
}

.member-home-inbox-item {
    width: 100%;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    text-align: left;
    color: var(--ink);
}

.member-home-inbox-item:last-child {
    border-bottom: 0;
}

.member-home-inbox-item:hover {
    background: #fbfcfb;
}

.member-home-inbox-item.danger {
    background: #fffafa;
}

.member-home-inbox-item.warning {
    background: #fffdf7;
}

.member-home-inbox-icon,
.member-home-update-icon,
.member-home-all-clear-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.member-home-inbox-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 18px;
}

.member-home-inbox-item.danger .member-home-inbox-icon,
.member-home-update-icon.danger,
.member-home-status-chip.danger {
    background: #f9e8e5;
    color: #a33d2d;
}

.member-home-inbox-item.warning .member-home-inbox-icon,
.member-home-update-icon.warning,
.member-home-status-chip.warning {
    background: #fff2d7;
    color: #95640a;
}

.member-home-update-icon.success,
.member-home-status-chip.success {
    background: #e7f4ed;
    color: #1b6c4e;
}

.member-home-update-icon.info,
.member-home-status-chip.info {
    background: #e9f1f7;
    color: #32647d;
}

.member-home-inbox-copy,
.member-home-inbox-copy strong,
.member-home-inbox-copy small,
.member-home-update-copy,
.member-home-update-copy strong,
.member-home-update-copy small {
    display: block;
}

.member-home-inbox-copy strong,
.member-home-update-copy strong {
    font-size: 14px;
    font-weight: 800;
}

.member-home-inbox-copy small,
.member-home-update-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.member-home-inbox-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.member-home-all-clear {
    margin-top: 20px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid #cfe3d9;
    border-radius: 15px;
    background: #f7fbf8;
}

.member-home-all-clear-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2f1e9;
    color: #216a4e;
    font-size: 20px;
}

.member-home-all-clear strong,
.member-home-all-clear span {
    display: block;
}

.member-home-all-clear strong {
    font-size: 14px;
    font-weight: 800;
}

.member-home-all-clear span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.member-home-metric-grid .member-portal-metric-alert {
    border-color: #e8c9c2;
    background: linear-gradient(180deg, #fff, #fffafa);
}

.member-home-metric-grid .member-portal-metric-alert .member-portal-metric-icon {
    background: #f9e8e5;
    color: #a33d2d;
}

.member-home-metric-grid .member-portal-metric-pending {
    border-color: #ead9ad;
    background: linear-gradient(180deg, #fff, #fffdf7);
}

.member-home-metric-grid .member-portal-metric-pending .member-portal-metric-icon {
    background: #fff2d7;
    color: #95640a;
}

.member-home-metric-grid .member-portal-metric-good {
    border-color: #cfe3d9;
    background: linear-gradient(180deg, #fff, #f8fcfa);
}

.member-home-updates-head {
    align-items: flex-start;
}

.member-home-update-list {
    border-top: 1px solid var(--line);
}

.member-home-update-item {
    width: 100%;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    text-align: left;
    color: var(--ink);
}

.member-home-update-item:last-child {
    border-bottom: 0;
}

.member-home-update-item:hover {
    background: #fbfcfb;
}

.member-home-update-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 16px;
}

.member-home-update-meta {
    min-width: 105px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #8a9691;
    font-size: 12px;
}

.member-home-status-chip {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.member-home-updates-empty {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.member-home-updates-empty i {
    color: #9badA5;
    font-size: 28px;
}

.member-home-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
    .member-home-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .member-home-inbox-head {
        gap: 12px;
    }

    .member-home-inbox-item,
    .member-home-update-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .member-home-inbox-action,
    .member-home-update-meta {
        grid-column: 2;
        justify-content: flex-start;
        min-width: 0;
    }

    .member-home-quick-grid {
        grid-template-columns: 1fr;
    }
}

/* Secure member portal activation */
.member-login-assist-divider {
    position: relative;
    margin: 18px 0 12px;
    text-align: center;
    color: #97a09c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.member-login-assist-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.member-login-assist-divider span {
    position: relative;
    padding: 0 10px;
    background: #fff;
}

.member-login-staff-code-link,
.member-login-back,
.member-activation-secondary-actions button {
    border: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 750;
}

.member-login-staff-code-link {
    width: 100%;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-size: 13px;
}

.member-login-staff-code-link:hover,
.member-login-back:hover,
.member-activation-secondary-actions button:hover {
    background: rgba(30, 106, 79, .07);
}

.member-activation-methods {
    display: grid;
    gap: 10px;
}

.member-activation-method {
    width: 100%;
    min-height: 74px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #dce7e2;
    border-radius: 14px;
    background: #fbfdfc;
    color: #18382e;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.member-activation-method:hover:not(:disabled) {
    border-color: rgba(30, 106, 79, .42);
    box-shadow: 0 9px 22px rgba(24, 58, 47, .08);
    transform: translateY(-1px);
}

.member-activation-method > span:nth-child(2) {
    min-width: 0;
}

.member-activation-method strong,
.member-activation-method small {
    display: block;
}

.member-activation-method strong {
    font-size: 14px;
    font-weight: 800;
}

.member-activation-method small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.member-activation-method-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eaf4ef;
    color: var(--brand);
    font-size: 19px;
}

.member-login-back {
    margin-top: 14px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 9px;
    font-size: 13px;
}

.member-activation-code-context,
.member-activation-verified {
    margin-bottom: 16px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid #dce7e2;
    border-radius: 13px;
    background: #f7fbf9;
}

.member-activation-code-context strong,
.member-activation-code-context small,
.member-activation-verified strong,
.member-activation-verified small {
    display: block;
}

.member-activation-code-context strong,
.member-activation-verified strong {
    color: #173d31;
    font-size: 13px;
    font-weight: 800;
}

.member-activation-code-context small,
.member-activation-verified small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.member-activation-code-input {
    min-height: 48px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
}

.member-activation-verified {
    border-color: #cfe7db;
    background: #f0f8f4;
}

.member-activation-verified > i {
    color: #21815d;
    font-size: 23px;
}

.member-activation-secondary-actions {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.member-activation-secondary-actions button {
    padding: 7px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    font-size: 12px;
}

.member-activation-secondary-actions button:disabled {
    opacity: .5;
}

/* Member remote payments */
.member-payments-head {
    align-items: center;
}

.member-payment-pending-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #ead7a3;
    border-radius: 999px;
    background: #fff8e7;
    color: #8a6413;
    font-size: 13px;
    font-weight: 750;
}

.member-payment-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 18px;
    align-items: start;
}

.member-payment-proof-panel {
    grid-column: 1 / -1;
}

.member-payment-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.member-payment-section-head h2 {
    margin: 2px 0 3px;
    font-size: 18px;
}

.member-payment-section-head p {
    margin: 0;
    color: #718078;
    font-size: 13px;
}

.member-payment-total {
    flex: 0 0 auto;
    text-align: right;
}

.member-payment-total small,
.member-payment-total strong {
    display: block;
}

.member-payment-total small {
    color: #7a8781;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.member-payment-total strong {
    color: var(--brand);
    font-size: 22px;
}

.member-payment-option-list,
.member-payment-history-list {
    display: grid;
    gap: 8px;
}

.member-payment-option {
    display: grid;
    grid-template-columns: 28px minmax(160px, 1fr) minmax(120px, .55fr) minmax(132px, .55fr);
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #dfe8e3;
    border-radius: 12px;
    background: #fff;
}

.member-payment-option.selected {
    border-color: #9dc9b8;
    background: #fbfefc;
    box-shadow: 0 0 0 2px rgba(21, 93, 70, .05);
}

.member-payment-option-check {
    position: relative;
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.member-payment-option-check input {
    position: absolute;
    opacity: 0;
}

.member-payment-option-check span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1.5px solid #a8bbb2;
    border-radius: 6px;
    background: #fff;
}

.member-payment-option-check input:checked + span {
    border-color: var(--brand);
    background: var(--brand);
}

.member-payment-option-check input:checked + span::after {
    content: "✓";
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.member-payment-option-main strong,
.member-payment-option-main span,
.member-payment-option-main small,
.member-payment-option-balance small,
.member-payment-option-balance strong,
.member-payment-option-amount small {
    display: block;
}

.member-payment-option-main strong {
    color: #213029;
    font-size: 14px;
}

.member-payment-option-main span,
.member-payment-option-balance small,
.member-payment-option-amount small {
    color: #75827c;
    font-size: 11px;
}

.member-payment-option-main small {
    margin-top: 3px;
    color: #9a7118;
    font-size: 10px;
    font-weight: 700;
}

.member-payment-option-main .member-payment-option-agreement {
    color: var(--brand);
    font-weight: 700;
}

.member-payment-option-main .member-payment-option-agreement-meta {
    margin-top: 2px;
    color: #75827c;
    font-size: 10px;
}

.member-payment-option-balance strong {
    margin-top: 2px;
    color: #26362f;
    font-size: 13px;
}

.member-payment-option-amount .input-group-text,
.member-payment-option-amount .form-control {
    min-height: 36px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 13px;
}

.member-payment-empty {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px dashed #cad9d1;
    border-radius: 12px;
    background: #f8fbf9;
    color: #65756d;
}

.member-payment-empty > i {
    color: var(--brand);
    font-size: 24px;
}

.member-payment-empty strong,
.member-payment-empty span {
    display: block;
}

.member-payment-empty span {
    margin-top: 2px;
    font-size: 12px;
}

.member-payment-empty.warning > i {
    color: #9a7118;
}

.member-payment-destination-card {
    margin-top: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid #dce7e1;
    border-radius: 14px;
    background: #f9fcfa;
}

.member-payment-qr {
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    padding: 6px;
    border: 1px solid #d9e3de;
    border-radius: 10px;
    background: #fff;
}

.member-payment-qr img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.member-payment-destination-copy > span {
    color: #9a7118;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.member-payment-destination-copy h3 {
    margin: 2px 0 9px;
    font-size: 17px;
}

.member-payment-destination-copy div + div {
    margin-top: 7px;
}

.member-payment-destination-copy small,
.member-payment-destination-copy strong {
    display: block;
}

.member-payment-destination-copy small {
    color: #79867f;
    font-size: 10px;
}

.member-payment-destination-copy strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.member-payment-instructions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f2f7f4;
    color: #56675f;
    font-size: 12px;
    white-space: pre-line;
}

.member-payment-proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.member-payment-file-picker {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid #d6e1dc;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.member-payment-file-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.member-payment-file-picker > i {
    color: var(--brand);
    font-size: 17px;
}

.member-payment-file-picker strong,
.member-payment-file-picker small {
    display: block;
}

.member-payment-file-picker strong {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.member-payment-file-picker small {
    color: #7b8881;
    font-size: 10px;
}

.member-payment-submit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5ece8;
}

.member-payment-submit-bar > div span,
.member-payment-submit-bar > div strong {
    display: block;
}

.member-payment-submit-bar > div span {
    color: #718078;
    font-size: 11px;
}

.member-payment-submit-bar > div strong {
    color: var(--brand);
    font-size: 20px;
}

.member-payment-history-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e1e9e5;
    border-radius: 11px;
    background: #fff;
}

.member-payment-history-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #edf6f1;
    color: var(--brand);
}

.member-payment-history-icon.pending {
    background: #fff5df;
    color: #987017;
}

.member-payment-history-icon.rejected {
    background: #fff0f0;
    color: #b23c3c;
}

.member-payment-history-main strong,
.member-payment-history-main span,
.member-payment-history-main small,
.member-payment-history-end strong {
    display: block;
}

.member-payment-history-main span {
    color: #4e6057;
    font-size: 12px;
}

.member-payment-history-main small {
    color: #7b8881;
    font-size: 10px;
}

.member-payment-history-end {
    text-align: right;
}

.member-payment-history-end strong {
    margin-bottom: 4px;
}

@media (max-width: 991.98px) {
    .member-payment-workspace,
    .member-payment-proof-grid {
        grid-template-columns: 1fr;
    }

    .member-payment-proof-panel {
        grid-column: auto;
    }

    .member-payment-option {
        grid-template-columns: 28px minmax(0, 1fr) minmax(120px, .5fr);
    }

    .member-payment-option-amount {
        grid-column: 2 / -1;
    }
}

@media (max-width: 575.98px) {
    .member-payment-option {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .member-payment-option-balance,
    .member-payment-option-amount {
        grid-column: 2;
    }

    .member-payment-destination-card {
        grid-template-columns: 1fr;
    }

    .member-payment-qr {
        width: 100%;
        height: 190px;
    }

    .member-payment-submit-bar,
    .member-payment-history-row {
        align-items: stretch;
    }

    .member-payment-submit-bar {
        flex-direction: column;
    }

    .member-payment-submit-bar .btn {
        width: 100%;
    }

    .member-payment-history-row {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .member-payment-history-end {
        grid-column: 2;
        text-align: left;
    }
}

/* Remote payment UX corrections */
.member-payment-option {
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.member-payment-option:hover {
    border-color: #bfd5ca;
}

.member-payment-option:focus-visible {
    outline: 3px solid rgba(21, 93, 70, .15);
    outline-offset: 2px;
}

.member-payment-proof-panel.locked {
    position: relative;
    background: #fafcfb;
}

.member-payment-proof-panel.locked .member-payment-proof-grid,
.member-payment-proof-panel.locked .member-payment-submit-bar {
    opacity: .52;
}

.member-payment-proof-panel.locked .member-payment-file-picker {
    cursor: not-allowed;
}

.member-contribution-outstanding .member-payment-section-head {
    margin-bottom: 14px;
}

.member-contribution-obligation-list {
    display: grid;
    gap: 8px;
}

.member-contribution-obligation {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 18px;
    gap: 12px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid #dde7e2;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

.member-contribution-obligation:hover {
    border-color: #b9cec4;
    background: #f9fcfa;
    color: inherit;
}

.member-contribution-obligation-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf6f1;
    color: var(--brand);
}

.member-contribution-obligation.overdue {
    border-color: #eadbd3;
    background: #fffaf8;
}

.member-contribution-obligation.overdue:hover {
    border-color: #d7b7aa;
    background: #fff7f3;
}

.member-contribution-obligation.overdue .member-contribution-obligation-icon {
    background: #fae8e1;
    color: #a94c34;
}

.member-contribution-obligation.upcoming .member-contribution-obligation-amount small {
    color: #718078;
}

.member-contribution-obligation-copy strong,
.member-contribution-obligation-copy small,
.member-contribution-obligation-amount small,
.member-contribution-obligation-amount strong {
    display: block;
}

.member-contribution-obligation-copy strong,
.member-contribution-obligation-amount strong {
    color: #213029;
}

.member-contribution-obligation-copy small,
.member-contribution-obligation-amount small {
    margin-top: 2px;
    color: #77837d;
    font-size: 11px;
}

.member-contribution-obligation-amount {
    text-align: right;
}

@media (max-width: 575.98px) {
    .member-contribution-obligation {
        grid-template-columns: 36px minmax(0, 1fr) 16px;
    }

    .member-contribution-obligation-amount {
        grid-column: 2;
        text-align: left;
    }
}

/* Member payments compact transaction workspace */
.member-contribution-outstanding,
.member-payment-pending-panel,
.member-payment-history-panel,
.member-payment-obligations-panel,
.member-payment-transfer-panel,
.member-payment-proof-panel {
    padding: 16px 18px;
}

.member-payment-workspace {
    grid-template-columns: minmax(0, 1.35fr) minmax(350px, .85fr);
    gap: 14px;
    align-items: stretch;
}

.member-payment-obligations-panel,
.member-payment-transfer-panel {
    height: 100%;
}

.member-payment-section-head {
    gap: 12px;
    margin-bottom: 12px;
}

.member-payment-section-head h2 {
    margin: 1px 0 2px;
    font-size: 17px;
}

.member-payment-section-head p {
    line-height: 1.35;
    font-size: 12px;
}

.member-payment-section-head .member-portal-kicker {
    margin-bottom: 2px;
    font-size: 10px;
}

.member-payment-selected-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf6f1;
    color: var(--brand);
    font-size: 11px;
    font-weight: 750;
}

.member-payment-option-list {
    gap: 7px;
}

.member-payment-option {
    min-height: 64px;
    grid-template-columns: 28px minmax(170px, 1fr) minmax(112px, .45fr) minmax(150px, .55fr);
    gap: 9px;
    padding: 9px 11px;
    border-radius: 11px;
}

.member-payment-option-main strong {
    font-size: 13px;
}

.member-payment-option-main span,
.member-payment-option-balance small,
.member-payment-option-amount small {
    font-size: 10px;
}

.member-payment-option-balance strong {
    font-size: 12px;
}

.member-payment-option-amount .input-group-text,
.member-payment-option-amount .form-control {
    min-height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 12px;
}

.member-payment-transfer-panel .form-label {
    margin-bottom: 5px;
    font-size: 12px;
}

.member-payment-destination-card {
    margin-top: 9px;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 11px;
}

.member-payment-qr {
    width: 92px;
    height: 92px;
}

.member-payment-destination-copy h3 {
    margin: 1px 0 6px;
    font-size: 15px;
}

.member-payment-destination-copy div + div {
    margin-top: 4px;
}

.member-payment-destination-copy small {
    font-size: 9px;
}

.member-payment-destination-copy strong {
    font-size: 12px;
}

.member-payment-instructions {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 11px;
}

.member-payment-transfer-total {
    margin-top: 9px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #cfe1d8;
    border-radius: 11px;
    background: #f4faf7;
}

.member-payment-transfer-total span,
.member-payment-transfer-total small {
    display: block;
}

.member-payment-transfer-total span {
    color: #52665c;
    font-size: 11px;
    font-weight: 750;
}

.member-payment-transfer-total small {
    margin-top: 1px;
    color: #78867f;
    font-size: 9px;
}

.member-payment-transfer-total strong {
    color: var(--brand);
    font-size: 20px;
    line-height: 1;
}

.member-payment-proof-panel {
    padding-top: 14px;
    padding-bottom: 14px;
}

.member-payment-proof-panel .member-payment-section-head {
    margin-bottom: 10px;
}

.member-payment-proof-grid {
    gap: 10px;
}

.member-payment-proof-grid .form-label {
    margin-bottom: 5px;
    font-size: 12px;
}

.member-payment-proof-grid .form-control,
.member-payment-file-picker {
    min-height: 42px;
}

.member-payment-file-picker {
    padding: 5px 9px;
}

.member-payment-submit-bar {
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
}

.member-payment-submit-bar > div strong {
    font-size: 18px;
}

.member-payment-submit-bar .btn {
    min-height: 38px;
    padding: 7px 14px;
}

@media (max-width: 1199.98px) {
    .member-payment-workspace {
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    }

    .member-payment-option {
        grid-template-columns: 28px minmax(150px, 1fr) minmax(105px, .45fr) minmax(135px, .55fr);
    }
}

@media (max-width: 991.98px) {
    .member-payment-pending-panel,
    .member-payment-history-panel,
    .member-payment-obligations-panel,
    .member-payment-transfer-panel,
    .member-payment-proof-panel {
        padding: 15px;
    }
}

/* Branding-aware member sign-in */
.member-login-view {
    background:
        radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 22%),
        linear-gradient(145deg, color-mix(in srgb, var(--brand) 9%, #fff), #f8faf9 50%, color-mix(in srgb, var(--brand) 7%, #fff));
}

.member-login-brand img {
    background: #fff;
    border: 1px solid var(--line);
}

.member-login-brand span {
    color: var(--gold);
}

.member-login-powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.member-login-powered-by img {
    width: 92px;
    height: auto;
}
