/* ═══════════════════════════════════════════════════════════════
   CECHIEF — Premium Restaurant POS
   Powered by CeChief
   Fonts: Cinzel + Poppins
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Brand — Gold */
  --brand:          #c9922a;
  --brand-deep:     #8a5e0e;
  --brand-bright:   #f0b429;
  --brand-glow:     rgba(201,146,42,0.35);
  --brand-glow-sm:  rgba(201,146,42,0.15);
  --brand-pale:     rgba(201,146,42,0.08);

  /* Gold gradient tokens */
  --gold-1:         #f0b429;
  --gold-2:         #c9922a;
  --gold-3:         #8a5e0e;
  --gold-text:      #f5d87a;

  /* Neutrals — near-black luxury */
  --canvas:         #080706;
  --surface-1:      #100e0b;
  --surface-2:      #18150f;
  --surface-3:      #221e16;
  --surface-glass:  rgba(12,10,7,0.80);

  --fg:             #f7f2e8;
  --fg-2:           #d4c9a8;
  --fg-3:           #8a7d5e;
  --fg-4:           #554d36;

  --border:         rgba(201,146,42,0.12);
  --border-2:       rgba(201,146,42,0.22);

  /* Accent palette */
  --green:          #22c55e;
  --green-bg:       rgba(34,197,94,0.1);
  --amber:          #f59e0b;
  --amber-bg:       rgba(245,158,11,0.1);
  --blue:           #3b82f6;
  --blue-bg:        rgba(59,130,246,0.1);
  --red:            #ef4444;
  --red-bg:         rgba(239,68,68,0.1);
  --purple:         #a855f7;
  --purple-bg:      rgba(168,85,247,0.1);
  --teal:           #14b8a6;
  --teal-bg:        rgba(20,184,166,0.1);

  /* Layout */
  --sidebar-w:      248px;
  --sidebar-collapsed-w: 76px;
  --topbar-h:       62px;
  --topbar-bg:      rgba(8,7,6,0.92);

  /* Radii */
  --r-xs:  6px;
  --r-sm:  10px;
  --r:     16px;
  --r-lg:  22px;
  --r-xl:  28px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.25);
  --shadow:      0 4px 20px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-lg:   0 16px 50px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-glow: 0 8px 32px var(--brand-glow);
}

:root[data-theme="light"] {
  color-scheme: light;

  --canvas:         #ffffff;
  --surface-1:      #fafaf8;
  --surface-2:      #f4f0e8;
  --surface-3:      #ede7d8;
  --surface-glass:  rgba(255,255,255,0.88);

  --fg:             #0e0c08;
  --fg-2:           #2a2215;
  --fg-3:           #6b5e3e;
  --fg-4:           #a0916a;

  --border:         rgba(139,100,20,0.14);
  --border-2:       rgba(139,100,20,0.24);

  --brand:          #b8821e;
  --brand-deep:     #7a520a;
  --brand-bright:   #d4a020;
  --brand-glow:     rgba(184,130,30,0.25);
  --brand-glow-sm:  rgba(184,130,30,0.12);
  --brand-pale:     rgba(184,130,30,0.08);
  --gold-text:      #7a520a;

  --green-bg:       rgba(34,197,94,0.10);
  --amber-bg:       rgba(245,158,11,0.12);
  --blue-bg:        rgba(59,130,246,0.10);
  --red-bg:         rgba(239,68,68,0.10);
  --purple-bg:      rgba(168,85,247,0.10);
  --teal-bg:        rgba(20,184,166,0.10);

  --topbar-bg:      rgba(255,255,255,0.92);

  --shadow-sm:      0 1px 3px rgba(20,15,5,0.08), 0 4px 14px rgba(20,15,5,0.05);
  --shadow:         0 8px 24px rgba(20,15,5,0.10), 0 2px 8px rgba(20,15,5,0.06);
  --shadow-lg:      0 20px 50px rgba(20,15,5,0.14), 0 6px 18px rgba(20,15,5,0.08);
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  background: var(--canvas);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

/* ── APP SHELL ────────────────────────────────────────────── */
.app { display: flex; height: 100vh; overflow: hidden; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Sidebar ambient glow */
.sidebar::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(229,90,43,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar.collapsed { width: var(--sidebar-collapsed-w); }
.sidebar.collapsed .brand {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
.sidebar.collapsed .brand-text,
.sidebar.collapsed .brand-badge,
.sidebar.collapsed .user-info,
.sidebar.collapsed .user-status,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-label-txt,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .nav-count,
.sidebar.collapsed .role-indicator,
.sidebar.collapsed .logout-text {
  display: none !important;
}
.sidebar.collapsed .sidebar-user {
  justify-content: center;
  margin: 12px 10px;
  padding: 10px;
}
.sidebar.collapsed .sidebar-nav { padding: 10px 0; }
.sidebar.collapsed .nav-item {
  justify-content: center;
  gap: 0;
  margin: 3px 10px;
  padding: 9px;
}
.sidebar.collapsed .nav-icon { width: 36px; height: 36px; }
.sidebar.collapsed .sidebar-footer { padding: 10px; }
.sidebar.collapsed .logout-btn {
  justify-content: center;
  padding: 10px;
}
.sidebar.collapsed .logout-btn svg { flex-shrink: 0; }
.sidebar.collapsed .nav-item.active::before { left: -10px; }

/* Brand */
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-logo {
  width: 40px; height: 40px; border-radius: 14px;
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-deep));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  font-size: 20px;
}
.brand-text .name {
  font-family: 'Cinzel', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--fg); letter-spacing: -0.3px; line-height: 1;
}
.brand-text .name strong { color: var(--brand-bright); }
.brand-text .sub { font-size: 9px; color: var(--fg-4); margin-top: 2px; letter-spacing: 0.5px; font-weight: 500; text-transform: uppercase; }
.brand-badge {
  margin-left: auto; padding: 3px 8px;
  background: var(--brand-pale); color: var(--brand-bright);
  border: 1px solid rgba(229,90,43,0.25);
  font-size: 9px; font-weight: 700; border-radius: 20px; letter-spacing: 0.8px;
}

/* Sidebar user card */
.sidebar-user {
  margin: 12px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 12px 13px; display: flex; align-items: center; gap: 10px;
  position: relative; overflow: hidden; white-space: nowrap;
  flex-shrink: 0;
}
.sidebar-user::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(229,90,43,0.05));
  pointer-events: none;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', sans-serif;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 12px var(--brand-glow);
}
.user-info .uname { font-size: 13px; font-weight: 700; color: var(--fg); line-height: 1.2; }
.user-info .urole { font-size: 10px; color: var(--fg-3); margin-top: 1px; }
.user-status { margin-left: auto; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(34,197,94,0.2), 0 0 10px rgba(34,197,94,0.4);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.2), 0 0 10px rgba(34,197,94,0.35); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0.1), 0 0 18px rgba(34,197,94,0.45); }
}

