:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-tint: #f8fafc;
  --fg: #0b1221;
  --fg-soft: #334155;
  --muted: #5b687d;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --brand: #1d4ed8;
  --brand-deep: #1e3a8a;
  --brand-soft: rgba(37, 99, 235, 0.08);
  --brand-ink: #ffffff;
  --accent: #b45309;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --ok: #047857;
  --ok-soft: rgba(16, 185, 129, 0.12);
  --warn: #b45309;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --risk: #be123c;
  --risk-soft: rgba(244, 63, 94, 0.11);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px -8px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 28px 64px -16px rgba(15, 23, 42, 0.14), 0 8px 20px -8px rgba(30, 58, 138, 0.08);
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1140px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 10px;
  background: var(--brand); color: var(--brand-ink);
  padding: 8px 14px; border-radius: 8px; z-index: 50;
}

/* Header */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 250, 252, 0.84);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; gap: 24px; height: 66px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; color: var(--fg);
  letter-spacing: -0.02em; text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25); flex-shrink: 0; }
.logo-text { color: var(--fg); }
.logo-text em { font-style: normal; color: var(--brand); font-weight: 700; }

header.site nav { display: flex; gap: 22px; flex: 1; justify-content: center; }
header.site nav a {
  color: var(--fg-soft); font-size: 14px; font-weight: 500;
  padding: 6px 2px; transition: color 0.15s ease;
}
header.site nav a:hover { color: var(--brand); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg-soft); font-size: 13px; font-weight: 500;
}
.lang:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 11px;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; border-radius: 9px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
  color: var(--brand-ink);
  box-shadow: 0 8px 20px -6px rgba(29, 78, 216, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  box-shadow: 0 12px 26px -6px rgba(29, 78, 216, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: rgba(29, 78, 216, 0.45); color: var(--brand-deep); }

.btn-ghost {
  background: transparent;
  color: var(--fg-soft);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); color: var(--fg); }

