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

/* ─── CSS Variables (Light Mode Default) ────────────────────── */
:root {
  /* Colors */
  --bg-base: #fbfbfa; /* Warm Stone Chalk */
  --bg-surface: #ffffff; /* Pure Alabaster */
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-hover: rgba(3, 77, 55, 0.05); /* Soft Forest tint */

  --border: #e2e8f0; /* Crisp, clearly visible Slate 200 border */
  --border-subtle: #f1f5f9;
  --border-hover: #cbd5e1;

  --text-primary: #0f172a; /* Deep Crisp Slate 900 - AAA Contrast (15.7:1) */
  --text-secondary: #334155; /* Solid Slate 700 - High Contrast (9.2:1) */
  --text-muted: #475569; /* Slate 600 - WCAG AA (>5.6:1, highly readable) */

  /* Brand */
  --accent: #034d37; /* Emerald Forest Green (as requested) */
  --accent-hover: #023d2b;
  --accent-glow: rgba(3, 77, 55, 0.08);
  --accent-2: #c5a880; /* Champagne Gold */

  /* Status (Culinary Alerts) */
  --status-pending: #ea580c; /* Warm Orange */
  --status-pending-bg: rgba(234, 88, 12, 0.08);
  --status-preparing: #d97706; /* Honey/Amber */
  --status-preparing-bg: rgba(217, 119, 6, 0.08);
  --status-ready: #059669; /* Fresh Basil Green */
  --status-ready-bg: rgba(5, 150, 105, 0.08);
  --status-completed: #64748b; /* Slate Gray */
  --status-completed-bg: rgba(100, 116, 139, 0.08);
  --status-cancelled: #dc2626;
  --status-cancelled-bg: rgba(220, 38, 38, 0.08);

  /* Solid Colors (Replacing gradients as requested) */
  --gradient-brand: var(--accent);
  --gradient-card: var(--bg-surface);
  --gradient-glow: var(--bg-base);

  /* Spacing */
  --sidebar-width: 190px;
  --sidebar-collapsed-width: 72px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(3, 77, 55, 0.08);

  /* Radius (Apple Squircle approximation - static) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Sidebar & Topbar Surfaces */
  --bg-sidebar: #034d37; /* Emerald Forest Green */
  --bg-topbar: rgba(251, 251, 250, 0.78);
  --text-sidebar-primary: #ffffff;
  --text-sidebar-secondary: rgba(255, 255, 255, 0.75);
  --text-sidebar-muted: rgba(255, 255, 255, 0.55);
  --border-sidebar: rgba(255, 255, 255, 0.08);
  --bg-sidebar-hover: rgba(255, 255, 255, 0.08);
  --bg-sidebar-active: rgba(255, 255, 255, 0.12);
  --text-sidebar-active: #c5a880; /* Champagne Gold accent */
  --border-sidebar-active: rgba(255, 255, 255, 0.15);
  --bg-modal: rgba(255, 255, 255, 0.95);
  --bg-hover-dropdown: rgba(3, 77, 55, 0.05); /* Forest green tint */
  --bg-kanban-col: rgba(255, 255, 255, 0.6);
  --bg-order-card: rgba(255, 255, 255, 0.85);
}


/* ─── Dark Mode Variables ───────────────────────────────────── */
[data-theme="dark"] {
  --bg-base: #0a0f0d; /* Midnight Forest Black */
  --bg-surface: #111a17; /* Deep Jade Card */
  --bg-elevated: #1a2622;
  --bg-card: rgba(17, 26, 23, 0.65);
  --bg-hover: rgba(197, 168, 128, 0.08);

  --border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.22);

  --text-primary: #f8fafc; /* Crisp Slate 50 */
  --text-secondary: #e2e8f0; /* Crisp Slate 200 - High Contrast */
  --text-muted: #94a3b8; /* Crisp Slate 400 - Readable */

  --accent: #c5a880; /* Champagne Gold */
  --accent-hover: #b49b70;
  --accent-glow: rgba(197, 168, 128, 0.2);
  --accent-2: #056e4e; /* Forest Green */

  --status-pending: #ff9f0a;
  --status-pending-bg: rgba(255, 159, 10, 0.12);
  --status-preparing: #f59e0b;
  --status-preparing-bg: rgba(245, 158, 11, 0.12);
  --status-ready: #10b981;
  --status-ready-bg: rgba(16, 185, 129, 0.12);
  --status-completed: #8e8e93;
  --status-completed-bg: rgba(142, 142, 147, 0.12);
  --status-cancelled: #ef4444;
  --status-cancelled-bg: rgba(239, 68, 68, 0.12);

  /* Gradients (Redefined to solid colors as requested) */
  --gradient-brand: var(--accent);
  --gradient-card: var(--bg-surface);
  --gradient-glow: var(--bg-base);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(197, 168, 128, 0.35);

  --bg-sidebar: #0b1411; /* Deep Jade Card */
  --bg-topbar: rgba(17, 26, 23, 0.78);
  --text-sidebar-primary: #f5f7f6;
  --text-sidebar-secondary: #ccd4d1;
  --text-sidebar-muted: #687872;
  --border-sidebar: rgba(255, 255, 255, 0.06);
  --bg-sidebar-hover: rgba(255, 255, 255, 0.04);
  --bg-sidebar-active: var(--accent-glow);
  --text-sidebar-active: var(--accent);
  --border-sidebar-active: var(--accent);
  --bg-modal: rgba(17, 26, 23, 0.95);
  --bg-hover-dropdown: rgba(255, 255, 255, 0.05);
  --bg-kanban-col: rgba(13, 13, 25, 0.4);
  --bg-order-card: rgba(20, 20, 36, 0.55);
}

/* ─── Dark Mode Component Overrides ─────────────────────────── */
[data-theme="dark"] body::before {
  background: radial-gradient(circle, rgba(197, 168, 128, 0.08) 0%, transparent 70%);
}
[data-theme="dark"] body::after {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.04) 0%, transparent 70%);
}
[data-theme="dark"] body {
  background-color: var(--bg-base);
  color: var(--text-primary);
}
[data-theme="dark"] .sidebar {
  background: var(--bg-sidebar);
  border-right-color: var(--border);
}
[data-theme="dark"] .dashboard-topbar {
  background: var(--bg-topbar);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}
[data-theme="dark"] .btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
[data-theme="dark"] .btn-primary {
  color: #0a0f0d;
}
[data-theme="dark"] .btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
/* kanban board backgrounds handled dynamically via CSS variables */
/* modal-box dark theme handled dynamically via --bg-modal */
[data-theme="dark"] .auth-card {
  background: rgba(20, 20, 36, 0.4);
}
[data-theme="dark"] .table-dropdown-menu {
  background: rgba(20, 20, 36, 0.95) !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .dropdown-item {
  color: var(--text-secondary);
}
[data-theme="dark"] .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
[data-theme="dark"] ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
[data-theme="dark"] .landing-nav {
  background: rgba(10, 10, 18, 0.45);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .card {
  background: var(--gradient-card);
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .stat-card {
  background: var(--gradient-card);
}
[data-theme="dark"] .empty-state {
  background: rgba(13, 13, 25, 0.45);
}
[data-theme="dark"] .menu-item-card {
  background: var(--gradient-card);
}
[data-theme="dark"] .table-card {
  background: rgba(20, 20, 36, 0.5) !important;
}
[data-theme="dark"] .table-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .order-item-card {
  background: var(--gradient-card);
}
[data-theme="dark"] .data-table th {
  color: var(--text-muted);
}
[data-theme="dark"] .data-table td {
  color: var(--text-primary);
}
[data-theme="dark"] .data-table tr:hover td {
  background: rgba(197, 168, 128, 0.05);
}
[data-theme="dark"] .success-card {
  background: rgba(20, 20, 36, 0.65);
}
[data-theme="dark"] .feature-card {
  background: var(--gradient-card);
}
[data-theme="dark"] .hero {
  background: var(--bg-base);
}

/* ─── Light Mode Component Defaults ─────────────────────────── */
body::before {
  background: radial-gradient(circle, rgba(3, 77, 55, 0.04) 0%, transparent 70%);
}
body::after {
  background: radial-gradient(circle, rgba(197, 168, 128, 0.03) 0%, transparent 70%);
}
.sidebar {
  background: rgba(255, 255, 255, 0.9);
  border-right-color: rgba(0, 0, 0, 0.08);
}
.dashboard-topbar {
  background: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.btn-ghost {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}
/* kanban board backgrounds handled dynamically via CSS variables */
/* modal-box light theme handled dynamically via --bg-modal */
.toast {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}
.auth-card {
  background: rgba(255, 255, 255, 0.9);
}
.table-dropdown-menu {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
.dropdown-item {
  color: var(--text-secondary);
}
.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.04); }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.22); }
.landing-nav {
  background: rgba(252, 251, 249, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.07);
}
.card {
  background: rgba(255, 255, 255, 0.85);
}
.card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.stat-card {
  background: rgba(255, 255, 255, 0.85);
}
.empty-state {
  background: rgba(255, 255, 255, 0.7);
}
.menu-item-card {
  background: rgba(255, 255, 255, 0.85);
}
.table-card {
  background: rgba(255, 255, 255, 0.8) !important;
}
.table-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}
.order-item-card {
  background: rgba(255, 255, 255, 0.85);
}
.data-table th {
  color: var(--text-muted);
}
.data-table td {
  color: var(--text-primary);
}
.data-table tr:hover td {
  background: rgba(3, 77, 55, 0.03);
}
.success-card {
  background: rgba(255, 255, 255, 0.9);
}
.feature-card {
  background: rgba(255, 255, 255, 0.85);
}
.hero {
  background: var(--bg-base);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Ensure stable, highly readable root typography across all viewports */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (max-width: 380px) {
  html { font-size: 15px; } /* Minimum floor to ensure text-xs never falls below 11.25px */
}

/* Zero-FOUC Adaptive Sidebar Rules (Instant Pre-Paint Navigation) */
html:not([data-business-type="HOTEL"]):not([data-business-type="BOTH"]) .hotel-only-nav {
  display: none !important;
}
html[data-business-type="RESTAURANT"] .hotel-only-nav {
  display: none !important;
}
html[data-business-type="HOTEL"] .restaurant-only-nav {
  display: none !important;
}
html[data-business-type="BOTH"] .hotel-only-nav,
html[data-business-type="BOTH"] .restaurant-only-nav {
  display: block !important;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Liquid background blobs */
body::before, body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 77, 55, 0.05) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
  filter: blur(90px);
  animation: float-blob 28s infinite ease-in-out alternate;
}
body::before {
  top: -10%;
  left: -15%;
}
body::after {
  bottom: -10%;
  right: -15%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.04) 0%, transparent 70%);
  animation-duration: 38s;
  animation-delay: -7s;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(120px, 90px) scale(1.15) rotate(180deg); }
  100% { transform: translate(-60px, 160px) scale(0.9) rotate(360deg); }
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ─── Typography & Maximum Digital Readability ───────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-weight: 700;
}
.font-editorial, .font-serif-brand {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}
h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
p  { color: var(--text-secondary); line-height: 1.5; }

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ─── Utility Classes ───────────────────────────────────────── */
.glass {
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}


.gradient-text {
  color: var(--accent);
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px var(--accent-glow); }
  50%       { box-shadow: 0 0 35px var(--accent-glow), 0 0 55px var(--accent-glow); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes morph-liquid {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  34% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
  67% { border-radius: 50% 50% 30% 70% / 50% 30% 70% 40%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}
@keyframes border-pulse-orange {
  0%, 100% { border-color: rgba(249, 115, 22, 0.4); box-shadow: 0 0 10px rgba(249, 115, 22, 0.15); }
  50% { border-color: rgba(249, 115, 22, 1); box-shadow: 0 0 25px rgba(249, 115, 22, 0.4); }
}
@keyframes border-pulse-green {
  0%, 100% { border-color: rgba(34, 197, 94, 0.4); box-shadow: 0 0 10px rgba(34, 197, 94, 0.15); }
  50% { border-color: rgba(34, 197, 94, 1); box-shadow: 0 0 25px rgba(34, 197, 94, 0.4); }
}

.animate-fade-in { animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-slide-in { animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ─── Button Base ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  outline: none;
  transition: all var(--transition-slow);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(3, 77, 55, 0.15);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(3, 77, 55, 0.25);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-white {
  background: #ffffff;
  color: #034d37; /* Forest green for high contrast */
  border: 1px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.btn-white:hover:not(:disabled) {
  background: #f4f4f2;
  border-color: #f4f4f2;
  color: #023d2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.btn-white:active:not(:disabled) {
  transform: translateY(0);
}

[data-theme="dark"] .btn-white {
  background: #ffffff;
  color: #0a0f0d; /* Keep it dark for maximum contrast on white background */
  border-color: #ffffff;
}
[data-theme="dark"] .btn-white:hover:not(:disabled) {
  background: #f4f4f2;
  color: #0a0f0d;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.btn-ghost:active:not(:disabled) {
  transform: translateY(0);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.btn-track-orders {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  background-color: var(--status-pending-bg) !important;
  border: 1px solid rgba(234, 88, 12, 0.15) !important;
  color: var(--status-pending) !important;
  font-weight: 600 !important;
  transition: all var(--transition) !important;
}
.btn-track-orders:hover {
  background-color: rgba(234, 88, 12, 0.15) !important;
  border-color: rgba(234, 88, 12, 0.3) !important;
  transform: translateY(-1px) !important;
}
[data-theme="dark"] .btn-track-orders {
  border-color: rgba(255, 159, 10, 0.15) !important;
}
[data-theme="dark"] .btn-track-orders:hover {
  background-color: rgba(255, 159, 10, 0.22) !important;
  border-color: rgba(255, 159, 10, 0.3) !important;
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-icon { padding: 0.5rem; border-radius: var(--radius-sm); width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; }
.btn-full { width: 100%; }

.order-tracking-card {
  border: 1px solid #034d37 !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: var(--bg-surface) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all var(--transition) !important;
}
.order-tracking-card:hover {
  border-color: #023d2b !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}
[data-theme="dark"] .order-tracking-card {
  border-color: #10b981 !important;
}
[data-theme="dark"] .order-tracking-card:hover {
  border-color: #059669 !important;
}

.order-tracking-header {
  background: #034d37 !important;
  color: #ffffff !important;
  padding: 0.45rem 0.75rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
[data-theme="dark"] .order-tracking-header {
  background: #112620 !important;
  color: #f5f7f6 !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.order-tracking-body {
  padding: 0.75rem !important;
}

/* Order Tracking Status Card Overrides */
.order-tracking-card.pending,
[data-theme="dark"] .order-tracking-card.pending {
  border-color: var(--status-pending) !important;
}
.order-tracking-header.pending,
[data-theme="dark"] .order-tracking-header.pending {
  background: var(--status-pending) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.order-tracking-card.preparing,
[data-theme="dark"] .order-tracking-card.preparing {
  border-color: var(--status-preparing) !important;
}
.order-tracking-header.preparing,
[data-theme="dark"] .order-tracking-header.preparing {
  background: var(--status-preparing) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.order-tracking-card.ready,
[data-theme="dark"] .order-tracking-card.ready {
  border-color: var(--status-ready) !important;
}
.order-tracking-header.ready,
[data-theme="dark"] .order-tracking-header.ready {
  background: var(--status-ready) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.order-tracking-card.completed,
[data-theme="dark"] .order-tracking-card.completed {
  border-color: var(--status-completed) !important;
  opacity: 0.75;
}
.order-tracking-header.completed,
[data-theme="dark"] .order-tracking-header.completed {
  background: var(--status-completed) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.order-tracking-card.cancelled,
[data-theme="dark"] .order-tracking-card.cancelled {
  border-color: var(--status-cancelled) !important;
  opacity: 0.75;
}
.order-tracking-header.cancelled,
[data-theme="dark"] .order-tracking-header.cancelled {
  background: var(--status-cancelled) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Hover effects */
.order-tracking-card.pending:hover, [data-theme="dark"] .order-tracking-card.pending:hover { border-color: var(--status-pending) !important; }
.order-tracking-card.preparing:hover, [data-theme="dark"] .order-tracking-card.preparing:hover { border-color: var(--status-preparing) !important; }
.order-tracking-card.ready:hover, [data-theme="dark"] .order-tracking-card.ready:hover { border-color: var(--status-ready) !important; }
.order-tracking-card.completed:hover, [data-theme="dark"] .order-tracking-card.completed:hover { border-color: var(--status-completed) !important; opacity: 0.85; }
.order-tracking-card.cancelled:hover, [data-theme="dark"] .order-tracking-card.cancelled:hover { border-color: var(--status-cancelled) !important; opacity: 0.85; }

/* Status Badges inside Headers */
.order-tracking-header .badge {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* ─── Input ─────────────────────────────────────────────────── */
.input-field {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition);
}
.input-field::placeholder { color: var(--text-muted); }
.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-surface);
}
.input-field:disabled { opacity: 0.5; cursor: not-allowed; }

/* Disable browser-native password reveal & clear buttons to avoid conflict with custom eye buttons */
input::-ms-reveal,
input::-ms-clear {
  display: none;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.06em; text-transform: uppercase; }
.form-error { font-size: 0.8rem; color: #f87171; }

/* ─── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.card-sm { padding: 1.25rem; border-radius: var(--radius-md); }

/* ─── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-pending    { color: var(--status-pending);   background: var(--status-pending-bg); }
.badge-preparing  { color: var(--status-preparing); background: var(--status-preparing-bg); }
.badge-ready      { color: var(--status-ready);     background: var(--status-ready-bg); }
.badge-completed  { color: var(--status-completed); background: var(--status-completed-bg); }
.badge-cancelled  { color: var(--status-cancelled); background: var(--status-cancelled-bg); }

/* ─── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 7, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-box {
  background: var(--bg-modal);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.modal-title { font-size: 1.35rem; font-weight: 700; }

/* Stats Cards Grid Layout */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .stats-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .stats-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

/* ─── Stat Card ─────────────────────────────────────────────── */
.stat-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all var(--transition-slow);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.stat-icon {
  width: 52px; height: 52px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  animation: morph-liquid 6s ease-in-out infinite;
}
.stat-value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.85rem; font-weight: 700; color: var(--text-primary); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* ─── Dashboard Layout ──────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Mobile sidebar overlay backdrop */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 99;
  animation: fadeIn 0.2s ease;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-sidebar, var(--border));
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition-slow), width var(--transition-slow);
  overflow-y: auto;
}
.sidebar-logo {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-sidebar, var(--border));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  transition: padding var(--transition-slow);
}
.sidebar-logo-icon {
  width: 26px; height: 26px;
  background: var(--accent-2); /* Gold logo accent looks premium on green/dark jade backgrounds */
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  animation: morph-liquid 10s ease-in-out infinite;
  box-shadow: 0 0 15px var(--accent-glow);
}
.sidebar-logo-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--text-sidebar-primary, var(--text-primary)); letter-spacing: -0.01em; flex: 1; }
.sidebar-logo-sub  { font-size: 0.72rem; font-weight: 600; color: var(--text-sidebar-muted, var(--text-muted)); margin-top: 1px; }

/* Close button — only visible on mobile */
.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-sidebar-secondary, var(--text-secondary));
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
  flex-shrink: 0;
}

.sidebar-nav { flex: 1; padding: 0.5rem 0.35rem; display: flex; flex-direction: column; gap: 0.1rem; transition: padding var(--transition-slow); }
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-sidebar-secondary, var(--text-secondary));
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.sidebar-nav-item:hover { 
  background: var(--bg-sidebar-hover, rgba(255, 255, 255, 0.04)); 
  color: var(--text-sidebar-primary, var(--text-primary)); 
}
.sidebar-nav-item.active {
  background: var(--bg-sidebar-active, var(--accent-glow));
  color: var(--text-sidebar-active, var(--text-primary));
  font-weight: 600;
  border: 1px solid var(--border-sidebar-active, var(--accent));
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}
.sidebar-nav-icon { font-size: 1.15rem; width: 22px; text-align: center; }

/* Sidebar Sections & Partitions */
.sidebar-section {
  display: flex;
  flex-direction: column;
}
.sidebar-section-title {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-sidebar-muted, rgba(255, 255, 255, 0.5));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.55rem 0.15rem 0.55rem;
  transition: opacity var(--transition);
}
.sidebar.collapsed .sidebar-section-title {
  display: none !important;
}
.sidebar-section-divider {
  height: 1px;
  background: var(--border-sidebar, rgba(255, 255, 255, 0.08));
  margin: 0.3rem 0.55rem;
  opacity: 0.6;
}
.sidebar.collapsed .sidebar-section-divider {
  margin: 0.5rem 0.25rem;
}

.sidebar-footer { padding: 0.5rem 0.35rem; border-top: 1px solid var(--border-sidebar, var(--border)); transition: padding var(--transition-slow); }

/* Custom Ghost Button styles inside green sidebar to look high contrast */
.sidebar .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-sidebar-secondary, var(--text-secondary));
  border: 1px solid var(--border-sidebar, var(--border));
}
.sidebar .btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-sidebar-primary, var(--text-primary));
  border-color: var(--border-sidebar-active, var(--border-hover));
}

