:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  /* SEO-attractive warm food palette */
  --brand-red: #D62839;
  --brand-red-bright: #EF476F;
  --brand-red-dark: #9B2226;
  --brand-red-deep: #641220;
  --brand-gold: #F4A261;
  --brand-gold-bright: #FFD166;
  --brand-gold-soft: #FFF3E0;
  --brand-ink: #1B1B2F;
  --brand-ink-soft: #2D3142;
  --brand-cream: #FFFBF7;
  --brand-warm-surface: #FFF8F2;
  --brand-success: #2D6A4F;
  --zomato-red: var(--brand-red);
  --zomato-red-pressed: var(--brand-red-dark);
  --zomato-red-light: #FFF0F2;
  --zomato-red-50: #FFE8EC;
  --zomato-dark: var(--brand-ink-soft);
  --zomato-black: var(--brand-ink);
  --zomato-surface: var(--brand-warm-surface);
  --zomato-border: #F0E6DC;
  --zomato-rating-green: var(--brand-success);
  --primary-red: var(--brand-red);
  --rose-glow: rgba(214, 40, 57, 0.14);
  --gold-glow: rgba(244, 162, 97, 0.25);
  --text-primary: var(--brand-ink);
  --text-secondary: #4A4E69;
  --text-muted: #8D8D9B;
  --navbar-height: 72px;
  /* 3D typography depth — scales down on mobile */
  --3d-x: 0.035em;
  --3d-y: 0.05em;
  --3d-perspective: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-cream);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(244, 162, 97, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(214, 40, 57, 0.05) 0%, transparent 45%);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

p, li, span, small {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.text-readable {
  color: var(--text-secondary) !important;
  font-size: 1rem;
  line-height: 1.7;
}

.text-readable-light {
  color: #e2e8f0 !important;
  font-size: 1rem;
  line-height: 1.7;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  background: var(--zomato-red-light);
  color: var(--zomato-red);
  border: 1px solid rgba(226, 55, 68, 0.15);
}

.section-label-muted {
  background: #fff;
  color: var(--text-secondary);
  border-color: var(--zomato-border);
}

.section-label-dark {
  background: rgba(226, 55, 68, 0.15);
  color: #fda4af;
  border-color: rgba(226, 55, 68, 0.3);
}

.section-header {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-header-center {
  text-align: center;
}

.section-header-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-header-left {
  text-align: left;
}

.section-header-center .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
  border-radius: 2px;
  margin: 0.85rem auto 0;
}

.section-header-left .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
  border-radius: 2px;
  margin: 0.85rem 0 0;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 1.7;
  max-width: 560px;
  margin: 0.75rem 0 0;
}

.section-subtitle-light {
  color: #cbd5e1 !important;
  max-width: 520px;
}

.section-title-light {
  color: #fff !important;
}

.section-surface {
  background: linear-gradient(180deg, #ffffff 0%, var(--zomato-surface) 100%);
}

.section-white {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.section-reviews {
  background: linear-gradient(180deg, var(--zomato-surface) 0%, #ffffff 45%, var(--zomato-surface) 100%);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--zomato-black);
}

.accent-gradient {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 55%, #7A1520 100%);
  border: none;
  box-shadow: 0 4px 16px rgba(214, 40, 57, 0.35);
}

.accent-gradient-hover:hover {
  background: var(--zomato-red-pressed);
  transform: none;
  box-shadow: 0 2px 8px rgba(226, 55, 68, 0.3);
}

.text-accent {
  color: var(--zomato-red);
}

.btn-accent {
  transition: background 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
}

.btn-accent:hover {
  transform: none;
  background: var(--zomato-red-pressed) !important;
  box-shadow: 0 2px 8px rgba(226, 55, 68, 0.35);
}

.brand-logo-wrap {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.brand-logo-wrap:hover {
  transform: scale(1.03);
}

.brand-logo-nav {
  height: clamp(32px, 5vw, 42px);
  width: auto;
  display: block;
}

.brand-logo-footer {
  height: clamp(26px, 4vw, 32px);
  width: auto;
  display: block;
}

/* Navbar — Zomato-style clean header */
#main-navbar {
  transition: box-shadow 0.2s ease;
  z-index: 1030;
  background: #fff !important;
  border-bottom: 1px solid var(--zomato-border) !important;
  box-shadow: none !important;
}

#main-navbar.navbar-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  background: #fff !important;
  backdrop-filter: none;
}

.nav-link-active {
  background: var(--zomato-red-light) !important;
  color: var(--zomato-red) !important;
  box-shadow: none;
  border-radius: 8px;
  font-weight: 600;
}

#main-navbar .btn.rounded-pill:not(.nav-link-active) {
  color: var(--text-secondary) !important;
  font-weight: 500;
  border-radius: 8px !important;
}

#main-navbar .btn.rounded-pill:not(.nav-link-active):hover {
  background: var(--zomato-gray-100, #F8F8F8);
  color: var(--zomato-black) !important;
}

/* Keep red CTAs readable — do not force gray text on accent buttons */
#main-navbar .btn-accent.rounded-pill,
#main-navbar .btn.accent-gradient.rounded-pill {
  color: #fff !important;
  font-weight: 700 !important;
}

#main-navbar .btn-accent.rounded-pill:hover,
#main-navbar .btn.accent-gradient.rounded-pill:hover {
  color: #fff !important;
  filter: brightness(0.96);
  background-image: linear-gradient(135deg, #d62839 0%, #9b2226 55%, #7a1520 100%);
}

#main-navbar .btn-outline-secondary.rounded-pill {
  color: var(--zomato-black) !important;
  border-color: #ced4da !important;
  background: #fff !important;
}

#main-navbar .btn-outline-secondary.rounded-pill:hover {
  color: var(--zomato-red) !important;
  border-color: var(--zomato-red) !important;
  background: #fff5f6 !important;
}

.search-wrap .form-control {
  background: var(--zomato-surface);
  border: 1px solid var(--zomato-border);
  border-radius: 8px !important;
  font-size: 0.9rem;
}

.search-wrap .form-control:focus {
  border-color: var(--zomato-red);
  box-shadow: 0 0 0 3px var(--rose-glow);
  background: #fff;
}

.mobile-search-bar {
  border-top: none;
  background: #fff;
}

.search-wrap {
  width: 100%;
  max-width: 280px;
}

.glassy-card {
  background: #fff;
  border: 1px solid var(--zomato-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: none;
}

/* Hero — Zomato-style food imagery + location search */
.hero-slider {
  position: relative;
  min-height: clamp(520px, 85vh, 720px);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(214, 40, 57, 0.42) 0%, rgba(244, 162, 97, 0.18) 45%, rgba(255, 251, 247, 0.08) 100%),
    linear-gradient(180deg, rgba(27, 27, 47, 0.2) 0%, rgba(27, 27, 47, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: var(--zomato-red);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: clamp(1.85rem, 5.5vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 1rem 0;
  letter-spacing: -0.03em;
}

/* ─── 3D Typography System ─── */
.text-3d-stage {
  perspective: var(--3d-perspective);
  perspective-origin: 50% 40%;
  transform-style: preserve-3d;
}

.text-3d-hero {
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.text-3d-line {
  display: block;
  position: relative;
  color: #ffffff;
  transform-style: preserve-3d;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 0 var(--brand-red-dark),
    0 4px 0 rgba(154, 34, 46, 0.55),
    0 8px 18px rgba(214, 40, 57, 0.35),
    0 0 50px rgba(214, 40, 57, 0.18);
  animation:
    text3dEnter 1s cubic-bezier(0.22, 1, 0.36, 1) both,
    text3dFloat 5s ease-in-out infinite;
  animation-delay: calc(0.15s + var(--line, 0) * 0.18s), calc(1.1s + var(--line, 0) * 0.2s);
}

.text-3d-line::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transform: translate3d(var(--3d-x), var(--3d-y), -0.08em);
  color: var(--brand-red-deep);
  z-index: -1;
  opacity: 0.9;
  text-shadow: none;
  pointer-events: none;
}

.text-3d-line::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transform: translate3d(calc(var(--3d-x) * 2.2), calc(var(--3d-y) * 2.2), -0.16em);
  color: rgba(214, 40, 57, 0.22);
  z-index: -2;
  text-shadow: none;
  pointer-events: none;
}

.text-3d-gold {
  color: var(--brand-gold-bright);
  text-shadow:
    0 1px 0 #FFE8A3,
    0 2px 0 #E9A043,
    0 3px 0 #C77D2A,
    0 4px 0 #A35F1A,
    0 6px 0 #8B5A14,
    0 10px 22px rgba(214, 40, 57, 0.25),
    0 0 50px rgba(255, 209, 102, 0.4);
}

.text-3d-gold::before {
  color: #8B5A14;
}

.text-3d-heading {
  position: relative;
  transform-style: preserve-3d;
  color: var(--brand-ink);
  text-shadow:
    0 1px 0 #ffffff,
    0 2px 0 rgba(214, 40, 57, 0.06),
    0 4px 12px rgba(27, 27, 47, 0.1);
  opacity: 1;
  transform: none;
  transition: none;
}

html.reveal-ready .text-3d-heading:not(.is-3d-visible) {
  opacity: 1;
  transform: none;
}

.text-3d-heading.is-3d-visible {
  animation: none;
}

.text-3d-heading-light {
  color: #ffffff;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 0 var(--brand-red-dark),
    0 4px 0 var(--brand-red-deep),
    0 8px 20px rgba(0, 0, 0, 0.4);
}

.text-3d-footer {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15),
    0 2px 0 var(--brand-red-dark),
    0 4px 12px rgba(0, 0, 0, 0.35);
  animation: text3dFooterGlow 3s ease-in-out infinite;
}

.stat-item h3 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--brand-red);
  margin: 0;
  font-family: var(--font-mono);
  line-height: 1.2;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 0 rgba(214, 40, 57, 0.15),
    0 3px 8px rgba(214, 40, 57, 0.12);
}

.stat-item.is-3d-visible h3 {
  animation: stat3dPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes text3dEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, -100px) rotateX(28deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0);
  }
}

@keyframes text3dFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotateX(0deg);
  }
  50% {
    transform: translate3d(0, -5px, 6px) rotateX(2deg);
  }
}

@keyframes section3dPop {
  from {
    opacity: 0;
    transform: perspective(700px) rotateX(14deg) translateY(24px);
  }
  to {
    opacity: 1;
    transform: perspective(700px) rotateX(0deg) translateY(0);
  }
}

@keyframes stat3dPop {
  from {
    transform: scale(0.85) translateZ(-20px);
    opacity: 0.5;
  }
  to {
    transform: scale(1) translateZ(0);
    opacity: 1;
  }
}

@keyframes text3dFooterGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-3d-line,
  .text-3d-heading,
  .text-3d-footer,
  .stat-item h3 {
    animation: none !important;
    transition: none !important;
  }

  .text-3d-line {
    opacity: 1;
    transform: none;
  }

  .text-3d-heading {
    opacity: 1;
    transform: none;
  }

  .text-3d-hero {
    transition: none;
  }
}

.hero-title .text-accent {
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.hero-address-form {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  margin: 0;
}

.hero-content-panel {
  width: 100%;
}

.hero-input-icon {
  z-index: 2;
  pointer-events: none;
}

.hero-radar-banner {
  font-size: 0.875rem;
  text-align: left;
}

.hero-address-input {
  background: #fff !important;
  color: var(--brand-ink) !important;
  border: 1px solid var(--zomato-border) !important;
  border-radius: 10px !important;
  font-size: 0.9rem;
}

.hero-address-input::placeholder {
  color: var(--text-muted);
}

.hero-address-input:focus {
  background: #fff !important;
  border-color: var(--brand-red) !important;
  box-shadow: 0 0 0 3px var(--rose-glow) !important;
  color: var(--brand-ink) !important;
}

.hero-app-cta {
  margin-top: 0.25rem;
  box-shadow: 0 6px 20px rgba(214, 40, 57, 0.3);
}

.hero-nav-btn:hover {
  background: var(--zomato-red);
  border-color: transparent;
  transform: scale(1.05);
}

.hero-dot.active {
  width: 24px;
  background: var(--zomato-red);
}

.hero-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.hero-nav-btn:hover {
  background: rgba(244, 63, 94, 0.8);
  border-color: transparent;
  transform: scale(1.08);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  width: 24px;
  background: var(--zomato-red);
}

.food-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.food-card-desc {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Scroll reveal disabled for opacity — content must stay solid on reload.
   Keep class hooks for optional transform-only polish later. */
.reveal-on-scroll,
.reveal-on-scroll.is-visible,
html.reveal-ready .reveal-on-scroll,
html.reveal-ready .reveal-on-scroll:not(.is-visible),
html.reveal-ready .reveal-on-scroll.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3,
.reveal-delay-4 {
  transition-delay: 0s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Never fade the whole homepage in — causes the washed-out reload flash. */
.animate-fade-in {
  animation: none;
  opacity: 1;
}

/* Category bar */
#menu-categories {
  top: var(--navbar-height);
  z-index: 20;
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--zomato-border) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.category-scroll {
  display: flex;
  overflow-x: auto;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-btn {
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--zomato-border);
  border-radius: 50px;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  scroll-snap-align: start;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.category-btn:hover {
  transform: none;
  border-color: var(--zomato-red);
  color: var(--zomato-red);
  box-shadow: none;
}

.category-btn.active {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 60%, #8B1A24 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(214, 40, 57, 0.4);
  font-weight: 700;
}

/* Food cards — Zomato restaurant card style */
.food-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--zomato-border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(226, 55, 68, 0.2);
}

.food-image-container {
  position: relative;
  height: clamp(160px, 28vw, 200px);
  width: 100%;
  overflow: hidden;
  background-color: var(--zomato-surface);
}

.food-card:hover .food-image {
  transform: scale(1.03);
}

.food-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--zomato-black);
  line-height: 1.35;
  margin: 0;
}

