:root {
    --bg: #07091b;
    --panel: #11142f;
    --panel-soft: #171b3d;
    --line: rgba(255, 255, 255, .09);
    --text: #f5f7ff;
    --muted: #969dbd;
    --primary: #6657ff;
    --primary-light: #8b80ff;
    --cyan: #2fd4e5;
    --green: #37d6a0;
    --red: #ff667c;
    --yellow: #f5bf55;
    --shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 4%, rgba(74, 63, 215, .19), transparent 34rem),
        radial-gradient(circle at 92% 18%, rgba(31, 181, 203, .10), transparent 30rem),
        var(--bg);
    font-family: Inter, Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: #b4adff; }
button, input, select { font: inherit; }
button { cursor: pointer; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.auth-page { display: grid; place-items: center; padding: 32px 20px; }
.auth-shell {
    width: min(1060px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(12, 14, 39, .9);
    box-shadow: var(--shadow);
}
.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(36, 32, 111, .85), rgba(12, 15, 50, .93));
}
.auth-brand::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -140px;
    bottom: -140px;
    border-radius: 50%;
    border: 70px solid rgba(46, 212, 229, .08);
}
.brand-logo-large { width: 92px; height: 92px; border-radius: 26px; box-shadow: 0 14px 35px rgba(0, 0, 0, .25); margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.auth-brand h1 { margin: 0; font-size: clamp(34px, 4.2vw, 55px); line-height: 1.13; letter-spacing: -.045em; }
.auth-brand > p:not(.eyebrow) { max-width: 420px; color: #b9bfda; font-size: 16px; }
.network-line { margin-top: 30px; color: #d5d9ee; font-weight: 700; }
.network-line span { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(245, 191, 85, .12); }
.auth-card { align-self: center; padding: 54px; }
.auth-card h2 { margin: 0; font-size: 29px; letter-spacing: -.03em; }
.auth-switch, .auth-back { display: block; margin-top: 24px; text-align: center; color: var(--muted); }
.setup-shell { width: min(1160px, 100%); }
.setup-card { padding-top: 32px; padding-bottom: 32px; }

.section-heading, .page-heading, .card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.section-heading { margin-bottom: 28px; }
.section-heading p, .section-heading h2, .page-heading p, .page-heading h1, .card-heading h2 { margin-top: 0; }
.page-heading { margin-bottom: 26px; }
.page-heading h1 { margin-bottom: 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.035em; }
.card-heading { margin-bottom: 20px; }
.card-heading h2 { margin-bottom: 0; font-size: 19px; }

.form-grid { display: grid; gap: 17px; }
.form-grid.two-column { grid-template-columns: 1fr 1fr; }
.form-grid .full-span { grid-column: 1 / -1; }
label, .field-title { color: #c7cce3; font-size: 13px; font-weight: 700; }
label small { color: var(--muted); font-weight: 500; }
input, select {
    width: 100%;
    min-height: 47px;
    margin-top: 7px;
    padding: 11px 13px;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;
    outline: none;
    background: rgba(4, 6, 23, .66);
}
input:focus, select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(102, 87, 255, .16); }
input::placeholder { color: #646a88; }
input[type="file"] { padding: 9px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.check-row input { width: 18px; min-height: 18px; margin: 3px 0 0; accent-color: var(--primary); }

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #fff;
    font-weight: 800;
}
.button:hover { color: #fff; transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg, var(--primary), #7669ff); box-shadow: 0 10px 28px rgba(102, 87, 255, .22); }
.button.secondary { border-color: var(--line); background: var(--panel-soft); }
.button.danger { background: rgba(255, 102, 124, .14); color: #ff9aaa; }
.button.full { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.text-button { padding: 0; border: 0; color: var(--red); background: none; }

.notice { margin-bottom: 20px; padding: 14px 16px; border: 1px solid; border-radius: 12px; }
.notice.error { border-color: rgba(255, 102, 124, .25); background: rgba(255, 102, 124, .10); color: #ff9aaa; }
.notice.success { border-color: rgba(55, 214, 160, .26); background: rgba(55, 214, 160, .10); color: #76e9bf; }
.notice.info { border-color: rgba(47, 212, 229, .23); background: rgba(47, 212, 229, .09); color: #84e5ee; }

.topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    background: rgba(7, 9, 27, .85);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-lockup:hover { color: #fff; }
.brand-lockup img { width: 40px; height: 40px; border-radius: 12px; }
.brand-lockup span { display: grid; line-height: 1.16; }
.brand-lockup strong { letter-spacing: .08em; }
.brand-lockup small { color: var(--muted); font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.network-badge, .amount-caption { padding: 7px 11px; border: 1px solid var(--line); border-radius: 100px; color: #c7cce3; background: rgba(255, 255, 255, .035); font-size: 12px; font-weight: 700; }
.member-name { color: #d5d9ec; font-size: 13px; font-weight: 700; }

.wallet-layout { display: grid; min-height: calc(100vh - 74px); grid-template-columns: 220px minmax(0, 1fr); }
.side-nav {
    position: sticky;
    top: 74px;
    height: calc(100vh - 74px);
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 28px 18px;
    border-right: 1px solid var(--line);
    background: rgba(9, 11, 31, .54);
}
.side-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: 10px 15px; border-radius: 11px; color: var(--muted); font-weight: 700; }
.side-nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.side-nav a.active { color: #fff; background: linear-gradient(135deg, rgba(102, 87, 255, .24), rgba(47, 212, 229, .09)); box-shadow: inset 3px 0 var(--primary-light); }
.side-nav a b { min-width: 22px; padding: 2px 6px; border-radius: 20px; text-align: center; color: #fff; background: var(--primary); font-size: 11px; }
.nav-logout { margin-top: auto; }
.nav-logout button { width: 100%; padding: 12px; border: 0; color: #ff9aaa; background: none; text-align: left; }
.wallet-main { width: min(1180px, 100%); padding: 44px clamp(22px, 4.5vw, 68px) 70px; }
.admin-main { width: 100%; max-width: 1540px; }
.bottom-nav { display: none; }

.balance-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 210px;
    margin-bottom: 24px;
    padding: 42px;
    border: 1px solid rgba(129, 118, 255, .25);
    border-radius: 22px;
    background: linear-gradient(130deg, rgba(56, 47, 144, .68), rgba(16, 20, 60, .9) 62%, rgba(19, 89, 105, .5));
    box-shadow: var(--shadow);
}
.balance-panel p, .balance-panel h2 { margin: 0; }
.balance-panel p { color: #bac0dd; }
.balance-panel h2 { margin-top: 10px; font-size: clamp(35px, 5vw, 58px); letter-spacing: -.04em; }
.balance-panel h2 span { color: var(--cyan); font-size: .36em; letter-spacing: .08em; }
.balance-panel small { color: #8f97ba; }
.balance-side { padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, .13); }
.balance-side strong { display: block; margin-top: 6px; font-size: 19px; }

.quick-grid, .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.quick-grid a, .stat-grid a {
    display: grid;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
    background: rgba(17, 20, 47, .82);
}
.quick-grid a:hover, .stat-grid a:hover { border-color: rgba(139, 128, 255, .38); transform: translateY(-2px); }
.quick-grid a > span { display: grid; width: 35px; height: 35px; place-items: center; margin-bottom: 17px; border-radius: 10px; color: var(--cyan); background: rgba(47, 212, 229, .09); font-size: 21px; }
.quick-grid small, .stat-grid span { color: var(--muted); }
.content-card, .toolbar-card, .pending-card, .receive-card {
    margin-bottom: 20px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(17, 20, 47, .82);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .14);
}
.pending-card { display: flex; align-items: center; gap: 18px; border-color: rgba(245, 191, 85, .23); background: rgba(245, 191, 85, .08); }
.pending-card h2, .pending-card p { margin: 0; }
.pending-card h2 { font-size: 18px; }
.pending-card p { color: #b4b9d1; }
.pending-icon { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 50%; color: #171524; background: var(--yellow); font-weight: 900; }

.activity-list > div { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.activity-list > div:first-child { border-top: 0; }
.activity-list p, .activity-list strong, .activity-list small { display: block; margin: 0; }
.activity-list small { color: var(--muted); }
.activity-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; font-weight: 900; }
.activity-icon.credit { color: var(--green); background: rgba(55, 214, 160, .1); }
.activity-icon.debit { color: var(--red); background: rgba(255, 102, 124, .1); }
.activity-icon.referral { color: var(--cyan); background: rgba(47, 212, 229, .1); font-size: 12px; }
.referral-preview b { color: var(--muted); font-size: 11px; font-weight: 600; }
.credit { color: var(--green); }
.debit { color: var(--red); }

.receive-card { max-width: 610px; padding: 36px; text-align: center; }
.qr-box { display: inline-grid; min-width: 220px; min-height: 220px; place-items: center; padding: 14px; border-radius: 15px; background: #fff; }
.qr-box img, .qr-box canvas { display: block; max-width: 100%; }
.address-box { display: flex; align-items: center; gap: 10px; margin: 10px 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 6, 23, .55); text-align: left; }
.address-box code { flex: 1; overflow-wrap: anywhere; color: #dfe2f2; font-size: 13px; }
.copy-button { flex: 0 0 auto; padding: 7px 10px; border: 0; border-radius: 8px; color: #fff; background: var(--primary); font-weight: 800; }
.warning-box { margin-bottom: 18px; padding: 13px; border-radius: 10px; color: #e8c981; background: rgba(245, 191, 85, .08); font-size: 13px; }
.form-note { color: var(--muted); font-size: 13px; }

.responsive-table { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: #858dab; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
td { color: #d3d7e8; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.table-sub { display: block; max-width: 260px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; }
.short-code { display: block; max-width: 245px; overflow: hidden; color: #c9cde0; text-overflow: ellipsis; }
.table-link { display: block; margin-top: 4px; font-size: 12px; }
.empty-state { padding: 36px 16px; color: var(--muted); text-align: center; }
.inline-form { display: inline; }

.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 100px; color: #bdc3dc; background: rgba(255, 255, 255, .06); font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-pill.active, .status-pill.assigned, .status-pill.confirmed { color: #70e4ba; background: rgba(55, 214, 160, .12); }
.status-pill.pending, .status-pill.requested, .status-pill.approved { color: #f1cf83; background: rgba(245, 191, 85, .12); }
.status-pill.suspended, .status-pill.rejected, .status-pill.failed { color: #ff92a3; background: rgba(255, 102, 124, .12); }
.status-pill.broadcast { color: #73deeb; background: rgba(47, 212, 229, .11); }

.profile-list > div, .settings-list > div { display: flex; justify-content: space-between; gap: 30px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.profile-list > div span, .settings-list > div span { color: var(--muted); }
.profile-list form { margin-top: 24px; }
.metric-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.metric-strip > div { display: grid; padding: 18px; background: var(--panel); }
.metric-strip small { color: var(--muted); }

.stat-grid { grid-template-columns: repeat(4, 1fr); }
.stat-grid small { color: var(--muted); }
.stat-grid strong { margin: 5px 0; font-size: 35px; }
.stat-grid .text-small { display: flex; min-height: 53px; align-items: center; font-size: 21px; }
.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.policy-grid > div { padding: 18px; border-radius: 13px; background: rgba(255, 255, 255, .035); }
.policy-grid p { margin: 6px 0 0; color: var(--muted); }
.policy-grid.compact { grid-template-columns: 1fr; }
.split-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(300px, .85fr); gap: 20px; }
.toolbar-card { padding: 16px; }
.search-form { display: flex; max-width: 650px; gap: 10px; }
.search-form input { margin: 0; }
.action-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.action-stack form { margin: 0; }
.mini-button { min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; color: #dfe2ef; background: rgba(255, 255, 255, .05); font-size: 11px; font-weight: 800; white-space: nowrap; }
.mini-button.success { color: #72e3ba; border-color: rgba(55, 214, 160, .22); background: rgba(55, 214, 160, .09); }
.mini-button.danger { color: #ff93a3; border-color: rgba(255, 102, 124, .22); background: rgba(255, 102, 124, .08); }
.workflow-actions { display: grid; min-width: 230px; gap: 7px; }
.workflow-actions form { display: flex; gap: 5px; }
.workflow-actions input { min-height: 32px; margin: 0; padding: 5px 7px; font-size: 11px; }
.warning-panel { border-color: rgba(255, 102, 124, .18); background: rgba(255, 102, 124, .055); }
.warning-panel li, .warning-panel p { color: #c4c8d9; }
.audit-json { display: block; max-width: 360px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }

.legal-page { display: block; padding: 40px 20px; }
.legal-shell { width: min(820px, 100%); margin: 0 auto; }
.legal-shell header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.legal-shell article { padding: clamp(25px, 5vw, 55px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.legal-shell h1 { margin-top: 0; }
.legal-shell h2 { margin-top: 30px; font-size: 18px; }
.legal-shell p, .legal-shell li { color: #bac0d5; }

/* NEXWHALE V2 — 보관·구매·조직 중심 화면 */
.logo-only-brand {
    align-items: center;
    min-height: 650px;
    padding: 40px;
    background:
        radial-gradient(circle at 50% 50%, rgba(93, 80, 255, .30), transparent 18rem),
        linear-gradient(145deg, #17184b, #0b1030);
}
.logo-only-brand::after { display: none; }
.motion-brand {
    position: relative;
    display: grid;
    min-height: 650px;
    place-items: center;
    overflow: hidden;
    padding: 28px;
    background:
        radial-gradient(circle at 50% 50%, rgba(93, 80, 255, .25), transparent 20rem),
        linear-gradient(145deg, #17184b, #0b1030);
}
.motion-brand::after { display: none; }
.brand-corner-logo {
    position: absolute;
    z-index: 2;
    top: 34px;
    left: 34px;
    width: 82px;
    height: 82px;
    border-radius: 25%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}
.brand-motion {
    display: block;
    width: min(540px, 104%);
    height: auto;
    filter: drop-shadow(0 25px 55px rgba(70, 195, 255, .18));
}
.brand-logo-hero {
    width: min(330px, 72%);
    height: auto;
    border-radius: 30%;
    filter: drop-shadow(0 35px 70px rgba(24, 210, 230, .18));
    animation: coin-float 4s ease-in-out infinite;
}
@keyframes coin-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.025); }
}
.account-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin-top: 24px; }
.account-links a { color: #b9bfda; font-size: 14px; }
.heading-badges { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rank-pill { display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid rgba(47, 212, 229, .20); border-radius: 100px; color: #7ee6ef; background: rgba(47, 212, 229, .09); font-size: 13px; font-weight: 900; }
.rank-pill.general { color: #f5cf77; border-color: rgba(245, 191, 85, .26); background: rgba(245, 191, 85, .10); }
.rank-pill.group_leader { color: #b8b0ff; border-color: rgba(139, 128, 255, .27); background: rgba(102, 87, 255, .11); }
.rank-pill.distributor { color: #7ee8bd; border-color: rgba(55, 214, 160, .24); background: rgba(55, 214, 160, .09); }
.qualification-badge { display: block; width: max-content; margin-top: 8px; padding: 5px 9px; border: 1px solid rgba(55, 214, 160, .34); border-radius: 100px; color: #85f0c7; background: rgba(55, 214, 160, .12); font-size: 11px; font-weight: 900; white-space: nowrap; }
.price-strip { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 20px; margin-bottom: 20px; padding: 19px 24px; border: 1px solid rgba(47, 212, 229, .17); border-radius: 15px; background: linear-gradient(120deg, rgba(47, 212, 229, .07), rgba(102, 87, 255, .08)); }
.price-strip > span { color: #c9cee4; font-weight: 800; }
.price-strip > strong { grid-row: 1 / 3; grid-column: 2; color: #fff; font-size: 25px; }
.price-strip > small { color: var(--muted); }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.asset-card { display: grid; min-height: 150px; align-content: center; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: rgba(17, 20, 47, .82); }
.asset-card.primary-asset { border-color: rgba(102, 87, 255, .28); background: linear-gradient(135deg, rgba(80, 67, 207, .32), rgba(17, 20, 47, .86)); }
.asset-card small, .asset-card span { color: var(--muted); }
.asset-card strong { margin: 8px 0 4px; overflow-wrap: anywhere; font-size: clamp(23px, 3vw, 34px); line-height: 1.15; }
.asset-card em { color: var(--cyan); font-size: .48em; font-style: normal; letter-spacing: .06em; }
.wallet-address-layout { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 24px; }
.qr-box.small-qr { min-width: 154px; min-height: 154px; padding: 8px; }
.qr-box.small-qr img, .qr-box.small-qr canvas { width: 138px !important; height: 138px !important; }
.package-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.package-options label { cursor: pointer; }
.package-options input { position: absolute; width: 1px; min-height: 1px; opacity: 0; }
.package-options span { display: grid; min-height: 58px; place-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .035); color: #cbd0e4; text-align: center; }
.package-options input:checked + span { border-color: var(--primary-light); color: #fff; background: rgba(102, 87, 255, .20); box-shadow: 0 0 0 2px rgba(102, 87, 255, .09); }
.is-hidden { display: none !important; }
.calculation-preview { min-height: 66px; display: flex; align-items: center; padding: 14px 16px; border: 1px solid rgba(47, 212, 229, .15); border-radius: 11px; color: #8ce7ef; background: rgba(47, 212, 229, .06); font-weight: 700; }
.payment-info > div:not(.card-heading) { display: grid; gap: 5px; margin-bottom: 14px; padding: 17px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.payment-info small, .payment-info span { color: var(--muted); }
.payment-info code { overflow-wrap: anywhere; color: #dce0f0; }
.upgrade-summary { display: grid; gap: 9px; margin: 24px 0; }
.upgrade-summary p { margin: 0; padding: 12px 14px; border-radius: 10px; color: #bfc5dc; background: rgba(255, 255, 255, .035); }
.upgrade-summary strong { display: inline-block; min-width: 48px; color: #fff; }

@media (max-width: 1050px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .policy-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 190px minmax(0, 1fr); }
    .admin-main { padding-left: 25px; padding-right: 25px; }
}

@media (max-width: 760px) {
    body { font-size: 14px; }
    .auth-page { display: block; padding: 0; }
    .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
    .auth-brand { min-height: 270px; padding: 35px 26px; }
    .auth-brand h1 { font-size: 34px; }
    .auth-brand > p:not(.eyebrow), .network-line { margin-top: 12px; }
    .brand-logo-large { width: 64px; height: 64px; margin-bottom: 17px; border-radius: 18px; }
    .auth-card { padding: 32px 24px 50px; }
    .form-grid.two-column { grid-template-columns: 1fr; }
    .form-grid .full-span { grid-column: auto; }
    .topbar { height: 65px; padding: 0 16px; }
    .network-badge { display: none; }
    .member-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .wallet-layout, .admin-layout { display: block; min-height: calc(100vh - 65px); }
    .side-nav { display: none; }
    .wallet-main, .admin-main { padding: 28px 16px 95px; }
    .page-heading { align-items: flex-start; }
    .balance-panel { min-height: 0; align-items: flex-start; flex-direction: column; padding: 28px; }
    .balance-panel h2 { font-size: 37px; }
    .balance-side { margin-top: 24px; padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .quick-grid, .stat-grid { grid-template-columns: 1fr; }
    .quick-grid a { grid-template-columns: 40px 1fr; align-items: center; }
    .quick-grid a > span { grid-row: 1 / 3; margin: 0; }
    .content-card, .receive-card, .pending-card { padding: 20px; }
    .split-grid { grid-template-columns: 1fr; }
    .bottom-nav { position: fixed; z-index: 11; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); backdrop-filter: blur(20px); background: rgba(7, 9, 27, .94); }
    .bottom-nav a { padding: 9px 3px; border-radius: 9px; color: var(--muted); text-align: center; font-size: 11px; font-weight: 800; }
    .bottom-nav a.active { color: #fff; background: rgba(102, 87, 255, .18); }
    .profile-list > div, .settings-list > div { align-items: flex-start; flex-direction: column; gap: 4px; }
    .metric-strip { grid-template-columns: 1fr; }
    .qr-box { min-width: 200px; min-height: 200px; }
    .search-form { align-items: stretch; flex-direction: column; }
    .admin-page .wallet-main { padding-bottom: 35px; }
    .logo-only-brand, .motion-brand { min-height: 320px; }
    .brand-logo-hero { width: min(220px, 60%); }
    .brand-corner-logo { top: 22px; left: 22px; width: 62px; height: 62px; }
    .brand-motion { width: min(390px, 112%); }
    .asset-grid { grid-template-columns: 1fr; }
    .asset-card { min-height: 118px; }
    .price-strip { grid-template-columns: 1fr; }
    .price-strip > strong { grid-row: auto; grid-column: auto; font-size: 23px; }
    .wallet-address-layout { grid-template-columns: 1fr; justify-items: center; }
    .wallet-address-layout > div:last-child { width: 100%; }
    .package-options { grid-template-columns: 1fr; }
}

/* NEXWHALE V2.4 — mobile storage wallet redesign */
.wallet-page.v2-wallet {
    --member-bg: #070a22;
    --member-panel: rgba(13, 18, 56, .92);
    --member-line: rgba(116, 105, 255, .34);
    --member-muted: #8189af;
    background:
        radial-gradient(circle at 82% 3%, rgba(55, 50, 162, .22), transparent 27rem),
        radial-gradient(circle at 7% 38%, rgba(22, 143, 197, .08), transparent 25rem),
        var(--member-bg);
}
.member-topbar {
    border-bottom-color: rgba(118, 108, 255, .18);
    background: rgba(6, 9, 32, .91);
}
.member-topbar .brand-lockup img { border: 1px solid rgba(255, 255, 255, .72); border-radius: 12px; box-shadow: 0 0 20px rgba(105, 87, 255, .22); }
.member-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 50%;
    color: #e3e6f6;
    background: linear-gradient(145deg, #2e3159, #141832);
}
.top-logout-form { margin: 0; }
.top-logout-button { min-height: 32px; padding: 5px 10px; border: 1px solid rgba(255, 110, 134, .24); border-radius: 9px; color: #ff9aac; background: rgba(255, 87, 116, .08); font-size: 11px; font-weight: 800; }
.top-logout-button:hover { color: #fff; border-color: rgba(255, 110, 134, .46); background: rgba(255, 87, 116, .18); }
.member-avatar svg, .nav-icon svg, .card-symbol svg, .tier-icon svg, .member-bottom-nav svg, .list-avatar svg, .gradient-action svg, .illustration-empty svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.member-layout { grid-template-columns: 190px minmax(0, 1fr); }
.member-side-nav { padding: 32px 15px; border-right-color: rgba(118, 108, 255, .15); background: rgba(7, 10, 35, .58); }
.member-side-nav a { justify-content: flex-start; gap: 12px; min-height: 49px; border: 1px solid transparent; }
.member-side-nav a.active { border-color: rgba(92, 199, 255, .16); background: linear-gradient(100deg, rgba(38, 160, 222, .20), rgba(100, 72, 220, .18)); box-shadow: inset 3px 0 #43c9ff, 0 10px 30px rgba(27, 31, 93, .18); }
.nav-icon { display: grid; width: 24px; height: 24px; place-items: center; color: #7682aa; font-size: 20px; }
.member-side-nav a.active .nav-icon { color: #42d1ff; }
.member-main { width: min(1060px, 100%); padding-top: 38px; }
.member-page-heading { margin-bottom: 22px; }
.member-page-heading h1 { font-size: clamp(27px, 3vw, 36px); }
.member-page-heading .eyebrow { color: #66bff8; font-size: 11px; letter-spacing: .22em; }
.member-card {
    position: relative;
    margin-bottom: 16px;
    padding: 21px;
    overflow: hidden;
    border: 1px solid var(--member-line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(20, 29, 76, .84), rgba(10, 14, 47, .94)),
        var(--member-panel);
    box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 16px 44px rgba(0, 0, 0, .12);
}
.member-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at 8% 6%, rgba(73, 164, 255, .10), transparent 46%);
}
.member-card > * { position: relative; z-index: 1; }
.glow-blue { border-color: rgba(60, 176, 255, .60); box-shadow: inset 0 0 22px rgba(41, 125, 255, .12), 0 0 24px rgba(55, 151, 255, .08); }
.glow-cyan { border-color: rgba(54, 209, 202, .52); box-shadow: inset 0 0 24px rgba(28, 198, 189, .10), 0 0 24px rgba(31, 203, 187, .07); }
.glow-purple { border-color: rgba(177, 78, 239, .52); box-shadow: inset 0 0 24px rgba(151, 57, 224, .10), 0 0 24px rgba(155, 65, 232, .07); }
.glow-amber { border-color: rgba(237, 201, 98, .58); box-shadow: inset 0 0 24px rgba(238, 191, 56, .10), 0 0 24px rgba(238, 191, 56, .07); }
.member-card small, .member-card > span:not(.card-symbol), .member-card div > span:not(.rank-pill):not(.status-pill):not(.card-symbol) { color: var(--member-muted); }
.member-card em { color: #76dafa; font-size: .46em; font-style: normal; letter-spacing: .07em; }
.member-card strong { color: #fff; }
.home-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-card-grid .member-card { margin-bottom: 0; }
.home-card-grid .price-card, .home-card-grid .balance-card, .home-card-grid .reward-card { min-height: 135px; }
.home-card-grid .reward-card { grid-column: 1 / -1; }
.price-card, .balance-card, .reward-card, .benefit-summary article { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.price-card > div, .balance-card > div, .reward-card > div, .benefit-summary article > div { display: grid; }
.price-card small, .balance-card small, .reward-card small, .compact-card small, .benefit-summary small, .organization-stats small { color: #dfe4f7; font-size: 13px; }
.price-card strong, .balance-card strong, .reward-card strong, .benefit-summary strong { margin: 2px 0; font-size: clamp(25px, 3vw, 35px); letter-spacing: -.035em; }
.price-card > p { position: absolute; right: 20px; bottom: 15px; left: 20px; margin: 0; color: #7882a9; font-size: 11px; }
.price-card { padding-bottom: 40px; }
.card-symbol {
    display: grid;
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    place-items: center;
    border-radius: 50%;
    font-size: 23px;
}
.card-symbol.large { width: 48px; height: 48px; font-size: 31px; }
.card-symbol.blue { color: #63c7ff; background: rgba(51, 169, 245, .13); }
.card-symbol.green { color: #49e4aa; background: rgba(49, 216, 153, .13); }
.card-symbol.amber { color: #f2d277; background: rgba(237, 190, 63, .13); }
.card-symbol.purple { color: #c68aff; background: rgba(178, 92, 238, .13); }
.mini-card-grid { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 16px; }
.compact-card { display: grid; min-height: 124px; align-content: center; }
.compact-card .card-symbol { position: absolute; top: 17px; right: 17px; }
.compact-card strong { margin: 3px 0; font-size: 27px; letter-spacing: -.03em; }
.compact-card > span:last-child { color: #7e87ab; font-size: 12px; }
.wallet-address-card { grid-column: 1 / -1; margin-top: 16px; }
.wallet-address-card .card-heading { margin-bottom: 16px; }
.wallet-address-card .card-heading h2 { font-size: 17px; }
.scan-pill, .count-pill { padding: 5px 9px; border: 1px solid rgba(65, 185, 244, .22); border-radius: 100px; color: #6ccfff; background: rgba(52, 159, 223, .10); font-size: 11px; font-weight: 800; }
.wallet-address-layout { grid-template-columns: 132px 1fr; }
.qr-box.small-qr { min-width: 132px; min-height: 132px; padding: 7px; border-radius: 14px; }
.qr-box.small-qr img, .qr-box.small-qr canvas { width: 118px !important; height: 118px !important; }
.address-box { border-color: rgba(132, 100, 236, .24); background: rgba(5, 7, 29, .64); }
.address-box code { color: #cbd2ee; }
.copy-button { background: linear-gradient(135deg, #278ab8, #8354d8); }
.pending-card.neon-card { border-color: rgba(237, 199, 91, .38); border-radius: 18px; background: rgba(95, 72, 26, .15); }
.coin-payment-link { display: flex; align-items: center; gap: 14px; margin-top: 16px; color: #fff; }
.coin-payment-link:hover { color: #fff; transform: translateY(-1px); }
.coin-payment-link > div { display: grid; flex: 1; }
.coin-payment-link > div small { margin-top: 2px; }
.coin-payment-link > b { color: #61c9ff; font-size: 26px; }

.purchase-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 16px; }
.purchase-form-card { padding: 24px; }
.package-options span { min-height: 92px; gap: 7px; align-content: center; border-color: rgba(105, 106, 214, .45); background: rgba(20, 31, 76, .66); font-size: 12px; font-weight: 800; }
.package-options input:checked + span { border-color: #59bbfa; background: linear-gradient(150deg, rgba(50, 128, 207, .32), rgba(78, 54, 164, .28)); box-shadow: 0 0 0 2px rgba(77, 178, 245, .10), inset 0 0 22px rgba(79, 153, 255, .08); }
.tier-icon { display: grid; width: 27px; height: 27px; place-items: center; font-size: 25px; }
.tier-icon.cyan { color: #55d6e7; }.tier-icon.purple { color: #bd83fb; }.tier-icon.pink { color: #e075e8; }
.step-divider { position: relative; height: 27px; text-align: center; }
.step-divider::before { content: ""; position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(71, 176, 246, .32), transparent); }
.step-divider span { position: relative; display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #61c8ff; background: #101743; }
.payment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 16px; border: 1px solid rgba(117, 83, 221, .46); border-radius: 15px; background: rgba(9, 13, 43, .56); }
.payment-fields input, .payment-fields select { background: rgba(5, 8, 30, .78); }
.calculation-preview { border-color: rgba(78, 123, 222, .38); color: #9bb9ee; background: rgba(28, 48, 105, .26); font-size: 12px; }
.gradient-action { gap: 10px; background: linear-gradient(100deg, #bd6f17, #9f2db8) !important; box-shadow: 0 12px 28px rgba(140, 45, 128, .18) !important; }
.gradient-action span { display: grid; color: #fff; font-size: 18px; }
.payment-info > div:not(.card-heading) { background: rgba(6, 9, 34, .58); }
.record-section { margin-top: 16px; }
.record-list { display: grid; }
.record-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 15px; padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.record-list article:first-child { border-top: 0; }
.record-list article > div:first-child, .record-amount { display: grid; }
.record-list small { display: block; color: #737da3; font-size: 11px; }
.record-amount { min-width: 130px; text-align: right; }

.referral-card .field-title { margin-top: 0; }
.gradient-copy { min-width: 58px; background: linear-gradient(135deg, #c85893, #744edd); }
.organization-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.organization-stats .member-card { display: grid; min-height: 135px; align-content: center; margin-bottom: 0; }
.organization-stats .card-symbol { position: absolute; top: 16px; right: 16px; }
.organization-stats strong { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 23px; }
.organization-stats > article > span:last-child { font-size: 11px; }
.direct-member-card { margin-top: 16px; }
.member-list article { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.member-list article:first-child { border-top: 0; }
.member-list article > div:last-child { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; }
.member-list strong small { margin-left: 5px; color: #7e87aa; font-size: 11px; font-weight: 600; }
.member-list p { margin: 2px 0 0; color: #747da1; font-size: 11px; }
.list-avatar { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(95, 191, 243, .22); border-radius: 50%; color: #67c8fa; background: rgba(57, 143, 199, .11); font-size: 24px; }

.benefit-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.benefit-summary .member-card { min-height: 145px; margin-bottom: 0; }
.benefit-summary strong { overflow-wrap: anywhere; font-size: clamp(22px, 2.4vw, 31px); }
.benefit-records article { grid-template-columns: 44px minmax(0, 1fr) auto; }
.benefit-records .record-amount { gap: 5px; justify-items: end; }
.benefit-records .record-amount a { font-size: 11px; }
.list-avatar.benefit { border-radius: 13px; color: #54d6a4; }
.illustration-empty { display: grid; justify-items: center; padding: 42px 16px; }
.illustration-empty > span { display: grid; width: 78px; height: 78px; place-items: center; margin-bottom: 14px; border: 1px solid rgba(132, 93, 239, .30); border-radius: 24px; color: #c486ff; background: linear-gradient(145deg, rgba(63, 159, 205, .15), rgba(164, 62, 198, .15)); font-size: 42px; }
.illustration-empty strong { font-size: 18px; }
.illustration-empty p { margin: 2px 0 0; color: #737da1; }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-grid .member-card { margin-bottom: 0; }
.account-info { grid-row: span 2; }
.account-info.profile-list > div:not(.card-heading) { align-items: center; padding: 14px 0; }
.account-info.profile-list > div span { color: #7e88ac; }
.account-info.profile-list > div strong { text-align: right; }
.pin-card .card-heading .card-symbol { margin-left: auto; }
.password-card .card-heading .card-symbol { margin-left: auto; }
.immutable-badge { display: inline-flex; margin-left: 5px; padding: 3px 6px; border: 1px solid rgba(255, 255, 255, .10); border-radius: 100px; color: #8d96b9 !important; background: rgba(255, 255, 255, .04); font-size: 9px !important; vertical-align: middle; }
.logout-card { margin-top: 16px; padding: 14px; }

.input-action-row { display: flex; align-items: stretch; gap: 8px; }
.input-action-row input { flex: 1; min-width: 0; }
.field-action-button { min-width: 78px; min-height: 47px; margin-top: 7px; padding: 8px 10px; border: 1px solid rgba(83, 194, 247, .35); border-radius: 11px; color: #78d5ff; background: rgba(45, 143, 207, .12); font-size: 12px; font-weight: 800; }
.field-action-button:disabled { cursor: wait; opacity: .55; }
.field-result { display: block; margin-top: 5px; color: #7e88a8; font-size: 11px; font-weight: 500; }
.field-result.success { color: #62dcae; }
.field-result.error { color: #ff96a7; }
.password-input-wrap { position: relative; display: block; }
.password-input-wrap input { padding-right: 58px; }
.password-toggle { position: absolute; top: 14px; right: 7px; min-width: 45px; min-height: 33px; padding: 4px 7px; border: 0; border-radius: 8px; color: #8fcfff; background: rgba(60, 132, 195, .13); font-size: 11px; font-weight: 800; }
.password-rule { display: block; margin-top: 6px; color: #7e88aa; font-size: 11px; font-weight: 500; line-height: 1.5; }

.coin-payment-notice { line-height: 1.65; }
.coin-payment-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.coin-payment-summary .member-card { display: grid; min-height: 135px; align-content: center; margin-bottom: 0; }
.coin-payment-summary strong { margin: 5px 0; overflow-wrap: anywhere; font-size: clamp(22px, 2.8vw, 31px); }
.coin-payment-summary em { color: #76dafa; font-size: .46em; font-style: normal; letter-spacing: .07em; }
.coin-payment-summary span { font-size: 11px; }
.latest-payment-card { margin-top: 16px; }
.latest-payment-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 18px; }
.latest-payment-row > div { display: grid; }
.latest-payment-row small { color: #7e88aa; }

@media (max-width: 920px) {
    .member-layout { grid-template-columns: 164px minmax(0, 1fr); }
    .member-main { padding-right: 24px; padding-left: 24px; }
    .purchase-grid, .account-grid { grid-template-columns: 1fr; }
    .organization-stats { grid-template-columns: repeat(2, 1fr); }
    .benefit-summary { grid-template-columns: 1fr; }
    .account-info { grid-row: auto; }
}

@media (max-width: 760px) {
    .wallet-page.v2-wallet { background: linear-gradient(180deg, #06091f, #080b2b 48%, #070921); }
    .member-topbar { height: 62px; padding: 0 13px; }
    .member-topbar .brand-lockup { gap: 9px; }
    .member-topbar .brand-lockup img { width: 34px; height: 34px; border-radius: 10px; }
    .member-topbar .brand-lockup strong { font-size: 12px; }
    .member-topbar .brand-lockup small { font-size: 8px; }
    .member-topbar .topbar-actions { gap: 7px; }
    .member-avatar { width: 29px; height: 29px; font-size: 15px; }
    .member-name { max-width: 80px; font-size: 12px; }
    .top-logout-button { min-width: 0; min-height: 29px; padding: 4px 7px; font-size: 9px; }
    .member-layout { min-height: calc(100vh - 62px); }
    .member-main { width: min(520px, 100%); margin: 0 auto; padding: 23px 13px 108px; }
    .member-page-heading { gap: 10px; margin-bottom: 17px; }
    .member-page-heading h1 { font-size: 25px; }
    .member-page-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
    .heading-badges { gap: 5px; }
    .rank-pill { padding: 5px 8px; font-size: 10px; }
    .status-pill { padding: 4px 7px; font-size: 9px; }
    .member-card { padding: 16px; border-radius: 15px; }
    .home-card-grid { grid-template-columns: 1fr; gap: 10px; }
    .home-card-grid .price-card, .home-card-grid .balance-card, .home-card-grid .reward-card { min-height: 106px; }
    .home-card-grid .reward-card { grid-column: auto; }
    .price-card strong, .balance-card strong, .reward-card strong, .benefit-summary strong { font-size: 26px; }
    .price-card { padding-bottom: 35px; }
    .price-card > p { right: 16px; bottom: 12px; left: 16px; font-size: 9px; }
    .mini-card-grid { grid-column: auto; gap: 9px; }
    .compact-card { min-height: 105px; padding: 13px; }
    .compact-card small { max-width: 80%; font-size: 10px; }
    .compact-card strong { font-size: 20px; }
    .compact-card .card-symbol { top: 12px; right: 12px; width: 30px; height: 30px; font-size: 18px; }
    .wallet-address-card { margin-top: 10px; }
    .wallet-address-layout { grid-template-columns: 1fr; gap: 14px; }
    .wallet-address-layout > div:last-child { width: 100%; }
    .package-options { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .package-options span { min-height: 80px; padding: 7px 4px; font-size: 10px; }
    .tier-icon { font-size: 22px; }
    .payment-fields { grid-template-columns: 1fr; padding: 13px; }
    .purchase-grid { gap: 10px; }
    .purchase-form-card { padding: 16px; }
    .payment-info { margin-bottom: 0; }
    .record-section { margin-top: 10px; }
    .record-list article { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
    .record-list article > .status-pill, .record-list article > form { justify-self: start; }
    .record-amount { min-width: 0; }
    .benefit-records article { grid-template-columns: 38px minmax(0, 1fr); }
    .benefit-records .list-avatar { width: 38px; height: 38px; }
    .benefit-records .record-amount { grid-column: 2; justify-items: start; text-align: left; }
    .organization-stats { gap: 9px; }
    .organization-stats .member-card { min-height: 110px; padding: 13px; }
    .organization-stats strong { font-size: 19px; }
    .member-list article { grid-template-columns: 38px minmax(0, 1fr); }
    .member-list .list-avatar { width: 38px; height: 38px; }
    .member-list article > div:last-child { grid-column: 2; align-items: flex-start; flex-direction: row; }
    .benefit-summary { gap: 9px; }
    .benefit-summary .member-card { min-height: 110px; }
    .account-grid { gap: 10px; }
    .account-info.profile-list > div:not(.card-heading) { flex-direction: row; }
    .member-bottom-nav {
        height: calc(65px + env(safe-area-inset-bottom));
        grid-template-columns: repeat(6, 1fr);
        padding: 6px 8px max(6px, env(safe-area-inset-bottom));
        border-top-color: rgba(91, 105, 210, .30);
        background: rgba(5, 8, 30, .95);
    }
    .member-bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 4px 2px; color: #697295; background: none; }
    .member-bottom-nav a span { display: grid; width: 25px; height: 25px; place-items: center; font-size: 21px; }
    .member-bottom-nav a b { font-size: 9px; }
    .member-bottom-nav a.active { color: #54c9ff; background: linear-gradient(180deg, rgba(48, 125, 218, .18), transparent); box-shadow: inset 0 2px #48c9ff; }
    .coin-payment-summary { grid-template-columns: 1fr; gap: 9px; }
    .coin-payment-summary .member-card { min-height: 104px; }
    .latest-payment-row { grid-template-columns: 1fr; gap: 12px; }
    .coin-payment-link { margin-top: 10px; }
}