/* Nav */
.sidebar-nav {
  flex: 1; overflow-y: auto;
  padding: 10px 0;
  display: flex; flex-direction: column;
}
.nav-section-label, .nav-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.8px;
  color: var(--fg-4); padding: 16px 20px 6px;
  text-transform: uppercase; white-space: nowrap;
  display: block;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 1px 8px; border-radius: var(--r-sm);
  color: var(--fg-3); font-size: 13px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap; position: relative;
  letter-spacing: -0.1px;
}
.nav-item:hover {
  color: var(--fg);
  background: var(--surface-2);
}
.nav-item.active {
  color: var(--fg);
  background: linear-gradient(135deg, rgba(229,90,43,0.18), rgba(184,61,22,0.10));
  border: 1px solid rgba(229,90,43,0.2);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
}
.nav-icon {
  width: 32px; height: 32px; border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--fg-3);
  transition: all 0.18s;
}
.nav-item.active .nav-icon {
  background: rgba(229,90,43,0.15);
  color: var(--brand-bright);
}
.nav-item:hover .nav-icon { color: var(--fg-2); }
.nav-label-txt { flex: 1; }
.nav-count {
  font-size: 10px; font-weight: 700; min-width: 20px; height: 20px;
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
  background: rgba(239,68,68,0.2); color: #fca5a5;
}

/* Sidebar footer */
.sidebar-footer { padding: 10px 12px 14px; flex-shrink: 0; }
.role-indicator {
  margin-bottom: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.role-indicator .role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.role-text {
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 600;
}
.role-name {
  color: var(--fg);
  font-weight: 800;
}
.role-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 11px; color: var(--fg-3);
}
.role-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.logout-btn {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: rgba(239,68,68,0.08); color: rgba(252,165,165,0.7);
  border: 1px solid rgba(239,68,68,0.12);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all 0.18s; font-family: inherit;
}
.logout-btn:hover { background: rgba(239,68,68,0.15); color: #fca5a5; }

/* Toggle btn — fixed to left edge, always visible */
.sidebar-toggle-btn {
  position: fixed;
  left: calc(var(--sidebar-w) - 14px);
  top: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--fg-3); cursor: pointer; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: left 0.3s cubic-bezier(0.22,1,0.36,1), color 0.2s, border-color 0.2s, background 0.2s;
}
.sidebar-toggle-btn:hover { color: var(--brand-bright); border-color: rgba(229,90,43,0.5); background: var(--surface-3); }
/* When sidebar is collapsed the button stays beside the icon rail */
.sidebar-toggle-btn.sidebar-collapsed,
.sidebar-toggle-btn.sidebar-hidden { left: calc(var(--sidebar-collapsed-w) - 14px); }

/* Overlay */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 15;
}

