/* ============================================================
   Küche Manager — App Styles
   Theme: Premium Red + White (Minimalist Modern)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Primary — Premium Red */
  --primary:       #C62828;
  --primary-light: #EF5350;
  --primary-dark:  #8E0000;
  --primary-50:    #FFEBEE;
  --primary-100:   #FFCDD2;

  /* Surfaces */
  --bg:          #F4F6F9;
  --surface:     #FFFFFF;
  --surface-2:   #F9FAFB;
  --border:      #E5E7EB;
  --border-light:#F3F4F6;

  /* Text */
  --text:           #111827;
  --text-secondary: #4B5563;
  --text-muted:     #9CA3AF;
  --text-on-primary:#FFFFFF;

  /* Semantic */
  --success:      #15803D;
  --success-bg:   #DCFCE7;
  --warning:      #B45309;
  --warning-bg:   #FEF3C7;
  --info:         #1D4ED8;
  --info-bg:      #DBEAFE;
  --danger:       #B91C1C;
  --danger-bg:    #FEE2E2;

  /* Layout */
  --sidebar-w:       240px;
  --topbar-h:        60px;
  --bottom-nav-h:    70px;

  /* Shape */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 6px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow:    0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.08);

  /* Motion */
  --t: .18s ease;

  /* Fonts */
  --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-h:  'Playfair Display', Georgia, serif;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ─── App Shell ─────────────────────────────────────────────── */
.app-body { background: var(--bg); }
.app-shell { display: flex; min-height: 100vh; }

/* ─── Sidebar ───────────────────────────────────────────────── */
.app-sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed; top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t);
}
.sidebar-brand {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-brand-logo { display: flex; align-items: center; gap: 10px; }
.sidebar-logo-img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; border-radius: 6px; }
.sidebar-brand-name {
  font-family: var(--font-h);
  font-size: 17px; font-weight: 700;
  color: var(--primary); line-height: 1.3;
}
.sidebar-brand-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.sidebar-nav { padding: 10px 0; flex: 1; }
.sidebar-section {
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); padding: 14px 20px 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: var(--text-secondary); font-size: 13.5px; font-weight: 500;
  transition: all var(--t); cursor: pointer; text-decoration: none;
  position: relative; border-radius: 0;
}
.sidebar-link:hover { color: var(--primary); background: var(--primary-50); text-decoration: none; }
.sidebar-link.active { color: var(--primary); background: var(--primary-50); font-weight: 600; }
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--primary); border-radius: 0 3px 3px 0;
}
.sidebar-link .s-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-link .s-dot {
  margin-left: auto; width: 7px; height: 7px;
  border-radius: 50%; background: var(--primary);
}
.sidebar-footer { padding: 12px 0; border-top: 1px solid var(--border); flex-shrink: 0; }
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 99; backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ─── App Main ──────────────────────────────────────────────── */
.app-main {
  flex: 1; margin-left: var(--sidebar-w);
  min-width: 0; display: flex; flex-direction: column; min-height: 100vh;
}

/* ─── Top Bar ───────────────────────────────────────────────── */
.top-bar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-xs); flex-shrink: 0;
}
.top-bar-inner { display: contents; }
.top-bar-title { font-size: 16px; font-weight: 600; color: var(--text); }
.top-bar-right { display: flex; align-items: center; gap: 10px; }
.top-bar-date { font-size: 13px; color: var(--text-muted); }
.top-bar-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--text-secondary);
  cursor: pointer; transition: all var(--t); text-decoration: none; position: relative;
}
.top-bar-btn:hover { background: var(--primary-50); color: var(--primary); border-color: var(--primary-100); text-decoration: none; }
.top-bar-btn .notif-dot, .notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); border: 1.5px solid var(--surface);
}
.mobile-menu-btn {
  display: none; width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  align-items: center; justify-content: center;
  font-size: 20px; color: var(--text); cursor: pointer;
}

/* ─── Main Content ──────────────────────────────────────────── */
.main-content, .page-content {
  flex: 1; padding: 24px; max-width: 1280px; width: 100%;
}
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-title { font-size: 21px; font-weight: 700; color: var(--text); }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.card + .card { margin-top: 14px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text); }
.card-subtitle { font-size: 12px; color: var(--text-muted); }

