:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #09090b;
  --bg2: #111113;
  --surface: #18181b;
  --surface2: #1f1f23;
  --text: #fafafa;
  --muted: #71717a;
  --muted2: #a1a1aa;
  --accent: #9333ea;
  --accent2: #2563eb;
  --cyan: #38bdf8;
  --glass: rgba(255,255,255,.04);
  --stroke: rgba(255,255,255,.08);
  --ok: #22c55e;
  --warn: #eab308;
  --bad: #ef4444;
  --r: 16px;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.25);
}

.ico-svg { display: block; flex-shrink: 0; }
.nav .ico-svg { width: 22px; height: 22px; }
.notif-btn .ico-svg { width: 20px; height: 20px; margin: auto; }
.wallet-quick-ico .ico-svg { width: 20px; height: 20px; }
.wallet-banner-ico .ico-svg { width: 18px; height: 18px; }
.upload-icon .ico-svg { width: 28px; height: 28px; }
.wallet-empty-ico .ico-svg,
.notif-empty-ico .ico-svg { width: 36px; height: 36px; margin: 0 auto 8px; opacity: .55; }
.notif-summary-ico .ico-svg { width: 24px; height: 24px; }
.notif-card-ico .ico-svg { width: 18px; height: 18px; }
.wallet-tx-ico .ico-svg,
.tx-receipt-ico .ico-svg { width: 18px; height: 18px; }
.bio-setup-btn .ico-svg { width: 28px; height: 28px; margin: 0 auto 6px; display: block; }
.btn-icon { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn-icon .ico-svg { width: 18px; height: 18px; }
html.standalone { background: var(--bg); }
.status-bar-fill {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--safe-t); min-height: 0;
  background: var(--bg);
  pointer-events: none;
}
.shell {
  max-width: 440px; margin: 0 auto; min-height: 100%;
  padding: calc(12px + var(--safe-t)) 16px calc(var(--nav-h) + var(--safe-b) + 16px);
}
.brand {
  font-family: var(--display); font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--text); margin: 8px 0 4px;
}
.brand-small {
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -.02em; color: var(--text);
}
.sub { color: var(--muted2); font-size: .88rem; margin: 0 0 16px; opacity: .85; }
h2 { font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; }
.muted { color: var(--muted2); font-size: .86rem; opacity: .9; }
  .card {
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--stroke); border-radius: var(--r); padding: 18px; margin-bottom: 12px;
  backdrop-filter: blur(20px); box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.hero-card {
  padding: 22px; margin-bottom: 16px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(147,51,234,.22), rgba(37,99,235,.1));
  border-color: rgba(147,51,234,.28);
}
.hero-card::after {
  content: ""; position: absolute; width: 140px; height: 140px; right: -30px; top: -30px;
  background: radial-gradient(circle, rgba(56,189,248,.18), transparent 70%); pointer-events: none;
}
input, select, button {
  font: inherit; width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--stroke); background: rgba(0,0,0,.35); color: var(--text); margin-bottom: 10px;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(147,51,234,.22); }
.pass-wrap { position: relative; margin-bottom: 10px; }
.pass-wrap input { margin-bottom: 0; padding-right: 48px; }
.pass-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: auto; margin: 0; padding: 6px 8px; background: transparent;
  border: none; color: var(--muted2); font-size: 1rem; cursor: pointer;
  line-height: 1; box-shadow: none;
}
.pass-toggle:active { transform: translateY(-50%) scale(.95); }
.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none;
  font-weight: 700; cursor: pointer; color: #fff; margin-bottom: 0;
  box-shadow: 0 4px 20px rgba(147,51,234,.32); transition: transform .15s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-ghost { background: var(--glass); border: 1px solid var(--stroke); color: var(--text); box-shadow: none; }
.btn-danger { background: rgba(251,113,133,.15); border: 1px solid rgba(251,113,133,.35); color: var(--bad); box-shadow: none; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; background: rgba(0,0,0,.25); padding: 4px; border-radius: 14px; }
.tabs button { flex: 1; margin: 0; padding: 10px 6px; font-size: .78rem; font-weight: 600;
  background: transparent; border: none; color: var(--muted2); border-radius: 10px; }