.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left var(--transition-slow);
}

/* ─── Collapsible Sidebar ─── */
.sidebar-collapse-btn-desktop {
  display: none;
}

@media (min-width: 769px) {
  .sidebar-logo {
    position: relative;
    padding-right: 3.5rem; /* Leave space for the toggle button */
  }

  .sidebar-collapse-btn-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08); /* slightly translucent white on dark jade */
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-sidebar-secondary, var(--text-secondary));
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
    flex-shrink: 0;
    position: absolute;
    right: 16px; /* Shifted quite left, fully inside */
    top: 50%;
    transform: translateY(-50%);
    z-index: 110;
    box-shadow: var(--shadow-sm);
  }
  .sidebar-collapse-btn-desktop:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text-sidebar-primary, var(--text-primary));
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05); /* preserve vertical centering transform */
  }
  
  .sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
  }
  .sidebar.collapsed ~ .dashboard-main {
    margin-left: var(--sidebar-collapsed-width);
  }
  
  .sidebar.collapsed .sidebar-logo-name,
  .sidebar.collapsed .sidebar-logo-sub,
  .sidebar.collapsed .sidebar-logo-text,
  .sidebar.collapsed .sidebar-nav-text,
  .sidebar.collapsed .sidebar-close-btn {
    display: none !important;
  }
  
  .sidebar.collapsed .sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
  }

  .sidebar.collapsed .sidebar-collapse-btn-desktop {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 0.5rem;
  }

  .sidebar.collapsed .sidebar-collapse-btn-desktop:hover {
    transform: scale(1.05);
  }
  
  .sidebar.collapsed .sidebar-nav {
    padding: 0.5rem 0.35rem;
  }
  
  .sidebar.collapsed .sidebar-nav-item {
    justify-content: center;
    padding: 0.45rem 0;
    gap: 0;
  }
  
  .sidebar.collapsed .sidebar-nav-icon {
    margin: 0;
    width: auto;
  }
  
  .sidebar.collapsed .sidebar-footer {
    padding: 0.5rem 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}
.dashboard-topbar {
  height: 64px;
  background: var(--bg-topbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 1.45rem; color: var(--text-primary); }
.dashboard-content { flex: 1; padding: 2.25rem 2rem; }

/* ─── Hamburger Button ──────────────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm, 8px);
  transition: background var(--transition);
}
.hamburger-btn:hover {
  background: var(--bg-hover);
}
.hamburger-btn span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: width var(--transition), background var(--transition);
}
.hamburger-btn span:nth-child(1) {
  width: 20px;
}
.hamburger-btn span:nth-child(2) {
  width: 12px;
}
.hamburger-btn span:nth-child(3) {
  width: 16px;
}
.hamburger-btn:hover span:nth-child(2) {
  width: 20px;
}
.hamburger-btn:hover span:nth-child(3) {
  width: 20px;
}

/* ─── Table ─────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 0.85rem 1.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-primary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.empty-state-icon { font-size: 3.5rem; opacity: 0.5; animation: morph-liquid 6s ease-in-out infinite; }
.empty-state h3 { font-size: 1.2rem; color: var(--text-secondary); }

/* ─── Loading Spinner ───────────────────────────────────────── */
.spinner {
  width: 28px; height: 28px;
  border: 3.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spin-icon {
  animation: spin 1s linear infinite;
}
.loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 240px;
  color: var(--text-muted);
}

/* ─── Grid System ───────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 576px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .grid-4 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (min-width: 992px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ─── Notification / Toast ──────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.toast {
  padding: 0.95rem 1.4rem;
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 340px;
}
.toast-success { border-left: 4px solid var(--status-ready); }
.toast-error   { border-left: 4px solid var(--status-cancelled); }
.toast-info    { border-left: 4px solid var(--accent); }

/* ─── Kanban Board ──────────────────────────────────────────── */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.kanban-col {
  background: var(--bg-kanban-col);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.kanban-col-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
}
.kanban-col-body { padding: 0.85rem; display: flex; flex-direction: column; gap: 0.85rem; min-height: 100px; }
.order-card {
  background: var(--bg-order-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: all var(--transition-slow);
}
.order-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.order-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.65rem; }
.order-card-table { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.order-card-total { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text-primary); }
.order-card-items { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.85rem; line-height: 1.6; }
.order-card-actions { display: flex; gap: 0.6rem; }

/* ─── Menu Grid ─────────────────────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.menu-item-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.menu-item-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-glow);
}
.menu-item-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
  position: relative;
}
.menu-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.menu-item-card:hover .menu-item-img img {
  transform: scale(1.05);
}
.menu-item-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.menu-item-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 1.35rem; margin-bottom: 0.35rem; }
.menu-item-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; flex: 1; }
.menu-item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.menu-item-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--accent-hover); }
.menu-item-actions { display: flex; gap: 0.6rem; }

/* ─── Table Card ─────────────────────────────────────────────── */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Base style for table-card. Crucial fix: OVERFLOW: VISIBLE! */
.table-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible !important; /* CRITICAL dropdown clipping fix */
  text-align: center;
  transition: all var(--transition-slow);
}
.table-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* 1 Order state */
.table-card.active-1-order {
  background: rgba(249, 115, 22, 0.08) !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.15) !important;
  animation: border-pulse-orange 3s infinite ease-in-out;
}

/* 2+ Orders state */
.table-card.active-multiple-orders {
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.15) !important;
  animation: border-pulse-green 3s infinite ease-in-out;
}

/* Inactive state */
.table-card.inactive {
  background: rgba(255, 255, 255, 0.01) !important;
  border-color: var(--border) !important;
  opacity: 0.5;
}

.table-card-qr {
  background: white;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}
.table-card-qr img { width: 140px; height: 140px; }
.table-card-body { padding: 1.25rem; }
.table-card-number { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.35rem; }
.table-card-status { font-size: 0.8rem; margin-bottom: 0.85rem; }
.table-card-actions { display: flex; gap: 0.6rem; justify-content: center; }

