:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #09090b;
    color: #f4f4f5;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(245, 158, 11, 0.08), transparent 32rem),
        #09090b;
}

a {
    color: #fbbf24;
    text-decoration: none;
}

a:hover {
    color: #fcd34d;
}

.member-shell {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 48px;
}

.member-auth-shell {
    width: min(440px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.member-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        ),
        #111113;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.member-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #f4f4f5;
    opacity: 0.85;
}

.member-card-body {
    padding: 28px;
}

.member-brand {
    margin-bottom: 28px;
    text-align: center;
}

.member-brand h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.member-brand-line {
    width: min(260px, 75%);
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(
        90deg,
        transparent,
        #f59e0b 20%,
        #fde047 50%,
        #f59e0b 80%,
        transparent
    );
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.member-subtitle {
    margin: 8px 0 0;
    color: #a1a1aa;
    font-size: 14px;
}

.member-field {
    margin-bottom: 18px;
}

.member-field label {
    display: block;
    margin-bottom: 7px;
    color: #d4d4d8;
    font-size: 14px;
    font-weight: 600;
}

.member-field input[type="email"],
.member-field input[type="password"],
.member-field input[type="text"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 11px;
    outline: none;
    background: #18181b;
    color: #ffffff;
    font: inherit;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.member-field input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.13);
}

.member-error {
    margin: 7px 0 0;
    color: #fca5a5;
    font-size: 13px;
}

.member-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 20px;
    color: #d4d4d8;
    font-size: 14px;
}

.member-remember input {
    accent-color: #f59e0b;
}

.member-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 0;
    border-radius: 11px;
    background: #f59e0b;
    color: #18181b;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 0.16s ease,
        background 0.16s ease;
}

.member-button:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

.member-button-full {
    width: 100%;
}

.member-button-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #f4f4f5;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.member-button-secondary:hover {
    background: rgba(255, 255, 255, 0.11);
}

.member-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.member-welcome h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 800;
}

.member-welcome p {
    margin: 7px 0 0;
    color: #a1a1aa;
    font-size: 14px;
}

.member-section-title {
    margin: 0 0 16px;
    color: #f4f4f5;
    font-size: 1.1rem;
    font-weight: 750;
}

.member-table-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: #111113;
}

.member-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.member-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.member-table th,
.member-table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.member-table th {
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.025);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.member-table td {
    color: #e4e4e7;
    font-size: 14px;
}

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

.member-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #d4d4d8;
    font-size: 12px;
    font-weight: 650;
}

@media (max-width: 640px) {
    .member-shell {
        width: min(100% - 22px, 1100px);
        padding-top: 20px;
    }

    .member-auth-shell {
        width: min(100% - 22px, 440px);
        padding: 18px 0;
    }

    .member-card-body {
        padding: 22px 18px;
    }

    .member-header {
        flex-direction: column;
        align-items: stretch;
    }

    .member-header form,
    .member-header .member-button {
        width: 100%;
    }

    .member-table th,
    .member-table td {
        padding: 13px 14px;
    }
}

/* =========================================================
   MEMBER PWA - MOBILE APP UI
========================================================= */

@media (max-width: 640px) {

    html {
        font-size: 16px;
    }

    body {
        min-height: 100dvh;
        -webkit-text-size-adjust: 100%;
    }

    .member-shell {
        width: 100%;
        margin: 0;
        padding: 18px 14px 32px;
    }

    .member-brand {
        margin-bottom: 20px;
    }

    .member-brand h1 {
        font-size: 1.55rem;
        line-height: 1.2;
        letter-spacing: 0.035em;
    }

    .member-subtitle {
        margin-top: 9px;
        font-size: 0.95rem;
    }

    .member-card {
        border-radius: 20px;
    }

    .member-card-body {
        padding: 22px 18px;
    }

    .member-header {
        gap: 16px;
        margin-bottom: 28px;
    }

    .member-welcome h1 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .member-welcome p {
        margin-top: 8px;
        font-size: 0.95rem;
    }

    .member-section-title {
        margin-bottom: 16px;
        font-size: 1.2rem;
    }

    .member-button {
        min-height: 50px;
        border-radius: 13px;
        font-size: 1rem;
    }
}