.food-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.badge-tag {
  background: rgba(28, 28, 28, 0.75);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.prep-badge {
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.food-rating-badge {
  background: var(--zomato-rating-green) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
}

.food-rating-badge .text-warning {
  color: #fff !important;
}

.food-rating-badge[role="button"] {
  cursor: pointer;
}

.food-rating-badge[role="button"]:focus-visible {
  outline: 3px solid rgba(214, 40, 57, 0.25);
  outline-offset: 2px;
}

.order-review-section {
  background: #fffaf7;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.food-review-form,
.review-submitted {
  background: #fff;
  border: 1px solid rgba(214, 40, 57, 0.13);
}

.review-star-picker {
  display: flex;
  gap: 0.15rem;
}

.review-star-btn {
  border: 0;
  background: transparent;
  color: #d99a12;
  font-size: 1.65rem;
  line-height: 1;
  padding: 0.1rem;
  transition: transform 120ms ease;
}

.review-star-btn:hover,
.review-star-btn:focus-visible {
  transform: scale(1.15);
  outline: none;
}

.review-star-btn.active,
.review-stars-static {
  color: #d99a12;
}

.review-stars-static {
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.public-review:last-child {
  border-bottom: 0 !important;
}

.food-add-btn {
  background: #fff !important;
  color: var(--zomato-red) !important;
  border: 1px solid var(--zomato-red) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

.food-add-btn:hover {
  background: var(--zomato-red-light) !important;
  color: var(--zomato-red-pressed) !important;
  transform: none !important;
  box-shadow: none !important;
}

.food-card-price {
  color: var(--zomato-black) !important;
  font-weight: 700;
}

/* Features slider — Zomato dark section */
.features-section {
  background: linear-gradient(135deg, var(--brand-ink) 0%, var(--brand-ink-soft) 40%, #3D1520 100%);
}

.features-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(226, 55, 68, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 15%, rgba(226, 55, 68, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.slider-controls {
  display: flex;
  gap: 0.5rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-btn:hover {
  background: var(--primary-red);
  border-color: transparent;
}

.features-track,
.steps-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0 1.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.features-track::-webkit-scrollbar,
.steps-track::-webkit-scrollbar {
  display: none;
}

.feature-card {
  flex: 0 0 clamp(260px, 80vw, 300px);
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 55, 68, 0.45);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(226, 55, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* How it works */
.steps-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--zomato-surface) 100%);
  position: relative;
}

.step-card {
  flex: 0 0 clamp(280px, 85vw, 340px);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(226, 55, 68, 0.08);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(226, 55, 68, 0.12);
  border-color: rgba(226, 55, 68, 0.2);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-red) 0%, var(--brand-red-dark) 65%, var(--brand-gold) 130%);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.15rem;
  box-shadow: 0 8px 22px rgba(214, 40, 57, 0.38);
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  border: none;
  background: var(--zomato-border);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.step-dot.active {
  width: 20px;
  background: var(--zomato-red);
}

/* Testimonials */
.testimonial-card {
  transition: opacity 0.5s ease, transform 0.5s ease;
  border: none !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.08) !important;
  background: linear-gradient(145deg, #ffffff, #fefefe) !important;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
  border-radius: 1.5rem 1.5rem 0 0;
}

.testimonial-card.sliding {
  opacity: 0;
  transform: translateX(20px);
}

.testimonial-quote {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
}

/* Stats bar — Zomato clean metrics */
.stats-bar {
  background: linear-gradient(180deg, #fff 0%, var(--zomato-red-light) 100%);
  color: var(--zomato-black);
  border-top: none;
  border-bottom: none;
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 55, 68, 0.2), transparent);
}

.stat-item {
  position: relative;
  padding: 1.25rem 0.85rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(226, 55, 68, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(226, 55, 68, 0.12);
  border-color: rgba(226, 55, 68, 0.25);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--brand-red) 0%, var(--brand-red-dark) 70%, var(--brand-gold) 140%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  box-shadow: 0 6px 18px rgba(214, 40, 57, 0.35);
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-item p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0.35rem 0 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.payment-method-option:has(input:checked) {
  border-color: var(--zomato-red, #e23744) !important;
  background: rgba(226, 55, 68, 0.04);
}

/* Cart */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  max-width: 100%;
  background: #ffffff;
  z-index: 1050;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.cart-drawer > .border-bottom {
  background: linear-gradient(180deg, #fff 0%, var(--zomato-red-light) 100%) !important;
  border-bottom-color: rgba(226, 55, 68, 0.12) !important;
}

.cart-drawer > .border-top {
  background: #fafafa !important;
  border-top-color: var(--zomato-border) !important;
}

.cart-drawer.open {
  transform: translateX(0);
}

.legal-page {
  background-color: #f8fafc;
}

.legal-breadcrumb-bar {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-hero {
  padding: clamp(1.5rem, 5vw, 3rem) !important;
}

.legal-hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.legal-content-card {
  padding: clamp(1.25rem, 4vw, 3rem) !important;
}

.legal-sidebar-card {
  padding: clamp(1rem, 3vw, 1.5rem) !important;
}

.testimonial-quote-mark {
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: 1;
  left: clamp(8px, 3vw, 20px);
  top: clamp(8px, 3vw, 20px);
}

.hero-promo-row {
  flex-wrap: wrap;
}

#cartHeaderTitle {
  font-size: clamp(1rem, 4vw, 1.25rem);
}

#cartBadgeCount {
  font-size: 0.7rem;
  white-space: nowrap;
}

.checkout-btn-short {
  display: none;
}

.hero-locate-short {
  display: none;
}

.food-add-short {
  display: none;
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
  display: none;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.25rem;
  border: none;
  background: none;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-icon {
  width: 38px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-nav-icon svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-item.active {
  color: var(--zomato-red);
}

.mobile-nav-item.active .mobile-nav-icon {
  background: var(--zomato-red-light);
}

.mobile-nav-item:active .mobile-nav-icon {
  transform: scale(0.92);
}

.mobile-nav-app {
  cursor: pointer;
  border: none;
  background: none;
}

.mobile-nav-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50px;
  background: var(--zomato-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Mobile polish — base classes */
.category-scroll-wrap {
  position: relative;
}

.navbar-icon-btn {
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.navbar-icon-btn:active {
  transform: scale(0.94);
}

/* Contact Section — Zomato dark panel */
.contact-section {
  background: var(--zomato-surface);
}

.contact-wrapper {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 55, 68, 0.1);
}

.contact-info-panel {
  position: relative;
  background: var(--zomato-dark);
  color: #fff;
  overflow: hidden;
}

.contact-glow {
  display: none;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(226, 55, 68, 0.15);
  border: 1px solid rgba(226, 55, 68, 0.3);
  color: #fda4af;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
}

.contact-heading {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: #fff;
  font-weight: 800;
}

.contact-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 63, 94, 0.4);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--zomato-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: none;
}

.contact-card h6 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fda4af;
  margin: 0 0 0.25rem;
}

.contact-card p {
  font-size: 0.95rem;
  color: #f1f5f9;
  line-height: 1.55;
  margin: 0;
}

.contact-card a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: #fda4af;
}

.contact-cta-panel {
  background: linear-gradient(180deg, #ffffff 0%, var(--zomato-red-light) 100%);
}

.contact-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.trust-pill svg {
  width: 16px;
  height: 16px;
  color: var(--primary-red);
}

/* Footer — Zomato dark footer */
.site-footer {
  position: relative;
  background: var(--zomato-dark);
  color: #9C9C9C;
  overflow: hidden;
}

.footer-glow {
  display: none;
}

.footer-top {
  background: linear-gradient(135deg, rgba(214, 40, 57, 0.18) 0%, rgba(244, 162, 97, 0.08) 50%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(214, 40, 57, 0.22);
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
}

.footer-top::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(226, 55, 68, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer-cta-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: #fff;
  font-weight: 800;
}

.footer-heading {
  border-bottom-color: var(--zomato-red);
}

.footer-social .social-btn:hover {
  background: var(--zomato-red);
  border-color: var(--zomato-red);
  transform: none;
  box-shadow: none;
}

.store-badge:hover {
  background: rgba(226, 55, 68, 0.12);
  border-color: rgba(226, 55, 68, 0.35);
  transform: none;
}

.store-badge svg {
  color: var(--zomato-red);
}

.footer-contact-icon {
  background: rgba(226, 55, 68, 0.12);
  border-color: rgba(226, 55, 68, 0.25);
  color: var(--zomato-red);
}

.metric-chip:hover {
  background: rgba(226, 55, 68, 0.08);
  border-color: rgba(226, 55, 68, 0.25);
}

.metric-chip svg {
  color: var(--zomato-red);
}

.footer-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.footer-glow-1 {
  width: 400px;
  height: 400px;
  background: rgba(225, 29, 72, 0.15);
  top: -100px;
  left: -100px;
}

.footer-glow-2 {
  width: 300px;
  height: 300px;
  background: rgba(244, 63, 94, 0.1);
  bottom: -50px;
  right: -50px;
}

.footer-cta-text {
  color: #cbd5e1;
  font-size: 1rem;
}

.footer-about {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(226, 55, 68, 0.4);
  display: inline-block;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #fda4af;
  transform: translateX(4px);
}

.footer-links a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(226, 55, 68, 0.12);
  border: 1px solid rgba(226, 55, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zomato-red);
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
}

.footer-contact-list .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.footer-contact-list .value {
  display: block;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.footer-contact-list .value.link {
  color: #fda4af;
  text-decoration: none;
  font-weight: 600;
}

.footer-contact-list .value.link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metric-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.metric-chip:hover {
  background: rgba(226, 55, 68, 0.08);
  border-color: rgba(226, 55, 68, 0.25);
}

.metric-chip svg {
  width: 22px;
  height: 22px;
  color: var(--zomato-red);
  flex-shrink: 0;
}

.metric-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.metric-lbl {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-social .social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social .social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-social .social-btn:hover {
  background: var(--zomato-red);
  border-color: transparent;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
  min-width: 150px;
}

.store-badge svg {
  width: 22px;
  height: 22px;
  color: var(--zomato-red);
  flex-shrink: 0;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge small {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-badge strong {
  font-size: 0.85rem;
  font-weight: 700;
}

.store-badge:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy,
.footer-made {
  font-size: 0.85rem;
  color: #64748b;
}

.footer-made svg {
  width: 16px;
  height: 16px;
  animation: pulseGlow 2s ease-in-out infinite;
}

/* App Coming Soon Popup */
.app-popup-modal {
  --bs-modal-zindex: 1065;
  z-index: 1065;
}

/* Only raise backdrop for the app-popup — never all modals.
   A global .modal-backdrop.show { z-index: 1060 } put the overlay
   ABOVE Bootstrap's default modal (1055), blocking signup/login clicks. */
.app-popup-modal + .modal-backdrop {
  z-index: 1060;
  background: rgba(27, 27, 47, 0.55);
  backdrop-filter: blur(4px);
}

.auth-modal {
  z-index: 1080;
}

body:has(#userAuthModal.show) .modal-backdrop {
  z-index: 1070;
}

.app-popup-dialog {
  max-width: 860px;
  margin: 1rem auto;
  width: calc(100% - 2rem);
}

.app-popup-content {
  border-radius: 1.5rem;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 780px);
  overflow: hidden;
  background: #fff;
  position: relative;
}

.app-popup-row {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.app-popup-form-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, var(--brand-warm-surface) 0%, #fff 28%);
}

.app-popup-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0));
}

.app-popup-handle {
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  margin: 0.55rem auto 0;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
}

/* Food image mosaic background */
.app-popup-food-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  z-index: 0;
}

.app-popup-food-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  animation: appPopupKenBurns 14s ease-in-out infinite alternate;
}

.app-popup-food-photo:nth-child(2) { animation-delay: -3.5s; }
.app-popup-food-photo:nth-child(3) { animation-delay: -7s; }
.app-popup-food-photo:nth-child(4) { animation-delay: -10.5s; }

@keyframes appPopupKenBurns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.18) translate(-2%, -1.5%); }
}

.app-popup-food-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(165deg, rgba(27, 27, 47, 0.88) 0%, rgba(100, 18, 32, 0.78) 42%, rgba(214, 40, 57, 0.62) 100%);
  pointer-events: none;
}

.app-popup-glow {
  display: block;
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.35) 0%, transparent 70%);
  bottom: -40px;
  left: -40px;
  z-index: 2;
  pointer-events: none;
  animation: appPopupGlowPulse 4s ease-in-out infinite;
}

@keyframes appPopupGlowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.app-popup-float-plate {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.app-popup-float-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-popup-float-plate--1 {
  width: 72px;
  height: 72px;
  top: 12%;
  right: -18px;
  animation: appPopupFloat 5s ease-in-out infinite;
}

.app-popup-float-plate--2 {
  width: 58px;
  height: 58px;
  bottom: 18%;
  right: 8%;
  animation: appPopupFloat 5s ease-in-out infinite reverse;
  animation-delay: -2s;
}

@keyframes appPopupFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.app-popup-visual-content {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* Phone mockup — app preview */
.app-phone-mockup {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
}

.app-phone-bezel {
  background: linear-gradient(160deg, #1a1a1a 0%, #2d2d2d 40%, #111 100%);
  border-radius: 28px;
  padding: 8px;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.app-phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 16px;
  background: #0a0a0a;
  border-radius: 12px;
  z-index: 5;
}

.app-phone-screen {
  position: relative;
  background: linear-gradient(180deg, #fffbf7 0%, #fff 100%);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--brand-ink);
  text-shadow: none;
}

.app-phone-mockup--lg .app-phone-screen {
  width: 210px;
  height: 400px;
  padding: 28px 10px 8px;
}

.app-phone-mockup--sm .app-phone-screen {
  width: 108px;
  height: 198px;
  padding: 18px 6px 6px;
}

.app-phone-mockup--sm .app-phone-bezel {
  border-radius: 18px;
  padding: 5px;
}

.app-phone-mockup--sm .app-phone-notch {
  top: 9px;
  width: 42px;
  height: 10px;
  border-radius: 8px;
}

.app-phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  padding: 0 2px;
}

.app-phone-mockup--sm .app-phone-status {
  font-size: 0.45rem;
  margin-bottom: 3px;
}

.app-phone-status-icons {
  letter-spacing: 1px;
  font-size: 0.45rem;
  color: #94a3b8;
}

.app-phone-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.app-phone-brand strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-red);
}

.app-phone-brand small {
  display: block;
  font-size: 0.55rem;
  color: #94a3b8;
  font-weight: 600;
}

.app-phone-brand > span {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand-red);
}

