:root {
  --bg: #0b0f19;
  --elev: #121826;
  --card: #161e2e;
  --line: #243047;
  --fg: #e8edf5;
  --muted: #8b9bb4;
  --accent: #22d3ee;
  --accent-fg: #041018;
  --up: #34d399;
  --down: #f87171;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); font-family: var(--font); }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.nx-gate.hidden, #nx-app.hidden { display: none !important; }
#nx-app:not(.hidden) { display: block; height: 100vh; overflow: hidden; }
body:has(#nx-app:not(.hidden)) { overflow: hidden; height: 100vh; }
.nx-muted { color: var(--muted); font-size: 0.8rem; }
.nx-kicker { margin: 0 0 4px; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nx-label { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }

.nx-gate { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.nx-gate-card { max-width: 420px; }
.nx-gate-card h1 { font-size: 1.6rem; margin: 16px 0 8px; letter-spacing: -0.03em; }
.nx-gate-card p { color: var(--muted); line-height: 1.5; }

.nx-mobar { display: none; }
.nx-mobar-end { display: none; }
.nx-backdrop { display: none; }
.nx-iconbtn {
  background: #121826; border: 1px solid var(--line); color: var(--fg); width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; border-radius: 12px;
}
.nx-bars { width: 18px; height: 14px; position: relative; display: block; }
.nx-bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; }
.nx-bars span:nth-child(1) { top: 0; }
.nx-bars span:nth-child(2) { top: 6px; }
.nx-bars span:nth-child(3) { top: 12px; }
body.nx-menu-open .nx-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
body.nx-menu-open .nx-bars span:nth-child(2) { opacity: 0; }
body.nx-menu-open .nx-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nx-rail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nx-rail-close { display: none; }

.nx-shell {
  display: flex; flex-direction: row; align-items: stretch;
  height: 100vh; overflow: hidden; width: 100%;
}
.nx-rail {
  flex: 0 0 232px; width: 232px; border-right: 1px solid var(--line); padding: 22px 16px;
  display: flex; flex-direction: column; background: #0d121e;
  height: 100vh; overflow-y: auto; overflow-x: hidden;
}
.nx-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; }
.nx-mark {
  width: 28px; height: 28px; border-radius: 8px;
  object-fit: cover; display: block; background: #0b0f19;
}
.nx-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; overflow: auto; }
.nx-nav button, .nx-nav a {
  background: none; border: 0; color: var(--muted); text-align: left; padding: 10px 12px;
  border-radius: 10px; font: 650 0.92rem/1 var(--font);
  display: flex; align-items: center; gap: 10px;
}
.nx-nav-ico {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: currentColor; fill: none;
}
.nx-nav button:hover, .nx-nav a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nx-nav .is-on { color: var(--fg); background: rgba(34,211,238,0.08); box-shadow: inset 2px 0 0 var(--accent); }
.nx-rail-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.nx-who { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; width: 100%; text-align: left; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.nx-who:hover { color: var(--fg); }
.nx-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #1c2639; display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
  border: 0; color: inherit; padding: 0; font: 700 0.95rem/1 var(--font);
}
.nx-text { background: none; border: 0; color: var(--muted); padding: 0; font: 600 0.8rem/1 var(--font); }
.nx-logout {
  width: 100%; min-height: 42px; margin-top: 8px;
  background: transparent; border: 1px solid rgba(248,113,113,0.35); color: #f87171;
  border-radius: 10px; font: 700 0.85rem/1 var(--font); cursor: pointer;
}
.nx-logout:hover { background: rgba(248,113,113,0.08); }
.nx-logout-page { max-width: 280px; margin: 18px 0 8px; }

.nx-main { flex: 1 1 auto; min-width: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; padding: 16px 32px 32px; }
.nx-toolbar { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
.nx-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.nx-head h1 { margin: 0; font-size: 1.45rem; letter-spacing: -0.03em; }
.nx-head-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 0.8rem; }
.nx-ghost {
  background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 999px;
  padding: 6px 12px; font: 650 0.78rem/1 var(--font);
}

.nx-board {
  display: grid; grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.5fr);
  gap: 16px; align-items: center;
  background: var(--elev); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  margin-bottom: 12px;
}
.nx-total-label { display: flex; align-items: center; gap: 8px; }
.nx-eye {
  width: 28px; height: 28px; border: 0; border-radius: 50%; padding: 0;
  background: #1c2639; color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.nx-eye:hover { color: var(--fg); }
.nx-eye svg { width: 16px; height: 16px; display: block; }
.nx-total-col { min-width: 0; }
.nx-chart-col { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.nx-total { font-size: 1.85rem; font-weight: 750; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin: 4px 0 4px; }
.nx-btc { color: var(--muted); font-size: 0.8rem; }
.nx-pnl { margin-top: 6px; font-weight: 650; font-size: 0.82rem; }
.nx-pnl.nx-up { color: var(--up); }
.nx-pnl.nx-dn { color: var(--down); }
.nx-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.nx-metric { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }

.nx-chart-col { min-width: 0; }
.nx-range { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 4px; }
.nx-range button {
  background: transparent; border: 0; color: var(--muted); padding: 4px 8px; border-radius: 6px;
  font: 650 0.75rem/1 var(--font);
}
.nx-range .is-on { color: var(--fg); background: #1c2639; }
#nx-chart { width: 100%; height: 118px; display: block; }
.nx-chart-dates { display: flex; justify-content: space-between; color: #64748b; font-size: 0.68rem; padding-top: 2px; }

.nx-cardface {
  position: relative;
  aspect-ratio: 1.586 / 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  justify-self: stretch;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px 18px 14px;
  color: #f8fafc;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(120% 90% at 100% -10%, rgba(34,211,238,0.28), transparent 46%),
    linear-gradient(145deg, #1a2438 0%, #0d1424 48%, #123044 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.nx-cardface-lg { max-width: none; margin: 12px 0; }
.nx-cardface-top, .nx-cardface-bot, .nx-cardface-mid {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.nx-cardface-brand { font-weight: 800; letter-spacing: 0.04em; font-size: 0.82rem; }
.nx-cardface-kind { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #93c5d6; }
.nx-emv {
  width: 44px; height: 34px; border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, #f6e7b8, #d4af5a 45%, #f0d78a 70%, #b8860b);
  box-shadow: inset 0 0 0 1px rgba(80,50,0,0.35), 0 1px 2px rgba(0,0,0,0.3);
}
.nx-contactless { color: rgba(255,255,255,0.75); }
.nx-cardface .nx-pan { font-family: var(--mono); letter-spacing: 0.16em; font-size: 1.02rem; font-weight: 650; margin: 8px 0; }
.nx-cardface-bot { align-items: flex-end; font-size: 0.78rem; font-weight: 650; }
.nx-mc-lockup { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 0.58rem; letter-spacing: 0.04em; text-transform: lowercase; }
.nx-mc { position: relative; width: 42px; height: 24px; }
.nx-mc i { position: absolute; width: 22px; height: 22px; border-radius: 50%; top: 1px; }
.nx-mc i:first-child { left: 0; background: #eb001b; }
.nx-mc i:last-child { right: 0; background: #f79e1b; opacity: 0.92; }

.nx-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.nx-quick {
  display: flex; justify-content: space-around; align-items: flex-start;
  gap: 8px; margin: 2px 0 16px;
}
.nx-quick button {
  appearance: none; background: none; border: 0; color: var(--fg);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 650 0.75rem/1 var(--font); min-width: 72px; cursor: pointer;
}
.nx-quick-ico {
  width: 54px; height: 54px; border-radius: 50%;
  background: #1c2639; color: #e8edf5;
  display: grid; place-items: center;
}
.nx-quick-ico.is-accent {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9); color: #041018;
}
.nx-quick-4 button { flex: 1; min-width: 0; }
.nx-card-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  background:
    radial-gradient(120% 140% at 100% -20%, rgba(255,255,255,0.55), transparent 42%),
    linear-gradient(180deg, #e8eef7, #c9d4e4);
  color: #0b0f19; border: 0; border-radius: 16px;
  padding: 16px 18px; margin-bottom: 14px; min-height: 58px;
  font: 750 0.95rem/1 var(--font);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.nx-card-strip-r {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 650; letter-spacing: 0.06em;
  font-size: 0.82rem; color: #334155;
}
.nx-earn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.nx-earn-card { text-align: left; min-height: 150px; display: flex; flex-direction: column; gap: 8px; }
.nx-earn-card strong { font-size: 1.35rem; letter-spacing: -0.03em; }
.nx-earn-badge {
  display: inline-flex; align-self: flex-start; margin-top: auto;
  background: linear-gradient(135deg, #fb923c, #f43f5e); color: #fff;
  border-radius: 999px; padding: 6px 10px; font: 700 0.72rem/1 var(--font);
}
.nx-earn-pill {
  display: inline-flex; align-self: flex-start; margin-top: auto;
  background: #1c2639; color: #94a3b8; border-radius: 999px;
  padding: 6px 12px; font: 800 0.72rem/1 var(--font); letter-spacing: 0.06em;
}
.nx-earn-pill.is-on { background: rgba(52,211,153,0.16); color: #34d399; }
button.nx-earn-card { width: 100%; color: inherit; cursor: pointer; }
.nx-ref-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.nx-ref-row code {
  flex: 1; min-width: 0; background: #0b0f19; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: 700 0.82rem/1.3 var(--mono); letter-spacing: 0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nx-ref-item {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.85rem;
}
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9); color: var(--accent-fg);
  border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 0.88rem;
}
.nx-btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }

.nx-bonus {
  background: var(--elev); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin: -8px 0 18px;
}
.nx-bonus-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.nx-bonus .nx-bar { margin: 0; }
.nx-bonus p { margin: 8px 0 0; }
.nx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.nx-tile { background: var(--elev); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; overflow: hidden; }
.nx-tile strong { display: block; font-size: 1.25rem; margin: 8px 0 4px; font-variant-numeric: tabular-nums; word-break: break-word; }
.nx-bar { height: 4px; background: #1c2639; border-radius: 4px; margin-top: 12px; overflow: hidden; }
.nx-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.nx-tile-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nx-tile-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.nx-tile-acts .nx-btn { flex: 1; min-width: 0; padding: 8px 8px; font-size: 0.78rem; min-height: 36px; }
.nx-live {
  display: inline-flex; align-items: center; gap: 6px;
  color: #34d399; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
}
.nx-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 8px #34d399; animation: nxpulse 1.6s ease-out infinite;
}
@keyframes nxpulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  70% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.nx-more { display: block; width: 100%; text-align: center; margin-top: 10px; padding: 8px 0; }
.nx-more.hidden { display: none !important; }

.nx-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nx-panel { background: var(--elev); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.nx-panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.nx-panel h2 { margin: 0; font-size: 1rem; }
.nx-q, .nx-tx-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.nx-q:last-child, .nx-tx-row:last-child { border-bottom: 0; }
.nx-up { color: var(--up); }
.nx-dn { color: var(--down); }
.nx-empty { color: var(--muted); padding: 20px 0; text-align: center; }

.nx-split-form { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 14px; align-items: start; }
.nx-form { display: flex; flex-direction: column; gap: 12px; }
.nx-form h2 { margin: 0 0 4px; font-size: 1.05rem; }
.nx-form label, .nx-form-lbl { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.nx-form input, .nx-form select, .nx-form-lbl input, .nx-form-lbl select, .nx-select, .nx-pin-input {
  background: #0b0f19; border: 1px solid var(--line); color: var(--fg); border-radius: 10px;
  padding: 11px 12px; font: 600 0.95rem/1.2 var(--font);
}
.nx-pin-input { width: 100%; letter-spacing: 0.4em; text-align: center; font-size: 1.4rem; margin: 8px 0; }
.nx-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
#nx-wallet-form { grid-column: 1 / -1; }
.nx-w-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.nx-pay-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem;
}
.nx-pay-row:last-child { border-bottom: 0; }
.nx-pay-row strong { display: block; margin-bottom: 4px; }
.nx-pay-row span { color: var(--muted); word-break: break-all; }
.nx-pay-acts { display: flex; gap: 10px; flex-shrink: 0; }
#user-wallets-card, #wallets-card { display: none !important; }
.nx-avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.nx-idcard {
  display: flex; gap: 16px; align-items: center;
  background: var(--elev); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 16px;
}
.nx-idcard h2 { margin: 0 0 4px; font-size: 1.25rem; }
.nx-idcard .nx-muted { margin: 0 0 8px; }
.nx-pill {
  display: inline-flex; align-items: center;
  background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.28);
  color: #22d3ee; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
}
.nx-pill.is-wait { color: #fbbf24; background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.3); }
.nx-pill.is-ok { color: #34d399; background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.3); }
.nx-pill.is-bad { color: #f87171; background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); }
.nx-qr-box { text-align: center; margin: 12px 0; }
.nx-qr-box img { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 8px; }
.nx-codes {
  background: #0b0f19; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; color: var(--fg); letter-spacing: 0.06em; line-height: 1.7;
  font-family: var(--mono); font-size: 0.92rem; overflow: auto;
}
.nx-bullets { margin: 0 0 16px; padding-left: 18px; color: var(--muted); line-height: 1.55; font-size: 0.9rem; }
.nx-drop {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 120px; border: 1px dashed var(--line); border-radius: 14px;
  background: #0b0f19; color: var(--muted); font-weight: 650; cursor: pointer;
  padding: 16px; margin: 10px 0 8px;
}
.nx-drop:hover { border-color: var(--accent); color: var(--fg); }
.nx-drop input { display: none; }
.nx-drop.is-on { border-color: var(--accent); color: var(--fg); border-style: solid; }
#nx-2fa-modal .nx-btn, #nx-kyc-modal .nx-btn { width: 100%; margin-top: 8px; }
#nx-2fa-modal .nx-text, #nx-kyc-modal .nx-text { display: block; width: 100%; margin-top: 10px; text-align: center; }
#nx-2fa-modal h2, #nx-kyc-modal h2 { margin: 4px 0 8px; }
.nx-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  color: var(--fg); font-size: 0.9rem; font-weight: 600;
}
.nx-switch:last-of-type { border-bottom: 0; }
.nx-switch input {
  width: 42px; height: 24px; accent-color: #22d3ee; flex-shrink: 0;
}
#nx-2fa-card .nx-btn, #nx-mail-card .nx-btn { margin-top: 8px; }
.nx-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.nx-table th { text-align: left; color: var(--muted); font-weight: 650; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.nx-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.nx-scroll { overflow-x: auto; }
.nx-indices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.nx-index { background: var(--elev); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.nx-index strong { display: block; font-size: 1.15rem; margin-top: 6px; }
.nx-seg { display: flex; gap: 6px; margin: 8px 0 14px; }
.nx-seg button {
  flex: 1; background: #0b0f19; border: 1px solid var(--line); color: var(--muted);
  border-radius: 10px; padding: 10px; font: 700 0.82rem/1 var(--font);
}
.nx-seg .is-on { border-color: var(--accent); color: var(--accent); background: rgba(34,211,238,0.08); }
.nx-details { background: #0b0f19; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; font-size: 0.88rem; }
.nx-details div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; word-break: break-all; }
.nx-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); }
.nx-wide { width: min(480px, 100%); }
.nx-panel a { color: var(--accent); }
.nx-q { cursor: pointer; }
.nx-q-hold { background: rgba(52,211,153,0.05); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 10px; }
.nx-metric-hint { font-size: 0.72rem; margin-top: 4px; }
.nx-alert-form {
  display: grid; grid-template-columns: 1.1fr 1.2fr 1fr auto; gap: 12px; align-items: end; margin: 12px 0 4px;
}
.nx-alert-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--muted); margin: 0; }
.nx-alert-form input, .nx-alert-form select {
  background: #0b0f19; border: 1px solid var(--line); color: var(--fg); border-radius: 10px;
  padding: 11px 12px; font: 600 0.95rem/1.2 var(--font); width: 100%;
}
.nx-alert-form .nx-btn { white-space: nowrap; height: 44px; }
.nx-alert-list { margin-top: 8px; }
.nx-alert-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.nx-alert-item:last-child { border-bottom: 0; }
.nx-alert-item strong { margin-right: 6px; }

.nx-bell {
  position: relative; z-index: 20;
  width: 44px; height: 44px; border-radius: 12px;
  background: #121826; border: 1px solid var(--line); color: var(--fg);
  display: grid; place-items: center; padding: 0; flex-shrink: 0;
}
#notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: #f43f5e; color: #fff;
  font-size: 10px; font-weight: 800; display: none; align-items: center; justify-content: center;
}
#notif-badge.show { display: inline-flex !important; }
.canvas-wrap { height: min(420px, 55vh); min-height: 280px; margin: 10px 0; }
#tv-chart { width: 100%; height: 100%; min-height: 280px; }
.live-price { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.03em; }
.live-price-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin: 8px 0 12px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 0.68rem; letter-spacing: 0.08em; color: var(--up); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); }
.chart-symbol-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.symbol-tab {
  background: #0b0f19; border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; padding: 6px 10px; font: 700 0.78rem/1 var(--font);
}
.symbol-tab.active { border-color: var(--accent); color: var(--accent); }
.watch-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.watch-symbol { font-weight: 700; }
.watch-name { color: var(--muted); font-size: 0.78rem; }
.watch-change.positive, .live-change.positive, .index-change.positive { color: var(--up); }
.watch-change.negative, .live-change.negative, .index-change.negative { color: var(--down); }
.alpha-support-fab {
  position: fixed; right: 18px; bottom: 96px; z-index: 130;
  display: none; align-items: center; gap: 8px;
  background: #22d3ee; color: #041018; font-weight: 800; font-size: 0.88rem;
  text-decoration: none; padding: 12px 16px; border-radius: 999px;
  box-shadow: 0 12px 28px rgba(34,211,238,0.4);
}
body.app-logged-in .alpha-support-fab { display: inline-flex; }
.alpha-support-fab-icon {
  width: 22px; height: 22px; border-radius: 50%; background: #041018; color: #22d3ee;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900;
}

.nx-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: grid; place-items: center; z-index: 500; padding: 16px; pointer-events: auto; }
#nx-pin-modal { z-index: 560; }
.nx-modal.hidden { display: none !important; }
.nx-modal-card { width: min(420px, 100%); background: var(--elev); border: 1px solid var(--line); border-radius: 16px; padding: 20px; max-height: min(88vh, 740px); overflow: auto; }
.nx-pin-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 18px; }
.nx-pin-card h2 { margin: 0; }
.nx-pin-card .nx-muted { margin: 0; }
.nx-pin-input { width: 100%; letter-spacing: 0.4em; text-align: center; font-size: 1.4rem; margin: 0; }
.nx-pin-status { min-height: 1.2em; margin: 0; font-size: 0.88rem; }
.nx-pin-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.nx-pin-actions .nx-btn { width: 100%; }
.nx-wide { width: min(480px, 100%); }
.nx-flow { text-align: center; padding: 28px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nx-flow.hidden { display: none !important; }
.nx-flow h3 { margin: 0; font-size: 1.15rem; }
.nx-spin {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: nxspin 0.75s linear infinite;
}
@keyframes nxspin { to { transform: rotate(360deg); } }
.nx-ok {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(52,211,153,0.16); color: #34d399;
  display: grid; place-items: center; font-size: 1.35rem; font-weight: 700;
}
.nx-flow .nx-btn { width: min(280px, 100%); margin-top: 8px; }
.deposit-tab.active { border-color: var(--accent); color: var(--accent); background: rgba(34,211,238,0.08); }
.wd-method.active { border-color: var(--accent); color: var(--accent); background: rgba(34,211,238,0.08); }
.nx-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #1c2639; border: 1px solid var(--line); color: var(--fg);
  border-radius: 10px; padding: 10px 14px; font-size: 0.85rem; z-index: 50;
}

@media (max-width: 1280px) {
  .nx-board { grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1.5fr); gap: 14px; padding: 14px; }
}
@media (max-width: 1100px) {
  #notif-panel { top: 62px !important; right: 10px !important; }
  body:has(#nx-app:not(.hidden)) { overflow: auto; height: auto; }
  #nx-app:not(.hidden) { height: auto; overflow: visible; min-height: 100vh; }
  .nx-shell { display: block; height: auto; overflow: visible; min-height: 100vh; }
  .nx-mobar {
    display: flex !important; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 400; height: 56px;
    padding: 0 10px 0 8px; background: rgba(11,15,25,0.96); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); gap: 8px;
  }
  .nx-mobar-end { display: flex; align-items: center; gap: 8px; }
  .nx-toolbar { display: none; }
  .nx-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 420; }
  .nx-backdrop[hidden] { display: none !important; }
  .nx-rail {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(280px, 86vw); height: 100%;
    z-index: 430; transform: translateX(-105%); transition: transform 0.2s ease;
    box-shadow: none;
    padding-top: calc(16px + env(safe-area-inset-top));
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    flex: none;
  }
  .nx-rail-close { display: grid; }
  body.nx-menu-open { overflow: hidden; }
  body.nx-menu-open .nx-rail { transform: translateX(0); box-shadow: 18px 0 40px rgba(0,0,0,0.35); }
  .nx-nav { margin-top: 18px; }
  .nx-nav button, .nx-nav a { min-height: 44px; display: flex; align-items: center; }
  .nx-main { height: auto; overflow: visible; padding: 10px 14px calc(108px + env(safe-area-inset-bottom)); }
  .nx-head { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 8px; padding-right: 0; }
  .nx-head h1 { font-size: 1.2rem; }
  .nx-head-meta { width: auto; justify-content: flex-end; }
  .nx-kicker { display: none; }
  .nx-board {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    padding: 14px; border-radius: 14px; gap: 12px; margin-bottom: 10px;
  }
  .nx-total-col { grid-area: auto; grid-column: auto; }
  .nx-chart-col { grid-area: auto; }
  .nx-total { font-size: 1.45rem; margin: 2px 0; }
  .nx-metrics { margin-top: 8px; gap: 8px; }
  .nx-metric { font-size: 0.92rem; }
  .nx-metric-hint { display: none; }
  .nx-pnl { margin-top: 4px; font-size: 0.75rem; }
  .nx-btc { font-size: 0.72rem; }
  .nx-range { justify-content: space-between; }
  .nx-range button { flex: 1; min-height: 28px; padding: 2px 6px; }
  #nx-chart { height: 84px; }
  .nx-chart-dates { display: none; }
  .nx-cardface .nx-pan { font-size: 1.02rem; margin: 8px 0; letter-spacing: 0.16em; }
  .nx-cardface-bot { font-size: 0.78rem; }
  .nx-emv { width: 44px; height: 34px; }
  .nx-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
  .nx-quick { margin: 4px 0 14px; }
  .nx-quick button { min-width: 0; flex: 1; font-size: 0.72rem; }
  .nx-quick-ico { width: 50px; height: 50px; }
  .nx-earn-grid { grid-template-columns: 1fr; }
  .nx-btn { min-height: 40px; width: 100%; }
  .nx-tiles { grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
  .nx-tile { padding: 12px; }
  .nx-tile-broker { grid-column: auto; }
  .nx-alert-form { grid-template-columns: 1fr; }
  .nx-alert-form .nx-btn { width: 100%; }
  .nx-lower, .nx-split-form, .nx-settings, .nx-indices { grid-template-columns: 1fr; }
  .nx-modal { align-items: end; padding: 0 0 calc(78px + env(safe-area-inset-bottom)); }
  .nx-modal-card { width: 100%; border-radius: 16px 16px 0 0; padding: 18px 16px 20px; max-height: calc(100dvh - 96px - env(safe-area-inset-bottom)); }
  #nx-pin-modal { align-items: center; padding: 16px 16px calc(88px + env(safe-area-inset-bottom)); }
  #nx-pin-modal .nx-modal-card { width: min(400px, calc(100% - 24px)); border-radius: 16px; padding: 22px 18px 18px; }
  .nx-toast { bottom: calc(88px + env(safe-area-inset-bottom)); max-width: calc(100% - 24px); z-index: 540; }
  .alpha-support-fab { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .chart-symbol-tabs { width: 100%; }
  .symbol-tab { flex: 1; min-height: 40px; }
}
@media (max-width: 1100px) and (min-width: 560px) {
  .nx-tiles { grid-template-columns: 1fr 1fr; }
  .nx-tiles .nx-tile-broker { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-rail { transition: none; }
}
@media (min-width: 1101px) {
  body.app-logged-in .alpha-support-fab { bottom: 24px; right: 24px; }
  body:has(#nx-app) #mobile-bottom-nav.alpha-dock { display: none !important; }
  body:has(#nx-app).app-logged-in .nx-main { padding-bottom: 40px !important; }
  .nx-btn { width: auto; min-width: 120px; }
  .nx-mobar, .nx-backdrop { display: none !important; }
}
