/* STOCKZ: light gray canvas, white surfaces, black ink. Geist + Geist Mono. */
:root {
  --bg: #f1f2f4;
  --card: #ffffff;
  --soft: #f7f8f9;
  --soft-2: #eef0f2;
  --ink: #0b0c0e;
  --ink-2: #33373d;
  --muted: #6c727c;
  --faint: #9aa0a9;
  --line: #e3e5e9;
  --line-2: #edeef1;
  --green: #11975a;
  --green-bg: #e8f6ee;
  --amber: #b4690e;
  --amber-bg: #fdf3e2;
  --red: #c4302b;
  --r: 22px;
  --r2: 14px;
  --r3: 10px;
  --shadow: 0 1px 2px rgba(16, 20, 28, .04), 0 10px 40px rgba(16, 20, 28, .06);
  --shadow-2: 0 2px 4px rgba(16, 20, 28, .05), 0 22px 60px rgba(16, 20, 28, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.35, .5, 1);
  --side: 252px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #c9ccd2 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cfd2d8; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b7bbc3; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
::selection { background: #dfe7f5; }

/* ---------------------------------------------------------------- shell */
.app { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: var(--side); flex: none; background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px 16px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 12px 22px; font-weight: 650; font-size: 21px; letter-spacing: -.035em; }
.brand .mark { height: 30px; width: auto; flex: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 999px; font-size: 17px; color: var(--ink-2);
  transition: background .15s var(--ease), color .15s; }
.nav a svg { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: var(--soft-2); color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 600; }
.nav a.on svg { stroke-width: 2.1; }
.side .launchbtn { margin: 18px 4px 0; }
.side .launchbtn svg { width: 20px; height: 20px; flex: none; margin-left: -4px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.wallet-card { border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 13px; background: var(--soft); font-size: 13px; }
.wallet-card .lbl { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.wallet-card .addr { font-family: var(--mono); font-size: 12.5px; margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.wallet-card .bal { font-family: var(--mono); font-size: 18px; font-weight: 500; margin-top: 6px; letter-spacing: -.02em; }
.wallet-card .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.side-links { display: flex; gap: 8px; padding: 0 4px; }
.side-links a { font-size: 13px; color: var(--muted); }
.side-links a:hover { color: var(--ink); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 28px; background: rgba(241, 242, 244, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top .mbrand { display: none; margin-right: auto; }
.top .live { margin-right: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.top .live b { color: var(--ink); font-weight: 500; font-family: var(--mono); }
.ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 2s var(--ease) infinite; }
.ping.off { background: var(--faint); }
.ping.off::after { display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(3); opacity: 0; } }
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 8px 28px 80px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-weight: 550; font-size: 15px; white-space: nowrap;
  transition: transform .12s var(--ease), box-shadow .15s var(--ease), background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16, 20, 28, .08); border-color: #d4d7dc; }
.btn:active { transform: translateY(0); }
.btn.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.ink:hover { background: #24272c; box-shadow: 0 8px 22px rgba(11, 12, 14, .22); }
.btn.lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: var(--soft-2); color: var(--ink-2); white-space: nowrap; }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.copy { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; border: 0; background: transparent;
  color: var(--muted); padding: 0; }
.copy:hover { background: var(--soft-2); color: var(--ink); }
.copy svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-size: 14px; opacity: 0; transition: .25s var(--ease); z-index: 100; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.alogo { width: 28px; height: 28px; border-radius: 50%; background: var(--soft-2) center/cover no-repeat; flex: none; border: 1px solid var(--line-2);
  object-fit: cover; }
.alogo.sm { width: 20px; height: 20px; }
.alogo.lg { width: 40px; height: 40px; }

h1, h2, h3 { margin: 0; letter-spacing: -.035em; font-weight: 600; }
.sec-h { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
.sec-p { color: var(--muted); font-size: 17px; max-width: 620px; margin: 12px 0 0; }
.lbl { font-size: 13px; color: var(--muted); }

/* wallet picker */
.wpick { position: fixed; inset: 0; background: rgba(11, 12, 14, .32); display: grid; place-items: center; z-index: 90; padding: 16px;
  animation: fade .2s var(--ease); }
.wpick-in { width: min(400px, 100%); background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-2); }
.wpick-in h3 { font-size: 20px; }
.wpick-in p { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.wpick .list { display: flex; flex-direction: column; gap: 6px; }
.wpick .list button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r2); border: 1px solid var(--line);
  background: var(--card); text-align: left; font-weight: 500; }
.wpick .list button:hover { background: var(--soft); }
.wpick .list img { width: 28px; height: 28px; border-radius: 8px; }
.wpick .nw { font-size: 14px; color: var(--muted); }
.wpick .nw a { color: var(--ink); text-decoration: underline; }
@keyframes fade { from { opacity: 0; } }
.walmenu { position: absolute; right: 28px; top: 58px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r2);
  box-shadow: var(--shadow-2); padding: 6px; display: none; min-width: 200px; }
.walmenu.open { display: block; }
.walmenu button, .walmenu a { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 9px; font-size: 14px; }
.walmenu button:hover, .walmenu a:hover { background: var(--soft); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 0 14px 10px; white-space: nowrap; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:hover td { background: var(--soft); }
.tbl .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.tbl th.num { text-align: right; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: 15px; }
.empty b { display: block; color: var(--ink); font-weight: 550; margin-bottom: 4px; }
.sig { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.sig:hover { color: var(--ink); border-color: var(--ink); }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 28px 28px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center;
  font-size: 13px; color: var(--muted); max-width: 1180px; width: 100%; margin-left: auto; margin-right: auto; }
.foot a:hover { color: var(--ink); }
.foot .sp { flex: 1; }

/* mobile tab bar */
.tabbar { display: none; }
@media (max-width: 1100px) {
  :root { --side: 84px; }
  .brand span, .nav a span, .side .launchbtn span, .side-foot { display: none; }
  .brand { justify-content: center; padding: 6px 0 22px; }
  .nav a { justify-content: center; padding: 12px; }
  .side .launchbtn { padding: 0; width: 46px; height: 46px; margin: 18px auto 0; }
  .side .launchbtn svg { margin-left: 0; }
}
@media (max-width: 720px) {
  .side { display: none; }
  .top { padding: 0 16px; }
  .top .mbrand { display: flex; padding: 0; font-size: 19px; }
  .top .live { display: none; }
  .top .btn.launch-top { display: none; }
  .page { padding: 4px 16px 96px; }
  .walmenu { right: 16px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 8px; }
  .tabbar a.on { color: var(--ink); font-weight: 600; }
  .tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .foot { padding: 20px 16px 100px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.wstatus { margin: 12px 2px 0; font-size: 13.5px; color: var(--muted); min-height: 0; }
.wstatus:empty { display: none; }
.wstatus.bad { color: var(--red); }
.wpick .list button.wait { border-color: var(--ink); background: var(--soft); }
.wpick .list button.wait::after { content: ""; margin-left: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.capill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-size: 14px; color: var(--ink); transition: transform .12s var(--ease), box-shadow .15s var(--ease), border-color .15s; }
.capill:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16, 20, 28, .08); border-color: #d4d7dc; }
.capill .lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.capill svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.8; }
.capill .short { display: none; }
@media (max-width: 720px) {
  .capill { height: 36px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
  .capill .full { display: none; }
  .capill .short { display: inline; }
}
@media (max-width: 720px) {
  .capill .lbl { display: none; }
  .top [data-connect] { height: 36px; padding: 0 13px; font-size: 13.5px; }
  .top { gap: 8px; }
}

.xbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); flex: none; transition: transform .12s var(--ease), box-shadow .15s var(--ease), border-color .15s; }
.xbtn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16, 20, 28, .08); border-color: #d4d7dc; }
.xbtn svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 720px) { .xbtn { width: 36px; height: 36px; } .xbtn svg { width: 14px; height: 14px; } }
@media (max-width: 720px) { .top [data-connect] .wl { display: none; } }