/* ══════════════════════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════════════════════ */
.main-wrap { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 10;
}
.topbar-hamburger {
  display: none; width: 36px; height: 36px;
  border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--border); color: var(--fg-3); cursor: pointer;
  align-items: center; justify-content: center;
}
.topbar-search {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0 14px; height: 38px;
  flex: 1; max-width: 380px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.topbar-search:focus-within {
  border-color: rgba(229,90,43,0.4);
  box-shadow: 0 0 0 3px var(--brand-glow-sm);
}
.search-icon { color: var(--fg-4); flex-shrink: 0; }
.topbar-search input {
  flex: 1; border: none; background: none;
  font-size: 13px; color: var(--fg); font-family: inherit; outline: none;
}
.topbar-search input::placeholder { color: var(--fg-4); }
.search-shortcut {
  font-size: 10px; color: var(--fg-4);
  background: var(--surface-3); padding: 2px 6px;
  border-radius: 4px; font-weight: 600;
}
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar-clock { text-align: right; }
.clock { font-family: 'Cinzel', sans-serif; font-size: 15px; font-weight: 600; color: var(--fg); line-height: 1; }
.dateline { font-size: 10px; color: var(--fg-3); margin-top: 1px; }
.topbar-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--fg-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: all 0.18s;
}
.topbar-btn:hover { color: var(--brand-bright); border-color: rgba(229,90,43,0.3); }
.theme-toggle svg { transition: transform 0.18s ease; }
.theme-toggle:hover svg { transform: rotate(-12deg); }
.auth-theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.topbar-btn-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 8px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.topbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
}
.topbar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.topbar-uname { font-size: 12px; font-weight: 700; color: var(--fg); display: block; }
.topbar-urole { font-size: 10px; color: var(--fg-3); display: block; }

/* ══════════════════════════════════════════════════════════
   PAGE CONTENT
══════════════════════════════════════════════════════════ */
.page-content { flex: 1; overflow-y: auto; padding: 24px 26px; }

