:root {
    --bg: #f2f4f8;
    --bg-alt: #e8edf5;
    --surface: #ffffff;
    --surface-soft: #f9fbff;
    --text: #12233f;
    --muted: #4f6079;
    --brand: #16539e;
    --brand-strong: #0f3f7e;
    --accent: #d6a03a;
    --danger: #b42318;
    --success: #067647;
    --warning: #b54708;
    --line: #d7e1ef;
    --shadow: 0 14px 35px rgba(16, 46, 84, 0.08);
    --radius: 14px;
    --sa-sidebar-expanded: 302px;
    --sa-sidebar-collapsed: 98px;
    --sa-sidebar-gap: 28px;
    --sa-glass-bg: rgba(255, 255, 255, 0.12);
    --sa-glass-border: rgba(255, 255, 255, 0.25);
    --sa-shadow: 0 28px 65px rgba(12, 36, 78, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 50% -15%, rgba(22, 83, 158, 0.16), transparent 70%),
        linear-gradient(180deg, var(--bg-alt), var(--bg));
    line-height: 1.5;
}

a {
    color: var(--brand);
    text-decoration: none;
}

.shell {
    width: min(1180px, 92vw);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(215, 225, 239, 0.7);
    backdrop-filter: blur(10px);
    background: rgba(248, 250, 254, 0.88);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
}

.brand-mark {
    background: linear-gradient(140deg, var(--brand), var(--brand-strong));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.8px;
    border-radius: 9px;
    padding: 8px 9px;
}

.brand-logo-image {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(20, 59, 33, 0.18);
}

.brand-text {
    font-size: 1rem;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--muted);
}

.page-wrap {
    padding: 28px 0 40px;
}

.sa-top-note {
    font-size: 0.82rem;
    font-weight: 700;
    color: #20416f;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(233, 242, 255, 0.85);
    border: 1px solid rgba(177, 202, 238, 0.9);
}

.inline-form,
.inline-block {
    display: inline-block;
}

.link-btn {
    border: 0;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.hero {
    padding: 26px 0;
}

.hero-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.95));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(24px, 5vw, 58px);
    box-shadow: var(--shadow);
}

.hero-kicker {
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    font-size: 0.76rem;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 12px;
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

h3 {
    font-size: 1.1rem;
    font-family: 'Manrope', sans-serif;
}

p {
    margin: 0 0 12px;
}

.hero-actions,
.actions-row,
.submit-row,
.payment-actions,
.action-panels {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(145deg, var(--brand), var(--brand-strong));
    color: #fff;
    box-shadow: 0 8px 22px rgba(22, 83, 158, 0.28);
}

.btn-light {
    background: #ecf2fb;
    color: var(--brand-strong);
    border: 1px solid #d5e2f8;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 7px 11px;
    font-size: 0.82rem;
}

.btn-lg {
    min-width: 220px;
    padding: 12px 18px;
    font-size: 1rem;
}

.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-shell {
    max-width: 580px;
}

.member-login-shell {
    padding: clamp(20px, 4.2vw, 60px) 0 clamp(26px, 4.5vw, 72px);
}

.member-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 440px);
    gap: clamp(28px, 4vw, 68px);
    align-items: center;
}

.member-login-left {
    max-width: 620px;
}

.member-login-kicker {
    margin: 0 0 10px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--brand);
}

.member-login-title {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 5.2vw, 3.7rem);
    line-height: 1.02;
}

.member-login-tagline {
    font-size: clamp(1.08rem, 1.95vw, 1.45rem);
    line-height: 1.34;
    color: #183155;
    margin-bottom: 12px;
}

.member-login-copy {
    font-size: 1.02rem;
    color: var(--muted);
    max-width: 56ch;
    margin-bottom: 18px;
}

.member-login-benefits {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #2a4266;
    font-size: 0.96rem;
}

.member-login-card {
    background: var(--surface);
    border-radius: 18px;
    border: 1px solid rgba(198, 214, 238, 0.95);
    box-shadow: 0 18px 45px rgba(15, 51, 95, 0.14);
    padding: clamp(20px, 2.6vw, 30px);
}

.member-login-card-title {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    margin-bottom: 14px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-weight: 800;
    color: #122a4d;
}

.member-login-card .stack-form {
    gap: 14px;
}

.member-login-card label span {
    font-size: 0.82rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.member-login-card input {
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 0.97rem;
    border-color: #cfdbed;
    background: #fdfefe;
}

.member-login-card input:focus {
    outline: 2px solid rgba(22, 83, 158, 0.23);
    border-color: #2f66b2;
}

.member-login-btn,
.member-apply-btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    border-radius: 12px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}

.member-forgot-link {
    display: inline-flex;
    margin: 14px 0 10px;
    font-size: 0.89rem;
    font-weight: 700;
}

.member-login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 12px;
    color: #667992;
    font-size: 0.8rem;
    font-weight: 700;
}

.member-login-divider::before,
.member-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d9e3f1;
}

.member-apply-btn {
    text-align: center;
}

.member-login-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.aaa-member-login-shell {
    padding: clamp(24px, 4.4vw, 64px) 0 clamp(28px, 5vw, 72px);
}

.aaa-member-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    gap: clamp(22px, 3vw, 46px);
    align-items: start;
}

.aaa-member-login-intro {
    padding: 8px 4px;
}

.aaa-member-login-kicker {
    margin: 0 0 8px;
    color: #24589b;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.aaa-member-login-title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.aaa-member-login-copy {
    margin: 0;
    max-width: 58ch;
    color: #3f5677;
    font-size: 1.02rem;
    line-height: 1.68;
}

.aaa-member-login-card-wrap {
    width: 100%;
}

.aaa-member-login-card {
    background: #fff;
    border: 1px solid #d8e4f6;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(18, 49, 95, 0.14);
    padding: clamp(18px, 2.5vw, 28px);
}

.aaa-member-login-card h2 {
    margin: 0 0 6px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 1.42rem;
    color: #113a70;
}

.aaa-member-login-subtitle {
    margin: 0 0 14px;
    color: #5c7291;
    font-size: 0.9rem;
}

.aaa-member-login-card .stack-form {
    gap: 13px;
}

.aaa-member-login-card label span {
    font-size: 0.81rem;
    font-weight: 700;
    color: #4f6482;
    margin-bottom: 6px;
}

.aaa-member-login-card input {
    border-radius: 11px;
    border: 1px solid #cddbf0;
    background: #fefefe;
    min-height: 46px;
    padding: 12px 13px;
    font-size: 0.95rem;
}

.aaa-member-login-card input:focus {
    border-color: #2e68b6;
    outline: 2px solid rgba(46, 104, 182, 0.2);
}

.aaa-member-login-btn,
.aaa-member-apply-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
}

.aaa-member-forgot-link {
    display: inline-flex;
    margin: 12px 0 14px;
    color: #22589d;
    font-size: 0.87rem;
    font-weight: 700;
}

.aaa-member-login-note {
    margin: 11px 0 0;
    color: #576d8b;
    font-size: 0.82rem;
}

.member-auth-shell {
    padding: clamp(24px, 4.5vw, 64px) 0 clamp(34px, 5vw, 84px);
}

.member-auth-frame {
    border-radius: 24px;
    border: 1px solid rgba(193, 211, 237, 0.95);
    background: linear-gradient(160deg, #f8fbff 0%, #eef4fd 58%, #e8effa 100%);
    box-shadow: 0 26px 54px rgba(20, 54, 100, 0.14);
    overflow: hidden;
}

.member-auth-frame-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px clamp(18px, 2.2vw, 30px);
    border-bottom: 1px solid rgba(193, 211, 237, 0.9);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(236, 245, 255, 0.82));
}

