:root{
  --bg:#0b1020;
  --card:#111a33;
  --text:#e7ebff;
  --muted:#9aa3c7;
  --border:#22305a;
  --btn:#2f6fff;
  --btn2:#22305a;
  --danger:#c23c3c;
  --radius:14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  background: radial-gradient(1000px 600px at 20% 0%, #1b2a66 0%, transparent 50%),
              radial-gradient(900px 500px at 80% 20%, #3a1e7a 0%, transparent 55%),
              var(--bg);
  color:var(--text);
}
.top{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 18px; border-bottom:1px solid var(--border);
  backdrop-filter: blur(8px); position:sticky; top:0;
  background: rgba(11,16,32,0.6);
}
.brand{font-weight:700; letter-spacing:.2px}
.muted{color:var(--muted)}
.small{font-size:12px}
.wrap{max-width:980px; margin:22px auto; padding:0 14px; display:grid; gap:14px}
.card{
  background: rgba(17,26,51,0.86);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
h2{margin:0 0 10px 0; font-size:18px}
.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
@media (max-width:760px){ .grid2{grid-template-columns:1fr} }
.field{display:flex; flex-direction:column; gap:6px}
.field input{width:100%}
input{
  background:#0b1020;
  border:1px solid var(--border);
  color:var(--text);
  border-radius:10px;
  padding:10px 12px;
  outline:none;
}
input:focus{border-color:#4a67ff}
.btn{
  background:var(--btn);
  color:white;
  border:0;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}
.btn.secondary{background:var(--btn2); border:1px solid var(--border)}
.btn.danger{background:var(--danger)}
.btn:disabled{opacity:.6; cursor:not-allowed}
.check{display:flex; gap:8px; align-items:center}
.hidden{display:none !important}
.mono{font-family:var(--mono)}
.result{
  margin-top:10px; padding:12px; border-radius:12px;
  border:1px dashed var(--border); background: rgba(0,0,0,.2);
}
a{color:#9dc1ff}
.right{display:flex; gap:10px}
