:root {
  --bg: #0a0c0a;
  --bg-2: #0f120f;
  --panel: #131713;
  --line: #1f251f;
  --line-2: #2b332b;
  --text: #e9ede7;
  --muted: #8f998f;
  --dim: #5f695f;
  --green: #76b900;
  --green-2: #8fd400;
  --green-dim: rgba(118, 185, 0, 0.12);
  --green-line: rgba(118, 185, 0, 0.35);
  --red: #e5484d;
  --red-dim: rgba(229, 72, 77, 0.12);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-2); }
code, pre, .mono { font-family: var(--mono); }
code { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 0.1em 0.4em; font-size: 0.88em; }
pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: 26px; margin-top: 48px; }
h3 { font-size: 18px; margin-top: 28px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.green { color: var(--green); }
.red { color: var(--red); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 12, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.02em; }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--green); position: relative; }
.brand .mark::after { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--bg); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a.active, .nav-links a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all .15s ease; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--green-line); color: var(--text); }
.btn.primary { background: var(--green); border-color: var(--green); color: #0a0c0a; }
.btn.primary:hover { background: var(--green-2); border-color: var(--green-2); color: #0a0c0a; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; }

/* hero */
.hero { padding: 96px 0 64px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(118,185,0,0.10), transparent 60%),
    linear-gradient(transparent 0, transparent calc(100% - 1px), var(--line) calc(100% - 1px));
}
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.slogan { font-size: clamp(38px, 7vw, 76px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 20px; }
.slogan .two { color: var(--green); }
.lede { font-size: 18px; color: var(--muted); max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 40px 0; }
.stat { background: var(--bg-2); padding: 18px 20px; }
.stat .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.stat .value { font-family: var(--mono); font-size: 22px; color: var(--text); }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* sections */
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .num { font-family: var(--mono); color: var(--green); font-size: 12px; letter-spacing: 0.1em; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.card.accent { border-color: var(--green-line); background: linear-gradient(180deg, var(--green-dim), var(--panel) 60%); }

.step { position: relative; padding-left: 44px; }
.step .n { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--green-dim); border: 1px solid var(--green-line); color: var(--green); font-family: var(--mono); font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* pairs table */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
td.mono, th.mono { font-family: var(--mono); }
tr:last-child td { border-bottom: 0; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--bg-2); }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.tag.up { color: var(--green); border-color: var(--green-line); background: var(--green-dim); }
.tag.down { color: var(--red); border-color: rgba(229,72,77,.4); background: var(--red-dim); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.dot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.dot.bad { background: var(--red); }

/* footer */
footer { padding: 36px 0 48px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.disclaimer { font-size: 12px; color: var(--dim); max-width: 760px; line-height: 1.5; }

/* app / dashboard */
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 18px; flex-wrap: wrap; }
.gate { max-width: 520px; margin: 80px auto; text-align: center; }
.gate .card { padding: 36px 30px; }
.gate .options { display: grid; gap: 10px; margin-top: 22px; }
.gate label { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13px; color: var(--muted); margin-top: 18px; }
.pool { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; margin-bottom: 18px; }
.pool-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pool-head h3 { margin: 0; font-size: 20px; }
.pool-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pool-body > div { padding: 18px 20px; }
.pool-body > div:first-child { border-right: 1px solid var(--line); }
@media (max-width: 760px) { .pool-body { grid-template-columns: 1fr; } .pool-body > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); } }
.side-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.side-title .sym { font-family: var(--mono); font-weight: 700; font-size: 16px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 13px; }
.kv .k { color: var(--muted); }
.kv .v { font-family: var(--mono); text-align: right; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 12px 0 4px; display: flex; }
.bar .l { background: var(--green); }
.bar .s { background: var(--red); opacity: .8; }
.form { margin-top: 14px; display: grid; gap: 8px; }
.form .row { display: flex; gap: 8px; }
.form input {
  flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text); font-family: var(--mono); font-size: 14px; padding: 10px 12px; outline: none;
}
.form input:focus { border-color: var(--green-line); }
.form .hint { font-size: 12px; color: var(--dim); font-family: var(--mono); display: flex; justify-content: space-between; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 16px; font-size: 13px; max-width: 360px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.ok { border-color: var(--green-line); }
.toast.err { border-color: var(--red); }
.addr { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.addr a { color: var(--muted); border-bottom: 1px dotted var(--line-2); }
.addr a:hover { color: var(--green); }

/* docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 40px 0 80px; }
.doc { min-width: 0; }
.doc table { display: block; overflow-x: auto; white-space: nowrap; }
.doc table td:last-child { white-space: normal; min-width: 260px; }
.toc { position: sticky; top: 80px; align-self: start; font-size: 13px; }
.toc a { display: block; color: var(--muted); padding: 5px 0; border-left: 2px solid transparent; padding-left: 12px; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--green); }
.toc .group { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 16px 0 6px 14px; }
.doc h2 { scroll-margin-top: 80px; padding-top: 8px; border-top: 1px solid var(--line); padding-top: 28px; }
.doc h2:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.doc h3 { scroll-margin-top: 80px; }
.doc p, .doc li { color: #cfd6cc; }
.doc .callout { border-left: 3px solid var(--green); background: var(--green-dim); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 14px; }
.doc .callout.warn { border-left-color: var(--red); background: var(--red-dim); }
.doc table { font-size: 13.5px; }
.formula { font-family: var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 12px 0; font-size: 13.5px; color: var(--text); overflow-x: auto; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .toc { position: static; display: none; } }

/* workflow */
.lane { margin-bottom: 28px; }
.lane-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.lane-head h3 { margin: 0; }
.lane-head .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flow .node { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; min-height: 150px; }
.flow .node .n { font-family: var(--mono); font-size: 11px; color: var(--green); letter-spacing: .1em; margin-bottom: 8px; }
.flow .node h4 { margin: 0 0 6px; font-size: 15px; }
.flow .node p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.flow .node .fee { position: absolute; right: 12px; top: 12px; font-family: var(--mono); font-size: 10px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; }
.flow .node:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 16px; z-index: 2; }
.flow .node.hot { border-color: var(--green-line); background: linear-gradient(180deg, var(--green-dim), var(--panel) 70%); }
.flow .node.split { display: grid; grid-template-rows: auto 1fr 1fr; gap: 6px; }
.flow .node.split .half { border-top: 1px solid var(--line); padding-top: 6px; font-size: 12.5px; color: var(--muted); }
.flow .node.split .half b { color: var(--text); font-weight: 600; }
.status-row { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, 1fr); } .flow .node:not(:last-child)::after { display: none; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---------------- motion ---------------- */
@keyframes slideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px var(--green-dim); } 50% { box-shadow: 0 0 0 7px rgba(118,185,0,.06); } }

