@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Lalezar&family=Outfit:wght@300;400;600;700&display=swap');

:root {
  /* Premium Dark Theme Palette */
  --bg: #060606;
  --surface: #121212;
  --surface-light: #1e1e1e;
  --border: #2a2a2a;
  --white: #ffffff;
  --gray: #b5b5b5;
  --gray-light: #444444;
  --accent: #ff4500; /* vibrant flame orange for Afghan grill */
  --accent-light: #ff6b33;
  --accent-hover: #ff571a;
  --accent-border: rgba(255, 69, 0, 0.3);
  
  --space-s: 16px;
  --space-m: 32px;
  --space-l: 64px;
  --space-xl: 128px;
  
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ─── COUNTDOWN SECTION ─── */
.countdown-section {
  padding: clamp(48px, 8vw, 100px) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 24px);
  flex-wrap: wrap;
}
.countdown-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(16px, 3vw, 28px) clamp(20px, 4vw, 36px);
  text-align: center;
  min-width: 80px;
  transition: border-color 0.3s;
}
.countdown-box:hover {
  border-color: var(--accent);
}
.countdown-value {
  font-family: 'Lalezar', cursive;
  font-size: clamp(36px, 6vw, 56px);
  color: var(--accent);
  display: block;
  line-height: 1;
}
.countdown-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 8px;
  font-weight: 600;
  display: block;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
.font-lalezar { font-family: 'Lalezar', cursive; }
.font-barlow { font-family: 'Barlow Condensed', sans-serif; }
.mb-s { margin-bottom: var(--space-s); }
.mb-m { margin-bottom: var(--space-m); }
.py-l { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.py-xl { padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(60px, 8vw, 120px); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-150%) skewX(-20deg);
  animation: shimmer-btn 3s infinite;
}

@keyframes shimmer-btn {
  0% { transform: translateX(-150%) skewX(-20deg); }
  20% { transform: translateX(200%) skewX(-20deg); }
  100% { transform: translateX(200%) skewX(-20deg); }
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 16px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-outline:hover {
  background: rgba(255, 69, 0, 0.1);
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* Menu Item Card */
.menu-card {
  background: linear-gradient(145deg, var(--surface) 0%, rgba(20,20,20,0.8) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s var(--ease), border-color 0.4s;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(255, 69, 0, 0.2);
  border-color: var(--accent);
}

.menu-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface-light);
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
  filter: brightness(0.95);
}

.menu-card:hover .menu-card-img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.menu-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

.menu-card-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1;
}

.menu-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

.menu-card-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Barlow Condensed', sans-serif;
}

.add-to-cart-btn {
  background: var(--accent);
  border: none;
  color: #111;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.2);
}

.add-to-cart-btn:hover {
  background: var(--white);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
  color: #111;
}

/* Cart Item */
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-light);
  padding: 4px 8px;
  border-radius: 4px;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}
.qty-btn:hover {
  color: var(--white);
}

/* Mobile Utilities */
.hide-mobile {
  display: flex;
}
.text-center-mobile {
  text-align: left;
}

@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
  .text-center-mobile { text-align: center; }
  .menu-grid { gap: 16px; }
}

@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; }
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: rgba(255, 255, 255, 0.95);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  animation: slideUp 0.3s var(--ease) forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .crm-sidebar {
    transform: translateX(-100%);
  }
  .crm-sidebar.open {
    transform: translateX(0);
  }
}

/* ── Skeleton Shimmer Loaders (GPU Optimized) ── */
@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-img {
  width: 100%;
  height: 200px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.skeleton-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-text-title {
  height: 24px;
  width: 60%;
  border-radius: 100px; /* Insta-like pill shape */
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.skeleton-text-desc {
  height: 14px;
  width: 100%;
  border-radius: 100px; /* Insta-like pill shape */
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.skeleton-text-desc.short {
  width: 80%;
}

.skeleton-img::after,
.skeleton-text-title::after,
.skeleton-text-desc::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.5s infinite ease-in-out;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  padding-top: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('/halal-tikka-kabob-los-angeles.webp') center/cover no-repeat;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.75);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  max-width: 900px;
}


/* --- TAG --- */
.tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  border-radius: 2px;
}