.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.38);
  outline-offset: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 68px 0 76px;
  background:
    radial-gradient(960px 440px at 50% -60px, rgba(37, 99, 235, 0.11), transparent 70%),
    radial-gradient(640px 320px at 85% 40px, rgba(245, 158, 11, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 72%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-top { text-align: center; max-width: 820px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--brand-deep);
  margin-bottom: 22px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }

.hero h1 {
  font-size: clamp(32px, 4.8vw, 52px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--fg);
}
.hero h1 .hl {
  background: linear-gradient(135deg, var(--brand-deep) 0%, #2563eb 65%, #0284c7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: clamp(16.5px, 2vw, 19px);
  color: var(--muted);
  max-width: 680px; margin: 0 auto 30px;
  line-height: 1.7;
}

.hero-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.hero-sublinks {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted);
}
.hero-sublinks a { color: var(--fg-soft); font-weight: 500; }
.hero-sublinks a:hover { color: var(--brand); }

.trust-strip {
  margin: 26px auto 0;
  display: flex; align-items: center; justify-content: center;
  gap: 10px 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.trust-item { display: inline-flex; align-items: center; gap: 6px; }
.trust-item svg { width: 15px; height: 15px; color: var(--ok); }

/* Desktop App Showcase Mockup */
.showcase {
  margin: 46px auto 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 13px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--line);
}
.window-dots { display: flex; align-items: center; gap: 7px; }
.window-dots span { width: 11px; height: 11px; border-radius: 50%; display: block; }
.window-dots span:nth-child(1) { background: #fb7185; }
.window-dots span:nth-child(2) { background: #fbbf24; }
.window-dots span:nth-child(3) { background: #34d399; }

.window-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-btn {
  border: 1px solid transparent; background: transparent;
  padding: 6px 13px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all 0.15s ease;
  font-family: inherit;
}
.tab-btn:hover { color: var(--fg); background: rgba(15, 23, 42, 0.04); }
.tab-btn[aria-selected="true"] {
  background: var(--surface);
  color: var(--brand-deep);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.window-meta {
  font-size: 12.5px; color: var(--muted); font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tab-panel { padding: 20px 22px 22px; }
.tab-panel[hidden] { display: none; }

.panel-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.panel-title { font-weight: 700; font-size: 15px; color: var(--fg); }
.panel-badge {
  font-size: 12px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep);
}
.panel-badge.private { background: var(--accent-soft); color: var(--accent); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.demo-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  min-width: 580px; font-variant-numeric: tabular-nums;
}
.demo-table th, .demo-table td {
  padding: 11px 16px; text-align: right; border-bottom: 1px solid var(--line);
}
.demo-table th:first-child, .demo-table td:first-child { text-align: left; }
.demo-table thead th {
  background: #f8fafc; color: var(--muted);
  font-weight: 600; font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase;
}
.demo-table tbody tr:last-child td { border-bottom: 0; }
.demo-table tbody tr:hover { background: #fafcff; }
.demo-table .strong { font-weight: 700; color: var(--fg); }
.demo-table .margin-cell { color: var(--ok); font-weight: 700; }

.heat { border-radius: 6px; padding: 4px 10px; font-weight: 700; display: inline-block; min-width: 68px; text-align: center; }
.heat-ok { background: var(--ok-soft); color: var(--ok); }
.heat-mid { background: var(--warn-soft); color: var(--warn); }
.heat-low { background: var(--risk-soft); color: var(--risk); }

.panel-foot {
  margin: 12px 0 0; font-size: 12.5px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* Sections */
section.block { padding: 78px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand); margin-bottom: 8px;
}
section.block h2 {
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 12px;
}
section.block p.sub { color: var(--muted); margin: 0; font-size: 16.5px; }

/* Download & Install Section */
.dl-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.dl-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  position: relative;
}
.dl-card.recommended {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 16px 36px -12px rgba(29, 78, 216, 0.16), var(--shadow-sm);
}
.dl-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.os-id { display: flex; align-items: center; gap: 12px; }
.os-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-alt); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--fg);
}
.os-icon svg { width: 24px; height: 24px; }
.os-id h3 { margin: 0; font-size: 20px; font-weight: 700; }
.os-id p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ver-badge {
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-alt); color: var(--fg-soft); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; flex-shrink: 0;
}

.dl-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.dl-actions .btn { width: 100%; justify-content: space-between; padding: 13px 18px; }
.dl-btn-left { display: inline-flex; align-items: center; gap: 9px; }
.dl-size { font-size: 12.5px; opacity: 0.85; font-weight: 500; font-variant-numeric: tabular-nums; }

.install-steps {
  margin: 0; padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none; counter-reset: st;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 13.8px; color: var(--fg-soft);
}
.install-steps li { counter-increment: st; padding-left: 26px; position: relative; }
.install-steps li::before {
  content: counter(st);
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.install-note {
  margin: 14px 0 0; padding: 10px 12px;
  background: var(--surface-tint); border: 1px solid var(--line); border-radius: 9px;
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
}
.install-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; background: rgba(15, 23, 42, 0.06);
  padding: 1px 5px; border-radius: 4px; color: var(--fg);
}

.checksum-box { margin-top: 22px; }
.checksum-box details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 18px;
}
.checksum-box summary { font-size: 14px; color: var(--fg-soft); cursor: pointer; font-weight: 600; }
.checksum-list {
  margin: 12px 0 0; padding: 0; list-style: none;
  display: grid; gap: 8px; font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.checksum-list li {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 10px; background: var(--bg); border-radius: 8px; border: 1px solid var(--line);
}
.checksum-list code { color: var(--fg-soft); word-break: break-all; }

/* Feature & Pain Cards */
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.icon-box {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-deep);
  display: grid; place-items: center; margin-bottom: 14px;
}
.icon-box.amber { background: var(--accent-soft); color: var(--accent); }
.icon-box svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* Workflow Steps */
ol.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
ol.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-weight: 800; font-size: 14px; margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
ol.steps h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; }
ol.steps p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Pricing */
.pricing {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.plan.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 18px 36px -14px rgba(29, 78, 216, 0.2);
}
.plan .tag {
  font-size: 12px; font-weight: 700; color: var(--brand);
  letter-spacing: 0.04em; text-transform: uppercase; min-height: 20px;
}
.plan h3 { margin: 6px 0 4px; font-size: 21px; font-weight: 800; }
.plan .price { font-size: 36px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .alt-price { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; color: var(--fg-soft); font-size: 14.5px; flex: 1; }
.plan li { margin: 9px 0; padding-left: 22px; position: relative; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 800;
}
.plan .btn { width: 100%; }
.fineprint { font-size: 13px; color: var(--muted); margin-top: 22px; }

/* FAQ */
.faq-list { max-width: 820px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--muted); line-height: 1; }
.faq-list details[open] summary::after { content: "−"; color: var(--brand); }
.faq-list details p { color: var(--muted); margin: 12px 0 0; font-size: 14.5px; }

