:root{
  --bg:#0b1020;
  --bg-2:#121933;
  --card:rgba(19,26,48,.94);
  --line:rgba(255,255,255,.08);
  --text:#eef2ff;
  --muted:#9aa4c7;
  --primary:#5b7cff;
  --primary-2:#7c4dff;
  --danger:#ff5d73;
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --radius:18px;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  font-family:Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(91,124,255,.22), transparent 30%),
    radial-gradient(circle at top right, rgba(124,77,255,.18), transparent 28%),
    linear-gradient(180deg,#08101f 0%,#0d1428 100%);
  color:var(--text);
}

a{text-decoration:none}

.page-wrap{padding:32px 16px 48px}

.topbar{
  max-width:1100px;
  margin:0 auto 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-badge{
  width:42px;
  height:42px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
  color:#fff;
  box-shadow:var(--shadow);
}

.brand h1{
  margin:0;
  font-size:20px;
}

.brand p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:13px;
}

.nav-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn-modern{
  border:none;
  border-radius:14px;
  padding:11px 16px;
  font-weight:600;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
}

.btn-primary-modern{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
}

.btn-secondary-modern{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}

.btn-danger-modern{
  background:linear-gradient(135deg,#ff5d73,#ff7b54);
}

.card-modern{
  max-width:1100px;
  margin:0 auto;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.card-header-modern{
  padding:22px 24px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.card-header-modern h2{
  margin:0;
  font-size:28px;
}

.card-header-modern p{
  margin:4px 0 0;
  color:var(--muted);
}

.card-body-modern{padding:24px}

.form-group-modern{margin-bottom:16px}

.form-label-modern{
  display:block;
  margin-bottom:8px;
  color:#d8def7;
  font-weight:600;
  font-size:14px;
}

.form-control-modern{
  width:100%;
  height:50px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#fff;
  padding:0 14px;
  outline:none;
}

.table-modern{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}

.table-modern thead th{
  color:#b6c0e4;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  padding:0 14px 8px;
  text-align:left;
}

.table-modern tbody tr{
  background:rgba(255,255,255,.03);
}

.table-modern tbody td{
  padding:16px 14px;
  border-top:1px solid rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.04);
  vertical-align:middle;
}

.table-modern tbody td:first-child{
  border-left:1px solid rgba(255,255,255,.04);
  border-top-left-radius:14px;
  border-bottom-left-radius:14px;
}

.table-modern tbody td:last-child{
  border-right:1px solid rgba(255,255,255,.04);
  border-top-right-radius:14px;
  border-bottom-right-radius:14px;
}

.badge-soft{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(91,124,255,.15);
  color:#cdd6ff;
  font-size:12px;
  font-weight:700;
}

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.btn-icon{
  width:40px;
  height:40px;
  border:none;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
}

.btn-edit{background:linear-gradient(135deg,#27c1f1,#1e88e5)}
.btn-delete{background:linear-gradient(135deg,#ff5d73,#ff7b54)}

.alert-modern{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#dce4ff;
}

.empty-state{
  text-align:center;
  padding:38px 16px;
  color:var(--muted);
}

@media (max-width:768px){
  .card-header-modern h2{font-size:22px}
  .card-body-modern,.card-header-modern{padding:18px}
  .table-modern{display:block;overflow-x:auto}
}