.app-phone-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 2px 6px rgba(214, 40, 57, 0.2);
}

.app-phone-mockup--sm .app-phone-logo {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.app-phone-search {
  background: #fff;
  border: 1px solid #f0e6dc;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.55rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.app-phone-hero-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.app-phone-mockup--lg .app-phone-hero-img {
  height: 110px;
}

.app-phone-mockup--sm .app-phone-hero-img {
  height: 62px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.app-phone-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-phone-hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 8px 6px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
}

.app-phone-hero-cap strong {
  display: block;
  font-size: 0.65rem;
}

.app-phone-hero-cap span {
  display: block;
  font-size: 0.5rem;
  font-weight: 500;
  opacity: 0.85;
}

.app-phone-mockup--sm .app-phone-hero-cap {
  padding: 4px;
  font-size: 0.42rem;
}

.app-phone-section-lbl {
  font-size: 0.58rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.app-phone-mockup--sm .app-phone-grid {
  gap: 3px;
  margin-bottom: 4px;
}

.app-phone-tile {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0e6dc;
}

.app-phone-tile img {
  width: 100%;
  height: 48px;
  object-fit: cover;
  display: block;
}

.app-phone-mockup--sm .app-phone-tile img {
  height: 28px;
}

.app-phone-tile span {
  display: block;
  padding: 3px 4px 4px;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--brand-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-phone-cta {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-bright) 100%);
  color: #fff;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 7px 8px;
  border-radius: 8px;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(214, 40, 57, 0.3);
}

.app-phone-mockup--sm .app-phone-cta {
  font-size: 0.42rem;
  padding: 4px;
  border-radius: 5px;
}

.app-phone-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid #f0e6dc;
  font-size: 0.45rem;
  font-weight: 600;
  color: #94a3b8;
}

.app-phone-nav .active {
  color: var(--brand-red);
}

.app-phone-mockup--lg {
  animation: appPhoneFloat 4.5s ease-in-out infinite;
}

@keyframes appPhoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.app-popup-mobile-inner--phone {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  padding: 0.25rem 1rem 1rem;
}

.app-popup-mobile-copy {
  flex: 1;
  min-width: 0;
}

.app-popup-mobile-copy .app-popup-desc {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.app-popup-mobile-hero {
  flex-shrink: 0;
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 162, 97, 0.2);
}

.app-popup-mobile-inner {
  position: relative;
  z-index: 2;
  padding: 0.35rem 1.25rem 1.15rem;
  text-align: center;
}

.app-popup-mobile-hero .app-popup-title {
  font-size: 1.35rem;
}

.app-popup-mobile-hero .app-popup-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.app-popup-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.app-popup-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.app-popup-chip svg {
  width: 12px;
  height: 12px;
  color: var(--brand-gold-bright);
  flex-shrink: 0;
}

.app-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: var(--brand-ink);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-popup-close--glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.app-popup-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.app-popup-close:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
  transform: scale(1.05);
}

.app-popup-visual {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  min-height: 420px;
}

.app-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(214, 40, 57, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fecdd3;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
}

.app-popup-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: #fff;
  line-height: 1.2;
}

.app-popup-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.app-popup-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #f8fafc;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.app-popup-features svg {
  width: 18px;
  height: 18px;
  color: #4ade80;
  flex-shrink: 0;
}

.app-popup-form-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--zomato-border);
}

.app-popup-form-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-bright) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(214, 40, 57, 0.28);
}

.app-popup-form-icon svg {
  width: 20px;
  height: 20px;
}

.app-popup-input {
  border-radius: 0.75rem;
  border: 1px solid #F0E6DC;
  background: #fff;
  padding: 0.75rem 1rem;
  color: var(--brand-ink);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-popup-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px var(--rose-glow);
  background: #fff;
}

.app-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
}

body.modal-open .app-popup-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.modal-open .mobile-bottom-nav {
  z-index: 1020;
}

.app-popup-fab {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom, 0));
  right: max(1.5rem, env(safe-area-inset-right, 0));
  z-index: 1020;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--zomato-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(226, 55, 68, 0.3);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.app-popup-fab:hover {
  transform: none;
  background: var(--zomato-red-pressed);
  box-shadow: 0 4px 12px rgba(226, 55, 68, 0.35);
  color: #fff;
}

/* Tablet popup */
@media (min-width: 768px) and (max-width: 991.98px) {
  .app-popup-dialog {
    max-width: min(92vw, 720px);
    margin: 1.5rem auto;
  }

  .app-popup-content {
    max-height: min(88vh, 720px);
  }

  .app-popup-scroll {
    padding: 1.35rem;
  }

  .app-popup-visual {
    min-height: 480px;
  }

  .app-phone-mockup--lg .app-phone-screen {
    width: 180px;
    height: 350px;
  }

  .app-popup-float-plate--1 {
    width: 58px;
    height: 58px;
    right: -10px;
  }

  .app-popup-float-plate--2 {
    width: 48px;
    height: 48px;
  }
}

