body {
  background:
    radial-gradient(ellipse 52% 40% at 70% 25%, rgba(255,217,61,0.18) 0%, transparent 62%),
    radial-gradient(ellipse 42% 32% at 15% 20%, rgba(255,107,107,0.15) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(255,150,80,0.10) 0%, transparent 55%),
    #ffffff;
  color: #0f172a;
  font-family: "DM Sans", system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.sidebar {
  background: rgba(255,255,255,0.75) !important;
  backdrop-filter: blur(20px) !important;
  border-right: 1px solid rgba(255,107,107,0.15) !important;
}

.logo {
  background: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%) !important;
  box-shadow: 0 8px 24px rgba(255,107,107,0.35) !important;
}

.brand span {
  background: linear-gradient(90deg, #FF6B6B 0%, #FFD93D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-family: "Syne", system-ui !important;
  font-weight: 800 !important;
}

.nav-item {
  color: #64748b !important;
  font-weight: 700 !important;
}

.nav-item:hover {
  background: rgba(255,107,107,0.08) !important;
  color: #0f172a !important;
}

.nav-item.active {
  background: rgba(255,107,107,0.12) !important;
  border-color: rgba(255,107,107,0.25) !important;
  color: #0f172a !important;
  border-left: 3px solid #FF6B6B !important;
}

.panel {
  background: rgba(255,255,255,0.80) !important;
  border: 1px solid rgba(255,107,107,0.12) !important;
  box-shadow: 0 4px 24px rgba(255,107,107,0.08) !important;
  backdrop-filter: blur(10px) !important;
}

.btn-primary {
  background: linear-gradient(90deg, #FF6B6B 0%, #FFD93D 100%) !important;
  border: none !important;
  color: #0b1220 !important;
  font-weight: 800 !important;
}

.topbar h1 {
  color: #0f172a !important;
  font-family: "Syne", system-ui !important;
}

.stat .label { color: #64748b !important; }
.stat .value { color: #0f172a !important; }

/* Dashboard inherits body background and logo from styles.css */
.dash { background: transparent; min-height: 100vh; }
.main { background: transparent; }

:root{
  --side:260px;
}

.dash{
  display:grid;
  grid-template-columns: var(--side) 1fr;
}
.sidebar{
  position:sticky;top:0;height:100vh;
  padding:16px;
}
.side-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding-bottom:12px}
.side-nav{display:grid;gap:8px;margin-top:10px}
.nav-item{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 12px;border-radius:14px;
  border:1px solid transparent;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  background:transparent;
  position:relative;
  transition:background .15s ease, color .15s ease, padding-left .15s ease;
}
.nav-item:hover{padding-left:14px}
.nav-item.active{padding-left:14px}

.pill{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;font-weight:900;font-size:12px}
.main{
  padding:18px 0 50px;
  background: transparent;
}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 0 16px;border-bottom:1px solid var(--line)}
.topbar h1{margin:0;font-family:inherit;font-weight:800;font-size:22px;letter-spacing:-.2px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.stat{padding:14px}
.stat[onclick]{cursor:pointer}
.stat[onclick]:hover{background:rgba(255,255,255,.06)}
.stat .label{color:var(--muted);font-weight:800;font-size:12px}
.stat .value{font-family:inherit;font-weight:800;font-size:28px;margin-top:8px;transition:color .3s ease}
.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:12px;margin-top:12px}
.feed{padding:14px;display:grid;gap:10px}
.feed-item{padding:12px;border-radius:14px}
.feed-item .t{font-weight:900}
.feed-item .m{color:var(--muted);font-size:13px;line-height:1.45;margin-top:6px}
.module{display:none}
.module.on{display:block}

.table{width:100%;border-collapse:separate;border-spacing:0 10px}
.table th{color:var(--muted);font-size:12px;text-align:left;padding:0 10px}
.table td{padding:12px 10px}
.table tr td:first-child{border-top-left-radius:14px;border-bottom-left-radius:14px}
.table tr td:last-child{border-top-right-radius:14px;border-bottom-right-radius:14px}
#gate{
  position:fixed;
  inset:0;
  z-index:999;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
}
#gate[hidden]{display:none !important;}
#app[hidden]{display:none !important;}

.gate{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px 0;
}
.gate-card{width:min(520px,92vw);padding:18px}
@media (max-width: 980px){
  :root{--side:0px}
  .dash{grid-template-columns: 1fr}
  .sidebar{position:relative;height:auto;border-right:none;border-bottom:1px solid var(--line)}
  .grid3{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
}