/* ─── Dropdown Menu (Premium glass design) ─────────────────── */
.table-dropdown-menu {
  position: absolute;
  top: 2.75rem;
  right: 0.5rem;
  background: var(--bg-surface) !important; /* solid, non-transparent background */
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important; /* Apple curve 12px */
  box-shadow: var(--shadow-lg) !important;
  z-index: 999;
  min-width: 170px;
  overflow: hidden !important;
  padding: 0.35rem 0;
  animation: dropdown-fade-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; /* organic bounce scale-in */
  transform-origin: top right;
}

@keyframes dropdown-fade-in {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.dropdown-item:hover {
  background: var(--bg-hover-dropdown);
  color: var(--text-primary);
  padding-left: 1.35rem;
}
.dropdown-item.text-danger {
  color: #f87171;
}
.dropdown-item.text-danger:hover {
  background: rgba(248, 113, 113, 0.15) !important;
  color: #ef4444;
}

/* ─── Auth Page ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(3, 77, 55, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(197, 168, 128, 0.05) 0%, transparent 45%);
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 5;
}
.auth-logo {
  text-align: center;
  margin-bottom: 2.25rem;
}
.auth-logo-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-hover);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.auth-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.1rem; font-weight: 700; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.auth-subtitle { font-size: 0.875rem; color: var(--text-muted); }
.auth-form { display: flex; flex-direction: column; gap: 1.15rem; }
.auth-divider {
  text-align: center;
  margin: 1rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.auth-divider span {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  padding: 0 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Landing Page ──────────────────────────────────────────── */
.landing-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 1200px;
  z-index: 100;
  padding: 0.65rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  box-shadow: var(--shadow-md);
  gap: 1rem;
  transition: var(--transition);
}
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 4rem;
  background: var(--gradient-glow);
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-glow);
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.75rem;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.features { padding: 6rem 2rem; max-width: 1150px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-slow);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  animation: morph-liquid 8s ease-in-out infinite;
}
.feature-card h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text-primary); }
.feature-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ─── Customer Order Page ─────────────────────────────────── */
.order-page {
  min-height: 100vh;
  background: var(--bg-base);
  background-image: var(--gradient-glow);
  padding-bottom: 140px;
}
.order-header {
  background: #034d37 !important; /* Signature QRestro Forest Green */
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.order-header-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: #ffffff !important;
}
.order-header-sub { font-size: 0.75rem; color: rgba(255, 255, 255, 0.75) !important; font-weight: 500; margin-top: 1px; }

.order-header .btn-ghost {
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.order-header .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* Menu grid: 2-col on mobile default */
.order-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0.75rem;
  max-width: 1050px;
  margin: 0 auto;
}

/* Card layout — vertical by default */
.order-item-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-slow);
}
.order-item-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.order-item-img {
  height: 110px; /* Compact height on mobile */
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}
.order-item-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  padding: 4px !important;
  transition: transform var(--transition-slow) !important;
}
.order-item-card:hover .order-item-img img {
  transform: scale(1.05);
}
.order-item-body { padding: 0.75rem; flex: 1; display: flex; flex-direction: column; }
.order-item-name { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; font-weight: 800; font-size: 1.05rem; margin-bottom: 0.25rem; color: var(--text-primary); line-height: 1.3; }
.order-item-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.65rem;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.5rem; /* Fixed height for clean grid alignment */
}
.order-item-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: auto;
  gap: 0.55rem;
}
.order-item-price { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--accent); font-size: 1.05rem; }
.order-item-prep { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; }

@media (min-width: 768px) {
  .order-menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .order-item-img {
    height: 160px;
    font-size: 3rem;
  }
  .order-item-body { padding: 1.1rem; }
  .order-item-name { font-size: 1.2rem; margin-bottom: 0.35rem; }
  .order-item-desc { font-size: 0.875rem; margin-bottom: 0.85rem; line-height: 1.5; line-clamp: none; height: auto; }
  .order-item-footer { flex-direction: row; align-items: center; justify-content: space-between; gap: 0.5rem; }
  .order-item-price { font-size: 1.15rem; }
  .order-item-prep { font-size: 0.825rem; }
}

@media (min-width: 1024px) {
  .order-menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Qty control — premium pill layout */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 99px; /* Pill shaped */
  padding: 0.2rem 0.5rem;
  backdrop-filter: blur(4px);
  width: fit-content;
}
.qty-btn {
  width: 28px;
  height: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%; /* Circle */
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--shadow-sm);
}
.qty-btn:hover { background: var(--bg-hover); border-color: var(--accent); color: var(--accent); }
.qty-btn:active { transform: scale(0.9); }
.qty-value { font-weight: 700; font-size: 0.9rem; min-width: 20px; text-align: center; color: var(--text-primary); }