.member-auth-frame-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    background: linear-gradient(145deg, #1b5aa8, #123f7f);
    box-shadow: 0 8px 18px rgba(21, 63, 121, 0.28);
}

.member-auth-frame-kicker {
    margin: 0 0 2px;
    color: #2b5a96;
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    font-weight: 800;
}

.member-auth-frame-head h1 {
    margin: 0;
    font-size: clamp(1.2rem, 2.4vw, 1.58rem);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: #123564;
    line-height: 1.24;
}

.member-auth-board {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 430px);
    gap: clamp(22px, 3vw, 38px);
    align-items: stretch;
    padding: clamp(18px, 2.5vw, 32px);
}

.member-auth-showcase {
    border-radius: 18px;
    border: 1px solid rgba(188, 209, 238, 0.85);
    padding: clamp(18px, 2.4vw, 30px);
    background:
        radial-gradient(460px 250px at -10% -14%, rgba(61, 127, 206, 0.2), transparent 70%),
        radial-gradient(390px 230px at 120% 110%, rgba(50, 106, 184, 0.14), transparent 68%),
        linear-gradient(170deg, rgba(255, 255, 255, 0.88), rgba(244, 249, 255, 0.77));
}

.member-auth-kicker {
    margin: 0 0 8px;
    color: #255b9f;
    font-size: 0.81rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    text-transform: uppercase;
}

.member-auth-title {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.08;
    color: #122f56;
}

.member-auth-copy {
    margin: 0 0 12px;
    max-width: 58ch;
    color: #365273;
    font-size: 1rem;
    line-height: 1.7;
}

.member-auth-copy-secondary {
    margin-bottom: 2px;
}

.member-auth-points {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.member-auth-points li {
    position: relative;
    padding-left: 20px;
    color: #2f4c71;
    font-size: 0.93rem;
}

.member-auth-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2f6cb9, #1f4d92);
}

.member-auth-card-wrap {
    display: flex;
    align-items: center;
}

.member-auth-card {
    width: 100%;
    border-radius: 18px;
    border: 1px solid #cfddf2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 252, 255, 0.97));
    box-shadow: 0 20px 38px rgba(15, 43, 84, 0.17);
    padding: clamp(18px, 2.4vw, 28px);
}

