:root {
  --primary: #9B1B30;
  --primary-dark: #6B0F1A;
  --primary-light: #C41E3A;
  --gold: #C9A227;
  --gold-light: #E8C547;
  --charcoal: #1A1A1A;
  --charcoal-light: #2D2D2D;
  --cream: #FDF8F3;
  --cream-dark: #F5EDE3;
  --white: #FFFFFF;
  --text: #2C2C2C;
  --text-muted: #6B6B6B;
  --success: #2E7D32;
  --warning: #F9A825;
  --danger: #C62828;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Navbar */
.navbar-99 {
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  border-bottom: 1px solid rgba(201,162,39,0.2);
}
.navbar-99 .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white) !important;
  letter-spacing: 0.02em;
}
.navbar-99 .brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-top: -4px;
}
.navbar-99 .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
}
.navbar-99 .nav-link:hover, .navbar-99 .nav-link.active {
  color: var(--gold) !important;
}
.btn-primary-99 {
  background: var(--primary);
  color: white !important;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary-99:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(155,27,48,0.4);
}
.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold) !important;
  background: transparent;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  font-weight: 600;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--charcoal) !important;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Hero */
.hero-99 {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #3d0a12 50%, #1a1a1a 100%);
  overflow: hidden;
}
.hero-99::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23C9A227" opacity="0.15"/></svg>') repeat;
  background-size: 40px;
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 3rem 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Benefits */
.benefits-bar {
  background: var(--charcoal);
  color: white;
  padding: 1.5rem 0;
}
.benefit-item {
  text-align: center;
  padding: 0.5rem;
}
.benefit-item i {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.benefit-item strong { display: block; font-size: 0.95rem; }
.benefit-item span { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* Sections */
.section-99 {
  padding: 4.5rem 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.section-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Food cards */
.food-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.food-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.food-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-dark);
}
.food-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.food-card:hover .food-card-img img { transform: scale(1.06); }
.food-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}
.food-badge.veg { background: var(--success); }
.food-badge.bestseller { background: var(--gold); color: var(--charcoal); }
.food-card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.food-card-body h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.food-card-body .category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.food-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 0.8rem;
}
.food-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.food-price .current {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}
.food-price .old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.btn-add-cart {
  width: 100%;
  background: var(--charcoal);
  color: white;
  border: none;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-add-cart:hover {
  background: var(--primary);
}

/* Offer banner */
.offer-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.offer-banner .price-tag {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
}

/* Footer */
.footer-99 {
  background: var(--charcoal);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}
.footer-99 h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}
.footer-99 a:hover { color: var(--gold); }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.3rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 0;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  text-align: center;
}

/* Mobile bottom nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #eee;
  z-index: 1040;
  padding: 0.4rem 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.mobile-bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mobile-bottom-nav a.active, .mobile-bottom-nav a:hover {
  color: var(--primary);
}
.mobile-bottom-nav i { font-size: 1.25rem; }

@media (max-width: 991px) {
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
  .hero-99 { min-height: 70vh; }
}

/* Cart floating */
.floating-cart {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(155,27,48,0.4);
  z-index: 1030;
  font-size: 1.3rem;
}
.floating-cart .count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--charcoal);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* QR page */
.qr-welcome {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.qr-table-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

/* Status timeline */
.status-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
}
.status-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #e0e0e0;
  z-index: 0;
}
.status-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}
.status-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
}
.status-step.active .status-dot { background: var(--primary); }
.status-step.done .status-dot { background: var(--success); }
.status-step span { font-size: 0.75rem; color: var(--text-muted); }
.status-step.active span, .status-step.done span { color: var(--text); font-weight: 600; }

/* Admin sidebar */
.admin-sidebar {
  width: 260px;
  background: #111827;
  height: 100vh;
  max-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  color: #9CA3AF;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.admin-sidebar .brand {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: #111827;
  z-index: 2;
}
.admin-sidebar nav {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 2rem;
}
.admin-sidebar .brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #1F2937;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}
.admin-sidebar .nav-link {
  color: #9CA3AF;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background: #1F2937;
  color: white;
}
.admin-sidebar .nav-link i { width: 20px; text-align: center; }
.admin-main {
  margin-left: 260px;
  padding: 1.5rem;
  background: #F3F4F6;
  min-height: 100vh;
}
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-card .value { font-size: 1.75rem; font-weight: 700; color: #111827; }
.stat-card .label { font-size: 0.85rem; color: #6B7280; }
.badge-status {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-weight: 600;
}
.badge-NEW { background: #FEF3C7; color: #92400E; }
.badge-CONFIRMED { background: #DBEAFE; color: #1E40AF; }
.badge-PREPARING { background: #E0E7FF; color: #3730A3; }
.badge-READY { background: #D1FAE5; color: #065F46; }
.badge-COMPLETED { background: #D1FAE5; color: #065F46; }
.badge-CANCELLED { background: #FEE2E2; color: #991B1B; }

/* Kitchen KDS */
.kds-column {
  background: #1F2937;
  border-radius: 12px;
  padding: 1rem;
  min-height: 70vh;
}
.kds-column h5 { color: white; margin-bottom: 1rem; }
.kds-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.kds-card .order-num { font-weight: 700; font-size: 1.1rem; }
.kds-card .table-num { color: var(--primary); font-weight: 600; }

/* Utilities */
.text-gold { color: var(--gold) !important; }
.bg-cream { background: var(--cream); }
.rounded-99 { border-radius: var(--radius); }
.shadow-99 { box-shadow: var(--shadow); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }

/* Toast */
.toast-container { z-index: 1100; }

/* Print receipt */
@media print {
  body * { visibility: hidden; }
  .receipt-print, .receipt-print * { visibility: visible; }
  .receipt-print { position: absolute; left: 0; top: 0; width: 100%; }
  .no-print { display: none !important; }
}
