/* === Gudique - Android Material Theme === */
:root {
  --primary: #FF6B35;
  --primary-dark: #E55A24;
  --primary-light: #FF8C5E;
  --secondary: #1a1a2e;
  --accent: #e94560;
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #f44336;
  --info: #2196F3;
  --dark: #212121;
  --surface: #ffffff;
  --surface-2: #F5F5F5;
  --surface-3: #EEEEEE;
  --on-surface: #212121;
  --on-primary: #ffffff;
  --border: #E0E0E0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
  --shadow-md: 0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23);
  --shadow-lg: 0 10px 20px rgba(0,0,0,.19), 0 6px 6px rgba(0,0,0,.23);
  --radius: 8px;
  --text-muted: #757575;
  --header-bg: var(--secondary);
  --footer-bg: #0f172a;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --header-height: 56px;
  --bottom-nav-height: 56px;
  --font: 'Roboto', 'Segoe UI', sans-serif;
}
.dark-theme {
  --secondary: #141a2b;
  --surface: #0f172a;
  --surface-2: #131d33;
  --surface-3: #17213f;
  --on-surface: #f4f6fb;
  --border: rgba(255,255,255,.08);
  --text-muted: #b8c0d3;
  --header-bg: #111827;
  --footer-bg: #0f172a;
  --primary: #FF9B5C;
  --primary-dark: #ff8a3c;
  --primary-light: #ffb57c;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); background: var(--surface-2); color: var(--on-surface); line-height: 1.5; overflow-x: hidden; max-width: 100vw; }
body.nav-open { overflow: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* ===== ANDROID HEADER ===== */
.android-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--secondary); color: #fff;
  box-shadow: var(--shadow-md);
}
/* Hide any duplicate headers — only the first .android-header should be visible */
.android-header:not(:first-of-type) {
  display: none !important;
}
.header-announcement {
  background: var(--primary); color: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 20px;
  padding-right: 80px;
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  text-align: left;
}
.header-announcement > span {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announcement-right #header-announcement-content {
  display: inline-block;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.announcement-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.announcement-right .theme-toggle-btn {
  position: static;
  margin: 0;
}
@media (min-width: 1024px) {
  .header-announcement {
    padding-right: 80px;
    text-align: left;
  }
}
.header-announcement::before {
  content: "➤";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  line-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(255,255,255,.8), 0 0 18px rgba(255,107,53,.3);
  animation: announcement-glow 1.4s ease-in-out infinite alternate;
  flex-shrink: 0;
}
@keyframes announcement-glow {
  0% { transform: translateX(0); text-shadow: 0 0 10px rgba(255,255,255,.7), 0 0 22px rgba(255,107,53,.3); }
  50% { transform: translateX(4px); text-shadow: 0 0 18px rgba(255,255,255,1), 0 0 30px rgba(255,107,53,.55); }
  100% { transform: translateX(0); text-shadow: 0 0 12px rgba(255,255,255,.8), 0 0 24px rgba(255,107,53,.4); }
}

.header-bar {
  display: flex; align-items: center; height: var(--header-height);
  padding: 0 16px; gap: 12px;
}
/* Site logo — natural/full size, zero margin & padding on image */
.site-logo-wrap { margin: 0; padding: 0; line-height: 0; display: block; }
.site-logo { margin: 0; padding: 0; border: 0; display: block; width: auto; height: auto; max-width: 100%; object-fit: contain; border-radius: var(--radius); }
.header-logo { display: flex; align-items: center; margin: 0; padding: 0; gap: 0; flex-shrink: 0; line-height: 0; }
/* Header & footer logos: no border radius */
.header-logo .site-logo,
.site-logo-header,
.footer-logo .site-logo,
.site-logo-footer {
  border-radius: 0 !important;
}
.header-logo .site-logo,
.site-logo-header {
  max-height: calc(var(--header-height) - 12px);
  width: auto;
  height: auto;
  max-width: clamp(120px, 22vw, 180px);
}
@media (max-width: 420px) {
  .header-logo .site-logo,
  .site-logo-header {
    max-width: 110px;
    max-height: calc(var(--header-height) - 16px);
  }
}
.footer-logo { margin: 0; padding: 0; line-height: 0; display: block; }
.footer-logo .site-logo,
.site-logo-footer {
  width: 180px;
  max-width: 100%;
  transition: width .2s ease, margin .2s ease;
}
@media (max-width: 768px) {
  .footer-logo .site-logo,
  .site-logo-footer {
    width: 180px;
    max-width: min(180px, 94vw);
  }
}
@media (min-width: 992px) {
  .footer-logo .site-logo,
  .site-logo-footer { width: 280px; margin-left: 16px; }
}
.footer-brand .footer-about { margin-top: 16px; }
/* Side drawer (left slider): logo wrapper should preserve consistent size across pages */
.mobile-nav-drawer .drawer-header .site-logo-wrap,
#nav-drawer .drawer-header .site-logo-wrap,
#panel-drawer .drawer-header .site-logo-wrap,
#vendor-drawer .drawer-header .site-logo-wrap,
#courier-drawer .drawer-header .site-logo-wrap,
#mgr-drawer .drawer-header .site-logo-wrap {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 96px;
}
.mobile-nav-drawer .drawer-header .site-logo,
.site-logo-drawer,
#nav-drawer .drawer-header .site-logo,
#panel-drawer .drawer-header .site-logo,
#vendor-drawer .drawer-header .site-logo,
#courier-drawer .drawer-header .site-logo,
#mgr-drawer .drawer-header .site-logo,
#admin-drawer .drawer-header .site-logo {
  width: auto;
  max-width: 240px;
  max-height: 96px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  display: inline-block;
}
.mobile-nav-drawer .drawer-header .site-logo-wrap img,
#nav-drawer .drawer-header .site-logo-wrap img,
#panel-drawer .drawer-header .site-logo-wrap img,
#vendor-drawer .drawer-header .site-logo-wrap img,
#courier-drawer .drawer-header .site-logo-wrap img,
#mgr-drawer .drawer-header .site-logo-wrap img,
#admin-drawer .drawer-header .site-logo-wrap img {
  max-height: 96px;
  width: auto;
  height: auto;
}
.drawer-header .site-logo-fallback {
  font-size: 22px;
  display: block;
  width: 100%;
  text-align: center;
}
.site-logo-fallback { font-size: 18px; font-weight: 700; color: #fff; margin: 0; padding: 0; }
.site-logo-fallback-footer { font-size: 22px; font-weight: 700; color: #fff; }
/* Login / register / auth pages: larger logo, no border radius */
.auth-logo {
  margin: 0 auto;
  padding: 12px 16px 0;
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

/* Filter circle buttons for veg/non-veg/egg */
.filter-circle { width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:none;cursor:pointer;font-weight:700;font-size:14px;margin-right:8px }
.filter-circle.veg { background:#2e7d32;color:#fff }
.filter-circle.non_veg { background:#c62828;color:#fff }
.filter-circle.egg { background:#fff;color:#333;border:1px solid #ddd }
.filter-circle.blink { animation: filter-blink 1s infinite; box-shadow:0 6px 18px rgba(0,0,0,.08) }
@keyframes filter-blink { 0%{transform:translateY(0)}50%{transform:translateY(-4px)}100%{transform:translateY(0)} }
.btn-reset-small { padding:6px 10px;font-size:13px;border-radius:12px }

/* Mobile coordinate icon with hover/tap popup */
.header-announcement .coord-wrapper { display:inline-flex;align-items:center;gap:8px;position:relative;}
.header-announcement .coord-label { display:inline-block;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:#fff;opacity:.92;}
.header-announcement .coord-icon { display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,0.12);color:#fff;cursor:pointer;border:1px solid rgba(255,255,255,0.18);font-size:18px;}
.header-announcement .coord-popup { position:absolute;top:calc(100% + 8px);right:0;min-width:200px;background:var(--surface);color:var(--on-surface);box-shadow:var(--shadow-md);border-radius:12px;padding:10px 12px;font-size:13px;display:none;z-index:1200;line-height:1.4;}
.header-announcement .coord-popup::after { content:'';position:absolute;right:14px;top:-6px;width:12px;height:12px;background:var(--surface);transform:rotate(45deg);box-shadow:var(--shadow-md);}
.header-announcement .coord-icon.show-popup + .coord-popup { display:block;}
@media (hover:hover) and (pointer:fine) {
  .header-announcement .coord-icon:hover + .coord-popup { display:block;}
}
.auth-logo .site-logo,
.site-logo-auth {
  width: auto;
  height: auto;
  max-width: min(320px, 92vw);
  max-height: 96px;
  border-radius: 0 !important;
}
.admin-logo { margin: 0; padding: 0; line-height: 0; }
.admin-logo .site-logo { width: 100%; height: auto; display: block; }
.page-hero-logo { margin: 0 auto 20px; padding: 0; line-height: 0; text-align: center; }
.page-hero-logo .site-logo { width: auto; height: auto; max-width: min(100%, 320px); margin: 0 auto; display: block; }
.legal-page-content h3 { font-size: 17px; font-weight: 700; margin: 20px 0 10px; color: var(--on-surface); }
.legal-page-content ul { margin: 8px 0 16px 20px; }
.legal-page-content li { margin-bottom: 6px; }
.legal-page-content a { color: var(--primary); font-weight: 600; }
.header-logo-text { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.header-logo-text span { color: var(--primary); }
.header-search {
  flex: 1; max-width: 480px; margin: 0 auto;
  display: flex; align-items: center;
  background: rgba(255,255,255,.12); border-radius: var(--radius-full);
  padding: 0 12px; gap: 8px; transition: background .2s;
}
.header-search:focus-within { background: rgba(255,255,255,.2); }
.header-search input {
  background: none; border: none; outline: none; color: #fff;
  width: 100%; padding: 8px 0; font-size: 14px;
}
.header-search input::placeholder { color: rgba(255,255,255,.6); }
.header-search i { color: rgba(255,255,255,.7); font-size: 20px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-icon-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: #fff; font-size: 22px; padding: 8px; border-radius: var(--radius-full);
  transition: background .2s; display: flex; align-items: center; justify-content: center;
}
.header-icon-btn:hover { background: rgba(255,255,255,.1); }
.theme-toggle-btn {
  width: 40px; height: 40px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  transition: background .2s, transform .2s;
}
.header-announcement .theme-toggle-btn {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: var(--radius-full);
  min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.header-avatar {
  width: 36px; height: 36px; border-radius: var(--radius-full); object-fit: cover;
  border: 2px solid var(--primary);
}
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  color: rgba(255,255,255,.8); padding: 8px 12px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500; transition: all .2s; white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.hamburger { background: none; border: none; cursor: pointer; color: #fff; font-size: 24px; padding: 8px; display: none; flex-shrink: 0; position: relative; z-index: 4000; pointer-events: auto; }
.header-panel-badge {
  margin-left: 8px; font-size: 12px; background: rgba(255,255,255,.15);
  padding: 3px 10px; border-radius: 20px; color: #fff; white-space: nowrap; flex-shrink: 0;
}

.admin-notif-wrap,
.panel-notif-wrap {
  position: relative;
}
.admin-notif-btn,
.panel-notif-btn {
  position: relative; background: rgba(255,255,255,.08); border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; color: #fff;
}
.admin-notif-btn:hover,
.panel-notif-btn:hover {
  background: rgba(255,255,255,.18);
}
.admin-notif-badge,
.panel-notif-badge {
  position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px;
}
.panel-notif-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 24px)); max-height: min(420px, 70vh); background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.18); z-index: 1200; display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--border);
}
.panel-notif-panel.open {
  display: flex;
}
.panel-notif-head {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px;
}
.panel-notif-head button {
  background: none; border: none; color: var(--primary); font-size: 12px; font-weight: 600; cursor: pointer;
}
.panel-notif-list {
  overflow-y: auto; flex: 1;
}
.panel-notif-item {
  display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background .15s;
}
.panel-notif-item:hover {
  background: rgba(255,107,53,.06);
}
.panel-notif-item.unread {
  background: rgba(255,107,53,.08); border-left: 3px solid var(--primary);
}
.panel-notif-item-title {
  font-weight: 600; font-size: 13px; margin-bottom: 4px;
}
.panel-notif-item-msg {
  font-size: 12px; color: #757575; line-height: 1.4;
}
.panel-notif-item-time {
  font-size: 11px; color: #9E9E9E; margin-top: 6px;
}
.panel-notif-empty {
  padding: 32px 16px; text-align: center; color: #757575; font-size: 13px;
}
.panel-notif-foot {
  padding: 10px 14px; border-top: 1px solid var(--border); text-align: center;
}
.panel-notif-foot a {
  font-size: 13px; font-weight: 600;
}

/* ===== MOBILE NAV ===== */
.mobile-nav-drawer {
  position: fixed; top: 0; left: -100%; width: 280px; height: 100%;
  background: var(--surface); z-index: 2000; box-shadow: var(--shadow-lg);
  transition: left .3s cubic-bezier(.4,0,.2,1); overflow-y: auto;
}
.mobile-nav-drawer.open { left: 0; }
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1999;
  display: none; opacity: 0; transition: opacity .3s;
}
.mobile-nav-overlay.open { display: block; opacity: 1; }
.drawer-header { background: var(--secondary); padding: 20px 16px 24px; }
.drawer-header .logo-text { font-size: 22px; font-weight: 700; color: #fff; }
.drawer-header .logo-text span { color: var(--primary); }
.drawer-user { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.drawer-user img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.drawer-user-info .name { color: #fff; font-weight: 600; font-size: 15px; }
.drawer-user-info .role { color: rgba(255,255,255,.7); font-size: 12px; }
.drawer-nav { padding: 8px 0; }
.drawer-nav a {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px;
  color: var(--on-surface); font-size: 14px; font-weight: 500; transition: background .2s;
}
.drawer-nav a:hover, .drawer-nav a.active { background: rgba(255,107,53,.08); color: var(--primary); }
.drawer-nav a i { font-size: 20px; width: 24px; }
.drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ===== BOTTOM NAVIGATION (Mobile) ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--surface); display: none;
  height: var(--bottom-nav-height); box-shadow: 0 -2px 8px rgba(0,0,0,.12);
  border-top: 1px solid var(--border);
}
.bottom-nav-items { display: flex; height: 100%; }
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #9E9E9E; font-size: 10px; font-weight: 500; cursor: pointer;
  transition: color .2s; text-decoration: none; position: relative;
}
.bottom-nav-item i { font-size: 22px; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--primary); border-radius: 0 0 4px 4px;
}

/* ===== PANEL SIDEBAR ===== */
.panel-wrapper { display: flex; min-height: calc(100vh - var(--header-height)); }
.panel-sidebar {
  width: 240px; flex-shrink: 0; background: var(--surface);
  box-shadow: var(--shadow-sm); position: sticky; top: var(--header-height);
  height: calc(100vh - var(--header-height)); overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-user {
  padding: 20px 16px; background: linear-gradient(135deg, var(--secondary), #2d2d5e);
  text-align: center;
}
.sidebar-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--primary); margin: 0 auto 10px;
}
.sidebar-user-name { color: #fff; font-size: 15px; font-weight: 600; }
.sidebar-user-role {
  display: inline-block; margin-top: 4px; padding: 2px 10px;
  background: var(--primary); color: #fff; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.sidebar-nav { flex: 1; padding: 8px 0; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  color: #616161; font-size: 13px; font-weight: 500; transition: all .2s;
  border-left: 3px solid transparent;
}
.sidebar-nav-item:hover { background: rgba(255,107,53,.08); color: var(--primary); }
.sidebar-nav-item.active { background: rgba(255,107,53,.08); color: var(--primary); border-left-color: var(--primary); }
.sidebar-nav-item i { font-size: 18px; width: 20px; }
.sidebar-section-label { padding: 10px 16px 4px; font-size: 11px; text-transform: uppercase; color: #9E9E9E; letter-spacing: 1px; font-weight: 600; }
.panel-content { flex: 1; padding: 24px; max-width: calc(100% - 240px); min-width: 0; overflow-x: hidden; }

/* ===== CARDS ===== */
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header-title { font-size: 16px; font-weight: 600; color: var(--on-surface); }
.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* ===== STAT CARDS ===== */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 16px; transition: transform .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg); display: flex;
  align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.stat-icon.orange { background: rgba(255,107,53,.12); color: var(--primary); }
.stat-icon.green { background: rgba(76,175,80,.12); color: var(--success); }
.stat-icon.blue { background: rgba(33,150,243,.12); color: var(--info); }
.stat-icon.red { background: rgba(233,69,96,.12); color: var(--accent); }
.stat-icon.purple { background: rgba(156,39,176,.12); color: #9C27B0; }
.stat-icon.teal { background: rgba(0,150,136,.12); color: #009688; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--on-surface); }
.stat-label { font-size: 12px; color: #757575; margin-top: 2px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-full); border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: all .2s; text-decoration: none;
  letter-spacing: .3px; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0);
  transition: background .2s; pointer-events: none;
}
.btn:hover::after { background: rgba(255,255,255,.1); }
.btn:active::after { background: rgba(255,255,255,.2); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(255,107,53,.4); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-info { background: var(--info); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ai-assistant {
  position: relative; overflow: hidden; z-index: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 42px; min-height: 34px;
  border-radius: 12px; border-color: #fde68a; color: #fde68a;
  background: rgba(253,230,138,.12);
  box-shadow: 0 0 12px rgba(253,230,138,.18);
  transition: all .2s ease;
  padding: 6px 10px;
  font-size: 11px;
}
.btn-ai-assistant::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top left, rgba(253,230,138,.45), transparent 45%);
  opacity: .55;
  filter: blur(12px);
  transition: opacity .25s ease;
  pointer-events: none;
}
.btn-ai-assistant i {
  animation: ai-icon-blink 1.4s ease-in-out infinite;
  color: #fbbf24;
  font-size: 15px;
  display: inline-flex;
}
.btn-ai-assistant .ai-assistant-label {
  margin-left: 5px;
  font-size: 10px;
  line-height: 1;
}
.btn-ai-assistant:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(253,230,138,.55), 0 0 36px rgba(253,230,138,.25);
  color: #fff;
  background: linear-gradient(135deg, rgba(253,230,138,.95), rgba(245,158,11,.95));
  border-color: transparent;
}
.btn-ai-assistant:hover::before { opacity: .9; }
@keyframes ai-icon-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  30% { opacity: .8; }
  60% { opacity: .45; transform: scale(1.12); }
}
.floating-ai-button {
  position: fixed;
  right: 18px;
  bottom: 64px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(253,230,138,.98), rgba(245,158,11,.95));
  color: #1f2937;
  box-shadow: 0 12px 30px rgba(245,158,11,.22);
  z-index: 3000;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-ai-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(245,158,11,.28);
}
.floating-ai-button i {
  font-size: 22px;
  animation: ai-icon-blink 1.4s ease-in-out infinite;
}
.floating-courier-button {
  position: fixed;
  right: 18px;
  bottom: 118px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  z-index: 3001;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.floating-courier-button:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.22); }
.floating-courier-button i { font-size: 18px; }
@media (max-width:420px) {
  .floating-ai-button { right: 12px; bottom: 76px; }
  .floating-courier-button { right: 12px; bottom: 132px; }
}
/* glow behind courier button */
.floating-courier-button::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  background: radial-gradient(closest-side, rgba(233,69,96,0.22), rgba(233,69,96,0) 60%);
  z-index: -1;
  filter: blur(6px);
}
.header-store-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.18);
}
.store-badge i {
  font-size: 16px;
}
@media (max-width: 991px) {
  .header-store-links {
    display: none;
  }
}
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-icon { padding: 10px; }
.btn-block { width: 100%; }
.btn-on-dark { color: #fff !important; border-color: rgba(255,255,255,.4) !important; }
.btn-on-dark:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; }
.fab {
  position: fixed; bottom: calc(var(--bottom-nav-height) + 16px); right: 16px;
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff;
  border: none; cursor: pointer; font-size: 24px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; z-index: 50; transition: transform .2s;
}
.fab:hover { transform: scale(1.05); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #616161; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; color: var(--on-surface);
  background: var(--surface); transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,.15); }