.member-auth-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.member-auth-mark {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.92rem;
    letter-spacing: 0.09em;
    font-weight: 800;
    background: linear-gradient(145deg, #1f59a1, #133e78);
    box-shadow: 0 10px 20px rgba(22, 69, 131, 0.28);
}

.member-auth-card-head h3 {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 1.36rem;
    color: #163c71;
}

.member-auth-card-head p {
    margin: 3px 0 0;
    color: #5b7090;
    font-size: 0.84rem;
}

.member-auth-card .stack-form {
    gap: 14px;
}

.member-auth-card label span {
    color: #496180;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.member-auth-card input {
    min-height: 50px;
    border-radius: 12px;
    border: 1px solid #c9d9f0;
    background: #fff;
    padding: 12px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.member-auth-card input::placeholder {
    color: #8ba0bd;
}

.member-auth-card input:focus {
    border-color: #2f67b4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 103, 180, 0.16);
}

.member-auth-login-btn,
.member-auth-apply-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-auth-login-btn {
    margin-top: 4px;
}

.member-auth-forgot-link {
    display: inline-flex;
    margin: 14px 0 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #20579a;
}

.member-auth-forgot-link:hover {
    color: #154682;
}

.member-auth-note {
    margin: 12px 0 0;
    color: #5a7191;
    font-size: 0.82rem;
}

body.assoc-login-page {
    background-color: #f6f4ee;
    background-image:
        linear-gradient(135deg, rgba(201, 167, 98, 0.04) 25%, transparent 25%),
        linear-gradient(225deg, rgba(201, 167, 98, 0.04) 25%, transparent 25%),
        linear-gradient(315deg, rgba(201, 167, 98, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, rgba(201, 167, 98, 0.03) 25%, transparent 25%);
    background-size: 28px 28px;
    background-position: 0 0, 14px 0, 14px -14px, 0 14px;
    color: #1f2d3d;
}

.assoc-login-page-wrap {
    padding: 0 0 68px;
}

.assoc-login-hero {
    width: 100%;
}

.assoc-login-pattern {
    background-color: #f8f7f2;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(224, 153, 0, 0.24) 1px, transparent 0),
        linear-gradient(45deg, rgba(224, 153, 0, 0.12) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(224, 153, 0, 0.12) 1px, transparent 1px);
    background-size: 24px 24px, 72px 72px, 72px 72px;
    background-position: 0 0, 0 0, 36px 36px;
    border-bottom: 1px solid #dfd6bf;
}

.assoc-login-brand {
    text-align: center;
    padding: 28px 16px 18px;
}

.assoc-login-logo {
    width: 102px;
    height: 102px;
    margin: 0 auto 12px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 12px 22px rgba(20, 59, 33, 0.2);
}

.assoc-login-brand-name {
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #2d713d;
    font-size: clamp(1.12rem, 2.2vw, 1.45rem);
}

.assoc-login-brand-sub {
    margin: 3px 0 0;
    color: #5f6e63;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.assoc-login-gold-bar {
    height: 48px;
    background: linear-gradient(180deg, #e2a13c, #d69631);
    border-top: 1px solid rgba(151, 101, 21, 0.42);
    border-bottom: 1px solid rgba(151, 101, 21, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
    overflow: hidden;
}

.assoc-login-gold-nav {
    min-height: 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
}

.assoc-login-gold-nav a {
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
}

.assoc-login-gold-nav a:hover {
    color: #f7f2e2;
}

.assoc-login-gold-center {
    grid-column: 2;
    justify-self: center;
}

.assoc-login-gold-right {
    grid-column: 3;
    justify-self: end;
}

.assoc-login-nav-cta {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 8px;
    border: 2px solid rgba(245, 250, 239, 0.82);
    background: #2b713e;
    box-shadow: 0 8px 16px rgba(45, 92, 37, 0.26);
}

.assoc-login-nav-cta:hover {
    color: #fff;
    background: #255f35;
}

.assoc-login-content {
    width: min(760px, 92vw);
    margin-inline: auto;
    padding-top: 42px;
    text-align: center;
}

.assoc-login-main-title {
    margin: 0 0 14px;
    color: #14213a;
    font-size: clamp(2.4rem, 4.8vw, 3.9rem);
}

.assoc-login-intro {
    margin: 0;
    color: #121212;
    text-transform: uppercase;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1rem, 1.75vw, 1.08rem);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: 0.01em;
}

.assoc-login-alert-text {
    margin: 24px 0 0;
    color: #4d5d75;
    font-family: 'DM Serif Display', Georgia, serif;
    text-transform: uppercase;
    font-size: clamp(0.96rem, 1.65vw, 1.04rem);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.assoc-login-card {
    width: min(420px, 100%);
    margin: 36px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.56);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 18px 36px rgba(20, 31, 54, 0.12);
    padding: 28px 26px 18px;
}

.assoc-login-card h2 {
    margin: 0 0 18px;
    text-align: center;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 1.95rem;
    color: #1c2a41;
    font-weight: 700;
}

.assoc-login-form {
    gap: 14px;
}

.assoc-login-form label span {
    display: block;
    margin-bottom: 7px;
    color: #4d5d78;
    font-weight: 700;
    font-size: 0.9rem;
}

.assoc-login-form input[type="text"],
.assoc-login-form input[type="password"] {
    min-height: 46px;
    border-radius: 8px;
    border: 1px solid #cfd7e7;
    background: #fafbfd;
    padding: 11px 12px;
    font-size: 0.95rem;
}

.assoc-login-form input[type="text"]:focus,
.assoc-login-form input[type="password"]:focus {
    outline: none;
    border-color: #2c6d3c;
    box-shadow: 0 0 0 3px rgba(44, 109, 60, 0.14);
}

.assoc-login-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 2px 0 4px;
}

.assoc-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #36445c;
    font-size: 0.9rem;
    font-weight: 600;
}

.assoc-remember input {
    width: 16px;
    height: 16px;
    accent-color: #2b713e;
}

.assoc-login-meta a {
    color: #286848;
    font-size: 0.9rem;
    font-weight: 700;
}

.assoc-login-submit {
    width: 100%;
    min-height: 46px;
    border-radius: 8px;
    font-size: 1rem;
    letter-spacing: 0.02em;
    background: linear-gradient(145deg, #2f7a3f, #1f5c2f);
    box-shadow: 0 10px 18px rgba(26, 76, 38, 0.26);
}

.assoc-login-register-note {
    margin: 16px 0 0;
    text-align: center;
    color: #3f4f69;
    font-size: 0.88rem;
    line-height: 1.45;
}

.assoc-login-register-note a {
    font-weight: 700;
    text-transform: uppercase;
}

body.assoc-login-page .alert {
    margin-top: 16px;
}

body.assoc-login-page .flash-floating-wrap,
body.assoc-register-page .flash-floating-wrap {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100vw - 24px));
    z-index: 1000;
    pointer-events: none;
}

body.assoc-login-page .flash-floating-wrap .alert,
body.assoc-register-page .flash-floating-wrap .alert {
    margin: 0;
    pointer-events: auto;
}

@media (min-width: 992px) {
    body.assoc-login-page,
    body.assoc-register-page {
        background-image:
            linear-gradient(135deg, rgba(201, 167, 98, 0.02) 25%, transparent 25%),
            linear-gradient(225deg, rgba(201, 167, 98, 0.02) 25%, transparent 25%),
            linear-gradient(315deg, rgba(201, 167, 98, 0.015) 25%, transparent 25%),
            linear-gradient(45deg, rgba(201, 167, 98, 0.015) 25%, transparent 25%);
    }
}

body.assoc-register-page {
    background-color: #f6f4ee;
    background-image:
        linear-gradient(135deg, rgba(201, 167, 98, 0.04) 25%, transparent 25%),
        linear-gradient(225deg, rgba(201, 167, 98, 0.04) 25%, transparent 25%),
        linear-gradient(315deg, rgba(201, 167, 98, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, rgba(201, 167, 98, 0.03) 25%, transparent 25%);
    background-size: 28px 28px;
    background-position: 0 0, 14px 0, 14px -14px, 0 14px;
    color: #1f2d3d;
}

.assoc-register-page-wrap {
    padding: 0 0 74px;
}

.assoc-register-hero {
    width: 100%;
}

.assoc-register-pattern {
    background-color: #faf8f1;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(224, 153, 0, 0.24) 1px, transparent 0),
        linear-gradient(45deg, rgba(224, 153, 0, 0.11) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(224, 153, 0, 0.11) 1px, transparent 1px);
    background-size: 24px 24px, 72px 72px, 72px 72px;
    background-position: 0 0, 0 0, 36px 36px;
    border-bottom: 1px solid #e2d8c1;
}

.assoc-register-brand {
    text-align: center;
    padding: 28px 16px 18px;
}

.assoc-register-logo {
    width: 102px;
    height: 102px;
    margin: 0 auto 12px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 12px 24px rgba(20, 59, 33, 0.22);
}

.assoc-register-brand-name {
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #2c713e;
    font-size: clamp(1.14rem, 2.3vw, 1.52rem);
}

.assoc-register-brand-sub {
    margin: 3px 0 0;
    color: #55635a;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.assoc-register-gold-bar {
    background: linear-gradient(180deg, #e2a13c, #d69631);
    border-top: 1px solid rgba(151, 101, 21, 0.42);
    border-bottom: 1px solid rgba(151, 101, 21, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.assoc-register-gold-nav {
    min-height: 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.assoc-register-gold-nav a {
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1;
}

.assoc-register-gold-nav a:hover {
    color: #f7f2e2;
}

.assoc-register-gold-center {
    grid-column: 2;
    justify-self: center;
}

.assoc-register-gold-right {
    grid-column: 3;
    justify-self: end;
}

.assoc-register-nav-cta {
    margin-left: 0;
    padding: 9px 14px;
    border-radius: 8px;
    border: 2px solid rgba(245, 250, 239, 0.82);
    background: #2b713e;
    box-shadow: 0 8px 16px rgba(45, 92, 37, 0.26);
}

.assoc-register-nav-cta:hover {
    color: #fff;
    background: #255f35;
}

.assoc-register-content {
    width: min(1180px, 94vw);
    padding-top: 42px;
}

.assoc-register-head {
    margin-bottom: 24px;
    max-width: 1020px;
    text-align: center;
    margin-inline: auto;
}

.assoc-register-head h1 {
    margin-bottom: 14px;
    color: #14213a;
    font-size: clamp(2.5rem, 4.8vw, 4rem);
}

.assoc-register-intro {
    margin: 0;
    color: #1f1f1f;
    text-transform: uppercase;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1rem, 1.75vw, 1.08rem);
    line-height: 1.42;
    letter-spacing: 0.01em;
}

.assoc-register-alert {
    margin: 20px 0 0;
    color: #bf3333;
    font-family: 'DM Serif Display', Georgia, serif;
    text-transform: uppercase;
    font-size: clamp(0.96rem, 1.65vw, 1.04rem);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.assoc-register-head > p:last-child {
    margin-top: 12px;
    color: #4d5d75;
    font-size: 0.95rem;
    font-weight: 700;
}

.assoc-register-stage {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.56);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 18px 36px rgba(20, 31, 54, 0.12);
    padding: clamp(16px, 2vw, 24px);
}

.assoc-register-form {
    gap: 22px;
}

.assoc-register-page .card {
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(6px) saturate(118%);
    backdrop-filter: blur(6px) saturate(118%);
    box-shadow: 0 12px 24px rgba(20, 31, 54, 0.1);
    position: relative;
    overflow: hidden;
}

.assoc-register-page .card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 0;
    background: transparent;
    opacity: 0;
}

.assoc-register-page .card h2 {
    color: #1c2a41;
}

.assoc-register-page .card h3 {
    margin-top: 6px;
    color: #1c2a41;
}

.assoc-register-page label span {
    color: #4d5d78;
    font-weight: 700;
    font-size: 0.9rem;
}

.assoc-register-page input,
.assoc-register-page textarea,
.assoc-register-page select {
    min-height: 46px;
    border: 1px solid #cfd7e7;
    background: #fafbfd;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 0.95rem;
}

.assoc-register-page input:focus,
.assoc-register-page textarea:focus,
.assoc-register-page select:focus {
    outline: none;
    border-color: #2c6f3d;
    box-shadow: 0 0 0 3px rgba(44, 111, 61, 0.14);
}

.assoc-register-page .drop-input {
    background: #fafbfd;
    border: 1px dashed #b7c3d9;
}

.assoc-register-page #cropCanvas {
    border: 1px dashed #b7c3d9;
    background: #fafbfd;
    width: 220px;
    height: 220px;
}

.assoc-register-page .cropper-wrap {
    max-width: 240px;
}

.assoc-register-page .payment-card {
    background: rgba(255, 255, 255, 0.66);
    border-color: rgba(255, 255, 255, 0.68);
    padding-top: 20px;
}

.assoc-register-page .payment-grid div {
    border-color: #d6dce7;
    background: #fafbfd;
}

.assoc-register-page .payment-grid .payable {
    color: #2c6f3d;
}

.assoc-register-page .btn-primary {
    background: linear-gradient(145deg, #2f7a3f, #1f5c2f);
    box-shadow: 0 10px 20px rgba(24, 76, 37, 0.25);
}

.assoc-register-page .btn-light {
    background: #f8f2e2;
    border-color: #e8cb95;
    color: #6a4c20;
}

.assoc-register-page .submit-row {
    justify-content: center;
    padding-top: 2px;
}

.assoc-register-page .form-grid {
    gap: 18px;
    align-items: start;
}

.assoc-register-page .field-grid {
    gap: 12px 14px;
}

.auth-card,
.card,
.panel {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.auth-card {
    padding: 26px;
}

.register-shell {
    padding-bottom: 44px;
}

.page-head {
    margin-bottom: 16px;
}

.register-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, 1fr);
}

.card {
    padding: 18px;
    grid-column: span 12;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.field-grid {
    display: grid;
    gap: 10px 12px;
}

.stack-form {
    display: grid;
    gap: 12px;
}

.field-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.field-grid .full {
    grid-column: 1 / -1;
}

label span,
.info-grid span {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 4px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #c8d8ee;
    background: #fbfdff;
    border-radius: 9px;
    padding: 10px 11px;
    font-size: 0.94rem;
    color: var(--text);
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(22, 83, 158, 0.2);
    border-color: var(--brand);
}

.input-error {
    border-color: rgba(180, 35, 24, 0.72) !important;
    background: #fff4f2 !important;
}

.field-error {
    display: block;
    margin-top: 5px;
    font-size: 0.79rem;
    font-weight: 700;
    color: var(--danger);
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.radio-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #f3f7ff;
    border: 1px solid #d5e2f8;
    border-radius: 9px;
}

.radio-row input {
    width: auto;
}

.tiny,
.small,
.muted {
    color: var(--muted);
    font-size: 0.83rem;
}

.small {
    font-size: 0.89rem;
}

.cropper-wrap {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    max-width: 280px;
}

#cropCanvas {
    width: 260px;
    height: 260px;
    border-radius: 10px;
    border: 1px dashed #aec4e5;
    background: #f8fbff;
    cursor: move;
}

.drop-input {
    background: #f2f7ff;
    border: 1px dashed #9bb8e5;
}

.crop-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.crop-controls label {
    flex: 1;
}

.crop-controls input[type="range"] {
    padding: 0;
}

.payment-card {
    border: 1px solid #c8dcf7;
    background: linear-gradient(180deg, #fbfdff, #f4f8ff);
}

.payment-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 10px 0 14px;
}

.payment-grid div {
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 10px 12px;
}

.payment-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.81rem;
}

.payment-grid strong {
    font-size: 1rem;
}

.payment-grid .payable {
    color: var(--brand-strong);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.badge.pending {
    color: var(--warning);
    border-color: #f6d8ae;
    background: #fff4e5;
}

.badge.paid {
    color: var(--success);
    border-color: #b7efd5;
    background: #ecfdf3;
}

.badge.rejected {
    color: var(--danger);
    border-color: #f4c7c3;
    background: #fff1f0;
}

.alert {
    margin-bottom: 14px;
    padding: 11px 46px 11px 13px;
    border-radius: 10px;
    border: 1px solid;
    font-weight: 600;
    position: relative;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.alert.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.alert-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: inherit;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    opacity: 0.72;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.07);
}

.alert.error {
    border-color: #efb4ad;
    color: #8d1d11;
    background: #fff3f1;
}

.alert.success,
.notice.success {
    border-color: #9cdfc3;
    color: #065f3d;
    background: #ebfdf3;
}

.notice.warning {
    border: 1px solid #f3cc94;
    background: #fff8ed;
    color: #8e4b06;
}

.notice {
    margin-top: 14px;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
}

.dashboard-shell {
    display: grid;
    gap: 16px;
}

body.member-page {
    background:
        radial-gradient(900px 360px at 50% -12%, rgba(45, 113, 61, 0.1), transparent 70%),
        linear-gradient(180deg, #f2f6f2 0%, #edf2f8 100%);
}

body.member-page .site-header {
    border-bottom: 1px solid rgba(193, 209, 190, 0.86);
    background: rgba(251, 253, 248, 0.9);
}

body.member-page .brand {
    color: #1f5f35;
}

body.member-page .brand-text {
    font-weight: 800;
}

body.member-page .top-nav a,
body.member-page .link-btn {
    color: #255c36;
    font-weight: 700;
}

body.member-page .top-nav a:hover,
body.member-page .link-btn:hover {
    color: #8c621e;
}

body.member-page .btn-primary {
    background: linear-gradient(145deg, #2d703c, #1d562b);
    color: #fff;
    box-shadow: 0 9px 22px rgba(28, 84, 43, 0.24);
}

body.member-page .btn-light {
    background: #f8efd9;
    color: #77501a;
    border: 1px solid #e5c893;
}

body.member-page .btn-light:hover {
    background: #f4e6c8;
}

.member-area-shell {
    padding-bottom: 18px;
}

.member-area-layout {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.member-sidebar {
    border-radius: 22px;
    border: 1px solid #325744;
    background:
        radial-gradient(340px 180px at 12% -20%, rgba(208, 165, 92, 0.16), transparent 70%),
        linear-gradient(180deg, #1f3f32 0%, #163528 58%, #122b21 100%);
    box-shadow: 0 24px 44px rgba(11, 29, 22, 0.34);
    color: #e8f5ec;
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.member-sidebar-top {
    padding: 16px 16px 14px;
    text-align: center;
}

.member-sidebar-brand {
    margin: 0 0 14px;
    padding: 12px 12px 11px;
    border-radius: 14px;
    border: 1px solid rgba(216, 188, 129, 0.28);
    background: linear-gradient(180deg, rgba(247, 240, 223, 0.14), rgba(247, 240, 223, 0.08));
}

.member-sidebar-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
    border: 1px solid rgba(224, 191, 124, 0.32);
    background: transparent;
    box-shadow: 0 8px 16px rgba(9, 24, 16, 0.22);
}

.member-sidebar-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 5px;
    object-fit: cover;
}

.member-sidebar-brand-name {
    margin: 9px 0 0;
    color: #e7d8b7;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.32;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.member-avatar-frame {
    width: 104px;
    height: 104px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 3px solid #d9b577;
    box-shadow: 0 0 0 3px rgba(245, 224, 182, 0.16), 0 14px 24px rgba(10, 27, 20, 0.44);
    overflow: visible;
    position: relative;
    isolation: isolate;
    animation: avatarFloatSoft 5.8s ease-in-out infinite;
    will-change: transform;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.member-avatar-frame:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 0 3px rgba(245, 224, 182, 0.22), 0 20px 34px rgba(10, 27, 20, 0.5);
}

.member-avatar-frame::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(228, 192, 121, 0.06) 0deg,
        rgba(228, 192, 121, 0.95) 58deg,
        rgba(44, 119, 70, 0.9) 148deg,
        rgba(244, 228, 191, 0.96) 216deg,
        rgba(228, 192, 121, 0.9) 312deg,
        rgba(228, 192, 121, 0.06) 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    z-index: -1;
    animation: avatarRingSpin 5.2s linear infinite;
    opacity: 0.95;
    pointer-events: none;
}

.member-avatar-frame::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 232, 193, 0.46) 0%, rgba(247, 232, 193, 0) 70%);
    z-index: -2;
    animation: avatarHaloPulse 3.8s ease-in-out infinite;
    pointer-events: none;
}

.member-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    animation: memberAvatarImageDrift 7.2s ease-in-out infinite;
    will-change: transform, filter;
}

.member-sidebar-name {
    margin: 2px 0 3px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff7e6;
}

.member-sidebar-meta {
    margin: 0;
    color: #c9d8c3;
    font-size: 0.79rem;
}

.member-sidebar-nav {
    display: grid;
    gap: 7px;
    padding: 12px 12px 8px;
}

.member-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid rgba(226, 214, 188, 0.1);
    width: 100%;
    text-align: left;
    text-decoration: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #eef5ea;
    font-size: 0.86rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.member-nav-item:hover {
    border-color: rgba(220, 183, 120, 0.42);
    background: rgba(220, 183, 120, 0.14);
    transform: translateX(2px);
    color: #fff4db;
}

.member-nav-item.active {
    border-color: rgba(231, 188, 113, 0.55);
    background: linear-gradient(145deg, rgba(231, 188, 113, 0.24), rgba(221, 169, 78, 0.18));
    color: #ffeecf;
    box-shadow: 0 10px 18px rgba(101, 69, 24, 0.18);
}

.member-nav-icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid rgba(236, 226, 198, 0.36);
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #efe3ca;
}

.member-nav-item.active .member-nav-icon {
    border-color: rgba(246, 220, 167, 0.85);
    background: rgba(249, 223, 170, 0.24);
    color: #fff4dc;
}

