:root {
  --bg: #050505;
  --panel: #0d0d0f;
  --panel-2: #141417;
  --line: #1f1f24;
  --text: #f4f4f5;
  --muted: #8a8a93;
  --accent: #e7e7ea;
  --green: #22c55e;
  --red: #ef4444;
  --glow: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1000px 600px at 50% 30%, rgba(57,255,20,0.06), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.muted { color: var(--muted); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(5,5,5,0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 2px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -0.02em; }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--text); color: var(--bg); margin-right: 4px; font-size: 18px; }
.links { display: flex; gap: 28px; }
.links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.links a:hover { color: var(--text); }

/* buttons */
.btn { font: inherit; font-weight: 600; font-size: 14px; border-radius: 10px; padding: 10px 18px; cursor: pointer; border: 1px solid var(--line); transition: transform .12s, background .2s, border-color .2s; }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: #3a3a42; background: var(--panel); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 24px rgba(255,255,255,0.25); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.tokenize-btn { display: inline-block; text-decoration: none; }

/* ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel); }
.ticker-track { display: flex; gap: 36px; padding: 9px 0; width: max-content; animation: scroll 60s linear infinite; font-family: var(--mono); font-size: 12.5px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; gap: 8px; align-items: center; white-space: nowrap; color: var(--muted); }
.ticker-item img { width: 18px; height: 18px; border-radius: 50%; }
.ticker-item b { color: var(--text); font-weight: 600; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* hero */
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.hero { text-align: center; padding: clamp(56px, 10vw, 110px) 0 56px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); background: var(--panel); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 { font-size: clamp(40px, 7.5vw, 84px); line-height: 1; letter-spacing: -0.045em; margin: 24px 0 18px; font-weight: 800; }
h1 .x { display: inline-block; background: linear-gradient(180deg, #fff, #6b6b74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { max-width: 600px; margin: 0 auto 34px; color: var(--muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.6; }

.tokenize { display: flex; align-items: center; max-width: 520px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 18px; box-shadow: 0 0 0 6px rgba(255,255,255,0.02), 0 20px 60px rgba(0,0,0,0.6); transition: border-color .2s; }
.tokenize:focus-within { border-color: #4a4a52; }
.at { color: var(--muted); font-size: 18px; font-weight: 600; }
.tokenize input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 17px; padding: 10px 6px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 14px; }
.hint a { color: var(--text); text-decoration: none; border-bottom: 1px dashed #555; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 640px; margin: 56px auto 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stats div { padding: 20px 12px; display: grid; gap: 4px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { font-family: var(--mono); font-size: clamp(18px, 3vw, 24px); }
.stats span { color: var(--muted); font-size: 12.5px; }

/* sections */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.03em; margin: 0 0 6px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head p { margin: 0; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; }
.controls input { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 14px; outline: none; min-width: 180px; }
.controls input:focus { border-color: #4a4a52; }
.tabs { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tab { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 7px; cursor: pointer; }
.tab.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.card { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer; transition: border-color .2s, transform .2s; overflow: hidden; }
.card:hover { border-color: #3a3a42; transform: translateY(-2px); }
.card .rank { position: absolute; top: 14px; right: 16px; font-family: var(--mono); font-size: 40px; font-weight: 600; color: rgba(255,255,255,0.06); }
.card .who { display: flex; gap: 12px; align-items: center; }
.card .meta { display: flex; justify-content: space-between; margin-top: 18px; font-family: var(--mono); font-size: 13px; }
.card .meta span { color: var(--muted); display: block; font-family: Inter, sans-serif; font-size: 11.5px; margin-bottom: 3px; }
.card canvas { width: 100%; height: 48px; margin-top: 14px; display: block; }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); flex-shrink: 0; }
.avatar.lg { width: 52px; height: 52px; }
.name { font-weight: 700; display: flex; align-items: center; gap: 5px; }
.handle { color: var(--muted); font-size: 13px; }
.verified { width: 15px; height: 15px; }
.tick { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }

/* table */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--panel); }
.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.board td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.board tr:last-child td { border-bottom: 0; }
.board tbody tr { cursor: pointer; transition: background .15s; }
.board tbody tr:hover { background: var(--panel-2); }
.board .num { text-align: right; font-family: var(--mono); }
.board .who { display: flex; gap: 12px; align-items: center; }
.board .rk { color: var(--muted); font-family: var(--mono); width: 36px; }
.up { color: var(--green); }
.down { color: var(--red); }
.bar { width: 90px; height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin-left: auto; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #6b6b74, #fff); border-radius: 99px; }
.flash-up { animation: fu .8s; }
.flash-down { animation: fd .8s; }
@keyframes fu { from { background: rgba(34,197,94,.18); } }
@keyframes fd { from { background: rgba(239,68,68,.18); } }
.empty { text-align: center; color: var(--muted); padding: 40px !important; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.step h3 { margin: 14px 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14.5px; }

/* faq */
.faq details { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 16px 20px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); line-height: 1.6; margin: 10px 0 0; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; max-width: 1120px; margin: 40px auto 0; padding: 28px clamp(16px, 4vw, 32px); border-top: 1px solid var(--line); font-size: 13px; }

/* modal */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal-inner { padding: 24px; display: grid; gap: 18px; }
.modal-head { display: flex; gap: 14px; align-items: center; }
.modal-head .x-close { margin-left: auto; align-self: flex-start; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.kv span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.kv b { font-family: var(--mono); font-weight: 600; }
.bio { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.chart { width: 100%; height: 110px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.trade { display: flex; gap: 8px; }
.trade input { flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; font-family: var(--mono); outline: none; }
.btn-buy { background: var(--green); border-color: var(--green); color: #04130a; }
.btn-sell { background: transparent; border-color: var(--red); color: var(--red); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s; z-index: 50; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 860px) {
  .links { display: none; }
  .podium, .steps { grid-template-columns: 1fr; }
  .hide-md { display: none; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .board th, .board td { padding: 12px 8px; }
  .board .rk { width: 24px; }
  .board .who { gap: 8px; }
  .board .avatar { width: 32px; height: 32px; }
  .board .name { font-size: 13.5px; max-width: 120px; }
  .board .handle { font-size: 12px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .board .handle .tick, .board .handle .sep { display: none; }
  .board .num { font-size: 12.5px; }
  .controls, .controls input { width: 100%; }
  .tabs { width: 100%; overflow-x: auto; }
  .stats div { padding: 16px 8px; }
}

/* ---------- launch page ---------- */
.links a.active { color: var(--text); }
.wallet { display: flex; gap: 8px; align-items: center; }
.chain-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 600; background: var(--panel); }
.chain-dot { width: 8px; height: 8px; border-radius: 50%; background: #c6f432; box-shadow: 0 0 8px #c6f432; }
.launch { max-width: 1120px; padding-top: 56px; }
.launch-title { font-size: clamp(32px, 5vw, 44px); margin: 0 0 12px; text-align: left; }
.launch-title .dim { color: #c7c7cc; }
.sub.left { text-align: left; margin: 0 0 28px; max-width: 680px; font-size: 15px; }
.launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.panel-head { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .22em; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.step-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--text); color: var(--bg); letter-spacing: 0; font-weight: 700; }
.seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.seg-btn { flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.seg-btn.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px #2a2a30; }
.x-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 800; }
.note { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 6px 0; }
.fine { color: #6b6b74; font-size: 12px; line-height: 1.5; margin: 4px 0 0; }
.field-label { font-size: 13px; color: #b4b4bb; font-weight: 500; margin-top: 8px; }
.input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px; outline: none; resize: vertical; }
.input:focus { border-color: #4a4a52; }
.input.mono, .mono { font-family: var(--mono); }
.input.static { display: flex; align-items: center; gap: 8px; }
.eth-ico { color: #8b9cff; }
.input-at { display: flex; align-items: center; gap: 10px; }
.input-at span { color: var(--muted); }
.btn-block { width: 100%; padding: 13px; font-size: 15px; margin-top: 8px; }
.btn:disabled { opacity: .6; cursor: progress; }
.detected { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; display: grid; gap: 4px; }
.avatar-row { display: flex; gap: 16px; align-items: center; margin-top: 6px; }
.logo-preview { width: 80px; height: 80px; border-radius: 14px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); flex-shrink: 0; }
.avatar-actions label.btn { display: inline-block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.two > div { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 12px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--text); }
.model { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 4px 14px; margin-top: 8px; }
.model div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13px; }
.model div + div { border-top: 1px solid var(--line); }
.model span { color: var(--muted); }
.model b { font-family: var(--mono); font-weight: 600; text-align: right; }
.status { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; background: var(--panel-2); border: 1px solid var(--line); word-break: break-word; }
.status.ok { border-color: rgba(34,197,94,.4); }
.status.err { border-color: rgba(239,68,68,.45); color: #fca5a5; }
.status a { color: var(--text); }

@media (max-width: 860px) {
  .launch-grid { grid-template-columns: 1fr; }
  .chain-chip { display: none; }
}
@media (max-width: 480px) {
  .two { grid-template-columns: 1fr; }
}

.input[readonly] { color: #c7c7cc; background: var(--panel-2); cursor: not-allowed; }
.lock { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.fee-owner { display: flex; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.fee-owner img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* animated neon web background */
#web-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nav, .ticker, main, .footer, .toast { position: relative; z-index: 1; }
.nav { position: sticky; z-index: 20; }
.toast { position: fixed; z-index: 50; }
.ticker { background: rgba(13,13,15,0.8); backdrop-filter: blur(6px); }
.panel, .table-wrap, .card, .step, .faq details, .stats, .tokenize { background-color: rgba(13,13,15,0.82); backdrop-filter: blur(6px); }
.hero h1, .hero .sub, .hero .hint, .launch-title, .sub.left { text-shadow: 0 2px 18px #000, 0 0 6px #000; }
[hidden] { display: none !important; }

/* SPIDERPAD brand */
.brand { gap: 10px; }
.logo-mark { width: 36px; height: 36px; filter: drop-shadow(0 0 6px rgba(57,255,20,.55)); transition: transform .3s; }
.brand:hover .logo-mark { transform: translateY(2px) rotate(-6deg); }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: .08em; }
.wordmark span { color: #39ff14; text-shadow: 0 0 10px rgba(57,255,20,.6); }
.x-link { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; text-decoration: none; }
.x-link:hover { color: #39ff14; border-color: rgba(57,255,20,.5); box-shadow: 0 0 14px rgba(57,255,20,.25); }
.wallet .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .nav { gap: 10px; }
  .wordmark { font-size: 16px; }
  .logo-mark { width: 30px; height: 30px; }
  .wallet .btn:not(.x-link) { padding: 10px 12px; font-size: 13px; }
  .x-link { width: 38px; height: 38px; }
}

/* ---------- explore ---------- */
.explore { max-width: 1120px; padding-top: 56px; }
.explore-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.explore-head .sub.left { margin-bottom: 0; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.coin { background: rgba(13,13,15,0.82); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.coin:hover { border-color: rgba(57,255,20,.45); box-shadow: 0 0 24px rgba(57,255,20,.12); transform: translateY(-2px); }
.coin-top { display: flex; gap: 12px; align-items: center; }
.coin-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: var(--panel-2); flex-shrink: 0; }
.coin-id { min-width: 0; flex: 1; }
.coin-id .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-id .handle a { color: var(--muted); text-decoration: none; }
.coin-id .handle a:hover { color: #39ff14; }
.badge-grad { font-size: 11px; font-weight: 700; color: #39ff14; border: 1px solid rgba(57,255,20,.5); border-radius: 999px; padding: 3px 8px; }
.coin-desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coin-stats span { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 3px; }
.coin-stats b { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.coin-progress { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.coin-progress .bar { flex: 1; width: auto; margin: 0; }
.coin-progress .bar i { background: linear-gradient(90deg, #1a9e05, #39ff14); box-shadow: 0 0 8px rgba(57,255,20,.6); }
.coin-links { display: flex; justify-content: space-between; font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.coin-links a { color: var(--muted); text-decoration: none; font-family: var(--mono); }
.coin-links a:hover { color: #39ff14; }
.explore-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 20px; border: 1px dashed var(--line); border-radius: 16px; background: rgba(13,13,15,0.7); }
.explore-empty a { color: #39ff14; }

/* ---------- wallet picker ---------- */
.wallet-modal { background: rgba(10,12,10,.96); color: var(--text); border: 1px solid rgba(57,255,20,.3); border-radius: 18px; padding: 20px; width: min(400px, calc(100vw - 32px)); box-shadow: 0 0 40px rgba(57,255,20,.12), 0 30px 80px rgba(0,0,0,.7); }
.wallet-modal::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.wm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.wm-head h3 { margin: 0; font-size: 18px; }
.wm-close { background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.wm-close:hover { color: var(--text); }
.wm-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.wm-list { display: grid; gap: 8px; }
.wm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; text-align: left; transition: border-color .15s, background .15s; }
.wm-item:hover { border-color: rgba(57,255,20,.5); background: #0f170d; }
.wm-item img, .w-fallback { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.w-fallback { display: inline-grid; place-items: center; background: #0d1f0a; color: #39ff14; font-weight: 800; }
.wm-item span:not(.w-fallback) { flex: 1; }
.wm-item em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; }
button.wm-item em { color: #39ff14; }
.wm-connected { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); word-break: break-all; }
.wm-connected img, .wm-connected .w-fallback { width: 36px; height: 36px; border-radius: 10px; }
.wm-connected .mono { font-size: 12px; }
.wm-note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.wm-foot { color: #6b6b74; font-size: 12px; margin: 16px 0 0; line-height: 1.5; }
.wallet-icon { width: 18px; height: 18px; border-radius: 5px; vertical-align: -4px; margin-right: 8px; }
.fee-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0d1f0a; color: #39ff14; flex-shrink: 0; }

/* ---------- coin page ---------- */
.coin-page { max-width: 1120px; padding-top: 40px; display: grid; gap: 20px; }
.coin-hero { gap: 18px; }
.hero-top { display: flex; gap: 18px; align-items: flex-start; }
.hero-logo { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); background: var(--panel-2); flex-shrink: 0; box-shadow: 0 0 24px rgba(57,255,20,.12); }
.hero-id { min-width: 0; flex: 1; display: grid; gap: 8px; }
.hero-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-name h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.02em; }
.hero-tick { font-family: var(--mono); color: #39ff14; font-weight: 600; }
.chain-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--panel-2); }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.hero-links a, .copy { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 12.5px; }
.hero-links a:hover, .copy:hover { color: #39ff14; }
.copy { background: none; border: 0; padding: 0; cursor: pointer; }
.hero-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; min-width: 0; }
.stat span { color: var(--muted); font-size: 12.5px; }
.stat b { font-family: var(--mono); font-size: clamp(17px, 2.4vw, 22px); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.stat small { color: #6b6b74; font-size: 11.5px; font-family: var(--mono); }
.hero-bar { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.hero-bar i { display: block; height: 100%; min-width: 4px; background: linear-gradient(90deg, #1a9e05, #39ff14); box-shadow: 0 0 10px rgba(57,255,20,.6); border-radius: 99px; }
.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.coin-main, .coin-side { display: grid; gap: 20px; min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chart-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.chart-controls .tab { padding: 6px 10px; font-size: 12px; }
.chart-box { height: 380px; width: 100%; margin-top: 8px; }
.trades-wrap { margin-top: 6px; max-height: 420px; overflow-y: auto; }
.trades a { color: var(--muted); text-decoration: none; }
.trades a:hover { color: #39ff14; }
.trades tbody tr { cursor: default; }
.trade-panel { gap: 12px; }
.trade-tabs .seg-btn.active[data-side="buy"] { background: #39ff14; color: #041204; box-shadow: none; }
.trade-tabs .seg-btn.active[data-side="sell"] { background: #ef4444; color: #fff; box-shadow: none; }
.amount-box { position: relative; }
.amount-box .input { font-size: 22px; padding: 14px 80px 14px 14px; }
.amount-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 14px; color: var(--muted); max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick button, .slip button { background: var(--bg); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 7px 0; font: inherit; font-family: var(--mono); font-size: 12.5px; cursor: pointer; }
.quick button:hover, .slip button:hover { color: var(--text); border-color: #3a3a42; }
.trade-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); gap: 10px; }
.trade-row b { color: var(--text); font-family: var(--mono); font-weight: 600; text-align: right; }
.slip { display: flex; gap: 4px; }
.slip button { padding: 4px 10px; }
.slip button.active { color: #39ff14; border-color: rgba(57,255,20,.5); }
.coin { cursor: pointer; }
@media (max-width: 900px) {
  .coin-layout { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-top { flex-direction: column; }
  .chart-box { height: 300px; }
}
.chart-panel, .chart-box { min-width: 0; overflow: hidden; }
.coin-main > .panel { min-width: 0; }
.card-foot { align-items: center; }
.card-foot .tokenize-btn { margin-left: auto; }
@media (max-width: 480px) {
  .board .rk { display: none; }
  .board th:first-child { display: none; }
  .board .tokenize-btn { padding: 6px 10px; font-size: 12px; }
  .board .name { max-width: 150px; }
}
a.ticker-item { text-decoration: none; }
a.ticker-item:hover b { color: #39ff14; }
.ticker-item a { color: inherit; text-decoration: none; }
.ticker-track.still { animation: none; padding-left: 16px; }
