:root {
    --member-primary: #7367f0;
    --member-bg: #f6f7fb;
}
body {
    min-height: 100vh;
    background: var(--member-bg);
    color: #1f2937;
}
.navbar {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.navbar > .container {
    min-height: 0;
    padding-top: .1rem;
    padding-bottom: .1rem;
}
.navbar-brand { letter-spacing: -0.02em; }
.member-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    line-height: 1;
    min-width: 360px;
    min-height: 72px;
    overflow: visible;
}
.member-brand-logo {
    width: auto;
    max-width: 220px;
    max-height: 50px;
    object-fit: contain;
    display: block;
    transform: scale(3.05, 2.05);
    transform-origin: left center;
    filter: drop-shadow(0 10px 16px rgba(15, 23, 42, .08));
}
.member-brand-fallback,
.member-login-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7367f0, #9e95f5);
    color: #fff;
    font-weight: 800;
    border-radius: 16px;
}
.member-brand-fallback {
    width: 104px;
    height: 104px;
    font-size: 1.5rem;
}
.card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}
.btn-primary {
    background: var(--member-primary);
    border-color: var(--member-primary);
}
.member-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.member-login-card { width: min(100%, 420px); }
.member-login-logo-wrap {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .5rem;
}
.member-login-logo {
    width: auto;
    max-width: min(320px, 100%);
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(15, 23, 42, .16));
}
.member-login-logo-fallback {
    width: 92px;
    height: 92px;
    font-size: 1.5rem;
    margin: 0 auto .75rem;
}
.stat-card {
    border-radius: 18px;
    background: linear-gradient(135deg, #7367f0, #9e95f5);
    color: white;
}
.invoice-total { font-size: 1.35rem; font-weight: 800; }
@media (max-width: 575.98px) {
    .navbar {
        padding-top: .35rem;
        padding-bottom: .35rem;
    }
    .navbar > .container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
        padding-top: .2rem;
        padding-bottom: .2rem;
    }
    .member-brand {
        width: auto;
        min-width: 150px;
        min-height: 62px;
        justify-content: flex-start;
        overflow: visible;
        flex: 0 0 auto;
    }
    .member-brand-logo {
        max-width: 115px;
        max-height: 42px;
        transform: scale(1.9);
        transform-origin: left center;
    }
    .navbar-toggler {
        margin-left: auto;
        border-radius: 12px;
        padding: .55rem .75rem;
        background: #fff;
        flex: 0 0 auto;
    }
    .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
    }
    .navbar-nav {
        padding-top: .5rem;
        gap: .25rem;
    }
}
@media print {
    nav, footer, .no-print { display: none !important; }
    body { background: white; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}
