/* ── Variables ── */
:root {
  --bg:        #09090f;
  --surface:   #111118;
  --surface2:  #16161e;
  --surface3:  #1c1c26;
  --border:    #1e1e2c;
  --border2:   #27273a;

  --blue:      #3b82f6;
  --blue-dim:  #1d4ed8;
  --blue-bg:   rgba(59,130,246,.1);
  --bord:      #9f1239;
  --bord-dim:  #6d0026;
  --bord-bg:   rgba(159,18,57,.12);

  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --dimmed:    #4b5563;
  --white:     #ffffff;

  --green:  #22c55e;
  --yellow: #eab308;
  --red:    #ef4444;
  --pix:    #00b37e;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --t: 150ms ease;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow:    0 4px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.6);
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
input, button, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  height: 60px;
  background: rgba(9,9,15,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  gap: 12px;
}

.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.brand-icon {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.brand-name {
  font-size: 1.1rem; font-weight: 800; letter-spacing: -.3px; white-space: nowrap;
}
.brand-name .b { color: var(--blue); }
.brand-name .r { color: #f43f5e; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a, .nav-links button {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  font-size: .88rem; font-weight: 500;
  color: var(--muted);
  background: transparent; border: none; cursor: pointer;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links button:hover { background: var(--surface2); color: var(--text); }
.nav-links .active { color: var(--text); }

.btn-nav {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-xs);
  font-size: .88rem; font-weight: 600;
  cursor: pointer; border: none; white-space: nowrap;
  transition: opacity var(--t), transform var(--t);
}
.btn-nav:hover { opacity: .88; transform: translateY(-1px); }
.btn-nav-blue { background: var(--blue); color: #fff; }
.btn-nav-ghost { background: var(--surface2); color: var(--muted); border: 1px solid var(--border2); }

.cart-pill {
  position: relative;
}
.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--bord);
  color: white; font-size: .6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: var(--t);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 199;
  padding: 12px 16px 16px;
  flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a, .mobile-nav button {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500;
  color: var(--muted);
  background: transparent; border: none; cursor: pointer; width: 100%;
  transition: background var(--t), color var(--t);
}
.mobile-nav a:hover, .mobile-nav button:hover { background: var(--surface2); color: var(--text); }

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(59,130,246,.12), transparent);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .6px; text-transform: uppercase;
  background: var(--blue-bg);
  border: 1px solid rgba(59,130,246,.25);
  color: var(--blue);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800; letter-spacing: -.5px; line-height: 1.15;
  margin-bottom: 12px;
}
.hero h1 .c-blue { color: var(--blue); }
.hero h1 .c-bord { color: #fb7185; }
.hero-sub { color: var(--muted); font-size: .95rem; max-width: 440px; margin: 0 auto 28px; }

.search-bar {
  display: flex; align-items: center; gap: 8px;
  max-width: 420px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.search-bar input {
  flex: 1; min-width: 180px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: .9rem;
  outline: none;
  transition: border-color var(--t);
}
.search-bar input::placeholder { color: var(--dimmed); }
.search-bar input:focus { border-color: var(--blue); }

/* ═══════════════════════════════════
   LAYOUT
═══════════════════════════════════ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.page { padding: 32px 24px; max-width: 1140px; margin: 0 auto; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.section-title {
  font-size: 1.05rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.section-title::before {
  content: '';
  width: 3px; height: 18px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: opacity var(--t), transform var(--t), background var(--t);
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:hover { opacity: .88; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2563eb; opacity: 1; }

.btn-danger { background: var(--bord); color: #fff; }
.btn-danger:hover { background: var(--bord-dim); opacity: 1; }

.btn-ghost {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: var(--surface3); color: var(--text); opacity: 1; }

.btn-sm { padding: 6px 13px; font-size: .8rem; }
.btn-lg { padding: 12px 24px; font-size: .95rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 7px; aspect-ratio: 1; }

/* ═══════════════════════════════════
   FILTERS / TABS
═══════════════════════════════════ */
.filter-bar {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-chip {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .8rem; font-weight: 600;
  border: 1px solid var(--border2);
  color: var(--muted);
  background: transparent;
  cursor: pointer; transition: all var(--t);
  text-decoration: none;
}
.filter-chip:hover { background: var(--surface2); color: var(--text); border-color: var(--border2); }
.filter-chip.active-blue { background: var(--blue-bg); border-color: rgba(59,130,246,.4); color: var(--blue); }
.filter-chip.active-bord { background: var(--bord-bg); border-color: rgba(159,18,57,.4); color: #fb7185; }

/* ═══════════════════════════════════
   PRODUCT GRID & CARDS
═══════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.product-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-thumb {
  height: 160px;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.product-label {
  position: absolute; top: 10px; left: 10px;
  background: var(--bord);
  color: white; font-size: .66rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .4px;
}

.product-body { padding: 16px; }
.product-cat { font-size: .72rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.product-name { font-size: .98rem; font-weight: 700; margin-bottom: 4px; }
.product-desc { font-size: .8rem; color: var(--muted); margin-bottom: 14px; line-height: 1.4; }

.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.product-price { font-size: 1.25rem; font-weight: 800; }
.product-price small { font-size: .72rem; font-weight: 400; color: var(--muted); display: block; }

.stock-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 500;
}
.stock-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
}
.stock-ok::before   { background: var(--green); }
.stock-low::before  { background: var(--yellow); }
.stock-out::before  { background: var(--red); }
.stock-ok  { color: var(--green); }
.stock-low { color: var(--yellow); }
.stock-out { color: var(--red); }

/* ═══════════════════════════════════
   STATS
═══════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--t);
}
.stat-card:hover { border-color: var(--border2); }
.stat-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; margin-bottom: 12px;
}
.si-blue { background: var(--blue-bg); color: var(--blue); }
.si-bord { background: var(--bord-bg); color: #fb7185; }
.si-green { background: rgba(34,197,94,.1); color: var(--green); }
.si-yellow { background: rgba(234,179,8,.1); color: var(--yellow); }

.stat-val { font-size: 1.6rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-lbl { font-size: .78rem; color: var(--muted); font-weight: 500; }

/* ═══════════════════════════════════
   FORMS
═══════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .8rem; font-weight: 600;
  color: var(--muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .4px;
}
.form-control {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: .9rem;
  outline: none;
  transition: border-color var(--t), background var(--t);
}
.form-control::placeholder { color: var(--dimmed); }
.form-control:focus { border-color: var(--blue); background: var(--surface3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.input-wrap { position: relative; }
.input-wrap .form-control { padding-left: 40px; }
.input-wrap .inp-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--dimmed); font-size: .9rem; pointer-events: none;
}

/* ═══════════════════════════════════
   ALERTS
═══════════════════════════════════ */
.alert {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 500;
  margin-bottom: 18px;
}
.alert-success { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.25); color: var(--green); }
.alert-error   { background: rgba(239,68,68,.08);  border: 1px solid rgba(239,68,68,.25); color: var(--red); }
.alert-info    { background: var(--blue-bg); border: 1px solid rgba(59,130,246,.25); color: var(--blue); }
.alert-warning { background: rgba(234,179,8,.08); border: 1px solid rgba(234,179,8,.25); color: var(--yellow); }

/* ═══════════════════════════════════
   BADGES
═══════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
}
.bdg-pending   { background: rgba(234,179,8,.1);   border: 1px solid rgba(234,179,8,.3);   color: var(--yellow); }
.bdg-confirmed { background: var(--blue-bg);       border: 1px solid rgba(59,130,246,.3);  color: var(--blue); }
.bdg-delivered { background: rgba(34,197,94,.1);   border: 1px solid rgba(34,197,94,.3);   color: var(--green); }
.bdg-cancelled { background: rgba(239,68,68,.08);  border: 1px solid rgba(239,68,68,.25);  color: var(--red); }
.bdg-pix       { background: rgba(0,179,126,.1);   border: 1px solid rgba(0,179,126,.3);   color: var(--pix); }
.bdg-in        { background: rgba(34,197,94,.1);   color: var(--green); }
.bdg-out       { background: rgba(239,68,68,.08);  color: var(--red); }
.bdg-adj       { background: rgba(234,179,8,.08);  color: var(--yellow); }
.bdg-active    { background: rgba(34,197,94,.1);   color: var(--green); }
.bdg-inactive  { background: rgba(239,68,68,.08);  color: var(--red); }

/* ═══════════════════════════════════
   TABLES
═══════════════════════════════════ */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; min-width: 480px; }
thead { background: var(--surface2); }
th {
  padding: 11px 16px;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); text-align: left;
  white-space: nowrap;
}
td {
  padding: 13px 16px;
  font-size: .88rem;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:hover td { background: rgba(255,255,255,.015); }

/* ═══════════════════════════════════
   CARDS (generic)
═══════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-body { padding: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-title { font-size: .95rem; font-weight: 700; }

/* ═══════════════════════════════════
   AUTH PAGES
═══════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
  position: relative;
}
.auth-page::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 25%, rgba(59,130,246,.07) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 75%, rgba(159,18,57,.07) 0%, transparent 55%);
}

.auth-box {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.auth-top {
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.auth-ico {
  width: 52px; height: 52px;
  background: var(--blue);
  border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
}
.auth-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.auth-sub   { font-size: .83rem; color: var(--muted); }
.auth-form  { padding: 24px 28px; }
.auth-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .83rem; color: var(--muted);
  background: var(--surface2);
}
.auth-footer a { color: var(--blue); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ═══════════════════════════════════
   DASHBOARD USER HEADER
═══════════════════════════════════ */
.user-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.user-avatar {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: white;
}
.user-name { font-size: 1.1rem; font-weight: 700; }
.user-meta { font-size: .8rem; color: var(--muted); margin-top: 3px; }

/* ═══════════════════════════════════
   QTY CONTROL
═══════════════════════════════════ */
.qty-ctrl { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 28px; height: 28px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  color: var(--text); font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.qty-btn:hover { background: var(--blue); border-color: var(--blue); color: white; }
.qty-inp {
  width: 44px; text-align: center;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  color: var(--text); padding: 4px;
  font-size: .88rem; outline: none;
}

/* ═══════════════════════════════════
   CART SUMMARY
═══════════════════════════════════ */
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky; top: 72px;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  font-size: .88rem; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.summary-row:last-of-type { border: none; }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 0;
  font-size: 1.1rem; font-weight: 800;
}

/* ═══════════════════════════════════
   MODAL
═══════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(3px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 28px;
  width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.modal-title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal-close {
  width: 28px; height: 28px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius-xs); color: var(--muted);
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.modal-close:hover { background: var(--surface3); color: var(--red); }

/* ═══════════════════════════════════
   ADMIN LAYOUT
═══════════════════════════════════ */
.admin-layout {
  display: flex; min-height: 100vh;
}

.sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; overflow-x: hidden;
  transition: transform var(--t);
  z-index: 300;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 9px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.sb-ico {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--bord);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.sb-name { font-size: .88rem; font-weight: 800; }
.sb-role { font-size: .65rem; font-weight: 700; color: #fb7185; text-transform: uppercase; letter-spacing: .5px; }

.sidebar-nav { padding: 10px 8px; }
.nav-section {
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--dimmed);
  padding: 12px 8px 5px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  font-size: .85rem; font-weight: 500;
  color: var(--muted);
  transition: background var(--t), color var(--t);
  margin-bottom: 1px;
  white-space: nowrap;
}
.sidebar-link:hover { background: var(--surface2); color: var(--text); }
.sidebar-link.active { background: rgba(159,18,57,.15); color: #fb7185; font-weight: 600; }
.sidebar-link .sico { font-size: .95rem; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-link.danger { color: var(--dimmed); }
.sidebar-link.danger:hover { color: var(--red); background: rgba(239,68,68,.06); }

.admin-main { flex: 1; min-width: 0; overflow-x: hidden; }

.admin-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,15,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar-title { font-size: 1rem; font-weight: 700; }
.topbar-title small { font-size: .72rem; font-weight: 400; color: var(--muted); display: block; margin-top: 1px; }

.admin-content { padding: 24px; }

/* Admin mobile toggle */
.sidebar-toggle {
  display: none;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius-xs); color: var(--muted);
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem;
  flex-shrink: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 299;
  background: rgba(0,0,0,.5);
}

/* ═══════════════════════════════════
   EMPTY STATE
═══════════════════════════════════ */
.empty {
  text-align: center; padding: 48px 20px;
  color: var(--muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 10px; opacity: .5; }
.empty-text { font-size: .9rem; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: .8rem; color: var(--dimmed);
}
footer .accent { color: #fb7185; }

/* ═══════════════════════════════════
   UTILITIES
═══════════════════════════════════ */
.fw7   { font-weight: 700; }
.fw8   { font-weight: 800; }
.fs-sm { font-size: .8rem; }
.fs-xs { font-size: .72rem; }
.c-muted { color: var(--muted); }
.c-blue  { color: var(--blue); }
.c-bord  { color: #fb7185; }
.c-green { color: var(--green); }
.c-red   { color: var(--red); }
.c-pix   { color: var(--pix); }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.gap-6   { gap: 6px; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.flex    { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 900px) {
  /* Admin sidebar becomes overlay */
  .sidebar {
    position: fixed; top: 0; left: 0; height: 100vh;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open { display: block; }
  .sidebar-toggle { display: flex; }
  .admin-topbar { padding: 0 16px; }
  .admin-content { padding: 16px; }

  /* 2-col grids become 1 */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .page { padding: 20px 16px; }
  .hero { padding: 40px 16px 32px; }
  .container { padding: 0 16px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .auth-form { padding: 20px; }
  .auth-top { padding: 22px 20px 18px; }
  .auth-footer { padding: 14px 20px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr !important; }
  table { min-width: 360px; font-size: .82rem; }
  th, td { padding: 10px 12px; }
  .modal { padding: 20px; }
  .user-header { padding: 16px; }
}

@media (max-width: 400px) {
  .stats-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .brand-name { display: none; }
}