.tabs button.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat {
  padding: 14px; border-radius: 16px; background: rgba(0,0,0,.2); border: 1px solid var(--stroke);
  text-align: center;
}
.stat .lbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted2); margin-bottom: 4px; }
.stat .val { font-family: var(--display); font-size: 1.35rem; font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge.ok { background: rgba(74,222,128,.15); color: var(--ok); }
.badge.warn { background: rgba(251,191,36,.15); color: var(--warn); }
.badge.bad { background: rgba(251,113,133,.15); color: var(--bad); }
.err { color: var(--bad); font-size: .88rem; margin-bottom: 10px; padding: 10px; background: rgba(251,113,133,.1); border-radius: 10px; }
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--nav-h) + var(--safe-b));
  padding: 8px 12px calc(8px + var(--safe-b)); display: flex; gap: 4px;
  background: rgba(10,6,18,.92); border-top: 1px solid var(--stroke); backdrop-filter: blur(24px);
  max-width: 440px; margin: 0 auto;
}
.nav button {
  flex: 1; margin: 0; padding: 6px 2px; font-size: .58rem; font-weight: 600;
  background: transparent; border: none; color: var(--muted2); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.nav button .ico { font-size: 1.25rem; line-height: 1; opacity: .7; }
.nav button.active { color: var(--cyan); }
.nav button.active .ico { opacity: 1; filter: drop-shadow(0 0 8px rgba(34,211,238,.5)); }
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 10px;
}
.brand-small {
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  background: linear-gradient(135deg, #fff 30%, var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tier-badge {
  margin: 0; padding: 4px 10px; border-radius: 999px; flex-shrink: 0;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(135deg, rgba(147,51,234,.28), rgba(56,189,248,.18));
  border: 1px solid rgba(147,51,234,.4); color: #fff; box-shadow: none;
}
.tier-badge:active { transform: scale(.96); opacity: .9; }
.plan-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.plan-card {
  padding: 14px; border-radius: 16px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--stroke);
  transition: border-color .2s, background .2s;
}
.plan-card.selected {
  border-color: rgba(168,85,247,.55);
  background: linear-gradient(145deg, rgba(168,85,247,.14), rgba(255,255,255,.04));
}
.plan-card h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; }
.plan-card .plan-price { margin: 8px 0 2px; font-size: 1.15rem; font-weight: 800; color: var(--cyan); }
.plan-card ul { margin: 8px 0 0; padding-left: 18px; font-size: .78rem; color: var(--muted2); }
.modal-overlay {
  position: fixed; inset: 0; z-index: 180; background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
}
.modal-sheet {
  width: 100%; max-width: 440px; max-height: 85vh; overflow-y: auto;
  padding: 18px 16px calc(16px + var(--safe-b)); border-radius: 20px 20px 0 0;
  background: var(--bg); border: 1px solid var(--stroke);
}
.modal-close {
  float: right; width: 36px; height: 36px; margin: 0 0 8px; padding: 0;
  border-radius: 10px; border: 1px solid var(--stroke); background: rgba(255,255,255,.05);
  color: var(--muted2); box-shadow: none;
}
.notif-btn {
  position: relative; width: 44px; height: 44px; margin: 0; padding: 0;
  border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke);
  font-size: 1.2rem; line-height: 1; box-shadow: none; flex-shrink: 0;
  transition: background .2s, transform .15s;
}
.notif-btn:active { transform: scale(.94); background: rgba(168,85,247,.15); }
.notif-badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: linear-gradient(135deg, var(--bad), #e11d48);
  color: #fff; font-size: .62rem; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 2px 8px rgba(251,113,133,.45);
}
body.notif-open { overflow: hidden; }
.notif-screen {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
  animation: notifFadeIn .22s ease;
}
.notif-detail-layer {
  position: absolute; inset: 0; z-index: 30;
  background: var(--bg);
  display: flex; flex-direction: column;
  animation: notifFadeIn .18s ease;
}
@keyframes notifFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.notif-screen-content {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
  max-width: 440px; width: 100%; margin: 0 auto;
  padding-top: calc(8px + var(--safe-t));
  padding-bottom: calc(12px + var(--safe-b));
  min-height: 0;
}
.notif-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 12px; flex-shrink: 0;
}
.notif-back-btn {
  width: 40px; height: 40px; margin: 0; padding: 0; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05); color: var(--text);
  font-size: 1.15rem; line-height: 1; box-shadow: none;
}
.notif-topbar-titles { flex: 1; min-width: 0; }
.notif-topbar-titles h1 {
  margin: 0; font-family: var(--display); font-size: 1.2rem; font-weight: 800;
  letter-spacing: -.02em;
}
.notif-topbar-titles p {
  margin: 2px 0 0; font-size: .78rem; color: var(--muted2); opacity: .85;
}
.notif-summary {
  margin: 0 16px 12px; padding: 14px 16px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(34,211,238,.08));
  border: 1px solid rgba(168,85,247,.25);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.notif-summary b { font-size: 1.5rem; font-weight: 800; font-family: var(--display); line-height: 1; }