.form-control::placeholder { color: #BDBDBD; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23757575'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.input-group { display: flex; align-items: stretch; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group-text {
  padding: 0 12px; background: var(--surface-2); border: 1.5px solid var(--border);
  border-right: none; border-radius: var(--radius) 0 0 var(--radius);
  display: flex; align-items: center; color: #757575; flex-shrink: 0;
}
.input-group:has(.input-group-text) .form-control { border-radius: 0 var(--radius) var(--radius) 0; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--surface-2); padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #757575; border-bottom: 2px solid var(--border); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,107,53,.03); }

/* ===== BADGES & CHIPS ===== */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.chip-primary { background: rgba(255,107,53,.12); color: var(--primary); }
.chip-success { background: rgba(76,175,80,.12); color: var(--success); }
.chip-danger { background: rgba(244,67,54,.12); color: var(--danger); }
.chip-warning { background: rgba(255,152,0,.12); color: var(--warning); }
.chip-info { background: rgba(33,150,243,.12); color: var(--info); }
.chip-dark { background: rgba(33,33,33,.08); color: var(--dark); }

/* ===== ALERTS ===== */
.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert i { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(76,175,80,.12); color: #2E7D32; border-left: 4px solid var(--success); }
.alert-danger { background: rgba(244,67,54,.12); color: #C62828; border-left: 4px solid var(--danger); }
.alert-warning { background: rgba(255,152,0,.12); color: #E65100; border-left: 4px solid var(--warning); }
.alert-info { background: rgba(33,150,243,.12); color: #0D47A1; border-left: 4px solid var(--info); }

/* ===== ORDER STATUS ===== */
.status-pending { color: var(--warning); }
.status-confirmed { color: var(--info); }
.status-preparing { color: #9C27B0; }
.status-out_for_delivery { color: var(--primary); }
.status-delivered { color: var(--success); }
.status-cancelled { color: var(--danger); }

/* ===== FOOD CARDS ===== */
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.food-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.food-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.food-card-img { width: 100%; height: 140px; object-fit: cover; }
.food-card-img-placeholder { width: 100%; height: 140px; background: linear-gradient(135deg, #FF6B35, #E55A24); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.food-card-body { padding: 12px; }
.food-type-dot { width: 12px; height: 12px; border-radius: 2px; border: 1.5px solid; display: inline-block; flex-shrink: 0; }
.food-type-dot.veg { border-color: var(--success); }
.food-type-dot.veg::after { content: ''; display: block; width: 6px; height: 6px; background: var(--success); border-radius: 50%; margin: 2px; }
.food-type-dot.non_veg { border-color: var(--danger); }
.food-type-dot.non_veg::after { content: ''; display: block; width: 6px; height: 6px; background: var(--danger); border-radius: 50%; margin: 2px; }
.food-name { font-size: 14px; font-weight: 600; margin: 4px 0; }
.food-price { font-size: 16px; font-weight: 700; color: var(--primary); }
.food-price-original { font-size: 12px; color: #9E9E9E; text-decoration: line-through; }

/* ===== RESTAURANT CARDS ===== */
.restaurant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.restaurant-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.restaurant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.restaurant-banner { width: 100%; height: 160px; object-fit: cover; }
.restaurant-banner-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, var(--secondary), #2d2d5e); display: flex; align-items: center; justify-content: center; }
.restaurant-card-body { padding: 16px; }
.restaurant-logo { width: 52px; height: 52px; border-radius: var(--radius); object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); margin-top: -26px; margin-bottom: 8px; }

/* Vendor page hero logo (restaurant details page) */
.vendor-hero-logo{
  width: clamp(56px, 14vw, 80px);
  height: clamp(56px, 14vw, 80px);
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  flex-shrink: 0;
}

/* Menu item thumbnails */
.menu-item-thumb{
  width: clamp(60px, 16vw, 80px);
  height: clamp(60px, 16vw, 80px);
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.menu-item-thumb-placeholder{
  background: linear-gradient(135deg,#FF6B35,#E55A24);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 32px;
}

/* Simple image slider (auto) */
.kfp-img-slider{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}
.kfp-img-slider img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.kfp-img-slider .kfp-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition: opacity .35s ease;
}
.kfp-img-slider .kfp-slide.is-active{
  opacity:1;
}
.food-card-img-slider,
.food-item-detail-image-slider,
.menu-item-thumb[data-slider] {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}
.food-item-detail-image-slider {
  height: 260px;
}
.food-item-detail-image-slider .kfp-slide,
.food-card-img-slider .kfp-slide,
.menu-item-thumb[data-slider] .kfp-slide {
  border-radius: inherit;
}
.food-item-detail-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}
.restaurant-name { font-size: 16px; font-weight: 700; }
.restaurant-category { font-size: 13px; color: #757575; }
.restaurant-info { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; color: #757575; }
.restaurant-info span { display: flex; align-items: center; gap: 4px; }
.restaurant-badge { position: absolute; top: 12px; right: 12px; }

/* ===== HERO SECTION ===== */
.hero-section {
  width: 100%;
}
.hero-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
  aspect-ratio: 16 / 9;
  max-height: min(56.25vw, 560px);
  min-height: clamp(180px, 42vw, 320px);
}
@media (min-width: 1024px) {
  .hero-frame.hero-has-video {
    aspect-ratio: unset;
    height: 71vh;
    min-height: 71vh;
    max-height: 71vh;
  }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.hero-bg-desktop,
.hero-bg-large,
.hero-bg-tablet,
.hero-bg-mobile {
  display: none;
}
.hero-bg-media,
.hero-bg video,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-below {
  text-align: center;
  padding: clamp(20px, 4vw, 32px) clamp(16px, 4vw, 24px);
  background: #fff;
  color: #424242;
}
.hero-subtitle {
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  color: #616161;
  line-height: 1.5;
  margin: 0 auto clamp(16px, 3vw, 24px);
  max-width: 36em;
}
.hero-search-box {
  max-width: min(540px, 100%);
  margin: 0 auto;
  position: relative;
  width: 100%;
}
.hero-search-box input {
  width: 100%;
  padding: clamp(12px, 2.5vw, 16px) clamp(52px, 12vw, 60px) clamp(12px, 2.5vw, 16px) clamp(16px, 3vw, 20px);
  border-radius: var(--radius-full);
  border: 1px solid #e0e0e0;
  font-size: clamp(14px, 2vw, 16px);
  box-shadow: var(--shadow-sm);
  color: #212121;
}
.hero-search-box .search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: clamp(8px, 1.5vw, 10px) clamp(14px, 3vw, 20px);
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(12px, 2vw, 14px);
}

@media (max-width: 480px) {
  .hero-bg-mobile { display: block; }
  .hero-bg-tablet,
  .hero-bg-desktop,
  .hero-bg-large { display: none; }
  .hero-frame {
    aspect-ratio: 3 / 4;
    min-height: 160px;
    max-height: min(80vw, 320px);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero-bg-tablet { display: block; }
  .hero-bg-mobile,
  .hero-bg-desktop,
  .hero-bg-large { display: none; }
  .hero-frame {
    aspect-ratio: 4 / 3;
    min-height: 180px;
    max-height: min(70vw, 340px);
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  .hero-bg-desktop { display: block; }
  .hero-bg-mobile,
  .hero-bg-tablet,
  .hero-bg-large { display: none; }
  .hero-frame {
    aspect-ratio: 16 / 9;
    min-height: 200px;
    max-height: min(55vw, 360px);
  }
}

@media (min-width: 1280px) {
  .hero-bg-large { display: block; }
  .hero-bg-mobile,
  .hero-bg-tablet,
  .hero-bg-desktop { display: none; }
  .hero-below {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 24px);
    text-align: left;
  }
  .hero-subtitle {
    margin: 0;
    max-width: min(56%, 680px);
    flex: 1 1 440px;
  }
  .hero-search-box {
    margin: 0;
    flex: 0 0 min(520px, 100%);
    max-width: min(520px, 100%);
  }
}

@media (min-width: 992px) and (max-width: 1367px) {
  .hero-frame {
    aspect-ratio: 21 / 9;
    max-height: min(42.85vw, 520px);
    min-height: clamp(220px, 28vw, 340px);
  }
}

@media (min-width: 1368px) {
  .hero-frame {
    aspect-ratio: 21 / 9;
    max-height: min(42.85vw, 560px);
    min-height: clamp(240px, 26vw, 360px);
  }
}

/* Home banners & loop video — responsive, no border radius */
.home-banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2.5vw, 20px);
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.home-banner-item {
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}
.home-banner-link {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 21 / 9;
  min-height: clamp(140px, 28vw, 200px);
  max-height: clamp(200px, 36vw, 400px);
}
.home-banner-category {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}
.home-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-banner-bg-desktop { display: block; }
.home-banner-bg-tablet,
.home-banner-bg-mobile,
.home-banner-bg-large { display: none; }
@media (max-width: 480px) {
  .home-banner-link.has-mobile .home-banner-bg-desktop { display: none; }
  .home-banner-link.has-mobile .home-banner-bg-mobile { display: block; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .home-banner-link.has-tablet .home-banner-bg-desktop { display: none; }
  .home-banner-link.has-tablet .home-banner-bg-tablet { display: block; }
}
@media (min-width: 769px) and (max-width: 1279px) {
  .home-banner-link.has-large .home-banner-bg-desktop { display: none; }
  .home-banner-link.has-large .home-banner-bg-large { display: block; }
}
@media (min-width: 1280px) {
  .home-banner-bg-desktop { display: block; }
  .home-banner-bg-tablet,
  .home-banner-bg-mobile,
  .home-banner-bg-large { display: none; }
}
@media (min-width: 768px) {
  .home-banners {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1368px) {
  .home-banners {
    grid-template-columns: 1fr;
  }
}
.home-banner-media,
.home-banner-link video,
.home-banner-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}
.home-banner-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px);
  background: linear-gradient(135deg, #FF6B35, #E55A24);
  color: #fff;
  text-align: center;
  border-radius: 0;
}
.home-banner-fallback h2 { font-size: clamp(1.25rem, 4vw, 2rem); margin-bottom: 8px; line-height: 1.2; }
.home-banner-fallback p { font-size: clamp(0.875rem, 2vw, 1rem); margin: 0; }

/* ===== CATEGORIES ===== */
.category-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--surface); border-radius: var(--radius-lg); padding: 12px 16px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: all .2s;
  scroll-snap-align: start; flex-shrink: 0; min-width: 80px;
}
.category-chip:hover, .category-chip.active { background: var(--primary); color: #fff; transform: translateY(-2px); }
.category-chip-icon { font-size: 28px; }
.category-chip-label { font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ===== ANDROID APP PROMO ===== */
.app-promo {
  background: linear-gradient(135deg, var(--secondary), #1a237e);
  padding: 40px; border-radius: var(--radius-lg); display: flex; align-items: center;
  gap: 32px; color: #fff; margin: 24px 0;
}
.app-promo-content { flex: 1; }
.app-promo-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.app-promo-subtitle { opacity: .8; margin-bottom: 20px; }
.app-download-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.app-download-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius); color: #fff; transition: all .2s;
}
.app-download-btn:hover { background: rgba(255,255,255,.25); color: #fff; }
.app-download-btn i { font-size: 24px; }
.app-download-btn-text .small { font-size: 10px; opacity: .8; }
.app-download-btn-text .big { font-size: 16px; font-weight: 700; }
.app-promo-img { width: 200px; flex-shrink: 0; }

/* ===== GPS TRACKING ===== */
.tracking-map { width: 100%; height: 400px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); }
.tracking-timeline { padding: 0; }
.timeline-item { display: flex; gap: 12px; padding-bottom: 20px; position: relative; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 30px; width: 2px; height: calc(100% - 10px); background: var(--border); }
.timeline-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; z-index: 1; }
.timeline-dot.done, .timeline-dot.delivered { background: var(--success); }
.timeline-dot.pending { background: var(--border); }
.timeline-content { flex: 1; }
.timeline-title { font-weight: 600; font-size: 14px; }
.timeline-time { font-size: 12px; color: #757575; margin-top: 2px; }

/* ===== CART ===== */
.cart-sidebar { position: fixed; right: -100%; top: 0; width: 380px; height: 100%; background: var(--surface); z-index: 1500; box-shadow: var(--shadow-lg); transition: right .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.cart-sidebar.open { right: 0; }
.mobile-nav-overlay#cart-overlay { z-index: 1490; }
.cart-sidebar#cart-sidebar { z-index: 1500; }
.cart-header { padding: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-footer { padding: 16px; border-top: 1px solid var(--border); background: var(--surface-2); }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; }
.cart-item-price { color: var(--primary); font-weight: 700; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--primary); background: none; color: var(--primary); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.qty-value { font-weight: 700; font-size: 14px; min-width: 20px; text-align: center; }

/* ===== RATING STARS ===== */
.stars { color: #FFC107; display: inline-flex; gap: 2px; font-size: 16px; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { font-size: 28px; color: #E0E0E0; cursor: pointer; }
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: #FFC107; }

/* ===== SECTION HEADERS ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 20px; font-weight: 700; color: var(--on-surface); }
.section-title::after { display: none; }

/* ===== PAGE HEADER ===== */
.page-header { background: var(--surface); padding: 20px 24px; margin-bottom: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.page-title { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.page-title i { color: var(--primary); }
.breadcrumb { display: flex; gap: 6px; font-size: 13px; color: #757575; margin-top: 4px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span::before { content: '/'; margin-right: 6px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.8); padding: 48px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; padding: 0 32px 40px; }
.footer-brand .logo-text { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 12px; display: block; }
.footer-brand .logo-text span { color: var(--primary); }
.footer-about { font-size: 14px; line-height: 1.7; opacity: .7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; transition: background .2s; }
.footer-social a:hover { background: var(--primary); }
.footer-col-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255,255,255,.65); }
.footer-contact-item i { color: var(--primary); font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.footer-app-badges { display: flex; gap: 10px; margin-top: 16px; }
.app-badge { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); border-radius: var(--radius); color: #fff; font-size: 12px; transition: background .2s; }
.app-badge:hover { background: rgba(255,255,255,.15); color: #fff; }
.app-badge i { font-size: 20px; }
.footer-bottom { padding: 16px 32px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ===== UTILS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.page-wrapper { padding: 24px 0 80px; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: #757575; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.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; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-0 { padding: 0; }
.hidden { display: none !important; }

/* Responsive layout utilities */
.grid-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.grid-sidebar-lg { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.grid-profile { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.profile-card-side { text-align: center; padding: 24px; min-width: 0; }
.stat-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.grid-auto-fill { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.filter-toolbar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: stretch; }
.filter-toolbar .input-group { flex: 1; min-width: 200px; }
.filter-toolbar .form-select { width: auto; }

/* ===== AUTH PAGES ===== */
body.auth-page {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.auth-card {
  background: var(--surface); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  width: 100%; max-width: 440px; overflow: hidden;
}
.auth-header {
  background: linear-gradient(135deg, var(--secondary), #0f3460);
  padding: 0; text-align: center;
}
.auth-subtitle { color: rgba(255,255,255,.7); font-size: 14px; padding: 12px 24px 20px; margin: 0; }
.auth-body { padding: 32px; }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-desc { color: #757575; font-size: 14px; margin-bottom: 24px; }
.auth-footer-link { text-align: center; margin-top: 20px; font-size: 14px; color: #757575; }
.auth-footer-link a { color: var(--primary); font-weight: 600; }
.auth-legal { text-align: center; margin-top: 8px; font-size: 12px; color: #9E9E9E; }
.auth-legal a { color: var(--primary); }

/* ===== PAGE HERO / FORMS ===== */
.page-hero { text-align: center; margin-bottom: 40px; }
.page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.page-hero p { font-size: 1rem; color: #757575; max-width: 500px; margin: 0 auto; }
.track-form { display: flex; gap: 10px; flex-wrap: wrap; }
.track-form .form-control { flex: 1; min-width: 0; }
.line-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.modal-md { max-width: 500px; }
.btn-add {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
  border: none; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.menu-item-row {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center;
}
.menu-item-row:last-child { border-bottom: none; }
.menu-item-img {
  width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.menu-item-img-placeholder {
  width: 72px; height: 72px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #FF6B35, #E55A24);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.food-card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: #757575; font-size: 11px; flex-wrap: wrap; }
.food-card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #424242; margin-left: 6px; }
.food-card-rating small { color: #757575; font-size: 10px; }
.food-theme-icon { font-size: 14px; color: #FFCA28; margin-left: auto; }
.food-card-actions { display:flex; gap:10px; align-items:center; margin-top:12px; }
.food-action-btn { background: rgba(255,107,53,.12); border:1px solid rgba(255,107,53,.25); color: var(--primary); border-radius:12px; width:42px; height:42px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition: all .2s ease; }
.food-action-btn:hover { background: rgba(255,107,53,.18); }
.food-action-btn.liked { color: #FF5252; border-color: rgba(255,82,82,.45); }
.food-like-count { margin-left:6px; font-size:13px; color: var(--on-surface); }
.food-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-icon.green { background: rgba(76,175,80,.1); color: var(--success); }
.contact-icon.blue { background: rgba(33,150,243,.1); color: var(--info); }
.faq-item { margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.faq-item summary {
  font-weight: 600; font-size: 14px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 8px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { font-size: 13px; color: #757575; margin-top: 8px; }
.header-toggle {
  width: 36px; height: 20px; appearance: none; -webkit-appearance: none;
  border-radius: 20px; cursor: pointer; position: relative; transition: background .3s; border: none;
}

/* ===== LOADER ===== */
.spinner { width: 36px; height: 36px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 32px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RIPPLE ===== */
.ripple { position: relative; overflow: hidden; }
.ripple::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(255,255,255,.4) 0%, transparent 70%); transform: scale(0); opacity: 0; transition: transform .3s, opacity .3s; }
.ripple:active::after { transform: scale(2); opacity: 1; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 72px; margin-bottom: 16px; opacity: .3; }
.empty-state-title { font-size: 20px; font-weight: 600; color: #424242; margin-bottom: 8px; }
.empty-state-text { color: #757575; font-size: 14px; max-width: 300px; margin: 0 auto; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--surface); border-radius: var(--radius-lg); max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: scale(.95); transition: transform .3s; }
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ===== TABS ===== */
.nav-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; gap: 0; overflow-x: auto; scrollbar-width: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab { padding: 12px 20px; font-size: 14px; font-weight: 600; color: #757575; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; white-space: nowrap; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.nav-tab:hover { color: var(--primary); }
.nav-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #BDBDBD; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 0 24px 36px; }
  .panel-content { padding: 20px; }
  /* Ensure hamburger/menu icon is visible on tablet and smaller screens */
  .hamburger { display: flex; }
}
.panel-location-blocks { display: flex; flex-direction: column; }
@media (max-width: 768px) {
  .panel-location-blocks .panel-location-pref-card { order: -1; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-nav { display: none; }
  .header-search { display: none; }
  .header-panel-badge { display: none; }
  .header-bar { padding: 0 10px; gap: 8px; }
  .header-logo { flex: 1; min-width: 0; }
  .header-logo-text { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { gap: 4px; flex-shrink: 0; }
  .header-actions .btn-sm { padding: 6px 10px; font-size: 12px; }
  .header-actions .btn-register { display: none; }
  .header-availability span { display: none; }
  .panel-sidebar { display: none; }
  .panel-wrapper { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 12px); }
  .panel-content { max-width: 100%; width: 100%; padding: 16px; flex: 1 1 auto; }
  .bottom-nav {
    display: flex;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: auto;
  }
  .bottom-nav-items { height: var(--bottom-nav-height); width: 100%; }
  .page-wrapper { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 20px); }
  .site-footer { margin-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px)); }
  .home-banner-link {
    aspect-ratio: 16 / 9;
    min-height: clamp(130px, 32vw, 180px);
    max-height: clamp(180px, 42vw, 280px);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 0 16px 32px; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 16px; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  .app-promo { flex-direction: column; text-align: center; padding: 24px 16px; }
  .app-promo-img { display: none; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .restaurant-grid { grid-template-columns: 1fr; }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-sidebar { width: 100%; max-width: 100vw; }
  .page-header { padding: 16px; margin-bottom: 16px; }
  .page-title { font-size: 18px; flex-wrap: wrap; }
  .section-header { flex-wrap: wrap; gap: 8px; }
  .section-title { font-size: 17px; }
  .card-header { flex-wrap: wrap; gap: 8px; }
  .card-body { padding: 16px; }
  .tracking-map { height: 260px; }
  .grid-cols-2,
  .grid-sidebar,
  .grid-sidebar-lg,
  .grid-profile { grid-template-columns: 1fr; }
  .track-form { flex-direction: column; }
  .track-form .btn { width: 100%; }
  .auth-header { padding: 24px 20px 20px; }
  .auth-body { padding: 24px 20px; }
  .auth-logo { font-size: 18px; }
  .auth-logo .site-logo,
  .site-logo-auth { max-width: min(280px, 90vw); max-height: 180px; }
  .mobile-nav-drawer .drawer-header .site-logo-wrap,
  #nav-drawer .drawer-header .site-logo-wrap,
  #panel-drawer .drawer-header .site-logo-wrap,
  #vendor-drawer .drawer-header .site-logo-wrap,
  #courier-drawer .drawer-header .site-logo-wrap,
  #mgr-drawer .drawer-header .site-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    padding: 0;
  }
  .mobile-nav-drawer .drawer-header .site-logo,
  .site-logo-drawer,
  #nav-drawer .drawer-header .site-logo,
  #panel-drawer .drawer-header .site-logo,
  #vendor-drawer .drawer-header .site-logo,
  #courier-drawer .drawer-header .site-logo,
  #mgr-drawer .drawer-header .site-logo {
    width: auto;
    max-width: 220px;
    max-height: 56px;
    height: auto;
    object-fit: contain;
  }
  .footer-logo .site-logo,
  .site-logo-footer {
    width: 180px;
    max-width: min(180px, 94vw);
  }
  .page-hero { margin-bottom: 32px; }
  .table th, .table td { padding: 10px 12px; font-size: 13px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; min-width: 120px; }
  .profile-card-side { width: 100%; }
  .grid-auto-fill { grid-template-columns: 1fr; }
  .filter-toolbar .input-group,
  .filter-toolbar .form-select { flex: 1 1 100%; width: 100%; min-width: 0; }
  .modal { max-width: 100%; margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; align-self: flex-end; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .fab { bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 16px); }
}
@media (max-width: 480px) {
  .header-bar { padding: 0 8px; }
  .header-logo-text { font-size: 15px; max-width: 110px; }
  .header-actions .btn-header-login,
  .header-actions .btn-header-logout { display: none; }
  .menu-item-row { flex-wrap: wrap; }
  .menu-item-img, .menu-item-img-placeholder { width: 64px; height: 64px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .stat-cards.cols-3 { grid-template-columns: 1fr; }
  .food-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .food-card-img, .food-card-img-placeholder { height: 110px; }
  .home-banner-link {
    aspect-ratio: 4 / 3;
    min-height: 140px;
    max-height: 220px;
  }
  .stat-card { padding: 14px; gap: 12px; }
  .stat-icon { width: 44px; height: 44px; font-size: 20px; }
  .stat-value { font-size: 20px; }
  .auth-body { padding: 20px 16px; }
  .grid-cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-cols-2 { grid-template-columns: 1fr; }
}