/* Contact CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 46px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #ffffff; margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.cta-banner p { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 560px; font-size: 15.5px; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-light { background: #ffffff; color: var(--brand-deep); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }
.btn-light-ghost { background: rgba(255, 255, 255, 0.12); color: #ffffff; border-color: rgba(255, 255, 255, 0.28); }
.btn-light-ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 34px 0;
  font-size: 13.5px;
  color: var(--muted);
}
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer.site a { color: var(--fg-soft); }
footer.site a:hover { color: var(--brand); }

/* Legal subpages */
.legal { padding: 48px 0 64px; max-width: 820px; }
.legal h1 { font-size: 28px; }
.legal h2 { font-size: 19px; margin-top: 30px; }
.draft-banner { border: 1px solid var(--accent); color: var(--accent); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 16px 0; }

@media (max-width: 780px) {
  .wrap { padding: 0 16px; }
  header.site nav { display: none; }
  .hero { padding: 48px 0 56px; }
  .hero h1 br { display: none; }
  section.block { padding: 56px 0; }
  .cta-banner { padding: 34px 24px; }
  .tab-panel { padding: 16px; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-card { padding: 20px; }
  .os-id h3 { font-size: 17.5px; }
  .dl-actions .btn { padding: 12px 14px; font-size: 14px; white-space: normal; gap: 8px; }
  .dl-btn-left { text-align: left; }
  .dl-size { flex-shrink: 0; white-space: nowrap; }
}

/* Online Checkout Modal */
.pay-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.pay-backdrop[hidden] { display: none; }
.pay-dialog {
  width: 100%; max-width: 480px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 24px;
  position: relative;
}
.pay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pay-head h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.pay-plan-pill {
  display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep); font-size: 13px; font-weight: 600;
}
.pay-close {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1;
}
.pay-close:hover { background: var(--bg-soft); color: var(--fg); }
.pay-field { margin-bottom: 14px; }
.pay-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--fg-soft); }
.pay-field input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 10px 12px; font-size: 14.5px; font-family: inherit;
  background: var(--surface); color: var(--fg);
}
.pay-field input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pay-method {
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 11px 12px;
  background: var(--surface); cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.pay-method strong { display: block; font-size: 14px; color: var(--fg); }
.pay-method span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pay-method[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.pay-method:disabled { opacity: 0.58; cursor: not-allowed; background: var(--bg-soft); }
.pay-error {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 8px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13.5px;
}
.pay-status-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; font-size: 14px; margin-bottom: 14px;
}
.pay-token-box {
  width: 100%; box-sizing: border-box; min-height: 92px;
  font-family: var(--mono); font-size: 12.5px; padding: 10px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface);
  resize: none; margin: 10px 0;
}
.pay-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.pay-actions .btn { min-width: 130px; }