.member-sidebar-logout {
    margin: 0;
    padding: 10px 12px 14px;
    border-top: 1px solid rgba(232, 213, 179, 0.16);
}

.member-nav-logout {
    cursor: pointer;
}

.member-main {
    display: grid;
    gap: 14px;
}

.member-banner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #d4e7d6;
    background: linear-gradient(145deg, #f8fcf7 0%, #eef8f0 56%, #fbf4e8 100%);
    padding: 22px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.member-banner::before,
.member-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 137, 73, 0.13);
    pointer-events: none;
}

.member-banner::before {
    width: 180px;
    height: 180px;
    top: -78px;
    left: -44px;
}

.member-banner::after {
    width: 220px;
    height: 220px;
    right: -90px;
    bottom: -110px;
    background: rgba(214, 150, 49, 0.12);
}

.member-banner-content {
    position: relative;
    z-index: 1;
}

.member-banner-kicker {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    font-weight: 800;
    color: #8c6724;
}

.member-banner h1 {
    margin: 0 0 8px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: clamp(1.35rem, 2.3vw, 1.95rem);
    font-weight: 800;
    color: #1d5f36;
}

.member-banner p {
    margin: 0;
    max-width: 62ch;
    color: #345744;
    font-size: 0.95rem;
}

.member-banner-chip {
    position: relative;
    z-index: 1;
    border: 1px solid #dcc190;
    border-radius: 12px;
    background: rgba(255, 250, 242, 0.94);
    min-width: 160px;
    padding: 10px 12px;
}

.member-banner-chip span {
    display: block;
    color: #8c6a2a;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.member-banner-chip strong {
    color: #275c39;
    font-size: 1.05rem;
}

.member-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 12px;
}

.member-section-card {
    border: 1px solid #d5e5d5;
    border-radius: 14px;
    background: #ffffff;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(30, 67, 43, 0.06);
}

.member-section-card h2 {
    margin-bottom: 10px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #1f6037;
}

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

.member-summary-card {
    border: 1px solid #d6e5d8;
    border-radius: 11px;
    background: linear-gradient(180deg, #fdfefd, #f4f8f3);
    padding: 12px;
}

.member-summary-label {
    display: block;
    color: #5a6f5c;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.member-summary-value {
    color: #214f32;
    font-size: 1rem;
}

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

.member-status-row {
    margin: 0;
    border: 1px solid #d7e5d9;
    border-radius: 11px;
    background: linear-gradient(180deg, #fdfefd, #f3f8f2);
    padding: 11px 12px;
    display: grid;
    gap: 6px;
}

.member-status-row span {
    color: #5d7260;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.member-status-row strong {
    color: #214f32;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.member-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.member-pill-approved,
.member-pill-paid,
.member-pill-member {
    border-color: #9fd8b7;
    background: #e8faef;
    color: #11663f;
}

.member-pill-pending,
.member-pill-not-paid,
.member-pill-defaulter {
    border-color: #efc88f;
    background: #fff5e5;
    color: #8a4e0f;
}

.member-pill-rejected {
    border-color: #efb0b0;
    background: #fff0f0;
    color: #8f2525;
}

.member-pill-life {
    border-color: #c6e1cb;
    background: #effaf1;
    color: #21643b;
}

.member-pill-regular {
    border-color: #e6cf9f;
    background: #fff8eb;
    color: #7f5b1d;
}

.member-quick-list {
    margin: 0 0 10px;
    padding-left: 17px;
    display: grid;
    gap: 8px;
    color: #355743;
    font-size: 0.9rem;
}

.member-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.member-directory-shell {
    gap: 12px;
}

.member-directory-controls {
    background: linear-gradient(180deg, #fcfef9, #f7fbf4);
}

.member-directory-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: end;
}

.member-directory-search {
    display: grid;
    gap: 6px;
}

.member-directory-search span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4a6a55;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.member-directory-note {
    margin: 10px 0 0;
    font-size: 0.84rem;
    color: #6a634f;
}

.member-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.member-directory-card {
    border: 1px solid #d8e6d8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdf9 100%);
    padding: 14px;
    box-shadow: 0 12px 22px rgba(23, 58, 33, 0.07);
    animation: memberCardReveal 0.45s ease both;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.member-directory-card:hover {
    transform: translateY(-3px);
    border-color: #c8b07b;
    box-shadow: 0 16px 26px rgba(35, 68, 42, 0.12);
}

.member-directory-card-dues {
    border-color: #d9c08d;
    background: linear-gradient(180deg, #fffef9, #f9f6ec);
}

.member-directory-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d8ba7f;
    margin: 0 auto 10px;
    background: linear-gradient(145deg, #2e6e3f, #1e4f2d);
    color: #fff4de;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 18px rgba(19, 45, 28, 0.24);
    animation: avatarFloatSoft 6.2s ease-in-out infinite;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    position: relative;
    isolation: isolate;
    will-change: transform;
}

.member-directory-avatar::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(224, 188, 112, 0.08) 0deg,
        rgba(224, 188, 112, 0.9) 60deg,
        rgba(36, 105, 60, 0.88) 146deg,
        rgba(242, 226, 189, 0.92) 220deg,
        rgba(224, 188, 112, 0.86) 308deg,
        rgba(224, 188, 112, 0.08) 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    z-index: -1;
    animation: avatarRingSpin 5.6s linear infinite;
    opacity: 0.95;
    pointer-events: none;
}

.member-directory-card:hover .member-directory-avatar {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 22px rgba(19, 45, 28, 0.3);
}

.member-directory-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    animation: memberAvatarImageDrift 8.2s ease-in-out infinite;
    will-change: transform, filter;
}

.member-directory-name {
    margin: 0;
    text-align: center;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #214f32;
}

.member-directory-meta {
    margin: 8px 0 10px;
    display: flex;
    justify-content: center;
}

.member-directory-details {
    margin: 0;
    display: grid;
    gap: 8px;
}

.member-directory-details div {
    border-top: 1px dashed #dbe7db;
    padding-top: 8px;
}

.member-directory-details dt {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b725f;
    font-weight: 700;
}

.member-directory-details dd {
    margin: 4px 0 0;
    color: #214f32;
    font-size: 0.93rem;
    font-weight: 700;
}

.member-directory-empty {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px dashed #d7c394;
    background: #fff8ec;
    color: #765224;
    padding: 12px;
    text-align: center;
    font-weight: 700;
}

.dues-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 262px));
    gap: 16px;
    justify-content: center;
}

