/* QuickBite Design System — app.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --brand: #FF4500;
  --brand2: #FF6B35;
  --brand-light: #FFF3F0;
  --brand-dark: #CC3700;
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --surface2: #F2F4F7;
  --border: rgba(0,0,0,0.08);
  --border-med: rgba(0,0,0,0.14);
  --text: #1A1A2E;
  --text2: #4A4A6A;
  --text3: #9090AA;
  --green: #00C853;
  --green-light: #E8FAF0;
  --yellow: #FFB300;
  --yellow-light: #FFF8E1;
  --red: #FF3B30;
  --red-light: #FFF0EF;
  --blue: #0A84FF;
  --blue-light: #EAF4FF;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --nav-h: 68px;
  --sidebar-w: 260px;
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; line-height: 1.3; color: var(--text); }
ul, ol { list-style: none; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.page-wrapper { padding-top: var(--nav-h); min-height: 100vh; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.col { flex: 1; min-width: 0; }

/* ── Typography ── */
.h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; }
.h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 700; }
.h3 { font-size: clamp(18px, 2.5vw, 26px); font-weight: 600; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 17px; }
.text-muted { color: var(--text3); }
.text-brand { color: var(--brand); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
  cursor: pointer; border: none; transition: all var(--transition); white-space: nowrap;
  text-decoration: none; line-height: 1;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover:not(:disabled) { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,69,0,0.35); }
