/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FFF8F4;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
header .inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.5px;
}
.logo span { color: #f5a623; }
.logo i { font-size: 1.8rem; }
.header-actions { display: flex; gap: .75rem; align-items: center; }

/* ── Cart Button ── */
.cart-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  position: relative;
  padding: 6px 10px;
  transition: transform .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cart-btn:hover { transform: scale(1.1); }
.cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  background: #e74c3c;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(231,76,60,.4);
}

/* ── Cart Sidebar ── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
}
.cart-overlay.show { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.1);
}
.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #ebe3dc;
}
.cart-header h3 { font-size: 1.15rem; font-weight: 700; color: #1a1a2e; }
.cart-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f0ebe6;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.cart-close:hover { background: #e2d8d0; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-empty {
  text-align: center;
  color: #aaa;
  padding: 3rem 0;
  font-size: .9rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: .85rem 0;
  border-bottom: 1px solid #f5f0eb;
}
.cart-item img, .cart-item-img-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  background: #f0ebe6;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #bbb;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .85rem; font-weight: 600; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: .8rem; color: #888; margin-top: 2px; }
.cart-item-qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #e0d6cf;
  border-radius: 6px;
  background: #faf8f6;
  color: #555;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.cart-item-qty button:hover { border-color: #f5a623; color: #f5a623; }
.cart-item-qty span { font-size: .85rem; font-weight: 600; min-width: 20px; text-align: center; color: #1a1a2e; }
.cart-item-remove {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  transition: color .2s;
  flex-shrink: 0;
}
.cart-item-remove:hover { color: #e74c3c; }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #ebe3dc;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
}
.cart-total { font-size: 1.3rem; font-weight: 800; color: #e74c3c; }

.cart-footer .btn-order { margin: 0; }

/* ── Add to Cart Button on Cards ── */
.btn-cart {
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #1a1a2e;
  font-weight: 700;
  font-size: .7rem;
  padding: .3rem .55rem;
  border-radius: 6px;
  border: none;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .btn-cart { font-size: .65rem; padding: .25rem .45rem; }
}
.btn-cart:hover {
  box-shadow: 0 3px 8px rgba(245,166,35,.35);
  transform: translateY(-1px);
}
.btn-cart:active { transform: scale(.95); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  background: linear-gradient(135deg, #f5a623, #f7c948);
}
.btn:active { transform: scale(.96); }

.btn-primary {
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #1a1a2e;
  box-shadow: 0 4px 14px rgba(245,166,35,.35);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(245,166,35,.5); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.25);
}
.btn-outline:hover { border-color: #f5a623; background: rgba(245,166,35,.1); }

.btn-login {
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #1a1a2e;
  font-weight: 700;
  padding: .6rem 1.8rem;
  box-shadow: 0 4px 14px rgba(245,166,35,.3);
}
.btn-login:hover { box-shadow: 0 6px 24px rgba(245,166,35,.45); transform: translateY(-1px); }

.btn-download {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.25);
  padding: .6rem 1rem;
  font-size: .82rem;
  text-decoration: none;
}
.btn-download:hover { border-color: #f5a623; background: rgba(245,166,35,.1); transform: translateY(-1px); }

.btn-order {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: .8rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(231,76,60,.3);
}
.btn-order:hover { box-shadow: 0 6px 20px rgba(231,76,60,.45); transform: translateY(-1px); }

.btn-danger {
  background: #e74c3c;
  color: #fff;
  padding: .4rem .8rem;
  border-radius: 8px;
  font-size: .75rem;
}
.btn-danger:hover { background: #c0392b; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: #fff;
  padding: 4rem 2rem 5rem;
  text-align: center;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #FFF8F4;
  clip-path: ellipse(70% 100% at 50% 100%);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -1px; }
.hero h1 span { color: #f5a623; }
.hero p { margin-top: 1rem; font-size: 1.1rem; opacity: .8; max-width: 600px; margin-inline: auto; line-height: 1.7; }
.hero .count-badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .4rem 1.2rem;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.3);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
}

