:root {
  --bg: #07110e; --bg2: #0b1814; --card: #0f1d19; --line: #1a2e28; --line2: #25423a;
  --text: #eaf6f1; --muted: #93aea5; --dim: #5e7a71;
  --gold1: #b8ffe1; --gold2: #3ee6a6; --gold3: #12a877;
  --gold: linear-gradient(135deg, var(--gold1) 0%, var(--gold2) 45%, var(--gold3) 100%);
  --ok: #7fd49a; --bad: #ff8a73;
  --r: 18px;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.goldtext { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--gold2); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 50; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 17, 14, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.mark { width: 30px; height: 30px; border-radius: 9px; display: block; box-shadow: 0 0 0 1px var(--line2); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--card); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca { font-size: 12px; border: 1px solid var(--line2); border-radius: 999px; padding: 7px 12px; color: var(--muted); background: none; cursor: pointer; white-space: nowrap; }
.ca b { color: var(--gold1); font-weight: 500; }
.btn.menu-btn { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 inherit; font-family: inherit; padding: 13px 20px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); cursor: pointer; text-decoration: none; transition: transform .12s, border-color .12s; }
.btn:hover { border-color: var(--gold3); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); color: #03140d; border: 0; box-shadow: 0 8px 30px -10px rgba(62, 230, 166, .55); }
.btn.sm { padding: 9px 14px; font-size: 13px; border-radius: 999px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; min-height: 72vh; padding: 40px 0; }
.hero h1 { font-size: clamp(56px, 9vw, 124px); line-height: .9; letter-spacing: -.045em; margin: 0 0 26px; font-weight: 600; }
.hero p { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ca-line { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 22px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--muted); font-size: 13px; cursor: pointer; text-align: left; word-break: break-all; }
.ca-line:hover { border-color: var(--gold3); color: var(--text); }
.ca-line span { color: var(--gold1); font-weight: 500; flex: none; }
.bars { position: relative; height: 380px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; perspective: 900px; }
.coin { position: absolute; border-radius: 50%; background: var(--gold); color: #03140d; display: grid; place-items: center; font-weight: 700; line-height: 1; box-shadow: inset 0 0 0 12px rgba(255,255,255,.16), inset 0 -18px 30px rgba(0,0,0,.18), 0 30px 60px -20px rgba(0,0,0,.75); animation: float 6s ease-in-out infinite; }
.coin:nth-child(1) { width: 250px; height: 250px; font-size: 130px; left: calc(50% - 180px); top: 40px; }
.coin:nth-child(2) { width: 160px; height: 160px; font-size: 76px; left: calc(50% + 30px); top: 190px; animation-delay: -2.4s; background: linear-gradient(135deg, #f2fff9, #8cf3cb); }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .coin { animation: none; } }

.live { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 10px 0 100px; }
.live div { padding: 22px 24px; border-right: 1px solid var(--line); }
.live div:last-child { border-right: 0; }
.live span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 8px; }
.live b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; box-shadow: 0 0 12px var(--ok); vertical-align: middle; }

.section-h { font-size: clamp(40px, 6vw, 76px); line-height: .95; letter-spacing: -.04em; margin: 0 0 18px; font-weight: 600; }
.lede { color: var(--muted); font-size: 18px; max-width: 560px; line-height: 1.5; margin: 0 0 44px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 110px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; min-height: 260px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: #03140d; display: grid; place-items: center; font-weight: 700; font-size: 20px; margin-bottom: auto; }
.card h3 { font-size: 30px; letter-spacing: -.03em; margin: 34px 0 10px; font-weight: 600; }
.card p { color: var(--muted); line-height: 1.5; margin: 0 0 22px; }
.card a.more { color: var(--gold1); text-decoration: none; font-weight: 600; font-size: 14px; }
.cta { border: 1px solid var(--line); border-radius: 28px; padding: 64px 48px; background: radial-gradient(800px 300px at 90% 0%, rgba(62, 230, 166, .16), transparent 60%), var(--bg2); display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.cta h2 { margin: 0; }

/* pages */
.page-h { padding: 56px 0 26px; }
.page-h h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -.045em; line-height: .95; margin: 0 0 14px; font-weight: 600; }
.page-h p { color: var(--muted); font-size: 18px; margin: 0; max-width: 620px; line-height: 1.5; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 22px; }
.tabs button { font: 600 14px inherit; font-family: inherit; color: var(--muted); background: none; border: 0; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--gold); color: #03140d; }
.lab { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 7px; }
.field { margin-bottom: 18px; }
input, select, textarea { width: 100%; font: 15px inherit; font-family: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 13px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold2); }
textarea { resize: vertical; min-height: 84px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.amount { position: relative; }
.amount button { position: absolute; right: 8px; top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); margin-bottom: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold2); margin-top: 1px; flex: none; }
.check small { display: block; color: var(--muted); }
.drop { display: flex; gap: 14px; align-items: center; border: 1px dashed var(--line2); border-radius: 14px; padding: 12px; cursor: pointer; }
.drop img, .drop .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--bg); flex: none; display: grid; place-items: center; color: var(--dim); font-size: 26px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; word-break: break-all; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.status { margin-top: 16px; font-size: 14px; padding: 12px 14px; border-radius: 12px; display: none; line-height: 1.5; word-break: break-word; }
.status.show { display: block; }
.status.ok { background: rgba(127, 212, 154, .1); color: var(--ok); }
.status.bad { background: rgba(255, 138, 115, .1); color: var(--bad); }
.status.wait { background: rgba(62, 230, 166, .1); color: var(--gold1); }
.status a { color: inherit; font-weight: 600; }