.btn-brand2 { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-outline:hover:not(:disabled) { background: var(--brand-light); }
.btn-ghost { background: transparent; color: var(--text2); border: 2px solid var(--border-med); }
.btn-ghost:hover:not(:disabled) { background: var(--surface2); color: var(--text); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover:not(:disabled) { background: #00a844; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover:not(:disabled) { background: #d62f26; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-xl { padding: 18px 40px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; border-radius: 50%; aspect-ratio: 1; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

/* ── Form elements ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border-med); border-radius: var(--radius);
  font-size: 15px; color: var(--text); background: var(--surface); transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--brand); }
.form-control::placeholder { color: var(--text3); }
.form-control-lg { padding: 15px 20px; font-size: 16px; }
.form-control.error { border-color: var(--red); }
.form-hint { font-size: 12px; color: var(--text3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239090AA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
textarea.form-control { resize: vertical; min-height: 100px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.checkbox-group { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-group input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }

/* ── Cards ── */
.card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden; transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface2); }

/* ── Navigation ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: var(--surface); box-shadow: 0 1px 0 var(--border), 0 2px 8px rgba(0,0,0,0.04);
  display: flex; align-items: center;
}
.navbar-inner { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22px; color: var(--brand); text-decoration: none; white-space: nowrap; }
.navbar-brand span { color: var(--text); }
.navbar-brand .logo-dot { color: var(--brand); }
.navbar-search { flex: 1; max-width: 400px; position: relative; }
.navbar-search input { width: 100%; padding: 10px 16px 10px 42px; border-radius: 50px; border: 2px solid var(--border-med); background: var(--surface2); font-size: 14px; transition: all var(--transition); }
.navbar-search input:focus { border-color: var(--brand); background: var(--surface); outline: none; }
.navbar-search .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 16px; }
.navbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.navbar-location { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 50px; background: var(--surface2); cursor: pointer; font-size: 13px; color: var(--text2); border: none; white-space: nowrap; }
.navbar-location:hover { background: var(--brand-light); color: var(--brand); }
.cart-btn { position: relative; padding: 10px 18px; background: var(--brand); color: #fff; border-radius: 50px; cursor: pointer; border: none; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.cart-btn:hover { background: var(--brand-dark); }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--text); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }
.nav-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; cursor: pointer; border: 2px solid var(--border-med); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  min-width: 200px; overflow: hidden; z-index: 200; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all var(--transition);
}
.nav-dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a, .nav-dropdown-menu button {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  color: var(--text2); font-size: 14px; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; transition: background var(--transition);
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu button:hover { background: var(--surface2); color: var(--text); }
.nav-dropdown-menu .divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D1B69 50%, #1A1A2E 100%);
  padding: 80px 0 100px; position: relative; overflow: hidden;
}
.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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-title { color: #fff; margin-bottom: 16px; }
.hero-title span { color: var(--brand2); }
.hero-subtitle { color: rgba(255,255,255,0.7); font-size: 18px; margin-bottom: 40px; }
.hero-search-bar {
  display: flex; max-width: 680px; margin: 0 auto 24px; background: var(--surface);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden;
  border: 3px solid transparent; transition: border-color var(--transition);
}
.hero-search-bar:focus-within { border-color: var(--brand2); }
.hero-location { display: flex; align-items: center; gap: 8px; padding: 0 20px; border-right: 1px solid var(--border-med); min-width: 180px; cursor: pointer; color: var(--text2); font-size: 14px; }
.hero-location svg { color: var(--brand); flex-shrink: 0; }
.hero-location input { border: none; outline: none; font-size: 14px; width: 100%; color: var(--text); background: transparent; }
.hero-search-input { flex: 1; padding: 18px 20px; border: none; outline: none; font-size: 15px; color: var(--text); }
.hero-search-btn { padding: 14px 28px; background: var(--brand); color: #fff; border: none; font-weight: 700; font-size: 15px; cursor: pointer; transition: background var(--transition); }
.hero-search-btn:hover { background: var(--brand-dark); }
.cuisine-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cuisine-chip {
  display: flex; align-items: center; gap: 6px; padding: 8px 18px;
  background: rgba(255,255,255,0.1); border-radius: 50px; color: rgba(255,255,255,0.85);
  font-size: 14px; cursor: pointer; border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition); backdrop-filter: blur(10px);
}
.cuisine-chip:hover, .cuisine-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Restaurant Card ── */
.restaurant-card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition); cursor: pointer;
  display: block; text-decoration: none; color: inherit;
}
.restaurant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.restaurant-card-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.restaurant-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.restaurant-card:hover .restaurant-card-img img { transform: scale(1.05); }
.restaurant-ribbon {
  position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff;
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700;
}
.restaurant-card-closed {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px; font-family: 'Poppins', sans-serif;
}
.restaurant-card-body { padding: 16px; }
.restaurant-card-header { display: flex; align-items: start; gap: 12px; margin-bottom: 10px; }
.restaurant-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.restaurant-name { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.2; }
.restaurant-cuisine { font-size: 13px; color: var(--text3); margin-top: 2px; }
.restaurant-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text); }
.restaurant-rating .star { color: var(--yellow); font-size: 14px; }
.restaurant-rating .count { color: var(--text3); font-weight: 400; }
.restaurant-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.restaurant-meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text2); }
.restaurant-meta-item svg { color: var(--text3); }
.restaurants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ── Menu ── */
.menu-page { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.menu-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }
.menu-category-nav { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.menu-category-nav a {
  display: block; padding: 13px 18px; font-size: 14px; font-weight: 500; color: var(--text2);
  border-left: 3px solid transparent; transition: all var(--transition);
  text-decoration: none;
}
.menu-category-nav a:hover { background: var(--surface2); color: var(--text); }
.menu-category-nav a.active { color: var(--brand); background: var(--brand-light); border-left-color: var(--brand); font-weight: 600; }
.menu-section { margin-bottom: 40px; }
.menu-section-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.menu-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.menu-item-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; transition: all var(--transition);
  border: 2px solid transparent; cursor: pointer;
}
.menu-item-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.menu-item-card.unavailable { opacity: 0.6; pointer-events: none; }
.menu-item-img { aspect-ratio: 4/3; overflow: hidden; }
.menu-item-img img { width: 100%; height: 100%; object-fit: cover; }
.menu-item-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.menu-item-name { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.menu-item-desc { font-size: 13px; color: var(--text3); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.menu-item-price { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; color: var(--text); }
.menu-item-add {
  width: 34px; height: 34px; background: var(--brand); color: #fff; border: none;
  border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.menu-item-add:hover { background: var(--brand-dark); transform: scale(1.1); }
.menu-item-add.added { background: var(--green); animation: addBounce 0.4s ease; }

@keyframes addBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ── Cart Drawer ── */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 300; opacity: 0; visibility: hidden; transition: all var(--transition); }
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: 400px; max-width: 95vw;
  background: var(--surface); box-shadow: var(--shadow-xl); z-index: 301;
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.show { transform: translateX(0); }
.cart-drawer-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-drawer-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; }
.cart-drawer-close { background: var(--surface2); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.cart-drawer-close:hover { background: var(--border-med); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--surface2); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; color: var(--text); }
.cart-item-options { font-size: 12px; color: var(--text3); margin-top: 2px; }
.cart-item-price { font-weight: 700; font-size: 14px; color: var(--brand); }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-med); background: var(--surface2); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.qty-btn:hover { border-color: var(--brand); color: var(--brand); }
.qty-value { font-weight: 600; font-size: 14px; min-width: 20px; text-align: center; }
.cart-drawer-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.cart-promo { display: flex; gap: 8px; margin-bottom: 16px; }
.cart-promo input { flex: 1; }
.cart-totals { margin-bottom: 16px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text2); margin-bottom: 8px; }
.cart-total-row.total { font-size: 17px; font-weight: 700; color: var(--text); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.cart-total-row .discount { color: var(--green); }
.cart-empty { text-align: center; padding: 48px 0; color: var(--text3); }
.cart-empty svg { font-size: 64px; margin-bottom: 16px; opacity: 0.4; }

/* ── Order Status ── */
.status-timeline { padding: 24px 0; }
.status-step { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.status-step:not(:last-child)::before {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: 0;
  width: 2px; background: var(--border);
}
.status-step.done:not(:last-child)::before { background: var(--green); }
.status-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: var(--surface2); border: 2px solid var(--border); color: var(--text3);
}
.status-step.done .status-icon { background: var(--green); border-color: var(--green); color: #fff; }
.status-step.current .status-icon { background: var(--brand); border-color: var(--brand); color: #fff; animation: pulse 2s ease infinite; }
.status-content { flex: 1; padding-top: 4px; }
.status-title { font-weight: 600; font-size: 14px; }
.status-step.done .status-title { color: var(--green); }
.status-step.current .status-title { color: var(--brand); }
.status-step:not(.done):not(.current) .status-title { color: var(--text3); }
.status-time { font-size: 12px; color: var(--text3); margin-top: 2px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,69,0,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,69,0,0); }
}

/* ── Order Card ── */
.order-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.order-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.order-card-body { padding: 16px 20px; }
.order-status-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 50px; font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
}
.badge-pending { background: var(--yellow-light); color: #9a7000; }
.badge-confirmed, .badge-preparing { background: var(--blue-light); color: #0060cc; }
.badge-ready, .badge-picked_up { background: var(--brand-light); color: var(--brand); }
.badge-delivered { background: var(--green-light); color: #008040; }
.badge-cancelled { background: var(--red-light); color: var(--red); }

/* ── Badges / Chips ── */
.badge { display: inline-block; padding: 3px 9px; border-radius: 50px; font-size: 11px; font-weight: 600; }
.badge-brand { background: var(--brand-light); color: var(--brand); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-yellow { background: var(--yellow-light); color: #9a7000; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 50px; font-size: 12px; background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }

/* ── Stars ── */
.stars { color: var(--yellow); letter-spacing: 2px; }
.stars-empty { color: var(--border-med); }

/* ── Skeleton Loading ── */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton 1.5s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-img { width: 100%; aspect-ratio: 16/9; }
.skeleton-circle { border-radius: 50%; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: var(--text); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: 14px; min-width: 240px; max-width: 380px;
  animation: toastIn 0.3s ease;
}
.toast.success { background: #1a3c1e; border-left: 4px solid var(--green); }
.toast.error { background: #3c1a1a; border-left: 4px solid var(--red); }
.toast.info { background: #1a2a3c; border-left: 4px solid var(--blue); }
.toast.warning { background: #3c2e0a; border-left: 4px solid var(--yellow); }
.toast-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: all var(--transition); backdrop-filter: blur(4px);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  width: 100%; max-width: 540px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
  transform: scale(0.95) translateY(10px); transition: transform var(--transition);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }
.modal-lg { max-width: 720px; }
.modal-header { padding: 24px 28px 0; display: flex; align-items: start; justify-content: space-between; }
.modal-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 20px; }
.modal-close { background: var(--surface2); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-close:hover { background: var(--border-med); }
.modal-body { padding: 20px 28px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 28px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ── Restaurant Info Bar ── */
.restaurant-info-bar { background: var(--surface); box-shadow: var(--shadow); padding: 24px 0; margin-bottom: 32px; }
.restaurant-info-inner { display: flex; align-items: center; gap: 24px; }
.restaurant-info-logo { width: 80px; height: 80px; border-radius: var(--radius); border: 3px solid var(--border); object-fit: cover; }
.restaurant-info-details { flex: 1; }
.restaurant-info-name { font-size: 28px; font-weight: 800; font-family: 'Poppins', sans-serif; }
.restaurant-info-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.restaurant-info-meta-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text2); }

/* ── Dashboard (RMS) ── */
.rms-layout { display: flex; min-height: 100vh; }
.rms-sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: #111827; color: #e5e7eb;
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  overflow-y: auto;
}
.rms-sidebar-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.rms-sidebar-logo a { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 20px; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.rms-sidebar-logo span { color: var(--brand); }
.rms-sidebar-nav { flex: 1; padding: 12px 0; }
.rms-nav-section { padding: 12px 20px 4px; font-size: 11px; font-weight: 600; color: #6b7280; letter-spacing: 1px; text-transform: uppercase; }
.rms-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px;
  color: #9ca3af; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all var(--transition); text-decoration: none; position: relative;
}
.rms-nav-item:hover { background: rgba(255,255,255,0.06); color: #e5e7eb; }
.rms-nav-item.active { background: rgba(255,69,0,0.15); color: var(--brand2); }
.rms-nav-item.active::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--brand); border-radius: 0 3px 3px 0; }
.rms-nav-badge { margin-left: auto; background: var(--brand); color: #fff; border-radius: 50px; padding: 2px 7px; font-size: 11px; font-weight: 700; }
.rms-main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; }
.rms-topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.rms-content { padding: 32px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.kpi-card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow); }
.kpi-label { font-size: 13px; color: var(--text3); font-weight: 500; margin-bottom: 8px; }
.kpi-value { font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 800; color: var(--text); }
.kpi-change { font-size: 12px; margin-top: 4px; }
.kpi-change.up { color: var(--green); }
.kpi-change.down { color: var(--red); }
.kpi-icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }

/* ── Kanban ── */
.kanban-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.kanban-col { background: var(--surface2); border-radius: var(--radius-lg); padding: 16px; min-height: 400px; }
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kanban-col-title { font-weight: 700; font-size: 14px; font-family: 'Poppins', sans-serif; }
.kanban-count { background: var(--border-med); border-radius: 50px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.order-ticket { background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; border-left: 3px solid var(--border-med); }
.order-ticket.urgent { border-left-color: var(--red); }
.order-ticket.new { border-left-color: var(--brand); animation: slideIn 0.4s ease; }
.order-ticket-id { font-size: 12px; color: var(--text3); font-weight: 600; margin-bottom: 4px; }
.order-ticket-customer { font-weight: 600; font-size: 14px; }
.order-ticket-items { font-size: 12px; color: var(--text2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-ticket-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.order-ticket-time { font-size: 12px; font-weight: 600; }
.order-ticket-time.late { color: var(--red); }

@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Tables ── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
thead { background: var(--surface2); }
th { padding: 14px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text3); letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 16px; font-size: 14px; color: var(--text); border-top: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: var(--surface2); }
.table-actions { display: flex; gap: 8px; }

/* ── Alerts ── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; display: flex; align-items: start; gap: 10px; }
.alert-success { background: var(--green-light); color: #005c2e; border: 1px solid rgba(0,200,83,0.2); }
.alert-error { background: var(--red-light); color: #9b1c19; border: 1px solid rgba(255,59,48,0.2); }
.alert-info { background: var(--blue-light); color: #004a9b; border: 1px solid rgba(10,132,255,0.2); }
.alert-warning { background: var(--yellow-light); color: #7a5200; border: 1px solid rgba(255,179,0,0.2); }

/* ── Section ── */
.section { padding: 64px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-title { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 800; }
.section-subtitle { color: var(--text2); margin-top: 6px; }

/* ── Filter Bar ── */
.filter-bar { background: var(--surface); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow); margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; align-items: end; }

/* ── Map Container ── */
.map-container { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* ── Auth Pages ── */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.auth-card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: 40px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo a { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 28px; color: var(--brand); text-decoration: none; }
.auth-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text3); font-size: 14px; margin-bottom: 28px; }
.auth-divider { text-align: center; color: var(--text3); font-size: 13px; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.auth-divider span { background: var(--surface); padding: 0 12px; position: relative; }
.auth-footer { text-align: center; font-size: 14px; color: var(--text2); margin-top: 20px; }

/* ── Checkout ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.checkout-summary { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); position: sticky; top: calc(var(--nav-h) + 20px); }
.checkout-summary-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.checkout-summary-body { padding: 16px 24px; }
.checkout-item { display: flex; justify-content: space-between; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.checkout-item:last-child { border-bottom: none; }

/* ── Upload Area ── */
.upload-area {
  border: 2px dashed var(--border-med); border-radius: var(--radius); padding: 32px;
  text-align: center; cursor: pointer; transition: all var(--transition); background: var(--surface2);
}
.upload-area:hover, .upload-area.dragover { border-color: var(--brand); background: var(--brand-light); }
.upload-area img.preview { max-height: 200px; margin: 0 auto 12px; border-radius: var(--radius-sm); }

/* ── Rating Input ── */
.rating-input { display: flex; gap: 4px; }
.rating-star { font-size: 28px; cursor: pointer; color: var(--border-med); transition: color var(--transition); }
.rating-star.active, .rating-star:hover ~ .rating-star { color: var(--border-med); }
.rating-star.active { color: var(--yellow); }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 32px 0; }
.page-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-med); background: var(--surface); color: var(--text2); font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Notification Bell ── */
.notif-btn { position: relative; background: none; border: none; cursor: pointer; padding: 8px; font-size: 20px; color: var(--text2); }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; border: 2px solid var(--surface); }

/* ── How It Works ── */
.how-it-works { background: var(--surface); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.step-icon { width: 72px; height: 72px; border-radius: var(--radius-lg); background: var(--brand-light); color: var(--brand); font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step-title { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.step-desc { color: var(--text2); font-size: 14px; line-height: 1.6; }

/* ── Footer ── */
footer { background: #111827; color: #9ca3af; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: var(--brand); }
.footer-desc { font-size: 14px; line-height: 1.6; }
.footer-heading { color: #e5e7eb; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: #9ca3af; text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.empty-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text2); }
.empty-desc { color: var(--text3); font-size: 14px; margin-bottom: 24px; }

/* ── Chart containers ── */
.chart-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.chart-title { font-weight: 700; font-size: 16px; font-family: 'Poppins', sans-serif; }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn { padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--text3); cursor: pointer; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ── Drag-drop sortable ── */
.sortable-ghost { opacity: 0.4; background: var(--brand-light); }
.drag-handle { cursor: grab; color: var(--text3); padding: 4px; }
.drag-handle:active { cursor: grabbing; }

/* ── Spinner ── */
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--brand); animation: spin 0.7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Misc utilities ── */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.w-100 { width: 100%; }
.position-relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.border-top { border-top: 1px solid var(--border); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .menu-page { grid-template-columns: 1fr; }
  .menu-sidebar { position: static; }
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .rms-sidebar { display: none; }
  .rms-sidebar.open { display: flex; width: 260px; }
  .rms-main { margin-left: 0; }
  .rms-content { padding: 20px; }
  .navbar-search { display: none; }
  .hero-search-bar { flex-direction: column; border-radius: var(--radius-lg); }
  .hero-location { border-right: none; border-bottom: 1px solid var(--border); min-width: 0; padding: 14px 16px; }
  .hero-search-btn { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .kanban-board { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .modal { margin: 10px; }
  .restaurants-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .section { padding: 40px 0; }
  .kpi-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
}
