/* === DELIVERY ZAPTIME — MAIN CSS === */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #ff6b35;
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* === HEADER === */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.logo span { color: var(--text); }

.search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  outline: none;
  background: var(--bg);
  transition: .2s;
}
.search-bar input:focus { border-color: var(--primary); background: #fff; }
.search-bar .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.btn-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  transition: .2s;
}
.btn-icon:hover { background: #f0f0f0; }
.badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-dark); }

/* === HERO / BANNER === */
.hero {
  background: linear-gradient(135deg, #e63946 0%, #ff6b35 100%);
  padding: 48px 20px;
  text-align: center;
  color: #fff;
}
.hero h1 { font-size: clamp(24px, 5vw, 42px); font-weight: 800; margin-bottom: 10px; }
.hero p { font-size: 16px; opacity: .9; margin-bottom: 28px; }
.hero .search-hero {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.hero .search-hero input {
  width: 100%;
  padding: 16px 120px 16px 52px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hero .search-hero .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted); }
.hero .search-hero button {
  position: absolute;
  right: 6px; top: 6px; bottom: 6px;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0 22px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

/* === MAIN CONTENT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 32px 0; }
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === CATEGORIES === */
.categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid var(--border);
  cursor: pointer;
  min-width: 80px;
  transition: .2s;
  white-space: nowrap;
}
.cat-chip:hover, .cat-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5f5;
}
.cat-chip .emoji { font-size: 26px; }
.cat-chip span { font-size: 12px; font-weight: 600; }

/* === RESTAURANT GRID === */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.restaurant-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .25s;
  cursor: pointer;
}
.restaurant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.restaurant-card .banner {
  height: 150px;
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  position: relative;
  overflow: hidden;
}
.restaurant-card .banner img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-card .logo-wrap {
  position: absolute;
  bottom: -20px;
  left: 16px;
  width: 52px; height: 52px;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  overflow: hidden;
}
.restaurant-card .logo-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.restaurant-card .info { padding: 28px 16px 16px; }
.restaurant-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.restaurant-card .meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  flex-wrap: wrap;
}
.restaurant-card .meta span { display: flex; align-items: center; gap: 4px; }
.restaurant-card .badge-closed {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
}
.tag-featured {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--warning);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}
.stars { color: #f59e0b; font-size: 12px; }

/* === RESTAURANT PAGE === */
.rest-hero {
  height: 240px;
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  position: relative;
  overflow: hidden;
}
.rest-hero img { width: 100%; height: 100%; object-fit: cover; }
.rest-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.6));
}
.rest-info-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 60px;
  z-index: 90;
}
.rest-info-bar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.rest-logo {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border);
}
.rest-details h1 { font-size: 20px; font-weight: 800; }
.rest-details .meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  flex-wrap: wrap;
}
.rest-details .meta span { display: flex; align-items: center; gap: 4px; }
.open-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.open-badge.open { background: #dcfce7; color: #15803d; }
.open-badge.closed { background: #fee2e2; color: #b91c1c; }

/* === MENU === */
.menu-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 32px 0;
}
.menu-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.menu-nav a {
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border: 1.5px solid var(--border);
  transition: .2s;
}
.menu-nav a:hover, .menu-nav a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.menu-category { margin-bottom: 36px; }
.menu-category h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; border-left: 4px solid var(--primary); padding-left: 10px; }
.product-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: .2s;
  border: 1.5px solid transparent;
}
.product-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.product-card .product-img {
  width: 90px; height: 90px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}