/* Page header */
.page-header {
  margin-bottom: 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.page-title {
  font-family: 'Cinzel', sans-serif;
  font-size: 24px; font-weight: 700; color: var(--fg);
  letter-spacing: -0.5px; line-height: 1;
}
.page-subtitle { font-size: 13px; color: var(--fg-3); margin-top: 5px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.alert-error   { background: var(--red-bg);   color: var(--red);   border: 1px solid rgba(239,68,68,0.2); }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; font-family: inherit;
  transition: all 0.18s ease; text-decoration: none;
  letter-spacing: -0.1px; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--brand-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface-2); color: var(--fg-2);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { border-color: rgba(229,90,43,0.3); color: var(--brand-bright); background: var(--surface-3); }
.btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 12px; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-title { font-family: 'Cinzel', sans-serif; font-size: 15px; font-weight: 600; color: var(--fg); }

/* ══════════════════════════════════════════════════════════
   STAT CARDS — with food images
══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.stat-card {
  border-radius: var(--r-lg); padding: 22px 20px;
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-1);
  transition: transform 0.22s, box-shadow 0.22s;
  cursor: default;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Real image background on stat cards */
.stat-card::before {
  content: '';
  position: absolute; right: -10px; bottom: -10px;
  width: 110px; height: 110px;
  border-radius: 50%;
  opacity: 0.07;
  filter: blur(1px);
  background-size: cover; background-position: center;
}
.stat-card.revenue::before  { background-image: url('https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=200&q=80'); }
.stat-card.orders::before   { background-image: url('https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?w=200&q=80'); }
.stat-card.tables::before   { background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=200&q=80'); }
.stat-card.customers::before{ background-image: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=200&q=80'); }

.stat-label {
  font-size: 11px; font-weight: 600; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 10px;
}
.stat-value {
  font-family: 'Cinzel', sans-serif;
  font-size: 28px; font-weight: 700; color: var(--fg); letter-spacing: -1px; line-height: 1;
}
.stat-change {
  font-size: 11.5px; font-weight: 600; margin-top: 8px;
  display: flex; align-items: center; gap: 4px;
}
.stat-change.up   { color: var(--green); }
.stat-change.down { color: var(--red); }
.stat-change.neutral { color: var(--fg-3); }
.stat-icon {
  position: absolute; right: 16px; top: 18px;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

/* ══════════════════════════════════════════════════════════
   TABLE
══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 11px 16px;
  font-size: 10.5px; font-weight: 700; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.7px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap; text-align: left;
}
thead th:first-child { border-radius: var(--r-sm) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--r-sm) 0 0; }
tbody td { padding: 14px 16px; font-size: 13px; color: var(--fg-2); border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }

/* ── Status pills ─────────────────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.status-pill.active,
.status-pill.available { background: var(--green-bg);  color: var(--green); }
.status-pill.inactive,
.status-pill.out-of-stock { background: var(--red-bg);   color: var(--red); }
.status-pill.preparing,
.status-pill.occupied  { background: var(--amber-bg); color: var(--amber); }
.status-pill.ready     { background: var(--teal-bg);  color: var(--teal); }
.status-pill.reserved  { background: var(--blue-bg);  color: var(--blue); }
.status-pill.cleaning  { background: var(--purple-bg);color: var(--purple); }
.status-pill.completed { background: rgba(255,255,255,0.06); color: var(--fg-3); }
.status-pill.new       { background: var(--blue-bg);  color: var(--blue); }
.status-pill.cancelled { background: var(--red-bg);   color: var(--red); }
.status-pill.paid      { background: var(--green-bg); color: var(--green); }
.status-pill.pending   { background: var(--amber-bg); color: var(--amber); }

/* ── Table action buttons ─────────────────────────────────── */
.tbl-action-btn {
  width: 30px; height: 30px; border-radius: var(--r-xs);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--fg-3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.18s; margin: 0 2px;
}
.tbl-action-btn:hover { background: var(--brand-pale); color: var(--brand-bright); border-color: rgba(229,90,43,0.3); }
.tbl-action-btn.danger:hover { background: var(--red-bg); color: var(--red); border-color: rgba(239,68,68,0.3); }

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700; color: var(--fg-3);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px;
}
.form-control {
  width: 100%; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border-2); background: var(--surface-2);
  font-size: 13.5px; color: var(--fg); font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s; outline: none;
}
.form-control::placeholder { color: var(--fg-4); }
.form-control:focus { border-color: rgba(229,90,43,0.5); box-shadow: 0 0 0 3px var(--brand-glow-sm); }
:root[data-theme="light"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23746357' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a4535' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}

/* ══════════════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════════════ */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-search {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0 13px; height: 38px;
  flex: 1; min-width: 200px;
  transition: border-color 0.18s;
}
.filter-search:focus-within { border-color: rgba(229,90,43,0.4); }
.filter-search input { flex: 1; border: none; background: none; font-size: 13px; color: var(--fg); font-family: inherit; outline: none; }
.filter-search input::placeholder { color: var(--fg-4); }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 12px; font-weight: 600; color: var(--fg-3);
  cursor: pointer; transition: all 0.18s;
}
.filter-chip:hover { border-color: rgba(229,90,43,0.3); color: var(--brand-bright); }
.filter-chip.active { border-color: rgba(229,90,43,0.4); color: var(--brand-bright); background: var(--brand-pale); }

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  z-index: 100; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface-1); border-radius: var(--r-xl);
  border: 1px solid var(--border-2); width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg); animation: modal-in 0.22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.modal-header { padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title  { font-family: 'Cinzel', sans-serif; font-size: 17px; font-weight: 600; color: var(--fg); }
.modal-close  {
  width: 32px; height: 32px; border-radius: var(--r-xs);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--fg-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.18s;
}
.modal-close:hover { color: var(--red); border-color: rgba(239,68,68,0.3); }
.modal-body   { padding: 24px 26px; }
.modal-footer { padding: 16px 26px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════════ */
.dash-grid   { display: grid; gap: 16px; }
.dash-grid-2 { grid-template-columns: 1fr 1fr; }

/* ══════════════════════════════════════════════════════════
   TABLES (floor plan)
══════════════════════════════════════════════════════════ */
.tables-floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.table-card {
  background: var(--surface-1); border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  padding: 20px 16px; text-align: center; cursor: pointer;
  transition: all 0.22s; position: relative; overflow: hidden;
}
.table-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.02));
  pointer-events: none;
}
.table-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.table-card.available { border-color: rgba(34,197,94,0.3); }
.table-card.occupied  { border-color: rgba(245,158,11,0.35); }
.table-card.reserved  { border-color: rgba(59,130,246,0.3); }
.table-card.cleaning  { border-color: rgba(168,85,247,0.3); }
.table-num { font-family: 'Cinzel', sans-serif; font-size: 30px; font-weight: 700; color: var(--fg); }
.table-label { font-size: 11px; color: var(--fg-3); margin: 4px 0 10px; font-weight: 500; }
.table-status-badge { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 12px; display: inline-block; }
.table-card.available .table-status-badge { background: var(--green-bg);  color: var(--green); }
.table-card.occupied  .table-status-badge { background: var(--amber-bg); color: var(--amber); }
.table-card.reserved  .table-status-badge { background: var(--blue-bg);  color: var(--blue); }
.table-card.cleaning  .table-status-badge { background: var(--purple-bg);color: var(--purple); }
.table-covers { font-size: 11px; color: var(--fg-3); margin-top: 6px; }

/* ══════════════════════════════════════════════════════════
   KITCHEN
══════════════════════════════════════════════════════════ */
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.kitchen-card {
  background: var(--surface-1); border-radius: var(--r-lg);
  border: 1px solid var(--border); border-top: 3px solid;
  padding: 18px; transition: transform 0.2s;
}
.kitchen-card:hover { transform: translateY(-2px); }
.kitchen-card.new       { border-top-color: var(--blue); }
.kitchen-card.preparing { border-top-color: var(--brand); }
.kitchen-card.ready     { border-top-color: var(--green); }

