:root{
  --bg:#0b1220;
  --panel:#0f1a2f;
  --panel2:#101f3a;
  --text:#eaf0ff;
  --muted:#a9b4d0;
  --line:rgba(255,255,255,.10);
  --brand:#5b7cfa;
  --brand2:#22c55e;
  --danger:#ef4444;
  --warning:#f59e0b;
  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, rgba(91,124,250,.25), transparent 60%),
              radial-gradient(1000px 700px at 90% 20%, rgba(34,197,94,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.95; text-decoration:underline; }

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 22px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  letter-spacing:.3px;
}

.brand-badge{
  width:36px;
  height:36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #9b5bfa);
  box-shadow: 0 10px 25px rgba(91,124,250,.35);
  display:grid;
  place-items:center;
  font-weight:900;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.nav a{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}

.nav a.active,
.nav a:hover{
  background: rgba(255,255,255,.06);
  border-color: var(--line);
  color: var(--text);
  text-decoration:none;
}

.userbox{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
}

.pill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card .card-hd{
  padding: 18px 18px 10px 18px;
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.card .card-hd h1,
.card .card-hd h2{
  margin:0;
  font-size: 18px;
}

.card .card-bd{
  padding: 18px;
}

.grid{
  display:grid;
  gap:16px;
}

.grid.two{
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px){
  .grid.two{ grid-template-columns: 1fr; }
}

.form{
  display:grid;
  gap:10px;
}

.row{
  display:grid;
  gap:10px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 700px){
  .row{ grid-template-columns: 1fr; }
}

label{
  font-size: 13px;
  color: var(--muted);
}

input, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  outline:none;
  background: rgba(255,255,255,.05);
  color: var(--text);
}

input:focus, select:focus{
  border-color: rgba(91,124,250,.65);
  box-shadow: 0 0 0 4px rgba(91,124,250,.16);
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.btn{
  appearance:none;
  border: 1px solid transparent;
  padding: 11px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.btn:hover{ opacity:.95; }

.btn.primary{
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
  box-shadow: 0 12px 30px rgba(91,124,250,.25);
}

.btn.success{
  background: linear-gradient(135deg, var(--brand2), #16a34a);
  box-shadow: 0 12px 30px rgba(34,197,94,.20);
}

.btn.danger{
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  box-shadow: 0 12px 30px rgba(239,68,68,.18);
}

.btn.link{
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  text-align:left;
  vertical-align: middle;
}

.table th{
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,.04);
}

.table tr:hover td{
  background: rgba(255,255,255,.03);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
}

.alert{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
}

.alert.success{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
}

.alert.error{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
}

.footer{
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align:center;
  opacity:.85;
}