.notif-summary span { font-size: .8rem; color: var(--muted2); display: block; margin-top: 2px; }
.notif-summary-ico {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  background: rgba(0,0,0,.2); border: 1px solid var(--stroke);
}
.notif-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0 16px; -webkit-overflow-scrolling: touch;
}
.notif-empty {
  text-align: center; padding: 48px 24px 32px;
}
.notif-empty-ico {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
}
.notif-empty h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.notif-empty p { margin: 0; font-size: .86rem; color: var(--muted2); line-height: 1.5; }
.notif-card-wrap {
  position: relative; overflow: hidden; margin-bottom: 10px; border-radius: 16px;
}
.notif-card-wrap.removing .notif-card { transform: translateX(-105%); opacity: 0; }
.notif-swipe-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 22px; background: linear-gradient(90deg, transparent 30%, rgba(251,113,133,.4));
  color: #fff; font-weight: 700; font-size: .82rem; pointer-events: none;
}
.notif-card {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  padding: 14px; border-radius: 16px; margin: 0; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--stroke);
  transition: transform .22s ease, opacity .22s ease, border-color .2s;
  touch-action: pan-y;
}
.notif-card:active { transform: scale(.985); }
.notif-card.unread {
  background: linear-gradient(145deg, rgba(168,85,247,.12), rgba(255,255,255,.04));
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 4px 20px rgba(168,85,247,.12);
}
.notif-card-ico {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.notif-card-ico.t-support { background: rgba(34,211,238,.15); border: 1px solid rgba(34,211,238,.25); }
.notif-card-ico.t-broadcast { background: rgba(168,85,247,.15); border: 1px solid rgba(168,85,247,.25); }
.notif-card-ico.t-wallet { background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.25); }
.notif-card-ico.t-vpn { background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.25); }
.notif-card-ico.t-default { background: rgba(255,255,255,.06); border: 1px solid var(--stroke); }
.notif-card-body { min-width: 0; }
.notif-card-title {
  display: flex; align-items: flex-start; gap: 6px; margin-bottom: 4px;
}
.notif-card-title b {
  flex: 1; font-size: .9rem; font-weight: 700; line-height: 1.35; color: var(--text);
}
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  box-shadow: 0 0 8px rgba(168,85,247,.6);
}
.notif-card-body p {
  margin: 0; font-size: .82rem; color: var(--muted2); line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.notif-card--long .notif-card-body p {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  white-space: normal;
}
.notif-card-more {
  display: block; margin-top: 6px; font-size: .72rem; font-weight: 600;
  color: var(--accent); opacity: .9; pointer-events: none;
}
.notif-detail-content {
  flex: 1; overflow: auto; max-width: 440px; width: 100%; margin: 0 auto;
  padding: calc(8px + var(--safe-t)) 16px calc(24px + var(--safe-b));
  display: flex; flex-direction: column;
}
.notif-detail-card {
  flex: 1; border-radius: 20px; padding: 22px 18px; margin-top: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
}
.notif-detail-ico {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.notif-detail-ico.t-support { background: rgba(34,211,238,.15); border: 1px solid rgba(34,211,238,.25); }
.notif-detail-ico.t-broadcast { background: rgba(168,85,247,.15); border: 1px solid rgba(168,85,247,.25); }
.notif-detail-ico.t-wallet { background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.25); }
.notif-detail-ico.t-vpn { background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.25); }
.notif-detail-ico.t-default { background: rgba(255,255,255,.06); border: 1px solid var(--stroke); }
.notif-detail-title {
  margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; line-height: 1.35;
  font-family: var(--display); color: var(--text);
}
.notif-detail-body {
  font-size: .92rem; line-height: 1.6; color: var(--muted2); word-break: break-word;
}
.notif-detail-actions {
  flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 16px;
}
.notif-detail-actions .btn { margin: 0; width: 100%; }
.notif-card-time {
  display: block; margin-top: 8px; font-size: .7rem; color: var(--muted); opacity: .9;
}
.notif-card-del {
  width: 32px; height: 32px; margin: 0; padding: 0; flex-shrink: 0;
  border: none; border-radius: 10px; background: rgba(255,255,255,.05);
  color: var(--muted2); font-size: .9rem; line-height: 1; box-shadow: none;
}
.notif-card-del:active { background: rgba(251,113,133,.2); color: var(--bad); }
.notif-actions {
  flex-shrink: 0; display: flex; gap: 10px; padding: 12px 16px 0;
  border-top: 1px solid var(--stroke); margin-top: 8px;
}
.notif-actions button {
  flex: 1; margin: 0; padding: 13px 12px; font-size: .82rem; font-weight: 600;
  border-radius: 14px;
}
.nav .nav-badge {
  position: absolute; top: 2px; right: 8px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff;
  font-size: .58rem; font-weight: 800; line-height: 16px; text-align: center;
}
.nav button { position: relative; }
.support-page { display: flex; flex-direction: column; min-height: calc(100dvh - var(--nav-h) - var(--safe-b) - 120px); }
.support-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.support-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.support-msgs {
  flex: 1; overflow-y: auto; padding: 8px 4px 12px; display: flex; flex-direction: column; gap: 8px;
  min-height: 240px; max-height: calc(100dvh - var(--nav-h) - var(--safe-b) - 220px);
}
.support-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.45;
  word-break: break-word; animation: fadeIn .2s;
}
.support-msg--user {
  align-self: flex-end; background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-bottom-right-radius: 4px; color: #fff;
}
.support-msg--admin {
  align-self: flex-start; background: rgba(255,255,255,.08); border: 1px solid var(--stroke);
  border-bottom-left-radius: 4px;
}
.support-msg-meta { font-size: .65rem; opacity: .7; margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.support-typing { font-size: .78rem; color: var(--muted2); font-style: italic; min-height: 18px; padding: 0 4px 6px; }
.support-input-bar {
  display: flex; gap: 8px; padding: 10px 0 0; border-top: 1px solid var(--stroke); margin-top: auto;
}
.support-input-bar input {
  flex: 1; margin: 0; padding: 12px 14px; border-radius: 14px;
}
.support-input-bar .btn { width: auto; margin: 0; padding: 12px 16px; flex-shrink: 0; }
.support-empty { text-align: center; padding: 32px 16px; color: var(--muted2); font-size: .88rem; }
.hidden { display: none !important; }
.pkg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pkg {
  padding: 16px 10px; text-align: center; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--stroke); background: rgba(0,0,0,.25); transition: border-color .15s, transform .15s;
}
.pkg:hover, .pkg:active { border-color: var(--accent); transform: scale(1.02); }
.pkg b { font-family: var(--display); font-size: 1.4rem; display: block; }
.pkg small { color: var(--muted2); font-size: .75rem; }
ul.tx { list-style: none; padding: 0; margin: 0; }
ul.tx li { padding: 12px 0; border-bottom: 1px solid var(--stroke); display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; align-items: flex-start; }
ul.tx li .tx-meta { flex: 1; min-width: 0; }
ul.tx li .tx-meta span { display: block; font-size: .75rem; color: var(--muted2); margin-top: 3px; }
ul.tx li b { white-space: nowrap; }