.product-card .product-info { flex: 1; }
.product-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.product-card p { font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .price { font-size: 16px; font-weight: 800; color: var(--primary); margin-top: 8px; }
.product-card .unavailable { font-size: 12px; color: #999; margin-top: 4px; }
.add-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-end;
  transition: .2s;
}
.add-btn:hover { background: var(--primary-dark); transform: scale(1.1); }

/* === CART === */
.cart-box {
  position: sticky;
  top: 140px;
}
.cart-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cart-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
}
.cart-items { padding: 12px 0; max-height: 320px; overflow-y: auto; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
}
.cart-item-name { flex: 1; font-size: 14px; font-weight: 600; }
.cart-item-price { font-size: 14px; color: var(--primary); font-weight: 700; }
.qty-ctrl { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.cart-empty .emoji { font-size: 40px; margin-bottom: 10px; }
.cart-summary {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.cart-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.cart-row.total { font-weight: 800; font-size: 17px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.cart-coupon {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.cart-coupon input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
.cart-coupon button {
  padding: 8px 14px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.btn-checkout {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.btn-checkout:hover { background: var(--primary-dark); }
.btn-checkout:disabled { background: #ccc; cursor: not-allowed; }

/* === TRACKING === */
.tracking-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 600px;
  margin: 32px auto;
}
.tracking-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 28px 0;
}
.t-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}
.t-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: calc(100% - 10px);
  background: var(--border);
}
.t-step.done::after { background: var(--success); }
.t-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  z-index: 1;
  transition: .3s;
}
.t-step.done .t-dot { background: var(--success); }
.t-step.active .t-dot { background: var(--primary); animation: pulse 1.5s infinite; }
.t-step-info { padding: 8px 0 24px; }
.t-step-info h4 { font-size: 15px; font-weight: 700; }
.t-step-info p { font-size: 13px; color: var(--muted); margin-top: 2px; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(230,57,70,.4); }
  70% { box-shadow: 0 0 0 12px rgba(230,57,70,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}

/* === AUTH === */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card .logo { font-size: 28px; text-align: center; margin-bottom: 28px; display: block; }
.auth-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.auth-card p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: .2s;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); }
.btn-block {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: .2s;
}
.btn-block:hover { background: var(--primary-dark); }
.auth-link { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.auth-link a { color: var(--primary); font-weight: 600; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-err { background: #fee2e2; color: #b91c1c; }
.alert-ok { background: #dcfce7; color: #15803d; }

/* === PANEL (Establishment / Admin) === */
.panel-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--text);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-logo span { color: #fff; }
.sidebar-nav { padding: 12px 0; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: .2s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-left-color: var(--primary);
}
.sidebar-nav .icon { font-size: 18px; }
.sidebar-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.3);
  padding: 16px 24px 6px;
}
.panel-main { background: var(--bg); overflow-y: auto; }
.panel-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header h1 { font-size: 20px; font-weight: 700; }
.panel-content { padding: 28px; }

/* === STATS === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.red { background: #fee2e2; }
.stat-icon.green { background: #dcfce7; }
.stat-icon.blue { background: #dbeafe; }
.stat-icon.yellow { background: #fef3c7; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 800; margin-top: 2px; }

/* === TABLE === */
.table-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th { background: #f9f9f9; padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.table-card td { padding: 14px 16px; border-top: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.table-card tr:hover td { background: #fafafa; }

/* === STATUS BADGES === */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status.pending { background: #fef3c7; color: #92400e; }
.status.confirmed { background: #dbeafe; color: #1d4ed8; }
.status.preparing { background: #ede9fe; color: #6d28d9; }
.status.out_for_delivery { background: #fff7ed; color: #c2410c; }
.status.delivered { background: #dcfce7; color: #15803d; }
.status.cancelled { background: #fee2e2; color: #b91c1c; }
.status.active { background: #dcfce7; color: #15803d; }
.status.suspended { background: #fee2e2; color: #b91c1c; }
.status.pending-approval { background: #fef3c7; color: #92400e; }

/* === ORDERS BOARD === */
.orders-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.order-col h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; padding: 8px 12px; border-radius: 8px; }
.order-card-mini {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
}
.order-card-mini .order-num { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.order-card-mini h4 { font-size: 14px; font-weight: 700; }
.order-card-mini .order-total { font-size: 16px; font-weight: 800; color: var(--primary); margin-top: 6px; }
.order-card-mini .order-time { font-size: 11px; color: var(--muted); }
.order-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.btn-sm {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
.btn-sm.accept { background: #dcfce7; color: #15803d; }
.btn-sm.reject { background: #fee2e2; color: #b91c1c; }
.btn-sm.next { background: var(--primary); color: #fff; }
.btn-sm.print { background: #f0f0f0; color: #333; }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95);
  transition: .2s;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* === CHECKOUT === */
.checkout-layout { max-width: 900px; margin: 32px auto; display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.checkout-section { background: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.checkout-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.payment-opt {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  font-size: 13px;
}
.payment-opt .emoji { font-size: 22px; display: block; margin-bottom: 4px; }
.payment-opt.selected { border-color: var(--primary); background: #fff5f5; color: var(--primary); font-weight: 600; }
.address-options { display: flex; flex-direction: column; gap: 10px; }
.address-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: .2s;
  font-size: 14px;
}
.address-opt:hover, .address-opt.selected { border-color: var(--primary); background: #fff5f5; }
.address-opt input[type=radio] { accent-color: var(--primary); }

/* === NOTIFICATION === */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateX(120%);
  transition: .3s;
  max-width: 300px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--primary); }

/* === FOOTER === */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 24px;
  font-size: 13px;
  margin-top: auto;
}
.footer a { color: var(--primary); }

/* === UTILITIES === */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--muted); font-size: 13px; }
.text-sm { font-size: 13px; }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }

/* === MOBILE === */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  border-radius: 16px 16px 0 0;
  z-index: 90;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 90;
  padding: 8px 0 12px;
}
.mobile-nav-items { display: flex; justify-content: space-around; }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 12px;
}
.mobile-nav-item .icon { font-size: 22px; }
.mobile-nav-item.active { color: var(--primary); }

@media (max-width: 900px) {
  .menu-layout { grid-template-columns: 1fr; }
  .cart-box { display: none; }
  .mobile-cart-bar { display: flex; }
  .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { gap: 12px; }
  .search-bar { display: none; }
  .restaurant-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .panel-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .panel-main { padding-bottom: 70px; }
  .mobile-nav { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero { padding: 32px 16px; }
  .auth-card { padding: 28px 20px; }
  .restaurant-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr; }
}

/* === LOADING === */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.8);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}

/* === REVIEWS === */
.star-select { display: flex; gap: 6px; font-size: 28px; cursor: pointer; }
.star-select span { color: #ccc; transition: .1s; }
.star-select span.active, .star-select span:hover { color: #f59e0b; }

/* === PRODUCT MODAL === */
.product-modal-img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px 12px 0 0; }
.extras-list { margin-top: 12px; }
.extra-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.extra-item:last-child { border-bottom: none; }
.extra-name { font-size: 14px; }
.extra-price { font-size: 14px; color: var(--primary); font-weight: 600; }

/* Print */
@media print {
  .header, .sidebar, .mobile-nav, .mobile-cart-bar { display: none !important; }
  .panel-main { padding: 0; }
}