/* Cart Bar */
/* Floating Cart Bar */
.cart-bar {
  position: fixed;
  bottom: 1.25rem !important;
  left: 1.25rem !important;
  right: 1.25rem !important;
  background: #034d37 !important; /* Signature QRestro Forest Green */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.75rem 1.5rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 150;
  box-shadow: 0 8px 32px rgba(3, 77, 55, 0.25) !important;
  border-radius: var(--radius-xl) !important;
  animation: floatIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

[data-theme="dark"] .cart-bar {
  background: #111a17 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

@keyframes floatIn {
  from { transform: translateY(150%) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.cart-summary {
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-total {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  color: #ffffff !important;
}

.cart-bar .btn {
  background: #ffffff !important;
  color: #034d37 !important;
  border-radius: 99px !important;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all var(--transition) !important;
}

[data-theme="dark"] .cart-bar .btn {
  background: var(--accent) !important;
  color: #0a0f0d !important;
}

.cart-bar .btn:hover {
  transform: scale(1.03) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  background-image: var(--gradient-glow);
  padding: 5rem 1.25rem 2rem;
}
.success-card {
  background: var(--bg-surface);
  color: var(--text-primary);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.75rem 1.75rem;
  text-align: center;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.success-icon {
  width: 72px; height: 72px;
  border: 2px solid var(--status-ready);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  animation: pulse-glow 2.5s ease infinite;
}

/* ─── Light mode overrides for order / success pages ────────── */
[data-theme="light"] .order-item-img {
  background: rgba(0,0,0,0.06);
}
[data-theme="light"] .qty-control {
  background: rgba(0,0,0,0.05);
}
[data-theme="light"] .qty-btn {
  background: rgba(0,0,0,0.04);
  color: var(--text-primary);
}

/* ─── Mobile overrides for order / success pages ────────── */
@media (max-width: 768px) {
  .order-item-footer > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .order-item-footer .qty-control {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .order-item-footer .btn {
    width: 100% !important;
  }
  .success-card { padding: 2rem 1.25rem; }
  .success-icon { width: 60px; height: 60px; font-size: 1.6rem; }
}

/* Apple-style Cart Bottom Sheet Modal (Mobile) */
@media (max-width: 576px) {
  .order-page .modal-overlay {
    align-items: flex-end !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.45) !important;
    padding: 0 !important;
  }

  .order-page .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 24px 24px 0 0 !important; /* Apple bottom sheet curves */
    border: none !important;
    border-top: 1px solid var(--border) !important;
    background-color: var(--bg-surface) !important;
    padding: 1.75rem 1.5rem !important;
    transform: translateY(0) !important;
    animation: slideUpBottom 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12) !important;
    max-height: 85vh !important;
  }

  .success-page {
    padding: 2rem 1rem 1.5rem !important;
    background: var(--bg-base) !important;
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
    min-height: 100vh !important;
  }

  .success-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem 1.15rem !important;
    max-width: 360px !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .success-icon {
    width: 52px !important;
    height: 52px !important;
    margin: 0 auto 0.75rem !important;
  }

  .success-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .success-card h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem !important;
  }

  .success-card p {
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
  }

  .success-progress-container {
    margin-bottom: 1rem !important;
  }

  .success-details-card {
    padding: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  .success-details-header {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .success-details-val {
    font-size: 1.15rem !important;
  }

  .success-details-items {
    font-size: 0.8rem !important;
    gap: 0.2rem !important;
  }

  .success-details-footer {
    margin-top: 0.75rem !important;
    padding-top: 0.5rem !important;
  }

  .success-details-total {
    font-size: 1rem !important;
  }
}

@keyframes slideUpBottom {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes icon-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
.pulse-icon {
  animation: icon-pulse 1.8s ease-in-out infinite;
}

/* ─── Toggle ─────────────────────────────────────────────────── */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 26px;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition-slow);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition-slow);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); background: white; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Sidebar slides in from the left on mobile */
  .sidebar {
    transform: translateX(-100%);
    width: min(var(--sidebar-width), 85vw);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.4);
  }
  .sidebar-close-btn { display: flex; }
  .sidebar-overlay { display: block; }

  /* Base compact styles automatically apply to mobile */

  /* Hamburger visible on mobile */
  .hamburger-btn { display: flex; }

  .dashboard-main { margin-left: 0; }
  .dashboard-topbar { padding: 0 1rem; height: 56px; }
  .dashboard-content { padding: 1.25rem 1rem; }

  /* Kanban stacks into single column */
  .kanban-board { grid-template-columns: 1fr; }

  /* Tables grid: 2-column on phones */
  .tables-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }

  /* Menu grid: single column */
  .menu-grid { grid-template-columns: 1fr; }

  /* Order customer page */
  .order-menu-grid { grid-template-columns: repeat(2, 1fr); padding: 0.75rem; gap: 0.75rem; }
  .cart-bar { padding: 1rem; }

  /* Settings grid: single column */
  .settings-grid { grid-template-columns: 1fr !important; }

  .page-header h1 { font-size: 1.6rem; }

  h1 { font-size: 2.15rem; }
  .landing-nav {
    padding: 0.5rem 1rem;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    width: auto;
  }
  .hero {
    padding-top: 7.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-heading br {
    display: inline;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-benefits {
    justify-content: center;
    gap: 1rem;
  }
  .mock-app-body {
    height: 320px;
    grid-template-columns: 60px 1fr;
  }
  .mock-sidebar-logo .logo-text {
    display: none;
  }
  .mock-sidebar-logo {
    justify-content: center;
    padding: 0.5rem 0.25rem;
  }
  .mock-menu-item {
    font-size: 0.35rem;
    padding: 3px 4px;
    justify-content: center;
  }
  .mock-dashboard-content {
    padding: 0.5rem;
    gap: 0.4rem;
  }
  .mock-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mock-analytics-split {
    grid-template-columns: 1fr;
  }
  .mock-list-card {
    display: none;
  }

  .landing-nav .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    gap: 0.25rem;
  }
  .features {
    padding: 3rem 1.25rem;
  }
  .features-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .feature-card-premium {
    padding: 1.25rem 0.5rem;
    border-radius: var(--radius-md);
  }
  .feature-icon-wrapper {
    width: 36px;
    height: 36px;
    margin-bottom: 0.75rem;
  }
  .feature-icon-wrapper svg {
    width: 18px !important;
    height: 18px !important;
  }
  .feature-card-title {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }
  .feature-card-desc {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .stats-glass-grid {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding: 1.5rem 1.25rem;
    gap: 0.75rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .stats-glass-grid::-webkit-scrollbar {
    display: none;
  }
  .glass-stat-card {
    flex-shrink: 0;
    width: 160px;
  }
  .cta-banner-section {
    padding: 3.5rem 1.25rem;
  }
  .cta-banner-left {
    padding: 2.25rem 1.25rem;
    align-items: center;
    text-align: center;
  }
  .banner-bullets {
    align-items: flex-start;
    text-align: left;
  }
  .cta-banner-left .btn {
    width: 100%;
    justify-content: center;
  }

  /* Auth card full-width */
  .auth-card { padding: 2rem 1.5rem; }

  /* Stat cards: 2-column mobile sizing and styling */
  .stat-card {
    padding: 0.85rem 1rem !important;
    gap: 0.75rem !important;
  }
  .stat-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.1rem !important;
  }
  .stat-value {
    font-size: 1.35rem !important;
  }
  .stat-label {
    font-size: 0.7rem !important;
  }

  /* Data table: allow horizontal scroll */
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Modal full screen on mobile */
  .modal-box { border-radius: var(--radius-lg); padding: 1.75rem 1.25rem; max-height: 95vh; }

  /* Toast position */
  .toast-container { top: 1rem; bottom: auto; right: 1rem; left: 1rem; }
  .toast { max-width: 100%; }
}

@media (max-width: 480px) {
  .tables-grid { grid-template-columns: 1fr 1fr; }
  .order-header { padding: 0.85rem 1rem; }
  .order-header-title { font-size: 1.1rem; }
  .topbar-title { font-size: 1rem; }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1.25rem;
  position: relative;
  text-align: left;
}
.page-header > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-2, #c5a880); /* Champagne gold accent line under header */
  border-radius: 2px;
}
.page-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.page-header p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  font-weight: 500;
}
.page-header-pretitle {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent); /* Emerald Green in light mode, Champagne Gold in dark mode */
  margin-bottom: 0.15rem;
  display: block;
}

