/* GLOW — user panel, "dark neon" theme (black + green/teal).
   Self-contained: loaded instead of base/layout/components/pages for member + guest pages. */

:root {
    --bg: #04090a;
    --surface: #091214;
    --surface-2: #0d1a1c;
    --surface-3: #122427;
    --neon: #2dff9a;
    --neon-2: #19e3d0;
    --neon-dim: rgba(45, 255, 154, .14);
    --neon-line: rgba(45, 255, 154, .28);
    --grad: linear-gradient(135deg, #2dff9a, #19e3d0);
    --red: #ff5d73;
    --amber: #ffc94d;
    --text: #e8fff5;
    --text-2: #b3cfc6;
    --muted: #6f8b83;
    --line: rgba(120, 255, 210, .1);
    --ink: #031210;
    --radius: 16px;
    --radius-sm: 11px;
    --glow: 0 0 22px rgba(45, 255, 154, .35);
    --glow-soft: 0 0 0 1px var(--neon-line), 0 8px 30px rgba(0, 0, 0, .5);
    --sidebar-w: 268px;
    --gutter: 16px;
    --topbar-h: 60px;
    --bottom-h: 68px;
    --tap: 44px;
    --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
.icon { flex-shrink: 0; }
a { color: var(--neon); text-decoration: none; }
a:hover { color: #9dffd0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--neon-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(45, 255, 154, .3); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(45, 255, 154, .3); border-radius: 6px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; font-weight: 600; color: var(--ink); background: var(--neon); border-radius: 10px; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; color: var(--ink); }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.text-gold, .is-gold { color: var(--neon); }
.text-green, .is-green { color: var(--neon); }
.text-red, .is-red { color: var(--red); }
.is-cyan { color: var(--neon-2); }
.text-cyan { color: var(--neon-2); }
.text-muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Ambient background */
.neon-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(600px 380px at 85% -5%, rgba(25, 227, 208, .14), transparent 70%),
        radial-gradient(520px 420px at -5% 105%, rgba(45, 255, 154, .1), transparent 70%),
        linear-gradient(rgba(45, 255, 154, .035) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(45, 255, 154, .035) 1px, transparent 1px) 0 0 / 44px 44px;
}

/* ---------- Brand ---------- */
.brand, .sidebar__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .14em; color: var(--text); }
.brand:hover, .sidebar__brand:hover { color: var(--text); }
.brand__mark { display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink); background: var(--grad); border-radius: 10px; box-shadow: var(--glow); }
.brand__word { font-size: 19px; }
.brand__o { color: var(--neon); text-shadow: 0 0 14px rgba(45, 255, 154, .8); }
.sidebar__tag { margin-left: auto; padding: 2px 8px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--neon); border: 1px solid var(--neon-line); border-radius: 99px; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--topbar-h);
    padding: 0 10px 0 var(--gutter);
    background: rgba(4, 9, 10, .78);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.topbar__title { display: none; font-size: 18px; font-weight: 600; }
.demo-badge { margin-left: auto; padding: 3px 9px; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--neon); background: var(--neon-dim); border: 1px solid var(--neon-line); border-radius: 99px; }
.topbar__actions { display: flex; align-items: center; }
.topbar__actions form { display: contents; }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; color: var(--text-2); background: none; border: 0; border-radius: 12px; transition: background .2s, color .2s; }
.icon-btn:hover { color: var(--neon); background: var(--neon-dim); }

/* ---------- Sidebar (desktop) / sheet (mobile) ---------- */
.sidebar-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 6, 5, .65); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s var(--ease), visibility 0s .3s; }
.sidebar-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s var(--ease), visibility 0s; }

.sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    max-height: 82vh;
    max-height: 82dvh;
    padding: 8px 14px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface);
    border: 1px solid var(--neon-line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .7), 0 -1px 30px rgba(45, 255, 154, .12);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .34s var(--ease), visibility 0s .34s;
}
.sidebar.is-open { transform: none; visibility: visible; transition: transform .34s var(--ease), visibility 0s; }
.sidebar__grab { width: 44px; height: 4px; margin: 4px auto 10px; background: var(--neon-line); border-radius: 4px; }
.sidebar__brand { display: none; }
.sidebar__heading { margin: 16px 12px 6px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sidebar__list { display: grid; gap: 2px; }

.nav-link { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; min-height: 44px; padding: 9px 12px; font-size: 15px; text-align: left; color: var(--text-2); background: none; border: 0; border-radius: 11px; transition: background .2s, color .2s; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-link.is-active { color: var(--neon); background: var(--neon-dim); box-shadow: inset 0 0 0 1px var(--neon-line); }
.nav-link.is-active::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--neon); box-shadow: var(--glow); }
.sidebar__logout { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.nav-link--danger { color: #ff9aa8; }

/* ---------- Bottom bar (mobile) ---------- */
.bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 65;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    height: var(--bottom-h);
    padding: 0 6px;
    background: #0a1517;
    border: 1px solid var(--neon-line);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .65), 0 0 24px rgba(45, 255, 154, .1);
}
.bottom-nav__item { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 3px; height: 100%; padding: 0; font-size: 10.5px; font-weight: 500; letter-spacing: .04em; color: var(--muted); background: none; border: 0; transition: color .2s; }
.bottom-nav__item:hover, .bottom-nav__item.is-active { color: var(--neon); }
.bottom-nav__item.is-active .bottom-nav__icon { filter: drop-shadow(0 0 6px rgba(45, 255, 154, .8)); }
.bottom-nav__item--hero { position: relative; }
.bottom-nav__item--hero .bottom-nav__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; color: var(--ink); background: var(--grad); border: 4px solid var(--bg); border-radius: 50%; box-shadow: var(--glow); }
.bottom-nav__item--hero { color: var(--neon); align-content: end; padding-bottom: 8px; }