.search { display: flex; gap: 10px; margin-bottom: 22px; }
.search input { flex: 1; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kv div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.kv span { display: block; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.kv b { font-weight: 600; word-break: break-all; font-size: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 10px 8px; border-bottom: 1px solid var(--line); }
td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td a { color: var(--gold1); text-decoration: none; }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); }
pre.logs { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 12px; overflow: auto; max-height: 300px; color: var(--muted); }

.grid-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.asset { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; gap: 12px; align-items: center; min-width: 0; text-decoration: none; }
.asset img, .asset .ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg2); flex: none; display: grid; place-items: center; font-weight: 700; color: var(--gold2); }
.asset div { min-width: 0; }
.asset b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset small { color: var(--muted); }
.nfts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.nfts img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--card); }
h2.sub { font-size: 22px; letter-spacing: -.02em; margin: 34px 0 14px; }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.stat span { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.stat b { display: block; font-size: 34px; letter-spacing: -.03em; font-weight: 600; margin-top: 10px; }
.bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.bar i { display: block; height: 100%; background: var(--gold); }
svg.spark { width: 100%; height: 140px; display: block; }
.code { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; overflow-x: auto; color: var(--gold1); margin: 8px 0 22px; white-space: pre; }
.empty { color: var(--muted); padding: 30px; text-align: center; border: 1px dashed var(--line2); border-radius: var(--r); }

/* wallet modal */
dialog { background: var(--bg2); color: var(--text); border: 1px solid var(--line2); border-radius: 20px; padding: 24px; width: min(380px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.65); }
dialog h3 { margin: 0 0 16px; }
.wlist { display: grid; gap: 8px; }
.wlist button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: 600 15px inherit; font-family: inherit; cursor: pointer; }
.wlist img { width: 28px; height: 28px; border-radius: 8px; }

footer { border-top: 1px solid var(--line); }
.foot { max-width: 1200px; margin: 0 auto; padding: 30px 24px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; color: var(--dim); font-size: 13px; }
.foot nav { display: flex; gap: 16px; margin-left: auto; }
.foot a { text-decoration: none; color: var(--muted); }

@media (max-width: 900px) {
  .hero, .lab { grid-template-columns: 1fr; }
  .bars { height: 260px; order: -1; transform: scale(.78); }
  .cards, .big-stats { grid-template-columns: 1fr; }
  .live { grid-template-columns: 1fr 1fr; }
  .live div { padding: 18px 16px; min-width: 0; } .live b { font-size: 19px; }
  .live div:nth-child(2) { border-right: 0; } .live div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg2); padding: 10px 16px 16px; border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open { display: flex; }
  .btn.menu-btn { display: inline-flex; }
  .ca { display: none; }
  main { padding: 0 16px 60px; } .top-in { padding: 12px 16px; }
  .cta { padding: 40px 24px; }
}
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } .brand span { display: none; } }