/* --- MENU SECTION --- */
.menu-section { padding: clamp(48px, 8vw, 100px) 0; }
.section-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 60px);
}
.section-header h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--gray);
  font-size: 14px;
  letter-spacing: 1px;
}

/* --- CATEGORY PILLS --- */
.cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 40px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.category-pill {
  white-space: nowrap;
  padding: 10px 24px;
  background: transparent;
  border: 2px solid transparent;
  border-bottom: 2px solid var(--border);
  color: var(--gray);
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0;
}
.category-pill:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}
.category-pill.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- CART FAB --- */
.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--white);
  color: var(--bg);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* --- HERITAGE & TRAILER BG --- */
.heritage { padding: clamp(48px, 8vw, 100px) 0; border-top: 1px solid var(--border); }

.trailer-bg {
  background: url('/halal-afghan-food-truck-los-angeles.webp') center/cover no-repeat;
  position: relative;
}
.trailer-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.85); /* dark overlay so text is readable */
  z-index: 1;
}
.trailer-bg .container {
  position: relative;
  z-index: 2;
}

.halal-bg {
  background: url('/halal-afghan-restaurant-reseda.webp') top left/400px repeat;
  position: relative;
}
.halal-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.94); /* very dark overlay for a subtle watermark effect */
  z-index: 1;
}
.halal-bg .container {
  position: relative;
  z-index: 2;
}

.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.heritage-cities { text-align: right; }
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  margin-top: 30px;
}
.stat { text-align: center; flex: 1; min-width: 80px; }
.stat-val { font-family: 'Lalezar'; font-size: clamp(22px, 4vw, 28px); color: var(--accent); }
.stat-label { font-size: 11px; color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 4px; }

/* --- FOOTER --- */
/* Delivery Section */
.delivery-section {
  padding: clamp(60px, 8vw, 100px) 20px;
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
}
.delivery-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}
.delivery-desc {
  color: var(--gray);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 600px;
  margin: 0 auto 40px;
}
.delivery-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-delivery {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--surface);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-delivery:hover {
  background: var(--white);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn-delivery svg {
  transition: transform 0.3s;
}
.btn-delivery:hover svg {
  transform: scale(1.1);
}

.footer {
  padding-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--border);
}

/* Item Details Modal Specifics */
/* ── Premium Kiosk-Style "Add to Cart" Modal ── */
.item-modal {
  display: flex;
  flex-direction: column;
  max-width: 900px !important;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  position: relative;
}
@media (min-width: 768px) {
  .item-modal {
    flex-direction: row;
    height: 600px;
  }
}
.item-modal-left {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  min-height: 250px;
}
.item-modal-right {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  position: relative;
  max-height: 100%;
}
.item-modal-scrollable {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}
.item-modal-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -10px 20px rgba(0,0,0,0.2);
  z-index: 5;
}

/* Kiosk Cards (Variants & Addons) */
.kiosk-option-group {
  margin-bottom: 24px;
}
.kiosk-option-title {
  font-family: 'Barlow Condensed';
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.kiosk-option-title span {
  font-size: 13px;
  color: var(--gray);
  font-family: 'Outfit';
  text-transform: none;
  font-weight: 400;
}
.kiosk-option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.kiosk-card {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.02);
  user-select: none;
}
.kiosk-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 69, 0, 0.05);
}
.kiosk-card-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 16px;
}
.kiosk-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}
.kiosk-card-price {
  font-family: 'Barlow Condensed';
  font-size: 16px;
  color: var(--gray);
  font-weight: 600;
}
.kiosk-card:has(input:checked) .kiosk-card-price {
  color: var(--accent);
}