/* ---------- Page ---------- */
.page { display: grid; gap: 16px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px var(--gutter) calc(var(--bottom-h) + 44px + env(safe-area-inset-bottom)); }
.page:focus { outline: none; }
.page > *, .dash-split > *, .dash-stack > * { min-width: 0; }
.dash-split, .dash-stack { display: grid; gap: 16px; align-items: start; }

/* ---------- Cards ---------- */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 60%), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.card--pad { padding: 18px; }
.card--topline { border-top: 2px solid var(--neon); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__title { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--neon); }
.card--pad > .card__title { margin-bottom: 14px; }

.section-title { margin: 10px 2px 12px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--neon-line), transparent); }

/* Page head */
.page-head { display: flex; align-items: center; gap: 14px; padding: 4px 0 2px; }
.page-head__icon { display: grid; flex-shrink: 0; place-items: center; width: 46px; height: 46px; color: var(--neon); background: var(--neon-dim); border: 1px solid var(--neon-line); border-radius: 14px; box-shadow: var(--glow); }
.page-head__title { font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.page-head__sub { margin-top: 2px; font-size: 13.5px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 20px; font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; border: 0; border-radius: 12px; transition: filter .2s, transform .15s, box-shadow .2s; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn--gold, .btn--blue { color: var(--ink); background: var(--grad); box-shadow: 0 0 0 1px rgba(45, 255, 154, .5), var(--glow); }
.btn--gold:hover, .btn--blue:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--neon), 0 0 34px rgba(45, 255, 154, .55); }
.btn--ghost { color: var(--text); background: transparent; border: 1px solid var(--neon-line); }
.btn--ghost:hover { color: var(--neon); background: var(--neon-dim); }
.btn--danger { color: #fff; background: linear-gradient(90deg, #d6264a, #a3162f); }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; font-size: 14px; letter-spacing: .14em; }
.btn--sm { padding: 8px 14px; font-size: 12px; }
.btn:disabled { cursor: not-allowed; opacity: .4; filter: none; box-shadow: none; transform: none; }
.btn-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.link-blue, .link-gold, .link-inline { color: var(--neon); }
.link-blue:hover, .link-gold:hover { color: #9dffd0; }
.link-gold { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.link-inline { text-decoration: underline; text-underline-offset: 3px; }
.link-cell { font-weight: 600; color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.field__hint { font-size: 12.5px; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
textarea.input { resize: vertical; }
.input::placeholder { color: #4d655e; }
.input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(45, 255, 154, .16), var(--glow); }
.input[aria-invalid='true'] { border-color: var(--red); }
.input--mono { font-family: var(--mono); font-size: 13px; }
.input--sm { min-height: var(--tap); padding: 8px 10px; }
.field-error { min-height: 18px; font-size: 12.5px; color: #ff9aa8; }
.field-error:empty { min-height: 0; }
.form__note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }

.check { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); font-size: 14px; cursor: pointer; }
.check input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--neon); }

.hint-box { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--text-2); background: var(--neon-dim); border: 1px dashed var(--neon-line); border-radius: var(--radius-sm); }
.hint-box .icon { margin-top: 1px; color: var(--neon); }
.hint-box strong { font-family: var(--mono); color: var(--neon); }

.search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--neon); box-shadow: var(--glow); }
.search input { flex: 1; min-width: 0; height: 46px; font-size: 15px; color: var(--text); background: transparent; border: 0; }
.search input:focus { outline: none; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 14px; }

.copy-field { display: flex; overflow: hidden; background: var(--bg); border: 1px solid var(--neon-line); border-radius: var(--radius-sm); }
.copy-field__input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; font-family: var(--mono); font-size: 13px; color: var(--neon); background: transparent; border: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-field__input:focus { outline: none; }
.copy-field__btn { display: grid; flex-shrink: 0; place-items: center; width: 56px; color: var(--ink); background: var(--grad); border: 0; }
.copy-field--sm .copy-field__input { height: 44px; font-size: 12px; }
.copy-field--sm .copy-field__btn { width: 48px; }
.copy-mini { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; color: var(--muted); vertical-align: middle; background: none; border: 0; border-radius: 8px; }
.copy-mini:hover { color: var(--neon); background: var(--neon-dim); }
.wallet-text { font-family: var(--mono); color: var(--neon); word-break: break-all; }

