/* ═══════════════════════════════════════════════════════
   WARUNG KISRUL — Global Design System
   Dark Mode · Glassmorphism · Premium UI
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #0f0f1e;
  --bg-card: rgba(255,255,255,0.05);
  --bg-card-hover: rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);

  --accent: #7c3aed;
  --accent-light: #a855f7;
  --accent-glow: rgba(124,58,237,0.3);
  --accent-gradient: linear-gradient(135deg, #7c3aed, #a855f7);

  --success: #10b981;
  --success-bg: rgba(16,185,129,0.15);
  --warning: #f59e0b;
  --warning-bg: rgba(245,158,11,0.15);
  --danger: #ef4444;
  --danger-bg: rgba(239,68,68,0.15);
  --info: #3b82f6;
  --info-bg: rgba(59,130,246,0.15);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border: rgba(255,255,255,0.08);
  --border-focus: rgba(124,58,237,0.5);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-accent: 0 8px 32px rgba(124,58,237,0.3);

  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);

  --sidebar-w: 240px;
  --header-h: 64px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background gradient decoration */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { color: var(--text-secondary); }
a { color: var(--accent-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--text-primary); }

/* ── Layout ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrapper { min-height: 100vh; position: relative; z-index: 1; }

/* Dashboard layout with sidebar */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 2rem;
  min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: rgba(15,15,30,0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-brand .brand-icon {
  width: 40px; height: 40px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-accent);
}
.sidebar-brand .brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.sidebar-brand .brand-role {
  font-size: 0.7rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sidebar-nav { padding: 1rem 0; flex: 1; }
.nav-group-label {
  padding: 0.5rem 1.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.5rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
  border-left: 3px solid transparent;
  margin: 1px 0;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-item:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-item.active { color: var(--accent-light); background: var(--accent-glow); border-left-color: var(--accent); }
.nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}
.card:hover { border-color: rgba(124,58,237,0.3); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); }

/* Stat cards */
.stat-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: 0.15;
  transform: translate(20px, -20px);
}
.stat-card.purple::before { background: var(--accent); }
.stat-card.green::before { background: var(--success); }
.stat-card.orange::before { background: var(--warning); }
.stat-card.blue::before { background: var(--info); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); font-family: 'Space Grotesk', sans-serif; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* Menu cards */
.menu-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,0.4); }
.menu-card-img {
  width: 100%; height: 180px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1e1e3a, #0f0f2e);
}
.menu-card-img-placeholder {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e1e3a, #0f0f2e);
  font-size: 3rem;
  color: var(--text-muted);
}
.menu-card-body { padding: 1rem; }
.menu-card-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.25rem; }
.menu-card-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.4; }
.menu-card-price { font-size: 1rem; font-weight: 700; color: var(--accent-light); font-family: 'Space Grotesk', sans-serif; }
.menu-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; }
.menu-card .unavailable-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--danger);
  backdrop-filter: blur(2px);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(124,58,237,0.5); transform: translateY(-1px); }

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.btn-success:hover { box-shadow: 0 6px 24px rgba(16,185,129,0.4); transform: translateY(-1px); }

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  box-shadow: 0 4px 16px rgba(239,68,68,0.3);
}
.btn-danger:hover { box-shadow: 0 6px 24px rgba(239,68,68,0.4); transform: translateY(-1px); }

.btn-warning {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}
.btn-warning:hover { box-shadow: 0 6px 24px rgba(245,158,11,0.4); transform: translateY(-1px); }

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* Add to cart button */
.btn-add-cart {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(124,58,237,0.4);
}
.btn-add-cart:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(124,58,237,0.6); }

/* ── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); background: rgba(124,58,237,0.05); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ── Badges / Status ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-confirmed { background: var(--info-bg); color: var(--info); }
.badge-processing { background: rgba(168,85,247,0.15); color: #a855f7; }
.badge-done { background: var(--success-bg); color: var(--success); }
.badge-cancelled { background: var(--danger-bg); color: var(--danger); }
.badge-paid { background: var(--success-bg); color: var(--success); }
.badge-unpaid { background: var(--danger-bg); color: var(--danger); }
.badge-cash { background: var(--warning-bg); color: var(--warning); }
.badge-qris { background: var(--info-bg); color: var(--info); }
.badge-promo { background: linear-gradient(135deg,rgba(124,58,237,0.3),rgba(168,85,247,0.3)); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }

/* ── Tables ────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}
table { width: 100%; border-collapse: collapse; }
thead tr { background: rgba(124,58,237,0.1); }
thead th {
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
tbody tr { transition: var(--transition); }
tbody tr:hover { background: var(--bg-card); }
tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
tbody td { padding: 0.875rem 1rem; font-size: 0.875rem; color: var(--text-primary); vertical-align: middle; }
.action-btns { display: flex; gap: 0.4rem; align-items: center; }

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: #13132a;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%; max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { color: var(--danger); border-color: var(--danger); }
.modal-footer { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ── Loading & Toast ───────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,20,0.85);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast-container {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 380px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  backdrop-filter: blur(20px);
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { to { transform: translateX(110%); opacity: 0; } }
.toast.removing { animation: slideOut 0.3s ease forwards; }
.toast-success { background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.4); color: #6ee7b7; }
.toast-error { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }
.toast-info { background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.4); color: #93c5fd; }

/* ── Progress bar ──────────────────────────────────────── */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1rem 0;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  flex: 1;
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  top: 16px; left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}
.step:last-child::before { display: none; }
.step.done::before { background: var(--success); }
.step.active::before { background: var(--accent); }
.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  z-index: 1;
  transition: var(--transition-slow);
}
.step.done .step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.step.active .step-circle { background: var(--accent); border-color: var(--accent-light); color: #fff; box-shadow: 0 0 16px var(--accent-glow); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 8px var(--accent-glow); } 50% { box-shadow: 0 0 24px var(--accent-glow); } }
.step-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; text-align: center; }
.step.done .step-label, .step.active .step-label { color: var(--text-secondary); }

/* ── Header / Topbar ───────────────────────────────────── */
.topbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(15,15,30,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.user-chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-secondary);
}
.user-chip-avatar {
  width: 24px; height: 24px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: #fff;
}

/* ── Cart badge ────────────────────────────────────────── */
.cart-btn {
  position: fixed;
  bottom: 2rem; right: 1.5rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.5rem;
  box-shadow: var(--shadow-accent);
  transition: var(--transition);
  z-index: 50;
  animation: floatIn 0.4s ease;
}
.cart-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(124,58,237,0.5); }
@keyframes floatIn { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cart-count {
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  width: 22px; height: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Tabs / Category Filter ────────────────────────────── */
.tabs-wrapper {
  display: flex; gap: 0.5rem;
  overflow-x: auto; padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.tabs-wrapper::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.tab-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.tab-btn.active { background: var(--accent-gradient); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(124,58,237,0.4); }

/* ── Grid layouts ──────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }

/* ── Page header ───────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.page-title { font-size: 1.5rem; font-weight: 700; }
.page-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Empty state ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-title { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }

/* ── Kasir order card ──────────────────────────────────── */
.order-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
}
.order-card:hover { border-color: rgba(124,58,237,0.3); }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.order-number { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.order-table { font-size: 0.8rem; color: var(--text-muted); }
.order-items-list { list-style: none; margin-bottom: 1rem; }
.order-items-list li { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 0.3rem 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.order-items-list li:last-child { border-bottom: none; }
.order-total { font-weight: 700; color: var(--accent-light); font-family: 'Space Grotesk', sans-serif; font-size: 1rem; }
.order-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

/* ── Login page ────────────────────────────────────────── */
.login-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  position: relative; z-index: 1;
}
.login-card {
  width: 100%; max-width: 420px;
  background: rgba(15,15,30,0.9);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-logo-icon {
  width: 64px; height: 64px;
  background: var(--accent-gradient);
  border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-accent);
  margin-bottom: 1rem;
}
.login-title { text-align: center; font-size: 1.5rem; margin-bottom: 0.25rem; }
.login-subtitle { text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.875rem; }
  .topbar { padding: 0 1rem; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
}

/* ── Utility ───────────────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }
