:root{
  --bg:#0b1220;
  --card:#111b2e;
  --text:#e8eefc;
  --muted:#b7c3e3;
  --border:rgba(255,255,255,.12);
  --primary:#6ea8ff;
  --primary2:#4f7dff;
  --danger:#ff6e6e;
  --ok:#4ade80;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --w: 980px;
  font-synthesis-weight:none;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 600px at 30% 0%, rgba(110,168,255,.25), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(79,125,255,.18), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.45;
}
a{color:inherit}
.wrap{max-width:var(--w); margin:0 auto; padding:28px 18px 60px}
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:14px 16px; border:1px solid var(--border); border-radius:18px;
  background: rgba(17,27,46,.7); backdrop-filter: blur(10px);
}
.brand{display:flex; flex-direction:column}
.brand .name{font-weight:700; letter-spacing:.2px}
.brand .tag{color:var(--muted); font-size:13px}
.nav{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.nav a{
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}
.nav a:hover{color:var(--text); border-color:var(--border); background: rgba(255,255,255,.06)}
.hero{margin:26px 0 18px; display:grid; grid-template-columns: 1.15fr .85fr; gap:14px}
@media (max-width: 880px){ .hero{grid-template-columns:1fr} }
.card{
  background: rgba(17,27,46,.75);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}
.hero .left{padding:22px}
.hero h1{margin:0 0 10px; font-size:28px}
.hero p{margin:0; color:var(--muted)}
.hero .right{padding:18px}
.kpi{display:grid; grid-template-columns:1fr; gap:10px}
.kpi .item{padding:12px 14px; border:1px solid var(--border); border-radius:14px; background: rgba(0,0,0,.12)}
.kpi .item .t{font-size:12px; color:var(--muted)}
.kpi .item .v{font-size:14px; margin-top:4px}

.grid{display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-top:14px}
@media (max-width: 880px){ .grid{grid-template-columns:1fr} }
.section{padding:18px}
.section h2{margin:0 0 12px; font-size:18px}
.muted{color:var(--muted)}
.row{display:flex; gap:10px; flex-wrap:wrap}
.row > * {flex:1}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:10px}
.field label{font-size:12px; color:var(--muted)}
.field input, .field select, .field textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
.field input:focus, .field select:focus, .field textarea:focus{border-color: rgba(110,168,255,.55)}
.btn{
  appearance:none;
  border:1px solid rgba(110,168,255,.35);
  background: linear-gradient(180deg, rgba(110,168,255,.25), rgba(79,125,255,.15));
  color: var(--text);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
}
.btn:hover{border-color: rgba(110,168,255,.65)}
.btn:disabled{opacity:.5; cursor:not-allowed}
.btn.secondary{background: rgba(255,255,255,.06); border-color: var(--border); color: var(--muted)}
.msg{margin-top:10px; font-size:13px}
.msg.ok{color:var(--ok)}
.msg.err{color:var(--danger)}
.divider{height:1px; background: var(--border); margin:12px 0}
.codebox{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed rgba(110,168,255,.45);
  background: rgba(0,0,0,.18);
  word-break: break-all;
}
.footer{
  margin-top:18px;
  padding:14px 2px;
  color:var(--muted);
  font-size:12px;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.legal{
  max-width: var(--w);
  margin: 0 auto;
  padding: 28px 18px 60px;
}
.legal .card{padding:18px}
.legal h1{margin:0 0 10px; font-size:22px}
.legal h2{margin:18px 0 8px; font-size:16px}
.legal p, .legal li{color:var(--muted)}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  font-size:12px;
  color: var(--muted);
}