/* ─── Stats Grid ────────────────────────────────────────────── */
.stats-grid,
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t), transform var(--t);
}
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.stat-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.stat-icon.red   { background: var(--primary-50); }
.stat-icon.green { background: var(--success-bg); }
.stat-icon.blue  { background: var(--info-bg); }
.stat-icon.amber { background: var(--warning-bg); }
.stat-value, .stat-val { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 5px; letter-spacing: -.5px; }
.stat-label, .stat-sub { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; cursor: pointer; border: none;
  transition: all var(--t); text-decoration: none;
  white-space: nowrap; line-height: 1.4; font-family: var(--font);
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-lg { padding: 12px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #14532D; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #7F1D1D; color: #fff; }
.btn-warning { background: #D97706; color: #fff; }
.btn-warning:hover { background: #92400E; color: #fff; }
.btn-accent { background: var(--primary); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-50); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

/* ─── FAB ───────────────────────────────────────────────────── */
.fab {
  position: fixed; right: 24px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; font-size: 26px;
  cursor: pointer; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t); z-index: 40; text-decoration: none;
}
.fab:hover { background: var(--primary-dark); transform: scale(1.06); color: #fff; text-decoration: none; }

/* ─── Form Controls ─────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; font-size: 14px; font-family: var(--font);
  color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  outline: none; transition: border-color var(--t), box-shadow var(--t); line-height: 1.5;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { background: var(--bg); cursor: not-allowed; }
select.form-control {
  cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239CA3AF' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.input-group { display: flex; gap: 8px; }
.input-group .form-control { flex: 1; }

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-muted   { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge-future  { background: #EDE7F6; color: #5E35B1; }
.badge-cash    { background: #DCFCE7; color: #15803D; }
.badge-bank    { background: #DBEAFE; color: #1D4ED8; }
.badge-paypal  { background: #E0F2FE; color: #0369A1; }
.badge-pending { background: var(--warning-bg); color: var(--warning); }

/* ─── Tabs ──────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; border-bottom: 2px solid var(--border);
  margin-bottom: 20px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--t); white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ─── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  background: var(--surface-2); color: var(--text-secondary);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 11px 16px;
  text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--primary-50); }

/* ─── Order Cards ───────────────────────────────────────────── */
.order-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  transition: box-shadow var(--t), border-color var(--t);
  display: block; margin-bottom: 12px; color: inherit; cursor: pointer;
}
.order-card:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-100); color: inherit; text-decoration: none; }
.order-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.order-card-name { font-weight: 600; font-size: 15px; color: var(--text); }
.order-card-meta { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-light); }
.order-card-total { font-weight: 700; font-size: 16px; color: var(--text); }

/* ─── Product Grid ──────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.product-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 14px;
  transition: all var(--t); cursor: pointer; text-align: center;
}
.product-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.product-card.selected { border-color: var(--primary); background: var(--primary-50); }
.product-card-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.product-card-price { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }

/* ─── Qty Stepper ───────────────────────────────────────────── */
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-stepper button {
  width: 34px; height: 34px; border: none; background: var(--surface-2);
  color: var(--text-secondary); font-size: 18px; cursor: pointer;
  transition: all var(--t); display: flex; align-items: center; justify-content: center;
}
.qty-stepper button:hover { background: var(--primary-50); color: var(--primary); }
.qty-stepper input {
  width: 44px; height: 34px; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-size: 14px; font-weight: 600;
  background: var(--surface); color: var(--text); outline: none;
}