/* hero: slogan lines slide in from the left one after the other, then the rest rises */
.slogan .line { display: block; opacity: 0; animation: slideInLeft .75s cubic-bezier(.2,.8,.2,1) forwards; }
.slogan .line:nth-child(2) { animation-delay: .2s; }
.hero .eyebrow { opacity: 0; animation: fadeIn .6s ease forwards; }
.hero .lede { opacity: 0; animation: slideUp .7s cubic-bezier(.2,.8,.2,1) .5s forwards; }
.hero .hero-actions { opacity: 0; animation: slideUp .7s cubic-bezier(.2,.8,.2,1) .65s forwards; }
.hero .stats { opacity: 0; animation: slideUp .8s cubic-bezier(.2,.8,.2,1) .85s forwards; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s, .05s, 0s, 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .15s, .15s, 0s, 0s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .25s, .25s, 0s, 0s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .35s, .35s, 0s, 0s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .45s, .45s, 0s, 0s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .55s, .55s, 0s, 0s; }

/* hover feel */
.card, .flow .node, .stat { transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease, background .2s ease; }
.card:hover, .flow .node:hover { transform: translateY(-3px); border-color: var(--green-line); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.hero .stat:hover { background: var(--panel); }
.btn { transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary:hover { box-shadow: 0 6px 20px rgba(118,185,0,.25); }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--green); transition: right .25s cubic-bezier(.2,.8,.2,1); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { right: 0; }
.brand img { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
tbody tr td { transition: background .15s ease; }
tbody tr:hover td { background: rgba(118,185,0,.04); }
.dot.ok { animation: pulse 2.2s ease-in-out infinite; }
.bar .l, .bar .s { transition: width .8s cubic-bezier(.2,.8,.2,1); }
.toast { animation: slideUp .3s cubic-bezier(.2,.8,.2,1); }
.gate .card { animation: slideUp .6s cubic-bezier(.2,.8,.2,1); }
.pool { animation: slideUp .5s cubic-bezier(.2,.8,.2,1) both; }
.pool:nth-child(2) { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slogan .line, .hero .eyebrow, .hero .lede, .hero .hero-actions, .hero .stats, .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* powered-by strip */
.powered { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.powered .item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.powered .item strong { color: var(--text); font-weight: 600; letter-spacing: .04em; }
.powered svg { width: 16px; height: 16px; }
.hero .powered { opacity: 0; animation: fadeIn .8s ease 1.05s forwards; }

/* $SPLIT section */
.token-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 860px) { .token-hero { grid-template-columns: 1fr; } }
.token-big { font-family: var(--mono); font-weight: 700; font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.04em; line-height: 1; color: var(--green); }
.token-big small { display: block; font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: 0; color: var(--text); margin-top: 10px; }
.feeflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 22px; }
.feeflow .box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px; min-height: 96px; }
.feeflow .box .k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.feeflow .box .v { font-family: var(--mono); font-size: 20px; color: var(--text); }
.feeflow .box .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.feeflow .arrow { color: var(--green); font-size: 20px; }
.feeflow .box.split { display: grid; gap: 8px; }
.feeflow .box.split .half { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; font-size: 12.5px; color: var(--muted); }
.feeflow .box.split .half:first-of-type { border-top: 0; padding-top: 0; }
.feeflow .box.split .half b { color: var(--green); font-family: var(--mono); font-size: 16px; }
@media (max-width: 700px) { .feeflow { grid-template-columns: 1fr; } .feeflow .arrow { transform: rotate(90deg); text-align: center; } }
.token-points { display: grid; gap: 10px; margin-top: 18px; }
.token-points .pt { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); }
.token-points .pt .sq { width: 12px; height: 12px; border-radius: 3px; background: var(--green); margin-top: 4px; }
.token-points .pt b { color: var(--text); font-weight: 600; }

