:root {
  --bg: #0f1218; --card: #181c25; --line: #262c39; --text: #e6e9ef; --muted: #8b93a7;
  --primary: #4f7cff; --clear: #35c26b; --low: #9bd15a; --medium: #e7c14a; --high: #f2923c; --critical: #f2545b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
.wrap { max-width: 640px; margin: 0 auto; padding: 28px 24px 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }

h1 { font-size: 20px; margin: 0 0 12px; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 22px 0 10px; }
.lead { margin: 0 0 14px; }
.disclosure { margin: 0 0 14px; padding-left: 18px; }
.disclosure li { margin: 4px 0; }
.note { color: var(--muted); font-size: 13px; }
.error { color: var(--critical); font-size: 13px; margin-top: 10px; }

.field { margin: 18px 0 8px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #10141c; color: var(--text); font-size: 14px; }

.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 14px; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); }
.btn.primary:disabled { opacity: 0.5; cursor: default; }
.btn.ghost:hover { border-color: var(--muted); }

/* Plan picker (buy.html) */
.plans { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.plan { flex: 1; min-width: 120px; padding: 16px; border-radius: 10px; border: 1px solid var(--line); background: #10141c; color: var(--text); cursor: pointer; text-align: center; }
.plan.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,124,255,0.18); }
.plan-label { font-size: 14px; color: var(--muted); }
.plan-price { font-size: 22px; font-weight: 700; margin-top: 4px; }

/* Activation steps */
.steps { list-style: none; margin: 0; padding: 0; }
.step { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.step-head { font-weight: 600; margin-bottom: 8px; }
.step-head .num { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; margin-right: 8px; }
.tag { font-size: 12px; margin-left: 8px; }
.tag.ok { color: var(--clear); }
.tag.warn { color: var(--high); }

.status-head { display: flex; align-items: center; justify-content: space-between; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.live { background: var(--clear); box-shadow: 0 0 0 4px rgba(53,194,107,0.18); }

.score-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.score-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--clear); font-weight: 700; }
.score-badge #scoreValue { font-size: 30px; }
.score-badge small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.score-badge[data-level="low"] { border-color: var(--low); }
.score-badge[data-level="medium"] { border-color: var(--medium); }
.score-badge[data-level="high"] { border-color: var(--high); }
.score-badge[data-level="critical"] { border-color: var(--critical); }
.severity { font-size: 15px; font-weight: 600; }

.findings { list-style: none; margin: 0; padding: 0; }
.findings li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.findings li.muted { color: var(--muted); }
.findings .cat { font-size: 11px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px; }
.findings li[data-cat="cheating_tool"], .findings li[data-cat="ai_api_egress"], .findings li[data-cat="screenshare_off"] { border-color: var(--critical); }

#preview { width: 100%; max-height: 220px; margin-top: 14px; border-radius: 8px; border: 1px solid var(--line); background: #000; }

.raw { margin-top: 14px; }
.raw summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.raw pre { background: #10141c; border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow: auto; font-size: 12px; color: #b8c0d0; white-space: pre-wrap; word-break: break-all; }