/* ══════════════════════════════════════════════════════════
   POS
══════════════════════════════════════════════════════════ */
.pos-layout {
  display: flex;
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
}
.pos-left { flex: 1; overflow-y: auto; padding: 18px 20px; background: var(--canvas); }
.pos-right {
  width: 330px; flex-shrink: 0;
  background: var(--surface-1);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
}

/* Product cards — with real food images */
.pos-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 13px; }
.pos-product-card {
  background: var(--surface-1);
  border-radius: var(--r-lg); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s; overflow: hidden;
  position: relative;
}
.pos-product-card:hover { border-color: rgba(229,90,43,0.35); transform: translateY(-2px); box-shadow: var(--shadow); }
.pos-product-card:active { transform: scale(0.97); }
.pos-product-card.unavailable { opacity: 0.45; pointer-events: none; }

/* Food image area */
.pos-product-img {
  width: 100%; height: 110px;
  object-fit: cover; display: block;
  background: var(--surface-2);
}
.pos-product-img-placeholder {
  width: 100%; height: 110px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.pos-product-body { padding: 10px 12px 12px; }
.pos-product-name { font-size: 12.5px; font-weight: 700; color: var(--fg); margin-bottom: 4px; line-height: 1.3; }
.pos-product-price {
  font-family: 'Cinzel', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--brand-bright);
}
.pos-product-prep { font-size: 10px; color: var(--fg-4); margin-top: 2px; }

/* Cart */
.cart-header { padding: 16px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cart-title { font-family: 'Cinzel', sans-serif; font-size: 15px; font-weight: 600; color: var(--fg); }
.cart-subtitle { font-size: 11px; color: var(--fg-3); margin-top: 2px; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px; }
.cart-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  margin-bottom: 8px;
}
.cart-item-name  { font-size: 12.5px; font-weight: 700; color: var(--fg); flex: 1; min-width: 0; }
.cart-item-price { font-size: 12px; font-weight: 800; color: var(--brand-bright); white-space: nowrap; }
.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--fg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; transition: all 0.15s;
}
.qty-btn:hover { background: var(--brand); border-color: var(--brand); }
.qty-value { font-size: 13px; font-weight: 800; color: var(--fg); min-width: 20px; text-align: center; }
.cart-footer { padding: 14px 18px; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12.5px; color: var(--fg-3); }
.cart-grand-total { display: flex; justify-content: space-between; font-family: 'Cinzel', sans-serif; font-size: 17px; font-weight: 700; color: var(--fg); margin: 10px 0; }

/* ══════════════════════════════════════════════════════════
   REPORTS
══════════════════════════════════════════════════════════ */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.report-card {
  background: var(--surface-1); border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer; transition: all 0.22s; position: relative;
}
.report-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(229,90,43,0.25); }
/* Food image strip on report cards */
.report-card-img {
  width: 100%; height: 120px;
  object-fit: cover; display: block;
  filter: brightness(0.6);
}
.report-card-body { padding: 18px 20px; }
.report-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.report-title { font-family: 'Cinzel', sans-serif; font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.report-desc { font-size: 12.5px; color: var(--fg-3); line-height: 1.55; }

/* ══════════════════════════════════════════════════════════
   AUTH — FULL REDESIGN
══════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--canvas);
}
.auth-left {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.auth-bg-img {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1200&q=90');
  background-size: cover; background-position: center;
  filter: brightness(0.45);
}
.auth-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,11,9,0.95) 0%, rgba(14,11,9,0.3) 60%, transparent 100%);
}
.auth-left-content { position: relative; z-index: 2; padding: 48px; }
.auth-quote {
  font-family: 'Cinzel', sans-serif;
  font-size: 36px; font-weight: 700; color: #fff;
  line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 16px;
}
.auth-quote em { color: var(--brand-bright); font-style: normal; }
.auth-quote-sub { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 420px; }

/* Food image strip */
.auth-food-strip {
  display: flex; gap: 12px; margin-top: 32px; overflow: hidden;
}
.auth-food-item {
  width: 90px; height: 90px; border-radius: 14px;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1);
  transition: transform 0.3s;
}
.auth-food-item:hover { transform: scale(1.05); }