/* =========================================================
   MEMBER PWA - MOBILE APP UI
========================================================= */

@media (max-width: 640px) {

    html {
        font-size: 16px;
    }

    body {
        min-height: 100dvh;
        -webkit-text-size-adjust: 100%;
    }

    .member-shell {
        width: 100%;
        margin: 0;
        padding: 18px 14px 32px;
    }

    .member-brand {
        margin-bottom: 20px;
    }

    .member-brand h1 {
        font-size: 1.55rem;
        line-height: 1.2;
        letter-spacing: 0.035em;
    }

    .member-subtitle {
        margin-top: 9px;
        font-size: 0.95rem;
    }

    .member-card {
        border-radius: 20px;
    }

    .member-card-body {
        padding: 22px 18px;
    }

    .member-header {
        gap: 16px;
        margin-bottom: 28px;
    }

    .member-welcome h1 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .member-welcome p {
        margin-top: 8px;
        font-size: 0.95rem;
    }

    .member-section-title {
        margin-bottom: 16px;
        font-size: 1.2rem;
    }

    .member-button {
        min-height: 50px;
        border-radius: 13px;
        font-size: 1rem;
    }
}

/* =========================================================
   MEMBER PWA - MOBILE APP UI
========================================================= */

@media (max-width: 640px) {

    html {
        font-size: 16px;
    }

    body {
        min-height: 100dvh;
        -webkit-text-size-adjust: 100%;
    }

    .member-shell {
        width: 100%;
        margin: 0;
        padding: 18px 14px 32px;
    }

    .member-brand {
        margin-bottom: 20px;
    }

    .member-brand h1 {
        font-size: 1.55rem;
        line-height: 1.2;
        letter-spacing: 0.035em;
    }

    .member-subtitle {
        margin-top: 9px;
        font-size: 0.95rem;
    }

    .member-card {
        border-radius: 20px;
    }

    .member-card-body {
        padding: 22px 18px;
    }

    .member-header {
        gap: 16px;
        margin-bottom: 28px;
    }

    .member-welcome h1 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .member-welcome p {
        margin-top: 8px;
        font-size: 0.95rem;
    }

    .member-section-title {
        margin-bottom: 16px;
        font-size: 1.2rem;
    }

    .member-button {
        min-height: 50px;
        border-radius: 13px;
        font-size: 1rem;
    }
}

/* =========================================================
   MEMBER PWA - MOBILE APP UI
========================================================= */