/* Choice cards */
.choice-set { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-set legend { margin-bottom: 8px; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; display: grid; align-content: start; gap: 4px; min-height: var(--tap); padding: 12px 14px; cursor: pointer; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, background .2s, box-shadow .2s; }
.choice:hover { border-color: var(--neon-line); }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { background: var(--neon-dim); border-color: var(--neon); box-shadow: var(--glow); }
.choice:has(input:focus-visible) { outline: 2px solid var(--neon-2); outline-offset: 2px; }
.choice__title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.choice:has(input:checked) .choice__title { color: var(--neon); }
.choice__desc { font-size: 12px; line-height: 1.4; color: var(--muted); }
.choice--center { justify-items: center; text-align: center; }

.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.inline-form .field-error { grid-column: 1 / -1; }

.fee-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 1rem; padding: 12px; background: var(--bg); border: 1px dashed var(--neon-line); border-radius: var(--radius-sm); }
.fee-box div { text-align: center; }
.fee-box dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fee-box dd { margin: 2px 0 0; font-weight: 700; color: var(--neon); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-card { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 96px; padding: 16px 14px 16px 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-card::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tone, var(--muted)); box-shadow: 0 0 14px var(--tone, transparent); }
.stat-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; background: radial-gradient(closest-side, var(--tone-soft, transparent), transparent); }
.stat-card__label { position: relative; z-index: 1; font-size: 10.5px; font-weight: 600; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat-card__value { position: relative; z-index: 1; font-size: 23px; font-weight: 700; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-card__hint { position: relative; z-index: 1; margin: 0; font-size: 11px; line-height: 1.3; color: var(--muted); }
.stat-grid--returns .stat-card:last-child { grid-column: 1 / -1; }
.inline-form .input--full { grid-column: 1 / -1; }
.stat-card--gold { --tone: var(--neon); --tone-soft: rgba(45, 255, 154, .22); background: linear-gradient(135deg, rgba(45, 255, 154, .14), rgba(25, 227, 208, .04)), var(--surface); border-color: var(--neon-line); }
.stat-card--gold .stat-card__value { color: var(--neon); text-shadow: 0 0 20px rgba(45, 255, 154, .5); }
.stat-card--green { --tone: #5dffb0; --tone-soft: rgba(93, 255, 176, .14); }
.stat-card--cyan { --tone: var(--neon-2); --tone-soft: rgba(25, 227, 208, .16); }
.stat-card--amber { --tone: var(--amber); --tone-soft: rgba(255, 201, 77, .12); }
.stat-card--red { --tone: var(--red); --tone-soft: rgba(255, 93, 115, .12); }
.stat-card--muted { --tone: #3a5a52; }

/* ---------- Dashboard ---------- */
.hero { display: grid; gap: 16px; padding: 18px; background: radial-gradient(420px 200px at 100% 0, rgba(45, 255, 154, .16), transparent 70%), linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--neon-line); border-radius: 20px; box-shadow: var(--glow-soft); }
.hero__id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hero__avatar { display: grid; flex-shrink: 0; place-items: center; width: 56px; height: 56px; color: var(--ink); background: var(--grad); border-radius: 18px; box-shadow: var(--glow); }
.hero__text { min-width: 0; }
.hero__name { font-size: 22px; font-weight: 700; line-height: 1.2; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 12.5px; color: var(--muted); }
.hero__code { font-family: var(--mono); font-weight: 600; color: var(--neon); }
.hero__dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }
.hero__ref { display: grid; gap: 6px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick-grid__item { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 12px 4px 10px; font-size: 12px; line-height: 1.2; text-align: center; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.quick-grid__item:hover { color: var(--neon); border-color: var(--neon-line); transform: translateY(-2px); box-shadow: var(--glow); }
.quick-grid__icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--neon); background: var(--neon-dim); border-radius: 12px; }

/* Salary */
.salary-card { position: relative; display: grid; gap: 14px; padding: 20px 18px; overflow: hidden; background: linear-gradient(160deg, rgba(25, 227, 208, .1), transparent 50%), var(--surface); border: 1px solid var(--neon-line); border-radius: 20px; box-shadow: var(--glow-soft); }
.salary-card > :not(.salary-card__watermark) { position: relative; }
.salary-card__watermark { position: absolute; top: -10px; right: -14px; color: rgba(45, 255, 154, .06); }
.salary-card__title { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--neon); }
.salary-card__sub { margin-top: -6px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.salary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.salary-row small { font-size: 12px; }
.salary-level { display: grid; gap: 8px; }
.salary-level__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.salary-level__count { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.countdown-pill { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--neon-2); background: rgba(25, 227, 208, .08); border: 1px solid rgba(25, 227, 208, .4); border-radius: var(--radius-sm); }
.countdown-pill--ok { color: var(--neon); background: var(--neon-dim); border-color: var(--neon-line); }
.countdown-pill--off { color: var(--muted); background: rgba(255, 255, 255, .03); border-color: var(--line); }

/* Salary: animated qualification gates */
.salary-head { display: flex; align-items: center; gap: 14px; }
.salary-head__badge { display: grid; flex-shrink: 0; place-items: center; width: 48px; height: 48px; color: var(--ink); background: var(--grad); border-radius: 16px; box-shadow: var(--glow); animation: float 3.2s ease-in-out infinite; }
.salary-card__sub { margin-top: 2px; font-size: 16px; }
.salary-card__total { color: var(--neon); white-space: nowrap; }
.salary-card::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(45, 255, 154, .09), transparent); transform: skewX(-18deg); animation: sweep 7s ease-in-out infinite; }

.gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gate { display: grid; justify-items: center; gap: 2px; padding: 14px 6px 12px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.gate:hover { transform: translateY(-3px); border-color: var(--neon-line); }
.gate.is-done { border-color: var(--neon-line); box-shadow: inset 0 0 30px rgba(45, 255, 154, .08); }
.gate__ring { position: relative; display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 6px; }
.gate__ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.gate__ring > svg circle { fill: none; stroke-width: 6; }
.ring__track { stroke: rgba(255, 255, 255, .07); }
.ring__bar { stroke: var(--neon); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); filter: drop-shadow(0 0 5px rgba(45, 255, 154, .8)); }
.gate.is-done .ring__bar { stroke: var(--neon-2); animation: ring-pulse 2.4s ease-in-out infinite; }
.gate__value { position: relative; font-family: var(--mono); font-size: 15px; font-weight: 600; line-height: 1; }
.gate__tick { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 22px; height: 22px; color: var(--ink); background: var(--neon); border-radius: 50%; box-shadow: var(--glow); }
.gate__label { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.gate__sub { font-size: 11px; color: var(--muted); }

.salary-meter { display: grid; gap: 8px; }
.salary-meter__row { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.salary-meter__row .text-gold { font-family: var(--mono); letter-spacing: .06em; }
.salary-meter__bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.salary-meter__bar i { position: relative; height: 8px; overflow: hidden; background: rgba(255, 255, 255, .07); border-radius: 99px; }
.salary-meter__bar i.is-on::after { content: ''; position: absolute; inset: 0; background: var(--grad); border-radius: 99px; box-shadow: 0 0 12px rgba(45, 255, 154, .7); transform-origin: left; }

.pulse-dot { position: relative; flex-shrink: 0; width: 10px; height: 10px; margin: 0 5px; background: var(--neon-2); border-radius: 50%; }
.pulse-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--neon-2); animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
.countdown-pill--ok { background: linear-gradient(100deg, var(--neon-dim), rgba(25, 227, 208, .18), var(--neon-dim)) 0 0 / 200% 100%; animation: shimmer 4s linear infinite; }

/* Entrance: runs when the card scrolls into view (nav.js adds .is-in). */
.salary-card[data-reveal]:not(.is-in) [data-anim] { opacity: 0; }
.salary-card.is-in [data-anim] { animation: rise-in .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms); }
.salary-card[data-reveal]:not(.is-in) .ring__bar { stroke-dashoffset: 100; }
.salary-card.is-in .ring__bar { animation: ring-draw 1.2s var(--ease) both; animation-delay: calc(var(--d, 1) * 110ms + 200ms); }
.salary-card[data-reveal]:not(.is-in) .salary-meter__bar i.is-on::after { transform: scaleX(0); }
.salary-card.is-in .salary-meter__bar i.is-on::after { animation: bar-grow .7s var(--ease) both; animation-delay: calc(var(--k) * 220ms + 700ms); }
.salary-card.is-in .gate.is-done .gate__tick { animation: pop .5s var(--ease) both; animation-delay: calc(var(--d, 1) * 110ms + 1100ms); }