/* —— Wallet (bank-style) —— */
.wallet-page { display: flex; flex-direction: column; gap: 14px; }
.wallet-card {
  position: relative; border-radius: 22px; padding: 22px 20px 18px; overflow: hidden;
  background: linear-gradient(135deg, #1a1030 0%, #2d1b69 42%, #4c1d95 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
  color: #fff;
}
.wallet-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(34,211,238,.22), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(236,72,153,.18), transparent 45%);
}
.wallet-card::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -80px;
  border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none;
}
.wallet-card > * { position: relative; z-index: 1; }
.wallet-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.wallet-card-brand { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.wallet-card-chip {
  width: 38px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, #fde68a, #d97706);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.35), 0 2px 8px rgba(0,0,0,.25);
}
.wallet-card-label { display: block; font-size: .78rem; opacity: .72; margin-bottom: 4px; }
.wallet-card-amount {
  font-family: var(--display); font-size: 2.35rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.wallet-card-amount small { font-size: .95rem; font-weight: 600; opacity: .65; margin-left: 6px; }
.wallet-card-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1);
}
.wallet-card-id { font-size: .78rem; opacity: .8; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.wallet-card-meta { text-align: right; font-size: .74rem; opacity: .85; line-height: 1.35; }
.wallet-card-meta b { display: block; font-size: .88rem; font-weight: 700; }

.wallet-quick {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.wallet-quick-btn {
  margin: 0; padding: 12px 4px 10px; border: none; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--stroke);
  color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .62rem; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.wallet-quick-btn:active { transform: scale(.96); }
.wallet-quick-btn.active {
  background: rgba(168,85,247,.18); border-color: rgba(168,85,247,.45);
  color: #fff;
}
.wallet-quick-ico {
  width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08);
}
.wallet-quick-btn.active .wallet-quick-ico {
  background: linear-gradient(135deg, rgba(168,85,247,.45), rgba(236,72,153,.25));
  border-color: rgba(255,255,255,.15);
}

.wallet-banner {
  padding: 12px 14px; border-radius: 14px; display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--stroke);
}
.wallet-banner.ok { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.22); }
.wallet-banner.warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.22); }
.wallet-banner-ico { font-size: 1.1rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.wallet-banner-text { flex: 1; min-width: 0; font-size: .82rem; line-height: 1.45; color: var(--muted2); }
.wallet-banner-text b { color: var(--text); font-weight: 700; }
.wallet-banner-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: .86rem;
}

