/* NEON 号库 · storefront */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(232, 226, 214, 0.11), transparent 65%),
    radial-gradient(760px 460px at 8% 4%, rgba(201, 168, 106, 0.12), transparent 62%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 38%, var(--bg) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 239, 233, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 233, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

::selection { background: rgba(201, 168, 106, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }

/* ---------- header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 22, 0.82);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--glow-pink);
}

.brand span:not(.brand-mark) { color: var(--primary); }
.brand span.brand-mark { color: var(--primary-ink); }

.nav {
  display: flex;
  gap: 22px;
  margin-left: 8px;
  font-size: 14px;
  color: var(--muted);
}

.nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--text); border-color: var(--primary); }

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.live b { color: var(--ok); font-weight: 500; }
.live i {
  width: 6px;
  height: 6px;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-bd: var(--line);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); border-color: var(--muted); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: var(--primary);
  --btn-bd: var(--primary);
  --btn-fg: var(--primary-ink);
  font-weight: 700;
  box-shadow: 0 0 24px -10px rgba(201, 168, 106, 0.9);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: var(--glow-pink); }

.btn-ghost { --btn-bg: rgba(232, 226, 214, 0.06); --btn-bd: rgba(232, 226, 214, 0.34); --btn-fg: var(--accent); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: var(--glow-cyan); }

.btn-quiet { --btn-bd: transparent; --btn-fg: var(--muted); padding: 0 12px; }
.btn-quiet:hover { color: var(--text); border-color: var(--line); }

.btn-danger { --btn-bd: rgba(201, 122, 109, 0.4); --btn-fg: var(--bad); background: rgba(201, 122, 109, 0.08); }
.btn-danger:hover { border-color: var(--bad); }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 44px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 48px;
  align-items: end;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

h1 {
  font-family: var(--sans);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 em {
  font-style: normal;
  color: var(--primary);
  text-shadow: 0 0 34px rgba(201, 168, 106, 0.45);
}

.hero-sub {
  margin-top: 22px;
  max-width: 560px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-panel {
  background: linear-gradient(160deg, rgba(27, 27, 51, 0.9), rgba(15, 15, 30, 0.6));
  border: 1px solid var(--line);
  padding: 22px;
  position: relative;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto auto;
  width: 46px;
  height: 46px;
  border-top: 1px solid var(--primary);
  border-right: 1px solid var(--primary);
}
.hero-panel h3 {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.hero-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.hero-panel li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-soft);
}
.hero-panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-panel li span { color: var(--muted); }
.hero-panel li b { font-family: var(--mono); font-weight: 500; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.stat { background: rgba(11, 11, 22, 0.72); padding: 18px 20px; }
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat b i { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 3px; }
.stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.stat:nth-child(1) b { color: var(--accent); }
.stat:nth-child(2) b { color: var(--ok); }

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(15, 15, 30, 0.55);
}
.ticker-in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 11px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.ticker-label { flex: none; color: var(--ok); letter-spacing: 0.12em; white-space: nowrap; }
.ticker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  min-width: 0;
}
.ticker-list span { color: var(--dim); white-space: nowrap; }
.ticker-list b { color: var(--text); font-weight: 500; }

/* ---------- market ---------- */
.market { padding: 56px 0 24px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--dim);
  padding-bottom: 4px;
  white-space: nowrap;
}

.market-grid {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.market-grid > * { min-width: 0; }

.filters {
  position: sticky;
  top: 84px;
  border: 1px solid var(--line-soft);
  background: rgba(21, 21, 40, 0.72);
  padding: 20px;
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 18px;
}
.filters-head button {
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
}
.filters-head button:hover { color: var(--primary); }

.f-group { margin-bottom: 20px; }
.f-group:last-child { margin-bottom: 0; }
.f-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 9px;
  font-family: var(--mono);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  flex: none;
  white-space: nowrap;
  padding: 5px 10px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--r);
  transition: all 0.14s ease;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--text);
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 0;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i {
  width: 36px;
  height: 20px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  position: relative;
  flex: none;
  transition: all 0.18s ease;
}
.switch i::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: var(--muted);
  transition: all 0.18s ease;
}
.switch input:checked + i { border-color: var(--ok); background: rgba(157, 179, 155, 0.12); }
.switch input:checked + i::after { left: 18px; background: var(--ok); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.searchbox {
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 4px;
}
.searchbox input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
  outline: none;
}
.searchbox input::placeholder { color: var(--dim); }
.searchbox .btn { min-height: 36px; }

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.list-tools { display: flex; align-items: center; gap: 8px; }
.searchbox-search { max-width: 260px; }
#market, #flow, #faq { scroll-margin-top: 84px; }
.count { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.count b { color: var(--text); font-weight: 500; }

.select {
  appearance: none;
  background: var(--bg-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23A09CC8' d='M0 0h10L5 6z'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 8px 32px 8px 12px;
  border-radius: var(--r);
  min-height: 38px;
  cursor: pointer;
}
.select:hover { border-color: var(--muted); }
.select option { background: var(--surface); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(27, 27, 51, 0.72), rgba(17, 17, 34, 0.86));
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  border-color: rgba(201, 168, 106, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -28px rgba(201, 168, 106, 0.6);
}
.card.is-locked { opacity: 0.62; }
.card.is-locked:hover { transform: none; border-color: var(--line-soft); box-shadow: none; }

.card-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-cover img { transform: scale(1.03); }

.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  background: rgba(11, 11, 22, 0.78);
  color: var(--muted);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.badge-game { color: var(--accent); border-color: rgba(232, 226, 214, 0.35); }
.badge-lock { color: var(--warn); border-color: rgba(214, 179, 106, 0.45); }
.badge-rebind { color: var(--ok); border-color: rgba(157, 179, 155, 0.4); }

.card-body { padding: 15px 16px 0; flex: 1; }
.card-code { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.04em; }
.specs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.spec {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  padding: 2px 7px;
  background: rgba(232, 226, 214, 0.03);
  white-space: nowrap;
}
.spec.warn { color: var(--warn); border-color: rgba(214, 179, 106, 0.3); }

.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
}
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-family: var(--mono); font-size: 23px; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
.price b i { font-style: normal; font-size: 14px; margin-right: 1px; }
.price s { font-size: 12px; color: var(--dim); }

.card-link {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(232, 226, 214, 0.3);
  padding: 6px 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}
.card-link::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-link { border-color: var(--accent); }
.card-link:hover { background: var(--accent-soft); box-shadow: 0 0 18px -8px var(--accent); }
.card.is-locked .card-link { color: var(--dim); border-color: var(--line); pointer-events: auto; }

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; }
.pager button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}
.pager button:hover:not([disabled]) { border-color: var(--muted); color: var(--text); }
.pager button.active { border-color: var(--primary); color: var(--text); background: var(--primary-soft); }
.pager button[disabled] { opacity: 0.3; cursor: not-allowed; }

