:root{
  --bg: #0f1724;
  --surface: #0b1220;
  --muted: #94a3b8;
  --accent: #06b6d4;
  --card: #0b1320;
  --text: #e6eef8;
  --glass: rgba(255,255,255,0.03);
}
.theme-light{
  --bg: #f6f9fc;
  --surface: #ffffff;
  --muted: #6b7280;
  --accent: #0ea5a4;
  --card: #ffffff;
  --text: #0b1220;
  --glass: rgba(11,18,32,0.03);
}
*{box-sizing:border-box}
body{font-family:Inter,system-ui,Segoe UI,Roboto,"Helvetica Neue",Arial; margin:0; background:var(--bg); color:var(--text); min-height:100vh}
.app{display:flex;gap:24px}
.sidebar{width:260px; background:linear-gradient(180deg,var(--surface), color-mix(in srgb,var(--surface) 70%, transparent)); padding:20px 16px; display:flex;flex-direction:column;gap:18px}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:44px;height:44px;border-radius:8px;background:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:700;color:#042;}
.brand-text .name{font-weight:700}
.brand-text .role{font-size:12px;color:var(--muted)}
.nav{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.nav-item{padding:10px 12px;border-radius:8px;color:var(--text); text-decoration:none}
.nav-item.active{background:var(--glass);font-weight:600}
.sidebar-footer{margin-top:auto}
.btn{background:transparent;border:1px solid rgba(255,255,255,0.06);padding:8px 12px;border-radius:8px;color:var(--text);cursor:pointer}

.main{flex:1;display:flex;flex-direction:column;min-height:100vh}
.header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid rgba(255,255,255,0.03)}
.search{padding:10px 12px;border-radius:10px;border:1px solid rgba(11,18,32,0.06);min-width:260px}
.user{display:flex;align-items:center;gap:12px}
.avatar{width:44px;height:44px;border-radius:10px;background:var(--glass);display:flex;align-items:center;justify-content:center}
.content{padding:22px}
.page-title{margin:0 0 14px 0}
.grid{display:grid;gap:16px}
.stats{grid-template-columns:repeat(4,1fr);margin-bottom:16px}
.card{background:linear-gradient(180deg, var(--card), color-mix(in srgb,var(--card) 85%, transparent));padding:16px;border-radius:12px;box-shadow:0 6px 18px rgba(2,6,23,0.3)}
.stat .stat-title{font-size:13px;color:var(--muted)}
.stat .stat-value{font-size:20px;font-weight:700;margin-top:6px}
.stat .stat-meta{font-size:12px;color:var(--muted);margin-top:6px}

.main-grid{grid-template-columns:2fr 1fr;align-items:start}
.chart{height:220px;border-radius:8px;background:linear-gradient(90deg, rgba(6,182,212,0.06), rgba(14,165,164,0.03));display:flex;align-items:center;justify-content:center;color:var(--muted)}
.right-column .orders{list-style:none;margin:0;padding:0}
.orders li{padding:10px;border-radius:8px;background:transparent;margin-bottom:8px;border:1px solid rgba(255,255,255,0.02);display:flex;justify-content:space-between}

.lower-grid{grid-template-columns:1fr 1fr;margin-top:16px}
.top-products{margin:0;padding-left:18px}
.activity{list-style:none;padding:0;margin:0}
.activity li{padding:8px 0;border-bottom:1px dashed rgba(255,255,255,0.03);font-size:13px}

.footer{padding:18px 22px;color:var(--muted);font-size:13px}

@media (max-width:900px){
  .sidebar{display:none}
  .stats{grid-template-columns:repeat(2,1fr)}
  .main-grid{grid-template-columns:1fr}
  .lower-grid{grid-template-columns:1fr}
}