/* ── Main section ── */
.menu-section {
  max-width: 1280px;
  margin: -1rem auto 3rem;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-header h2 { font-size: 1.5rem; font-weight: 700; color: #1a1a2e; }
.section-header h2 span { color: #e74c3c; }

.filter-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: .4rem 1.2rem;
  border: 2px solid #e0d6cf;
  border-radius: 50px;
  background: transparent;
  font-family: inherit;
  font-weight: 500;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
  color: #666;
}
.filter-btn.active, .filter-btn:hover {
  border-color: #f5a623;
  background: rgba(245,166,35,.1);
  color: #1a1a2e;
}

/* ── Food Grid ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1200px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr; }
}

/* ── Food Card ── */
.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #f0ebe6;
}
.card-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #f0ebe6, #e2d8d0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #bbb;
}
.card-body {
  padding: .9rem .9rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-category {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f5a623;
  margin-bottom: .25rem;
}
.card-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: #1a1a2e;
  line-height: 1.3;
}
.card-desc {
  font-size: .78rem;
  color: #777;
  line-height: 1.4;
  margin-bottom: .75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a2e;
  flex-shrink: 0;
}
.card-price::before { content: '$'; font-size: .75rem; font-weight: 600; color: #888; margin-right: 1px; }

.card-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.card-actions .btn-order { flex: 1; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  z-index: 999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.modal-header h3 { font-size: 1.3rem; font-weight: 700; }
.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f0ebe6;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: #e2d8d0; }

/* ── Form ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .4rem;
  color: #333;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid #e0d6cf;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  transition: border .2s;
  background: #faf8f6;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: #f5a623;
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: .75rem; color: #999; margin-top: .3rem; }

/* ── Admin Card Footer ── */
.admin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border-top: 1px solid #f0ebe6;
  padding-top: 12px;
  margin-top: auto;
}
.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Empty state ── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { color: #666; margin-bottom: .5rem; }
.empty-state p { font-size: .9rem; }

/* ── Dashboard Layout ── */
.dashboard-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  width: 250px;
  height: 100%;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, width .3s;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,.15);
}
.sidebar-header h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  padding: 16px 10px;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-nav ul { list-style: none; }
.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 4px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: all .2s;
  margin-bottom: 2px;
  cursor: pointer;
}
.sidebar-nav ul li a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.sidebar-nav ul li a.active {
  background: rgba(245,166,35,.1);
  color: #f5a623;
  border-left-color: #f5a623;
}
.sidebar-nav ul li a.logout-link {
  color: #e74c3c;
}
.sidebar-nav ul li a.logout-link:hover {
  background: rgba(231,76,60,.1);
  color: #e74c3c;
}
.nav-icon {
  width: 22px;
  text-align: center;
  font-size: 1rem;
}
.sidebar-nav ul li a { position: relative; }
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.pending-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #e74c3c !important;
  color: #fff !important;
  font-size: .62rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(231,76,60,.4);
  animation: blink-dot 1.2s ease-in-out infinite;
  pointer-events: none;
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  background: #FFF8F4;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-bar h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 300;
  padding: 4px;
}
.profile-dropdown.show { display: block; }
.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background .2s;
}
.profile-dropdown a:hover {
  background: #f5f0eb;
}