/* Desktop popup — centered */
@media (min-width: 768px) {
  .app-popup-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .app-popup-dialog {
    margin: 0 auto;
    width: 100%;
    animation: appPopupEnterDesktop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes appPopupEnterDesktop {
    from {
      opacity: 0;
      transform: scale(0.94) translateY(12px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  .app-popup-scroll {
    padding: 1.75rem 1.75rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-popup-food-photo,
  .app-popup-glow,
  .app-popup-float-plate--1,
  .app-popup-float-plate--2,
  .app-phone-mockup--lg {
    animation: none !important;
  }

  .app-popup-dialog {
    animation: none !important;
  }
}

/* Admin Portal */
.admin-page {
  background: #f1f5f9;
  min-height: 100vh;
}

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--zomato-dark);
}

.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--zomato-red-light);
  color: var(--zomato-red);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(226, 55, 68, 0.2);
}

.admin-login-title {
  font-size: 1.65rem;
}

.admin-input-wrap {
  position: relative;
}

.admin-input-wrap > svg:first-child {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.admin-input {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1px solid #e2e8f0;
}

.admin-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px var(--rose-glow);
}

.admin-eye-btn {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-eye-btn:hover {
  color: var(--primary-red);
}

.admin-back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-back-link:hover {
  color: var(--primary-red);
}

.admin-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-dash-title {
  font-size: 1.25rem;
}

.admin-dash-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  height: 100%;
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-icon svg {
  width: 22px;
  height: 22px;
}

.admin-stat-icon-green {
  background: #ecfdf5;
  color: #16a34a;
}

.admin-stat-icon-blue {
  background: #eff6ff;
  color: #2563eb;
}

.admin-stat-icon-amber {
  background: #fffbeb;
  color: #d97706;
}

.admin-stat-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.2;
}

.admin-stat-val-sm {
  font-size: 0.95rem;
}

.admin-stat-lbl {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
}

.admin-search-wrap {
  position: relative;
  min-width: 240px;
}

.admin-search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.admin-search-input {
  padding-left: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.admin-table thead th {
  background: #f8fafc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 1.25rem;
}

.admin-table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.admin-email-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
}

.admin-email-link:hover {
  text-decoration: underline;
}

.admin-empty svg {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.admin-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

button,
.btn,
a.btn,
.category-btn,
.food-add-btn,
.mobile-nav-item {
  touch-action: manipulation;
}

#customer-reviews .slider-btn {
  border-color: var(--zomato-border) !important;
  background: #fff !important;
  color: var(--text-secondary) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

#customer-reviews .slider-btn:hover {
  background: var(--zomato-red) !important;
  border-color: transparent !important;
  color: #fff !important;
}

@media (hover: none) {
  .food-card:hover,
  .stat-item:hover,
  .step-card:hover,
  .feature-card:hover,
  .contact-card:hover {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1199.98px) {
  .footer-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 768px) {
  .hero-content-panel {
    text-align: left;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 991.98px) {
  :root {
    --navbar-height: 64px;
  }

  .hero-slider {
    min-height: clamp(480px, 75vh, 620px);
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .stat-item {
    padding: 1rem 0.75rem;
  }

  .hero-content {
    padding-bottom: 1rem;
  }

  .hero-controls {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    justify-content: center;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
  }

  .glassy-card {
    margin-top: 0.5rem;
  }

  .admin-header .container > .d-flex:last-child {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  :root {
    --navbar-height: 64px;
    --mobile-nav-height: 68px;
    --3d-x: 0.022em;
    --3d-y: 0.034em;
    --3d-perspective: 520px;
  }

  @keyframes text3dFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg); }
    50% { transform: translate3d(0, -3px, 4px) rotateX(1.5deg); }
  }

  .text-3d-heading {
    transform: perspective(500px) rotateX(10deg) translateY(16px);
  }

  body {
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0));
  }

  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1025;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(241, 245, 249, 0.95);
    padding: 0.25rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.08);
  }

  .mobile-nav-cart .mobile-nav-icon,
  .mobile-nav-app .mobile-nav-icon {
    background: linear-gradient(145deg, var(--brand-red), var(--brand-red-dark) 70%, var(--brand-gold) 130%);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin-top: -14px;
    box-shadow: 0 6px 22px rgba(214, 40, 57, 0.45);
    border: 3px solid #fff;
  }

  .mobile-nav-cart .mobile-nav-icon svg,
  .mobile-nav-app .mobile-nav-icon svg {
    stroke: #fff;
  }

  .mobile-nav-cart,
  .mobile-nav-app {
    color: var(--zomato-red);
  }

  .cart-drawer {
    width: 100%;
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    max-height: 90vh;
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(100%);
    box-shadow: 0 -16px 48px rgba(15, 23, 42, 0.15);
    z-index: 1100;
  }

  .cart-overlay {
    z-index: 1090;
  }

  .cart-drawer.open {
    transform: translateY(0);
  }

  .app-popup-fab {
    bottom: calc(var(--mobile-nav-height) + 0.75rem + env(safe-area-inset-bottom, 0));
    right: max(1rem, env(safe-area-inset-right, 0));
    z-index: 1020;
  }

  /* Mobile popup — bottom sheet */
  .app-popup-modal {
    --bs-modal-margin: 0;
  }

  .app-popup-modal.show {
    display: flex !important;
    align-items: flex-end;
    padding: 0 !important;
  }

  .app-popup-dialog {
    margin: 0;
    width: 100%;
    max-width: 100%;
    align-self: flex-end;
    animation: appPopupEnterMobile 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes appPopupEnterMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .app-popup-content {
    border-radius: 1.35rem 1.35rem 0 0;
    max-height: min(92dvh, 720px);
    box-shadow: 0 -16px 56px rgba(15, 23, 42, 0.22);
  }

  .app-popup-scroll {
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0));
    max-height: calc(92dvh - 220px);
  }

  .app-popup-mobile-hero {
    min-height: 200px;
  }

  .app-popup-mobile-inner {
    padding: 0.15rem 1rem 1rem;
  }

  .app-popup-mobile-inner--phone {
    gap: 0.75rem;
  }

  .app-popup-chips {
    gap: 0.35rem;
  }

  .app-popup-chip {
    font-size: 0.68rem;
    padding: 0.28rem 0.55rem;
  }

  .app-popup-close {
    top: 0.55rem;
    right: 0.55rem;
    width: 36px;
    height: 36px;
  }

  .app-popup-input {
    min-height: 46px;
    font-size: 16px;
  }

  .app-popup-input[type="textarea"],
  textarea.app-popup-input {
    min-height: 72px;
  }

  #appRegisterBtn {
    min-height: 48px;
  }

  #main-footer {
    padding-bottom: 1rem !important;
  }

  #mobileMenuCollapse {
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  }

  #mobileMenuCollapse .btn {
    border-radius: 0.75rem !important;
  }

  #main-navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none !important;
    box-shadow: 0 1px 0 rgba(226, 232, 240, 0.9), 0 10px 32px rgba(15, 23, 42, 0.05) !important;
  }

  #main-navbar .container {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-top: 0.85rem;
    padding-bottom: 0.65rem;
  }

  .navbar-actions {
    margin-left: auto;
    flex-shrink: 0;
    width: auto;
    justify-content: flex-end;
    gap: 0.5rem !important;
  }

  .navbar-icon-btn {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 8px !important;
    background: #fff;
    border-color: var(--zomato-border) !important;
    color: var(--zomato-black) !important;
  }

  .search-wrap {
    max-width: 100%;
    flex: 1;
  }

  #main-navbar .brand-logo-wrap {
    flex-shrink: 0;
  }

  .brand-logo-nav {
    height: 36px;
  }

  .mobile-search-bar {
    background: transparent;
    border-top: none;
    padding-top: 0 !important;
    margin-top: -0.15rem;
    padding-bottom: 0.85rem !important;
  }

  .mobile-search-bar .form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-search-bar .form-control:focus {
    background: #fff;
    border-color: var(--zomato-red);
    box-shadow: 0 0 0 3px var(--rose-glow);
  }

  .hero-slider {
    display: flex;
    flex-direction: column;
    min-height: auto;
    border-radius: 0 0 1.5rem 1.5rem;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(214, 40, 57, 0.08);
    background: var(--brand-cream);
  }

  .hero-slides {
    position: relative;
    inset: auto;
    height: clamp(200px, 42vw, 270px);
    flex-shrink: 0;
    border-radius: 0 0 1.25rem 1.25rem;
    overflow: hidden;
  }

  .hero-slide {
    border-radius: 0 0 1.25rem 1.25rem;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 251, 247, 0.05) 0%,
      rgba(255, 251, 247, 0.35) 55%,
      rgba(255, 251, 247, 0.92) 100%
    );
  }

  .hero-controls {
    position: absolute;
    bottom: 0.65rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    margin: 0;
    padding: 0;
    width: max-content;
  }

  .hero-nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 40, 57, 0.15);
    color: var(--brand-red);
    box-shadow: 0 4px 12px rgba(214, 40, 57, 0.12);
  }

  .hero-nav-btn:hover {
    background: var(--brand-red);
    color: #fff;
  }

  .hero-dot {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(214, 40, 57, 0.2);
  }

  .hero-dot.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
  }

  .hero-content {
    position: relative;
    z-index: 10;
    margin-top: -1.25rem;
    padding: 0 0 1.25rem;
  }

  .hero-content-panel {
    background: linear-gradient(165deg, #ffffff 0%, var(--brand-cream) 55%, #fff8f0 100%);
    border-radius: 1.35rem;
    padding: 1.25rem 1rem 1.1rem;
    box-shadow:
      0 4px 24px rgba(214, 40, 57, 0.08),
      0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border: 1px solid rgba(244, 162, 97, 0.28);
    text-align: center;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.4rem 0.85rem;
    letter-spacing: 0.05em;
    background: var(--brand-gold-soft);
    color: var(--brand-red);
    border: 1px solid rgba(214, 40, 57, 0.12);
    backdrop-filter: none;
    display: inline-flex;
    margin: 0 auto 0.5rem;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.2);
  }

  .hero-badge span {
    white-space: normal;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7.5vw, 2.05rem);
    letter-spacing: -0.03em;
    margin: 0.5rem 0 0.65rem;
    text-shadow: none;
    line-height: 1.2;
  }

  .hero-content-panel .text-3d-line {
    color: var(--brand-ink);
    text-shadow:
      0 1px 0 #ffffff,
      0 2px 0 rgba(214, 40, 57, 0.1),
      0 4px 12px rgba(244, 162, 97, 0.15);
    animation: text3dEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(0.1s + var(--line, 0) * 0.12s);
  }

  .hero-content-panel .text-3d-line::before {
    color: rgba(214, 40, 57, 0.2);
    opacity: 1;
  }

  .hero-content-panel .text-3d-line::after {
    color: rgba(244, 162, 97, 0.25);
  }

  .hero-content-panel .text-3d-gold {
    color: transparent;
    background: linear-gradient(135deg, var(--brand-red) 0%, #E85D4C 45%, var(--brand-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 6px rgba(214, 40, 57, 0.12));
  }

  .hero-content-panel .text-3d-gold::before,
  .hero-content-panel .text-3d-gold::after {
    display: none;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    max-width: 100%;
    text-align: center;
  }

  .hero-app-cta {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    margin-top: 0;
  }

  .glassy-card {
    animation: none;
    margin-top: 1rem;
    border: 1px solid rgba(244, 63, 94, 0.2);
    box-shadow: 0 16px 48px rgba(225, 29, 72, 0.14);
    background: rgba(255, 255, 255, 0.97);
  }

  .stats-bar {
    background: transparent;
    padding: 0.5rem 0 1.25rem !important;
    margin-top: 0;
    position: relative;
    z-index: 4;
  }

  .stats-bar .container {
    padding-top: 0.25rem;
  }

  .stats-bar .stat-item {
    background: #fff;
    border: 1px solid rgba(226, 55, 68, 0.1);
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }

  .stats-bar .stat-item:hover {
    transform: none;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    margin-bottom: 0.5rem;
  }

  .stat-icon svg {
    width: 16px;
    height: 16px;
  }

  .stats-bar .stat-item h3 {
    color: var(--zomato-red);
    font-size: 1.2rem;
  }

  .stats-bar .stat-item p {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
  }

  #menu-categories {
    border-radius: 1.5rem 1.5rem 0 0;
    margin-top: -0.5rem;
    padding-top: 1.25rem !important;
    padding-bottom: 0.85rem !important;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.06) !important;
    border-bottom: none !important;
    position: relative;
    z-index: 5;
    background: #fff !important;
  }

  .stats-bar .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }

  #menu-categories h2 {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .category-scroll-wrap::before,
  .category-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0.5rem;
    width: 1.5rem;
    z-index: 2;
    pointer-events: none;
  }

  .category-scroll-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #fff 30%, transparent);
  }

  .category-scroll-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #fff 30%, transparent);
  }

  .category-scroll {
    padding: 0.25rem 0.25rem 0.65rem;
    gap: 0.6rem;
  }

  .category-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }

  .category-btn.active {
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.28);
  }

  .mobile-menu-section {
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
    background: var(--zomato-surface) !important;
  }

  .mobile-menu-section .section-header,
  .steps-section .section-header,
  .contact-section .section-header {
    text-align: left;
    margin-bottom: 1.5rem;
  }

  .mobile-menu-section .section-header .section-title::after,
  .steps-section .section-header .section-title::after,
  .contact-section .section-header .section-title::after {
    margin-left: 0;
    margin-right: auto;
  }

  .mobile-menu-section .section-label,
  .mobile-menu-section .section-title,
  .mobile-menu-section .section-subtitle,
  .steps-section .section-label,
  .steps-section .section-title,
  .steps-section .section-subtitle,
  .contact-section .section-label,
  .contact-section .section-title,
  .contact-section .section-subtitle {
    text-align: left;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mobile-menu-section .section-title,
  .steps-section .section-title,
  .contact-section .section-title {
    font-size: 1.65rem;
  }

  .mobile-menu-section .section-subtitle,
  .steps-section .section-subtitle,
  .contact-section .section-subtitle {
    font-size: 0.92rem;
  }

  #customer-reviews .section-header {
    margin-bottom: 2rem;
  }

  .features-section .section-header-left .section-title::after {
    margin-left: 0;
  }

  #foodGridContainer {
    --bs-gutter-y: 0.75rem;
  }

  #foodGridContainer > [class*="col-"] {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .food-card {
    flex-direction: column;
    align-items: stretch;
    border-radius: 0.85rem;
    overflow: hidden;
  }

  .food-card:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }

  .food-image-container {
    width: 100%;
    min-width: 100%;
    height: 118px;
    min-height: 118px;
    flex-shrink: 0;
    border-radius: 0;
  }

  .food-image-container .badge-tag {
    display: inline-flex;
  }

  .food-image-container .prep-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
  }

  .food-image-container .position-absolute[style*="bottom"] {
    bottom: 6px !important;
    right: 6px !important;
  }

  .food-card > .food-card-body {
    padding: 0.65rem 0.7rem !important;
    flex: 1;
    min-width: 0;
  }

  .food-card-info {
    margin-bottom: 0 !important;
  }

  .food-card-title {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .food-rating-badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
  }

  .food-card-desc {
    -webkit-line-clamp: 2;
    font-size: 0.78rem;
    line-height: 1.45;
    overflow: hidden;
    margin-bottom: 0;
  }

  .food-card-actions {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid #f1f5f9 !important;
  }

  .food-card-price {
    font-size: 1rem !important;
  }

  .food-order-app-btn {
    font-size: 0.68rem;
    padding: 0.35rem 0.5rem !important;
    min-height: 32px;
  }

  .food-order-short {
    display: inline;
  }

  .food-order-long {
    display: none;
  }

  .app-order-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .app-order-banner-text {
    align-items: center;
  }

  .app-order-banner-btn {
    width: 100%;
    justify-content: center;
  }

  .contact-wrapper {
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  }

  .contact-info-panel .position-relative {
    padding: 1.5rem !important;
  }

  .contact-card {
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
  }

  .contact-card:active {
    transform: scale(0.98);
  }

  .contact-cta-panel {
    padding: 1.5rem !important;
    text-align: center;
  }

  .contact-cta-panel h3,
  .contact-cta-panel > p {
    text-align: center;
  }

  .trust-pill {
    justify-content: center;
    width: 100%;
  }

  .footer-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .footer-social {
    justify-content: center !important;
  }

  #main-footer {
    padding-bottom: 0.5rem !important;
  }

  .footer-apps {
    flex-direction: column;
  }

  .store-badge {
    width: 100%;
  }

  .contact-trust-row {
    flex-direction: column;
  }

  .contact-action-btns {
    flex-direction: column;
  }

  .contact-action-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-top {
    text-align: center;
  }

  .footer-top .text-lg-end {
    text-align: center !important;
  }

  .footer-top .btn {
    width: 100%;
    max-width: 280px;
  }

  .app-popup-fab span {
    display: none;
  }

  .app-popup-fab {
    padding: 0.85rem;
    border-radius: 50%;
  }

  .admin-search-wrap {
    width: 100%;
    min-width: 0;
  }

  .admin-header .container {
    gap: 1rem;
  }

  .admin-header-actions {
    width: 100%;
  }

  .admin-header-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
  }

  .admin-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
    word-break: break-word;
  }

  .admin-table tbody td:last-child {
    border-bottom: none;
    justify-content: flex-end;
    padding-top: 0.75rem;
  }

  .admin-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: left;
    flex-shrink: 0;
  }

  .admin-table tbody td[data-label="#"]::before,
  .admin-table tbody td[data-label="Action"]::before {
    display: none;
  }

  .admin-table tbody td[data-label="#"] {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-bottom: 0;
    border-bottom: none;
    justify-content: flex-start;
  }

  .admin-table tbody td.text-nowrap {
    white-space: normal;
  }

  .admin-table-card .table-responsive {
    padding: 0 1rem 1rem;
  }

  .legal-breadcrumb-bar .text-xs {
    font-size: 0.7rem;
  }

  .legal-breadcrumb-bar .btn span {
    font-size: 0.8rem;
  }

  .food-card-desc {
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .steps-section,
  .features-section,
  #customer-reviews,
  .contact-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .step-card,
  .feature-card {
    border-radius: 1.1rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  }

  .testimonial-card {
    padding: 1.5rem !important;
  }

  .slider-controls {
    align-self: flex-start;
  }
}

@media (max-width: 575.98px) {
  .app-popup-content {
    max-height: min(94dvh, 680px);
  }

  .app-popup-scroll {
    max-height: calc(94dvh - 210px);
    padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0));
  }

  .app-popup-mobile-hero {
    min-height: 188px;
  }

  .app-popup-mobile-hero .app-popup-title {
    font-size: 1.15rem;
  }

  .app-phone-mockup--sm .app-phone-screen {
    width: 96px;
    height: 178px;
  }

  .app-popup-chip:nth-child(3) {
    display: none;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-locate-long {
    display: none;
  }

  .hero-locate-short {
    display: inline;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-card,
  .step-card {
    flex: 0 0 82vw;
    scroll-snap-align: center;
  }

  .features-track,
  .steps-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .checkout-btn-long {
    display: none;
  }

  .checkout-btn-short {
    display: inline;
  }

  .cart-drawer .p-4 {
    padding: 1rem !important;
  }

  #cartHeaderTitle {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .legal-breadcrumb-bar {
    flex-direction: column;
    align-items: stretch !important;
  }

  .legal-breadcrumb-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-stat-card {
    padding: 1rem;
  }

  .admin-stat-val {
    font-size: 1.15rem;
  }

  .admin-header-actions .admin-btn-label {
    display: none;
  }

  .admin-header-actions .btn {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .admin-login-card {
    padding: 1.5rem;
  }
}

@media (max-width: 374.98px) {
  :root {
    --mobile-nav-height: 64px;
    --3d-x: 0.015em;
    --3d-y: 0.025em;
    --3d-perspective: 400px;
  }

  .hero-content-panel {
    padding: 1.1rem 0.85rem 1rem;
    border-radius: 1.2rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-slides {
    height: clamp(180px, 40vw, 220px);
  }

  .text-3d-line::before,
  .text-3d-line::after {
    display: none;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .navbar-actions {
    gap: 0.35rem !important;
  }

  .navbar-icon-btn {
    width: 38px;
    height: 38px;
  }

  .stat-item h3 {
    font-size: 1.2rem;
  }

  .hero-nav-btn {
    width: 38px;
    height: 38px;
  }

  .mobile-nav-item {
    font-size: 0.58rem;
  }

  .mobile-nav-icon {
    width: 34px;
    height: 28px;
  }

  .food-image-container {
    height: 108px;
    min-height: 108px;
    width: 100%;
    min-width: 100%;
  }

  .food-card-title {
    font-size: 0.82rem;
  }
}

@media print {
  header, footer, .cart-drawer, .cart-overlay, #menu-categories, .features-section, .steps-section, #customer-reviews, .hero-slider, .stats-bar, .contact-section, .mobile-bottom-nav {
    display: none !important;
  }
  main {
    margin: 0 !important;
    padding: 0 !important;
  }
  .legal-sidebar {
    display: none !important;
  }
}

/* Zomato palette — Bootstrap utility overrides */
.bg-danger-subtle {
  background-color: var(--zomato-red-light) !important;
}

.text-danger,
.text-rose-600,
.text-accent {
  color: var(--zomato-red) !important;
}

.border-danger-subtle {
  border-color: rgba(226, 55, 68, 0.2) !important;
}

.btn-outline-danger {
  color: var(--zomato-red);
  border-color: var(--zomato-red);
  border-radius: 8px;
}

.btn-outline-danger:hover {
  background: var(--zomato-red);
  border-color: var(--zomato-red);
}

#spinnerProgressCircle,
#truckProgressBar {
  stroke: var(--zomato-red);
}

#truckProgressBar {
  background: rgba(226, 55, 68, 0.08) !important;
  border-right-color: var(--zomato-red) !important;
}