.custom-radio, .custom-checkbox {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray);
  border-radius: 50%;
  margin: 0;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.custom-checkbox {
  border-radius: 6px;
}
.custom-radio:checked, .custom-checkbox:checked {
  border-color: var(--accent);
}
.custom-radio:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
}
.custom-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-size: 16px;
  font-weight: bold;
}

/* ── Meal Upgrade Massive Block ── */
.kiosk-meal-upgrade {
  margin: 32px 0;
  border: 3px solid transparent;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(255, 165, 0, 0.05));
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}
.kiosk-meal-upgrade::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 3px solid rgba(255, 69, 0, 0.3);
  border-radius: 16px;
  transition: all 0.3s;
}
.kiosk-meal-upgrade:has(input:checked)::before {
  border-color: var(--accent);
}
.kiosk-meal-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 69, 0, 0.15);
}
.kiosk-meal-upgrade:has(input:checked) {
  box-shadow: 0 10px 30px rgba(255, 69, 0, 0.25);
  transform: translateY(-2px);
}
.kiosk-meal-content {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.kiosk-meal-icon {
  font-size: 56px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.kiosk-meal-text {
  flex: 1;
}
.kiosk-meal-title {
  font-family: 'Barlow Condensed';
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.kiosk-meal-desc {
  font-size: 15px;
  color: var(--white);
  margin-bottom: 12px;
  opacity: 0.9;
}
.kiosk-meal-price-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.4);
}
.kiosk-meal-checkbox-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.kiosk-meal-upgrade:has(input:checked) .kiosk-meal-checkbox-wrapper {
  background: var(--accent);
  border-color: var(--accent);
}
.kiosk-meal-checkbox-wrapper::after {
  content: '✓';
  color: transparent;
  font-size: 24px;
  font-weight: bold;
}
.kiosk-meal-upgrade:has(input:checked) .kiosk-meal-checkbox-wrapper::after {
  color: white;
}
.kiosk-hidden-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.footer-label {
  font-family: 'Barlow Condensed';
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-link {
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--accent);
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s ease;
}
.social-icon:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 12px;
  color: var(--gray);
  background: var(--bg);
}
.footer-bottom a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: var(--accent);
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.social-links a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.social-links a:hover {
  color: var(--accent);
}

/* --- INPUT --- */
#customer-name:focus {
  border-color: var(--accent) !important;
  outline: none;
}

/* --- BREAKPOINT: TABLET (max 900px) --- */
@media (max-width: 900px) {

  .hero-content { padding: 48px 24px 60px; }
  .heritage-grid { grid-template-columns: 1fr; gap: 32px; }
  .heritage-cities { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .social-links { flex-direction: row; flex-wrap: wrap; gap: 12px; }
}

/* --- BREAKPOINT: MOBILE (max 640px) --- */
@media (max-width: 640px) {
  .hero { 
    min-height: 100svh; 
    padding-top: 72px; 
    background-position: 80% bottom !important; 
  }
  .hero::before { background: rgba(6, 6, 6, 0.75); }
  .hero-content { padding: 40px 20px 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .social-icons { justify-content: center !important; }
  .footer-bottom .container { flex-direction: column; gap: 16px; text-align: center; }
  .social-links { align-items: center; }
  .stat-row { justify-content: center; }
  .menu-section { padding: 48px 0; }
  .heritage { padding: 48px 0; }
  .footer { padding: 40px 0; }
  .cat-scroll { margin-bottom: 24px; }
}

/* --- BREAKPOINT: SMALL PHONES (max 400px) --- */
@media (max-width: 400px) {
  .hero-content { padding: 32px 16px 40px; }
  .tag { font-size: 10px; padding: 5px 12px; letter-spacing: 1.5px; }
  .cart-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}

/* ========================================= */
/* CRM SPECIFIC STYLES                       */
/* ========================================= */

.crm-body {
  background: var(--bg);
  color: var(--white);
  height: 100vh;
  overflow: hidden;
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
}

.crm-layout {
  display: flex;
  height: 100vh;
}

/* Sidebar Nav */
.crm-nav {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.crm-nav-header {
  padding: var(--space-m);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.crm-nav-links {
  padding: var(--space-s) 0;
  display: flex;
  flex-direction: column;
}

.crm-nav-item {
  background: none;
  border: none;
  color: var(--gray);
  padding: 16px var(--space-m);
  text-align: left;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.crm-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.crm-nav-item.active {
  background: rgba(255, 69, 0, 0.1);
  color: var(--accent);
  border-left-color: var(--accent);
}

/* Main Content */
.crm-main {
  flex: 1;
  padding: var(--space-m) clamp(20px, 4vw, 48px);
  overflow-y: auto;
  min-width: 0;
}

.crm-view-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-s);
}

.crm-subnav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}

.crm-header-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Layout Utilities */
.crm-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}

.crm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-s);
}