.empty {
  border: 1px dashed var(--line);
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}
.empty b { display: block; font-family: var(--mono); color: var(--text); margin-bottom: 6px; }

/* ---------- flow ---------- */
.flow { padding: 72px 0 24px; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.flow-step { background: rgba(15, 15, 30, 0.8); padding: 26px 22px; }
.flow-step b { display: block; font-family: var(--mono); font-size: 12px; color: var(--primary); letter-spacing: 0.16em; margin-bottom: 16px; }
.flow-step h3 { font-size: 16px; margin-bottom: 8px; }
.flow-step p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- faq ---------- */
.faq { padding: 64px 0 80px; }
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-soft); }
.faq-list details { border-bottom: 1px solid var(--line-soft); }
.faq-list details:not([open]) > *:not(summary) { display: none; }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 30px 17px 0;
  font-size: 14px;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 15px;
  font-family: var(--mono);
  color: var(--primary);
  font-size: 16px;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { max-width: 640px; padding: 0 30px 18px 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: rgba(10, 10, 20, 0.8); padding: 40px 0 30px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-brand { max-width: 360px; }
.footer-brand p { margin-top: 12px; font-size: 12px; color: var(--dim); line-height: 1.8; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--dim); margin: 0 0 10px; font-weight: 500; }
.footer-cols a, .footer-cols button { display: block; background: none; border: 0; padding: 3px 0; font-size: 14px; color: var(--muted); cursor: pointer; text-align: left; }
.footer-cols a:hover, .footer-cols button:hover { color: var(--text); }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12px; color: var(--dim); }