.testimonial-quote-mark {
  color: var(--zomato-red-light) !important;
  opacity: 0.6;
}

.legal-page {
  background-color: var(--zomato-surface);
}

.admin-page {
  background: var(--zomato-surface);
}

/* Customer auth modal */
.auth-modal .modal-content {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
}

.auth-modal-dialog {
  max-width: 440px;
  margin: 0.75rem auto;
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
}

.auth-modal-body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 0.75rem !important;
  padding-bottom: 0.5rem !important;
}

.auth-modal-body .mb-3 {
  margin-bottom: 0.65rem !important;
}

.auth-modal-body .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.auth-modal-footer {
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid #eee;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.auth-modal-footer .btn {
  min-height: 48px;
}

.auth-form-stack .auth-input,
.auth-input {
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  border-color: #e8e8e8;
  font-size: 16px;
  min-height: 44px;
}

textarea.auth-input {
  min-height: 56px;
}

.auth-modal-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: #d8d8d8;
  margin: 0.65rem auto 0;
  flex-shrink: 0;
}

.auth-input:focus {
  border-color: var(--zomato-red, #e23744);
  box-shadow: 0 0 0 0.2rem rgba(226, 55, 68, 0.15);
}

.auth-tabs {
  background: #f4f4f2;
  padding: 4px;
  border-radius: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font-weight: 700;
  color: #696969;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-tab.active {
  background: #fff;
  color: var(--zomato-red, #e23744);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-switch-link:hover {
  text-decoration: underline !important;
}

.nav-auth-chip {
  background: #fff5f6;
  color: var(--zomato-red, #e23744);
  border: 1px solid #fcdde0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.875rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#navAuthCompact.is-logged-in {
  background: #fff5f6;
  border-color: #fcdde0 !important;
  color: var(--zomato-red, #e23744) !important;
}

#navAuthCompact.is-logged-in i,
#navAuthCompact.is-logged-in svg {
  color: var(--zomato-red, #e23744) !important;
  stroke: var(--zomato-red, #e23744);
}

#userSignupBtn,
#userLoginBtn {
  min-height: 48px;
}

body.modal-open .app-popup-fab,
body.modal-open .mobile-bottom-nav {
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .nav-auth-btn {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    font-size: 0.85rem;
  }

  #main-navbar .navbar-actions > .search-wrap {
    max-width: min(220px, 28vw);
  }
}

@media (max-width: 767.98px) {
  .auth-modal {
    --bs-modal-margin: 0;
  }

  .auth-modal.show {
    display: flex !important;
    align-items: flex-end;
    padding: 0 !important;
  }

  .auth-modal-dialog {
    margin: 0;
    width: 100%;
    max-width: 100%;
    align-self: flex-end;
  }

  .auth-modal-content,
  .auth-modal .modal-content {
    border-radius: 1.25rem 1.25rem 0 0 !important;
    max-height: min(92dvh, 760px);
    box-shadow: 0 -16px 48px rgba(15, 23, 42, 0.18);
  }

  .auth-modal .modal-title {
    font-size: 1.25rem;
  }

  .hero-address-form .col-12,
  .hero-address-form [class*="col-"] {
    width: 100%;
    max-width: 100%;
  }

  .hero-address-form .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .navbar-actions {
    gap: 0.4rem !important;
    flex-shrink: 0;
  }

  .mobile-search-bar .search-wrap {
    max-width: 100% !important;
    width: 100%;
    flex: 1 1 auto;
  }

  .mobile-bottom-nav .mobile-nav-item {
    min-width: 0;
    flex: 1;
    font-size: 0.68rem;
  }
}

@media (max-width: 575.98px) {
  .nav-auth-chip {
    max-width: 100px;
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }
}

@media (max-width: 374.98px) {
  .brand-logo-nav {
    height: 32px;
  }

  .navbar-icon-btn {
    width: 36px;
    height: 36px;
  }
}

/* ===== My Profile page (3D styled) ===== */
.profile-page-body {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(214, 40, 57, 0.08), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(214, 40, 57, 0.05), transparent 55%),
    #f6f7fb;
  min-height: 100vh;
}

.profile-main {
  perspective: 1400px;
}

/* Hero */
.profile-hero {
  box-shadow:
    0 24px 48px -18px rgba(122, 21, 32, 0.45),
    0 6px 18px rgba(214, 40, 57, 0.25);
}

.profile-hero-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.04) 70%);
  filter: blur(2px);
  pointer-events: none;
  animation: profileOrbFloat 9s ease-in-out infinite;
}

.profile-hero-orb-1 { width: 180px; height: 180px; top: -60px; right: 8%; }
.profile-hero-orb-2 { width: 90px; height: 90px; bottom: -30px; right: 30%; animation-delay: -3s; }
.profile-hero-orb-3 { width: 120px; height: 120px; top: 20%; left: -40px; animation-delay: -6s; }

@keyframes profileOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -16px, 20px) scale(1.06); }
}

.profile-avatar-ring {
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.9));
  animation: profileRingSpin 10s linear infinite;
}

@keyframes profileRingSpin {
  to { transform: rotate(360deg); }
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.25), 0 10px 24px rgba(0, 0, 0, 0.25);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  animation: profileRingSpin 10s linear infinite reverse;
}

.profile-stat-chip {
  min-width: 92px;
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.profile-stat-chip:hover {
  box-shadow: 0 18px 32px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.profile-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.3);
}

.profile-stat-lbl {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Sidebar nav */
.profile-nav-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 36px -20px rgba(15, 23, 42, 0.3);
}

.profile-tab-btn {
  border: 1px solid transparent;
  color: #475569;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.profile-tab-btn:hover {
  background: #fff1f2;
  color: var(--brand-red);
  transform: translateX(4px);
}

.profile-tab-btn.active {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(214, 40, 57, 0.55);
  transform: translateX(4px) translateZ(6px);
}

.profile-tab-btn.active:hover {
  color: #fff;
}

/* Content card */
.profile-content-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 30px 60px -30px rgba(15, 23, 42, 0.35),
    0 8px 20px -12px rgba(214, 40, 57, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.profile-pane {
  animation: profilePaneIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes profilePaneIn {
  from {
    opacity: 0;
    transform: perspective(800px) rotateX(6deg) translateY(18px);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateY(0);
  }
}

.profile-pane-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.profile-pane-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-red), var(--brand-red-dark));
  box-shadow: 0 8px 18px -6px rgba(214, 40, 57, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.profile-pane-icon svg {
  width: 18px;
  height: 18px;
}

.profile-save-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(214, 40, 57, 0.6);
}

/* Cards rendered inside panes (addresses / orders) */
.profile-content-card .border.rounded-3 {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  background: #fff;
}

.profile-content-card .border.rounded-3:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -14px rgba(15, 23, 42, 0.35);
}

/* Entrance animation */
.profile-rise {
  opacity: 0;
  animation: profileRiseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.profile-rise-delay-1 { animation-delay: 0.12s; }
.profile-rise-delay-2 { animation-delay: 0.22s; }

@keyframes profileRiseIn {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateX(8deg) translateY(34px);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0);
  }
}

@media (max-width: 767.98px) {
  .profile-hero h1 { font-size: 1.6rem; }
  .profile-avatar { width: 64px; height: 64px; font-size: 1.5rem; }
  .profile-stat-row { width: 100%; }
  .profile-stat-chip { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-rise,
  .profile-pane,
  .profile-hero-orb,
  .profile-avatar-ring,
  .profile-avatar {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Live delivery tracking map */
.order-map-wrap {
  width: 100%;
  height: 260px;
  background: #eef2f7;
}

.order-map-canvas {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.order-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

.zosr-courier-marker,
.zosr-dest-marker {
  background: transparent;
  border: none;
}

.zosr-courier-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f43f5e;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.35), 0 2px 6px rgba(15, 23, 42, 0.25);
}

.zosr-dest-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.3);
}

@media (min-width: 768px) {
  .order-map-wrap {
    height: 320px;
  }
}

/* —— Admin UI refresh (catalog, offers, dashboard) —— */
.admin-page {
  background:
    radial-gradient(ellipse 100% 80% at 100% 0%, rgba(244, 162, 97, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(214, 40, 57, 0.08) 0%, transparent 50%),
    #f8f4f0;
  min-height: 100vh;
}

.admin-login-wrap {
  background:
    radial-gradient(circle at 20% 20%, rgba(214, 40, 57, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(244, 162, 97, 0.2) 0%, transparent 40%),
    linear-gradient(145deg, #1b1b2f 0%, #3a1218 55%, #641220 100%);
}

.admin-login-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.admin-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 40, 57, 0.08);
  box-shadow: 0 4px 24px rgba(27, 27, 47, 0.06);
}

.admin-stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(27, 27, 47, 0.05);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(214, 40, 57, 0.1);
}

.admin-table-card-elevated {
  box-shadow: 0 8px 32px rgba(27, 27, 47, 0.06);
  border-color: rgba(214, 40, 57, 0.06);
}

.admin-table-card-head {
  background: linear-gradient(180deg, #fff 0%, #fffbF7 100%);
}

.admin-form-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fffbf7 100%);
  border: 1px solid rgba(214, 40, 57, 0.1);
  border-radius: 1.25rem;
  padding: 1.35rem;
  box-shadow: 0 10px 36px rgba(27, 27, 47, 0.07);
  height: 100%;
  overflow: visible;
}

.admin-select-wrap {
  position: relative;
  z-index: 2;
}

.admin-select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--brand-red);
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .admin-select.form-select {
    appearance: auto;
    -webkit-appearance: menulist;
    background-image: none !important;
    padding-right: 2rem !important;
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    min-height: 46px;
  }

  .admin-select-wrap::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .admin-select.form-select {
    appearance: none;
    -webkit-appearance: none;
    font-size: 16px;
    min-height: 48px;
  }
}

.admin-section-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
}

.admin-section-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff0f2 0%, #ffe8ec 100%);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(214, 40, 57, 0.12);
}

.admin-section-icon svg {
  width: 22px;
  height: 22px;
}