/* ─── Form Row (2-column → 1 on mobile) ─────────────────────── */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 520px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ─── Landing Page Sections ──────────────────────────────────── */
.landing-stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.landing-stats-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.landing-cta-section {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
/* Premium Theme-matching Footer */
.landing-footer-premium {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem 2rem;
  margin-top: 4rem;
  position: relative;
}

[data-theme="dark"] .landing-footer-premium {
  background: #0a0f0d;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

@media (min-width: 576px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.brand-col {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-socials {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(3, 77, 55, 0.04);
  border: 1px solid rgba(3, 77, 55, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

[data-theme="dark"] .social-link {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

.social-link:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(3, 77, 55, 0.15);
}

[data-theme="dark"] .social-link:hover {
  background: var(--accent);
  color: #0a0f0d;
  border-color: var(--accent);
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-info li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-value {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

@media (max-width: 575px) {
  .landing-footer-premium {
    padding: 3rem 1rem 1.5rem !important;
    margin-top: 2rem !important;
  }
  .footer-grid {
    gap: 1.5rem !important;
    margin-bottom: 2.5rem !important;
  }
  .footer-col {
    gap: 0.85rem !important;
  }
  .footer-brand-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }
  .footer-links {
    gap: 0.5rem !important;
  }
  .footer-links a {
    font-size: 0.8rem !important;
  }
  .footer-contact-info {
    gap: 0.75rem !important;
  }
  .contact-value {
    font-size: 0.8rem !important;
  }
  .footer-logo {
    gap: 0.5rem !important;
  }
  .landing-logo-text {
    font-size: 1.1rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
    padding-top: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .landing-stats-bar { padding: 1.25rem 1.25rem; }
  .landing-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .landing-cta-section { padding: 3rem 1.25rem; }
}
@media (max-width: 480px) {
  .landing-stats-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ─── Category Tab Bar (order page) ──────────────────────────── */
.category-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 0.75rem;
  position: sticky;
  top: 56px;  /* below header */
  z-index: 40;
}
.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
  flex-shrink: 0;
  padding: 0.75rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.category-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.category-tab:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.03); }

[data-theme="light"] .category-tabs { background: rgba(255,255,255,0.95); }
[data-theme="light"] .category-tab:hover:not(.active) { background: rgba(0,0,0,0.03); }

/* ─── Superadmin responsive ──────────────────────────────────── */
.sa-table-wrap { display: block; }

/* Table legend in header */
.table-legend {
  display: flex !important;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .table-legend { display: none !important; }
}

@media (max-width: 420px) {
  .category-tab { padding: 0.65rem 0.85rem; font-size: 0.8rem; }
}

/* ==========================================================================
   ─── Premium Redesigned Landing Page Styling ──────────────────────────────
   ========================================================================== */

.landing-container {
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* Nav Logo */
.landing-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.1rem;
}
[data-theme="dark"] .landing-logo-box {
  background: var(--accent);
  color: #0a0f0d;
}

.landing-logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.landing-nav-links {
  display: none;
}

@media (min-width: 768px) {
  .landing-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .landing-nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
  }
  .landing-nav-links a:hover {
    color: var(--accent);
  }
}

.btn-pill {
  border-radius: 99px !important;
}

/* Hero Section */
.hero-section {
  padding: 9.5rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1.3fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(3, 77, 55, 0.04);
  border: 1px solid rgba(3, 77, 55, 0.08);
  color: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}
[data-theme="dark"] .hero-badge {
  background: rgba(197, 168, 128, 0.08);
  border-color: rgba(197, 168, 128, 0.15);
  color: var(--accent);
}

.hero-heading {
  font-size: clamp(1.85rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-heading .accent-text {
  color: var(--accent);
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hero-ctas .btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 576px) {
  .hero-ctas {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 1rem;
  }
  
  .hero-ctas .btn {
    width: auto;
  }
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.benefit-item svg {
  color: var(--accent);
}

/* Mockup Wrapper */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-bg-atmosphere {
  position: absolute;
  top: -15%;
  right: -25%;
  width: 140%;
  height: 130%;
  background-image: url('/images/restaurant_interior_blur.png');
  background-size: cover;
  background-position: right center;
  filter: blur(3px) brightness(1.02);
  opacity: 0.45;
  z-index: 1;
  mask-image: radial-gradient(circle at 75% 50%, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 75%);
  -webkit-mask-image: radial-gradient(circle at 75% 50%, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 75%);
}

[data-theme="dark"] .mockup-bg-atmosphere {
  opacity: 0.3;
  filter: blur(4px) brightness(0.7);
}

/* Desktop Mockup */
.desktop-mockup {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 5;
}

.browser-header {
  height: 28px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: relative;
}

.browser-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.browser-address {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  color: var(--text-muted);
  font-family: monospace;
}

.mock-app-body {
  display: grid;
  grid-template-columns: 85px 1fr;
  height: 480px;
  background: var(--bg-base);
}

.mock-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mock-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mock-sidebar-logo .logo-box {
  width: 13px;
  height: 13px;
  background: var(--accent);
  color: white;
  border-radius: 3px;
  font-size: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.mock-sidebar-logo .logo-text {
  font-size: 0.48rem;
  font-weight: 800;
}

.mock-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-menu-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.42rem;
  color: var(--text-secondary);
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.mock-menu-item svg {
  opacity: 0.7;
}

.mock-menu-item.active {
  background: var(--bg-hover);
  color: var(--accent);
  font-weight: 700;
}

.mock-main-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mock-topbar {
  height: 32px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
}

.mock-search-bar {
  width: 80px;
  height: 14px;
  background: var(--bg-base);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.mock-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ccd4d1;
}

.mock-dashboard-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
}

.mock-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.mock-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
}

.mock-stat-card .stat-label {
  font-size: 0.38rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.mock-stat-card .stat-value-group {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.mock-stat-card .stat-value {
  font-size: 0.58rem;
  font-weight: 800;
}

.mock-stat-card .stat-change {
  font-size: 0.35rem;
  font-weight: 700;
}

.mock-stat-card .stat-change.positive {
  color: #10b981;
}

.mock-stat-card .stat-change.negative {
  color: #ef4444;
}

.mock-analytics-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.5rem;
}

.mock-chart-card,
.mock-list-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.mock-chart-graph {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chart-svg {
  width: 100%;
  height: 60px;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.32rem;
  color: var(--text-muted);
}

.mock-list-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.4rem;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border);
}

/* Mobile Mockup Overlay */
.mobile-mockup {
  position: absolute;
  bottom: -20px;
  right: -5px;
  width: 140px;
  height: 285px;
  background: #0d131a;
  border: 4px solid #2d3748;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 10;
}

@media (max-width: 640px) {
  .mobile-mockup {
    display: none;
  }
}

.phone-screen {
  background: var(--bg-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.phone-header {
  height: 24px;
  background: var(--bg-elevated);
  position: relative;
  padding: 0 0.5rem;
  display: flex;
  align-items: flex-end;
}

.phone-notch {
  width: 50px;
  height: 10px;
  background: #0d131a;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.phone-status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding-bottom: 2px;
}

.phone-app-body {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  overflow-y: auto;
}

.phone-user-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.5rem;
  font-weight: 800;
}

.phone-revenue-card {
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .phone-revenue-card {
  color: #0a0f0d;
}

.revenue-val-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.15rem;
}

.badge-revenue {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 3px;
  border-radius: 3px;
  font-size: 0.35rem;
  font-weight: 700;
}

.phone-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.phone-quick-actions .action-title {
  font-size: 0.45rem;
  font-weight: 700;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2rem;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.action-item span {
  font-size: 0.35rem;
  color: var(--text-secondary);
}

.action-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.action-circle.bg-green { background: #10b981; }
.action-circle.bg-blue { background: #3b82f6; }
.action-circle.bg-orange { background: #f59e0b; }
.action-circle.bg-purple { background: #8b5cf6; }

.phone-recent-orders {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.phone-orders-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phone-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 3px 5px;
  border-radius: 4px;
}

/* Floating Animations */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Features Section */
.features-section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
  text-align: left;
}

@media (min-width: 768px) {
  .features-header {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: flex-end;
    gap: 4rem;
  }
}

.features-badge {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.features-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.features-heading .accent-text {
  color: var(--accent);
}

.features-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.features-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 360px) {
  .features-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 768px) {
  .features-grid-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .features-grid-layout {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
  }
}

.feature-card-premium {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  transition: all var(--transition-slow);
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card-premium:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.feature-icon-wrapper svg {
  width: 18px !important;
  height: 18px !important;
}

.feature-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.feature-card-desc {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .feature-card-premium {
    padding: 2.25rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .feature-icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
  }
  .feature-icon-wrapper svg {
    width: 22px !important;
    height: 22px !important;
  }
  .feature-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .feature-card-desc {
    font-size: 0.78rem;
    line-height: 1.5;
  }
}

/* Partners Branding */
.partners-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.partners-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  align-items: center;
}

@media (min-width: 640px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0.65;
  transition: opacity var(--transition);
}

.partner-logo:hover {
  opacity: 1;
}

.partner-icon-graphic {
  font-size: 1.25rem;
}

.partner-name {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.partner-cuisine {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Bottom CTA Banner */
.cta-banner-section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-banner-container {
  background: var(--accent);
  border-radius: var(--radius-xl);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative; /* Anchors absolute children */
}

[data-theme="dark"] .cta-banner-container {
  background: #111a17;
  border: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .cta-banner-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 330px;
  }
}

.cta-banner-left {
  padding: 3rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  position: relative;
  order: 1; /* For mobile stacking order */
  z-index: 5;
}

.cta-banner-left::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .cta-banner-left {
    padding: 2rem 3.5rem;
    gap: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .cta-banner-left {
    order: initial;
  }
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.725rem;
  font-weight: 600;
  width: fit-content;
  z-index: 2;
}

.banner-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  z-index: 2;
}

.banner-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2;
}

.bullet-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.bullet-check {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spacer for right column on desktop grid */
.cta-banner-right-spacer {
  display: none;
}

@media (min-width: 1024px) {
  .cta-banner-right-spacer {
    display: block;
    height: 100%;
  }
}

/* Background image wrapper and settings */
.banner-food-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
  order: 2; /* Below text on mobile */
  z-index: 1;
}

@media (min-width: 1024px) {
  .banner-food-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 100%;
    order: initial;
  }
}

.banner-food-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/gourmet_pasta_dish.png');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  z-index: 1;
}

[data-theme="dark"] .banner-food-bg {
  opacity: 0.55;
}

/* Smooth gradient overlay to fade the image */
.banner-food-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

[data-theme="dark"] .banner-food-overlay {
  background: linear-gradient(to bottom, #111a17 0%, transparent 60%);
}

@media (min-width: 1024px) {
  .banner-food-overlay {
    background: linear-gradient(to right, var(--accent) 0%, transparent 100%);
  }
  
  [data-theme="dark"] .banner-food-overlay {
    background: linear-gradient(to right, #111a17 0%, transparent 100%);
  }
}

/* Floating/Stacked Stats Cards */
.stats-glass-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  width: 100%;
  align-items: center;
  order: 3; /* At the very bottom on mobile */
  z-index: 10;
  pointer-events: none;
}

@media (min-width: 768px) {
  .stats-glass-grid {
    flex-direction: row;
    justify-content: center;
    padding: 2rem 3.5rem;
  }
}

@media (min-width: 1024px) {
  .stats-glass-grid {
    position: absolute;
    bottom: 1.15rem;
    right: 3rem;
    padding: 0;
    width: auto;
    gap: 0.75rem;
    order: initial;
  }
}

.glass-stat-card {
  background: rgba(13, 27, 23, 0.68);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 160px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all var(--transition);
  pointer-events: auto;
}

@media (min-width: 768px) {
  .glass-stat-card {
    width: auto;
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .glass-stat-card {
    flex: none;
    width: 165px;
  }
}

.glass-stat-card:hover {
  transform: translateY(-4px);
  background: rgba(13, 27, 23, 0.78);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .glass-stat-card {
  background: rgba(8, 15, 13, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .glass-stat-card:hover {
  background: rgba(8, 15, 13, 0.95);
  border-color: rgba(255, 255, 255, 0.14);
}

.glass-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

[data-theme="dark"] .glass-icon-box {
  background: rgba(197, 168, 128, 0.2);
  color: var(--accent);
}

.glass-stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.glass-val {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.glass-lbl {
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
}



@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ─── Admin Filter Bar Responsive Layout ────────────────────── */
.admin-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.admin-filter-bar .search-wrapper {
  width: 100%;
}
.admin-filter-bar .filters-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .admin-filter-bar {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .admin-filter-bar .search-wrapper {
    flex: 1;
  }
  .admin-filter-bar .filters-wrapper {
    display: flex;
    width: auto;
    gap: 1rem;
  }
}

/* ─── Hero Mock Dashboard Mobile Viewport Overrides ─────────── */
@media (max-width: 768px) {
  .mock-app-body {
    grid-template-columns: 1fr !important;
    height: 380px !important;
  }
  .mock-sidebar {
    display: none !important;
  }
  .mock-dashboard-content {
    padding: 0.5rem !important;
    gap: 0.4rem !important;
  }
  .mock-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.35rem !important;
  }
  .mock-analytics-split {
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
  }
  .mock-list-card {
    display: none !important;
  }
  .mock-chart-card {
    padding: 0.35rem !important;
  }
  .mockup-bg-atmosphere {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    right: 0 !important;
    background-position: center !important;
    opacity: 0.7 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    filter: blur(4px) brightness(0.9) !important;
  }
  .desktop-mockup {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18) !important;
    border-color: rgba(3, 77, 55, 0.08) !important;
  }
}

/* ─── Skeleton Loading Animation ───────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-hover) 25%,
    var(--border) 50%,
    var(--bg-hover) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-wave 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  border-radius: 4px;
}

@keyframes skeleton-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Toast / Alert Animations ─────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ─── Customer Menu Glass UI ─────────────────────────────── */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .glass-panel {
  background: rgba(17, 26, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
  background-size: 24px 24px;
  z-index: 1;
}

.sticky-tabs-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-base);
  padding: 12px 0 8px 0;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.02);
}

.qty-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-hover);
  border-radius: 999px;
  padding: 0.25rem;
}

.qty-pill-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qty-pill-btn:active {
  transform: scale(0.85);
}

.qty-pill-val {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

@keyframes slideUpCart {
  0% { transform: translate(-50%, 150%); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes popIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.cart-pill-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 400px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  z-index: 1000;
  animation: slideUpCart 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