@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes ring-draw { from { stroke-dashoffset: 100; } }
@keyframes bar-grow { from { transform: scaleX(0); } }
@keyframes pop { from { opacity: 0; transform: scale(0); } 70% { transform: scale(1.25); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@keyframes sweep { 0%, 55% { left: -40%; } 100% { left: 140%; } }
@keyframes ring-pulse { 0%, 100% { filter: drop-shadow(0 0 4px rgba(25, 227, 208, .6)); } 50% { filter: drop-shadow(0 0 10px rgba(25, 227, 208, 1)); } }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Plan term cards */
.term-grid { display: grid; gap: 12px; }
.term-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 18px; overflow: hidden; background: radial-gradient(240px 160px at 100% 0, rgba(45, 255, 154, .14), transparent 70%), var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.term-card:hover { transform: translateY(-3px); border-color: var(--neon-line); box-shadow: var(--glow); }
.term-card__days { font-size: 44px; font-weight: 700; line-height: 1; color: var(--neon); text-shadow: 0 0 26px rgba(45, 255, 154, .45); }
.term-card__days span { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-shadow: none; }
.term-card__rate { align-self: flex-start; padding: 3px 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink); background: var(--grad); border-radius: 99px; }
.term-card__rows { display: grid; gap: 7px; font-size: 13.5px; }
.term-card__rows div { display: flex; justify-content: space-between; gap: 8px; }
.term-card__rows dt { color: var(--muted); }
.term-card__total { margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--neon-line); }

/* Owned packages (dashboard) */
.my-packages { padding: 18px; }
.my-packages__title { font-size: 20px; font-weight: 700; }
.my-packages .eyebrow { margin: 2px 0 14px; }
.owned-list { display: grid; gap: 10px; }
.owned-item { display: flex; justify-content: space-between; gap: 12px; padding: 13px 14px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--neon); border-radius: 12px; }
.owned-item--full { display: grid; gap: 10px; }
.owned-item__top { display: flex; justify-content: space-between; gap: 12px; }
.owned-item__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.owned-item__meta { font-size: 12.5px; color: var(--muted); }
.owned-item__nums { font-weight: 600; text-align: right; white-space: nowrap; }

/* Plans page */
.plan-grid { display: grid; gap: 12px; }
.plan-card { display: grid; align-content: start; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--neon); border-radius: 16px; }
.plan-card.is-done { opacity: .65; border-top-color: var(--muted); }
.plan-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-card__name { font-size: 16px; font-weight: 700; }
.plan-card__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.plan-card__nums div { padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.plan-card__nums dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan-card__nums dd { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-card__actions { display: grid; gap: 10px; margin-top: 4px; }

/* Tags, progress */
.tag { display: inline-block; padding: 2px 8px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; color: var(--text-2); border: 1px solid var(--line); border-radius: 99px; }
.tag--green { color: var(--neon); background: var(--neon-dim); border-color: var(--neon-line); }
.progress { display: block; width: 100%; height: 7px; overflow: hidden; -webkit-appearance: none; appearance: none; background: rgba(255, 255, 255, .07); border: 0; border-radius: 99px; }
.progress::-webkit-progress-bar { background: rgba(255, 255, 255, .07); border-radius: 99px; }
.progress::-webkit-progress-value { background: var(--grad); border-radius: 99px; box-shadow: 0 0 12px rgba(45, 255, 154, .6); }
.progress::-moz-progress-bar { background: var(--grad); border-radius: 99px; }

/* ---------- Tables ---------- */
.table { width: 100%; font-size: 13.5px; }
.table th { padding: 11px 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-align: left; text-transform: uppercase; white-space: nowrap; color: var(--neon); background: var(--surface-2); border-bottom: 1px solid var(--neon-line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); }
.table .num, .table th.num { text-align: right; }
.table--stack thead { display: none; }
.table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; }
.table--stack tr { padding: 4px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.table--stack tr + tr { margin-top: 10px; }
.table--stack td, .table--stack td.num { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; text-align: right; overflow-wrap: anywhere; border-bottom: 0; }
.table--stack td + td { border-top: 1px solid var(--line); }
.table--stack td::before { content: attr(data-label); flex-shrink: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-align: left; text-transform: uppercase; color: var(--muted); }
.table--trade { min-width: 520px; }
.table--trade td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table--trade tbody tr:hover, .table--stack tbody tr:hover { background: rgba(45, 255, 154, .04); }
.trade-pair { font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.table-noresult { padding: 22px; font-size: 14px; text-align: center; color: var(--muted); }
.skeleton-load { position: relative; }
.skeleton-load > table { animation: sk-reveal .55s step-end both; }
.skeleton-load::before { content: ''; position: absolute; inset: 0; z-index: 1; min-height: 120px; pointer-events: none; border-radius: 12px; background: linear-gradient(90deg, transparent, rgba(45, 255, 154, .1), transparent) 0 0 / 200% 100%, repeating-linear-gradient(180deg, rgba(255, 255, 255, .04) 0 30px, transparent 30px 44px); animation: sk-shimmer 1s linear infinite, sk-hide .55s step-end both; }
@keyframes sk-reveal { from { visibility: hidden; } to { visibility: visible; } }
@keyframes sk-hide { from { visibility: visible; } to { visibility: hidden; } }
@keyframes sk-shimmer { from { background-position: 100% 0, 0 0; } to { background-position: -100% 0, 0 0; } }

.trade-card { padding: 18px 12px 10px; }
.trade-card__head { display: grid; gap: 8px; padding: 0 4px 14px; }
.trade-card__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--neon); }
.trade-card__stamp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.empty-state, .empty-dashed { display: grid; justify-items: center; gap: 10px; padding: 30px 16px; font-size: 13px; letter-spacing: .12em; text-align: center; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--neon-line); border-radius: 14px; }
.empty-dashed { margin-bottom: 4px; }
.empty-dashed + .btn { margin-top: 14px; }
.empty-page { display: grid; justify-items: center; gap: 14px; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty-page .icon { color: var(--neon); filter: drop-shadow(0 0 10px rgba(45, 255, 154, .6)); }
.guest .empty-page { width: min(100%, 440px); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.pagination__btn { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--neon); border: 1px solid var(--neon-line); border-radius: 12px; }
.pagination__btn.is-disabled { opacity: .35; }
.pagination__info { font-size: 12.5px; color: var(--muted); }
.tabs { display: flex; gap: 8px; margin: 0 -4px 16px; padding: 0 4px 4px; overflow-x: auto; }
.tabs__item { display: inline-flex; flex-shrink: 0; align-items: center; min-height: 40px; padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); border-radius: 99px; }
.tabs__item:hover { color: var(--neon); border-color: var(--neon-line); }
.tabs__item.is-active { color: var(--ink); background: var(--grad); border-color: transparent; box-shadow: var(--glow); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; font-size: 13px; color: var(--text-2); border: 1px solid var(--line); border-radius: 99px; }

