:root{
  --bg:#0b0b0c;
  --panel:#101012;
  --card:#121214;
  --text:#f3f4f6;
  --muted:#a1a1aa;
  --orange:#ff7a18;
  --orange2:#ff4d00;
  --border:rgba(255,255,255,.08);
  --shadow: 0 14px 30px rgba(0,0,0,.55);
  --radius:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(255,122,24,.18), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(255,77,0,.12), transparent 55%),
              var(--bg);
  color:var(--text);
}
.hidden{display:none !important}
.muted{color:var(--muted)}

.app{
  display:grid;
  grid-template-columns: 290px 1fr;
  min-height:100vh;
}
@media (max-width: 980px){
  .app{grid-template-columns: 1fr}
  .sidebar{position:sticky; top:0}
}

.sidebar{
  background:rgba(16,16,18,.72);
  border-right:1px solid var(--border);
  backdrop-filter: blur(10px);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.brand{display:flex; gap:10px; align-items:center}
.brand__logo{width:42px; height:42px; object-fit:contain}
.brand__name{font-weight:900}
.brand__sub{color:var(--muted); font-size:13px}

.sideUser{
  display:flex; align-items:center; gap:12px;
  padding:12px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
}
.sideUser__avatar{
  width:44px; height:44px; border-radius:14px;
  border:1px solid var(--border);
  object-fit:cover;
}
.sideUser__name{font-weight:900}
.sideUser__role{color:var(--muted); font-size:13px; text-transform:capitalize}

.menu{display:flex; flex-direction:column; gap:8px; margin-top:6px}
.menu a{
  display:flex; gap:10px; align-items:center;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid transparent;
  color:var(--muted);
  text-decoration:none;
}
.menu a.active{
  color:var(--text);
  background:rgba(255,255,255,.03);
  border-color:var(--border);
}
.menu a:hover{background:rgba(255,255,255,.02); color:var(--text)}

.sidebar__footer{margin-top:auto; padding-top:10px; border-top:1px solid var(--border)}

.main{display:flex; flex-direction:column}
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 18px;
  border-bottom:1px solid var(--border);
  background:rgba(10,10,12,.65);
  backdrop-filter: blur(10px);
  position:sticky; top:0; z-index:20;
}
.crumb{font-weight:900}
.topbar__right{display:flex; align-items:center; gap:10px}

.topUser{display:flex; align-items:center; gap:10px}
.topUser__avatar{
  width:34px; height:34px; border-radius:12px;
  border:1px solid var(--border);
  object-fit:cover;
}

.iconBtn{
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  border-radius:12px;
  padding:9px 10px;
  cursor:pointer;
  position:relative;
}
.badge{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 6px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--orange), var(--orange2));
  color:#120b08;
  font-weight:900;
  font-size:12px;
  margin-left:6px;
}

.content{padding:18px}
.card{
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
  max-width:720px;
}
h1{margin:0 0 10px 0}
.form{display:flex; flex-direction:column; gap:12px; margin-top:12px}
label{display:flex; flex-direction:column; gap:6px; font-weight:700}
input{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
input:focus{border-color: rgba(255,122,24,.55)}

.btn{
  border-radius:14px;
  border:1px solid var(--border);
  padding:11px 12px;
  cursor:pointer;
  font-weight:900;
}
.btn--primary{
  background:linear-gradient(135deg, var(--orange), var(--orange2));
  color:#120b08;
  border:0;
}
.btn--ghost{
  background:rgba(255,255,255,.03);
  color:var(--text);
}
.msg{margin-top:6px; color:var(--muted)}
.msg.error{color:#ffb4a6}
.msg.ok{color:#b7f7c2}

.page{
  display:grid;
  gap:14px;
  max-width:1100px;
}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media (max-width: 980px){ .grid2{grid-template-columns:1fr} }

.panelCard{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  box-shadow:var(--shadow);
  padding:16px;
}
.panelCard h2{margin:0 0 8px 0}
.kpi{display:flex; gap:10px; flex-wrap:wrap}
.kpi .pill{
  border:1px solid var(--border);
  border-radius:999px;
  padding:7px 10px;
  background:rgba(0,0,0,.18);
  color:var(--text);
  font-size:13px;
}

/* Drawer */
.drawer{
  position:fixed;
  right:18px;
  top:70px;
  width:min(460px, calc(100vw - 36px));
  max-height: calc(100vh - 90px);
  border-radius:18px;
  border:1px solid var(--border);
  background:rgba(16,16,18,.92);
  backdrop-filter: blur(10px);
  box-shadow:var(--shadow);
  overflow:hidden;
  z-index:40;
}
.drawer__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 12px;
  border-bottom:1px solid var(--border);
}
.drawer__title{font-weight:900}
.drawer__body{padding:12px; overflow:auto; max-height: calc(100vh - 170px)}
.notif{
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px;
  background:rgba(0,0,0,.18);
  margin-bottom:10px;
}
.notif__top{display:flex; justify-content:space-between; gap:10px}
.notif__title{font-weight:900}
.notif__meta{color:var(--muted); font-size:12px}
.notif__msg{color:var(--muted); margin-top:6px; line-height:1.3}
.notif__actions{margin-top:8px; display:flex; gap:8px; flex-wrap:wrap}
.smallBtn{
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:7px 10px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
}
.modalOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.modalCard{
  background:#1a1a1a;
  width:700px;
  max-width:95%;
  border-radius:12px;
  padding:20px;
}
.modalHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
}
.badge{
  padding:4px 10px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
  display:inline-block;
}
.badge--gray{background:#444;color:#fff;}
.badge--blue{background:#2563eb;color:#fff;}
.badge--orange{background:#f97316;color:#fff;}
.badge--purple{background:#7c3aed;color:#fff;}
.badge--green{background:#16a34a;color:#fff;}
.badge--red{background:#dc2626;color:#fff;}
.panelCard{
  background:#111;
  border-radius:14px;
  padding:20px;
  box-shadow:0 0 20px rgba(255,140,0,.2);
}

.notif{
  background:#1c1c1c;
  padding:15px;
  border-radius:10px;
  margin-bottom:10px;
}

.inlineStatus{
  margin-top:10px;
}

.dragItem{
  background:#222;
  padding:8px;
  margin-bottom:6px;
  border-radius:6px;
  cursor:grab;
}

.dropZone{
  margin-top:10px;
  padding:20px;
  border:2px dashed orange;
  border-radius:10px;
  text-align:center;
}
