:root {
  --bg: #0b1017;
  --panel: #121a24;
  --panel2: #172231;
  --line: #243244;
  --text: #e7edf5;
  --muted: #93a4b8;
  --accent: #4cc2a4;
  --accent2: #7aa7ff;
  --danger: #ff7a7a;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #16324a 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.nav { border-bottom: 1px solid var(--line); background: rgba(9, 14, 20, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand { color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-block; background: var(--accent); color: #08231b; border-radius: 7px; padding: 2px 7px; font-size: 13px; margin-right: 4px; }
.brand-sub { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.inline { display: inline; }
.linklike { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.linklike:hover { color: var(--text); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.02em; }
h2 { font-size: 28px; margin-top: 0; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono, code, pre { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: #0a1119; border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; font-size: 13px; }
pre { background: #080d13; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow: auto; font-size: 13px; }
pre code { background: none; border: 0; padding: 0; }
.hero { padding: 72px 0 32px; display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.hero p.lead { font-size: 18px; color: #c4d2e2; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.badge { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.btn { display: inline-block; background: var(--accent); color: #07211a; font-weight: 700; border: 0; border-radius: 9px; padding: 11px 18px; cursor: pointer; font-size: 15px; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-danger { background: #3a1418; color: #ffb3b3; border: 1px solid #6d2630; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ipbox { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 20px; }
.ipbox .ip { font-size: 26px; font-weight: 700; color: var(--accent); font-family: ui-monospace, monospace; word-break: break-all; }
.checklist { margin: 0; padding-left: 20px; color: #c4d2e2; }
.checklist li { margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.table-wrap table { min-width: 640px; }
.price { font-size: 26px; font-weight: 800; }
.plan { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.plan .price-line { display: flex; align-items: baseline; gap: 6px; }
.plan .price-line span { color: var(--muted); font-size: 13px; }
.plan ul { margin: 4px 0 14px; padding-left: 18px; color: #c4d2e2; font-size: 14px; }
.plan .btn { margin-top: auto; }
form.stack { display: grid; gap: 12px; }
label { font-size: 14px; color: #c4d2e2; display: grid; gap: 6px; }
input[type=text], input[type=email], input[type=password], select {
  background: #0a1119; border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 11px 12px; font: inherit; width: 100%;
}
input:focus, select:focus { outline: 2px solid #2c5a75; outline-offset: 1px; border-color: #2c5a75; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #c4d2e2; }
.checkbox input { margin-top: 4px; }
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; }
.flash.ok { border-color: #1f5b4b; background: #0e2a24; color: #b9f2df; }
.flash.err { border-color: #6d2630; background: #2a1114; color: #ffc7c7; }
.auth { max-width: 440px; margin: 56px auto; }
.auth .card { padding: 28px; }
.cred { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--panel); }
.cred + .cred { margin-top: 14px; }
.kv { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px 12px; align-items: center; font-size: 14px; }
.kv .k { color: var(--muted); }
.kv .v { font-family: ui-monospace, monospace; word-break: break-all; }
.meter { height: 10px; background: #0a1119; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.meter > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat .card { padding: 16px; }
.stat .n { font-size: 24px; font-weight: 800; }
.stat .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.note { border-left: 3px solid var(--accent2); padding-left: 14px; color: #b9c8da; font-size: 14px; }
.warn { border-left: 3px solid #d4a34a; padding-left: 14px; color: #e4d3ad; font-size: 14px; }
.footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 26px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-actions form { display: inline-flex; gap: 6px; align-items: center; }
.admin-actions select { width: auto; padding: 6px 8px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .grid-3, .grid-2, .stat { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 110px 1fr; }
  .kv .btn-row { grid-column: 1 / -1; }
}
