:root{
  --bg:#0b1220;
  --panel:#0f1a2e;
  --panel2:#101f3a;
  --text:#e8eefc;
  --muted:#a9b7d6;
  --border:rgba(255,255,255,.10);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --accent:#4f46e5;
  --good:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(79,70,229,.35), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(34,197,94,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.app{display:flex; min-height:100%}

.sidebar{
  width:280px;
  padding:18px;
  border-right:1px solid var(--border);
  background: rgba(15,26,46,.72);
  backdrop-filter: blur(10px);
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.brand{display:flex; align-items:center; gap:12px}
.brand__mark{
  width:42px; height:42px; border-radius:14px;
  background: linear-gradient(135deg, rgba(79,70,229,1), rgba(168,85,247,1));
  display:grid; place-items:center; font-weight:800;
  box-shadow: var(--shadow);
}
.brand__name{font-weight:800; letter-spacing:.2px}
.brand__sub{font-size:12px; color:var(--muted); margin-top:2px}

.nav{display:flex; flex-direction:column; gap:8px}
.nav__link{
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(16,31,58,.55);
}
.nav__link:hover{border-color: rgba(255,255,255,.18); transform: translateY(-1px)}
.sidebar__footer{margin-top:auto; display:flex; flex-direction:column; gap:14px}

.main{flex:1; padding:22px}
.topbar{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:14px}
.crumb{color:var(--muted); font-size:13px}
.h1{margin:6px 0 0; font-size:28px; letter-spacing:.2px}

.content{display:flex; flex-direction:column; gap:14px}
.grid{display:grid; gap:14px}
.grid--2{grid-template-columns: repeat(2, minmax(0,1fr))}
.grid--3{grid-template-columns: repeat(3, minmax(0,1fr))}
@media (max-width: 980px){
  .sidebar{display:none}
  .grid--2,.grid--3{grid-template-columns: 1fr}
}

.card{
  border:1px solid var(--border);
  background: rgba(16,31,58,.55);
  border-radius:18px;
  padding:14px;
  box-shadow: var(--shadow);
}
.card__title{font-weight:800; margin:0 0 6px}
.card__muted{color:var(--muted); font-size:13px}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.table th{color:var(--muted); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.08em; text-align:left; padding:0 10px}
.table td{
  padding:12px 10px;
  background: rgba(15,26,46,.70);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.table tr td:first-child{border-left:1px solid var(--border); border-radius:14px 0 0 14px}
.table tr td:last-child{border-right:1px solid var(--border); border-radius:0 14px 14px 0}
.badge{
  display:inline-flex; align-items:center; gap:6px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  color:var(--muted);
  background: rgba(11,18,32,.5);
}
.dot{width:8px; height:8px; border-radius:999px; background: var(--muted)}
.dot--good{background: var(--good)}
.dot--warn{background: var(--warn)}
.dot--bad{background: var(--bad)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  border-radius:14px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(79,70,229,.20);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{border-color: rgba(255,255,255,.2); transform: translateY(-1px)}
.btn--primary{background: linear-gradient(135deg, rgba(79,70,229,1), rgba(168,85,247,1)); border:none}
.btn--ghost{background: rgba(255,255,255,.06)}
.btn--danger{background: rgba(239,68,68,.18)}
.btn--sm{padding:8px 10px; border-radius:12px; font-size:13px}

.input, .select, .textarea{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(11,18,32,.55);
  color:var(--text);
  outline:none;
}
.textarea{min-height:120px; resize:vertical}
.label{display:block; font-size:12px; color:var(--muted); margin:0 0 6px; text-transform:uppercase; letter-spacing:.08em}
.row{display:grid; gap:12px}
.row--2{grid-template-columns: repeat(2, minmax(0,1fr))}
.pill{
  display:inline-flex;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(16,31,58,.5);
  color:var(--muted);
  font-size:13px;
}

.userchip{display:flex; align-items:center; gap:10px}
.userchip__avatar{
  width:36px; height:36px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid var(--border);
  font-weight:800;
}
.userchip__name{font-weight:800; font-size:13px}
.userchip__email{color:var(--muted); font-size:12px}

.notice{
  border:1px solid rgba(34,197,94,.25);
  background: rgba(34,197,94,.10);
  border-radius:18px;
  padding:12px 14px;
  color: rgba(230,255,240,.92);
}
.error{
  border:1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
  border-radius:18px;
  padding:12px 14px;
  color: rgba(255,235,235,.92);
}
