:root {
  --bg: #0a0a0a; --panel: #101010; --panel2: #151515; --card: #131313; --card2: #181818;
  --border: #212121; --border2: #2c2c2c; --text: #ededed; --muted: #8b8b8b; --muted2: #5a5a5a;
  --accent: #b5d33d; --accent-ink: #0b0d04; --green: #a3d55c; --green-bg: #182412; --green-border: #24361a;
  --blue: #2f7cf6; --red: #f05d5d; --r: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* header */
.top { padding: 14px 0 6px; }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo img { width: 36px; height: 36px; display: block; }
.pills { display: inline-flex; gap: 2px; background: var(--panel2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.pills a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.pills a.on { background: #262626; color: var(--text); }
.pills a:hover:not(.on) { color: var(--text); }
.right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel2); display: grid; place-items: center; color: var(--muted); }
.wallet-wrap { position: relative; }
.wallet { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); font-weight: 500; }
.wallet.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.wallet.warn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f0b429; }
.wallet svg { color: var(--muted); }
.wmenu { position: absolute; right: 0; top: 46px; min-width: 260px; background: var(--panel2); border: 1px solid var(--border2); border-radius: 14px; padding: 10px; z-index: 20; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.wmenu .row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 8px; color: var(--muted); font-size: 13px; }
.wmenu .row b { color: var(--text); font-weight: 500; }
.wmenu button, .wmenu a.btnlike { display: block; width: 100%; text-align: left; padding: 9px 8px; border-radius: 8px; border: 0; background: none; color: var(--text); }
.wmenu button:hover, .wmenu a.btnlike:hover { background: #222; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #1d1d1d; border: 1px solid var(--border2); color: var(--text); padding: 12px 16px; border-radius: 12px; z-index: 50; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast a { color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--border2); background: #1c1c1c; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.primary:disabled { background: #6d7f2c; border-color: #6d7f2c; color: #1a1f0a; cursor: not-allowed; }
.btn.big { height: 52px; width: 100%; font-size: 16px; border-radius: 14px; }
.btn.pill { border-radius: 999px; height: 38px; padding: 0 14px 0 10px; font-weight: 500; }
.btn.sell { background: var(--red); border-color: var(--red); color: #fff; }
.btn.sell:disabled { background: #6e2e2e; border-color: #6e2e2e; color: #d9a3a3; cursor: not-allowed; }

/* hero */
.hero { text-align: center; padding: 72px 16px 56px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); background: #131a08; border: 1px solid #2c3a12; border-radius: 999px; padding: 7px 14px; margin-bottom: 26px; }
.hero h1 { margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; }
.hero h1 .lime { color: #c8f542; }
.hero p { max-width: 720px; margin: 24px auto 0; color: #b5b5b5; font-size: 18px; line-height: 1.55; }
.hero-cta { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-cta .btn { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.hero-cta .btn.primary { background: #c8f542; border-color: #c8f542; }
@media (max-width: 640px) { .hero { padding: 44px 8px 24px; } .hero p { font-size: 16px; } }

/* toolbar */
.toolbar { display: flex; gap: 14px; margin: 18px 0 26px; }
.search { flex: 1; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; color: var(--muted); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-size: 15px; }
.search kbd { font: 12px ui-monospace, monospace; color: var(--muted); border: 1px solid var(--border2); border-radius: 6px; padding: 2px 6px; }

/* panels */
.panel { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 22px; padding: 26px 24px 20px; margin-bottom: 22px; overflow: hidden; }
.panel.glow { border-color: var(--green-border); }
.panel.glow::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(600px 220px at 12% 0%, rgba(120,170,40,.22), transparent 70%); pointer-events: none; }
.panel > * { position: relative; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 22px; }
.panel-head h2 { margin: 0; font-size: 24px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); flex-basis: 100%; font-size: 14px; }
.count { font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 8px; padding: 3px 8px; }
.sorts { margin-left: auto; display: inline-flex; gap: 2px; background: var(--panel2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.sorts button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.sorts button.on { background: #262626; color: var(--text); }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 10px 12px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--border2); transform: translateY(-1px); }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #1c1c1c; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 42px; font-weight: 700; color: #3a3a3a; background: linear-gradient(160deg, #1b1b1b, #101010); }
.badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(20,20,20,.85); border: 1px solid rgba(255,255,255,.08); color: #d8d8d8; backdrop-filter: blur(4px); }
.badge.v2 { background: var(--blue); border-color: var(--blue); color: #fff; }
.badge.live { color: var(--green); }
.card .name { margin-top: 12px; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .ticker { color: var(--muted); font-size: 13px; margin-top: 1px; }
.card .mc { margin-top: 8px; font-weight: 600; font-size: 15px; display: flex; align-items: baseline; gap: 6px; }
.card .mc small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.card .foot { display: flex; justify-content: space-between; color: var(--muted2); font-size: 12px; margin-top: 8px; }
.prog { height: 4px; border-radius: 4px; background: #232323; overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 26px; }
.pager button { min-width: 36px; height: 36px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-weight: 500; }
.pager button.on { background: #fff; color: #000; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager span { color: var(--muted2); padding: 0 4px; }

/* launch */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 26px 0 18px; }
.launch { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--panel); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; margin-bottom: 40px; }
@media (max-width: 900px) { .launch { grid-template-columns: 1fr; } }
.launch form { padding: 34px 36px 30px; border-right: 1px solid var(--border); }
.launch h1 { margin: 0 0 22px; font-size: 32px; font-weight: 600; letter-spacing: -.01em; }
.field { margin-bottom: 18px; }
.field label, .field .lab { display: block; font-size: 13px; color: #c9c9c9; margin-bottom: 8px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.in { width: 100%; height: 48px; padding: 0 14px; background: #0e0e0e; border: 1px solid var(--border); border-radius: 12px; outline: 0; color: var(--text); }
.in:focus { border-color: #3a3a3a; }
textarea.in { height: 96px; padding: 12px 14px; resize: vertical; }
.pre { display: flex; align-items: center; background: #0e0e0e; border: 1px solid var(--border); border-radius: 12px; height: 48px; padding-left: 14px; }
.pre span { color: #bdbdbd; font-weight: 500; }
.pre input { flex: 1; height: 100%; background: none; border: 0; outline: 0; padding: 0 14px 0 2px; color: var(--text); }
.drop { display: flex; align-items: center; gap: 14px; height: 78px; padding: 0 14px; border: 1px dashed #333; border-radius: 12px; background: #0e0e0e; cursor: pointer; }
.drop .ic { width: 48px; height: 48px; border-radius: 10px; background: #1a1a1a; display: grid; place-items: center; color: #777; overflow: hidden; }
.drop .ic img { width: 100%; height: 100%; object-fit: cover; }
.drop b { font-weight: 500; }
.drop input { display: none; }
.pair { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 14px; background: #0e0e0e; border: 1px solid var(--border); border-radius: 12px; }
.pair .tok { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.coin { width: 20px; height: 20px; border-radius: 50%; background: #1a1a1a url(ponshouse.webp) center / cover no-repeat; display: inline-block; flex: none; vertical-align: -4px; }
.amt { background: #0e0e0e; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 10px; }
.amt .top { display: flex; align-items: center; gap: 10px; }
.amt input { flex: 1; background: none; border: 0; outline: 0; font-size: 26px; font-weight: 500; min-width: 0; color: var(--text); }
.amt input::placeholder { color: #444; }
.amt .tok { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.amt .sub { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.max { border: 0; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
details.adv { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px 0; margin: 8px 0 18px; }
details.adv summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 12px 0; font-weight: 500; }
details.adv summary::after { content: "⌄"; color: var(--muted); }
.due { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.preview { display: grid; place-items: center; padding: 40px 30px; background: #0c0c0c; }
.pcard { width: 100%; max-width: 320px; background: #111; border: 1px solid var(--border); border-radius: 18px; padding: 26px 24px 8px; }
.pcard .ic { width: 68px; height: 68px; border-radius: 14px; background: #1a1a1a; display: grid; place-items: center; color: #666; overflow: hidden; }
.pcard .ic img { width: 100%; height: 100%; object-fit: cover; }
.pcard h3 { margin: 22px 0 2px; font-size: 24px; font-weight: 600; }
.pcard .tk { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.pcard .r { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); font-size: 14px; }
.pcard .r span { color: var(--muted); }
.pcard .r b { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

/* token page */
.tgrid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; margin-bottom: 40px; align-items: start; }
@media (max-width: 900px) { .tgrid { grid-template-columns: 1fr; } }
.box { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 20px; margin-bottom: 18px; }
.thead { display: flex; gap: 18px; align-items: flex-start; }
.thead .img { width: 88px; height: 88px; border-radius: 16px; overflow: hidden; background: #1c1c1c; flex: none; }
.thead .img img { width: 100%; height: 100%; object-fit: cover; }
.thead .img .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 32px; font-weight: 700; color: #3a3a3a; }
.thead h1 { margin: 0; font-size: 26px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.thead .sub { color: var(--muted); font-size: 14px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.thead .sub button { border: 0; background: none; color: var(--muted); padding: 0; }
.thead .sub button:hover { color: var(--text); }
.desc { color: #c4c4c4; margin: 14px 0 0; white-space: pre-wrap; }
.links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.links a { font-size: 13px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.links a:hover { color: var(--text); border-color: var(--border2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat b { display: block; font-size: 18px; font-weight: 600; margin-top: 4px; }
.stat small { color: var(--muted); font-weight: 400; font-size: 12px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.chart-head b { font-size: 22px; }
canvas#chart { width: 100%; height: 260px; display: block; }
table.trades { width: 100%; border-collapse: collapse; font-size: 13px; }
table.trades th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 6px; border-bottom: 1px solid var(--border); }
table.trades td { padding: 9px 6px; border-bottom: 1px solid #191919; white-space: nowrap; }
table.trades td.buy { color: var(--green); }
table.trades td.sell { color: var(--red); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.tabs button { border: 0; background: none; color: var(--muted); padding: 10px; border-radius: 9px; font-weight: 600; }
.tabs button.on { background: #262626; color: var(--text); }
.tabs button.on.sellTab { background: rgba(240,93,93,.18); color: var(--red); }
.quick { display: flex; gap: 6px; margin: 10px 0 14px; }
.quick button { flex: 1; border: 1px solid var(--border); background: var(--panel2); color: var(--muted); border-radius: 8px; padding: 6px 0; font-size: 12px; }
.quick button:hover { color: var(--text); }
.out { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 10px 2px; }
.out b { color: var(--text); font-weight: 500; }
.slip { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin: 6px 2px 14px; }
.slip select { background: var(--panel2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; color: var(--text); }
.status { min-height: 18px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.status.err { color: var(--red); }
.curve h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.curve .prog { height: 8px; margin: 0 0 8px; }
.curve p { margin: 0; font-size: 12px; color: var(--muted); }
.gradbox { border: 1px solid var(--green-border); background: var(--green-bg); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: #c8e3a2; }
.gradbox a { color: var(--green); text-decoration: underline; }
.footer { text-align: center; color: var(--muted2); font-size: 12px; padding: 30px 0 40px; }

/* wordmark */
.logo { display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.wordmark { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--text); }
.wordmark b { font-weight: 700; background: linear-gradient(135deg, #e9f5c9 0%, var(--accent) 55%, #8aa62a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo:hover .wordmark { opacity: .85; }
@media (max-width: 560px) { .wordmark { display: none; } }

/* pay-with toggle */
.paytoggle { display: inline-flex; gap: 2px; background: var(--panel2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; margin-bottom: 10px; }
.paytoggle button { border: 0; background: none; color: var(--muted); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.paytoggle button.on { background: #262626; color: var(--text); }
.eth { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9fb7ff, #3b5bdb 70%); display: inline-block; }
.panel-toggle { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 8px; }
.panel-toggle .paytoggle { margin: 0; }