.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 48px;
  background: var(--surface-1);
}
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-logo-group { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.auth-logo-icon {
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 24px var(--brand-glow);
}
.auth-logo-text .name { font-family: 'Cinzel', sans-serif; font-size: 20px; font-weight: 700; color: var(--fg); }
.auth-logo-text .name strong { color: var(--brand-bright); }
.auth-logo-text .sub { font-size: 10px; color: var(--fg-4); margin-top: 1px; letter-spacing: 0.5px; text-transform: uppercase; }
.auth-form-title { font-family: 'Cinzel', sans-serif; font-size: 28px; font-weight: 700; color: var(--fg); margin-bottom: 8px; letter-spacing: -0.5px; }
.auth-form-subtitle { font-size: 14px; color: var(--fg-3); margin-bottom: 32px; line-height: 1.5; }
.auth-footer { text-align: center; margin-top: 28px; font-size: 12px; color: var(--fg-4); }
.auth-footer a { color: var(--brand-bright); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD HERO CARD
══════════════════════════════════════════════════════════ */
.dashboard-hero {
  border-radius: var(--r-xl); overflow: hidden;
  position: relative; min-height: 180px;
  margin-bottom: 24px; display: flex; align-items: flex-end;
}
.dashboard-hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1400&q=85');
  background-size: cover; background-position: center 40%;
  filter: brightness(0.45);
  transition: filter 0.3s;
}
.dashboard-hero:hover .dashboard-hero-bg { filter: brightness(0.5); }
.dashboard-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,11,9,0.9) 0%, rgba(14,11,9,0.4) 60%, transparent 100%);
}
.dashboard-hero-content { position: relative; z-index: 2; padding: 32px 36px; }
.hero-greeting { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 500; margin-bottom: 6px; letter-spacing: 0.3px; }
.hero-title {
  font-family: 'Cinzel', sans-serif;
  font-size: 30px; font-weight: 700; color: #fff;
  letter-spacing: -0.5px; line-height: 1.1; margin-bottom: 10px;
}
.hero-title em { color: var(--brand-bright); font-style: normal; }
.hero-subtitle { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 480px; line-height: 1.5; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ══════════════════════════════════════════════════════════
   MENU ITEM CARD (grid view)
══════════════════════════════════════════════════════════ */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.menu-item-card {
  background: var(--surface-1); border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: all 0.22s;
}
.menu-item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(229,90,43,0.25); }
.menu-item-card-img {
  width: 100%; height: 140px; object-fit: cover;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.menu-item-card-body { padding: 14px 16px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dash-grid-2 { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 25;
    transform: translateX(-100%); transition: transform 0.3s ease;
    width: var(--sidebar-w) !important;
  }
  .sidebar.collapsed { width: var(--sidebar-w) !important; }
  .sidebar.collapsed .brand { justify-content: flex-start; padding: 20px 18px 16px; }
  .sidebar.collapsed .brand-text,
  .sidebar.collapsed .brand-badge,
  .sidebar.collapsed .user-info,
  .sidebar.collapsed .user-status,
  .sidebar.collapsed .nav-label-txt,
  .sidebar.collapsed .logout-text { display: block !important; }
  .sidebar.collapsed .nav-label { display: block !important; }
  .sidebar.collapsed .nav-badge,
  .sidebar.collapsed .nav-count { display: flex !important; }
  .sidebar.collapsed .role-indicator { display: flex !important; }
  .sidebar.collapsed .sidebar-user { justify-content: flex-start; margin: 12px; padding: 12px 13px; }
  .sidebar.collapsed .nav-item { justify-content: flex-start; gap: 11px; margin: 1px 8px; padding: 9px 12px; }
  .sidebar.collapsed .nav-label-txt { flex: 1; }
  .sidebar.collapsed .sidebar-footer { padding: 10px 12px 14px; }
  .sidebar.collapsed .logout-btn { justify-content: flex-start; padding: 9px 12px; }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .sidebar-toggle-btn { display: none; }
  .topbar-hamburger { display: flex; }
  .topbar-search { max-width: none; }
  .search-shortcut, .topbar-clock, .topbar-user { display: none; }
  .page-content { padding: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pos-layout { flex-direction: column; height: auto; }
  .pos-right { width: 100%; border-left: none; border-top: 1px solid var(--border); height: 340px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .page-header { flex-direction: column; }
  .tables-floor-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .auth-right { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 20px; }
  .kitchen-grid, .reports-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   CHECKOUT / ORDER SUCCESS POPUP
══════════════════════════════════════════════════════════ */
.checkout-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px;
}
.checkout-backdrop.open { display: flex; }

.checkout-modal {
  background: var(--surface-1);
  border: 1px solid var(--border-2);
  border-radius: 28px;
  width: 100%; max-width: 520px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(229,90,43,0.08);
  overflow: hidden;
  animation: checkout-in 0.3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes checkout-in {
  from { opacity:0; transform: scale(0.88) translateY(24px); }
  to   { opacity:1; transform: none; }
}

/* Success header with food image */
.checkout-header {
  position: relative;
  height: 180px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.checkout-header-img {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=800&q=80');
  background-size: cover; background-position: center;
  filter: brightness(0.4);
}
.checkout-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--surface-1) 0%, transparent 60%);
}
.checkout-header-content {
  position: relative; z-index: 2;
  padding: 20px 28px; width: 100%;
  display: flex; align-items: center; gap: 16px;
}
.checkout-success-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #15803d);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(34,197,94,0.4);
  animation: pop-in 0.4s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes pop-in {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.checkout-success-text .title {
  font-family: 'Cinzel', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--fg);
  letter-spacing: -0.3px; line-height: 1.1;
}
.checkout-success-text .subtitle { font-size: 13px; color: var(--fg-3); margin-top: 3px; }

/* Order summary strip */
.checkout-summary {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.checkout-summary-item {
  padding: 14px 16px; background: var(--surface-2); text-align: center;
}
.checkout-summary-item .lbl { font-size: 10px; font-weight: 700; color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.checkout-summary-item .val { font-family: 'Cinzel', sans-serif; font-size: 18px; font-weight: 700; color: var(--fg); }
.checkout-summary-item .val.money { color: var(--brand-bright); }

/* Print options */
.checkout-body { padding: 24px 28px; }
.checkout-body h3 {
  font-family: 'Cinzel', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--fg-2);
  margin-bottom: 14px; text-align: center;
  text-transform: uppercase; letter-spacing: 1px;
}

.print-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }

.print-option-card {
  border: 1.5px solid var(--border-2);
  border-radius: 18px; padding: 20px 16px;
  cursor: pointer; text-align: center;
  transition: all 0.22s; background: var(--surface-2);
  text-decoration: none; display: block;
  position: relative; overflow: hidden;
}
.print-option-card::before {
  content: '';
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.22s;
}
.print-option-card.customer::before {
  background: radial-gradient(circle at center, rgba(229,90,43,0.08), transparent 70%);
}
.print-option-card.kitchen::before {
  background: radial-gradient(circle at center, rgba(59,130,246,0.08), transparent 70%);
}
.print-option-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.print-option-card.customer:hover { border-color: rgba(229,90,43,0.4); }
.print-option-card.kitchen:hover  { border-color: rgba(59,130,246,0.4); }
.print-option-card:hover::before  { opacity: 1; }

.print-option-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 12px;
}
.print-option-card.customer .print-option-icon { background: var(--brand-pale); }
.print-option-card.kitchen  .print-option-icon { background: var(--blue-bg); }

.print-option-title {
  font-family: 'Cinzel', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 4px;
}
.print-option-desc { font-size: 11px; color: var(--fg-3); line-height: 1.4; }
.print-option-badge {
  display: inline-block; margin-top: 10px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
}
.print-option-card.customer .print-option-badge { background: var(--brand-pale); color: var(--brand-bright); }
.print-option-card.kitchen  .print-option-badge { background: var(--blue-bg); color: var(--blue); }

/* Both print button */
.print-both-btn {
  width: 100%; padding: 13px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #fff; border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 700; letter-spacing: -0.1px;
  box-shadow: 0 4px 20px var(--brand-glow);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
  margin-bottom: 10px;
}
.print-both-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--brand-glow); }