.admin-section-icon-gold {
  background: linear-gradient(135deg, #fff8eb 0%, #ffedd5 100%);
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(244, 162, 97, 0.35);
}

.catalog-mode-toggle {
  background: #f3efe9;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(214, 40, 57, 0.08);
}

.catalog-mode-toggle .auth-tab {
  flex: 1;
  border-radius: 999px !important;
  font-size: 0.82rem;
  padding: 0.62rem 0.75rem;
  box-shadow: none !important;
}

.catalog-mode-toggle .auth-tab.active {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(214, 40, 57, 0.35) !important;
}

.admin-form-stack .form-label {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.admin-field,
.admin-select {
  border-radius: 0.85rem !important;
  border: 1px solid #e8dfd6 !important;
  padding: 0.72rem 0.95rem !important;
  background: #fff;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-select {
  font-weight: 600;
  color: var(--brand-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23D62839' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px;
  padding-right: 2.25rem !important;
}

.admin-field:focus,
.admin-select:focus {
  border-color: var(--brand-red) !important;
  box-shadow: 0 0 0 3px var(--rose-glow) !important;
}

.admin-input.admin-field {
  padding-left: 0.95rem !important;
}

.catalog-parent-row {
  background: linear-gradient(90deg, rgba(255, 240, 242, 0.95) 0%, #fff 100%) !important;
}

.catalog-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(214, 40, 57, 0.1);
}

.catalog-thumb-lg {
  width: 42px;
  height: 42px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.admin-pill-category {
  background: #fff0f2;
  color: var(--brand-red-dark);
  border: 1px solid rgba(214, 40, 57, 0.15);
}

.admin-pill-item {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.15);
}

.admin-table tbody tr {
  transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
  background: #fffaf7;
}

.admin-page .auth-tabs {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(214, 40, 57, 0.08);
  box-shadow: 0 4px 20px rgba(27, 27, 47, 0.04);
  backdrop-filter: blur(8px);
}

.admin-page .auth-tab.active {
  background: linear-gradient(135deg, #fff 0%, #fff5f6 100%);
  color: var(--brand-red);
  box-shadow: 0 2px 10px rgba(214, 40, 57, 0.12);
}

.food-card {
  box-shadow: 0 4px 20px rgba(27, 27, 47, 0.06);
}

.food-card:hover {
  box-shadow: 0 14px 36px rgba(214, 40, 57, 0.14);
  border-color: rgba(214, 40, 57, 0.2);
}

.category-btn {
  box-shadow: 0 2px 10px rgba(27, 27, 47, 0.05);
}

.category-btn.active {
  box-shadow: 0 8px 24px rgba(214, 40, 57, 0.35);
}

/* Customer UI polish — navbar, cart, mobile nav */
#main-navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(27, 27, 47, 0.08) !important;
}

.cart-drawer-head {
  background: linear-gradient(135deg, #fff 0%, #fff5f6 55%, #fff0f2 100%) !important;
  border-bottom-color: rgba(214, 40, 57, 0.1) !important;
}

.cart-drawer-head .badge {
  background: #fff !important;
  border-color: rgba(214, 40, 57, 0.15) !important;
  color: var(--brand-red) !important;
  font-weight: 700;
}

.cart-item-row {
  border-radius: 1rem;
  border: 1px solid var(--zomato-border);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cart-item-row:hover {
  border-color: rgba(214, 40, 57, 0.15);
  box-shadow: 0 4px 16px rgba(27, 27, 47, 0.06);
}

.mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(214, 40, 57, 0.08);
  box-shadow: 0 -8px 32px rgba(27, 27, 47, 0.08);
}

.mobile-nav-item.active .mobile-nav-icon {
  background: linear-gradient(135deg, #fff0f2 0%, #ffe8ec 100%);
  box-shadow: inset 0 0 0 1px rgba(214, 40, 57, 0.12);
}

.step-card {
  box-shadow: 0 6px 24px rgba(27, 27, 47, 0.06);
  border-color: rgba(214, 40, 57, 0.08);
}

.step-card:hover {
  box-shadow: 0 14px 36px rgba(214, 40, 57, 0.12);
}

.step-number {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  box-shadow: 0 6px 18px rgba(214, 40, 57, 0.35);
}

.feature-card {
  border-color: rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* Admin empty states & action buttons */
.admin-empty-state {
  padding: 1.5rem 1rem;
  color: var(--text-muted);
}

.admin-empty-state svg {
  width: 40px;
  height: 40px;
  color: var(--brand-red);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.admin-table .btn-sm {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
}

.admin-badge {
  background: linear-gradient(135deg, rgba(214, 40, 57, 0.12) 0%, rgba(244, 162, 97, 0.15) 100%);
  border: 1px solid rgba(214, 40, 57, 0.15);
}

.admin-login-card {
  animation: adminCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff0f2 0%, #ffe8ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(214, 40, 57, 0.1);
}

.cart-empty-icon svg {
  width: 32px;
  height: 32px;
  color: var(--brand-red);
  opacity: 0.7;
}

.cart-item-row img {
  border: 1px solid rgba(214, 40, 57, 0.08);
}

@keyframes adminCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Admin + portal responsive layout */
@media (max-width: 1199.98px) {
  .admin-page .auth-tabs {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem !important;
    padding-bottom: 0.35rem;
  }

  .admin-page .auth-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-page .auth-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.55rem 0.85rem;
  }

  .admin-form-panel {
    height: auto;
  }
}

@media (max-width: 991.98px) {
  .admin-header .container {
    gap: 0.75rem !important;
  }

  .admin-dash-title {
    font-size: 1.35rem;
  }

  .admin-table-card-head {
    padding: 1rem !important;
  }

  .admin-table .btn-sm {
    margin-bottom: 0.2rem;
  }

  .admin-login-card[style*="max-width"] {
    max-width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .admin-header .container {
    flex-direction: column;
    align-items: stretch !important;
  }

  .admin-header .d-flex.flex-wrap.gap-2 {
    width: 100%;
  }

  .admin-header .d-flex.flex-wrap.gap-2 .btn {
    flex: 1;
  }

  .admin-stat-card {
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .admin-stat-icon {
    width: 40px;
    height: 40px;
  }

  .admin-stat-val {
    font-size: 1.1rem;
  }

  .catalog-mode-toggle .auth-tab {
    font-size: 0.72rem;
    padding: 0.55rem 0.45rem;
  }

  .admin-table thead th,
  .admin-table tbody td {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  .admin-pill {
    font-size: 0.65rem;
    padding: 0.22rem 0.5rem;
  }

  .admin-form-panel {
    padding: 1rem;
  }

  .admin-section-icon {
    width: 40px;
    height: 40px;
  }

  .admin-page main.container {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
}

@media (max-width: 575.98px) {
  .admin-table-card .table-responsive {
    margin: 0 -0.25rem;
  }

  .admin-table .text-nowrap {
    white-space: normal !important;
  }

  .catalog-thumb,
  .catalog-thumb-lg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 374.98px) {
  .admin-page .auth-tab {
    font-size: 0.7rem;
    padding: 0.5rem 0.65rem;
  }
}

/* —— Portal UI v3: responsive + polished —— */
.admin-header-brand {
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-brand::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-gold) 50%, var(--brand-red-dark) 100%);
}

.admin-header-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(214, 40, 57, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(27, 27, 47, 0.06);
  flex-shrink: 0;
}

.admin-header-logo img {
  height: 28px;
  width: auto;
}

.admin-main {
  max-width: 1320px;
}

.admin-stat-card-accent {
  border: 1px solid rgba(214, 40, 57, 0.08);
  background: linear-gradient(135deg, #fff 0%, #fffbf7 100%);
}

.admin-stat-card-compact .admin-stat-val {
  font-size: 1.2rem;
}

.admin-tabs-shell {
  position: relative;
}

.admin-nav-tabs {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(214, 40, 57, 0.08);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 4px 20px rgba(27, 27, 47, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-page .admin-nav-tabs .auth-tab {
  border-radius: 999px !important;
  font-size: 0.82rem;
  padding: 0.58rem 1rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-page .admin-nav-tabs .auth-tab.active {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(214, 40, 57, 0.32);
}

.admin-page .admin-table-card {
  border: 1px solid rgba(214, 40, 57, 0.08);
  border-radius: 1.25rem;
  background: #fff;
  overflow: hidden;
}

.admin-page .admin-table tbody tr:nth-child(even) {
  background: rgba(255, 251, 247, 0.6);
}

.portal-field,
.admin-page .admin-form .form-control.admin-input,
.admin-page .admin-login-card .form-control.admin-input,
.admin-page .admin-form .form-select.admin-input,
.admin-page #loginForm .form-control.admin-input,
.admin-page #applyForm .form-control.admin-input,
.admin-page #statusForm .form-control.admin-input {
  padding: 0.72rem 0.95rem !important;
  border-radius: 0.85rem !important;
  border: 1px solid #e8dfd6 !important;
  background: #fff;
  min-height: 46px;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-field:focus,
.admin-page .admin-form .form-control.admin-input:focus,
.admin-page .admin-login-card .form-control.admin-input:focus {
  border-color: var(--brand-red) !important;
  box-shadow: 0 0 0 3px var(--rose-glow) !important;
}

.portal-info-alert {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.portal-warn-alert {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.1);
}

.portal-danger-alert {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(214, 40, 57, 0.1);
}

.admin-login-wrap {
  padding: clamp(1rem, 4vw, 2rem);
}

.admin-login-card {
  max-width: min(480px, 100%);
}

.admin-login-card[style*="max-width:560px"] {
  max-width: min(560px, 100%) !important;
}

.admin-login-wrap .auth-tabs {
  border-radius: 999px;
  padding: 4px;
}

.admin-login-wrap .auth-tab.active {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(214, 40, 57, 0.28);
}

/* Customer site polish */
#main-navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95) !important;
}

.stats-bar .stat-item {
  border-radius: 1.1rem;
}

.mobile-menu-section {
  padding-top: clamp(2rem, 5vw, 3rem) !important;
  padding-bottom: clamp(2rem, 5vw, 3rem) !important;
}

#foodGridContainer .food-card {
  border-radius: 1.1rem;
}

@media (min-width: 1200px) {
  .admin-page .admin-nav-tabs {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 767.98px) {
  .admin-tabs-shell::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2rem;
    background: linear-gradient(270deg, rgba(248, 244, 240, 0.95), transparent);
    pointer-events: none;
    border-radius: 0 999px 999px 0;
  }

  .admin-nav-tabs {
    border-radius: 1rem;
    padding: 4px;
  }

  .admin-page .admin-nav-tabs .auth-tab {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .admin-header-logo {
    display: none !important;
  }

  .admin-stat-card-compact {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.5rem;
  }

  .admin-stat-card-compact .admin-stat-icon {
    width: 36px;
    height: 36px;
  }

  .admin-stat-card-compact .admin-stat-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (hover: none) {
  .admin-stat-card:hover {
    transform: none;
  }
}

/* —— Admin modern layout (sidebar + compact logo) —— */
.admin-logo-sm {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.admin-login-brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: -0.02em;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 252px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #1b1b2f 0%, #2a1520 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1rem 0.85rem;
  color: #fff;
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

a.admin-sidebar-brand,
a.admin-sidebar-brand:hover,
a.admin-sidebar-brand:focus {
  color: inherit;
  text-decoration: none;
}

button.admin-sidebar-brand:hover,
button.admin-sidebar-brand:focus-visible,
a.admin-sidebar-brand:hover,
a.admin-sidebar-brand:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.admin-sidebar-brand-text {
  line-height: 1.2;
}

.admin-sidebar-brand-text strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.admin-sidebar-brand-text small {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 0.75rem;
  padding: 0.58rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.85;
}

.admin-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-sidebar-link.active {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(214, 40, 57, 0.35);
}

.admin-sidebar-footer {
  padding: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.admin-sidebar-email {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  word-break: break-all;
  margin: 0;
}

.admin-body {
  flex: 1;
  min-width: 0;
  margin-left: 252px;
  display: flex;
  flex-direction: column;
}

.admin-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 40, 57, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.admin-mobile-bar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.admin-menu-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(214, 40, 57, 0.12);
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
}

.admin-menu-btn svg {
  width: 20px;
  height: 20px;
}

.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1035;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-sidebar-backdrop.show {
  display: block;
  opacity: 1;
}

.admin-page .admin-main {
  max-width: 1400px;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

.admin-page .admin-pane {
  animation: adminPaneIn 0.25s ease;
}

@keyframes adminPaneIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-page .admin-table-card {
  border: 1px solid rgba(214, 40, 57, 0.08);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 6px 28px rgba(27, 27, 47, 0.05);
  overflow: hidden;
}

.admin-page .admin-table-card > .p-4.border-bottom,
.admin-page .admin-table-card > .border-bottom.p-4 {
  background: linear-gradient(180deg, #fff 0%, #fffbf7 100%);
}

.admin-page .admin-table-card.p-4 {
  border-radius: 1.15rem;
}

.admin-page .form-select.form-select-sm,
.admin-page .admin-filter-select {
  border-radius: 999px;
  border: 1px solid #e8dfd6;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 36px;
  padding-left: 0.85rem;
  padding-right: 2rem;
}

.admin-page .admin-table .btn-sm {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
}

.admin-page .table-responsive {
  -webkit-overflow-scrolling: touch;
}

.admin-page .admin-table thead th {
  background: #faf7f4;
  position: sticky;
  top: 0;
  z-index: 1;
}

body.admin-sidebar-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-body {
    margin-left: 0;
  }

  .admin-page .admin-stat-row .admin-stat-card {
    padding: 0.75rem;
    gap: 0.65rem;
  }

  .admin-page .admin-stat-val {
    font-size: 1.05rem;
  }

  .admin-page .admin-stat-icon {
    width: 36px;
    height: 36px;
  }

  .admin-page .admin-stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .admin-page .admin-table thead th,
  .admin-page .admin-table tbody td {
    padding: 0.6rem 0.65rem;
    font-size: 0.78rem;
  }

  .admin-page .row.g-4 {
    --bs-gutter-y: 1rem;
  }
}

@media (max-width: 575.98px) {
  .admin-page .admin-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .admin-sidebar {
    width: min(280px, 88vw);
  }

  .admin-page .admin-table .text-nowrap {
    white-space: normal !important;
  }

  .admin-login-card {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-page .admin-pane {
    animation: none;
  }

  .admin-sidebar {
    transition: none;
  }
}

/* —— Admin reference dashboard (light sidebar + top bar) —— */
.admin-layout-ref {
  background: #fdf8f5;
  min-height: 100vh;
}

.admin-sidebar-light {
  background: #fff !important;
  color: var(--brand-ink) !important;
  border-right: 1px solid #ebe4dc !important;
  box-shadow: 2px 0 24px rgba(27, 27, 47, 0.04) !important;
}

.admin-sidebar-light .admin-sidebar-brand {
  color: var(--brand-ink);
  border-bottom-color: #f0ebe4;
  padding: 1.1rem 1rem 0.95rem;
}

.admin-sidebar-light button.admin-sidebar-brand:hover,
.admin-sidebar-light button.admin-sidebar-brand:focus-visible,
.admin-sidebar-light a.admin-sidebar-brand:hover,
.admin-sidebar-light a.admin-sidebar-brand:focus-visible {
  background: #f7f2ed;
}

.admin-sidebar-light .admin-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: -0.02em;
}

.admin-sidebar-light .admin-sidebar-link {
  color: #5c6470;
}

.admin-sidebar-light .admin-sidebar-link svg {
  color: #8b929e;
  opacity: 1;
}

.admin-sidebar-light .admin-sidebar-link:hover {
  background: #f7f2ed;
  color: var(--brand-ink);
}

.admin-sidebar-light .admin-sidebar-link.active {
  background: linear-gradient(135deg, #8b1a1a 0%, #a82222 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 26, 26, 0.28);
}

.admin-sidebar-light .admin-sidebar-link.active svg {
  color: #fff;
}

.admin-sidebar-light .admin-sidebar-footer {
  background: #fff;
  border-top-color: #f0ebe4;
}

.admin-sidebar-logout {
  border: 1.5px solid #8b1a1a !important;
  color: #8b1a1a !important;
  background: #fff !important;
  border-radius: 999px !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.admin-sidebar-logout svg {
  width: 16px;
  height: 16px;
}

.admin-sidebar-logout:hover {
  background: #fff5f5 !important;
  color: #6d1414 !important;
}

.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-nav-group-toggle {
  justify-content: flex-start;
}

.admin-nav-group-toggle .admin-nav-chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.admin-nav-group-toggle[aria-expanded="false"] .admin-nav-chevron {
  transform: rotate(-90deg);
}

.admin-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-left: 0.35rem;
  margin-left: 0.75rem;
  border-left: 2px solid #f0ebe4;
}

.admin-nav-sub.collapsed {
  display: none;
}

.admin-sidebar-sublink {
  padding-left: 1.5rem !important;
  font-size: 0.78rem !important;
}

.admin-nav-divider {
  height: 1px;
  background: #f0ebe4;
  margin: 0.45rem 0.65rem;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(253, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ebe4dc;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.admin-topbar .admin-search-wrap {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.admin-topbar .admin-search-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9ca3af;
  pointer-events: none;
}

.admin-topbar .admin-search-input {
  width: 100%;
  border: 1px solid #e8dfd6;
  border-radius: 999px;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 44px;
}

.admin-topbar .admin-search-input:focus {
  outline: none;
  border-color: #8b1a1a;
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.12);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.admin-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border: 0;
  min-height: 40px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.admin-topbar-btn svg {
  width: 16px;
  height: 16px;
}

.admin-topbar-btn-outline {
  background: #fff;
  border: 1.5px solid #1b1b2f !important;
  color: #1b1b2f;
}

.admin-topbar-btn-outline:hover {
  background: #f7f2ed;
}

.admin-topbar-btn-primary {
  background: linear-gradient(135deg, #8b1a1a 0%, #a82222 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(139, 26, 26, 0.28);
}

.admin-topbar-btn-primary:hover {
  filter: brightness(1.05);
}

.admin-topbar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #5c6470;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-topbar-icon svg {
  width: 20px;
  height: 20px;
}

.admin-topbar-icon:hover {
  background: #f0ebe4;
}

.admin-notif-wrap {
  position: relative;
}

.admin-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #8b1a1a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
}

.admin-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  background: #fff;
  border: 1px solid #e8e0d6;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(27, 27, 47, 0.14);
  z-index: 1200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f0ebe4;
  font-size: 0.9rem;
  color: #1b1b2f;
}

.admin-notif-list {
  overflow-y: auto;
  flex: 1;
  padding: 0.35rem 0;
}

.admin-notif-item {
  display: flex;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.admin-notif-item:hover,
.admin-notif-item:focus-visible {
  background: #faf6f1;
  outline: none;
}

.admin-notif-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f7f2ed;
  color: #8b1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-notif-icon svg {
  width: 16px;
  height: 16px;
}

.admin-notif-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1b1b2f;
  line-height: 1.35;
}

.admin-notif-time {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

.admin-notif-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

.admin-notif-foot {
  padding: 0.65rem 1rem;
  border-top: 1px solid #f0ebe4;
  text-align: center;
}

.admin-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-bulk-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  min-width: 5.5rem;
}

.admin-check-col {
  width: 42px;
  text-align: center;
  vertical-align: middle;
}

.admin-check-col .form-check-input {
  margin: 0;
  cursor: pointer;
}

.admin-topbar-profile {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 999px;
  cursor: default;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b1a1a 0%, #c43030 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-profile-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.admin-profile-chevron {
  width: 14px;
  height: 14px;
  color: #9ca3af;
}

.admin-main-ref {
  flex: 1;
  padding: 1.25rem 1.25rem 2rem;
  max-width: 1440px;
  width: 100%;
}

.admin-stat-ref {
  background: #fff;
  border: 1px solid #ebe4dc;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(27, 27, 47, 0.04);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
}

.admin-stat-icon-red {
  background: #fff0f0;
  color: #8b1a1a;
}

.admin-widget-card {
  background: #fff;
  border: 1px solid #ebe4dc;
  border-radius: 1.15rem;
  box-shadow: 0 6px 28px rgba(27, 27, 47, 0.05);
  overflow: hidden;
}

.admin-widget-head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #f3ede6;
  background: linear-gradient(180deg, #fff 0%, #fffbf8 100%);
}

.admin-widget-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-ink);
  margin: 0;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
}

.admin-widget-body {
  padding: 1rem 1.15rem;
}

.admin-widget-table {
  max-height: 280px;
}

.admin-table-compact thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f3ede6;
}

.admin-table-compact tbody td {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  border-bottom: 1px solid #faf6f2;
  vertical-align: middle;
}

.admin-chart {
  width: 100%;
  height: auto;
  display: block;
}

.admin-pill-status {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-pill-done {
  background: #f3f4f6;
  color: #6b7280;
}

.admin-pill-live {
  background: #ecfdf5;
  color: #047857;
}

.admin-pill-muted {
  background: #fef2f2;
  color: #b91c1c;
}

.dash-activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #faf6f2;
}

.dash-activity-item:last-child {
  border-bottom: 0;
}

.dash-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f7f2ed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8b929e;
}

.dash-activity-icon svg {
  width: 14px;
  height: 14px;
}

.dash-activity-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-ink);
  line-height: 1.35;
}

.dash-activity-time {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

.dash-offer-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #faf6f2;
}

.dash-offer-row:last-child {
  border-bottom: 0;
}

.dash-offer-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff0f0;
  color: #8b1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-offer-icon svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 991.98px) {
  .admin-topbar {
    padding: 0.65rem 0.85rem;
    flex-wrap: wrap;
  }

  .admin-topbar .admin-search-wrap {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin: 0;
  }

  .admin-main-ref {
    padding: 1rem 0.85rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .admin-stat-ref {
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .admin-widget-head {
    padding: 0.85rem;
  }

  .admin-widget-body {
    padding: 0.85rem;
  }
}

/* —— Platform offer popup (customer + admin preview) —— */
.offer-popup-modal {
  --bs-modal-zindex: 1062;
}

.offer-popup-dialog {
  max-width: min(420px, 92vw);
  margin: 1rem auto;
}

.offer-popup-content {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 64px rgba(27, 27, 47, 0.18);
  position: relative;
}

.offer-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1b1b2f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.offer-popup-close svg {
  width: 18px;
  height: 18px;
}

.offer-popup-hero {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #fff0f0 0%, #fdf8f5 100%);
  overflow: hidden;
}

.offer-popup-hero--noimg {
  height: 120px;
}

.offer-popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-popup-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.offer-popup-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(139, 26, 26, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.offer-popup-badge svg {
  width: 14px;
  height: 14px;
}

.offer-popup-body {
  padding: 1.15rem 1.25rem 1.25rem;
}

.offer-popup-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-ink);
}

.offer-popup-price {
  font-size: 1.25rem;
  color: #8b1a1a;
  white-space: nowrap;
}

.offer-popup-nav-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.offer-popup-nav-btn svg {
  width: 18px;
  height: 18px;
}

.offer-popup-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(5.5rem, calc(5rem + env(safe-area-inset-bottom)));
  z-index: 1045;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b1a1a 0%, #c43030 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(139, 26, 26, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-popup-fab svg {
  width: 22px;
  height: 22px;
}

.offer-popup-fab:hover {
  filter: brightness(1.06);
  transform: scale(1.04);
}

.dash-offer-row-click {
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 0.65rem;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.dash-offer-row-click:hover {
  background: #faf6f2;
}

.dash-offer-row-click:focus-visible {
  outline: 2px solid #8b1a1a;
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .offer-popup-fab {
    bottom: max(6.5rem, calc(6rem + env(safe-area-inset-bottom)));
  }
}

/* —— Customer dashboard (post-login) —— */
.user-dashboard-page {
  background: #fdf8f5;
}

.user-dashboard-page .user-pane {
  animation: adminPaneIn 0.25s ease;
}

.user-welcome-caption {
  font-size: 0.68rem;
  color: #9ca3af;
  line-height: 1.2;
}

.user-notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b1a1a;
  border: 2px solid #fff;
}

.user-dash-map-wrap {
  min-height: 260px;
}

.user-dash-map-wrap .order-map-canvas {
  height: 260px;
  border-radius: 0;
}

.user-track-empty {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-offers-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.user-offer-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #ebe4dc;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27, 27, 47, 0.05);
  display: flex;
  flex-direction: column;
}

.user-offer-card-img {
  height: 140px;
  overflow: hidden;
  background: #f7f2ed;
}

.user-offer-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-offer-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.user-offer-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.user-offer-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.user-pay-method-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #ebe4dc;
  border-radius: 1rem;
  background: #fffbf8;
  height: 100%;
}

.user-pay-method-card svg {
  width: 22px;
  height: 22px;
  color: #8b1a1a;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.user-settings-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.user-settings-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #ebe4dc;
  border-radius: 0.85rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.user-settings-row:hover {
  background: #faf6f2;
  color: inherit;
}

.user-settings-row svg:first-child {
  width: 18px;
  height: 18px;
  color: #8b1a1a;
}

.user-settings-row svg:last-child {
  width: 16px;
  height: 16px;
  color: #9ca3af;
  margin-left: auto;
}

.dash-offer-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 991.98px) {
  .user-dashboard-page .admin-sidebar {
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .user-dashboard-page .admin-sidebar.open {
    transform: translateX(0);
  }

  .user-dashboard-page .admin-body {
    margin-left: 0;
  }
}

/* ===== Delivery partner dashboard (mockup-matched) ===== */
.delivery-page {
  --delivery-bg: #f3f4f6;
  --delivery-card: #ffffff;
  --delivery-ink: #111827;
  --delivery-muted: #6b7280;
  --delivery-accent: #c81e2e;
  --delivery-radius: 18px;
  --delivery-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
  font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
}

.delivery-page .font-display,
.delivery-page .delivery-title,
.delivery-page .delivery-card-head h2,
.delivery-page .delivery-metric-val {
  font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
}

.delivery-shell {
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(214, 40, 57, 0.05), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(59, 130, 246, 0.05), transparent 50%),
    var(--delivery-bg);
  padding-bottom: 6.5rem;
}

.delivery-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.delivery-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.delivery-brand-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.delivery-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.delivery-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--delivery-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.delivery-sub {
  margin: 0.15rem 0 0;
  color: var(--delivery-muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-logout {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #e11d48 0%, #be123c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.25rem;
  box-shadow: 0 8px 20px rgba(190, 18, 60, 0.28);
}

.delivery-logout:hover {
  filter: brightness(1.05);
}

.delivery-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.5rem;
}

.delivery-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.delivery-metric {
  appearance: none;
  border: 0;
  text-align: left;
  background: var(--delivery-card);
  border-radius: var(--delivery-radius);
  box-shadow: var(--delivery-shadow);
  padding: 1rem 1.05rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 118px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button.delivery-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.09);
}

.delivery-metric-static {
  cursor: default;
}

.delivery-metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delivery-metric-icon svg {
  width: 18px;
  height: 18px;
}

.delivery-metric-amber { background: #f3e7d8; color: #a16207; }
.delivery-metric-blue { background: #dbeafe; color: #2563eb; }
.delivery-metric-mint { background: #d1fae5; color: #059669; }
.delivery-metric-green { background: #dcfce7; color: #16a34a; }
.delivery-metric-rose { background: #ffe4e6; color: #e11d48; }

.delivery-metric-val {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: var(--delivery-ink);
  letter-spacing: -0.03em;
}

.delivery-metric-val-sm {
  font-size: 1.35rem;
}

.delivery-metric-hours {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--delivery-muted);
  margin-top: -0.15rem;
}

.delivery-metric-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--delivery-muted);
}

.delivery-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.delivery-card {
  background: var(--delivery-card);
  border-radius: var(--delivery-radius);
  box-shadow: var(--delivery-shadow);
  padding: 1rem 1.1rem 1.1rem;
  min-height: 0;
}

.delivery-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.delivery-card-head h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--delivery-ink);
}

.delivery-card-head span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--delivery-muted);
}

.delivery-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.delivery-schedule-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.84rem;
}

.delivery-schedule-day {
  font-weight: 700;
  color: var(--delivery-ink);
}

.delivery-schedule-times {
  color: var(--delivery-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.delivery-schedule-off {
  color: #9ca3af;
}

.delivery-chart-wrap {
  position: relative;
  width: 100%;
  height: 170px;
}

.delivery-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.delivery-timeline,
.delivery-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 220px;
  overflow: auto;
}

.delivery-timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 0.65rem;
  align-items: start;
}

.delivery-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 0.35rem;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.delivery-dot-red { background: #ef4444; }
.delivery-dot-amber { background: #f59e0b; }
.delivery-dot-green { background: #22c55e; }
.delivery-dot-blue { background: #3b82f6; }

.delivery-timeline-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--delivery-ink);
  line-height: 1.25;
}

.delivery-timeline-meta {
  font-size: 0.75rem;
  color: var(--delivery-muted);
  font-weight: 500;
  margin-top: 0.1rem;
}

.delivery-live {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  align-self: center;
}

.delivery-feed-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.delivery-feed-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delivery-feed-icon svg {
  width: 16px;
  height: 16px;
}

.delivery-feed-icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.delivery-feed-icon-rose {
  background: #ffe4e6;
  color: #e11d48;
}

.delivery-feed-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--delivery-ink);
}

.delivery-feed-meta {
  font-size: 0.75rem;
  color: var(--delivery-muted);
  font-weight: 500;
}

.delivery-empty {
  margin: 0;
  color: var(--delivery-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.delivery-list-card {
  padding: 0;
  overflow: hidden;
}

.delivery-list-card .delivery-card-head {
  padding: 1rem 1.1rem 0.85rem;
  margin-bottom: 0;
  border-bottom: 1px solid #f1f5f9;
}

.delivery-table {
  --bs-table-bg: transparent;
  margin: 0;
}

.delivery-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--delivery-muted);
  font-weight: 700;
  border-bottom-color: #f1f5f9;
  background: #fafafa;
  padding: 0.7rem 1rem;
}

.delivery-table td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  border-bottom-color: #f3f4f6;
  font-size: 0.9rem;
}

.delivery-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 50;
  width: min(560px, calc(100% - 1.5rem));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.12);
  padding: 0.45rem;
  backdrop-filter: blur(14px);
}