@media (max-width: 640px) {

    html {
        font-size: 16px;
    }

    body {
        min-height: 100dvh;
        -webkit-text-size-adjust: 100%;
    }

    .member-shell {
        width: 100%;
        margin: 0;
        padding: 18px 14px 32px;
    }

    .member-brand {
        margin-bottom: 20px;
    }

    .member-brand h1 {
        font-size: 1.55rem;
        line-height: 1.2;
        letter-spacing: 0.035em;
    }

    .member-subtitle {
        margin-top: 9px;
        font-size: 0.95rem;
    }

    .member-card {
        border-radius: 20px;
    }

    .member-card-body {
        padding: 22px 18px;
    }

    .member-header {
        gap: 16px;
        margin-bottom: 28px;
    }

    .member-welcome h1 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .member-welcome p {
        margin-top: 8px;
        font-size: 0.95rem;
    }

    .member-section-title {
        margin-bottom: 16px;
        font-size: 1.2rem;
    }

    .member-button {
        min-height: 50px;
        border-radius: 13px;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {

    .member-table-card {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .member-table-wrap {
        overflow: visible;
    }

    .member-table {
        width: 100%;
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 14px;
    }

    .member-table thead {
        display: none;
    }

    .member-table tbody,
    .member-table tr,
    .member-table td {
        display: block;
        width: 100%;
    }

    .member-table tr {
        padding: 18px;
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 18px;
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,0.045),
                rgba(255,255,255,0.012)
            ),
            #111113;
        box-shadow:
            0 12px 30px rgba(0,0,0,0.22),
            inset 0 1px 0 rgba(255,255,255,0.035);
    }

    .member-table td {
        padding: 8px 0;
        border: 0;
        font-size: 1rem;
    }

    .member-table td:first-child {
        color: #ffffff;
        font-size: 1.15rem;
        font-weight: 800;
    }

    .member-table td:nth-child(2) {
        color: #fbbf24;
        font-size: 1.35rem;
        font-weight: 800;
    }

    .member-table td:nth-child(3) {
        padding-top: 10px;
    }

    .member-table td:nth-child(4) {
        padding-top: 14px;
    }

    .member-table td:nth-child(4) a {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        border-radius: 13px;
        background: #f59e0b;
        color: #18181b;
        font-weight: 800;
    }

    .member-status {
        padding: 7px 11px;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .member-card::before {
        display: none !important;
    }
}

/* MEMBER APP - MOBILE CENTER ALIGNMENT */
@media (max-width: 640px) {

    .member-header {
        text-align: center;
        align-items: center;
    }

    .member-welcome {
        width: 100%;
        text-align: center;
    }

    .member-section-title {
        text-align: center;
    }

    .member-table td {
        text-align: center;
    }

    .member-table td:nth-child(4) a {
        text-align: center;
    }

    .member-status {
        justify-content: center;
    }
}

/* MEMBER APP - BRAND LOGO */
@media (max-width: 640px) {

    .member-app-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .member-app-logo {
        display: block;
        width: 82px;
        height: 82px;
        object-fit: contain;
    }

    .member-app-brand-text {
        text-align: center;
    }

    .member-app-brand-text h1 {
        margin: 0;
    }
}

/* MEMBER APP - COMPACT SIGN OUT */
@media (max-width: 640px) {

    .member-header form {
        width: auto !important;
        margin: 0 auto;
    }

    .member-header .member-button-secondary {
        width: auto !important;
        min-height: 40px;
        padding: 8px 18px;
        border-radius: 999px;
        font-size: 0.88rem;
        font-weight: 650;
        color: #a1a1aa;
        background: rgba(255,255,255,0.045);
    }
}



/* MEMBER APP - BOTTOM SIGN OUT */
@media (max-width: 640px) {

    .member-bottom-actions {
        display: flex;
        justify-content: center;
        margin-top: 28px;
        padding: 6px 0 2px;
    }

    .member-bottom-actions form {
        width: auto !important;
        margin: 0 !important;
        position: static !important;
    }

    .member-bottom-actions .member-button-secondary {
        width: auto !important;
        min-width: 130px;
        min-height: 42px;
        padding: 9px 20px;
        border: 1px solid rgba(34, 197, 94, 0.35);
        border-radius: 999px;
        background: rgba(34, 197, 94, 0.10);
        color: #86efac;
        font-size: 0.9rem;
        font-weight: 700;
    }
}

/* MEMBER APP - CURRENT MONTH SUMMARY */
@media (max-width: 640px) {

    .member-current-card {
        margin-bottom: 26px;
        padding: 24px 20px;
        border: 1px solid rgba(245, 158, 11, 0.22);
        border-radius: 22px;
        background:
            linear-gradient(
                180deg,
                rgba(245,158,11,0.08),
                rgba(255,255,255,0.015)
            ),
            #111113;
        text-align: center;
        box-shadow:
            0 18px 40px rgba(0,0,0,0.28),
            inset 0 1px 0 rgba(255,255,255,0.04);
    }

    .member-current-label {
        margin-bottom: 8px;
        color: #a1a1aa;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .member-current-month {
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 800;
    }

    .member-current-amount {
        margin-top: 10px;
        color: #fbbf24;
        font-size: 2rem;
        line-height: 1.15;
        font-weight: 900;
    }

    .member-current-status {
        margin-top: 14px;
    }

    .member-current-action {
        margin-top: 18px;
    }

    .member-current-button {
        display: flex;
        width: 100%;
        min-height: 50px;
        align-items: center;
        justify-content: center;
        padding: 12px 18px;
        border-radius: 14px;
        background: #f59e0b;
        color: #18181b;
        font-size: 1rem;
        font-weight: 850;
        text-decoration: none;
    }
}

/* MEMBER APP - SECTION TITLE GOLD UNDERLINE */
@media (max-width: 640px) {

    .member-section-title {
        position: relative;
        padding-bottom: 16px;
        margin-bottom: 22px;
    }

    .member-section-title::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 72%;
        height: 1px;
        transform: translateX(-50%);
        background: linear-gradient(
            90deg,
            transparent,
            #f59e0b 20%,
            #fbbf24 50%,
            #f59e0b 80%,
            transparent
        );
    }
}



/* =========================================================
   MEMBER APP - PREMIUM LOGIN
========================================================= */

@media (max-width: 640px) {

    .member-auth-shell {
        width: 100%;
        min-height: 100dvh;
        padding: 32px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .member-auth-shell .member-card {
        width: 100%;
        max-width: 420px;
        border-radius: 24px;
    }

    .member-auth-shell .member-card-body {
        padding: 28px 22px;
    }

    .member-auth-shell .member-app-brand {
        margin-bottom: 30px;
    }

    .member-auth-shell .member-app-logo {
        width: 88px;
        height: 88px;
    }

    .member-auth-shell .member-app-brand-text h1 {
        font-size: 1.55rem;
        font-weight: 850;
    }

    .member-auth-shell .member-subtitle {
        margin-top: 7px;
        font-size: 0.95rem;
    }

    .member-auth-shell .member-field {
        margin-bottom: 20px;
    }

    .member-auth-shell .member-field label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .member-auth-shell .member-field input {
        width: 100%;
        min-height: 52px;
        padding: 12px 14px;
        border-radius: 13px;
        font-size: 1rem;
    }

    .member-auth-shell .member-remember {
        margin: 4px 0 22px;
        font-size: 0.92rem;
    }

    .member-auth-shell .member-button-full {
        width: 100%;
        min-height: 52px;
        border-radius: 14px;
        background: #f59e0b;
        color: #18181b;
        font-size: 1rem;
        font-weight: 850;
    }
}

/* SET PASSWORD PAGE - LOGO SIZE FIX */
@media (max-width: 640px) {
    .member-setup-shell .member-app-logo {
        width: 88px !important;
        height: 88px !important;
        max-width: 88px !important;
        object-fit: contain;
    }
}

/* SET PASSWORD PAGE - LOGO SIZE ALL SCREENS */
.member-setup-shell .member-app-logo {
    display: block;
    width: 88px !important;
    height: 88px !important;
    max-width: 88px !important;
    max-height: 88px !important;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

/* MEMBER LOGIN PAGE - LOGO SIZE ALL SCREENS */
.member-auth-shell:not(.member-setup-shell) .member-app-logo {
    display: block;
    width: 88px !important;
    height: 88px !important;
    max-width: 88px !important;
    max-height: 88px !important;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

/* MEMBER DASHBOARD - DESKTOP BRAND LOGO */
@media (min-width: 641px) {
    .member-shell .member-app-logo {
        display: block;
        width: 110px;
        height: 110px;
        max-width: 110px;
        max-height: 110px;
        object-fit: contain;
        margin: 0 auto;
    }
}

/* MEMBER DASHBOARD - DESKTOP CURRENT MONTH CARD */
@media (min-width: 641px) {
    .member-current-card {
        margin: 22px 0 30px;
        padding: 24px 28px;
        border: 1px solid rgba(245, 158, 11, 0.22);
        border-radius: 18px;
        background:
            linear-gradient(
                135deg,
                rgba(245, 158, 11, 0.08),
                rgba(255, 255, 255, 0.015)
            ),
            #111113;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }

    .member-current-label {
        color: #a1a1aa;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .member-current-month {
        margin-top: 6px;
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 800;
    }

    .member-current-amount {
        margin-top: 8px;
        color: #fbbf24;
        font-size: 1.8rem;
        font-weight: 900;
    }

    .member-current-status {
        margin-top: 10px;
    }

    .member-current-action {
        margin-top: 16px;
    }

    .member-current-button {
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        padding: 9px 22px;
        border-radius: 12px;
        background: #f59e0b;
        color: #18181b;
        font-weight: 800;
        text-decoration: none;
    }
}

/* MEMBER PROFILE / ACCOUNT SETTINGS */

.member-profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.member-profile-form label {
    display: block;
    color: #f4f4f5;
    font-size: 0.92rem;
    font-weight: 700;
}

.member-profile-form input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 13px;
    background: #27272a;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

.member-profile-form input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}

.member-profile-form .member-current-button {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    cursor: pointer;
}

.member-field-error {
    color: #fca5a5;
    font-size: 0.86rem;
    font-weight: 600;
}

.member-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
}

.member-alert-success {
    border: 1px solid rgba(34,197,94,0.28);
    background: rgba(34,197,94,0.10);
    color: #86efac;
}

@media (max-width: 640px) {
    .member-profile-form {
        width: 100%;
    }

    .member-profile-form input {
        width: 100%;
    }

    .member-profile-form .member-current-button {
        width: 100%;
    }
}

.member-password-wrap {
    position: relative;
}

.member-password-wrap input {
    padding-right: 50px;
}

.member-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #d4d4d8;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

/* ACCOUNT SETTINGS - BOTTOM ACTIONS */
@media (max-width: 640px) {
    .member-profile-bottom-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ACCOUNT SETTINGS - PREMIUM BOTTOM ACTIONS */
@media (max-width: 640px) {

    .member-profile-bottom-actions {
        gap: 18px;
    }

    .member-profile-bottom-actions > a:first-child {
        background: rgba(255, 255, 255, 0.045) !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        color: #e4e4e7 !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.04),
            0 8px 24px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
}

/* ACCOUNT SETTINGS - INSTALL BUTTON SIZE */
@media (max-width: 640px) {
    .member-profile-bottom-actions #installAppButton {
        width: 100% !important;
        min-height: 50px;
        padding: 12px 18px;
        border-radius: 14px;
    }
}

/* ACCOUNT SETTINGS - BACK BUTTON SAME SIZE AS INSTALL */
@media (max-width: 640px) {
    .member-profile-bottom-actions > a:first-child {
        width: 100% !important;
        min-height: 50px;
        padding: 12px 18px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ACCOUNT SETTINGS - BACK BUTTON GOLD TEXT */
@media (max-width: 640px) {
    .member-profile-bottom-actions > a:first-child {
        color: #f59e0b !important;
    }
}

/* MEMBER DASHBOARD - BOTTOM ACTION GAP */
@media (max-width: 640px) {
    .member-bottom-actions {
        gap: 12px;
    }
}

/* MEMBER SET PASSWORD - PASSWORD VISIBILITY TOGGLE */
.member-password-wrap {
    position: relative;
}

.member-password-wrap input {
    width: 100%;
    padding-right: 48px;
}

.member-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #a1a1aa;
    padding: 4px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* =========================================================
   MEMBER DASHBOARD - PREMIUM V1
========================================================= */

/* Current month premium card */
.member-current-card {
    position: relative;
    overflow: hidden;
    margin: 22px 0 32px;
    padding: 26px 28px;
    border: 1px solid rgba(245, 158, 11, 0.20);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(245, 158, 11, 0.10),
            transparent 220px
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        ),
        #111113;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.member-current-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 74px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(
        90deg,
        #f59e0b,
        #fde68a
    );
}

.member-current-label {
    margin: 0 0 7px;
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.member-current-month {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 800;
}

.member-current-amount {
    margin-top: 9px;
    color: #fbbf24;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.member-current-status {
    margin-top: 13px;
}

.member-current-action {
    margin-top: 18px;
}

.member-current-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #f59e0b,
        #fbbf24
    );
    color: #18181b;
    font-size: 0.92rem;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.14);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.member-current-button:hover {
    color: #18181b;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.20);
}

/* Mobile */
@media (max-width: 640px) {

    .member-current-card {
        margin: 18px 0 28px;
        padding: 23px 18px 20px;
        border-radius: 19px;
        text-align: center;
    }

    .member-current-card::before {
        left: 50%;
        width: 64px;
        transform: translateX(-50%);
    }

    .member-current-label {
        margin-bottom: 7px;
        font-size: 0.72rem;
    }

    .member-current-month {
        font-size: 1.15rem;
    }

    .member-current-amount {
        margin-top: 9px;
        font-size: 1.9rem;
    }

    .member-current-status {
        margin-top: 12px;
    }

    .member-current-action {
        margin-top: 17px;
    }

    .member-current-button {
        width: 100%;
        min-height: 48px;
        border-radius: 13px;
    }
}


/* =========================================================
   MEMBER DASHBOARD - PREMIUM DESKTOP SUMMARY
========================================================= */

@media (min-width: 641px) {

    .member-current-card {
        display: grid;
        grid-template-columns:
            minmax(220px, 1.5fr)
            minmax(140px, 0.75fr)
            minmax(120px, 0.65fr)
            auto;
        grid-template-areas:
            "label amount status action"
            "month amount status action";
        align-items: center;
        column-gap: 28px;
        row-gap: 4px;
        padding: 24px 26px;
    }

    .member-current-label {
        grid-area: label;
        align-self: end;
        margin: 0;
    }

    .member-current-month {
        grid-area: month;
        align-self: start;
        margin: 0;
    }

    .member-current-amount {
        grid-area: amount;
        margin: 0;
        padding-left: 24px;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 2rem;
    }

    .member-current-status {
        grid-area: status;
        margin: 0;
        padding-left: 24px;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .member-current-action {
        grid-area: action;
        margin: 0;
        padding-left: 24px;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .member-current-button {
        min-width: 112px;
    }
}


/* =========================================================
   MEMBER DASHBOARD - PREMIUM BOTTOM ACTIONS
========================================================= */

.member-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.member-bottom-actions > a {
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.07);
    color: #fbbf24;
}

.member-bottom-actions > a:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.42);
    color: #fde68a;
}

.member-bottom-actions form {
    margin: 0;
}

.member-bottom-actions form .member-button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.045);
    color: #a1a1aa;
}