.dues-member-card {
    position: relative;
    border: 1px solid #d7bf8f;
    border-radius: 10px;
    background: linear-gradient(180deg, #fffef9 0%, #fbf8f0 100%);
    padding: 168px 16px 18px;
    min-height: 388px;
    box-shadow: 0 14px 24px rgba(31, 66, 43, 0.09);
    animation: memberCardReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dues-member-card:hover {
    transform: translateY(-3px);
    border-color: #c7a865;
    box-shadow: 0 18px 30px rgba(30, 61, 39, 0.16);
}

.dues-card-pattern {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 92px;
    border-radius: 10px 10px 0 0;
    background:
        linear-gradient(180deg, #f8fbf7 0%, #eef6f0 100%),
        radial-gradient(circle at 18px 18px, rgba(45, 106, 61, 0.09) 0 1.6px, transparent 2px),
        radial-gradient(circle at 2px 2px, rgba(45, 106, 61, 0.06) 0 1.2px, transparent 1.6px);
    background-size: auto, 26px 26px, 26px 26px;
    border-bottom: 1px solid #e0eadf;
}

.dues-member-avatar {
    position: absolute;
    left: 50%;
    top: 50px;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #e8c078;
    overflow: hidden;
    background: linear-gradient(145deg, #2f6d42, #1f5132);
    color: #f8f1dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    box-shadow: 0 13px 22px rgba(20, 45, 29, 0.23);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    animation: avatarFloatSoftCentered 5.6s ease-in-out infinite;
    isolation: isolate;
    will-change: transform;
}

.dues-member-avatar::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(226, 192, 120, 0.08) 0deg,
        rgba(226, 192, 120, 0.9) 62deg,
        rgba(34, 103, 58, 0.92) 150deg,
        rgba(245, 230, 195, 0.94) 218deg,
        rgba(226, 192, 120, 0.9) 312deg,
        rgba(226, 192, 120, 0.08) 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    z-index: -1;
    animation: avatarRingSpin 5s linear infinite;
    opacity: 0.95;
    pointer-events: none;
}

.dues-member-avatar::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 232, 193, 0.42) 0%, rgba(247, 232, 193, 0) 70%);
    z-index: -2;
    animation: avatarHaloPulse 3.8s ease-in-out infinite;
    pointer-events: none;
}

.dues-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    animation: memberAvatarImageDrift 7.6s ease-in-out infinite;
    will-change: transform, filter;
}

.dues-member-name {
    margin: 0 0 16px;
    position: relative;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #2a3648;
    font-size: 1.02rem;
    font-weight: 800;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    line-height: 1.25;
    padding: 8px 44px 0;
}