/* Components */
.crm-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 4px;
}

.stat-title {
  color: var(--gray);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}

.crm-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 4px;
}

.crm-panel-title {
  font-size: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.crm-feed-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--gray);
}
.crm-feed-item strong { color: var(--white); }
.crm-feed-item:last-child { border-bottom: none; }

.crm-list-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.crm-list-item:last-child { border-bottom: none; }

/* Table */
.crm-table-container {
  overflow-x: auto;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
}

.crm-table th {
  text-align: left;
  padding: 16px 12px;
  color: var(--gray);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.crm-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.crm-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Forms & Inputs */
.crm-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.crm-input, .crm-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 10px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
}

.crm-input:focus, .crm-select:focus {
  border-color: var(--accent);
  outline: none;
}

.crm-form-group {
  margin-bottom: 16px;
}

.crm-form-group label {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
}

/* Slide Over */
.crm-slide-over {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.3s var(--ease);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.crm-slide-over.open { right: 0; }

.crm-slide-over-header {
  padding: var(--space-m);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crm-slide-over-content {
  flex: 1;
  padding: var(--space-m);
  overflow-y: auto;
}

/* Modals */
.crm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.crm-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.crm-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 500px;
  border-radius: 4px;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.crm-modal.open .crm-modal-box {
  transform: translateY(0);
}

.crm-modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crm-modal-content {
  padding: 24px;
}

.crm-btn-icon {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 24px;
  cursor: pointer;
}

/* Badges */
.crm-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
}

/* Reviews Grid */
.crm-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Responsive CRM Mobile Drawer Nav */
@media (min-width: 769px) {
  .mobile-only-actions {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #mobile-menu-btn {
    display: block !important;
  }
  
  .hide-on-mobile {
    display: none !important;
  }
  
  .mobile-only-actions {
    display: flex !important;
  }

  .crm-layout {
    flex-direction: column;
  }
  
  .crm-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -280px;
    width: 280px;
    z-index: 1002;
    background: var(--surface);
    transition: left 0.3s ease;
    border-right: 1px solid var(--border);
    overflow-y: auto;
  }
  
  .crm-nav.open {
    left: 0;
  }
  
  .crm-main {
    padding: 16px;
  }
  
  .crm-view-title {
    font-size: clamp(18px, 5vw, 28px);
  }
  
  /* Touch Targets */
  .btn-primary, .btn-outline, .btn-small, .tab-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .crm-input, .crm-select {
    min-height: 44px;
  }
  
  /* Mobile Stacked Tables */
  .crm-table thead {
    display: none;
  }
  
  .crm-table tr {
    display: block;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
  }
  
  .crm-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    padding: 8px 16px;
  }
  
  .crm-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
    margin-right: 16px;
  }
  
  .crm-table td:last-child {
    border-bottom: none;
  }
  
  /* Modals */
  .crm-modal-box {
    width: 90vw !important;
    max-height: 90vh !important;
    display: flex;
    flex-direction: column;
  }
  
  .crm-modal-content {
    overflow-y: auto;
    flex: 1;
  }


  .crm-dashboard-grid, .crm-stats-grid, .crm-reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .crm-filters {
    flex-direction: column;
  }
  
  .crm-input, .crm-select {
    max-width: 100%;
  }

  .crm-slide-over {
    width: 100vw;
    right: -100vw;
  }

  /* ─── DEALS & COMBOS: Force single-column on mobile ─── */
  #deals-view > .crm-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  /* ─── ANALYTICS: Stack the two panels ─── */
  #analytics-view > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* ─── PICKUP SETTINGS: All inline 2-column grids go single-column ─── */
  #pickup-view div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* ─── UNIT ECONOMICS: Subnav scrollable on mobile ─── */
  .crm-subnav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-bottom: 12px !important;
    scrollbar-width: none;
  }
  .crm-subnav::-webkit-scrollbar {
    display: none;
  }
  .crm-subnav .btn-outline {
    flex-shrink: 0;
    font-size: 12px !important;
    padding: 8px 12px !important;
  }
  
  #eco-tab-profit > div[style*="grid-template-columns: 1fr 2fr"],
  #eco-tab-labor > div[style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
  
  #eco-tab-profit .crm-stats-grid {
    grid-template-columns: 1fr !important;
  }
  
  #recipe-editor-container div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  #eco-tab-delivery div[style*="display: flex; gap: 16px; align-items: flex-end;"] {
    flex-wrap: wrap;
  }

  /* ─── BLOG EDITOR: Stack title/slug row ─── */
  #blog-form > div[style*="display: flex; gap: 16px"] {
    flex-direction: column !important;
  }
  /* Quill editor shorter on mobile */
  #quill-editor {
    height: 250px !important;
  }

  /* ─── MARKETING VIEW: Pop-up & TV promo button/URL flex rows ─── */
  #popup-editor div[style*="display: flex; gap: 16px"],
  #tv-promo-editor div[style*="display: flex; gap: 16px"] {
    flex-direction: column !important;
  }

  /* ─── DEALS FORM: All inline 2-col grids to single column ─── */
  #deal-form div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* ─── MENU MANAGEMENT: Forms need full width ─── */
  #menu-manage-view form input,
  #menu-manage-view form textarea,
  #menu-manage-view form select {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* ─── INVENTORY STAT CARDS: Stack on small screens ─── */
  #inventory-view > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* ─── RECEIPT SLIDE-OVER: Full screen on mobile ─── */
  #receipt-slide-over {
    max-width: 100vw !important;
  }

  /* ─── HEADER-ACTION: Stack title and button on very narrow ─── */
  .crm-header-action {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* ─── LOYALTY TIER SETTINGS: Stack form groups ─── */
  .crm-tier-settings {
    flex-direction: column !important;
  }
  .crm-tier-settings .crm-form-group {
    width: 100% !important;
  }

  /* ─── ORDER CARDS: Responsive adjustments ─── */
  .order-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .order-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .order-actions button {
    flex: 1;
    min-width: 100px;
  }

  /* ─── EDIT MENU MODAL: Full-width fields ─── */
  #edit-menu-modal .crm-modal-content input,
  #edit-menu-modal .crm-modal-content textarea,
  #edit-menu-modal .crm-modal-content select {
    width: 100% !important;
    box-sizing: border-box;
  }
  #edit-menu-modal div[style*="display: flex; gap"] {
    flex-direction: column !important;
  }
  #edit-menu-modal div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* ─── SETTINGS VIEW: Full-width on mobile ─── */
  #settings-view > div {
    max-width: 100% !important;
  }

  /* ─── ADD INVENTORY MODAL: Stack price/stock fields ─── */
  #add-inventory-form div[style*="display: flex; gap: 16px"] {
    flex-direction: column !important;
  }
}