.member-bottom-actions form .member-button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f4f4f5;
}

/* Mobile */
@media (max-width: 640px) {

    .member-bottom-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 28px;
        padding-top: 20px;
    }

    .member-bottom-actions > a,
    .member-bottom-actions form,
    .member-bottom-actions form .member-button-secondary {
        width: 100% !important;
    }

    .member-bottom-actions > a,
    .member-bottom-actions form .member-button-secondary {
        min-height: 48px;
        border-radius: 13px;
    }
}


/* Payment status variants */
.member-current-button.is-paid {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.18);
}

.member-current-button.is-submitted {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.18);
}

.member-current-button.is-paid:hover,
.member-current-button.is-submitted:hover {
    color: #ffffff;
}

.member-status.is-paid {
    color: #4ade80;
}

.member-status.is-submitted {
    color: #60a5fa;
}


/* Department payment status */
.member-status.is-pending {
    color: #fbbf24;
}

.member-current-button.is-pending {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #18181b;
}

/* Mobile payment action colours */
@media (max-width: 640px) {
    .member-table td:nth-child(4) a.member-current-button.is-paid {
        background: linear-gradient(135deg, #16a34a, #22c55e);
        color: #ffffff;
    }

    .member-table td:nth-child(4) a.member-current-button.is-submitted {
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: #ffffff;
    }

    .member-table td:nth-child(4) a.member-current-button.is-pending {
        background: linear-gradient(135deg, #f59e0b, #fbbf24);
        color: #18181b;
    }
}