/* ─── Overlay & Bottom Sheet ────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; backdrop-filter: blur(2px); }
.bottom-sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--surface); border-radius: 20px 20px 0 0;
  padding: 24px; z-index: 100; box-shadow: var(--shadow-lg);
  max-height: 80vh; overflow-y: auto;
}
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: -8px auto 20px; }

/* ─── Alerts ────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; border-left: 3px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success); border-left-color: var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-left-color: #D97706; }
.alert-danger,
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-left-color: var(--danger); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-left-color: var(--info); }

/* ─── Checklist / Cook Mode ──────────────────────────────────── */
.checklist-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); cursor: pointer; font-size: 15px; color: var(--text); transition: color var(--t); }
.checklist-item.done { color: var(--text-muted); text-decoration: line-through; }
.checklist-item .check-box { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all var(--t); }
.checklist-item.done .check-box { background: var(--success); border-color: var(--success); color: #fff; }
.cook-mode { background: var(--bg); }
.cook-scaler { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 20px; }

/* ─── Time Chips ────────────────────────────────────────────── */
.time-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.time-chip { padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all var(--t); background: var(--surface); }
.time-chip:hover, .time-chip.selected { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Payment Buttons ───────────────────────────────────────── */
.pay-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-btn { flex: 1; min-width: 88px; padding: 10px 12px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all var(--t); text-align: center; font-family: var(--font); }
.pay-btn:hover, .pay-btn.selected { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

/* ─── Login Page ────────────────────────────────────────────── */
.login-page { min-height: 100vh; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px 36px; box-shadow: var(--shadow-lg); }
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo-icon { font-size: 40px; margin-bottom: 8px; }
.login-logo-name { font-family: var(--font-h); font-size: 22px; color: var(--primary); font-weight: 700; }
.login-logo-sub  { font-size: 13px; color: var(--text-muted); }

/* ─── Customer Page ─────────────────────────────────────────── */
.customer-page { background: var(--bg); min-height: 100vh; }
.customer-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%); color: #fff; padding: 56px 24px 72px; text-align: center; position: relative; overflow: hidden; }
.customer-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.customer-hero-title { font-family: var(--font-h); font-size: 30px; font-weight: 700; margin-bottom: 8px; position: relative; }
.customer-hero-sub { font-size: 15px; opacity: .9; position: relative; }
.customer-body { max-width: 620px; margin: -28px auto 0; padding: 0 16px 60px; position: relative; }

/* ─── Bottom Nav (Mobile only) ──────────────────────────────── */
/* ─── Bottom Navigation (mobile-first) ──────────────────────── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: #fff;
  border-top: none;
  z-index: 60;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 24px rgba(0,0,0,.10);
}
.bottom-nav-inner {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  padding: 0;
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: #9CA3AF;
  font-size: 10px; font-weight: 500;
  text-decoration: none;
  transition: color var(--t);
  padding: 4px 0;
  cursor: pointer;
  min-height: 44px;
}
.nav-item:hover, .nav-item.active { color: var(--primary); text-decoration: none; }
.nav-icon {
  width: 44px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  transition: background var(--t);
}
.nav-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.nav-item.active .nav-icon { background: var(--primary-50); }
.nav-label { font-size: 10px; letter-spacing: .01em; }

/* ─── Misc ───────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.empty-state-text { font-size: 15px; }
.empty-icon { font-size: 52px; display: block; opacity: .45; margin-bottom: 12px; }

/* ─── Section Titles ─────────────────────────────────────────── */
.section-title    { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; padding-top: 4px; }
.section-title-sm { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }

/* ─── Typography helpers ─────────────────────────────────────── */
.font-bold  { font-weight: 700; }
.font-600   { font-weight: 600; }
.btn-full   { width: 100%; }

/* ─── Customer page ──────────────────────────────────────────── */
.customer-page   { background: var(--bg); min-height: 100vh; }
.customer-hero   { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); color: #fff; padding: 48px 24px 64px; text-align: center; position: relative; overflow: hidden; }
.customer-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.customer-hero h1 { font-family: var(--font-h); font-size: 26px; font-weight: 700; margin-bottom: 6px; position: relative; }
.customer-hero p  { font-size: 14px; opacity: .88; position: relative; }
.customer-content { max-width: 640px; margin: -28px auto 0; padding: 0 16px 80px; position: relative; z-index: 2; }
.customer-body    { max-width: 640px; margin: -28px auto 0; padding: 0 16px 60px; position: relative; }

/* ─── Cook mode buttons ──────────────────────────────────────── */
.cook-qty-btn     { width: 42px; height: 42px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-size: 20px; font-weight: 600; cursor: pointer; transition: all var(--t); font-family: var(--font); display: inline-flex; align-items: center; justify-content: center; }
.cook-qty-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.cook-qty-val     { font-size: 26px; font-weight: 700; color: var(--text); min-width: 44px; text-align: center; }

/* ─── Step numbers ───────────────────────────────────────────── */
.step-number { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 4px; }

/* ─── Customer qty stepper (inline +/- on order page) ───────── */
.qty-btn   { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 20px; cursor: pointer; transition: all var(--t); font-family: var(--font); display: inline-flex; align-items: center; justify-content: center; }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.qty-count { min-width: 28px; text-align: center; font-size: 15px; font-weight: 700; color: var(--text); }
.qty-row   { display: flex; align-items: center; gap: 6px; }

/* ─── Menu item card (customer order page) ───────────────────── */
.menu-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 10px; transition: border-color var(--t), box-shadow var(--t); }
.menu-item.in-cart { border-color: var(--primary); background: var(--primary-50); }
.menu-item:hover { border-color: var(--primary-100); box-shadow: var(--shadow-xs); }
.menu-item-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-item-name  { font-size: 15px; font-weight: 600; color: var(--text); }
.menu-item-desc  { font-size: 13px; color: var(--text-muted); margin: 3px 0 6px; line-height: 1.4; }
.menu-item-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.menu-cat-label  { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 20px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.menu-cat-group { scroll-margin-top: 72px; }
.menu-cat-nav {
  display: flex; gap: 8px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
  padding: 6px 0 10px; margin: -6px 0 10px; position: sticky; top: 0; z-index: 5;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.menu-cat-nav::-webkit-scrollbar { display: none; }
.menu-cat-pill {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); background: var(--primary-50); border: 1px solid var(--primary-100);
  text-decoration: none; transition: all var(--t);
}
.menu-cat-pill:hover, .menu-cat-pill.active {
  color: var(--primary); background: var(--primary-100); text-decoration: none;
}
.discount-tier-hint {
  margin-top: 8px; font-size: 12px; color: var(--text-muted); line-height: 1.5;
  background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius-sm);
  padding: 6px 8px; display: inline-block;
}

/* ─── Order summary bar (sticky) ────────────────────────────── */
.order-summary-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.order-summary-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 4px 0; border-bottom: 1px solid var(--border-light); }
.order-summary-line:last-child { border-bottom: none; font-size: 16px; font-weight: 700; padding-top: 8px; }
.order-total-val { font-size: 18px; font-weight: 700; color: var(--primary); }
.search-bar { position: relative; margin-bottom: 20px; }
.search-bar input { width: 100%; padding: 10px 14px 10px 40px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); background: var(--surface); color: var(--text); outline: none; transition: border-color var(--t); }
.search-bar input:focus { border-color: var(--primary); }
.search-bar::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; }