/* ---------- Toast + modal ---------- */
.toast-region { position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(var(--bottom-h) + 26px + env(safe-area-inset-bottom)); z-index: 90; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 14px; background: #061210; border: 1px solid var(--neon); border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .6), var(--glow); pointer-events: auto; animation: toast-in .3s var(--ease); transition: opacity .3s, transform .3s; }
.toast .icon { color: var(--neon); }
.toast--error { border-color: var(--red); box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 20px rgba(255, 93, 115, .3); }
.toast--error .icon { color: var(--red); }
.toast.is-leaving { opacity: 0; transform: translateY(10px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }

.modal { width: min(calc(100vw - 32px), 420px); padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--neon-line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), var(--glow); }
.modal[open] { animation: modal-in .25s var(--ease); }
.modal::backdrop { background: rgba(0, 6, 5, .7); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__body { display: grid; gap: 14px; padding: 22px; }
.modal__title { font-size: 19px; font-weight: 700; color: var(--neon); }
.modal__text { font-size: 14.5px; color: var(--text-2); }
.modal__note { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Profile / misc pages ---------- */
.profile-eyebrow { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.profile-card { padding: 20px 18px; background: var(--surface); border: 1px solid var(--neon-line); border-radius: 20px; box-shadow: var(--glow-soft); }
.profile-card__title { padding-bottom: 14px; font-size: 24px; font-weight: 700; border-bottom: 1px solid var(--line); }
.profile-list__item { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile-list__item:last-child { border-bottom: 0; }
.profile-list dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.profile-list dd { font-size: 16px; overflow-wrap: anywhere; }
.profile-list dd.wallet-text { font-size: 14px; }

.calc-result div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.calc-result dt { color: var(--text-2); }
.calc-result dd { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--neon); }
.calc-result + .form__note { margin-top: 14px; }
.balance-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--text-2); }
.how-list { display: grid; gap: 8px; margin-top: 16px; padding-left: 20px; font-size: 13.5px; color: var(--text-2); }
.how-list strong { color: var(--text); }

.deposit-card { overflow: hidden; }
.deposit-card__head { padding: 16px 18px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--neon); background: var(--surface-2); border-bottom: 1px solid var(--neon-line); }
.deposit-card__body { padding: 18px; }
.address-card { display: grid; justify-items: center; gap: 16px; padding: 22px 18px; text-align: center; }
.address-card__title { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--neon); }
.qr-box { width: 200px; aspect-ratio: 1; padding: 12px; background: #fff; border: 3px solid var(--neon); border-radius: 16px; box-shadow: var(--glow); }
.qr-box svg { width: 100%; height: 100%; }
.address-card__address { width: 100%; padding: 12px; font-family: var(--mono); font-size: 12px; color: var(--neon); overflow-wrap: anywhere; background: var(--bg); border: 1px dashed var(--neon-line); border-radius: 10px; }

/* Level team tree */
.tree-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tree-zoom { display: flex; gap: 6px; }
.tree-zoom .btn { min-width: var(--tap); padding: 0 12px; }
.tree-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; font-size: 12.5px; color: var(--text-2); }
.tree-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tree-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.tree-dot.is-active { background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.tree { min-height: 240px; max-height: 70vh; padding: 16px 8px; overflow: auto; cursor: grab; user-select: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tree.is-dragging { cursor: grabbing; }
.tree__canvas { width: max-content; min-width: 100%; }
.tree ul { position: relative; display: flex; justify-content: center; margin: 0; padding: 20px 0 0; list-style: none; }
.tree ul[hidden] { display: none; }
.tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 20px 6px 0; }
.tree li::before, .tree li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 20px; border-top: 1px solid var(--neon-line); }
.tree li::after { right: auto; left: 50%; border-left: 1px solid var(--neon-line); }
.tree li:only-child { padding-top: 0; }
.tree li:only-child::before, .tree li:only-child::after { display: none; }
.tree li:first-child::before, .tree li:last-child::after { border: 0; }
.tree li:last-child::before { border-right: 1px solid var(--neon-line); border-radius: 0 8px 0 0; }
.tree li:first-child::after { border-radius: 8px 0 0 0; }
.tree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 20px; border-left: 1px solid var(--neon-line); }
.tree__canvas > ul { padding-top: 0; }
.tree-node { display: grid; gap: 2px; width: 140px; padding: 8px 10px; font: inherit; text-align: center; color: var(--text); cursor: pointer; background: var(--surface-2); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 10px; }
.tree-node:hover { border-color: var(--neon-line); }
.tree-node.is-active { border-top-color: var(--neon); }
.tree-node.is-salary { border-color: var(--neon); box-shadow: var(--glow); }
.tree-node.is-me { outline: 2px solid var(--neon-2); outline-offset: 2px; }
.tree-node__code { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--neon); }
.tree-node__name { overflow: hidden; font-size: 12px; color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }
.tree-node__meta { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tree-toggle { min-width: 34px; height: 24px; margin-top: 6px; padding: 0 8px; font: 700 12px var(--font); color: var(--ink); cursor: pointer; background: var(--grad); border: 0; border-radius: 999px; }
.tree-tip { margin-top: 10px; font-size: 12.5px; }
.tree-salary-title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--neon); }

