* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #060910;
  --bg-2: #0b1220;
  --card: rgba(14, 20, 34, 0.78);
  --line: rgba(245, 197, 66, 0.2);
  --gold: #f5c542;
  --gold-2: #ffe7a3;
  --green: #1ad598;
  --red: #ff5d73;
  --text: #f4f7fb;
  --muted: #93a0b5;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

html, body {
  min-height: 100%;
  min-height: 100dvh;
}

input, select, textarea {
  font-size: 16px;
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
}

body {
  font-family: "DM Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(245, 197, 66, 0.16), transparent 58%),
    radial-gradient(700px 420px at 100% 8%, rgba(26, 213, 152, 0.09), transparent 52%),
    radial-gradient(600px 360px at 70% 110%, rgba(90, 130, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #060910 48%, #080d16 100%);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 12px 10px 14px;
  border-radius: 18px;
  background: rgba(10, 16, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 12px;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), transparent 42%),
    linear-gradient(135deg, #ffe08a, #f0b90b 45%, #a67c00);
  display: grid;
  place-items: center;
  color: #1a1200;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 1px rgba(255, 224, 138, 0.35), 0 8px 22px rgba(240, 185, 11, 0.35);
}

.nav-links {
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.lang-wrap { position: relative; z-index: 120; }
.lang-btn {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold-2);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0d1322;
  box-shadow: var(--shadow);
  z-index: 200;
}
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu.open { display: block; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.lang-menu button:hover { background: rgba(240, 185, 11, 0.1); }
.lang-menu button.active { color: var(--gold); font-weight: 700; }
@media (max-width: 900px) {
  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    row-gap: 10px;
    max-width: min(100%, 220px);
  }
  .nav-actions .btn,
  .nav-actions .user-chip {
    order: 1;
  }
  .lang-wrap {
    position: relative;
    order: 2;
    flex: 0 0 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
    z-index: 120;
  }
  html[dir="rtl"] .lang-wrap {
    justify-content: flex-start;
  }
  .lang-menu.open {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
  }
  html[dir="rtl"] .lang-menu.open {
    right: auto;
    left: 0;
  }
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-gold {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 38%),
    linear-gradient(180deg, #ffe07a, #f0b90b 55%, #d7a008);
  color: #1a1200;
  box-shadow: 0 10px 28px rgba(240, 185, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 28px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: 8%;
  top: 10%;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.16), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid rgba(245, 197, 66, 0.22);
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero p.lead {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 560px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.trust {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
}

.trust > div {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trust b {
  color: var(--text);
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.market-panel {
  border-color: rgba(245, 197, 66, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(245, 197, 66, 0.05);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.live-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(26, 213, 152, 0.16);
  animation: pulse 1.6s ease-in-out infinite;
}

.clock {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.pair-head,
.pair-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(72px, 1fr) auto;
  column-gap: 10px;
  align-items: center;
}

.pair-head {
  padding: 8px 10px 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pair-row {
  padding: 11px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.pair-row:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.05);
}

.pair-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.pair-name span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pair-head span:nth-child(2),
.pair-row .mono {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pair-head span:last-child {
  justify-self: end;
}

.coin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #081018;
  background: radial-gradient(circle at 30% 30%, #fff, var(--c));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 28%, transparent);
}

.chg {
  justify-self: end;
  min-width: 72px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.up { color: var(--green); }
.down { color: var(--red); }
.chg.up { background: rgba(26, 213, 152, 0.12); }
.chg.down { background: rgba(255, 93, 115, 0.12); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

html.novax-gated body > :not(#novax-safari-gate) {
  pointer-events: none;
  user-select: none;
}
#novax-safari-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 12, 0.94);
  backdrop-filter: blur(6px);
}
.safari-gate-card {
  width: min(420px, 100%);
  padding: 28px 22px;
  border-radius: 22px;
  text-align: center;
  border: 1px solid rgba(240, 185, 11, 0.35);
  background: linear-gradient(180deg, #141b2c, #0d1322);
  box-shadow: var(--shadow);
}
.safari-gate-mark {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  color: #1a1200;
  background: linear-gradient(135deg, #5ac8fa, #007aff);
}
.safari-gate-card h1 {
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.35;
}
.safari-gate-lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.safari-gate-wechat {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
  color: var(--gold-2);
}
.safari-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.safari-gate-tip {
  margin-top: 14px;
  min-height: 1.2em;
  font-size: 13px;
  color: var(--green);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ticker {
  margin: 22px 0 4px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.ticker-track {
  display: flex;
  gap: 36px;
  padding: 12px 0;
  white-space: nowrap;
  animation: slide 28s linear infinite;
  color: var(--muted);
  font-size: 13px;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section { padding: 56px 0 28px; }
.section h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.section .sub { color: var(--muted); margin-bottom: 22px; max-width: 560px; line-height: 1.7; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%),
    rgba(12, 18, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 197, 66, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.card h3 { margin: 12px 0 8px; letter-spacing: -0.02em; }
.card p { color: var(--muted); line-height: 1.75; font-size: 14px; }

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.2), rgba(245, 197, 66, 0.08));
  color: var(--gold-2);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(245, 197, 66, 0.18);
}

.cta-band {
  margin: 28px 0 48px;
  padding: 34px 32px;
  border-radius: 26px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(245, 197, 66, 0.22), transparent 60%),
    linear-gradient(120deg, rgba(245, 197, 66, 0.14), rgba(26, 213, 152, 0.06)),
    rgba(12, 18, 32, 0.92);
  border: 1px solid rgba(245, 197, 66, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.cta-band h2 { letter-spacing: -0.03em; }

footer {
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.auth-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.auth-page::before {
  width: 340px;
  height: 340px;
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.2), transparent 68%);
}

.auth-page::after {
  width: 280px;
  height: 280px;
  right: -40px;
  bottom: -40px;
  background: radial-gradient(circle, rgba(26, 213, 152, 0.12), transparent 68%);
}

.auth-home-btn {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 24, 40, 0.85);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.auth-home-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.auth-home-btn:active {
  transform: scale(0.96);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 26%),
    rgba(12, 18, 32, 0.88);
  border: 1px solid rgba(245, 197, 66, 0.2);
  border-radius: 24px;
  padding: 34px 28px 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.auth-card h1 { font-size: 28px; margin: 10px 0 8px; }
.auth-card p { color: var(--muted); margin-bottom: 22px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }

input, select {
  width: 100%;
  background: rgba(6, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus, select:focus {
  border-color: rgba(245, 197, 66, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.12);
}
select option { background: #0b1220; }

.full { width: 100%; margin-top: 18px; }
.hint { margin-top: 16px; color: var(--muted); font-size: 13px; text-align: center; }
.hint a { color: var(--gold); }
.error {
  display: none;
  margin-top: 12px;
  color: var(--red);
  font-size: 13px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.72);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  place-items: center;
  place-content: center;
  align-items: center;
  justify-items: center;
  padding: 20px;
}

.modal-mask.is-open {
  display: grid !important;
}

.modal {
  width: min(460px, 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(180deg, #161e30, #0c1220);
  border: 1px solid rgba(245, 197, 66, 0.32);
  border-radius: 26px;
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.08), 0 30px 80px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.modal::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 160px;
  background: radial-gradient(circle, rgba(240,185,11,0.25), transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-block;
  background: rgba(240,185,11,0.12);
  color: var(--gold);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.modal h2 { font-size: 28px; position: relative; }
.reward {
  margin: 18px 0 24px;
  font-size: 22px;
  color: var(--gold-2);
  font-weight: 800;
}
.reward span { color: var(--muted); font-size: 14px; font-weight: 500; display: block; margin-bottom: 6px; }

.modal-promo .popup-icon {
  margin: 0 auto 12px;
  filter: drop-shadow(0 8px 24px rgba(240, 185, 11, 0.35));
}
.popup-desc {
  position: relative;
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--text);
}
.popup-desc strong {
  color: var(--gold-2);
  font-size: 1.15em;
  font-weight: 900;
}
.popup-sub {
  font-size: 13px;
  margin-bottom: 22px;
}
.modal-sm { width: min(400px, 100%); }
.modal-install { width: min(380px, 100%); }
.install-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(240, 185, 11, 0.2);
  border-top-color: var(--gold);
  animation: install-spin 0.85s linear infinite;
}
@keyframes install-spin { to { transform: rotate(360deg); } }
.install-count {
  font-size: 42px;
  font-weight: 900;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
  margin: 8px 0 16px;
}
.install-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}
.install-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 0.35s ease;
}
.install-hint {
  font-size: 14px;
  color: var(--muted);
  min-height: 1.4em;
}
.install-hint.warn { color: #ffb4a2; font-weight: 600; }
.install-actions {
  display: none;
  margin-top: 18px;
  gap: 10px;
  flex-direction: column;
}
.hero-cta .btn-install {
  border: 1px solid rgba(240, 185, 11, 0.55);
  box-shadow: 0 0 24px rgba(240, 185, 11, 0.15);
}

.user-chip {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid rgba(245, 197, 66, 0.22);
}

.wallet-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 32px 4px 16px;
}
.wallet-hero h1 { letter-spacing: -0.03em; }
.uid-box {
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 16px;
}
.uid-box b { color: var(--gold-2); letter-spacing: 0.04em; }
.wallet-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(255, 224, 138, 0.28), transparent 55%),
    linear-gradient(135deg, rgba(245, 197, 66, 0.18), rgba(16, 24, 40, 0.92) 46%);
  border: 1px solid rgba(245, 197, 66, 0.28);
  border-radius: 24px;
  padding: 28px;
  margin: 8px 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.wallet-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 213, 152, 0.16), transparent 70%);
  pointer-events: none;
}
.wallet-label { color: var(--muted); font-size: 13px; }
.wallet-amount {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 800;
  margin: 8px 0 12px;
  color: var(--gold-2);
}
.wallet-sub {
  display: flex;
  gap: 22px;
  color: var(--muted);
  margin-bottom: 20px;
}
.wallet-sub b { color: var(--text); }
.wallet-actions { display: flex; gap: 12px; }
.wallet-actions .btn { min-width: 120px; }
.wallet-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wallet-table th, .wallet-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wallet-table th { color: var(--muted); }
.addr-cell { word-break: break-all; max-width: 220px; }
.wallet-modal { text-align: left; }
.wallet-modal h2 { text-align: center; }
.net-tabs { display: flex; gap: 8px; margin: 14px 0; }
.net-tab {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.net-tab.active {
  color: #1a1200;
  background: linear-gradient(180deg, #ffd54a, #f0b90b);
  border-color: transparent;
  font-weight: 700;
}
.addr-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.addr-box code { flex: 1; word-break: break-all; font-size: 12px; color: var(--gold-2); }
#deposit-mask, #withdraw-mask, #paypass-mask { display: none; }

.stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px 18px;
}
.wallet-table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.stat b { font-size: 22px; display: block; margin-top: 6px; }
.muted { color: var(--muted); }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 20px); }
  .nav { margin-top: 10px; padding: 10px; gap: 8px; top: 8px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 8px 10px; font-size: 13px; }
  .brand { letter-spacing: 0.04em; font-size: 15px; }
  .hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0 16px;
  }
  h1 { font-size: clamp(26px, 8vw, 36px); }
  .hero p.lead { font-size: 14px; margin: 12px 0 18px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .trust { flex-wrap: wrap; gap: 12px 18px; }
  .grid-3 { display: grid; grid-template-columns: 1fr; }
  .section { padding: 28px 0; }
  .section h2 { font-size: 22px; }
  .cta-band, footer, .wallet-hero { display: flex; flex-direction: column; align-items: stretch; }
  .cta-band { padding: 20px; }
  .cta-band .btn { width: 100%; text-align: center; }
  footer { gap: 8px; font-size: 12px; }
  .nav-links { display: none; }
  .wallet-table { display: block; overflow-x: auto; }
  .wallet-actions { flex-direction: column; }
  .wallet-actions .btn { width: 100%; min-width: 0; }
  .wallet-card { padding: 18px; }
  .wallet-amount { font-size: 34px; }
  .modal { padding: 22px 16px 16px; max-height: min(88dvh, 640px); overflow-y: auto; }
  .modal-mask {
    padding: 16px;
    place-items: center;
    place-content: center;
    align-items: center;
    justify-items: center;
  }
  .auth-page { padding: 16px; align-items: stretch; }
  .auth-card { padding: 22px 16px; border-radius: 16px; }
  .pair-head, .pair-row { grid-template-columns: minmax(0, 1.3fr) minmax(64px, 0.9fr) auto; font-size: 13px; column-gap: 6px; }
  .coin { width: 24px; height: 24px; font-size: 11px; }
  .chg { min-width: 64px; padding: 3px 6px; }
  .ticker-track { font-size: 12px; }
}