.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid transparent;
  display: inline-block;
}

.status-pending {
  background: rgba(255, 165, 0, 0.1);
  color: orange;
  border-color: rgba(255, 165, 0, 0.3);
}

.status-completed {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
  border-color: rgba(0, 200, 83, 0.3);
}

.status-cancelled {
  background: rgba(255, 69, 0, 0.1);
  color: var(--accent);
  border-color: rgba(255, 69, 0, 0.3);
}


/* ========================================= */
/* CRM SPECIFIC STYLES                       */
/* ========================================= */

.crm-body {
  background: var(--bg);
  color: var(--white);
  height: 100vh;
  overflow: hidden;
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
}

.crm-layout {
  display: flex;
}

/* Sidebar Nav */
.crm-nav {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.crm-nav-header {
  padding: var(--space-m);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.crm-nav-links {
  padding: var(--space-s) 0;
  display: flex;
  flex-direction: column;
}

.crm-nav-item {
  background: none;
  border: none;
  color: var(--gray);
  padding: 16px var(--space-m);
  text-align: left;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.crm-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.crm-nav-item.active {
  background: rgba(255, 69, 0, 0.1);
  color: var(--accent);
  border-left-color: var(--accent);
}

/* Main Content */
.crm-main {
  flex: 1;
  padding: var(--space-m) clamp(20px, 4vw, 48px);
  overflow-y: auto;
  min-width: 0;
}

.crm-view-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-s);
}

.crm-subnav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}