/* search-wrap: used by orders/recipes pages (SVG icon + input combo) */
.search-wrap { position: relative; margin-bottom: 20px; display: flex; align-items: center; }
.search-wrap svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; flex-shrink: 0; z-index: 1; }
.search-wrap form { width: 100%; }
.search-input { width: 100%; padding: 10px 14px 10px 40px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); background: var(--surface); color: var(--text); outline: none; transition: border-color var(--t); }
.search-input:focus { border-color: var(--primary); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .mobile-menu-btn { display: flex; }

  /* Mobile top bar — red gradient header */
  .top-bar {
    padding: 0 16px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(198,40,40,.25);
  }
  .top-bar-title { color: #fff; font-size: 17px; font-weight: 700; }
  .top-bar-date  { display: none; }
  .top-bar-btn   {
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.15);
    color: #fff;
  }
  .top-bar-btn:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.5); color: #fff; }
  .mobile-menu-btn {
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.15);
    color: #fff;
  }
  .notif-dot { border-color: var(--primary); }

  /* Content */
  .main-content, .page-content { padding: 16px; padding-bottom: calc(var(--bottom-nav-h) + 20px); }
  .bottom-nav { display: flex; }
  .fab { bottom: calc(var(--bottom-nav-h) + 16px); right: 16px; }
  .stats-grid,
  .stats-row  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .two-col, .three-col { grid-template-columns: 1fr; }

  /* Cards tighter on mobile */
  .card { padding: 16px; border-radius: 16px; }
  .stat-card { padding: 14px 16px; border-radius: 16px; }

  /* Page header stack on mobile */
  .page-header { flex-direction: column; align-items: flex-start; margin-bottom: 18px; }
  .page-title  { font-size: 19px; }
}
@media (min-width: 769px) {
  .sidebar-overlay { display: none !important; }
  .app-sidebar { transform: none !important; }
  .mobile-menu-btn { display: none !important; }
  .fab { bottom: 28px; right: 28px; }
}

