
:root{
  --bg:#0b1021; --muted:#9aa4c4; --text:#eaf0ff;
  --accent:#7aa2ff; --accent2:#7affb2; --danger:#ff7a7a; --warn:#ffd37a;
  --radius:16px;
}
*{ box-sizing:border-box; font-family:"Cairo",system-ui,-apple-system,Segoe UI,Roboto,sans-serif; }
body{
  margin:0;
  background:radial-gradient(1200px 700px at 70% 0%, #1a2a66 0%, var(--bg) 55%, #070a15 100%);
  color:var(--text);
  min-height:100vh;
  padding:24px;
}
.wrap{ width:min(1320px,100%); margin:0 auto; display:flex; flex-direction:column; gap:18px; }
.topbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.title{ margin:0; font-size:24px; font-weight:900; }
.subtitle{ color:var(--muted); font-size:13px; margin-top:6px; }
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  box-shadow:0 10px 40px rgba(0,0,0,.35);
  overflow:hidden;
}
.card .hd{ padding:18px; border-bottom:1px solid rgba(255,255,255,.08); }
.card .hd h2{ margin:0; font-size:18px; font-weight:800; }
.card .body{ padding:18px; display:flex; flex-direction:column; gap:12px; }
.grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:18px; }
@media (max-width:1100px){ .grid{ grid-template-columns:1fr; } }
label{ display:block; margin-bottom:6px; color:var(--muted); font-size:13px; }
input, textarea, select{
  width:100%; background:rgba(5,10,30,.6); color:var(--text);
  border:1px solid rgba(255,255,255,.12); border-radius:14px;
  padding:12px; outline:none; font-size:14px;
}
textarea{ min-height:120px; resize:vertical; }
input:focus, textarea:focus, select:focus{
  border-color:rgba(122,162,255,.6);
  box-shadow:0 0 0 3px rgba(122,162,255,.18);
}
.row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:720px){ .row{ grid-template-columns:1fr; } }
.actions{ display:flex; gap:10px; flex-wrap:wrap; }
button{
  cursor:pointer; border:none; border-radius:14px; padding:12px 14px; font-weight:800; font-size:14px;
  color:#081024; background:var(--accent);
}
button.ghost{ background:transparent; color:var(--text); border:1px solid rgba(255,255,255,.16); }
button.warn{ background:var(--warn); color:#291a00; }
button.danger{ background:var(--danger); color:#2f0000; }
.list{ display:flex; flex-direction:column; gap:10px; max-height:540px; overflow:auto; }
.item{
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:12px;
  background:rgba(0,0,0,.14);
}
.item-title{ font-weight:800; margin-bottom:4px; }
.item-sub{ color:var(--muted); font-size:12px; }
.item-actions{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.smallbtn{
  cursor:pointer; border:none; border-radius:10px; padding:8px 10px; font-size:12px; font-weight:700;
  color:#081024; background:var(--accent);
}
.smallbtn.danger{ background:var(--danger); color:#2f0000; }
.codebox{
  background:rgba(0,0,0,.2); border:1px solid rgba(255,255,255,.12); border-radius:14px;
  padding:12px; font-size:12px; color:var(--muted);
}
.status{ color:var(--muted); font-size:13px; }
.status.err{ color:var(--danger); }