.delivery-nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 0.55rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #4b5563;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
}

.delivery-nav-item svg {
  width: 18px;
  height: 18px;
}

.delivery-nav-item.active {
  color: var(--delivery-accent);
  background: rgba(200, 30, 46, 0.08);
}

.delivery-overview.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .delivery-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .delivery-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .delivery-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-overview {
    grid-template-columns: 1fr;
  }

  .delivery-logo {
    height: 34px;
  }

  .delivery-title {
    font-size: 1.2rem;
  }

  .delivery-metric {
    min-height: 104px;
  }

  .delivery-metric-val {
    font-size: 1.5rem;
  }

  .delivery-nav-item span {
    font-size: 0.62rem;
  }
}

/* ===== Seller portal dashboard (mockup-matched) ===== */
.seller-page {
  --seller-bg: #f6f4f1;
  --seller-card: #ffffff;
  --seller-ink: #111827;
  --seller-muted: #6b7280;
  --seller-accent: #c81e2e;
  --seller-radius: 18px;
  --seller-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
  font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
}

.seller-page .seller-title,
.seller-page .seller-card-title,
.seller-page .seller-metric-val,
.seller-page .seller-menu-name {
  font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
}

.seller-shell {
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(214, 40, 57, 0.05), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(234, 179, 8, 0.06), transparent 50%),
    var(--seller-bg);
}