.content-area {
  padding: 25px 30px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

/* ── Sidebar Overlay (mobile) ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.4);
  z-index: 98;
}
.sidebar-overlay.show { display: block; }

/* ── Mobile Toggle ── */
.toggle-btn {
  display: none;
  background: #f0ebe6;
  border: none;
  color: #1a1a2e;
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.toggle-btn:hover {
  background: #e2d8d0;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ebe3dc;
}
.page-info {
  font-size: .85rem;
  color: #888;
  font-weight: 500;
}
.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid #e0d6cf;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  padding: 0 8px;
}
.page-btn:hover:not(:disabled):not(.active) {
  border-color: #f5a623;
  color: #f5a623;
}
.page-btn.active {
  background: linear-gradient(135deg, #f5a623, #f7c948);
  border-color: #f5a623;
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(245,166,35,.25);
}
.page-btn:disabled {
  opacity: .3;
  cursor: default;
}
.page-dots {
  padding: 0 4px;
  color: #aaa;
  font-size: .85rem;
  letter-spacing: 2px;
}

/* ── Sidebar thin scrollbar ── */
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-track { background: rgba(255,255,255,.03); }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* ── Profile Picture ── */
.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  transition: box-shadow .2s;
  box-shadow: 0 2px 8px rgba(245,166,35,.3);
}
.profile-pic:hover { box-shadow: 0 4px 16px rgba(245,166,35,.5); }

/* ── View Users Table ── */
.users-table { width:100%; border-collapse:collapse; font-size:.82rem; }
.users-table th { text-align:left; padding:.6rem .5rem; color:#888; font-weight:600; font-size:.7rem; text-transform:uppercase; letter-spacing:.5px; border-bottom:2px solid #ebe3dc; }
.users-table td { padding:.65rem .5rem; border-bottom:1px solid #f5f0eb; }
.users-table .action-btn { background:none; border:none; cursor:pointer; font-size:.9rem; padding:6px 8px; transition:transform .15s; display:inline-flex; align-items:center; justify-content:center; border-radius:6px; }
.users-table .action-btn:hover { transform:scale(1.15); background:rgba(0,0,0,.03); }
.users-table .action-btn.edit { color:#f5a623; }
.users-table .action-btn.delete { color:#e74c3c; }
@media (max-width: 768px) {
  .users-table { font-size:.78rem; }
  .users-table td, .users-table th { padding:.5rem .35rem; }
  .users-table .action-btn { font-size:.82rem; padding:5px 6px; }
}
@media (max-width: 480px) {
  .users-table,
  .users-table thead,
  .users-table tbody,
  .users-table tr,
  .users-table td,
  .users-table th { display:block; }
  .users-table thead { display:none; }
  .users-table tr { padding:.6rem .3rem; border-bottom:1px solid #f0ebe6; }
  .users-table tr:last-child { border-bottom:none; }
  .users-table td {
    padding:.2rem 0;
    border:none;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .users-table td:before {
    content:attr(data-label);
    font-size:.65rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:#bbb;
    min-width:55px;
    flex-shrink:0;
  }
  .users-table td:last-child:before { display:none; }
  .users-table td:last-child { justify-content:flex-start; margin-top:4px; }
}

/* ── Site Toggle (on-site / delivery) ── */
.site-toggle {
  display: flex;
  gap: .75rem;
  margin-top: .3rem;
}
.site-option {
  flex: 1;
  cursor: pointer;
}
.site-option input { display: none; }
.site-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: .7rem 1rem;
  border: 2px solid #e0d6cf;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 600;
  color: #888;
  transition: all .2s;
  text-align: center;
  background: #faf8f6;
}
.site-option input:checked + .site-label {
  border-color: #f5a623;
  background: rgba(245,166,35,.1);
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(245,166,35,.15);
}
.site-option:hover .site-label {
  border-color: #d4c9c0;
  background: #fff;
}

/* ── Login Modal ── */
.login-modal .form-group { margin-bottom: 1.25rem; }
.login-modal .form-group label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .4rem;
  color: #333;
}
.login-modal .form-group input {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid #e0d6cf;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  transition: border .2s;
  background: #faf8f6;
  outline: none;
}
.login-modal .form-group input:focus {
  border-color: #f5a623;
  background: #fff;
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast {
  padding: .85rem 1.5rem;
  border-radius: 12px;
  color: #fff;
  font-weight: 500;
  font-size: .9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  animation: toastIn .3s ease;
}
.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }
.toast.info { background: #0f3460; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ── Live Order Feed ── */
.live-feed {
  background: #fff;
  border-top: 1px solid #ebe3dc;
  border-bottom: 1px solid #ebe3dc;
  padding: 1.25rem 2rem;
}
.live-feed-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.live-feed h4 {
  font-size: .85rem;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-feed h4::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}
.feed-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: #555;
  padding: 4px 0;
  border-bottom: 1px solid #f5f0eb;
}
.feed-item:last-child { border-bottom: none; }
.feed-item .feed-time {
  font-size: .72rem;
  color: #bbb;
  font-weight: 500;
  flex-shrink: 0;
  margin-left: 1rem;
}
@media (max-width: 640px) {
  .live-feed { padding: 1rem; }
  .feed-item { font-size: .75rem; flex-direction: column; align-items: flex-start; gap: 2px; }
  .feed-item .feed-time { margin-left: 0; font-size: .68rem; }
}

/* ── Footer ── */
footer {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 2rem 1.5rem;
  margin-top: auto;
}
footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
footer h4 {
  color: #f5a623;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
footer p, footer a {
  font-size: .85rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  display: block;
}
footer a:hover { color: #f5a623; }
footer .footer-bottom {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-social {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: .6rem;
  margin-top: .5rem;
  justify-content: start;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: background .2s;
  color: rgba(255,255,255,.7);
  text-decoration: none;
}
.footer-social a:hover { background: rgba(245,166,35,.2); color: #f5a623; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .toggle-btn { display: flex; position: fixed; top: 12px; left: 12px; z-index: 999; }
  .sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    z-index: 99;
    height: 100vh;
  }
  .sidebar.active { left: 0; }
  .main-content { margin-left: 0 !important; }
  .top-bar { padding: 12px 16px; }
  .top-bar h2 { font-size: 1.05rem; }
  .content-area { padding: 16px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .modal { padding: 1.5rem; }
  footer { padding: 2rem 1rem 1rem; }
  footer .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .pagination { flex-direction: column; align-items: center; text-align: center; }
  .page-btn { min-width: 32px; height: 32px; font-size: .8rem; }
}

@media (max-width: 640px) {
  header { padding: .75rem 1rem; }
  header .inner { flex-direction: column; align-items: stretch; }
  .logo { justify-content: center; font-size: 1.25rem; }
  .header-actions { justify-content: center; gap: .5rem; }
  .btn-login { padding: .45rem 1rem; font-size: .8rem; }
  .header-actions .btn-outline { font-size: .72rem !important; padding: .3rem .7rem !important; }
  .menu-section { padding: 0 1rem; }
  .menu-grid { gap: .75rem; }
  .hero { padding: 2rem 1rem 3rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: .9rem; }
  .hero .count-badge { font-size: .75rem; padding: .3rem 1rem; }
  .hero::after { height: 30px; }
  .section-header h2 { font-size: 1.2rem; }
  .filter-btn { font-size: .72rem; padding: .3rem .8rem; }
  .cart-sidebar { width: 100vw; right: -100vw; }
  .cart-header { padding: 1rem; }
  .cart-items { padding: .75rem 1rem; }
  .cart-footer { padding: 1rem; }
  .cart-item { gap: 8px; padding: .65rem 0; }
  .cart-item img, .cart-item-img-placeholder { width: 40px; height: 40px; }
  .cart-item-qty button { width: 24px; height: 24px; font-size: .8rem; }
  .profile-dropdown { right: 0; min-width: 160px; }
  .pagination { flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
  .page-btn { min-width: 30px; height: 30px; font-size: .75rem; }
  .page-info { font-size: .75rem; }
  footer .footer-inner { gap: 1.5rem; }
}
@media (max-width: 400px) {
  .menu-grid { gap: .6rem; }
  .card-img { height: 120px; }
  .card-img-placeholder { height: 120px; }
  .card-body { padding: .65rem .65rem .85rem; }
  .card-title { font-size: .82rem; }
  .card-desc { font-size: .7rem; -webkit-line-clamp: 1; }
  .card-price { font-size: .95rem; }
  .btn-cart { font-size: .6rem; padding: .2rem .4rem; }
  .cart-item-name { font-size: .78rem; }
  .hero { padding: 1.5rem .75rem 2rem; }
  .hero h1 { font-size: 1.2rem; }
  .hero p { font-size: .8rem; }
  .modal { padding: 1rem; }
  .modal-header h3 { font-size: 1rem; }
  .form-group input, .form-group textarea, .form-group select { padding: .55rem .75rem; font-size: .85rem; }
  .btn { padding: .5rem 1rem; font-size: .8rem; }
}
@media (max-width: 360px) {
  header { padding: .5rem .6rem; }
  .logo { font-size: 1rem; }
  .logo span { font-size: .8rem; }
  .btn-login { padding: .3rem .7rem; font-size: .7rem; }
  .cart-btn { font-size: 1.1rem; padding: 4px 6px; }
  .hero h1 { font-size: 1.1rem; }
  .hero p { font-size: .75rem; }
  .menu-section { padding: 0 .6rem; }
  .card-title { font-size: .75rem; }
  .card-desc { font-size: .65rem; -webkit-line-clamp: 1; }
  .card-price { font-size: .85rem; }
  .btn-cart { font-size: .55rem; padding: .15rem .35rem; }
  .section-header h2 { font-size: 1rem; }
  .filter-btn { font-size: .65rem; padding: .2rem .6rem; }
  .modal { padding: .75rem; }
  .modal-header h3 { font-size: .9rem; }
  .form-group { margin-bottom: .8rem; }
  .form-group input, .form-group textarea, .form-group select { padding: .45rem .65rem; font-size: .8rem; }
  .site-label { font-size: .75rem; padding: .5rem .6rem; }
  .top-bar { padding: 8px 10px; }
  .top-bar h2 { font-size: .85rem; }
  .content-area { padding: 10px; }
  .order-card { padding: .75rem; }
  .order-id { font-size: .7rem; padding: .15rem .4rem; }
  .badge { font-size: .6rem; padding: .2rem .5rem; }
  .users-table { font-size: .7rem; }
  .users-table td { padding: .3rem 0; }
  .users-table .action-btn { font-size: .7rem; padding: 3px 4px; }
}
