:root{
  --bg:#0b1020;
  --bg-soft:#121a30;
  --panel:#121a2b;
  --panel-2:#18233f;
  --panel-3:#223055;
  --text:#eaf1ff;
  --muted:#9fb0d3;
  --line:rgba(255,255,255,.08);
  --accent:#5aa9ff;
  --accent-2:#7c5cff;
  --success:#16c784;
  --warning:#ffb020;
  --danger:#ff5d73;
  --shadow:0 20px 45px rgba(0,0,0,.35);
  --shadow-soft:0 12px 28px rgba(0,0,0,.22);
  --radius:22px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124,92,255,.22), transparent 28%),
    radial-gradient(circle at top right, rgba(90,169,255,.18), transparent 24%),
    linear-gradient(180deg,#0a0f1d,#0f1730 55%,#0b1020);
  color:var(--text);
  min-height:100vh;
}

.admin-layout{
  display:flex;
  min-height:100vh;
}

.admin-layout .sidebar{
  width:290px;
  padding:26px 18px;
  background:linear-gradient(180deg,rgba(19,28,54,.96),rgba(10,16,32,.98));
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:12px 0 40px rgba(0,0,0,.28);
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
}

.admin-layout .brand-card{
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
  border-radius:26px;
  padding:18px;
  box-shadow:var(--shadow-soft);
}

.admin-layout .brand-cube{
  width:58px;
  height:58px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:grid;
  place-items:center;
  font-size:26px;
  box-shadow:0 18px 36px rgba(92,120,255,.32);
  margin-bottom:14px;
  transform:rotate(-8deg);
}

.admin-layout .brand-title{
  font-size:22px;
  font-weight:800;
  color:#fff;
}

.admin-layout .brand-sub{
  color:var(--muted);
  font-size:13px;
  margin-top:6px;
  line-height:1.6;
}

.admin-layout .nav-section{margin-top:22px}
.admin-layout .nav-label{
  color:#7f91bb;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  padding:0 12px 10px;
  font-weight:700;
}

.admin-layout .nav-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}

.admin-layout .nav-list li{
  list-style:none;
  margin:0;
  padding:0;
}

.admin-layout .nav-list a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-radius:18px;
  color:#dfe8ff;
  background:transparent;
  border:1px solid transparent;
  transition:.22s ease;
  text-decoration:none;
}

.admin-layout .nav-list a:hover,
.admin-layout .nav-list a.active{
  background:linear-gradient(180deg,rgba(90,169,255,.16),rgba(124,92,255,.10));
  border-color:rgba(255,255,255,.08);
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,.18);
}

.admin-layout .nav-dot{
  width:10px;
  height:10px;
  border-radius:99px;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));
  box-shadow:0 0 14px rgba(90,169,255,.55);
  flex:0 0 auto;
}

.admin-layout .sidebar-footer{
  margin-top:24px;
  padding:16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
}

.admin-layout .main{
  flex:1;
  padding:30px;
}

.admin-layout .topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
  flex-wrap:wrap;
}

.admin-layout .page-title{
  font-size:30px;
  font-weight:800;
  margin:0;
  color:#fff;
}

.admin-layout .page-subtitle{
  color:var(--muted);
  margin-top:8px;
  font-size:14px;
}

.admin-layout .top-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.admin-layout .hero-panel,
.admin-layout .card,
.admin-layout .stat-card{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  box-shadow:0 20px 45px rgba(0,0,0,.35);
  backdrop-filter:blur(12px);
}

.admin-layout .hero-panel{
  padding:24px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:22px;
}

.admin-layout .hero-copy h2{
  margin:0 0 10px;
  font-size:28px;
  color:#fff;
}

.admin-layout .hero-copy p{
  margin:0;
  color:var(--muted);
  max-width:760px;
  line-height:1.7;
}

.admin-layout .hero-badge{
  padding:12px 16px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(90,169,255,.22),rgba(124,92,255,.22));
  font-weight:700;
  border:1px solid rgba(255,255,255,.09);
  color:#fff;
}

.admin-layout .stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:22px;
}

.admin-layout .stat-card{
  padding:20px;
  position:relative;
  overflow:hidden;
}

.admin-layout .stat-label{
  color:var(--muted);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
}

.admin-layout .stat-value{
  font-size:34px;
  font-weight:800;
  margin:12px 0 4px;
  color:#fff;
}

.admin-layout .stat-note{
  color:#c8d5f2;
  font-size:13px;
  line-height:1.6;
}

.admin-layout .section{
  margin-top:22px;
}

.admin-layout .section-title{
  font-size:19px;
  font-weight:800;
  margin:0 0 14px;
  color:#fff;
}

.admin-layout .card{
  padding:22px;
}

.admin-layout .inline-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.admin-layout .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  cursor:pointer;
  font-weight:800;
  letter-spacing:.02em;
  transition:.18s ease;
  box-shadow:0 14px 28px rgba(0,0,0,.22);
  text-decoration:none;
}

.admin-layout .btn:hover{
  transform:translateY(-1px);
}

.admin-layout .btn-primary{
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff;
}

.admin-layout .btn-secondary{
  background:rgba(255,255,255,.06);
  color:#eaf1ff;
}

@media (max-width:1100px){
  .admin-layout .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:860px){
  .admin-layout{
    display:block;
  }
  .admin-layout .sidebar{
    position:relative;
    height:auto;
    width:auto;
  }
  .admin-layout .main{
    padding:22px 16px 30px;
  }
}

@media (max-width:520px){
  .admin-layout .stats-grid{
    grid-template-columns:1fr;
  }
  .admin-layout .page-title{
    font-size:25px;
  }
  .admin-layout .hero-copy h2{
    font-size:24px;
  }
}