.wallet-panel {
  border-radius: 18px; padding: 16px; margin: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
  animation: walletPanelIn .2s ease;
}
@keyframes walletPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wallet-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px;
}
.wallet-panel-head h3 { margin: 0; font-size: 1rem; font-weight: 700; font-family: var(--display); }
.wallet-panel-close {
  width: 32px; height: 32px; margin: 0; padding: 0; border-radius: 10px;
  border: 1px solid var(--stroke); background: rgba(255,255,255,.05); color: var(--muted2);
  font-size: 1rem; line-height: 1; box-shadow: none; flex-shrink: 0;
}
.wallet-receive-id {
  text-align: center; padding: 18px 12px 14px; border-radius: 14px;
  background: rgba(0,0,0,.22); border: 1px dashed rgba(168,85,247,.35);
}
.wallet-receive-id label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted2); margin-bottom: 8px; }
.wallet-receive-id code {
  display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 800;
  letter-spacing: .18em; font-variant-numeric: tabular-nums; margin-bottom: 12px;
}
.wallet-form-row { margin-bottom: 10px; }
.wallet-form-row label { display: block; font-size: .72rem; color: var(--muted2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.wallet-form-row input { margin-bottom: 0; background: rgba(0,0,0,.28); border-radius: 12px; padding: 13px 14px; }
.wallet-form-row input:focus { border-color: rgba(168,85,247,.55); }

.wallet-section {
  border-radius: 18px; padding: 16px; background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
}
.wallet-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px;
}
.wallet-section-head h3 { margin: 0; font-size: .95rem; font-weight: 700; }
.wallet-link-btn {
  margin: 0; padding: 0; border: none; background: none; color: var(--cyan);
  font-size: .78rem; font-weight: 600; cursor: pointer; box-shadow: none; width: auto;
}

.wallet-tx-list { list-style: none; padding: 0; margin: 0; }
.wallet-tx {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.wallet-tx:last-child { border-bottom: none; padding-bottom: 0; }
.wallet-tx:first-child { padding-top: 0; }
.wallet-tx-ico {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--stroke);
}
.wallet-tx-ico.in { background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.22); }
.wallet-tx-ico.out { background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.22); }
.wallet-tx-ico.vpn { background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.25); }
.wallet-tx-body { flex: 1; min-width: 0; }
.wallet-tx-title {
  font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wallet-tx-time { font-size: .72rem; color: var(--muted2); margin-top: 2px; }
.wallet-tx-amt {
  font-family: var(--display); font-size: .95rem; font-weight: 800; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.wallet-tx-amt.in { color: var(--ok); }
.wallet-tx-amt.out { color: var(--bad); }
.wallet-tx-btn {
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  padding: 0; margin: 0; color: inherit; font: inherit;
  border-radius: 12px; transition: background .15s;
  display: flex; align-items: center; gap: 12px;
}
.wallet-tx-btn:active { background: rgba(255,255,255,.04); }
.wallet-tx-chevron {
  color: var(--muted2); font-size: .9rem; opacity: .5; flex-shrink: 0; align-self: center;
}

.tx-receipt-screen {
  position: fixed; inset: 0; z-index: 89; background: var(--bg);
  display: flex; flex-direction: column; animation: notifFadeIn .22s ease;
}
.tx-receipt-content {
  flex: 1; overflow: auto; max-width: 440px; width: 100%; margin: 0 auto;
  padding: calc(8px + var(--safe-t)) 16px calc(24px + var(--safe-b));
}
body.tx-receipt-open { overflow: hidden; }
.tx-receipt-card {
  border-radius: 20px; padding: 22px 18px; margin-top: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
}
.tx-receipt-head { text-align: center; padding: 8px 0 18px; border-bottom: 1px dashed rgba(255,255,255,.12); margin-bottom: 16px; }
.tx-receipt-head .tx-receipt-ico {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: rgba(255,255,255,.06); border: 1px solid var(--stroke);
}
.tx-receipt-head .tx-receipt-ico.in { background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.25); }
.tx-receipt-head .tx-receipt-ico.out { background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.25); }
.tx-receipt-head .tx-receipt-ico.vpn { background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.25); }
.tx-receipt-type { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted2); margin-bottom: 6px; }
.tx-receipt-amt {
  font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
}
.tx-receipt-amt.in { color: var(--ok); }
.tx-receipt-amt.out { color: var(--bad); }
.tx-receipt-rub { font-size: .88rem; color: var(--muted2); margin-top: 4px; }
.tx-receipt-rows { display: flex; flex-direction: column; gap: 12px; }
.tx-receipt-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  font-size: .86rem;
}
.tx-receipt-row span:first-child { color: var(--muted2); flex-shrink: 0; }
.tx-receipt-row b { text-align: right; font-weight: 600; word-break: break-word; }
.tx-receipt-id {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: .72rem; color: var(--muted2); text-align: center; font-variant-numeric: tabular-nums;
}
.wallet-empty {
  text-align: center; padding: 28px 16px; color: var(--muted2); font-size: .86rem; line-height: 1.5;
}
.wallet-empty-ico { font-size: 2rem; margin-bottom: 8px; opacity: .6; }