.dues-member-name span {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: transparent;
    padding: 0 8px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.dues-member-name::before,
.dues-member-name::after {
    content: '';
    position: absolute;
    top: 23px;
    transform: translateY(0);
    width: 32px;
    height: 1.5px;
    background: linear-gradient(90deg, #2f4055, rgba(47, 64, 85, 0.58));
    border-radius: 999px;
    opacity: 0.72;
}

.dues-member-name::before {
    left: 0;
}

.dues-member-name::after {
    right: 0;
    transform: translateY(0) scaleX(-1);
}

.dues-member-details {
    margin: 0;
    display: grid;
    gap: 10px;
}

.dues-member-details div {
    border-top: 1px solid #dfe5ec;
    padding-top: 11px;
}

.dues-member-details dt {
    color: #4f5f73;
    font-size: 0.81rem;
    font-weight: 700;
    margin: 0;
    text-transform: none;
}

.dues-member-details dd {
    margin: 4px 0 0;
    color: #25384f;
    font-size: 1.04rem;
    font-weight: 800;
}

.dues-view-profile-btn {
    margin: 18px auto 0;
    width: 142px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #c8d0dc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2f4a68;
    background: #f7fafc;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dues-view-profile-btn:hover {
    border-color: #bea36e;
    background: #fff6e7;
    color: #274a35;
}

.dues-member-card:hover .dues-member-avatar {
    transform: translateX(-50%) translateY(-2px) scale(1.02);
    box-shadow: 0 15px 24px rgba(20, 45, 29, 0.22);
}

.dues-profile-wrapper {
    padding: 16px 18px 24px;
    background: #f9fbff;
}

.dues-profile-top-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.dues-profile-hero {
    text-align: center;
    padding: 6px 0 14px;
}

.dues-profile-avatar {
    width: 136px;
    height: 136px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 5px solid #2f6ddf;
    overflow: hidden;
    background: linear-gradient(145deg, #2e6f42, #1f5132);
    color: #fdf8eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
}

.dues-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dues-profile-hero h1 {
    margin: 0 0 6px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: clamp(1.42rem, 2vw, 1.95rem);
    color: #212c3d;
    font-weight: 800;
}

.dues-profile-hero p {
    margin: 0;
    color: #40536d;
    font-weight: 500;
}

.dues-profile-mini-facts {
    margin: 8px 0 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dues-profile-mini-fact {
    border: 1px solid #d8e1ec;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
}

.dues-profile-mini-fact span {
    display: block;
    color: #60738b;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.dues-profile-mini-fact strong {
    display: block;
    margin-top: 3px;
    color: #233852;
    font-size: 0.95rem;
    font-weight: 800;
}

.dues-profile-table {
    margin-top: 0;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #fff;
    padding: 16px 18px 8px;
}

.dues-profile-table h2 {
    margin: 0 0 10px;
    color: #222f41;
    font-size: 1.7rem;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-weight: 800;
}

.dues-profile-row {
    display: grid;
    grid-template-columns: minmax(170px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #d8e2ee;
}

.dues-profile-row span {
    color: #36475f;
    font-weight: 600;
    font-size: 1.01rem;
}

.dues-profile-row strong {
    color: #263850;
    font-weight: 500;
    font-size: 1.02rem;
}

.dues-profile-row:last-child {
    border-bottom: 0;
}

@keyframes memberCardReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes memberAvatarImageDrift {
    0% {
        transform: scale(1);
        filter: saturate(1);
    }
    50% {
        transform: scale(1.045);
        filter: saturate(1.05);
    }
    100% {
        transform: scale(1.015);
        filter: saturate(1);
    }
}

@keyframes avatarFloatSoft {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes avatarFloatSoftCentered {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes avatarHaloPulse {
    0%,
    100% {
        opacity: 0.36;
        transform: scale(1);
    }
    50% {
        opacity: 0.82;
        transform: scale(1.1);
    }
}

@keyframes avatarRingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.member-edit-form {
    margin-top: 8px;
    gap: 14px;
}

.member-edit-form h3 {
    margin: 4px 0 0;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    color: #1f6037;
}

.member-edit-form input[readonly] {
    background: #f6f9f4;
    color: #4f6655;
    cursor: not-allowed;
}

.member-edit-form .btn {
    min-width: 160px;
}

.member-notice {
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid;
}

.member-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.member-notice p {
    margin: 0;
    font-size: 0.9rem;
}

.member-notice-success {
    border-color: #b9e9d0;
    background: #ebfdf3;
    color: #0a5c3d;
}

.member-notice-warning {
    border-color: #f3cf99;
    background: #fff8ed;
    color: #8a4e0f;
}

.panel {
    padding: 18px;
}

.stat-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
    background: #f7faff;
    border: 1px solid #d8e5f8;
    border-radius: 12px;
    padding: 13px;
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 0.79rem;
}

.stat strong {
    font-size: 1rem;
}

.table-scroll {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 960px;
    width: 100%;
    margin-top: 10px;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 11px 8px;
    vertical-align: top;
    font-size: 0.89rem;
}

th {
    color: var(--muted);
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.doc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.doc-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 10px;
    background: #fbfdff;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.user-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
    padding: 12px;
}

.profile-preview {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.info-grid strong {
    font-size: 0.95rem;
}

.info-grid div {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fbfdff;
}

.sa-setting-block {
    border: 1px solid rgba(191, 213, 242, 0.78);
    background: linear-gradient(180deg, #fcfeff, #f6faff);
    border-radius: 13px;
    padding: 14px;
    scroll-margin-top: 110px;
}

.sa-setting-block.active-target {
    border-color: rgba(104, 157, 229, 0.72);
    box-shadow: 0 0 0 3px rgba(125, 172, 234, 0.24);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(248, 251, 255, 0.85);
}

.footer-inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: var(--muted);
}

.footer-inner p {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-inner p:last-child {
    margin-left: auto;
    text-align: right;
}

.footer-credit-link {
    color: #1f5c2f;
    font-weight: 800;
}

.footer-credit-link:hover {
    color: #184924;
    text-decoration: underline;
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.error-card {
    max-width: 420px;
    text-align: center;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.superadmin-layout {
    overflow-x: hidden;
}

.superadmin-layout .shell {
    width: min(1180px, 94%);
}

.superadmin-layout .site-header,
.superadmin-layout .page-wrap,
.superadmin-layout .site-footer {
    margin-left: calc(var(--sa-sidebar-expanded) + var(--sa-sidebar-gap) + 6px);
    width: calc(100% - (var(--sa-sidebar-expanded) + var(--sa-sidebar-gap) + 6px));
    transition: margin-left 0.38s ease, width 0.38s ease;
}

.superadmin-layout.sa-collapsed .site-header,
.superadmin-layout.sa-collapsed .page-wrap,
.superadmin-layout.sa-collapsed .site-footer {
    margin-left: calc(var(--sa-sidebar-collapsed) + var(--sa-sidebar-gap) + 6px);
    width: calc(100% - (var(--sa-sidebar-collapsed) + var(--sa-sidebar-gap) + 6px));
}

.sa-header {
    border-bottom: 1px solid rgba(164, 190, 229, 0.5);
}

.sa-mobile-toggle {
    display: none;
    position: fixed;
    top: 18px;
    left: 14px;
    z-index: 63;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(12, 36, 78, 0.18);
    cursor: pointer;
    padding: 10px;
}

.sa-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: #184780;
    border-radius: 999px;
}

.sa-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 54, 0.38);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 58;
}

.sa-sidebar {
    position: fixed;
    z-index: 60;
    top: 24px;
    bottom: 24px;
    left: 20px;
    width: var(--sa-sidebar-expanded);
    border-radius: 26px;
    border: 1px solid var(--sa-glass-border);
    background: var(--sa-glass-bg);
    backdrop-filter: blur(18px) saturate(175%);
    -webkit-backdrop-filter: blur(18px) saturate(175%);
    box-shadow: var(--sa-shadow);
    overflow: hidden;
    transform: translateX(0);
    opacity: 1;
    transition:
        width 0.35s ease,
        transform 0.38s ease,
        opacity 0.4s ease,
        box-shadow 0.3s ease;
}

.sa-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(198, 223, 255, 0.9), rgba(124, 164, 216, 0.36), rgba(241, 251, 255, 0.72));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.sa-sidebar::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 20px;
    background: linear-gradient(172deg, rgba(255, 255, 255, 0.35), rgba(218, 232, 252, 0.12), rgba(157, 190, 235, 0.08));
    pointer-events: none;
}

.superadmin-layout:not(.sa-sidebar-ready) .sa-sidebar {
    transform: translateX(-24px);
    opacity: 0;
}

.sa-sidebar-ready .sa-sidebar {
    transform: translateX(0);
    opacity: 1;
}

.sa-sidebar-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 14px 14px;
}

.sa-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sa-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sa-brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(140deg, #184f97, #0d2f63);
    box-shadow: 0 8px 18px rgba(22, 83, 158, 0.36);
}

.sa-brand-text {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0d2f63;
    white-space: nowrap;
}

.sa-collapse-toggle {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(110, 150, 206, 0.45);
    background: rgba(255, 255, 255, 0.45);
    color: #16467f;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.sa-collapse-toggle:hover {
    transform: translateX(1px);
    background: rgba(255, 255, 255, 0.8);
}

.sa-menu {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 6px;
    overflow-y: auto;
    padding-right: 2px;
}

.sa-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 10px 10px;
    color: #173d71;
    font-weight: 700;
    font-size: 0.86rem;
    text-align: left;
    text-decoration: none;
    background: transparent;
    transition: background 0.24s ease, transform 0.2s ease, box-shadow 0.28s ease, color 0.2s ease;
}

.sa-item:hover {
    background: rgba(255, 255, 255, 0.34);
    transform: translateX(2px);
    color: #0f315f;
}

.sa-item.active {
    background: linear-gradient(140deg, rgba(22, 83, 158, 0.28), rgba(69, 124, 195, 0.22));
    color: #09346c;
    box-shadow:
        0 0 0 1px rgba(143, 187, 243, 0.52) inset,
        0 10px 22px rgba(22, 83, 158, 0.2);
}

.sa-item-logout {
    margin-top: auto;
    cursor: pointer;
}

.sa-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(170, 201, 242, 0.56);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    transition: transform 0.22s ease, box-shadow 0.24s ease;
}

.sa-item:hover .sa-icon,
.sa-item.active .sa-icon {
    transform: translateX(2px) scale(1.04);
    box-shadow: 0 5px 14px rgba(31, 82, 146, 0.26);
}

.sa-label {
    white-space: nowrap;
    transition: opacity 0.24s ease, transform 0.24s ease, width 0.24s ease;
}

.sa-logout-form {
    margin: 0;
}

.superadmin-layout.sa-collapsed .sa-sidebar {
    width: var(--sa-sidebar-collapsed);
}

.superadmin-layout.sa-collapsed .sa-brand-text,
.superadmin-layout.sa-collapsed .sa-label {
    width: 0;
    opacity: 0;
    transform: translateX(-4px);
    overflow: hidden;
}

.superadmin-layout.sa-collapsed .sa-collapse-toggle {
    transform: rotate(180deg);
}

.superadmin-layout.sa-collapsed .sa-item {
    justify-content: center;
}

.superadmin-layout.sa-collapsed .sa-item .sa-icon {
    margin: 0;
}

@media (min-width: 940px) {
    .form-grid > .card:nth-child(1),
    .form-grid > .card:nth-child(2) {
        grid-column: span 6;
    }
}

@media (max-width: 1080px) {
    .superadmin-layout .site-header,
    .superadmin-layout .page-wrap,
    .superadmin-layout .site-footer,
    .superadmin-layout.sa-collapsed .site-header,
    .superadmin-layout.sa-collapsed .page-wrap,
    .superadmin-layout.sa-collapsed .site-footer {
        margin-left: 0;
        width: 100%;
    }

    .sa-mobile-toggle {
        display: block;
    }

    .superadmin-layout .site-header {
        padding-left: 62px;
    }

    .sa-sidebar {
        top: 12px;
        bottom: 12px;
        left: 12px;
        width: min(88vw, 330px);
        transform: translateX(-120%);
        opacity: 1;
    }

    .sa-collapse-toggle {
        display: none;
    }

    .superadmin-layout.sa-drawer-open .sa-sidebar {
        transform: translateX(0);
    }

    .superadmin-layout.sa-drawer-open .sa-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .member-area-layout {
        grid-template-columns: 1fr;
    }

    .member-sidebar {
        position: static;
        border-radius: 18px;
    }

    .member-sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-sidebar-logout {
        padding-top: 4px;
    }

    .member-directory-filter-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .dues-directory-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .dues-profile-mini-facts {
        grid-template-columns: 1fr;
    }

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

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

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

    .member-banner {
        flex-direction: column;
    }

    .assoc-login-content {
        width: min(760px, 94vw);
    }

    body.assoc-login-page .flash-floating-wrap,
    body.assoc-register-page .flash-floating-wrap {
        width: min(1120px, calc(100vw - 20px));
        top: 10px;
    }

    .assoc-register-content {
        width: min(1140px, 96vw);
    }

    .assoc-register-gold-nav {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
        width: 100%;
        padding: 10px 12px;
    }

    .assoc-register-gold-center,
    .assoc-register-gold-right {
        grid-column: 1;
        justify-self: center;
        width: 100%;
        text-align: center;
    }

    .assoc-register-nav-cta {
        margin-left: 0;
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .assoc-register-stage {
        padding: 14px;
    }
}

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }

    .top-nav {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 9px;
    }

    .assoc-login-brand {
        padding-top: 18px;
    }

    body.assoc-login-page .flash-floating-wrap,
    body.assoc-register-page .flash-floating-wrap {
        width: calc(100vw - 16px);
        top: 8px;
    }

    .assoc-login-logo {
        width: 84px;
        height: 84px;
    }

    .assoc-login-brand-name {
        font-size: 1rem;
    }

    .assoc-login-brand-sub {
        font-size: 0.84rem;
    }

    .assoc-login-gold-bar {
        height: auto;
        min-height: 40px;
    }

    .assoc-login-gold-nav {
        min-height: 40px;
        grid-template-columns: 1fr;
        justify-items: center;
        width: 100%;
        padding: 10px 10px 12px;
        gap: 8px;
    }

    .assoc-login-gold-center,
    .assoc-login-gold-right {
        grid-column: 1;
        justify-self: center;
        width: 100%;
        text-align: center;
    }

    .assoc-login-gold-right .assoc-register-nav-cta {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        box-sizing: border-box;
        text-align: center;
        border-radius: 10px;
        box-shadow: 0 5px 10px rgba(45, 92, 37, 0.22);
    }

    .assoc-login-content {
        padding-top: 30px;
    }

    .assoc-login-main-title {
        font-size: clamp(2rem, 8.6vw, 2.75rem);
    }

    .assoc-login-card {
        margin-top: 24px;
        padding: 20px 16px 14px;
    }

    .assoc-login-card h2 {
        font-size: 1.55rem;
    }

    .assoc-login-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .assoc-register-brand {
        padding-top: 20px;
    }

    .assoc-register-logo {
        width: 86px;
        height: 86px;
    }

    .assoc-register-brand-name {
        font-size: 1rem;
    }

    .assoc-register-brand-sub {
        font-size: 0.84rem;
    }

    .assoc-register-gold-nav {
        min-height: 0;
        grid-template-columns: 1fr;
        justify-items: center;
        width: 100%;
        padding: 10px 10px 12px;
        gap: 8px;
    }

    .assoc-register-gold-bar {
        overflow: hidden;
    }

    .assoc-register-gold-nav a {
        font-size: 0.88rem;
    }

    .assoc-register-gold-center,
    .assoc-register-gold-right {
        grid-column: 1;
        justify-self: center;
        width: 100%;
        text-align: center;
    }

    .assoc-register-nav-cta {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        box-sizing: border-box;
        text-align: center;
        border-radius: 10px;
        box-shadow: 0 5px 10px rgba(45, 92, 37, 0.22);
    }

    .assoc-register-content {
        padding-top: 26px;
    }

    .assoc-register-head {
        margin-bottom: 16px;
    }

    .assoc-register-head h1 {
        font-size: clamp(2rem, 8.6vw, 2.75rem);
    }

    .assoc-register-stage {
        padding: 12px;
        border-radius: 14px;
    }

    .member-login-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .member-auth-frame-head {
        padding: 14px 16px;
    }

    .member-auth-frame-head h1 {
        font-size: 1.08rem;
    }

    .member-auth-board {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .member-auth-showcase {
        padding: 16px;
        text-align: center;
    }

    .member-auth-title {
        font-size: clamp(1.7rem, 8vw, 2.1rem);
    }

    .member-auth-copy {
        margin-inline: auto;
    }

    .member-auth-points {
        text-align: left;
        max-width: 420px;
        margin-inline: auto;
        margin-top: 12px;
    }

    .member-auth-card-wrap {
        width: 100%;
        margin-inline: auto;
    }

    .aaa-member-login-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .aaa-member-login-intro {
        text-align: center;
        padding: 0;
    }

    .aaa-member-login-copy {
        margin-inline: auto;
    }

    .aaa-member-login-card-wrap {
        width: min(100%, 470px);
        margin-inline: auto;
    }

    .member-sidebar-nav,
    .member-summary-grid,
    .member-status-grid,
    .member-main-grid {
        grid-template-columns: 1fr;
    }

    .member-login-left {
        text-align: center;
        margin-inline: auto;
    }

    .member-login-benefits {
        text-align: left;
        margin-inline: auto;
        max-width: 420px;
    }

    .member-login-right {
        width: min(100%, 460px);
        margin-inline: auto;
    }

    .member-banner-chip {
        min-width: 0;
        width: 100%;
    }

    .dues-member-card {
        min-height: auto;
    }

    .dues-profile-wrapper {
        padding: 14px;
    }

    .dues-profile-table {
        padding: 14px 14px 6px;
    }

    .dues-profile-table h2 {
        font-size: 1.3rem;
    }

    .dues-profile-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 11px 0;
    }

    .form-grid,
    .field-grid.two,
    .field-grid.three,
    .field-grid.five,
    .payment-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .panel,
    .card,
    .auth-card,
    .member-login-card {
        padding: 14px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        text-align: center;
        width: 100%;
    }

    .footer-inner p {
        margin: 2px 0;
        text-align: center;
    }

    .footer-inner p:last-child {
        margin-left: 0;
        text-align: center;
    }

    #cropCanvas {
        width: 100%;
        max-width: 260px;
        height: auto;
        aspect-ratio: 1/1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .member-avatar-frame,
    .member-avatar-frame::before,
    .member-avatar-frame::after,
    .member-avatar-image,
    .member-directory-avatar,
    .member-directory-avatar::before,
    .member-directory-avatar img,
    .dues-member-avatar,
    .dues-member-avatar::before,
    .dues-member-avatar::after,
    .dues-member-avatar img,
    .member-directory-card,
    .dues-member-card {
        animation: none !important;
        transition: none !important;
    }
}
