/* Public member and wallet experience. Scoped to .member-page to leave the
   approved storefront, checkout, and dashboard untouched. */
.member-page {
    min-height: calc(100vh - 72px);
    padding: 64px 0 88px;
    background:
        radial-gradient(circle at 88% 8%, rgba(124, 74, 228, .16), transparent 29rem),
        radial-gradient(circle at 6% 88%, rgba(86, 48, 163, .1), transparent 31rem),
        var(--bg);
    color: var(--text);
}

.member-page *,
.member-page *::before,
.member-page *::after { box-sizing: border-box; }

.member-shell { max-width: 1200px; }
.member-narrow-shell { max-width: 590px; }

.member-page h1,
.member-page h2,
.member-page p { margin-top: 0; }

.member-eyebrow,
.member-card__eyebrow {
    color: var(--primary-strong);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.member-eyebrow { align-items: center; display: inline-flex; gap: 9px; }
.member-eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(104, 223, 160, .12); }
.member-card__eyebrow { display: block; margin-bottom: 9px; }

.member-card {
    border: 1px solid color-mix(in srgb, var(--border) 86%, var(--primary));
    border-radius: 20px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 96%, #3e246f), var(--surface));
    box-shadow: 0 18px 48px rgba(4, 1, 15, .24), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.member-card h1,
.member-card h2 { color: var(--text); font-weight: 830; letter-spacing: -.045em; }
.member-card h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.member-card h2 { font-size: 1.2rem; }
.member-card__copy { max-width: 54ch; color: var(--muted); font-size: .92rem; line-height: 1.65; }

.member-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: .87rem;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.member-button:hover { color: var(--text); transform: translateY(-2px); }
.member-button--primary { background: linear-gradient(135deg, #bd8aff, #7647df); box-shadow: 0 12px 26px rgba(100, 55, 207, .3); color: #fff; }
.member-button--primary:hover { background: linear-gradient(135deg, #caa0ff, #8859ed); box-shadow: 0 16px 32px rgba(100, 55, 207, .38); color: #fff; }
.member-button--ghost { border-color: var(--border); background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--text-secondary); }
.member-button--ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.member-button--light { background: #f6f0ff; color: #21103f; box-shadow: 0 12px 30px rgba(10, 3, 25, .18); }
.member-button--light:hover { background: #fff; color: #21103f; }
.member-button--full { width: 100%; }

.member-auth-page { align-items: center; display: grid; }
.member-auth-shell { align-items: center; display: grid; gap: clamp(42px, 8vw, 112px); grid-template-columns: minmax(0, 1.05fr) minmax(390px, .75fr); }
.member-auth-copy { max-width: 590px; }
.member-auth-copy h1 { max-width: 12ch; margin: 17px 0; color: var(--text); font-size: clamp(2.35rem, 5vw, 4.4rem); font-weight: 880; letter-spacing: -.075em; line-height: 1.01; }
.member-auth-copy > p { max-width: 51ch; color: var(--text-secondary); font-size: 1.02rem; line-height: 1.75; }

.member-auth-card { padding: 34px; }
.member-auth-card h2 { margin: 0; }
.member-auth-card__footer { margin: 23px 0 0; color: var(--muted); font-size: .83rem; text-align: center; }
.member-auth-card__footer a,.member-inline-link,.member-field__label-row a { color: var(--primary-strong); font-weight: 800; }
.member-auth-card__footer a:hover,.member-inline-link:hover,.member-field__label-row a:hover { color: #dfceff; }

.member-form { display: grid; gap: 17px; margin-top: 25px; }
.member-form__split { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-field { min-width: 0; }
.member-field label { display: block; margin-bottom: 8px; color: var(--text); font-size: .78rem; font-weight: 780; }
.member-field__label-row { align-items: baseline; display: flex; justify-content: space-between; gap: 12px; }
.member-field__label-row a { font-size: .73rem; text-decoration: none; }
.member-field input:not([type="hidden"]),
.member-field select,
.member-money-input input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: rgba(13, 8, 29, .55);
    color: var(--text);
    font: inherit;
    font-size: .9rem;
    padding: 0 13px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.member-field select { appearance: auto; }
.member-field input:not([type="hidden"]):hover,.member-field select:hover,.member-money-input input:hover { border-color: color-mix(in srgb, var(--primary) 58%, var(--border)); }
.member-field input:not([type="hidden"]):focus,.member-field select:focus,.member-money-input input:focus { border-color: var(--primary); background: rgba(25, 15, 50, .9); box-shadow: 0 0 0 4px rgba(164, 123, 255, .16); }
.member-field small { display: block; margin-top: 7px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.member-field ul.errorlist,.member-form > ul.errorlist { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; color: #ffafbd; font-size: .75rem; list-style: none; }
.member-form > ul.errorlist { padding: 11px; border: 1px solid rgba(255, 143, 165, .35); border-radius: 10px; background: rgba(125, 37, 60, .22); }
.member-money-input { align-items: center; display: flex; min-height: 48px; overflow: hidden; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; background: rgba(13, 8, 29, .55); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.member-money-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(164, 123, 255, .16); }
.member-money-input > span { flex: 0 0 auto; margin-right: 10px; color: var(--primary-strong); font-weight: 850; }
.member-money-input input,.member-field .member-money-input input:hover,.member-field .member-money-input input:focus { min-height: 46px; padding: 0; border: 0 !important; border-radius: 0; background: transparent; box-shadow: none !important; }

.member-message-stack { display: grid; gap: 8px; margin-top: 18px; }
.member-message { align-items: flex-start; display: flex; gap: 10px; padding: 11px 12px; border: 1px solid rgba(139, 185, 255, .32); border-radius: 12px; background: rgba(49, 72, 128, .2); color: #d7e6ff; font-size: .8rem; line-height: 1.45; }
.member-message > span { align-items: center; display: inline-flex; flex: 0 0 20px; height: 20px; justify-content: center; border-radius: 50%; background: rgba(139, 185, 255, .18); color: #c6ddff; font-size: .72rem; font-weight: 900; }
.member-message p { margin: 0; }
.member-message--success { border-color: rgba(104, 223, 160, .36); background: rgba(35, 102, 70, .18); color: #c3f7d9; }
.member-message--success > span { background: rgba(104, 223, 160, .18); color: var(--success); }
.member-message--error { border-color: rgba(255, 143, 165, .4); background: rgba(126, 34, 58, .22); color: #ffced8; }
.member-message--error > span { background: rgba(255, 143, 165, .18); color: #ffadbc; }

.member-page-heading { align-items: flex-end; display: flex; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.member-title-row { align-items: center; display: flex; flex-wrap: wrap; column-gap: 26px; row-gap: 10px; margin: 10px 0 7px; }
.member-page-heading h1 { margin: 0; color: var(--text); font-size: clamp(2rem, 4vw, 3rem); font-weight: 860; letter-spacing: -.06em; }
.member-page-heading p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.member-vip-badge { align-items: center; align-self: center; display: inline-flex; justify-content: center; min-width: 72px; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(208, 166, 79, .48); border-radius: 12px; background: linear-gradient(145deg, rgba(87, 65, 26, .62), rgba(40, 30, 17, .76)); box-shadow: inset 0 1px 0 rgba(255, 230, 157, .08); color: #e8c872; font-size: .9rem; font-weight: 850; letter-spacing: .11em; line-height: 1; }

.member-order-detail-card, .member-digital-delivery-card { max-width: 760px; }
.member-digital-delivery-card { margin-top: 18px; }
.member-digital-delivery-card > p { color: var(--member-muted); margin: 4px 0 16px; }
.member-digital-delivery-list { display: grid; gap: 12px; }
.member-digital-delivery-item { background: rgba(255,255,255,.035); border: 1px solid rgba(227,210,255,.13); border-radius: 12px; padding: 13px; }
.member-digital-delivery-item > span { color: var(--member-muted); display: block; font-size: .78rem; font-weight: 700; margin-bottom: 8px; }
.member-digital-delivery-item > div { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.member-digital-delivery-item code { color: var(--member-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; overflow-wrap: anywhere; }
.member-digital-delivery-warning { color: #ffd59a !important; font-size: .84rem; margin-top: 16px !important; }
.member-digital-delivery-toast { color: #8de7ba !important; min-height: 1.2em; }
@media (max-width: 540px) { .member-digital-delivery-item > div { align-items: stretch; flex-direction: column; } .member-digital-delivery-item .member-button { width: 100%; } }
.member-heading-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.member-heading-actions form { margin: 0; }

.member-wallet-hero { align-items: center; display: flex; overflow: hidden; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 26px 30px; position: relative; border: 1px solid rgba(190, 154, 255, .35); border-radius: 22px; background: linear-gradient(122deg, #5431aa 0%, #2b174e 48%, #181028 100%); box-shadow: 0 23px 48px rgba(7, 2, 21, .32), inset 0 1px 0 rgba(255, 255, 255, .11); }
.member-wallet-hero__glow { position: absolute; width: 340px; height: 340px; top: -190px; right: 7%; border-radius: 50%; background: radial-gradient(circle, rgba(235, 215, 255, .34), rgba(173, 101, 255, .08) 43%, transparent 70%); pointer-events: none; }
.member-wallet-hero__content,.member-wallet-hero > a { position: relative; }
.member-wallet-balance { align-items: center; display: flex; gap: 12px; margin-top: 7px; }.member-wallet-balance__coin { width: clamp(36px, 4vw, 48px); height: clamp(36px, 4vw, 48px); flex: 0 0 auto; object-fit: contain; }.member-wallet-balance strong { display: block; color: #fff; font-size: clamp(2.3rem, 5vw, 3.5rem); font-variant-numeric: tabular-nums; font-weight: 880; letter-spacing: -.065em; line-height: 1; }
.member-wallet-hero p { max-width: 51ch; margin: 0; color: #e2d7fb; font-size: .83rem; line-height: 1.55; }

.member-profile-grid,.member-data-grid { display: grid; gap: 20px; }
.member-profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.member-data-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; }
.member-account-card,.member-deposit-summary,.member-table-card { padding: 24px; }
.member-loyalty-card { padding: 24px; }
.member-loyalty-card p { margin: 17px 0 15px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.member-loyalty-level { flex: 0 0 auto; color: #ebcf83; font-size: .78rem; font-weight: 850; }
.member-loyalty-progress { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(225, 197, 116, .14); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .28); }
.member-loyalty-progress > span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #a97734, #e4c46d); }
.member-loyalty-progress__copy { display: block; margin-top: 11px; color: var(--text-secondary); font-size: .72rem; font-variant-numeric: tabular-nums; line-height: 1.45; }
.member-card__heading { align-items: flex-start; display: flex; justify-content: space-between; gap: 16px; }
.member-card__heading h2 { margin: 0; }
.member-card__hint { color: var(--muted); font-size: .72rem; }
.member-account-avatar { align-items: center; display: inline-flex; flex: 0 0 42px; height: 42px; justify-content: center; border: 1px solid rgba(218, 194, 255, .3); border-radius: 14px; background: linear-gradient(145deg, #bd8aff, #7244d3); color: #fff; font-size: 1rem; font-weight: 850; }
.member-account-avatar--vip { border-color: rgba(219, 183, 98, .68); box-shadow: inset 0 0 0 1px rgba(255, 230, 157, .1); }
.member-account-lines { display: grid; gap: 0; margin: 21px 0 18px; }
.member-account-lines div { align-items: center; display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid rgba(214, 193, 255, .12); }
.member-account-lines span { color: var(--muted); font-size: .76rem; }
.member-account-lines strong { max-width: 60%; overflow-wrap: anywhere; color: var(--text); font-size: .8rem; text-align: right; }
.member-inline-link { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; text-decoration: none; }

.member-compact-list { display: grid; gap: 5px; margin-top: 16px; }
.member-compact-list__row { align-items: center; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(214, 193, 255, .1); transition: background .18s ease, transform .18s ease; }
.member-compact-list__row:hover { background: rgba(164, 123, 255, .06); transform: translateX(2px); }
.member-compact-list__row strong,.member-compact-list__row small { display: block; }
.member-compact-list__row strong { overflow: hidden; color: var(--text); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.member-compact-list__row small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.member-compact-list__row b { color: var(--text-secondary); font-size: .78rem; white-space: nowrap; }
.member-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 4px rgba(255, 208, 113, .1); }
.member-status-dot--completed { background: var(--success); box-shadow: 0 0 0 4px rgba(104, 223, 160, .1); }
.member-status-dot--rejected,.member-status-dot--failed,.member-status-dot--expired { background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 143, 165, .1); }
.member-empty-state { display: grid; gap: 9px; justify-items: start; padding: 21px 0 4px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.member-empty-state > span { align-items: center; display: inline-flex; width: 32px; height: 32px; justify-content: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary-strong); font-size: 1rem; }
.member-empty-state p { margin: 0; }

.member-table-wrap { overflow-x: auto; margin-top: 19px; }
.member-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.member-table th { padding: 0 10px 10px 0; color: var(--muted); font-size: .66rem; font-weight: 760; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.member-table td { padding: 12px 10px 12px 0; border-top: 1px solid rgba(214, 193, 255, .12); color: var(--text-secondary); font-size: .73rem; vertical-align: middle; }
.member-table td:first-child { align-items: center; display: flex; gap: 9px; }
.member-table td strong,.member-table td small { display: block; }
.member-table td strong { color: var(--text); font-size: .77rem; }
.member-table td small { max-width: 20ch; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.member-table__amount { text-align: right; white-space: nowrap; }
.member-table td.is-credit { color: var(--success); }
.member-table td.is-debit { color: #ffd0dc; }
.member-ledger-type { align-items: center; display: inline-flex; width: 25px; height: 25px; flex: 0 0 25px; justify-content: center; border-radius: 8px; background: rgba(104, 223, 160, .13); color: var(--success); font-size: .9rem; font-weight: 900; }
.member-ledger-type--debit_purchase,.member-ledger-type--admin_debit { background: rgba(255, 143, 165, .13); color: #ffb3c2; }
.member-order-list { display: grid; gap: 4px; margin-top: 17px; }
.member-order-list__row { align-items: center; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; padding: 10px 0; border-bottom: 1px solid rgba(214, 193, 255, .11); transition: background .18s ease, transform .18s ease; }
.member-order-list__row:hover { background: rgba(164, 123, 255, .06); transform: translateX(2px); }
.member-game-mini { align-items: center; display: inline-flex; width: 40px; height: 40px; justify-content: center; overflow: hidden; border: 1px solid rgba(195, 165, 255, .21); border-radius: 11px; background: var(--primary-soft); }
.member-game-mini img { width: 100%; height: 100%; object-fit: cover; }
.member-order-list__row strong,.member-order-list__row small { display: block; }
.member-order-list__row strong { overflow: hidden; color: var(--text); font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.member-order-list__row small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.member-order-list__status,.member-status { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255, 208, 113, .12); color: #ffe09c; font-size: .66rem; font-weight: 800; padding: 6px 9px; white-space: nowrap; }
.member-order-list__status.member-status--processing { background: rgba(139, 185, 255, .13); color: #b9d5ff; }
.member-order-list__status.member-status--completed,.member-status--completed { background: rgba(104, 223, 160, .13); color: var(--success); }
.member-order-list__status.member-status--cancelled,.member-status--rejected,.member-status--failed,.member-status--expired { background: rgba(255, 143, 165, .13); color: #ffb6c4; }

.member-form-page { padding-top: 50px; }
.member-back-link { display: inline-flex; margin-bottom: 17px; color: var(--muted); font-size: .8rem; font-weight: 760; text-decoration: none; transition: color .18s ease, transform .18s ease; }
.member-back-link:hover { color: var(--primary-strong); transform: translateX(-2px); }
.member-form-card { padding: 30px; }
.member-form-card h1 { margin: 0; }
.member-form-card__icon { align-items: center; display: inline-flex; width: 44px; height: 44px; justify-content: center; border-radius: 14px; background: var(--primary-soft); color: var(--primary-strong); font-size: 1.55rem; font-weight: 400; }
.member-deposit-notice { align-items: flex-start; display: flex; gap: 10px; padding: 12px; border: 1px solid rgba(139, 185, 255, .25); border-radius: 12px; background: rgba(61, 99, 172, .1); color: #d0e0ff; font-size: .76rem; line-height: 1.5; }
.member-deposit-notice > span { color: #b8d2ff; font-size: 1rem; }
.member-deposit-notice p { margin: 0; }
.member-result-card { text-align: center; }
.member-result-card .member-card__copy { margin-right: auto; margin-left: auto; }
.member-result-icon { align-items: center; display: inline-flex; width: 52px; height: 52px; justify-content: center; margin-bottom: 16px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-strong); font-size: 1.35rem; }
.member-result-icon--success { background: rgba(104, 223, 160, .15); color: var(--success); }

.member-deposit-shell { max-width: 1080px; }
.member-deposit-heading { align-items: center; margin-bottom: 24px; }
.member-deposit-grid { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .62fr); }
.member-deposit-instruction { padding: 28px; }
.member-deposit-sidebar { display: grid; gap: 14px; position: sticky; top: 92px; }
.member-payment-method { align-items: center; display: flex; gap: 15px; }
.member-payment-method__logo { align-items: center; display: inline-flex; width: 50px; height: 50px; flex: 0 0 50px; justify-content: center; border-radius: 14px; font-size: .78rem; font-weight: 900; }
.member-payment-method__logo--bca { background: #ebf2ff; color: #1454aa; }
.member-payment-method__logo--mandiri { background: #eaf7ff; color: #1a6589; }
.member-payment-method__logo--qris { background: linear-gradient(145deg, #fff, #dbd9dd); color: #141019; }
.member-payment-method__logo--va { background: linear-gradient(145deg, #c494ff, #6e42d6); color: #fff; }
.member-payment-method h2 { margin: 3px 0 5px; color: var(--text); font-size: 1.26rem; font-weight: 820; letter-spacing: -.035em; }
.member-payment-method p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.member-payment-value { margin-top: 24px; padding: 18px; border: 1px solid rgba(201, 173, 255, .2); border-radius: 15px; background: rgba(255, 255, 255, .035); }
.member-payment-value > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.member-payment-value > div { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
.member-payment-value strong { overflow-wrap: anywhere; color: #decaff; font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: .045em; line-height: 1.2; }
.member-payment-value small { display: block; margin-top: 10px; color: var(--muted); font-size: .76rem; }
.member-payment-value small b { color: var(--text); }
.member-copy-button { flex: 0 0 auto; border: 1px solid rgba(203, 169, 255, .35); border-radius: 9px; background: rgba(164, 123, 255, .15); color: #decaff; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 800; padding: 8px 10px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.member-copy-button:hover { border-color: var(--primary); background: rgba(164, 123, 255, .27); transform: translateY(-1px); }
.member-qris { display: grid; gap: 12px; justify-items: center; margin-top: 22px; padding: 20px; border: 1px solid rgba(201, 173, 255, .2); border-radius: 15px; background: rgba(255, 255, 255, .035); text-align: center; }
.member-qris img { display: block; width: clamp(210px, 42vw, 270px); max-width: 100%; aspect-ratio: 1; padding: 11px; border-radius: 13px; background: #fff; image-rendering: auto; }
.member-qris p { margin: 0; color: var(--text-secondary); font-size: .8rem; }
.member-payment-loading { display: grid; gap: 11px; justify-items: center; min-height: 210px; margin-top: 22px; padding: 35px 20px; border: 1px solid rgba(201, 173, 255, .2); border-radius: 15px; background: rgba(255, 255, 255, .035); color: var(--muted); text-align: center; }
.member-payment-loading p { margin: 3px 0 0; color: var(--text-secondary); font-weight: 740; }
.member-payment-loading small { color: var(--muted); font-size: .75rem; }
.member-loading-spinner { width: 38px; height: 38px; border: 4px solid rgba(196, 159, 255, .2); border-top-color: var(--primary-strong); border-radius: 50%; animation: member-spin .9s linear infinite; }
@keyframes member-spin { to { transform: rotate(360deg); } }
.member-instructions { display: grid; gap: 8px; margin: 23px 0 0; padding: 18px 18px 18px 37px; border: 1px solid rgba(214, 193, 255, .14); border-radius: 13px; background: rgba(15, 8, 33, .25); color: var(--text-secondary); font-size: .82rem; line-height: 1.55; }
.member-instructions li::marker { color: var(--primary-strong); font-weight: 850; }
.member-payment-state { align-items: flex-start; display: flex; gap: 16px; min-height: 180px; padding: 16px 0; }
.member-payment-state > span { align-items: center; display: inline-flex; width: 50px; height: 50px; flex: 0 0 50px; justify-content: center; border-radius: 50%; background: rgba(104, 223, 160, .15); color: var(--success); font-size: 1.35rem; font-weight: 900; }
.member-payment-state--danger > span { background: rgba(255, 143, 165, .14); color: #ffb1c1; }
.member-payment-state--warning > span { background: rgba(255, 208, 113, .14); color: #ffe09c; }
.member-payment-state h2 { margin: 3px 0 7px; color: var(--text); font-size: 1.35rem; font-weight: 830; }
.member-payment-state p { max-width: 48ch; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.member-payment-state .member-button { margin-top: 18px; }
.member-deposit-amount,.member-deposit-countdown,.member-security-note { padding: 20px; }
.member-deposit-amount > strong { display: block; margin: 7px 0 19px; color: #dfcaff; font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 860; letter-spacing: -.045em; }
.member-deposit-amount > div { align-items: center; display: flex; justify-content: space-between; gap: 15px; padding-top: 10px; border-top: 1px solid rgba(214, 193, 255, .11); }
.member-deposit-amount > div + div { margin-top: 10px; }
.member-deposit-amount span { color: var(--muted); font-size: .72rem; }
.member-deposit-amount b { max-width: 64%; overflow-wrap: anywhere; color: var(--text); font-size: .76rem; text-align: right; }
.member-deposit-countdown { overflow: hidden; position: relative; text-align: center; }
.member-deposit-countdown::before { position: absolute; inset: -70px; background: radial-gradient(circle, rgba(164, 123, 255, .23), transparent 68%); content: ""; pointer-events: none; }
.member-deposit-countdown > * { position: relative; }
.member-deposit-countdown > strong { display: block; margin: 12px 0 9px; color: var(--success); font-size: clamp(2.55rem, 5vw, 3.5rem); font-variant-numeric: tabular-nums; font-weight: 880; letter-spacing: -.065em; line-height: 1; }
.member-deposit-countdown > strong.is-warning { color: var(--warning); }
.member-deposit-countdown > strong.is-danger { color: var(--danger); font-size: 1.5rem; letter-spacing: 0; line-height: 1.25; }
.member-deposit-countdown p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.member-security-note { align-items: flex-start; display: flex; gap: 10px; border-color: rgba(139, 185, 255, .26); background: linear-gradient(130deg, rgba(33, 57, 115, .31), rgba(31, 20, 65, .72)); }
.member-security-note > span { color: #b8d3ff; font-size: 1rem; }
.member-security-note p { margin: 0; color: #d5e3ff; font-size: .77rem; line-height: 1.55; }
.member-toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; gap: 8px; max-width: min(370px, calc(100vw - 30px)); }
.member-toast { padding: 12px 14px; border: 1px solid rgba(104, 223, 160, .38); border-radius: 13px; background: #183127; box-shadow: 0 16px 40px rgba(0, 0, 0, .33); color: #c9f8dc; font-size: .8rem; animation: member-toast-in .22s ease both; }
.member-toast--error { border-color: rgba(255, 143, 165, .42); background: #381927; color: #ffd1db; }
@keyframes member-toast-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 991.98px) {
    .member-page { padding: 48px 0 68px; }
    .member-auth-shell { gap: 42px; grid-template-columns: 1fr; }
    .member-auth-copy { max-width: 650px; }
    .member-auth-copy h1 { max-width: 15ch; }
    .member-data-grid { grid-template-columns: 1fr; }
    .member-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-deposit-grid { grid-template-columns: 1fr; }
    .member-deposit-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-security-note { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    .member-page { min-height: calc(100vh - 63px); padding: 35px 0 52px; }
    .member-auth-copy h1 { font-size: clamp(2.25rem, 12vw, 3.3rem); }
    .member-auth-card,.member-account-card,.member-deposit-summary,.member-table-card,.member-form-card,.member-deposit-instruction { padding: 22px; }
    .member-form__split,.member-profile-grid { grid-template-columns: 1fr; }
    .member-page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
    .member-title-row { column-gap: 18px; row-gap: 10px; }
    .member-heading-actions { width: 100%; }
    .member-heading-actions > .member-button,.member-heading-actions form { flex: 1; }
    .member-heading-actions form .member-button { width: 100%; }
    .member-wallet-hero { align-items: flex-start; flex-direction: column; padding: 24px; }
    .member-wallet-hero > a { width: 100%; }
    .member-deposit-sidebar { grid-template-columns: 1fr; }
    .member-security-note { grid-column: auto; }
    .member-payment-value > div { align-items: flex-start; flex-direction: column; }
    .member-copy-button { width: 100%; }
    .member-deposit-heading .member-status { align-self: flex-start; }
}

@media (max-width: 420px) {
    .member-auth-card { padding: 20px; }
    .member-wallet-balance strong { font-size: 2.15rem; }
    .member-order-list__row { grid-template-columns: 36px minmax(0, 1fr); }
    .member-order-list__status { grid-column: 2; justify-self: start; }
}
.member-deposit-price-preview { display: grid; gap: 0; margin: 22px 0; overflow: hidden; border: 1px solid rgba(193, 166, 244, .2); border-radius: 14px; background: rgba(13, 8, 28, .35); }.member-deposit-price-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; color: #d9cfeb; font-size: .84rem; }.member-deposit-price-preview > div + div { border-top: 1px solid rgba(193, 166, 244, .13); }.member-deposit-price-preview strong { color: #fff; font-variant-numeric: tabular-nums; }.member-deposit-price-preview__total { background: rgba(133, 79, 227, .15); font-weight: 750; }.member-deposit-price-preview__total strong { color: #eadfff; font-size: 1rem; }