.seller-topbar {
  background: transparent;
}

.seller-topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem 0.35rem;
}

.seller-brand-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.seller-logo {
  height: 40px;
  width: auto;
}

.seller-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--seller-ink);
  letter-spacing: -0.02em;
}

.seller-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 2.5rem;
}

.seller-profile-card {
  background: var(--seller-card);
  border-radius: var(--seller-radius);
  box-shadow: var(--seller-shadow);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.seller-profile-copy h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.seller-profile-line {
  margin: 0;
  color: var(--seller-muted);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}

.seller-profile-line strong {
  color: var(--seller-ink);
  font-weight: 700;
}

.seller-dot {
  color: #d1d5db;
}

.seller-status-active {
  color: #16a34a !important;
}

.seller-status-off {
  color: #b91c1c !important;
}

.seller-logout {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #e11d48 0%, #be123c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.3rem;
  box-shadow: 0 8px 20px rgba(190, 18, 60, 0.28);
  white-space: nowrap;
}

.seller-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.seller-metric {
  appearance: none;
  border: 0;
  text-align: left;
  border-radius: var(--seller-radius);
  box-shadow: var(--seller-shadow);
  padding: 1.05rem 1.1rem;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease;
}

.seller-metric:hover {
  transform: translateY(-2px);
}

.seller-metric-pink { background: linear-gradient(145deg, #fce7f3 0%, #fbcfe8 100%); color: #9d174d; }
.seller-metric-amber { background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%); color: #92400e; }
.seller-metric-blue { background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%); color: #1d4ed8; }
.seller-metric-green { background: linear-gradient(145deg, #dcfce7 0%, #bbf7d0 100%); color: #15803d; }

.seller-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
}

.seller-metric-icon svg {
  width: 16px;
  height: 16px;
}

.seller-metric-val {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: inherit;
}

.seller-metric-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

.seller-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  padding: 0 0.15rem;
}

.seller-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.1rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: #6b7280;
  position: relative;
}

.seller-tab.active {
  color: var(--seller-accent);
  font-weight: 800;
}

.seller-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--seller-accent);
}

.seller-card {
  background: var(--seller-card);
  border-radius: var(--seller-radius);
  box-shadow: var(--seller-shadow);
  padding: 1.15rem 1.2rem;
}

.seller-form-card {
  height: 100%;
}

.seller-list-card {
  padding: 1.15rem 0 0.35rem;
}

.seller-list-card .seller-card-title,
.seller-list-card .seller-card-head-row {
  padding: 0 1.2rem;
}

.seller-card-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--seller-ink);
}

.seller-card-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.seller-menu-list {
  display: flex;
  flex-direction: column;
}

.seller-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  border-top: 1px solid #f1f5f9;
}

.seller-menu-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.seller-menu-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

.seller-menu-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.seller-menu-thumb-empty svg {
  width: 20px;
  height: 20px;
}

.seller-menu-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--seller-ink);
  line-height: 1.2;
}

.seller-menu-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  margin-top: 0.12rem;
}

.seller-menu-meta {
  font-size: 0.75rem;
  color: var(--seller-muted);
  font-weight: 500;
  margin-top: 0.1rem;
}

.seller-menu-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.seller-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: #f3f4f6;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.seller-icon-btn svg {
  width: 16px;
  height: 16px;
}

.seller-icon-danger {
  background: #ffe4e6;
  color: #be123c;
}

.seller-avail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--seller-ink);
  margin: 0;
}

.seller-switch {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease;
}

.seller-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.seller-switch:checked {
  background: var(--seller-accent);
}

.seller-switch:checked::after {
  transform: translateX(18px);
}

.seller-table {
  --bs-table-bg: transparent;
}

.seller-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--seller-muted);
  font-weight: 700;
  border-bottom-color: #f1f5f9;
  background: #fafafa;
  padding: 0.7rem 1.2rem;
}

.seller-table td {
  padding: 0.9rem 1.2rem;
  vertical-align: middle;
  border-bottom-color: #f3f4f6;
  font-size: 0.9rem;
}

.seller-empty {
  margin: 0;
  padding: 2rem 1.2rem;
  text-align: center;
  color: var(--seller-muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .seller-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .seller-profile-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .seller-menu-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .seller-tabs {
    gap: 0.2rem 0.9rem;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .seller-tab {
    white-space: nowrap;
  }
}

/* —— Delivery help / emergency sheets —— */
.delivery-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.delivery-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.delivery-icon-btn svg {
  width: 20px;
  height: 20px;
}

.delivery-icon-btn:hover {
  background: #f9fafb;
}

.delivery-icon-emergency {
  color: #c81e2e;
  border-color: rgba(200, 30, 46, 0.2);
  background: #fff5f5;
}

.delivery-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.delivery-sheet.d-none {
  display: none !important;
}

.delivery-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 24, 39, 0.45);
  cursor: pointer;
}

.delivery-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(82dvh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 1.1rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(17, 24, 39, 0.18);
}

.delivery-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.delivery-sheet-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
}

.delivery-sheet-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delivery-sheet-close svg {
  width: 18px;
  height: 18px;
}

.delivery-help-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.delivery-help-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0.15rem;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.delivery-help-list li:last-child .delivery-help-item {
  border-bottom: 0;
}

.delivery-help-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.delivery-help-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.delivery-help-icon svg {
  width: 20px;
  height: 20px;
}

.delivery-help-icon-rose { background: #fee2e2; color: #b91c1c; }
.delivery-help-icon-amber { background: #ffedd5; color: #c2410c; }
.delivery-help-icon-blue { background: #dbeafe; color: #1d4ed8; }
.delivery-help-icon-green { background: #dcfce7; color: #15803d; }

.delivery-help-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.delivery-help-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
}

.delivery-help-copy small {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.35;
}

.delivery-help-chevron {
  width: 18px;
  height: 18px;
  color: #9ca3af;
  flex-shrink: 0;
}

.delivery-topic-desc {
  margin: 0;
}

.delivery-help-center {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.delivery-help-center.d-none {
  display: none !important;
}

.delivery-help-center-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.delivery-help-center-bar h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.delivery-help-center-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom));
}

.delivery-help-center-prompt {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.delivery-help-topics {
  list-style: none;
  margin: 0;
  padding: 0;
}

.delivery-help-topics li {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.delivery-help-topic-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.1rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}

.delivery-help-topic-btn svg {
  width: 18px;
  height: 18px;
  color: #9ca3af;
  flex-shrink: 0;
}

.delivery-lang-option.active {
  background: #fff5f5;
  border-radius: 12px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  .delivery-sheet {
    align-items: center;
    padding: 1.5rem;
  }

  .delivery-sheet-panel {
    border-radius: 22px;
    max-height: min(78dvh, 640px);
  }
}




/* Order chat bubbles */
.zosr-chat-list {
  max-height: 280px;
  overflow-y: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem;
}
.zosr-chat-bubble {
  max-width: 85%;
  margin-bottom: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.zosr-chat-bubble.is-mine {
  margin-left: auto;
  background: #fff1f2;
  border-color: #fecdd3;
}
.zosr-chat-bubble.is-theirs {
  margin-right: auto;
}
.zosr-chat-meta {
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 0.15rem;
}
.zosr-chat-body {
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-chat-list {
  max-height: 360px;
}

/* Partner schedule editor */
.delivery-sched-edit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.delivery-sched-edit-row .form-control-sm {
  max-width: 7.5rem;
}

/* Partner ID card */
.partner-id-card {
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 1.25rem;
  background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
}
.partner-id-card-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.partner-id-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.partner-id-card-body {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.partner-id-photo,
.partner-id-photo-fallback {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}
.partner-id-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
}
.partner-id-name {
  font-size: 1.15rem;
  font-weight: 700;
}
.partner-id-meta {
  font-size: 0.85rem;
  color: #475569;
}
.partner-id-foot {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}
.delivery-sheet-panel-tall {
  max-height: min(92vh, 720px);
  overflow-y: auto;
}

@media print {
  body.printing-id-card * {
    visibility: hidden !important;
  }
  body.printing-id-card #partnerIdCard,
  body.printing-id-card #partnerIdCard * {
    visibility: visible !important;
  }
  body.printing-id-card #partnerIdCard {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 2px solid #0f172a;
  }
}

/* Incoming call request banner */
.zosr-incoming-call {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  padding: 1rem;
}
.zosr-incoming-call.d-none {
  display: none !important;
}
.zosr-incoming-card {
  width: min(420px, 100%);
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, #0f172a, #1e293b);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  position: relative;
}
.zosr-incoming-pulse {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #22c55e;
  animation: zosr-pulse 1.2s ease-out infinite;
}
@keyframes zosr-pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70% { transform: scale(1); box-shadow: 0 0 0 18px rgba(34,197,94,0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ===== User profile mock layout (ZOSR) ===== */
.user-profile-mock {
  --up-navy: #0f2744;
  --up-navy-2: #16345a;
  --up-accent: #e85d04;
  --up-bg: #eef1f6;
  --up-card: #ffffff;
  font-family: "DM Sans", system-ui, sans-serif;
}
.user-profile-mock .font-display {
  font-family: "Fraunces", Georgia, serif;
}
.user-profile-mock .admin-main-ref.up-main {
  background: var(--up-bg);
  padding: 0 1rem 2rem;
}
.user-profile-mock .up-sidebar.admin-sidebar-light {
  background: #f3f4f8;
}
.up-hero {
  position: relative;
  margin: 0 -1rem 2.5rem;
  padding: 2.25rem 1rem 3.5rem;
  color: #fff;
  text-align: center;
  overflow: visible;
}
.up-hero-bg {
  position: absolute;
  inset: 0 0 2.25rem 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%),
    linear-gradient(145deg, var(--up-navy), var(--up-navy-2));
  border-radius: 0 0 28px 28px;
}
.up-hero-inner {
  position: relative;
  z-index: 1;
}
.up-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8fafc, #cbd5e1);
  color: var(--up-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  border: 4px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}
.up-name {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.up-badge {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
}
.up-status-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  max-width: 720px;
  margin: 1.35rem auto -2.1rem;
  background: #fff;
  color: #0f172a;
  border-radius: 18px;
  padding: 0.85rem 0.5rem;
  box-shadow: 0 14px 36px rgba(15, 39, 68, 0.18);
}
.up-status-item {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  padding: 0.25rem;
}
.up-status-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}
.up-status-icon svg { width: 20px; height: 20px; }
.up-status-processing { background: #ef4444; }
.up-status-shipped { background: #8b5cf6; }
.up-status-delivered { background: #22c55e; }
.up-status-review { background: #ec4899; }
.up-status-count {
  position: absolute;
  top: 0;
  right: calc(50% - 28px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
}
.up-status-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
}
.up-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.up-card {
  background: var(--up-card);
  border-radius: 18px;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
  border: 1px solid rgba(15, 39, 68, 0.05);
}
.up-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.up-card-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
}
.up-card-link {
  border: 0;
  background: transparent;
  color: var(--up-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0;
}
.up-card-body-pad { padding: 0 0.15rem 0.5rem; }
.up-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.up-row:last-child { border-bottom: 0; }
.up-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}
.up-heart { width: 18px; height: 18px; flex-shrink: 0; }
.up-coupon-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.up-coupon-ico svg { width: 18px; height: 18px; }
.up-support-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.up-support-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.up-support-list li:last-child { border-bottom: 0; }
.up-support-list strong { display: block; font-size: 0.9rem; }
.up-support-list a { font-size: 0.8rem; color: var(--up-accent); text-decoration: none; }
.up-support-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.up-support-ico svg { width: 18px; height: 18px; }
.up-pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.up-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.up-pay-chip svg { width: 18px; height: 18px; color: var(--up-accent); }
.up-submit-btn {
  background: var(--up-accent);
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
}
.up-submit-btn:hover { background: #d54f00; color: #fff; }
.up-footer {
  max-width: 1100px;
  margin: 1.75rem auto 0;
  padding: 1.25rem 0.25rem 0.5rem;
  border-top: 1px solid #dbe2ea;
}
.up-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 0.85rem;
}
.up-footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
}
.up-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.up-live-block {
  max-width: 1100px;
  margin: 1rem auto 0;
}
.up-card-settings { grid-column: span 1; }

@media (max-width: 991px) {
  .up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-status-label { font-size: 0.65rem; }
}
@media (max-width: 640px) {
  .up-grid { grid-template-columns: 1fr; }
  .up-status-bar { gap: 0.15rem; padding: 0.7rem 0.25rem; }
  .up-status-icon { width: 36px; height: 36px; }
  .up-hero { padding-bottom: 3.75rem; }
}

/* Google Sign-In in auth modal */
.auth-google-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.auth-google-btn-host {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.auth-google-btn-host > div {
  margin: 0 auto;
}
.auth-google-native-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: min(100%, 360px);
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #3c4043;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.auth-google-native-btn:active {
  background: #f8f9fa;
}
.auth-google-native-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(from 45deg, #ea4335, #fbbc05, #34a853, #4285f4, #ea4335);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}
.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-or-divider::before,
.auth-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