.crm-header-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Layout Utilities */
.crm-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}

.crm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-s);
}

/* Components */
.crm-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 4px;
}

.stat-title {
  color: var(--gray);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}

.crm-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 4px;
}

.crm-panel-title {
  font-size: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.crm-feed-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--gray);
}
.crm-feed-item strong { color: var(--white); }
.crm-feed-item:last-child { border-bottom: none; }

.crm-list-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.crm-list-item:last-child { border-bottom: none; }

/* Table */
.crm-table-container {
  overflow-x: auto;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
}

.crm-table th {
  text-align: left;
  padding: 16px 12px;
  color: var(--gray);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.crm-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.crm-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Forms & Inputs */
.crm-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.crm-input, .crm-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 10px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
}

.crm-input:focus, .crm-select:focus {
  border-color: var(--accent);
  outline: none;
}

.crm-form-group {
  margin-bottom: 16px;
}

.crm-form-group label {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
}

/* Slide Over */
.crm-slide-over {
  position: fixed;
  top: 72px; /* below admin nav */
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: calc(100vh - 72px);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.3s var(--ease);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.crm-slide-over.open { right: 0; }

.crm-slide-over-header {
  padding: var(--space-m);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crm-slide-over-content {
  flex: 1;
  padding: var(--space-m);
  overflow-y: auto;
}

/* Modals */
.crm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.crm-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.crm-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 500px;
  border-radius: 4px;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.crm-modal.open .crm-modal-box {
  transform: translateY(0);
}

.crm-modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crm-modal-content {
  padding: 24px;
}

.crm-btn-icon {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 24px;
  cursor: pointer;
}

/* Badges */
.crm-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid transparent;
  display: inline-block;
}

.status-pending {
  background: rgba(255, 165, 0, 0.1);
  color: orange;
  border-color: rgba(255, 165, 0, 0.3);
}

.status-completed {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
  border-color: rgba(0, 200, 83, 0.3);
}

.status-cancelled {
  background: rgba(255, 69, 0, 0.1);
  color: var(--accent);
  border-color: rgba(255, 69, 0, 0.3);
}

/* Reviews Grid */
.crm-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Duplicate Mobile Nav Styles Removed */

@media (max-width: 768px) {
  .crm-dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .crm-filters {
    flex-direction: column;
  }
  
  .crm-input, .crm-select {
    max-width: 100%;
  }
}

/* ─── SQUARE PAYMENT MODAL ─── */
.payment-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.payment-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.payment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.payment-order-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 24px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 69, 0, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================
   GLOBAL POP-UP AD
========================================= */
.global-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.global-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.global-popup-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  text-align: center;
}

.global-popup-overlay.show .global-popup-content {
  transform: translateY(0) scale(1);
}

.global-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.global-popup-close:hover {
  color: var(--white);
}