/* ─── Utilities ─────────────────────────────────────────────── */
.d-flex { display: flex; } .flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.mr-2 { margin-right: 8px; } .p-4 { padding: 16px; }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; }
.text-muted { color: var(--text-muted); } .text-primary { color: var(--primary); } .text-success { color: var(--success); } .text-danger { color: var(--danger); }
.text-right { text-align: right; } .text-center { text-align: center; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.w-full { width: 100%; }

@media print {
  .app-sidebar, .bottom-nav, .fab, .top-bar { display: none !important; }
  .app-main { margin-left: 0 !important; }
}

/* ─── Landing Page ──────────────────────────────────────────── */
.landing-body { background: #fff; }
.lp-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.lp-nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.lp-nav-brand { display: flex; align-items: center; text-decoration: none; }
.lp-nav-logo { height: 44px; width: 44px; object-fit: contain; }
.lp-nav-links { display: flex; align-items: center; gap: 20px; }
.lp-nav-link { font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color var(--t); }
.lp-nav-link:hover { color: var(--primary); text-decoration: none; }
.lp-admin-link { font-size: 11px; color: var(--text-muted); text-decoration: none; transition: color var(--t); }
.lp-admin-link:hover { color: var(--text-secondary); text-decoration: none; }

/* Hero */
.lp-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff 0%, var(--primary-50) 100%); padding: 80px 0 100px; }
.lp-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 70% 50%, var(--primary-100) 0%, transparent 70%); pointer-events: none; }
.lp-hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; position: relative; }
.lp-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-50); color: var(--primary); font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--primary-100); margin-bottom: 20px; }
.lp-hero-title { font-family: var(--font-h); font-size: clamp(32px, 5vw, 54px); font-weight: 800; color: var(--text); line-height: 1.15; margin-bottom: 8px; }
.lp-hero-by { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.lp-hero-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; max-width: 480px; margin-bottom: 32px; }
.lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-hero-visual { flex-shrink: 0; }
.lp-hero-logo-img { width: 280px; height: 280px; object-fit: contain; filter: drop-shadow(0 16px 40px rgba(198,40,40,.18)); }
.lp-hero-circle { width: 220px; height: 220px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 60px rgba(198,40,40,.25); }
.lp-hero-emoji { font-size: 90px; }

/* Features */
.lp-features { padding: 80px 0; background: var(--bg); }
.lp-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.lp-feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; transition: box-shadow var(--t), transform var(--t); }
.lp-feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.lp-feature-icon { font-size: 36px; margin-bottom: 14px; }
.lp-feature h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.lp-feature p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Menu */
.lp-menu { padding: 80px 0; background: #fff; }
.lp-section-header { text-align: center; margin-bottom: 44px; }
.lp-section-title { font-family: var(--font-h); font-size: 34px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.lp-section-sub { font-size: 15px; color: var(--text-muted); }
.lp-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lp-menu-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 18px 18px 16px; display: flex; align-items: center; gap: 14px; transition: box-shadow var(--t), border-color var(--t); }
.lp-menu-card:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-100); }
.lp-menu-card-icon { font-size: 32px; flex-shrink: 0; }
.lp-menu-card-body { flex: 1; min-width: 0; }
.lp-menu-name { font-size: 15px; font-weight: 600; color: var(--text); }
.lp-menu-desc { font-size: 13px; color: var(--text-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-menu-price { font-size: 16px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.lp-menu-cta { text-align: center; margin-top: 40px; }

/* CTA */
.lp-cta { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); padding: 80px 24px; text-align: center; }
.lp-cta-title { font-family: var(--font-h); font-size: clamp(26px, 4vw, 40px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.lp-cta-sub { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--primary-50); color: var(--primary-dark); }

/* Footer */
.lp-footer { background: var(--text); color: #fff; text-align: center; padding: 40px 24px; }
.lp-footer-name { font-family: var(--font-h); font-size: 18px; font-weight: 700; }
.lp-footer-link { color: rgba(255,255,255,.6); font-size: 13px; text-decoration: none; margin: 0 8px; transition: color var(--t); }
.lp-footer-link:hover { color: #fff; text-decoration: none; }

/* Landing responsive */
@media (max-width: 768px) {
  .lp-hero-inner { grid-template-columns: 1fr; }
  .lp-hero-visual { display: none; }
  .lp-hero { padding: 60px 0 70px; }
  .lp-hero-desc { font-size: 15px; }
  .lp-nav-links { gap: 10px; }
  .lp-admin-link { display: none; }
}
