.install-btn {
  margin-top: 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.install-btn:active { transform: scale(0.95); background: #fff; color: #111; }
.hero-logo-img {
  height: 180px;
  width: auto;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}
.hero {
  padding-top: 10px !important;
  align-items: flex-start !important;
  min-height: 230px !important;
  background: 
    radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.9) 100%),
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('assets/woody_bg.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: inset 0 -50px 50px -20px var(--bg);
}

/* Unified Hero Pills Container */
.hero-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  width: 100%;
}

/* Base style for both Hero buttons to ensure symmetry */
.pill.open-badge, .hero-cta {
  height: 44px;
  min-width: 180px; /* Increased slightly for breathing room */
  padding: 0 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.7rem; /* Slightly smaller for better fit */
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  position: relative;
}

.open-badge {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a) !important;
  border: 1px solid rgba(255, 77, 0, 0.4) !important;
  color: #fff !important;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.open-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 77, 0, 0.3);
  border-color: rgba(255, 77, 0, 0.7) !important;
}

.fire-svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 5px #ff4d00);
}

.flame-p1 { animation: flame-sway 1s infinite alternate ease-in-out; transform-origin: bottom center; }
.flame-p2 { animation: flame-sway 0.8s infinite alternate-reverse ease-in-out; transform-origin: bottom center; }
.flame-p3 { animation: flame-sway 0.6s infinite alternate ease-in-out; transform-origin: bottom center; }

@keyframes flame-sway {
  0% { transform: scale(1) rotate(-2deg); opacity: 0.8; }
  100% { transform: scale(1.1) rotate(2deg); opacity: 1; }
}

/* Delivery Badge */
.delivery-badge {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
}
.speed-lines {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.speed-lines span {
  width: 12px;
  height: 1px;
  background: #fff;
  opacity: 0;
  animation: line-move 0.6s infinite;
}
.speed-lines span:nth-child(2) { animation-delay: 0.2s; width: 15px; }
.speed-lines span:nth-child(3) { animation-delay: 0.4s; width: 10px; }

@keyframes line-move {
  0% { transform: translateX(0); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translateX(-20px); opacity: 0; }
}

.delivery-icon {
  display: inline-block;
  animation: scooter-tilt 0.5s infinite alternate ease-in-out;
}
@keyframes scooter-tilt {
  from { transform: scaleX(-1) rotate(-5deg) translateX(0); }
  to { transform: scaleX(-1) rotate(5deg) translateX(2px); }
}

/* Announcement Bar */
.announcement-bar {
  background: #f05023;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1001;
}
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  padding-left: 50px;
}
.marquee-item {
  display: inline-block;
  padding-right: 60px;
  cursor: pointer;
}
.marquee-item:hover {
  text-decoration: underline;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.main-footer {
  background: var(--s1);
  border-top: 1px solid var(--b);
  padding: 40px 20px 120px;
  text-align: center;
}

/* Premium Morphing CTA */
.hero-cta {
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255,107,0,0.2);
  color: #fff;
  z-index: 10;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,107,0,0.3); }

.cta-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* Tighter gap */
  color: #fff;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(15px);
  white-space: nowrap;
}
.cta-slide.active { opacity: 1; transform: translateY(0); }