.wallet-history-screen {
  position: fixed; inset: 0; z-index: 88; background: var(--bg);
  display: flex; flex-direction: column; animation: notifFadeIn .22s ease;
}
.wallet-history-content {
  flex: 1; overflow: auto; max-width: 440px; width: 100%; margin: 0 auto;
  padding: calc(8px + var(--safe-t)) 16px calc(24px + var(--safe-b));
}
body.wallet-history-open { overflow: hidden; }
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 99;
  padding: 12px 20px; border-radius: 12px; background: rgba(74,222,128,.2); border: 1px solid var(--ok);
  color: var(--ok); font-weight: 600; font-size: .9rem; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } }
.ring { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); margin-bottom: 10px; }

.upload-zone {
  position: relative; display: block; margin-bottom: 8px; border-radius: 18px; cursor: pointer;
  border: 2px dashed rgba(168,85,247,.45);
  background: linear-gradient(160deg, rgba(168,85,247,.12), rgba(34,211,238,.06));
  padding: 28px 16px; text-align: center; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.upload-zone:hover, .upload-zone:focus-within {
  border-color: rgba(34,211,238,.7);
  background: linear-gradient(160deg, rgba(168,85,247,.18), rgba(236,72,153,.1));
  box-shadow: 0 0 24px rgba(168,85,247,.2);
}
.upload-zone.dragover {
  border-color: var(--cyan); border-style: solid;
  transform: scale(1.01);
  box-shadow: 0 0 32px rgba(34,211,238,.25);
}
.upload-zone.done {
  border-color: rgba(74,222,128,.55); border-style: solid;
  background: linear-gradient(160deg, rgba(74,222,128,.12), rgba(168,85,247,.08));
}
.upload-wrap { position: relative; margin-bottom: 12px; }
.upload-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; opacity: 0;
}
.upload-body { pointer-events: none; }
.upload-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.upload-zone.done .upload-icon { background: rgba(74,222,128,.15); }
.upload-title { font-family: var(--display); font-weight: 700; font-size: 1rem; margin: 0 0 4px; }
.upload-hint { color: var(--muted2); font-size: .8rem; margin: 0; line-height: 1.4; }
.upload-filename {
  margin-top: 10px; padding: 8px 12px; border-radius: 10px; display: inline-block;
  background: rgba(0,0,0,.3); font-size: .78rem; color: var(--cyan);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upload-spinner {
  width: 28px; height: 28px; margin: 8px auto; border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--cyan); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ovpn-preview-card {
  margin: 12px 0; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(74,222,128,.12), rgba(34,211,238,.08));
  border: 1px solid rgba(74,222,128,.35);
}
.ovpn-preview-card code {
  background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 6px; font-size: .85rem; color: var(--cyan);
}
.btn-pick { margin-top: 0; font-size: .92rem; }
.profile-kv { display: grid; gap: 8px; margin: 12px 0 0; text-align: left; }
.profile-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px;
  border-radius: 12px; background: rgba(0,0,0,.2); border: 1px solid var(--stroke); font-size: .88rem; }