/* =========================================
   DEALS & PROMOTIONS CARDS
========================================= */
.deals-section {
  position: relative;
  overflow: hidden;
}

.promo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px var(--space-m) 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255, 69, 0, 0.15);
}

.promo-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.3);
}

.promo-title {
  font-family: 'Lalezar', cursive;
  font-size: 24px;
  margin-top: 4px;
  margin-bottom: 2px;
  line-height: 1.1;
  color: var(--white);
}

.promo-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

.promo-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 8px;
}

/* =========================================
   PICKUP UI RESPONSIVENESS
========================================= */
@media (max-width: 400px) {
  .pickup-time-grid {
    grid-template-columns: 1fr !important;
  }
  .pickup-toggles {
    flex-direction: column;
  }
}
  
/* RTL Overrides for Admin */  
[dir="rtl"] .crm-body { font-family: 'Vazirmatn', sans-serif; text-align: right; }  
[dir="rtl"] .crm-nav { transform: translateX(100%); left: auto; right: 0; }  
[dir="rtl"] .crm-nav.open { transform: translateX(0); }  
[dir="rtl"] .crm-layout { margin-left: 0; margin-right: 240px; }  
@media (max-width: 768px) { [dir="rtl"] .crm-layout { margin-right: 0; } }  
[dir="rtl"] .crm-nav-links { align-items: flex-start; }  
[dir="rtl"] .crm-nav-item { flex-direction: row; } 

/* RTL Overrides for Customer Site */
[dir="rtl"] body {
  font-family: 'Vazirmatn', sans-serif;
  text-align: right;
}

[dir="rtl"] .site-nav .container {
  direction: ltr; /* Keeps logo left, links right */
}

[dir="rtl"] .nav-links,
[dir="rtl"] .nav-mobile-drawer {
  direction: rtl;
}


/* RTL Overrides for Admin */  
[dir="rtl"] .crm-body { font-family: 'Vazirmatn', sans-serif; text-align: right; }  
[dir="rtl"] .crm-nav { transform: translateX(100%); left: auto; right: 0; }  
[dir="rtl"] .crm-nav.open { transform: translateX(0); }  
[dir="rtl"] .crm-layout { margin-left: 0; margin-right: 240px; }  
@media (max-width: 768px) { [dir="rtl"] .crm-layout { margin-right: 0; } }  
[dir="rtl"] .crm-nav-links { align-items: flex-start; }  
[dir="rtl"] .crm-nav-item { flex-direction: row; } 

/* RTL Overrides for Customer Site */
[dir="rtl"] body {
  font-family: 'Vazirmatn', sans-serif;
  text-align: right;
}

[dir="rtl"] .site-nav .container {
  direction: ltr; /* Keeps logo left, links right */
}

[dir="rtl"] .nav-links,
[dir="rtl"] .nav-mobile-drawer {
  direction: rtl;
}

[dir="rtl"] .nav-logo {
  margin-right: auto;
  margin-left: 0;
}

/* Ensure Square payment form is LTR so card fields don't break */
#card-container,
#apple-pay-button,
#google-pay-button,
#fake-apple-pay-button {
  direction: ltr !important;
  text-align: left !important;
}

/* ───────────────────────────────────────────────────────────────── */
/* SERVICE AREA PILLS */
/* ───────────────────────────────────────────────────────────────── */
.service-area-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}

.service-area-pill svg {
  color: var(--gray);
  transition: all 0.3s ease;
}

.service-area-pill:hover {
  background: rgba(255, 69, 0, 0.08); /* slight accent tint */
  border-color: rgba(255, 69, 0, 0.4);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 69, 0, 0.1);
}

.service-area-pill:hover svg {
  color: var(--accent);
}

@media (max-width: 768px) {
  .loc-grid {
    flex-direction: column !important;
    gap: 32px !important;
  }
  .loc-grid > div {
    min-width: 100% !important;
    flex: 1 1 100% !important;
  }
  .loc-grid iframe {
    height: 300px !important;
  }
}
