:root {
  --bg: #0d0f14;
  --panel: #161a23;
  --panel2: #1d2230;
  --text: #f2f0ea;
  --muted: #9a9fb0;
  --green: #25d366;
  --purple: #7c5cff;
  --line: rgba(255, 255, 255, 0.09);
  --danger: #ff6b6b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1100px 600px at 80% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
              radial-gradient(900px 500px at 0% 100%, rgba(37, 211, 102, 0.12), transparent 55%), var(--bg);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
a { color: var(--green); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 18px 60px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 26px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: 0.5px; }
.logo { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #7c5cff, #25d366); display: grid; place-items: center; font-size: 18px; }
.nav a { color: var(--muted); margin-left: 18px; font-size: 14px; }
.nav a:hover { color: var(--text); }
.hero { padding: 42px 0 26px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); margin: 0 0 14px; line-height: 1.12; }
.hero h1 span { background: linear-gradient(90deg, #8f7bff, #25d366); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 16px; max-width: 640px; line-height: 1.7; margin: 0; }
.badge { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.card { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.price { font-size: 34px; font-weight: 800; margin: 10px 0 2px; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.plan-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.plan-line:last-of-type { border-bottom: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; border-radius: 12px; border: 0; cursor: pointer; font-size: 14px; font-weight: 700; color: #07130c; background: var(--green); transition: transform .15s ease, opacity .15s; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn.secondary { background: var(--purple); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
label { display: block; color: var(--muted); font-size: 12px; margin: 12px 0 6px; }
input, select, textarea { width: 100%; background: #0f131b; border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 11px 12px; font-size: 14px; outline: none; }
input:focus, select:focus { border-color: var(--purple); }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { flex: 1; text-align: center; padding: 9px; border-radius: 10px; cursor: pointer; color: var(--muted); border: 1px solid var(--line); font-size: 13px; }
.tab.active { background: rgba(124, 92, 255, .16); color: var(--text); border-color: rgba(124, 92, 255, .5); }
.status { font-size: 13px; margin-top: 10px; color: var(--muted); min-height: 18px; }
.status.err { color: var(--danger); }
.status.ok { color: var(--green); }
.panel { max-width: 440px; margin: 30px auto; }
.hide { display: none !important; }
.balance { font-size: 46px; font-weight: 800; margin: 4px 0; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: rgba(37, 211, 102, .14); color: var(--green); }
.pill.pending { background: rgba(255, 196, 0, .14); color: #ffc400; }
.pill.claimed { background: rgba(255, 196, 0, .14); color: #ffc400; }
.pill.paid { background: rgba(37, 211, 102, .14); color: var(--green); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #0f131b; border: 1px dashed var(--line); border-radius: 8px; padding: 8px; margin-top: 8px; word-break: break-all; }
.footer { margin-top: 50px; color: #6b7080; font-size: 12px; text-align: center; }
.qr { width: 220px; height: 220px; margin: 22px auto; border-radius: 14px; background: repeating-linear-gradient(45deg, #1b2030, #1b2030 10px, #20263a 10px, #20263a 20px); display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; padding: 20px; }
.note { border: 1px solid rgba(255, 196, 0, .25); background: rgba(255, 196, 0, .07); color: #ffd766; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.6; }
@media (max-width: 640px) { .nav a { margin-left: 10px; } .hero { padding-top: 24px; } }
