:root {
  --red: #ff2442;
  --red-dark: #e01e3a;
  --red-light: #ff6b81;
  --red-bg: #fff0f2;
  --bg: #f6f4f3;
  --card: #ffffff;
  --text: #333333;
  --muted: #8d8d8d;
  --faint: #c8c8c8;
  --line: #f0eceb;
  --gold-0: #2a1c10;
  --gold-1: #5a3a18;
  --gold-text: #f7ecd0;
  --gold-btn: #f3e0ae;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 22px 50px rgba(42, 16, 20, 0.12);
  --radius: 20px;
  --nav-h: 68px;
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(900px 420px at 88% -10%, #ffe4e8 0%, rgba(255, 228, 232, 0) 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(240, 236, 235, 0.9);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #555;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--red);
  background: var(--red-bg);
}
.nav-cta { margin-left: 8px; }
#demo { scroll-margin-top: 84px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 36, 66, 0.22);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost {
  background: #fff;
  color: var(--red);
  border-color: rgba(255, 36, 66, 0.35);
}
.btn-ghost:hover { background: var(--red-bg); }
.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
  padding: 54px 0 28px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(255, 36, 66, 0.14);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}
.kicker i {
  font-style: normal;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin-bottom: 14px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.lede {
  max-width: 460px;
  margin-bottom: 22px;
  color: #5c5c5c;
  font-size: 16px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.platform-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.platform-line a { color: var(--red); font-weight: 700; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #444;
  font-size: 12px;
  font-weight: 600;
}
.chip.off { color: var(--faint); }

.stage {
  position: relative;
  height: 620px;
}
.stage-glow {
  position: absolute;
  inset: 40px 20px 30px 40px;
  border-radius: 48px;
  background:
    radial-gradient(circle at 30% 40%, #fff 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(160deg, #fff5f6 0%, #ffe1e6 48%, #fff 100%);
}
.device-desk,
.device-phone {
  position: absolute;
  background: #fff;
  box-shadow: var(--shadow-lift);
}
.device-desk {
  right: 0;
  top: 72px;
  width: min(500px, 86%);
  height: 390px;
  border-radius: 16px;
  border: 1px solid #ece7e6;
  overflow: hidden;
  transform: rotate(2.4deg);
  animation: rise 0.7s ease both;
}
.device-phone {
  left: 8px;
  top: 36px;
  width: 246px;
  height: 500px;
  border-radius: 32px;
  border: 8px solid #1c1c1c;
  overflow: hidden;
  transform: rotate(-7deg);
  z-index: 2;
  animation: rise 0.7s 0.08s ease both;
}
.desk-bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #faf8f7;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #777;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ffd0d6; }
.dot:nth-child(2) { background: #ffb3bd; }
.dot:nth-child(3) { background: var(--red-light); }
.desk-bar strong { margin-left: 6px; color: #333; font-weight: 700; }
.desk-body { display: grid; grid-template-columns: 132px 1fr; height: calc(100% - 36px); }
.desk-side {
  padding: 14px 10px;
  background: #fff;
  border-right: 1px solid var(--line);
}
.desk-side b { display: block; font-size: 13px; }
.desk-side small { color: var(--muted); font-size: 11px; }
.side-item {
  margin-top: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 12px;
  color: #666;
}
.side-item.on {
  background: var(--red-bg);
  color: var(--red);
  font-weight: 700;
}
.desk-main { padding: 14px; background: #fcfbfb; }
.fake-video {
  height: 168px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.28)),
    linear-gradient(135deg, #ff8a9a, #ff2442 55%, #7a1020);
  position: relative;
  color: #fff;
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 14px;
}
.res-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 11px;
  font-weight: 700;
}
.quality-row { display: flex; gap: 6px; margin-top: 10px; }
.q {
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.2;
}
.q strong { display: block; }
.q em { font-style: normal; color: var(--muted); }
.q.on { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.phone-screen { height: 100%; background: var(--bg); padding: 14px 12px; }
.phone-title { text-align: center; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.announce {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--red-bg);
  border: 1px solid rgba(255, 36, 66, 0.12);
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
}
.announce b {
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 10px;
}
.phone-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.phone-input {
  height: 74px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid var(--line);
  color: #b5b5b5;
  font-size: 11px;
  padding: 8px;
}
.phone-btn {
  margin-top: 8px;
  height: 34px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.phone-hint { margin: 8px 2px 0; font-size: 10px; color: var(--muted); line-height: 1.4; }
.float-pills {
  position: absolute;
  right: 18px;
  bottom: 42px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  animation: rise 0.7s 0.16s ease both;
}
.float-pills span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(255, 36, 66, 0.12);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
}

.section { padding: 28px 0 10px; }
.section h2 {
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.section-lead { margin-bottom: 18px; color: var(--muted); }

.steps, .trio, .cap-grid, .feature-grid, .price-grid {
  display: grid;
  gap: 14px;
}
.steps { grid-template-columns: repeat(3, 1fr); }
.trio { grid-template-columns: 1.15fr 1fr 1fr; }
.cap-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
.price-grid { grid-template-columns: 1.15fr 1fr 1fr; align-items: stretch; }

.card {
  background: var(--card);
  border: 1px solid rgba(240, 236, 235, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.step-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}
.card h3 { margin: 8px 0; font-size: 18px; }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.card-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

.product-card { min-height: 210px; }
.product-card.mp { background: linear-gradient(180deg, #fff 0%, #fff7f8 100%); }
.product-card .tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.product-card.desk .tag { background: #1a1208; }
.product-card.api .tag { background: #333; }

.cap-list, .plain-list { margin: 0; padding: 0; list-style: none; }
.cap-list li, .plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.cap-list li span, .plain-list li span { color: var(--muted); }

.marquee {
  overflow: hidden;
  margin: 8px 0 20px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.page-hero { padding: 42px 0 10px; }
.page-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 28px;
}
.field { margin-bottom: 12px; }
.field span, .label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}
textarea, input[type="text"], input[type="password"], input[type="email"] {
  width: 100%;
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
textarea:focus, input:focus { border-color: rgba(255, 36, 66, 0.45); background: #fff; }
.sample-row, .result-tabs, .action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sample-row { margin-bottom: 12px; }
.mini {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.mini.on, .result-tabs button.on {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.full { width: 100%; }
.status {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.status.err { color: var(--red-dark); }
.status.ok { color: #0f8a4b; }
details.token {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
details.token summary { cursor: pointer; font-weight: 700; }
.token-body { margin-top: 10px; }
.result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.result-head h2 { margin: 0; font-size: 18px; }
.result-tabs { margin-bottom: 12px; }
.result-tabs button { border: 1px solid var(--line); background: #fff; }
.frame {
  position: relative;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: #161616;
  color: #fff;
}
.frame img, .frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}
.frame-empty, .poster {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)),
    linear-gradient(145deg, #ff8b9b, #ff2442 60%, #5c1020);
}
.poster b { font-size: 22px; }
.counter { margin: 8px 0; font-size: 13px; color: var(--muted); }
.pager { display: flex; gap: 8px; margin-bottom: 8px; }
.copy-box {
  min-height: 180px;
  padding: 16px;
  border-radius: 16px;
  background: #fafafa;
  border: 1px solid var(--line);
  white-space: pre-wrap;
}
.choice {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--red-bg);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3f3;
  min-height: 72px;
}
.gallery button.on { border-color: var(--red); }
.gallery img { width: 100%; height: 72px; object-fit: cover; }
.swatch {
  height: 72px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}
.disclaimer {
  margin: 8px 0 36px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed rgba(255, 36, 66, 0.25);
  color: #666;
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: center;
}
.steps-v { display: grid; gap: 10px; }
.step-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: start;
}
.code {
  margin: 0;
  max-width: 100%;
  padding: 16px;
  overflow: auto;
  border-radius: 16px;
  background: #1c1214;
  color: #ffe8ec;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price {
  position: relative;
  display: flex;
  flex-direction: column;
}
.price .amount {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price .amount small { font-size: 14px; font-weight: 700; }
.price.featured {
  background: #fff7f8;
  border-color: rgba(255, 36, 66, 0.35);
}
.recommend {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.groups { display: grid; gap: 14px; padding-bottom: 28px; }
.chip-wall { display: flex; flex-wrap: wrap; gap: 8px; }
.faq { display: grid; gap: 10px; padding-bottom: 20px; }
.faq details {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: #555; }

.site-footer {
  margin-top: 20px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 14px; }
.footer-links a:hover { color: var(--red); }

.dialog {
  width: min(420px, calc(100% - 28px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow-lift);
}
.dialog::backdrop { background: rgba(20, 10, 12, 0.45); }
.dialog-card { padding: 22px; }
.qr-code {
  width: min(220px, 42vh);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 8px;
  display: block;
  object-fit: contain;
  background: #fff;
}
.dialog h3 { text-align: center; margin-bottom: 6px; }
.dialog p { text-align: center; color: #666; }
.search-name {
  margin: 10px 0 14px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; }
}
.device-phone { animation-name: rise-phone; }
@keyframes rise-phone {
  from { opacity: 0; transform: translateY(18px) rotate(-7deg); }
  to { opacity: 1; transform: rotate(-7deg); }
}
.device-desk { animation-name: rise-desk; }
@keyframes rise-desk {
  from { opacity: 0; transform: translateY(18px) rotate(2.4deg); }
  to { opacity: 1; transform: rotate(2.4deg); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
    padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links, .nav > .nav-cta { display: none; }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    width: 100%;
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav.is-open .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav.is-open > .nav-cta { display: inline-flex; width: 100%; margin: 8px 0 0; }
  .hero, .steps, .trio, .cap-grid, .feature-grid, .demo-grid, .split, .compare, .price-grid, .auth-layout, .dash-top, .metric-grid {
    grid-template-columns: 1fr;
  }
  .hero > *, .split > *, .demo-grid > *, .compare > *, .price-grid > * { min-width: 0; }
  .hero { padding-top: 28px; }
  .hero h1, .page-hero h1 { font-size: 36px; }
  .section h2 { font-size: 24px; }
  .stage { height: auto; padding: 8px 0 4px; }
  .stage-glow { display: none; }
  .device-phone, .device-desk {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    margin: 0 auto 16px;
    animation: none;
  }
  .device-phone { width: min(246px, 70vw); }
  .device-desk { width: 100%; height: 360px; }
  .float-pills {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 8px;
  }
  textarea, input[type="text"], input[type="password"], input[type="email"] { font-size: 16px; }
  .frame { height: 240px; }
  .dialog { max-height: calc(100dvh - 24px); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .desk-body { grid-template-columns: 96px 1fr; }
  .desk-side { padding: 10px 8px; }
  .side-item { padding: 6px; font-size: 11px; }
  .fake-video { height: 132px; }
  .footer-row { flex-direction: column; }
  .site-footer { padding-bottom: max(36px, env(safe-area-inset-bottom)); }
  .sample-row .mini, .result-tabs button, .pager .mini { min-height: 40px; }
  .captcha-row { grid-template-columns: 1fr; }
  .token-actions .mini { flex: 1; }
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 36px;
}
.auth-tabs { display: flex; gap: 16px; margin-bottom: 24px; }
.auth-tabs button {
  min-height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.auth-tabs button.is-on { background: var(--red); border-color: var(--red); color: #fff; }
#login-form > .btn,
#register-form > .btn { margin-top: 8px; }
.captcha-row {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 14px;
  align-items: center;
}
.captcha-row img {
  width: 148px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fafafa;
  object-fit: cover;
  cursor: pointer;
}
.inline-row { display: flex; gap: 8px; }
.inline-row input { flex: 1; min-width: 0; }
.inline-row .mini { flex: none; }
.form-msg { min-height: 22px; margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.form-msg.is-error { color: var(--red-dark); }
.form-msg.is-ok { color: #1f7a45; }
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}
.dash-head h2 { margin: 0; }
.dash-top, .metric-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.dash-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-value { margin: 6px 0 0; font-size: 28px; font-weight: 900; letter-spacing: -0.04em; }
.metric-value small { font-size: 14px; font-weight: 700; color: var(--muted); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-right: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red-bg);
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
}
.tag.ok { background: #e8f7ee; color: #1f7a45; }
.tag.warn { background: #fff6e8; color: #9a5b00; }
.tag.muted { background: #f3f3f3; color: #666; }
.progress {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: #f3eeed;
  overflow: hidden;
}
.progress span { display: block; height: 100%; background: var(--red); }
.token-line {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
}
.token-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.token-actions .mini, .inline-row .mini { cursor: pointer; }
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  margin-top: 12px;
}
.bar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.bar i {
  display: block;
  border-radius: 8px 8px 3px 3px;
  background: var(--red);
  min-height: 4px;
}
.bar em {
  margin-top: 6px;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.dash-block { margin-bottom: 28px; }

@media (max-width: 980px) {
  .auth-layout, .dash-top, .metric-grid { grid-template-columns: 1fr; }
  .auth-layout > *, .dash-top > *, .metric-grid > * { min-width: 0; }
  .dash-head { flex-wrap: wrap; align-items: flex-start; }
}
.pay-panel { margin-top: 14px; }
.pay-head h3 { margin-bottom: 4px; }
.pay-channels { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.pay-channels .chip.off { border-style: dashed; }
.pay-group { margin-top: 16px; }
.pay-group-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.pay-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pay-grid.subs { grid-template-columns: 1.15fr 1fr; }
.pay-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.pay-card.featured {
  background: #fff7f8;
  border-color: rgba(255, 36, 66, 0.35);
}
.pay-card h4 { margin: 0; font-size: 16px; }
.pay-card .amount {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pay-card .amount small { font-size: 13px; font-weight: 700; }
.pay-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.pay-actions .mini { flex: 1; }
.pay-orders-title { margin: 22px 0 0; font-size: 16px; }
.pay-order {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.pay-order strong { font-weight: 700; }
.pay-amount {
  margin: 0;
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--red);
}
.pay-dialog .muted { text-align: center; }

@media (max-width: 980px) {
  .pay-grid, .pay-grid.subs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .captcha-row { grid-template-columns: 1fr; }
  .captcha-row img { width: 100%; }
  .token-actions .mini { flex: 1; }
  .pay-grid, .pay-grid.subs { grid-template-columns: 1fr; }
  .pay-order { grid-template-columns: 1fr 1fr; }
}