/* Animation: Speedy Scooter */
.cta-speed-lines { display: flex; flex-direction: column; gap: 2px; }
.cta-speed-lines span { width: 8px; height: 1.2px; background: #fff; opacity: 0; animation: cta-line-move 0.6s infinite; border-radius: 10px; }
.cta-speed-lines span:nth-child(2) { animation-delay: 0.2s; width: 12px; }
.cta-speed-lines span:nth-child(3) { animation-delay: 0.4s; width: 6px; }

@keyframes cta-line-move {
  0% { transform: translateX(0); opacity: 0; }
  50% { opacity: 0.6; }
  100% { transform: translateX(-15px); opacity: 0; }
}

.scooter-icon { font-size: 1.1rem; animation: cta-scooter-tilt 0.4s infinite alternate ease-in-out; display: inline-block; }
@keyframes cta-scooter-tilt {
  from { transform: scaleX(-1) rotate(-5deg); }
  to { transform: scaleX(-1) rotate(5deg) translateX(2px); }
}

.wa-icon-svg { width: 16px; height: 16px; fill: #fff; }

/* Remove legacy bubble */
.wa-bubble { display: none !important; }
  content: "Order Directly & Get Updates!";
  position: absolute;
  right: 70px;
  background: #25d366;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.wa-bubble:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.install-btn {
  position: relative;
}
.install-btn::after {
  content: "Add to Home Screen";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--s3);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: 70px;
}
.install-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.footer-logo { font-size: 1.4rem; font-weight: 900; color: var(--accent); letter-spacing: 2px; margin-bottom: 8px; }
.main-footer p { font-size: 0.8rem; color: var(--muted); margin-bottom: 24px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.footer-link { color: #fff; font-size: 0.85rem; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.footer-copyright { font-size: 0.65rem; color: #444; letter-spacing: 0.5px; text-transform: uppercase; }
#menuArea {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body {
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  padding-bottom: env(safe-area-inset-bottom);
}
.hero {
  padding-top: calc(10px + env(safe-area-inset-top)) !important;
}
.sheet {
  padding-bottom: env(safe-area-inset-bottom) !important;
}
.wa-bubble {
  bottom: calc(85px + env(safe-area-inset-bottom));
}
.cart-bar {
  padding-bottom: env(safe-area-inset-bottom) !important;
  height: calc(75px + env(safe-area-inset-bottom)) !important;
}
.top-controls {
  padding-top: 10px;
}
.top-controls.sticky {
  top: env(safe-area-inset-top);
}
.cat-nav.sticky {
  top: calc(70px + env(safe-area-inset-top));
}

/* BENTO CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  grid-auto-flow: dense;
  padding: 16px;
  margin-top: 0; /* Reset for better reliability */
  position: relative;
  z-index: 50;
}
.category-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
}
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  z-index: 2;
}
.category-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7);
  border-color: var(--primary);
}
.category-card.large { grid-column: span 2; grid-row: span 2; min-height: 360px; }
.category-card.wide { grid-column: span 2; min-height: 170px; }
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: saturate(1.2) contrast(1.05) brightness(1.1);
}
.category-card:hover img {
  transform: scale(1.1);
  opacity: 1;
}
.category-card-content {
  position: relative;
  z-index: 3;
  padding: 20px;
}
.category-card-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.category-card.large .category-card-name {
  font-size: 2.2rem;
  line-height: 1;
}
.category-card-count {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  background: rgba(255,107,0,0.9);
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}

/* MOBILE RESPONSIVENESS FOR BENTO GRID */
@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .category-card {
    min-height: 110px;
    border-radius: 16px;
  }
  .category-card.large {
    min-height: 230px;
  }
  .category-card.wide {
    min-height: 110px;
  }
  .category-card-content {
    padding: 14px;
  }
  .category-card-name {
    font-size: 0.85rem;
    line-height: 1.2;
  }
  .category-card.large .category-card-name {
    font-size: 1.2rem;
  }
}
.category-card.large .category-card-name {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.category-card.large .category-card-count {
  font-size: 0.8rem;
}
@keyframes card-entrance {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.category-card {
  animation: card-entrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.store-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.store-login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}
.store-login-btn i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.history-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary);
  animation: card-entrance 0.4s ease-out;
}
.hc-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.hc-id { font-weight: 800; font-size: 0.85rem; color: #fff; }
.hc-date { font-size: 0.7rem; color: var(--muted); }
.hc-items { font-size: 0.75rem; color: #bbb; line-height: 1.4; margin-bottom: 12px; }
.hc-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); }
.hc-total { font-weight: 900; font-size: 0.9rem; color: var(--primary); }
.hc-status { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; background: rgba(34, 197, 94, 0.15); color: #22c55e; padding: 4px 10px; border-radius: 100px; }

@media (max-width: 480px) {
  .store-login-btn span { display: none; }
  .store-login-btn { padding: 12px; }
  .top-actions { gap: 6px !important; }
}

/* Premium Payment Modal Design */
.upi-modal-wrapper {
  background: #111112;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 350px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.upi-modal-title {
  margin: 0 0 6px 0;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.upi-modal-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0 0 20px 0;
  line-height: 1.45;
  font-weight: 500;
  max-width: 280px;
}
.upi-qr-card {
  background: #ffffff;
  padding: 14px;
  border-radius: 18px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
}
.upi-qr-card img {
  width: 160px;
  height: 160px;
  display: block;
}
.upi-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  height: 48px;
  background: linear-gradient(135deg, #f05023 0%, #dd3e12 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  cursor: pointer;
}
.upi-pay-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.upi-pay-btn:active {
  transform: translateY(1px);
}
.upi-alert-banner {
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 16px 0 20px;
  background: rgba(240, 80, 35, 0.05);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(240, 80, 35, 0.12);
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.upi-alert-banner svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.whatsapp-confirm-btn {
  margin: 0;
  height: 48px;
  background: linear-gradient(135deg, #25D366 0%, #1ebd5a 100%);
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
}
.whatsapp-confirm-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.whatsapp-confirm-btn:active {
  transform: translateY(1px);
}
.whatsapp-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.2);
  box-shadow: none;
  transform: none !important;
}
.upi-cancel-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 12px;
  width: 100%;
  transition: color 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
}
.upi-cancel-btn:hover {
  color: #ffffff;
}