/* wallet buttons */
.wicon { width: 18px; height: 18px; border-radius: 5px; display: inline-block; background-size: cover; background-position: center; }
.wicon.phantom { background: #ab9ff2; position: relative; }
.wicon.phantom::after { content: ""; position: absolute; left: 4px; top: 5px; width: 10px; height: 7px; border-radius: 5px 5px 2px 2px; background: #1c1c2e; }
.wicon.wc { background: #3396ff; position: relative; }
.wicon.wc::after { content: ""; position: absolute; left: 3px; top: 6px; width: 12px; height: 5px; border: 2px solid #fff; border-top-color: transparent; border-radius: 0 0 8px 8px; box-sizing: border-box; }
.wicon img { width: 100%; height: 100%; border-radius: 5px; display: block; }
.options .btn { justify-content: flex-start; padding-left: 16px; }
.options .btn.primary { justify-content: center; }


[hidden] { display: none !important; }

/* connected wallet button + dropdown */
.wallet-wrap { position: relative; display: inline-block; }
#wallet-btn.connected { font-family: var(--mono); font-weight: 500; }
#wallet-btn.connected::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
#wallet-btn.connected::after { content: "▾"; color: var(--dim); font-size: 12px; margin-left: 2px; }
.wmenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.5); padding: 6px; z-index: 40; animation: slideUp .18s cubic-bezier(.2,.8,.2,1); }
.wmenu .addr-full { font-family: var(--mono); font-size: 11px; color: var(--dim); padding: 8px 10px 6px; word-break: break-all; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.wmenu button, .wmenu a { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-size: 13px; padding: 9px 10px; border-radius: 7px; cursor: pointer; text-decoration: none; }
.wmenu button:hover, .wmenu a:hover { background: var(--bg-2); color: var(--text); }
.wmenu .danger { color: var(--red); }
.wmenu .danger:hover { background: var(--red-dim); color: var(--red); }
.wmenu .ico { width: 16px; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 12px; }

/* eligibility checkbox: red when someone tries to connect without ticking it */
.gate label { border: 1px solid transparent; border-radius: 8px; padding: 10px 12px; margin-left: -12px; margin-right: -12px; transition: border-color .2s, background .2s; }
.gate label.needs-consent { border-color: var(--red); background: var(--red-dim); color: #f3a7aa; animation: shake .4s cubic-bezier(.36,.07,.19,.97); }
.gate label.needs-consent input { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 3px; }
.gate #gate-msg.err { color: var(--red); }
@keyframes shake { 10%,90% { transform: translateX(-2px); } 20%,80% { transform: translateX(3px); } 30%,50%,70% { transform: translateX(-5px); } 40%,60% { transform: translateX(5px); } }

/* ---------------- simulator ---------------- */
.sim { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .sim { grid-template-columns: 1fr; } }
.sim-viz { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; }
.sim-viz svg { width: 100%; height: auto; }
#fill-l, #fill-s { transition: y .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1); }
#xfer { transition: opacity .3s ease; }
#xfer-line { animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.sim-ctl { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sim-ctl h3 { margin-top: 0; }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin: 16px 0 6px; font-size: 13px; color: var(--muted); }
.slider output { font-family: var(--mono); color: var(--text); font-size: 13px; }
.slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--green); height: 28px; cursor: pointer; }
.sim-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 12px; }
.sim-out > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.sim-out .k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.sim-out .v { font-family: var(--mono); font-size: 18px; margin-top: 4px; }
@media (max-width: 520px) { .sim-out { grid-template-columns: 1fr; } }

/* ---------------- pair cards ---------------- */
.card.pair { padding: 18px 20px; }
.pair-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pair-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .pair-nums { grid-template-columns: repeat(2, 1fr); } }
.pair-nums .k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pair-nums .v { font-family: var(--mono); font-size: 18px; margin-top: 3px; }
.pair-nums .s { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: var(--mono); }
.card.pair .bar { margin: 12px 0 10px; }
.chart { width: 100%; height: auto; display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.chart-empty { background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 8px; padding: 34px 12px; text-align: center; font-size: 12px; }

.powered a.item { color: var(--muted); }
.powered a.item:hover { color: var(--text); }
.powered a.item:hover strong { color: var(--green); }
.powered .item img { width: 18px; height: 18px; border-radius: 50%; }
.powered svg { width: 18px; height: 18px; }

/* contract address box */
.ca-box { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--green-line); border-radius: 8px; padding: 8px 10px 8px 12px; font-family: var(--mono); font-size: 13px; word-break: break-all; }
.ca-box a { color: var(--text); }
.ca-box a:hover { color: var(--green); }
.ca-line { margin-top: 16px; }
.ca-line .k { margin-bottom: 6px; }
