:root {
  --bg: #06080d;
  --bg-2: #0c111b;
  --card: rgba(255,255,255,0.06);
  --muted: #9aa4b2;
  --text: #f5f7fb;
  --line: rgba(255,255,255,0.08);
  --green: #14d86f;
  --green-2: #09b85a;
  --danger: #ff5d73;
  --yellow: #ffca57;
  --blue: #78a6ff;
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --radius: 24px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #151a25 0%, var(--bg) 45%, #050608 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.app-shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 18px; background: rgba(0,0,0,.65); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar__center { font-size: 18px; font-weight: 800; letter-spacing: .3px; }
.icon-btn {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,0.03); color: var(--text); display:flex; align-items:center; justify-content:center;
}
.profile-pill { font-weight: 700; }
.sidebar {
  position: fixed; left: 12px; top: 76px; width: 220px; padding: 14px; border:1px solid var(--line);
  border-radius: 22px; background: rgba(10,13,20,.96); transform: translateX(-260px); transition: .25s ease; z-index: 40;
  box-shadow: var(--shadow);
}
.sidebar.is-open { transform: translateX(0); }
.sidebar a { display:block; padding: 12px 14px; border-radius: 14px; color: var(--muted); }
.sidebar a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.page-wrap { width: min(1100px, calc(100% - 24px)); margin: 0 auto; padding: 28px 0 46px; }
.hero {
  padding: 26px; border:1px solid var(--line); border-radius: 32px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); box-shadow: var(--shadow);
}
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 52px); line-height: 1.03; }
.hero p { margin: 0; color: var(--muted); font-size: 18px; }
.grid-2, .grid-3, .shop-grid {
  display:grid; gap:18px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.shop-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  border:1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--card); box-shadow: var(--shadow);
}
.card h3, .card h2 { margin: 0 0 10px; }
.muted { color: var(--muted); }
.section { margin-top: 22px; }
.form-card {
  margin-top: 22px; padding: 18px; border-radius: 28px; border:1px solid var(--line); background: rgba(255,255,255,.04);
}
.field { margin-bottom: 14px; }
.field label { display:block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.input, .select, .textarea {
  width:100%; border:none; outline:none; border-radius: 18px; background: #e8ebef; color:#0a0a0a;
  padding: 16px 18px; min-height: 56px;
}
.textarea { min-height: 110px; resize: vertical; }
.btn {
  border:none; border-radius: 18px; padding: 15px 18px; font-weight: 700; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.btn-primary { background: linear-gradient(180deg, var(--green), var(--green-2)); color:white; }
.btn-dark { background: rgba(255,255,255,.08); color: white; border:1px solid var(--line); }
.btn-block { width:100%; }
.category-chip {
  display:flex; align-items:center; justify-content:center; text-align:center;
  padding: 18px; min-height: 74px; border-radius: 999px; background: #eceef2; color:#07090c; font-size: 28px; font-weight: 800; cursor:pointer; border:3px solid transparent;
}
.category-chip.is-active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,216,111,.16); }
.stat {
  padding: 18px; border-radius: 24px; background: rgba(255,255,255,.04); border:1px solid var(--line);
}
.stat__value { font-size: 28px; font-weight: 800; }
.flash {
  margin-bottom: 16px; border-radius: 16px; padding: 12px 14px; border:1px solid var(--line);
}
.flash--success { background: rgba(20,216,111,.12); }
.flash--error { background: rgba(255,93,115,.12); }
.table-wrap { overflow:auto; border-radius: 24px; border:1px solid var(--line); }
table { width:100%; border-collapse: collapse; background: rgba(255,255,255,.03); }
th, td { padding: 14px; border-bottom:1px solid var(--line); text-align:left; }
.status-pill {
  padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; display:inline-block;
}
.status-pending { background: rgba(255,202,87,.12); color: var(--yellow); }
.status-processing { background: rgba(120,166,255,.12); color: var(--blue); }
.status-done { background: rgba(20,216,111,.12); color: var(--green); }
.status-cancelled { background: rgba(255,93,115,.12); color: var(--danger); }
.auth-shell { max-width: 520px; margin: 40px auto 0; }
.auth-card { padding: 24px; border-radius: 30px; background: rgba(255,255,255,.05); border:1px solid var(--line); box-shadow: var(--shadow); }
.small { font-size: 13px; }
.product-card h3 { font-size: 24px; }
.admin-actions { display:flex; flex-wrap:wrap; gap:8px; }
.badge { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; }
@media (max-width: 640px) {
  .page-wrap { width: calc(100% - 18px); }
  .hero { padding: 20px; }
  .topbar { padding: 14px 12px; }
  .category-chip { font-size: 22px; }
}
