:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0ea5e9;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111b2e;
  --text: #e2e8f0;
  --muted: #9aa6bc;
  --line: #25324a;
  --accent: #38bdf8;
  --shadow: 0 8px 30px rgba(2, 6, 23, 0.5);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top right, rgba(14,165,233,0.07), transparent 40%), var(--bg);
  color: var(--text);
}

.card-premium {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-wrap { min-height: 100vh; display: flex; }
.sidebar {
  width: 270px;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  color: #e2e8f0;
  padding: 24px 16px;
}
.sidebar a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.sidebar a:hover, .sidebar a.active {
  background: rgba(148, 163, 184, 0.18);
  color: #fff;
}
.admin-main { flex: 1; padding: 24px; }
.stat {
  padding: 20px;
}

.public-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px;
}
.sticky-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding: 8px 0;
}
.product-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 14px;
}
.product-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
}
.price-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
}
.assistant-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .admin-wrap { flex-direction: column; }
  .sidebar { width: 100%; }
}