/* ---------- pages ---------- */
.page { padding: 40px 0 72px; min-height: 62vh; }
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 26px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
}
.backlink:hover { color: var(--accent); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.detail-left { position: sticky; top: 88px; }

.gallery { border: 1px solid var(--line); background: var(--surface); position: relative; }
.gallery-main { aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-strip { display: flex; gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line-soft); }
.gallery-strip button { flex: 1; aspect-ratio: 4/3; padding: 0; border: 0; background: var(--surface); cursor: pointer; opacity: 0.55; transition: opacity 0.15s; }
.gallery-strip button:hover, .gallery-strip button.active { opacity: 1; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.gallery-note { margin-top: 12px; font-size: 12px; color: var(--dim); line-height: 1.7; }

.detail-head .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.detail-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.detail-head .code { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.08em; margin-bottom: 10px; display: block; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 20px 0 6px; }
.detail-price b { font-family: var(--mono); font-size: 40px; color: var(--primary); letter-spacing: -0.03em; }
.detail-price b i { font-style: normal; font-size: 20px; }
.detail-price s { color: var(--dim); font-size: 14px; }
.detail-price span { font-size: 12px; color: var(--muted); }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin: 22px 0; }
.spec-grid div { background: rgba(15, 15, 30, 0.8); padding: 12px 14px; }
.spec-grid dt { font-size: 12px; color: var(--dim); margin-bottom: 3px; letter-spacing: 0.04em; }
.spec-grid dd { margin: 0; font-size: 14px; }
.spec-grid dd.ok { color: var(--ok); }
.spec-grid dd.warn { color: var(--warn); }

.buy-box { border: 1px solid var(--line); background: rgba(21, 21, 40, 0.7); padding: 20px; }
.buy-box h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 14px; }

.notice { display: flex; gap: 10px; font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 14px; }
.notice::before { content: "!"; font-family: var(--mono); color: var(--warn); flex: none; }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field .req { color: var(--primary); }
.input, .field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--r);
  min-height: 42px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23A09CC8' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 11.5px; color: var(--dim); margin-top: 5px; line-height: 1.6; }
.form-error { color: var(--bad); font-size: 12px; margin-top: 8px; min-height: 18px; }

/* ---------- pay / order ---------- */
.pay-wrap { max-width: 620px; margin: 0 auto; }
.pay-card { border: 1px solid var(--line); background: linear-gradient(170deg, rgba(27, 27, 51, 0.9), rgba(14, 14, 28, 0.9)); padding: 32px; position: relative; }
.pay-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.pay-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--dim); }
.pay-amount { font-family: var(--mono); font-size: 46px; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 4px; }
.pay-amount i { font-style: normal; font-size: 22px; color: var(--muted); }
.pay-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin: 24px 0; }
.pay-meta div { background: rgba(11, 11, 22, 0.7); padding: 12px 14px; }
.pay-meta dt { font-size: 11.5px; color: var(--dim); }
.pay-meta dd { margin: 3px 0 0; font-family: var(--mono); font-size: 14px; word-break: break-all; }

.countdown { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--warn); margin-bottom: 18px; }
.countdown b { font-family: var(--mono); font-size: 18px; }
.countdown.expired { color: var(--bad); }

.steps-mini { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.steps-mini li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.65; }
.steps-mini b { font-family: var(--mono); color: var(--accent); flex: none; font-weight: 500; }

.success-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid rgba(157, 179, 155, 0.5);
  color: var(--ok);
  font-size: 22px;
  margin-bottom: 18px;
  box-shadow: 0 0 26px -8px rgba(157, 179, 155, 0.5);
}

