:root{
  --bg:#0b1020;
  --card:#121a33;
  --card2:#0f162b;
  --text:#e9ecff;
  --muted:#aab3da;
  --line:rgba(255,255,255,.12);
  --accent:#7c5cff;
  --good:#23c483;
  --bad:#ff4d6d;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(900px 500px at 90% 25%, rgba(35,196,131,.20), transparent 55%),
    radial-gradient(800px 600px at 40% 95%, rgba(255,77,109,.16), transparent 55%),
    var(--bg);
}

a{color:var(--text); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:980px; margin:0 auto; padding:24px}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border:1px solid var(--line);
  background:rgba(18,26,51,.85);
  border-radius:18px;
  backdrop-filter: blur(10px);
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-weight:700; letter-spacing:.2px;
}
.brand .dot{
  width:12px; height:12px; border-radius:50%;
  background:linear-gradient(135deg, var(--accent), #47d7ff);
  box-shadow:0 0 22px rgba(124,92,255,.45);
}
.navlinks{display:flex; gap:12px; align-items:center; flex-wrap:wrap}
.pill{
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}
.pill:hover{background:rgba(255,255,255,.07)}
.grid{
  display:grid; grid-template-columns: 1.1fr .9fr;
  gap:18px; margin-top:18px;
}
@media (max-width:900px){
  .grid{grid-template-columns:1fr}
}
.card{
  border:1px solid var(--line);
  background:rgba(18,26,51,.72);
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  overflow:hidden;
}
.card .head{
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.card .head h1, .card .head h2{margin:0; font-size:18px}
.card .body{padding:18px}
small, .muted{color:var(--muted)}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:12px}
label{font-size:13px; color:var(--muted)}
input, select, textarea{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(10,14,30,.6);
  color:var(--text);
  outline:none;
}
textarea{min-height:110px; resize:vertical}
input:focus, textarea:focus, select:focus{
  border-color:rgba(124,92,255,.65);
  box-shadow:0 0 0 4px rgba(124,92,255,.15);
}
.row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width:560px){.row{grid-template-columns:1fr}}
.btnrow{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:10px}
button, .btn{
  cursor:pointer;
  border:none;
  padding:11px 14px;
  border-radius:12px;
  color:var(--text);
  background:linear-gradient(135deg, var(--accent), #47d7ff);
  font-weight:700;
}
button.secondary, .btn.secondary{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  font-weight:600;
}
button.danger{
  background:linear-gradient(135deg, var(--bad), #ff9a3c);
}
.notice{
  margin-top:12px;
  border:1px dashed rgba(255,255,255,.2);
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
}
.alert{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.18);
}
.alert.good{border-color:rgba(35,196,131,.55)}
.alert.bad{border-color:rgba(255,77,109,.55)}
hr.sep{border:0; border-top:1px solid var(--line); margin:14px 0}
.modal{
  position:fixed; inset:0; display:none; place-items:center;
  background:rgba(0,0,0,.55);
  padding:18px;
}
.modal.open{display:grid}
.modal .panel{
  width:min(520px, 100%);
  border:1px solid var(--line);
  background:rgba(18,26,51,.95);
  border-radius:18px;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
  overflow:hidden;
}
.modal .panel .head{display:flex; align-items:center; justify-content:space-between}
.modal .x{
  background:transparent; border:1px solid var(--line);
  width:36px; height:36px; border-radius:12px;
  font-weight:800;
}
