:root {
  --ink: #171a17;
  --muted: #686f67;
  --paper: #f4f1e9;
  --card: rgba(255,255,255,.78);
  --line: rgba(23,26,23,.12);
  --lime: #c9ff54;
  --green: #1c5a40;
  --red: #b83d32;
  --shadow: 0 24px 70px rgba(31,43,34,.10);
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background:
  radial-gradient(circle at 10% 0%, rgba(201,255,84,.34), transparent 34rem),
  linear-gradient(180deg, #f7f4ec 0%, #ece8dd 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh; overflow-x:hidden;
}
a { color: inherit; text-decoration: none; }
.site-header { max-width: 1180px; margin: auto; height: 82px; padding: 0 28px; display:flex; align-items:center; justify-content:space-between; }
.brand { display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:-.02em; }
.brand-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:var(--ink); color:var(--lime); }
nav { display:flex; gap:24px; font-size:14px; font-weight:650; }
main { max-width: 1180px; margin:auto; padding: 50px 28px 90px; }
.hero { max-width:860px; padding:62px 0 54px; }
.eyebrow { font-size:12px; font-weight:850; letter-spacing:.16em; color:var(--green); text-transform:uppercase; }
h1 { font-size:clamp(42px,7vw,88px); line-height:.98; letter-spacing:-.065em; margin:18px 0 24px; }
h1 span { color:var(--green); }
h2 { margin:8px 0 16px; font-size:26px; letter-spacing:-.035em; }
p { color:var(--muted); line-height:1.75; }
.hero p { max-width:650px; font-size:18px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }
.button { appearance:none; border:1px solid var(--line); border-radius:14px; padding:13px 20px; font:inherit; font-weight:750; cursor:pointer; transition:.2s ease; display:inline-flex; justify-content:center; }
.button:hover { transform:translateY(-2px); }
.button.primary { background:var(--ink); color:#fff; border-color:var(--ink); box-shadow:0 10px 30px rgba(23,26,23,.18); }
.button.ghost { background:rgba(255,255,255,.45); }
.button.disabled { cursor:not-allowed; color:var(--muted); background:rgba(255,255,255,.35); }
.button.full { width:100%; }
.metrics { display:grid; grid-template-columns:repeat(2,1fr); border:1px solid var(--line); border-radius:22px; overflow:hidden; background:rgba(255,255,255,.44); }
.metrics article { padding:28px; display:flex; flex-direction:column; gap:8px; border-right:1px solid var(--line); }
.metrics article:last-child { border:0; }
.metrics strong { font-size:30px; letter-spacing:-.04em; }
.metrics span { color:var(--muted); font-size:14px; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:18px; }
.steps > div { padding:30px; min-height:210px; border-radius:22px; background:var(--card); border:1px solid rgba(255,255,255,.8); box-shadow:var(--shadow); }
.steps b { color:var(--green); font-size:13px; letter-spacing:.12em; }
.steps h3 { margin:46px 0 8px; font-size:22px; }
.steps p { margin:0; font-size:14px; }
.form-shell { display:grid; grid-template-columns:1fr minmax(360px,480px); gap:70px; align-items:center; min-height:650px; }
.form-shell > *, .form-card { min-width:0; }
.form-copy h1 { font-size:clamp(48px,6vw,76px); }
.card { background:var(--card); border:1px solid rgba(255,255,255,.88); border-radius:24px; box-shadow:var(--shadow); backdrop-filter:blur(16px); }
.form-card { padding:34px; display:flex; flex-direction:column; gap:18px; }
.form-card.compact { width:min(100%,460px); text-align:center; }
label { display:flex; flex-direction:column; gap:8px; font-size:13px; font-weight:750; text-align:left; }
label small { color:var(--green); font-weight:700; }
input, textarea { width:100%; border:1px solid var(--line); background:rgba(255,255,255,.74); border-radius:12px; padding:13px 14px; font:inherit; outline:none; color:var(--ink); }
input:focus, textarea:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(28,90,64,.10); }
.fine-print { font-size:12px; margin:0; text-align:center; }
.center-panel { min-height:650px; display:grid; place-items:center; }
.code-icon { width:64px; height:64px; border-radius:20px; display:grid; place-items:center; margin:auto; background:var(--lime); font-size:28px; }
.compact h1 { font-size:38px; margin:12px 0 0; }
.test-code { padding:14px; background:#f2f9df; border:1px dashed #9eaf6a; border-radius:12px; color:#425024; }
.flash { position:relative; max-width:720px; margin:0 auto 18px; padding:14px 18px; border-radius:14px; font-weight:700; }
.flash.success { background:#e7f5df; color:#28542d; }
.flash.error { background:#fae4e0; color:#812e27; }
.account-head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:32px; }
.account-head h1 { font-size:56px; margin:12px 0 4px; }
.account-head p { margin:0; }
.account-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.status-card { padding:24px; display:flex; flex-direction:column; gap:14px; }
.status-card span { color:var(--muted); font-size:13px; }
.status-card strong { font-size:21px; }
.status.active, .pill.active { color:var(--green); }
.status.disabled, .pill.disabled { color:var(--red); }
.subscription-card { margin-top:18px; padding:32px; }
.copy-row { display:flex; gap:10px; margin-top:20px; }
.copy-row input { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:13px; }
.admin-metrics { margin-bottom:18px; }
.admin-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.switch-row { flex-direction:row; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); }
.switch-row input { width:20px; height:20px; }
.table-card { margin-top:18px; padding:28px; }
.section-title { display:flex; justify-content:space-between; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { padding:15px 12px; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; }
th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
code { padding:5px 8px; border-radius:8px; background:rgba(23,26,23,.06); }
.pill { display:inline-flex; padding:5px 9px; border-radius:999px; background:rgba(23,26,23,.06); font-size:12px; font-weight:800; }
.table-action { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.table-action select { width:auto; min-width:118px; padding:7px 28px 7px 9px; border-radius:9px; font-size:12px; }
.text-button { border:0; background:transparent; color:var(--green); font:inherit; font-weight:800; cursor:pointer; }
.text-button.danger { color:var(--red); }
.empty-row, .empty-state { text-align:center; color:var(--muted); }
.empty-state { padding:70px 30px; max-width:560px; }
footer { padding:30px; text-align:center; color:var(--muted); font-size:12px; }
@media (max-width:800px) {
  main { padding:24px 20px 70px; width:100%; }
  .site-header { height:70px; }
  .hero { padding-top:34px; }
  .metrics, .steps, .account-grid { grid-template-columns:1fr; }
  .metrics article { border-right:0; border-bottom:1px solid var(--line); }
  .form-shell { display:block; width:100%; min-width:0; }
  .form-shell .form-copy { margin-bottom:24px; }
  .admin-grid { grid-template-columns:1fr; gap:24px; }
  .form-card { width:100%; max-width:100%; min-width:0; padding:28px 22px; }
  input, textarea { min-width:0; max-width:100%; }
  .form-copy h1 { font-size:48px; }
  .account-head { align-items:flex-start; gap:20px; }
  .account-head h1 { font-size:42px; }
  .copy-row, .account-head { flex-direction:column; }
  .copy-row .button { width:100%; }
}