/* ---------- Guest / auth ---------- */
body.guest { background: var(--bg); }
.guest-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background:
    radial-gradient(560px 420px at 15% 0, rgba(25, 227, 208, .16), transparent 70%),
    radial-gradient(520px 420px at 90% 100%, rgba(45, 255, 154, .14), transparent 70%),
    linear-gradient(rgba(45, 255, 154, .04) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(45, 255, 154, .04) 1px, transparent 1px) 0 0 / 44px 44px; }
.guest-bg__dots { display: none; }
.guest-bg__streak { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--neon) 50%, transparent); box-shadow: 0 0 24px 2px rgba(45, 255, 154, .5); animation: streak 7s ease-in-out infinite alternate; }
.guest-bg__streak--top { top: 16%; }
.guest-bg__streak--bottom { top: 84%; opacity: .6; animation-delay: -3.5s; }
.guest-bg__orb { display: none; }
@keyframes streak { from { transform: translateX(-14%); opacity: .6; } to { transform: translateX(14%); opacity: 1; } }
.guest-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 10; display: flex; justify-content: center; pointer-events: none; }
.guest-header .demo-badge { margin: 0; }
.guest-main { position: relative; z-index: 1; display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 60px var(--gutter) 40px; }

.auth-card { position: relative; display: grid; gap: 12px; width: min(100%, 440px); padding: 26px 22px; overflow: hidden; background: rgba(9, 18, 20, .86); border: 1px solid var(--neon-line); border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 50px rgba(45, 255, 154, .1); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: rise .45s var(--ease); }
.auth-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); box-shadow: var(--glow); }
.auth-card__band { display: none; }
.auth-card .logo-box { justify-self: center; }
.auth-card__title { margin-top: 4px; font-size: 22px; font-weight: 700; text-align: center; }
.auth-card form { display: grid; gap: 4px; }
.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin: 4px 0 10px; }
.auth-row .link-blue { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 13.5px; }
.check--terms { margin-top: 8px; }
.check--terms + .field-error { padding-left: 30px; }
.auth-card .btn--lg { margin-top: 10px; }
.auth-card__foot { margin-top: 14px; font-size: 14px; text-align: center; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.logo-box { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.logo-box__word { font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: .2em; padding-left: .2em; color: var(--text); }
.logo-box__o { color: var(--neon); text-shadow: 0 0 18px rgba(45, 255, 154, .9), 0 0 40px rgba(45, 255, 154, .5); }
.logo-box__tag { display: flex; align-items: center; gap: 8px; font-size: 9.5px; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); }
.logo-box__tag::before, .logo-box__tag::after { content: ''; width: 16px; height: 1px; background: var(--neon-line); }

/* Boxed inputs with floating labels (guest) */
.float-field { position: relative; margin-top: 8px; }
.float-field input, .float-field select { display: block; width: 100%; height: 58px; padding: 24px 14px 6px; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.float-field select { padding-right: 36px; -webkit-appearance: none; appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%232dff9a' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center no-repeat; }
.float-field select option { color: var(--text); background: var(--surface-2); }
.float-field input:focus, .float-field select:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(45, 255, 154, .14), var(--glow); }
.float-field input[aria-invalid='true'], .float-field select[aria-invalid='true'] { border-color: var(--red); }
.float-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--surface-2) inset; -webkit-text-fill-color: var(--text); }
.float-field label { position: absolute; top: 19px; left: 14px; right: 14px; font-size: 14.5px; color: var(--muted); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform-origin: left top; transition: transform .2s var(--ease), color .2s; }
.float-field input:focus + label, .float-field input:not(:placeholder-shown) + label, .float-field select:focus + label, .float-field select:valid + label { transform: translateY(-13px) scale(.76); }
.float-field input:focus + label, .float-field select:focus + label { color: var(--neon); }
.float-field .field-error { padding: 4px 4px 0; }