.skip-btn {
  width: 100%; padding: 10px; border-radius: 12px;
  background: transparent; color: var(--fg-3); border: 1px solid var(--border);
  cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600;
  transition: all 0.18s;
}
.skip-btn:hover { background: var(--surface-2); color: var(--fg); }

/* New order prompt */
.new-order-prompt {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--fg-4); text-align: center;
}
.new-order-prompt a {
  color: var(--brand-bright); font-weight: 700; text-decoration: none;
}

/* ── AI Features ─────────────────────────────────── */
@keyframes pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%    { opacity:.6; transform:scale(1.3); }
}
.topbar-btn[href*="ai"] {
  color: var(--brand-bright);
}
.topbar-btn[href*="ai"]:hover {
  background: var(--brand-pale);
}

/* ══ CECHIEF GOLD REBRAND ADDITIONS ══════════════════════ */

/* Gold gradient text utility */
.gold-text {
  background: linear-gradient(135deg, #f5d87a 0%, #f0b429 35%, #c9922a 65%, #8a5e0e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Override btn-primary to gold */
.btn-primary {
  background: linear-gradient(135deg, #f0b429 0%, #c9922a 50%, #8a5e0e 100%) !important;
  color: #0e0c08 !important;
  border-color: transparent !important;
  box-shadow: 0 3px 14px rgba(201,146,42,0.40) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f5d87a 0%, #f0b429 50%, #c9922a 100%) !important;
  box-shadow: 0 5px 20px rgba(201,146,42,0.55) !important;
  transform: translateY(-1px);
}

/* Sidebar gradient — near-black with gold accent line */
.sidebar {
  background: linear-gradient(180deg, #0c0a07 0%, #100e0b 60%, #18150f 100%) !important;
  border-right: 1px solid rgba(201,146,42,0.18) !important;
}
.sidebar-gradient { display: none !important; }

/* Brand in sidebar */
.brand-logo {
  background: linear-gradient(135deg, #f0b429, #8a5e0e) !important;
  box-shadow: 0 4px 20px rgba(201,146,42,0.4), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}
.brand-text .name {
  font-family: 'Cinzel', serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  background: linear-gradient(135deg, #f5d87a, #c9922a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-text .name strong {
  -webkit-text-fill-color: transparent !important;
}
.brand-text .sub {
  color: rgba(201,146,42,0.5) !important;
  letter-spacing: 0.8px !important;
}
.brand-badge {
  background: linear-gradient(135deg, #f0b429, #c9922a) !important;
  color: #0e0c08 !important;
  font-weight: 800 !important;
}

/* Nav active item gold */
.nav-item.active {
  background: rgba(201,146,42,0.10) !important;
  color: #f0b429 !important;
}
.nav-item.active::before {
  background: linear-gradient(180deg, #f0b429, #c9922a) !important;
}
.nav-item.active .nav-icon { color: #f0b429 !important; }
.nav-item:hover { color: #f5d87a !important; }
.nav-item:hover .nav-icon { color: #f0b429 !important; }

/* Topbar */
.topbar {
  border-bottom: 1px solid rgba(201,146,42,0.15) !important;
}
.topbar-btn:hover { color: #f0b429 !important; border-color: rgba(201,146,42,0.35) !important; }

/* Cards gold border top accent */
.card {
  border: 1px solid rgba(201,146,42,0.12) !important;
}
.card-title { font-family: 'Cinzel', serif !important; font-weight: 600 !important; }
.page-title { font-family: 'Cinzel', serif !important; font-weight: 700 !important; letter-spacing: 0.5px !important; }

/* Stat cards gold accent */
.stat-card.revenue { border-top: 2px solid #f0b429 !important; }
.stat-card { border: 1px solid rgba(201,146,42,0.14) !important; }

/* Table header gold accent */
th { color: rgba(201,146,42,0.8) !important; letter-spacing: 0.5px !important; }

/* Status pill gold for brand color areas */
.status-pill { font-family: 'Poppins', sans-serif !important; }

/* Form focus gold */
.form-control:focus {
  border-color: rgba(201,146,42,0.6) !important;
  box-shadow: 0 0 0 3px rgba(201,146,42,0.12) !important;
}

/* Modal title Cinzel */
.modal-title { font-family: 'Cinzel', serif !important; }

/* Auth page logo brand text gold */
.auth-logo-text .name {
  font-family: 'Cinzel', serif !important;
  background: linear-gradient(135deg, #f5d87a 0%, #f0b429 40%, #c9922a 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
}
.auth-logo-text .name strong {
  -webkit-text-fill-color: transparent !important;
}
.auth-logo-text .sub {
  color: rgba(201,146,42,0.55) !important;
  letter-spacing: 1.2px !important;
}
.auth-logo-icon {
  background: linear-gradient(135deg, #f0b429 0%, #c9922a 50%, #8a5e0e 100%) !important;
}

/* Hero title font */
.hero-title { font-family: 'Cinzel', serif !important; }
.hero-title em { font-style: normal !important; background: linear-gradient(135deg,#f5d87a,#c9922a); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

/* Dashboard hero gradient gold */
.dashboard-hero {
  background: linear-gradient(135deg, #0c0a07 0%, #18150f 40%, #1e1a10 100%) !important;
  border: 1px solid rgba(201,146,42,0.18) !important;
}
.dashboard-hero-overlay {
  background: linear-gradient(90deg, rgba(8,7,6,0.85) 0%, rgba(201,146,42,0.04) 100%) !important;
}

/* AI mode tabs gold */
.ai-mode-tab.active {
  background: linear-gradient(135deg, #f0b429, #c9922a) !important;
  color: #0e0c08 !important;
  border-color: transparent !important;
}
.ai-send-btn {
  background: linear-gradient(135deg, #f0b429, #c9922a) !important;
  box-shadow: 0 2px 10px rgba(201,146,42,0.4) !important;
  color: #0e0c08 !important;
}
.ai-send-btn:hover { background: linear-gradient(135deg, #f5d87a, #f0b429) !important; }

/* Scrollbar gold tint */
*::-webkit-scrollbar-thumb { background: rgba(201,146,42,0.25) !important; }
*::-webkit-scrollbar-thumb:hover { background: rgba(201,146,42,0.45) !important; }

/* Light mode specific overrides */
:root[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #0c0a07 0%, #100e0b 100%) !important;
}
:root[data-theme="light"] .brand-text .name {
  background: linear-gradient(135deg, #f5d87a, #c9922a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
:root[data-theme="light"] .page-title,
:root[data-theme="light"] .card-title,
:root[data-theme="light"] .modal-title {
  color: #0e0c08 !important;
}
:root[data-theme="light"] th { color: #7a520a !important; }
:root[data-theme="light"] .btn-primary {
  color: #fff !important;
}
:root[data-theme="light"] .auth-logo-text .name {
  background: linear-gradient(135deg, #b8821e 0%, #8a5e0e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
