:root {
  --bg: #f6f7f9;
  --sidebar-bg: #14161a;
  --sidebar-text: #b7bac1;
  --sidebar-active: #ffffff;
  --accent: #2f6fed;
  --border: #e6e8ec;
  --text: #1c1e22;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* ---------- Auth screen ---------- */
.auth-bg { background: var(--sidebar-bg); }
.auth-card { width: 360px; border-radius: 14px; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  flex-shrink: 0;
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 6px 10px 18px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sidebar-text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 2px;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-nav a.active { background: var(--accent); color: #fff; }
.nav-section {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: #6b6f78;
  margin: 16px 10px 6px;
}

.main-area { flex: 1; min-width: 0; }
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-title { font-weight: 600; font-size: 1.1rem; }
.content { padding: 24px; }

/* ---------- Cards / tables ---------- */
.card { border: 1px solid var(--border); border-radius: 12px; }
.stat-card { border-radius: 12px; border: 1px solid var(--border); background: #fff; padding: 18px; }
.stat-card .label { font-size: 0.78rem; color: #7a7f88; text-transform: uppercase; letter-spacing: 0.03em; }
.stat-card .value { font-size: 1.5rem; font-weight: 700; margin-top: 4px; }

.table { background: #fff; }
.table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: #7a7f88; border-bottom: 1px solid var(--border); }

.badge-channel-online { background: #e7f0ff; color: #2f6fed; }
.badge-channel-shop { background: #eafaf0; color: #1a9d5c; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; z-index: 50; transition: left .2s; }
  .sidebar.open { left: 0; }
  .main-area { width: 100%; }
}