.timeline { list-style: none; margin: 26px 0 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  background: var(--line);
  border: 1px solid var(--bg);
}
.timeline li.done::before { background: var(--ok); box-shadow: 0 0 10px rgba(157, 179, 155, 0.6); }
.timeline li.current::before { background: var(--primary); box-shadow: 0 0 10px rgba(201, 168, 106, 0.7); }
.timeline b { display: block; font-size: 14px; font-weight: 500; }
.timeline span { font-size: 12px; color: var(--dim); }
.timeline p { font-size: 12px; color: var(--muted); margin-top: 3px; }

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  color: var(--muted);
}
.order-status.pending { color: var(--warn); border-color: rgba(214, 179, 106, 0.4); }
.order-status.paid, .order-status.delivering { color: var(--accent); border-color: rgba(232, 226, 214, 0.4); }
.order-status.completed { color: var(--ok); border-color: rgba(157, 179, 155, 0.4); }
.order-status.cancelled, .order-status.refund { color: var(--bad); border-color: rgba(201, 122, 109, 0.4); }

/* ---------- modal / drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.72);
  backdrop-filter: blur(3px);
  z-index: 50;
}
.modal {
  position: fixed;
  z-index: 51;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: var(--shadow);
}
.modal h3 { font-family: var(--sans); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.modal .modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.modal-close {
  position: absolute; right: 10px; top: 8px;
  background: none; border: 0; color: var(--muted);
  font-size: 22px; line-height: 1; padding: 8px; cursor: pointer;
}
.modal-close:hover { color: var(--text); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
  padding: 12px 18px;
  font-size: 14px;
  z-index: 60;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-left-color: var(--bad); }

/* ---------- misc ---------- */
.skeleton {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite;
  min-height: 320px;
  border: 1px solid var(--line-soft);
}
@keyframes shimmer { to { background-position: -120% 0; } }

.notfound { text-align: center; padding: 80px 20px; }
.notfound h2 { font-family: var(--sans); font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.notfound p { color: var(--muted); margin-bottom: 22px; }

.help-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: start; }
.help-toc { position: sticky; top: 90px; display: grid; gap: 2px; }
.help-toc a { font-size: 14px; color: var(--muted); padding: 7px 12px; border-left: 1px solid var(--line); }
.help-toc a:hover { color: var(--text); border-color: var(--primary); }
.help-body h2 { font-family: var(--sans); font-size: 23px; font-weight: 700; margin: 36px 0 12px; padding-top: 8px; }
.help-body h2:first-child { margin-top: 0; }
.help-body h3 { font-size: 15.5px; margin: 22px 0 6px; }
.help-body p, .help-body li { color: var(--muted); font-size: 14px; line-height: 1.85; }
.help-body ul, .help-body ol { padding-left: 20px; margin: 8px 0; }
.help-body code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 2px 6px; border: 1px solid var(--line-soft); }
.help-card { border: 1px solid var(--line-soft); padding: 18px 20px; background: rgba(21, 21, 40, 0.55); margin: 18px 0; }
.help-card b { color: var(--warn); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-panel { max-width: 520px; }
  .market-grid { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; padding: 16px 18px; }
  .filters-head { grid-column: 1 / -1; margin-bottom: 8px; }
  .f-group { margin-bottom: 14px; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-left { position: static; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .ticker-list span:nth-child(n+5) { display: none; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav { display: none; }
  .topbar-in { height: 60px; gap: 12px; }
  .hero { padding: 48px 0 34px; }
  .hero-sub { font-size: 14px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 34px; }
  .stat { padding: 14px 16px; }
  .stat b { font-size: 22px; }
  .ticker-label { display: block; font-size: 12px; letter-spacing: 0.1em; }
  .ticker-in { gap: 4px 0; }
  .ticker-list { width: 100%; gap: 4px 18px; }
  .ticker-list span:nth-child(n+3) { display: none; }
  .market { padding-top: 40px; }
  .filters { display: block; padding: 14px 16px; }
  .f-group { margin-bottom: 14px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow { padding-top: 52px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-tag { padding: 0; }
  .list-head { flex-wrap: wrap; gap: 10px; }
  .list-tools { width: 100%; flex-wrap: wrap; }
  .searchbox-search { flex: 1 1 100%; max-width: none; }
  .list-tools > .select { flex: 1 1 100%; }
  .pay-card { padding: 22px 18px; }
  .pay-amount { font-size: 38px; }
  .pay-meta { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; gap: 20px; }
  .help-toc { position: static; display: flex; flex-wrap: wrap; }
  .help-toc a { border-left: 0; border-bottom: 1px solid var(--line); padding: 5px 10px 5px 0; }
  .modal { padding: 22px 18px; }
  .footer-cols { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