.profile-kv span { color: var(--muted2); }
.profile-kv b { font-weight: 600; text-align: right; word-break: break-all; }
.section-hint { color: var(--muted2); font-size: .82rem; margin: 0 0 10px; }
.form-sep { border: none; border-top: 1px solid var(--stroke); margin: 14px 0; }
.autofill-trap { position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.install-banner ol { margin: 8px 0 0; padding-left: 18px; text-align: left; font-size: .84rem; line-height: 1.5; }
.card.install-banner {
  background: linear-gradient(135deg, rgba(168,85,247,.22), rgba(34,211,238,.1));
  border-color: rgba(168,85,247,.4);
}
.card.net-help {
  background: linear-gradient(135deg, rgba(251,113,133,.18), rgba(251,191,36,.1));
  border-color: rgba(251,113,133,.35);
}
.net-help .btn-row { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.net-help .btn-row .btn { margin: 0; }
@media (display-mode: standalone), (display-mode: fullscreen) {
  .browser-only { display: none !important; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.45; min-height: 100dvh;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(168,85,247,.35), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(236,72,153,.15), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(34,211,238,.08), transparent 40%);
  background-attachment: fixed;
}
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-row .lbl { font-weight: 600; }
.switch {
  width: 52px; height: 30px; border-radius: 999px; padding: 3px; margin: 0;
  background: rgba(255,255,255,.15); border: 1px solid var(--stroke); cursor: pointer;
  transition: background .2s; flex-shrink: 0;
}
.switch.on { background: linear-gradient(135deg, var(--accent), #7c3aed); }
.switch i {
  display: block; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.switch.on i { transform: translateX(22px); }
@media (max-width: 480px) {
  .upload-title-desktop { display: none; }
  .upload-title-mobile { display: block; }
}
@media (min-width: 481px) {
  .upload-title-desktop { display: block; }
  .upload-title-mobile { display: none; }
}
.lock-screen {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: calc(24px + var(--safe-t)) 24px calc(24px + var(--safe-b));
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(168,85,247,.35), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(236,72,153,.15), transparent 45%);
}
.lock-screen.shake { animation: lockShake .4s ease; }
@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.lock-brand { font-family: var(--display); font-size: 1.8rem; font-weight: 800; margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 30%, var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.lock-sub { color: var(--muted2); font-size: .88rem; margin: 0 0 28px; text-align: center; }
.lock-dots { display: flex; gap: 14px; margin-bottom: 28px; }
.lock-dot {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25);
  background: transparent; transition: background .15s, border-color .15s, transform .15s;
}
.lock-dot.filled { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.lock-err { color: var(--bad); font-size: .82rem; min-height: 20px; margin-bottom: 8px; text-align: center; }
.lock-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(280px, 100%); }
.lock-pad button {
  width: 100%; height: 58px; margin: 0; padding: 0; border-radius: 50%;
  font-size: 1.35rem; font-weight: 600; background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke); color: var(--text); box-shadow: none;
}
.lock-pad button:active { transform: scale(.94); background: rgba(168,85,247,.2); }
.lock-pad .pad-empty { visibility: hidden; pointer-events: none; }
.lock-pad .pad-action { font-size: .95rem; border-radius: 18px; }
.lock-bio-btn {
  width: auto; margin: 20px 0 0; padding: 12px 24px; border-radius: 14px;
  background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.35); color: var(--cyan);
  font-size: .9rem; box-shadow: none;
}
.lock-footer { margin-top: auto; padding-top: 20px; }
.lock-footer button {
  width: auto; margin: 0; padding: 8px 12px; background: transparent; border: none;
  color: var(--muted2); font-size: .82rem; box-shadow: none; text-decoration: underline;
}
.pin-modal {
  position: fixed; inset: 0; z-index: 210; display: flex; align-items: flex-end; justify-content: center;
}
.pin-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
}
.pin-modal-sheet {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  padding: 20px 20px calc(20px + var(--safe-b)); border-radius: 24px 24px 0 0;
  background: rgba(14,10,22,.98); border: 1px solid var(--stroke); border-bottom: none;
  animation: pinSlideUp .28s ease;
}
.pin-modal-sheet.shake { animation: lockShake .4s ease; }
.pin-modal-sheet h3 { margin: 0 0 4px; font-family: var(--display); font-size: 1.1rem; text-align: center; }
.pin-modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; margin: 0; padding: 0;
  border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke);
  color: var(--muted2); font-size: 1rem; box-shadow: none;
}
.pin-modal-done {
  width: 100%; margin: 12px 0 0; padding: 14px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none;
  color: #fff; font-weight: 700; font-size: .95rem;
}
.pin-modal-done:disabled { opacity: .35; }
.bio-setup-btn {
  width: 100%; margin-top: 12px; padding: 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(168,85,247,.15));
  border: 1px solid rgba(34,211,238,.4); color: var(--text); font-size: 1rem; font-weight: 700;
  box-shadow: none;
}
.bio-setup-btn .ico { font-size: 1.5rem; display: block; margin-bottom: 6px; }