/* ---------- Breakpoints ---------- */
@media (min-width: 400px) {
    .stat-card__value { font-size: 25px; }
}

@media (min-width: 640px) {
    .table--stack { display: table; }
    .table--stack thead { display: table-header-group; }
    .table--stack tbody { display: table-row-group; }
    .table--stack tr { display: table-row; padding: 0; background: none; border: 0; border-radius: 0; }
    .table--stack td, .table--stack td.num { display: table-cell; padding: 12px; border-top: 0; border-bottom: 1px solid var(--line); }
    .table--stack td { text-align: left; }
    .table--stack td.num { text-align: right; }
    .table--stack td::before { content: none; }
    .toast-region { left: auto; width: 380px; }
    .hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); align-items: center; }
}

@media (min-width: 768px) {
    :root { --gutter: 28px; }
    .card--pad { padding: 24px; }
    .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .stat-grid--returns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .term-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-head__title { font-size: 28px; }
    .auth-card { padding: 32px 30px; }
    .trade-card { padding: 22px 18px 14px; }
    .trade-card__head { grid-template-columns: 1fr minmax(240px, 320px); align-items: center; }
    .trade-card__stamp { grid-row: 2; }
    .trade-card .search { grid-row: 1 / span 2; grid-column: 2; }
    .profile-eyebrow, .profile-card { width: 100%; max-width: 820px; margin-inline: auto; }
    .profile-card { padding: 28px; }
    .profile-list__item { grid-template-columns: 220px 1fr; align-items: baseline; }
    .quick-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* Desktop: docked sidebar, no bottom bar. */
@media (min-width: 1024px) {
    :root { --topbar-h: 68px; }

    .app .sidebar {
        top: 0;
        right: auto;
        width: var(--sidebar-w);
        max-height: none;
        padding: 20px 14px 24px;
        background: linear-gradient(180deg, rgba(9, 18, 20, .96), rgba(4, 9, 10, .98));
        border: 0;
        border-right: 1px solid var(--line);
        border-radius: 0;
        box-shadow: 4px 0 40px rgba(0, 0, 0, .4);
        transform: none;
        visibility: visible;
    }
    .sidebar__grab { display: none; }
    .sidebar__brand { display: flex; margin: 0 6px 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
    .nav-link.is-active::before { left: -14px; }
    .sidebar-backdrop, .bottom-nav { display: none; }

    .app .topbar { margin-left: var(--sidebar-w); padding-left: var(--gutter); }
    .app .topbar .brand { display: none; }
    .topbar__title { display: block; }
    .demo-badge { padding: 4px 12px; font-size: 10.5px; }
    .app .page { max-width: none; margin: 0; padding: 22px var(--gutter) 56px calc(var(--sidebar-w) + var(--gutter)); }
    .app .page > * { max-width: 1180px; }
    .toast-region { bottom: 24px; }

    .dash-split { grid-template-columns: 1fr 1fr; }
    .dash-split--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
    .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .table-scroll { max-height: 640px; overflow-y: auto; }
    .table--trade thead th { position: sticky; top: 0; z-index: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Live crypto ticker (dashboard) ---------- */
.ticker { display: grid; gap: 10px; padding: 14px 0 12px; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--neon-line); border-radius: 20px; box-shadow: var(--glow-soft); }
.ticker__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; }
.ticker__title { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--neon); }
.ticker__status { font-size: 11px; color: var(--muted); }
.ticker__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker__track { display: flex; width: max-content; padding: 2px 0; animation: ticker-scroll var(--ticker-time, 60s) linear infinite; }
.ticker__track--rev { animation-direction: reverse; }
.ticker__row:hover .ticker__track { animation-play-state: paused; }
.coin { display: flex; flex: none; align-items: center; gap: 10px; width: 215px; margin-right: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.coin__logo { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.coin__badge { display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--neon); }
.coin__info { flex: 1; min-width: 0; }
.coin__name { margin: 0; overflow: hidden; font-size: 13px; font-weight: 600; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.coin__sym { margin: 2px 0 0; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.coin__quote { text-align: right; }
.coin__price { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.coin__chg { margin: 2px 0 0; font-size: 11px; font-weight: 600; min-height: 1em; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker__track { animation: none; }
    .ticker__row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}