:root {
  --bg: #050505;
  --panel: #0c0a0a;
  --line: #1f1818;
  --line-2: #2c2222;
  --text: #f3eeee;
  --muted: #a69a9a;
  --red: #ff1f1f;
  --red-dim: #3a0d0d;
  --ok: #e8e2e2;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.red { color: var(--red); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(5,5,5,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 34px; display: block; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav > a:not(.btn) { color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.nav > a:not(.btn):hover, .nav > a.on:not(.btn) { color: var(--text); }
.tick { border-top: 1px solid var(--line); }
.tick-in { display: flex; align-items: center; gap: 12px; height: 34px; font-size: 12.5px; }
.tick-label { color: var(--muted); text-transform: lowercase; letter-spacing: .04em; }
.tick-time { color: var(--red); font-size: 13px; min-width: 42px; }
.tick-bar { flex: 1; height: 2px; background: var(--line); position: relative; border-radius: 2px; overflow: hidden; }
.tick-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); transition: width 1s linear; }
.tick-stats { color: var(--muted); white-space: nowrap; }
.fb-ca { height: 24px; padding: 0 10px; border: 1px solid var(--red-dim); background: #120707; color: var(--red); border-radius: 6px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fb-ca .mono { color: var(--text); font-weight: 400; margin-left: 4px; }
.fb-ca:hover { border-color: var(--red); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s, opacity .12s; white-space: nowrap; }
.btn:hover { border-color: #4a3a3a; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #ff3b3b; border-color: #ff3b3b; }
.btn-ghost { background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; height: 50px; font-size: 16px; }

/* home */
.hero { padding: 56px 0 28px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 44px; line-height: 1.05; margin: 0 0 14px; letter-spacing: -.02em; font-weight: 700; }
.hero p { color: var(--muted); font-size: 17px; margin: 0 0 22px; max-width: 34em; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.steps li:first-child { border-top: 0; }
.steps b { color: var(--text); font-weight: 600; display: block; }
.steps .n { color: var(--red); font-family: ui-monospace, Menlo, monospace; font-size: 13px; padding-top: 1px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 0 14px; flex-wrap: wrap; }
.bar h2 { margin: 0; font-size: 18px; }
.tools { display: flex; gap: 8px; align-items: center; }
.search { height: 36px; width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 0 12px; font: inherit; font-size: 14px; }
.search:focus { outline: none; border-color: #4a3a3a; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--panel); }
.seg button { height: 30px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; border-radius: 6px; cursor: pointer; }
.seg button.on { background: #1a1212; color: var(--text); }

.list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.row { display: grid; grid-template-columns: 44px minmax(0, 2.2fr) 1fr 1fr 1fr 90px; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); transition: background .1s; }
.row:first-child { border-top: 0; }
a.row:hover { background: #0d0909; }
.row.head { color: var(--muted); font-size: 12px; text-transform: lowercase; letter-spacing: .04em; padding-top: 10px; padding-bottom: 10px; background: var(--panel); }
.row .img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #111; display: block; }
.row .nm { min-width: 0; }
.row .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .nm span { color: var(--muted); font-size: 13px; }
.row .num { font-family: ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; font-size: 14px; }
.row .r { text-align: right; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.chip.hot { border-color: var(--red-dim); color: var(--red); }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 14px; }

/* launch */
.launch { max-width: 600px; margin: 0 auto; padding: 40px 0 60px; }
.launch h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.01em; }
.launch .sub { color: var(--muted); margin: 0 0 28px; }
.form { display: grid; gap: 18px; }
.field label, .lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field label i, .lbl i { font-style: normal; color: #7d7173; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inp { width: 100%; height: 46px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--text); padding: 0 14px; font: inherit; }
textarea.inp { height: 84px; padding: 12px 14px; resize: vertical; }
.inp:focus { outline: none; border-color: #5a4444; }
.inp::placeholder { color: #74686a; }
.suffix { position: relative; }
.suffix .inp { padding-right: 70px; }
.suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-family: ui-monospace, Menlo, monospace; }
.drop { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); cursor: pointer; transition: border-color .12s; }
.drop:hover, .drop.over { border-color: var(--red); }
.drop .pv { width: 112px; height: 112px; border-radius: 9px; background: #0f0b0b; display: grid; place-items: center; overflow: hidden; color: #4c4040; font-size: 28px; }
.drop .pv img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; margin-bottom: 4px; }
.drop span { color: var(--muted); font-size: 13px; }
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pairs button { height: 44px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.pairs button.on { border-color: var(--red); color: var(--text); background: #140909; }
.hint { font-size: 13px; color: var(--muted); margin-top: 7px; min-height: 1em; }
.hint.ok { color: var(--ok); }
.hint.err { color: var(--red); }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { height: 34px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; font-family: ui-monospace, Menlo, monospace; }
.quick button:hover { color: var(--text); border-color: var(--line-2); }
details.adv { border-top: 1px solid var(--line); padding-top: 14px; }
details.adv summary { cursor: pointer; color: var(--muted); font-size: 13.5px; list-style: none; }
details.adv summary::before { content: "+ "; color: var(--red); }
details.adv[open] summary::before { content: "- "; }
details.adv .field { margin-top: 14px; }
.deal { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.deal div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
.deal b { color: var(--text); font-weight: 600; }
.clock { padding: 18px 16px 16px; border-bottom: 1px solid var(--line); }
.clock span { display: block; color: var(--muted); font-size: 12.5px; text-transform: lowercase; letter-spacing: .04em; }
.clock b { display: block; font-family: ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; font-size: 44px; line-height: 1.1; color: var(--red); font-weight: 600; letter-spacing: -.02em; }
.hero-card { border: 1px solid var(--line); border-radius: var(--r); }
.hero-card .steps { border: 0; border-radius: 0; }
.drop { border-color: #3a2c2c; }
.status { font-size: 14px; color: var(--muted); text-align: center; min-height: 1.5em; margin-top: 10px; }
.status.err { color: var(--red); }

/* coin */
.coin { padding: 36px 0 60px; }
.coin-head { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; }
.coin-head img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: #111; }
.coin-head h1 { margin: 0; font-size: 30px; letter-spacing: -.01em; }
.coin-head .tk { color: var(--muted); font-size: 16px; margin-left: 6px; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; cursor: pointer; }
.ca:hover { color: var(--text); }
.links { display: flex; gap: 8px; }
.links a { color: var(--muted); font-size: 13.5px; border-bottom: 1px solid var(--line-2); }
.links a:hover { color: var(--text); }
.desc { color: var(--muted); margin: 22px 0 0; max-width: 46em; white-space: pre-wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); margin-top: 28px; }
.stat { padding: 16px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat span { display: block; color: var(--muted); font-size: 12.5px; text-transform: lowercase; letter-spacing: .03em; }
.stat b { display: block; font-size: 22px; font-weight: 600; margin-top: 4px; font-family: ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat small { color: var(--muted); font-size: 12.5px; }
.log { margin-top: 28px; }
.log h2 { font-size: 16px; margin: 0 0 12px; }
.ev { display: grid; grid-template-columns: 90px 1fr 1fr 110px; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.ev:first-child { border-top: 0; }
.ev .k { color: var(--muted); }
.ev .k.burn { color: var(--red); }
.ev a { color: var(--muted); text-align: right; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.ev a:hover { color: var(--text); }
.banner { border: 1px solid var(--red-dim); background: #0f0606; border-radius: var(--r); padding: 14px 16px; margin-bottom: 22px; font-size: 14.5px; }
.banner b { color: var(--red); }

/* modal + toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.x { background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.wl { display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; margin-top: 8px; }
.wl:hover { border-color: var(--red); }
.wl img { width: 28px; height: 28px; border-radius: 7px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #160c0c; border: 1px solid var(--line-2); color: var(--text); padding: 10px 16px; border-radius: 9px; font-size: 14px; z-index: 60; }
.toast[hidden] { display: none; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 28px 20px 40px; color: #857979; font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot a { color: var(--muted); }
.foot-r { display: flex; gap: 18px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 26px; }
  .hero h1 { font-size: 34px; }
  .row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .row .img { width: 40px; height: 40px; }
  .row .hide-m { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .coin-head { grid-template-columns: 72px 1fr; }
  .coin-head img { width: 72px; height: 72px; }
  .coin-head .act { grid-column: 1 / -1; }
  .coin-head .act .btn { width: 100%; }
  .tick-stats { display: none; }
  .ev { grid-template-columns: 70px 1fr 90px; }
  .ev .hide-m { display: none; }
}
@media (max-width: 480px) {
  .brand img { height: 24px; }
  .nav > a:not(.btn) { display: none; }
  .two { grid-template-columns: 1fr; }
  .search { width: 150px; }
  .bar { align-items: stretch; }
  .tools { width: 100%; justify-content: space-between; }
}
