:root {
  --bg: #0b1020;
  --card: #141a33;
  --line: #262f52;
  --text: #eef1fb;
  --muted: #98a2c8;
  --brand: #4f6bff;
  --brand-2: #7a5cff;
  --ok: #21c08b;
  --warn: #ffb020;
  --bad: #ff5c6c;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #1e2a5c 0%, var(--bg) 60%);
  color: var(--text);
  font: 15px/1.6 "PingFang SC", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
  min-height: 100vh;
}

.wrap { max-width: 520px; margin: 0 auto; padding: 24px 16px 64px; }

header.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; font-weight: 700;
}
.brand h1 { font-size: 17px; margin: 0; }
.brand small { color: var(--muted); font-size: 12px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.card h2 { font-size: 15px; margin: 0 0 12px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
input, select {
  width: 100%; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #0e1430; color: var(--text);
  font-size: 15px; outline: none;
}
input:focus, select:focus { border-color: var(--brand); }

.row { display: flex; gap: 10px; align-items: flex-end; }
.row > * { flex: 1; }
.row .btn { flex: 0 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; margin-top: 16px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.big { padding: 14px; font-size: 16px; }

.msg { margin-top: 10px; font-size: 13px; min-height: 18px; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }

.plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer; position: relative; }
.plan.sel { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(79,107,255,.18); }
.plan .t { font-weight: 600; }
.plan .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.plan .p { position: absolute; right: 14px; top: 12px; color: var(--warn); font-weight: 700; }
.plan ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }

.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps div {
  flex: 1; text-align: center; font-size: 12px; color: var(--muted);
  padding: 7px 0; border-bottom: 2px solid var(--line);
}
.steps div.on { color: var(--text); border-color: var(--brand); font-weight: 600; }

.verdict { text-align: center; padding: 18px 0 6px; }
.verdict .badge { display: inline-block; padding: 7px 18px; border-radius: 999px; font-weight: 700; }
.badge.high { background: rgba(255,92,108,.16); color: var(--bad); }
.badge.medium { background: rgba(255,176,32,.16); color: var(--warn); }
.badge.low { background: rgba(33,192,139,.16); color: var(--ok); }
.verdict .score { font-size: 42px; font-weight: 800; margin-top: 10px; line-height: 1; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv .box { background: #0e1430; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kv .box b { display: block; font-size: 19px; }
.kv .box span { color: var(--muted); font-size: 12px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
th, td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
td.bad { color: var(--bad); }
td.ok { color: var(--ok); }

ul.tips { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.report-prompt {
  margin-top: 18px; padding: 14px; border: 1px solid rgba(79,107,255,.35);
  border-radius: 10px; background: rgba(79,107,255,.08); color: var(--text);
  font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere;
}
.report-prompt b { display: block; margin-bottom: 4px; color: var(--brand); }
.foot { color: var(--muted); font-size: 11.5px; text-align: center; margin-top: 22px; line-height: 1.9; }
.hidden { display: none !important; }
.paybox { text-align: center; }
.paybox .amt { font-size: 34px; font-weight: 800; margin: 10px 0; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }