:root {
  --pj-red: #e23744;
  --pj-orange: #ff7a1a;
  --pj-ink: #231f20;
  --pj-muted: #6f6a66;
  --pj-bg: #fff5f5;
  --pj-card: #ffffff;
  --pj-line: rgba(226, 55, 68, .12);
}

[data-theme="dark"] {
  --pj-ink: #f9fafb;
  --pj-muted: #c8c3bd;
  --pj-bg: #18120f;
  --pj-card: #231a16;
}

body {
  background: var(--pj-bg);
  color: var(--pj-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.navbar, .pj-gradient {
  background: linear-gradient(135deg, var(--pj-red), var(--pj-orange));
}

.btn-pj {
  background: linear-gradient(135deg, var(--pj-red), var(--pj-orange));
  border: 0;
  color: #fff;
  font-weight: 700;
}

.btn-pj:hover { color: #fff; filter: brightness(.96); }
.text-pj { color: var(--pj-red); }
.pj-card {
  background: var(--pj-card);
  border: 1px solid rgba(232, 54, 31, .10);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(67, 33, 16, .08);
}

.hero {
  min-height: 58vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.18)),
    url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
}

.food-card img, .restaurant-card img {
  height: 170px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.sticky-cart {
  position: sticky;
  bottom: 16px;
  z-index: 10;
}

.fade-up {
  animation: fadeUp .55s ease both;
}

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

html.splash-open,
html.splash-open body {
  overflow: hidden;
}

.app-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.16), transparent 30%),
    linear-gradient(160deg, rgba(255,255,255,.10), transparent 42%),
    var(--splash-bg, #e23744);
  color: var(--splash-text, #fff);
  animation: splashIn .32s ease both;
}

.app-splash-screen.is-leaving {
  animation: splashOut .52s ease forwards;
  pointer-events: none;
}

.app-splash-content {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  animation: splashContent 1s cubic-bezier(.2,.8,.2,1) both;
}

.app-splash-content img {
  width: min(62vw, 320px);
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 22px 36px rgba(0,0,0,.25));
}

.app-splash-content h1 {
  margin: 8px 0 0;
  color: var(--splash-text, #fff);
  font-size: clamp(3.2rem, 14vw, 7.4rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: .9;
}

.app-splash-content p {
  margin: 0;
  font-size: clamp(1rem, 3.8vw, 1.45rem);
  font-weight: 900;
  opacity: .94;
}

.app-splash-content span {
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .16em;
  opacity: .55;
  text-transform: uppercase;
}

.app-splash-content i {
  position: relative;
  width: 170px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
}

.app-splash-content i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: inherit;
  background: rgba(255,255,255,.85);
  animation: splashLoad 1.2s ease-in-out infinite;
}

.app-splash-skip {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255,255,255,.15);
  color: var(--splash-text, #fff);
  font-weight: 900;
}

.splash-admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: stretch;
}

.splash-admin-preview {
  min-height: 250px;
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 10px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.18), transparent 32%),
    var(--splash-bg, #e23744);
  color: var(--splash-text, #fff);
  text-align: center;
}

.splash-admin-preview img {
  width: min(220px, 62%);
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.22));
}

.splash-admin-preview strong {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
}

.splash-admin-preview span {
  font-weight: 800;
  opacity: .85;
}

@keyframes splashIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes splashOut {
  to { opacity: 0; transform: scale(1.03); }
}

@keyframes splashContent {
  from { opacity: 0; transform: translateY(34px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splashLoad {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@media (max-width: 768px) {
  .splash-admin-grid {
    grid-template-columns: 1fr;
  }

  .menu-import-uploader,
  .menu-import-row {
    grid-template-columns: 1fr;
  }

  .menu-import-description,
  .menu-import-uploader textarea,
  .menu-import-uploader .menu-import-actions {
    grid-column: auto;
  }

  .menu-import-enable {
    display: flex;
    justify-content: space-between;
    min-height: auto;
  }

  .menu-import-savebar {
    bottom: 86px;
  }
}

@media (max-width: 576px) {
  .app-splash-content img {
    width: min(76vw, 280px);
  }

  .app-splash-content h1 {
    font-size: clamp(2.6rem, 18vw, 5.5rem);
  }

  .app-splash-skip {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash-screen,
  .app-splash-screen.is-leaving,
  .app-splash-content,
  .app-splash-content i::after {
    animation: none !important;
  }
}

.status-dot {
  display: inline-block;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: #22c55e;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(232, 54, 31, .98), rgba(255, 138, 0, .94)),
    radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 34%);
  box-shadow: 18px 0 38px rgba(79, 31, 10, .18);
  z-index: 30;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
}

.side-brand span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,.22);
  font-weight: 900;
}

.side-caption {
  margin: 10px 0 28px;
  color: rgba(255,255,255,.78);
  font-size: .92rem;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.side-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 14px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  background: rgba(255,255,255,.10);
  transition: transform .18s ease, background .18s ease;
}

.side-link:hover, .side-link.active {
  color: #fff;
  background: rgba(255,255,255,.24);
  transform: translateX(3px);
}

.side-link b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--pj-red);
  font-size: .75rem;
}

.side-user {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(0,0,0,.13);
}

.side-user strong, .side-user small, .side-user a {
  display: block;
  color: #fff;
}

.side-user small { opacity: .76; }
.side-user a { margin-top: 10px; font-weight: 700; }

.app-main {
  min-width: 0;
  padding-bottom: 0;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255, 248, 241, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,54,31,.10);
}

.top-location-menu {
  position: relative;
  min-width: 0;
}

.top-location-menu summary {
  list-style: none;
}

.top-location-menu summary::-webkit-details-marker {
  display: none;
}

.top-location {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(89,27,30,.08);
  cursor: pointer;
}

.location-pin {
  position: relative;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border-radius: 50% 50% 50% 0;
  background: var(--pj-red);
  transform: rotate(-45deg);
}

.location-pin::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
}

.top-location div {
  min-width: 0;
}

.top-location small,
.top-location strong {
  display: block;
  line-height: 1.05;
}

.location-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: min(360px, 82vw);
  padding: 12px;
  border: 1px solid var(--pj-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(89,27,30,.18);
}

.location-popover label {
  display: block;
  margin-bottom: 6px;
  color: var(--pj-red);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.location-popover select {
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--pj-line);
  border-radius: 8px;
  padding: 9px 10px;
}

.top-location small {
  color: var(--pj-red);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.top-location strong {
  max-width: 168px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--pj-ink);
  font-size: .84rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.menu-toggle, .cart-pill {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  color: var(--pj-red);
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: currentColor;
}

.cart-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  color: #fff;
  background: linear-gradient(135deg, #231f20, #4a2415);
  box-shadow: 0 12px 28px rgba(67, 33, 16, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}

.cart-pill:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(67, 33, 16, .24);
}

.cart-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 3px 3px 6px 6px;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -8px;
  width: 10px;
  height: 9px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.cart-icon span::before,
.cart-icon span::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffcf7a;
}

.cart-icon span::before { left: 2px; }
.cart-icon span::after { right: 2px; }

.cart-label {
  line-height: 1;
}

.cart-pill b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--pj-red);
  background: #fff;
  font-size: .78rem;
  box-shadow: inset 0 0 0 1px rgba(232,54,31,.12);
}

.mobile-home {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 56px;
}

.mobile-location-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--pj-line);
  box-shadow: 0 14px 32px rgba(89, 27, 30, .08);
}

.mobile-location-card span {
  color: var(--pj-red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.mobile-location-card h1 {
  margin: 3px 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.mobile-location-card p {
  margin: 0;
  color: var(--pj-muted);
}

.mobile-location-card a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff0f1;
  color: var(--pj-red);
  text-decoration: none;
  font-weight: 900;
}

.mobile-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 14px 0;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(89, 27, 30, .08);
}

.veg-filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid rgba(22, 163, 74, .16);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f0fff5);
  box-shadow: 0 12px 28px rgba(20, 83, 45, .08);
}

.veg-filter-bar strong,
.veg-filter-bar span {
  display: block;
}

.veg-filter-bar strong {
  font-weight: 950;
  color: #116b35;
}

.veg-filter-bar span {
  color: #5b7263;
  font-size: .88rem;
}

.veg-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.veg-mode-switch.compact {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.veg-mode-switch strong {
  color: #116b35;
  font-size: .68rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.veg-mode-state {
  min-width: 32px;
  color: #7a8a80;
  font-size: .78rem;
  font-weight: 950;
}

.veg-mode-switch.compact .veg-mode-state {
  display: none;
}

.veg-mode-track {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(145deg, #cfd9d3, #ecf3ef);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.45),
    inset 0 5px 10px rgba(0,0,0,.10),
    0 8px 14px rgba(20,83,45,.14);
  transition: background .22s ease, box-shadow .22s ease;
}

.veg-mode-knob {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 12px rgba(0,0,0,.24);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}

.veg-mode-switch.is-on .veg-mode-state {
  color: #15803d;
}

.veg-mode-switch.is-on .veg-mode-track {
  background: linear-gradient(145deg, #20bf55, #24830f);
  box-shadow:
    inset 0 0 0 2px rgba(44, 201, 93, .55),
    inset 0 7px 12px rgba(0,0,0,.18),
    0 10px 18px rgba(20, 131, 15, .24);
}

.veg-mode-switch.is-on .veg-mode-knob {
  transform: translateX(20px);
}

.is-hidden-by-veg {
  display: none !important;
}

.mobile-search input {
  min-width: 0;
  border: 0;
  padding: 12px 14px;
  outline: none;
}

.mobile-search button {
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: var(--pj-red);
  font-weight: 900;
}

.offer-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 190px;
  margin: 18px 0 24px;
  padding: 26px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(226,55,68,.96), rgba(226,55,68,.68), rgba(35,31,32,.18)),
    url('https://images.unsplash.com/photo-1540189549336-e6e99c3679fe?auto=format&fit=crop&w=1200&q=80') center/cover;
  box-shadow: 0 20px 42px rgba(226,55,68,.22);
}

.offer-banner span {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  color: #8a1b22;
  background: #fff;
  font-size: .75rem;
  font-weight: 900;
}

.offer-banner h2 {
  max-width: 620px;
  margin: 10px 0 6px;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  font-weight: 950;
  line-height: 1;
}

.offer-banner p {
  margin: 0;
  font-weight: 700;
}

.offer-banner strong {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  color: var(--pj-red);
  background: #fff;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.05;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.app-section-title {
  margin-top: 28px;
}

.category-circles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-circles a {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 12px 8px;
  color: var(--pj-ink);
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.category-circles img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 12px 28px rgba(89,27,30,.12);
}

.product-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 270px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.product-card,
.zomato-card,
.management-card {
  border: 1px solid var(--pj-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(89, 27, 30, .08);
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.product-card div {
  padding: 13px;
}

.product-card small {
  color: var(--pj-muted);
}

.product-card h3 {
  margin: 3px 0;
  font-size: 1.02rem;
  font-weight: 950;
}

.product-card p {
  margin: 0 0 10px;
  color: var(--pj-muted);
}

.veg-dot,
.nonveg-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: middle;
}

.veg-dot { background: #16a34a; }
.nonveg-dot { background: #dc2626; }

.product-card footer,
.zomato-body footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.product-card a {
  padding: 7px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--pj-red);
  text-decoration: none;
  font-weight: 900;
}

.zomato-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.zomato-card {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.zomato-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(89, 27, 30, .14);
}

.zomato-image {
  position: relative;
}

.zomato-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.zomato-image span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(226,55,68,.92);
  font-size: .78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.zomato-body {
  padding: 14px;
}

.zomato-body div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.zomato-body h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 950;
}

.zomato-body b {
  align-self: start;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  background: #159447;
}

.zomato-body p {
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--pj-muted);
}

.zomato-body footer span {
  color: #4d4244;
  font-size: .88rem;
  font-weight: 800;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.panel-heading span {
  color: var(--pj-red);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-heading h1 {
  margin: 0;
  font-weight: 950;
}

.management-list {
  display: grid;
  gap: 14px;
}

.management-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.management-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(89, 27, 30, .11);
}

.management-card > img {
  flex: 0 0 130px;
  width: 130px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.management-main {
  flex: 1 1 360px;
  min-width: 0;
}

.management-main h2 {
  margin: 5px 0;
  font-size: 1.1rem;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.management-main p,
.management-main small {
  display: block;
  margin: 0 0 5px;
  color: var(--pj-muted);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.management-main p {
  max-width: 76ch;
}

.management-main p b,
.management-main small b {
  color: var(--pj-ink);
}

.management-main .order-total {
  display: block;
  margin-top: 8px;
  font-size: 1.03rem;
  line-height: 1.25;
}

.management-actions {
  display: grid;
  gap: 8px;
  flex: 0 1 240px;
  min-width: min(100%, 180px);
}

.management-actions .badge {
  width: 100%;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
}

.status-chip {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--pj-red);
  background: #fff0f1;
  font-size: .75rem;
  font-weight: 900;
}

.order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.order-items span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff5f5;
  font-size: .82rem;
  line-height: 1.3;
}

.food-filter-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.food-filter-tabs a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--pj-red);
  background: #fff0f1;
  text-decoration: none;
  font-weight: 900;
}

.food-filter-tabs a.active {
  color: #fff;
  background: var(--pj-red);
}

.top-search input, .hero-search input {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(67,33,16,.08);
}

.location-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin: 18px 24px 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--pj-card);
  box-shadow: 0 12px 30px rgba(67,33,16,.08);
}

.compact-location {
  display: flex;
  justify-content: flex-end;
  margin: 10px 24px 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.compact-location .location-form {
  max-width: 360px;
}

.location-strip strong, .location-strip small, .location-kicker {
  display: block;
}

.location-kicker {
  color: var(--pj-red);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.location-form {
  display: flex;
  gap: 8px;
}

.location-form select {
  min-width: 210px;
  border: 1px solid rgba(232,54,31,.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.app-hero {
  margin: 24px;
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 36px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.08)),
    url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=80') center/cover;
  overflow: hidden;
}

.app-hero h1 {
  max-width: 700px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: .98;
}

.app-hero p {
  max-width: 560px;
  font-size: 1.1rem;
}

.app-hero span {
  color: #ffd9a0;
  font-weight: 800;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 620px;
  margin-top: 22px;
}

.content-pad {
  padding: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 12px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.section-head span {
  color: var(--pj-muted);
}

.food-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.app-food-card, .app-restaurant-card, .menu-row, .checkout-card, .stat-card, .empty-state {
  background: var(--pj-card);
  border: 1px solid rgba(232,54,31,.10);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(67,33,16,.08);
}

.app-food-card {
  overflow: hidden;
}

.app-food-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.app-food-card div {
  padding: 14px;
}

.app-food-card h3 {
  min-height: 42px;
  margin: 2px 0 8px;
  font-size: 1rem;
  font-weight: 900;
}

.app-food-card small {
  color: var(--pj-muted);
}

.app-food-card strong {
  display: block;
  margin-bottom: 10px;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-restaurant-card {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease;
}

.app-restaurant-card:hover {
  color: inherit;
  transform: translateY(-3px);
}

.app-restaurant-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.app-restaurant-card div {
  padding: 16px;
}

.app-restaurant-card span {
  color: var(--pj-red);
  font-weight: 800;
  font-size: .85rem;
}

.app-restaurant-card h3 {
  margin: 4px 0 8px;
  font-weight: 900;
}

.app-restaurant-card p {
  min-height: 48px;
  color: var(--pj-muted);
}

.restaurant-hero {
  margin: 24px;
  min-height: 300px;
  display: grid;
  align-items: end;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.20)),
    url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1400&q=80') center/cover;
}

.restaurant-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  margin-bottom: 14px;
}

.menu-row h2 {
  margin: 8px 0 6px;
  font-size: 1.08rem;
  font-weight: 900;
}

.menu-row p {
  margin: 0;
  color: var(--pj-muted);
}

.checkout-card {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 22px;
}

.stat-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stat-card-link:hover,
.stat-card-link:focus-visible {
  color: inherit;
  border-color: rgba(232,54,31,.32);
  box-shadow: 0 16px 36px rgba(67,33,16,.13);
  transform: translateY(-2px);
}

.stat-card-link:focus-visible {
  outline: 3px solid rgba(232,54,31,.22);
  outline-offset: 3px;
}

.admin-location[id] {
  scroll-margin-top: 138px;
}

.stat-card span {
  display: block;
  color: var(--pj-muted);
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.7rem;
}

.stat-card small {
  display: block;
  margin-top: 8px;
  color: var(--pj-muted);
  line-height: 1.35;
}

.admin-nav-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.admin-nav-card.is-active {
  border-color: rgba(232,54,31,.35);
  background: linear-gradient(145deg, rgba(255,245,238,.98), #fff);
  box-shadow: 0 16px 38px rgba(232,54,31,.13);
}

.stat-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--pj-red);
}

.admin-panel-page {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(239, 59, 45, .035), transparent 34%),
    linear-gradient(180deg, #fff, #fff8f5 70%, #fff);
}

.admin-panel-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(239, 59, 45, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(239, 59, 45, .04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 72%);
}

.admin-panel-page .panel-heading {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(35, 31, 32, .96), rgba(239, 59, 45, .94) 58%, rgba(255, 122, 26, .94)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.15) 0 1px, transparent 1px 18px);
  box-shadow: 0 22px 48px rgba(96, 34, 19, .18);
  animation: adminIntro .45s ease both;
}

.admin-panel-page .panel-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 1px, transparent 1px 20px);
  opacity: .24;
}

.admin-panel-page .panel-heading::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -26px;
  width: 152px;
  height: 96px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.82) 0 18%, transparent 18% 100%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.68) 0 9px, rgba(255,255,255,.20) 9px 13px);
  box-shadow: 0 18px 34px rgba(35, 31, 32, .18);
  opacity: .42;
  transform: rotate(-8deg);
}

.admin-panel-page .panel-heading > * {
  position: relative;
  z-index: 1;
}

.admin-panel-page .panel-heading span,
.admin-panel-page .panel-heading h1 {
  color: #fff;
}

.admin-panel-page .panel-heading span {
  opacity: .86;
  letter-spacing: 0;
}

.admin-panel-page .panel-heading h1 {
  text-shadow: 0 8px 20px rgba(35,31,32,.22);
}

.admin-panel-page .panel-heading .btn {
  border-color: rgba(255,255,255,.68);
  color: #fff;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(35,31,32,.14);
}

.admin-panel-page .panel-heading .btn:hover {
  border-color: #fff;
  background: rgba(255,255,255,.24);
}

.admin-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.admin-nav-card {
  --card-accent: var(--pj-red);
  position: relative;
  display: flex;
  min-height: 206px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-color: rgba(35, 31, 32, .07);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,249,246,.96));
  box-shadow: 0 18px 42px rgba(35, 31, 32, .08);
  animation: adminCardIn .5s ease both;
}

.admin-nav-card:nth-child(1) { --card-accent: #ef3b2d; animation-delay: .02s; }
.admin-nav-card:nth-child(2) { --card-accent: #f97316; animation-delay: .06s; }
.admin-nav-card:nth-child(3) { --card-accent: #e11d48; animation-delay: .10s; }
.admin-nav-card:nth-child(4) { --card-accent: #0f766e; animation-delay: .14s; }
.admin-nav-card:nth-child(5) { --card-accent: #2563eb; animation-delay: .18s; }
.admin-nav-card:nth-child(6) { --card-accent: #16a34a; animation-delay: .22s; }
.admin-nav-card:nth-child(7) { --card-accent: #ea580c; animation-delay: .26s; }

.admin-nav-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--card-accent), rgba(255,255,255,0));
  opacity: .86;
}

.admin-nav-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -38px;
  width: 132px;
  height: 132px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 22%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 64%),
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--card-accent) 14%, transparent) 0 1px, transparent 1px 12px);
  opacity: .7;
  transform: rotate(12deg);
  transition: transform .22s ease, opacity .22s ease;
}

.admin-nav-card span {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #514b4a;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.28;
}

.admin-nav-card .stat-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 8px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 12%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 18%, transparent);
}

.admin-nav-card strong {
  margin-top: 18px;
  color: #16181f;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  letter-spacing: 0;
}

.admin-nav-card small {
  max-width: 13rem;
  color: #6d6865;
  font-weight: 650;
}

.admin-nav-card:hover,
.admin-nav-card:focus-visible {
  border-color: color-mix(in srgb, var(--card-accent) 26%, transparent);
  box-shadow: 0 24px 54px rgba(35, 31, 32, .12);
  transform: translateY(-6px);
}

.admin-nav-card:hover::after,
.admin-nav-card:focus-visible::after {
  opacity: .95;
  transform: rotate(8deg) translate(-8px, 8px);
}

.admin-nav-card.is-active {
  border-color: color-mix(in srgb, var(--card-accent) 32%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 8%, #fff), #fff);
  box-shadow: 0 22px 50px color-mix(in srgb, var(--card-accent) 18%, transparent);
}

.restaurant-panel-page .restaurant-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.restaurant-panel-page .admin-nav-card {
  min-height: 184px;
}

.restaurant-banner-card {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 245, 235, .92), rgba(255, 255, 255, .98)),
    #fff;
}

.restaurant-banner-card .restaurant-banner-preview {
  flex: 0 0 260px;
  width: 260px;
  height: 148px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(89, 27, 30, .12);
}

.banner-upload-form {
  align-self: center;
  display: grid;
  gap: 8px;
  min-width: min(100%, 260px);
}

.restaurant-location-card {
  align-items: stretch;
}

.restaurant-location-card .management-main {
  flex-basis: min(100%, 720px);
}

.restaurant-location-card .management-actions {
  align-self: flex-end;
}

.vendor-restaurant-map-picker .address-map {
  min-height: 270px;
}

.restaurant-food-editor .form-label {
  font-weight: 850;
  color: #5f5a58;
}

.food-description-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.food-variant-panel {
  display: none;
  padding: 16px;
  border: 1px solid rgba(232, 54, 31, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff9f6, #fff);
}

.food-variant-panel.is-open {
  display: grid;
  gap: 12px;
  animation: adminCardIn .25s ease both;
}

.food-variant-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.food-variant-head strong {
  color: #17181f;
}

.food-variant-head small {
  color: var(--pj-muted);
}

.food-variant-rows {
  display: grid;
  gap: 10px;
}

.food-variant-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 10px;
}

.food-variant-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.food-variant-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #d92f3b;
  background: rgba(232, 54, 31, .08);
  font-size: .78rem;
  font-weight: 850;
}

.menu-variant-select {
  width: min(210px, 100%);
  margin: 8px 0 4px;
  border-radius: 8px;
  font-weight: 750;
}

@media (max-width: 620px) {
  .food-variant-row {
    grid-template-columns: 1fr;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .admin-panel-page .panel-heading,
  .admin-nav-card {
    animation: none;
  }

  .admin-nav-card,
  .admin-nav-card::after {
    transition: none;
  }
}

.admin-location {
  display: grid;
  gap: 16px;
}

.admin-location h2 {
  font-size: 1.2rem;
  font-weight: 900;
}

.admin-section-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.admin-section-bar h2 {
  margin: 0;
}

.order-date-filter {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
}

.manager-request-form {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.manager-request-form > * {
  min-width: 0;
}

.manager-request-submit {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 156px;
  white-space: nowrap;
}

.manager-delivery-assign {
  display: grid;
  gap: 7px;
}

.manager-delivery-assign .btn {
  width: 100%;
}

.menu-import-uploader {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.menu-import-uploader textarea,
.menu-import-uploader .menu-import-actions {
  grid-column: 1 / -1;
}

.menu-import-uploader small {
  display: block;
  margin-top: 6px;
}

.menu-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.menu-import-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  max-width: 100%;
  min-width: 0;
}

.menu-import-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1.5fr) minmax(140px, .9fr) minmax(100px, .55fr) minmax(100px, .55fr) minmax(110px, .65fr) minmax(110px, .65fr) minmax(90px, .45fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(239, 59, 45, .12);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #fff8f6);
  max-width: 100%;
  min-width: 0;
}

.bulk-product-review-row {
  grid-template-columns: 72px 118px repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.menu-import-review {
  max-width: 100%;
  overflow: hidden;
}

.menu-import-review .admin-section-bar {
  gap: 12px;
}

.menu-import-row > *,
.bulk-product-review-row > * {
  min-width: 0;
  max-width: 100%;
}

.menu-import-row label {
  color: #6e717b;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-import-enable {
  display: grid;
  place-items: center;
  gap: 4px;
  align-self: stretch;
  min-height: 60px;
  padding: 8px;
  border-radius: 8px;
  background: #fff1f2;
  color: var(--pj-red);
}

.menu-import-enable input {
  width: 18px;
  height: 18px;
  accent-color: var(--pj-red);
}

.menu-import-thumb {
  display: grid;
  gap: 6px;
  align-self: stretch;
  padding: 7px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(239, 59, 45, .08);
}

.menu-import-thumb img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 7px;
}

.menu-import-thumb small {
  color: var(--pj-red);
  font-size: .72rem;
  font-weight: 900;
}

.menu-import-description {
  grid-column: 2 / -1;
}

.bulk-product-review-row .menu-import-description {
  grid-column: 3 / -1;
}

.menu-import-savebar {
  position: sticky;
  bottom: 96px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(239, 59, 45, .14);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 36px rgba(89, 27, 30, .14);
  backdrop-filter: blur(12px);
}

.menu-import-savebar span {
  color: #20242d;
  font-weight: 900;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}

.admin-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(239, 59, 45, .18);
  border-radius: 8px;
  color: var(--pj-red);
  background: #fff;
  text-decoration: none;
  font-weight: 900;
}

.admin-page-link:hover,
.admin-page-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pj-red), var(--pj-orange));
  border-color: transparent;
}

.admin-pagination .disabled {
  pointer-events: none;
  opacity: .45;
}

.location-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.address-list {
  display: grid;
  gap: 12px;
}

.location-status {
  display: block;
  padding: 9px 0;
  color: var(--pj-muted);
  font-size: .88rem;
  font-weight: 800;
}

.address-map-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--pj-line);
  border-radius: 8px;
  background: #fff7f4;
}

.address-map-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.address-map-search .btn {
  white-space: nowrap;
}

.address-map {
  height: 280px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(232, 54, 31, .14);
  background: #f4ebe7;
}

.restaurant-map {
  height: 320px;
}

.address-map-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.address-map-meta .location-status {
  padding: 0;
}

.address-map-meta small {
  flex: 0 0 auto;
  color: var(--pj-red);
  font-weight: 900;
}

.mini-location {
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(67,33,16,.08);
}

.mini-location strong, .mini-location span {
  display: block;
}

.mini-location span {
  color: var(--pj-muted);
}

.address-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.address-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.address-actions form {
  margin: 0;
}

.auth-panel {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel .pj-card {
  width: min(100%, 460px);
}

.auth-phone-card hr {
  margin: 22px 0;
  border-color: rgba(226, 55, 68, .16);
}

.auth-switch-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(226, 55, 68, .06);
  color: var(--pj-muted);
  font-size: .95rem;
}

.auth-switch-box a {
  color: var(--pj-red);
  font-weight: 900;
  text-decoration: none;
}

.auth-switch-box a:hover {
  text-decoration: underline;
}

.auth-code-box {
  display: grid;
  gap: 4px;
  margin: 18px 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(34, 164, 92, .25);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 164, 92, .12), rgba(255, 138, 31, .12));
}

.auth-code-box span,
.auth-code-box small {
  color: var(--pj-muted);
}

.auth-code-box strong {
  font-size: 1.05rem;
}

.auth-code-box code {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  color: #0f7a42;
  background: rgba(255, 255, 255, .72);
  font-weight: 900;
}

.auth-code-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 6px;
}

.auth-code-actions form {
  margin: 0;
}

.btn-pj-soft {
  border: 1px solid rgba(226, 55, 68, .18);
  background: rgba(226, 55, 68, .08);
  color: var(--pj-red);
  font-weight: 800;
}

.btn-pj-soft:hover {
  border-color: rgba(226, 55, 68, .28);
  background: rgba(226, 55, 68, .14);
  color: var(--pj-red);
}

.auth-mini-form {
  margin-top: 12px;
}

@media (max-width: 420px) {
  .auth-switch-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-code-actions {
    grid-template-columns: 1fr;
  }
}

.empty-state {
  max-width: 760px;
  margin: 24px auto;
  padding: 34px;
  text-align: center;
}

.rider-photo-preview,
.rider-photo-thumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(226, 55, 68, .12);
  border-radius: 8px;
  background: rgba(226, 55, 68, .05);
  color: var(--pj-ink);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}

.rider-photo-preview img,
.rider-photo-thumb img {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(89, 27, 30, .14);
}

.rider-photo-preview.is-empty {
  color: var(--pj-muted);
  background: rgba(108, 117, 125, .06);
}

.rider-photo-thumb:hover {
  color: var(--pj-red);
  background: rgba(226, 55, 68, .09);
}

.cancel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
  flex: 0 1 420px;
  min-width: min(100%, 260px);
}

.cancel-actions form {
  margin: 0;
}

.notify-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: grid;
  gap: 4px;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--pj-red), var(--pj-orange));
  box-shadow: 0 18px 42px rgba(89, 27, 30, .26);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.notify-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.notify-toast.is-urgent {
  border: 1px solid rgba(255, 255, 255, .42);
  background:
    radial-gradient(circle at 14% 12%, rgba(255,255,255,.32), transparent 28%),
    linear-gradient(135deg, #ef233c, #ff6b18);
  box-shadow: 0 22px 56px rgba(239, 59, 45, .36);
  animation: urgentToastPulse 1s ease-in-out infinite alternate;
}

.notify-toast strong,
.notify-toast span {
  display: block;
}

.notify-toast span {
  font-size: .9rem;
  opacity: .92;
}

@keyframes urgentToastPulse {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-3px) scale(1.015); }
}

.customer-eta-popup {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(720px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .20), transparent 24%),
    linear-gradient(135deg, #ef3b2d, #ff7418);
  box-shadow: 0 24px 60px rgba(89, 27, 30, .28);
  transform: translate(-50%, 24px) scale(.98);
  opacity: 0;
  pointer-events: none;
  animation: customerEtaIn .42s ease forwards;
}

.customer-eta-popup.is-visible {
  pointer-events: auto;
}

.customer-eta-close {
  position: absolute;
  top: -10px;
  right: -8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 999px;
  color: #ef3b2d;
  background: #fff;
  box-shadow: 0 10px 24px rgba(89, 27, 30, .24);
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1;
}

.customer-eta-close:active {
  transform: scale(.94);
}

@keyframes customerEtaIn {
  to {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}

.customer-eta-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.customer-eta-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #ef3b2d;
  background: #fff;
  box-shadow: inset 0 -4px 10px rgba(239, 59, 45, .14);
  font-size: .78rem;
  font-weight: 950;
}

.customer-eta-main div {
  min-width: 0;
}

.customer-eta-main small,
.customer-eta-side small,
.customer-eta-main span {
  display: block;
  line-height: 1.25;
}

.customer-eta-main small,
.customer-eta-side small {
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: .82;
}

.customer-eta-main strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-eta-main span {
  font-size: .86rem;
  font-weight: 750;
  opacity: .9;
}

.customer-eta-delay {
  margin-top: 3px;
  padding: 3px 8px;
  width: fit-content;
  border-radius: 999px;
  color: #5c2408;
  background: rgba(255, 255, 255, .86);
  opacity: 1 !important;
}

.customer-eta-side {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 4px;
}

.customer-eta-side strong {
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1;
}

.customer-eta-side a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--pj-red);
  background: #fff;
  font-size: .82rem;
  font-weight: 950;
  text-decoration: none;
}

.tracking-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.tracking-page {
  overflow-x: hidden;
}

.tracking-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #fff3ef);
  border: 1px solid rgba(239, 59, 45, .12);
  box-shadow: 0 18px 44px rgba(89, 27, 30, .08);
}

.tracking-head h1 {
  margin: 8px 0 2px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
}

.tracking-head p,
.tracking-panel p {
  margin: 0;
}

.tracking-eta {
  min-width: 104px;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--pj-red), var(--pj-orange));
}

.tracking-eta small,
.tracking-panel small {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: .68rem;
  opacity: .72;
}

.tracking-eta strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.tracking-eta span {
  display: block;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #5c2408;
  background: rgba(255, 255, 255, .88);
  font-size: .72rem;
  font-weight: 900;
}

.tracking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.tracking-map-card,
.tracking-panel {
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(89, 27, 30, .08);
  box-shadow: 0 18px 44px rgba(89, 27, 30, .08);
}

.tracking-map-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.tracking-legend {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(89, 27, 30, .14);
}

.tracking-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 800;
  color: #251412;
}

.tracking-legend b {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-rider { background: #11854f; }
.legend-pickup { background: var(--pj-red); }
.legend-drop { background: #212529; }

.delivery-track-map {
  min-height: 540px;
  height: 68vh;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(239, 59, 45, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(239, 59, 45, .08) 1px, transparent 1px),
    linear-gradient(135deg, #fff7f3, #f3fff9);
  background-size: 36px 36px, 36px 36px, auto;
}

.tracking-page *,
.tracking-page *::before,
.tracking-page *::after {
  box-sizing: border-box;
}

.tracking-page .leaflet-container {
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  overflow: hidden;
}

.tracking-page .leaflet-control-container {
  max-width: 100%;
}

.delivery-track-map.is-tiles-ready .map-fallback {
  display: none;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  z-index: 2;
}

.map-fallback-route {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(560px, 86%);
  margin-bottom: 26px;
}

.fallback-marker {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  border: 4px solid #fff;
  box-shadow: 0 18px 34px rgba(89, 27, 30, .2);
}

.fallback-marker svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fallback-marker.pickup { background: var(--pj-red); }
.fallback-marker.rider {
  width: 70px;
  height: 70px;
  background: #11854f;
}

.fallback-marker.rider svg {
  width: 42px;
  height: 42px;
}

.fallback-marker.drop { background: #212529; }

.fallback-line {
  flex: 1;
  max-width: 180px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--pj-orange) 0 18px, transparent 18px 28px);
}

.map-fallback-copy {
  max-width: 420px;
  padding: 16px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 44px rgba(89, 27, 30, .12);
}

.map-fallback-copy strong,
.map-fallback-copy span,
.map-fallback-copy small {
  display: block;
}

.map-fallback-copy strong {
  color: #251412;
  font-size: 1.2rem;
}

.map-fallback-copy span {
  margin-top: 4px;
  color: var(--pj-red);
  font-weight: 900;
}

.map-fallback-copy small {
  margin-top: 4px;
  color: #6d5a56;
}

.tracking-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  min-width: 0;
}

.tracking-panel > div {
  padding: 12px;
  border-radius: 8px;
  background: #fff8f5;
  min-width: 0;
}

.tracking-panel strong {
  display: block;
  color: #251412;
  overflow-wrap: anywhere;
}

.tracking-panel span {
  display: block;
  color: #6d5a56;
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.tracking-panel a {
  margin-top: 10px;
}

.track-pin {
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(89, 27, 30, .22);
}

.track-pin span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.track-pin svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-pin-rider svg {
  width: 27px;
  height: 27px;
}

.track-pin-rider span {
  background: #11854f;
}

.track-pin-pickup span {
  background: var(--pj-red);
}

.track-pin-drop span {
  background: #212529;
}

.delivery-tracker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #fff7f3;
  border: 1px solid rgba(239, 59, 45, .12);
}

.delivery-tracker small {
  flex-basis: 100%;
  color: #6d5a56;
}

.delivery-delay-form {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(239, 59, 45, .12);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, #fff6f3);
}

.delivery-delay-form label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.delivery-delay-form label span,
.delivery-delay-note {
  color: var(--pj-muted);
  font-size: .76rem;
  font-weight: 850;
}

.delivery-delay-note {
  grid-column: 1 / -1;
  display: block;
  padding: 6px 9px;
  border-radius: 10px;
  color: var(--pj-red);
  background: #fff0f1;
}

.delivery-job {
  align-items: stretch;
}

.delivery-job .management-main {
  display: grid;
  gap: 10px;
}

.delivery-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.delivery-route-stop {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(239, 59, 45, .10);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fff8f6);
}

.delivery-route-stop span {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--pj-red);
  background: #fff0f1;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.delivery-route-stop strong,
.delivery-route-stop small {
  display: block;
}

.delivery-route-stop strong {
  color: var(--pj-ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.delivery-route-stop small {
  margin: 2px 0 6px;
  color: #6f6264;
  font-weight: 750;
}

.delivery-route-stop p {
  margin: 0;
  color: var(--pj-muted);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.delivery-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: -6px 0 24px;
  padding: 18px;
  border: 1px solid rgba(239, 59, 45, .10);
  background:
    radial-gradient(circle at top right, rgba(255, 112, 24, .12), transparent 30%),
    #fff;
}

.delivery-status-card h2 {
  margin: 8px 0 4px;
  font-size: 1.1rem;
  font-weight: 950;
}

.delivery-status-card p,
.delivery-status-card small {
  display: block;
  margin: 0;
  color: var(--pj-muted);
}

.delivery-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 950;
}

.delivery-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.delivery-status-pill.is-online {
  color: #0f9f5f;
  background: #eafff4;
}

.delivery-status-pill.is-offline {
  color: #ef3b2d;
  background: #fff0f1;
}

.payout-account-form {
  align-items: end;
}

.withdrawal-claim-form {
  display: grid;
  gap: 9px;
  width: min(100%, 520px);
}

.withdrawal-claim-form .form-label {
  margin: 0;
  color: var(--pj-ink);
  font-size: .86rem;
  font-weight: 850;
}

.withdrawal-claim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.withdrawal-history {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.withdrawal-history small {
  display: block;
  color: var(--pj-muted);
}

.withdrawal-card {
  align-items: stretch;
  border-color: rgba(15, 159, 95, .14);
}

.withdrawal-card .management-main {
  display: grid;
  align-content: start;
  gap: 6px;
  flex-basis: 260px;
}

.withdrawal-card .management-main h2 {
  max-width: 12ch;
  margin: 2px 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.08;
}

.withdrawal-card .management-main p,
.withdrawal-card .management-main small {
  max-width: 32ch;
  margin: 0;
}

.withdrawal-card .management-actions {
  flex: 1 1 420px;
  align-content: center;
  min-width: min(100%, 280px);
}

.kyc-card {
  border-color: rgba(255, 138, 31, .18);
  background:
    radial-gradient(circle at top right, rgba(255, 138, 31, .08), transparent 34%),
    #fff;
}

@media (max-width: 576px) {
  .hero { min-height: 68vh; }
  .hero h1 { font-size: 2.3rem; }
  .food-card img, .restaurant-card img { height: 140px; }
}

@media (max-width: 1100px) {
  .restaurant-grid, .stats-grid, .location-list, .zomato-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-circles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 286px;
    transform: translateX(-105%);
    transition: transform .22s ease;
  }

  .sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .menu-toggle {
    display: inline-block;
  }

  .app-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px;
    gap: 8px;
  }

  .top-location-menu {
    grid-column: 2 / 3;
  }

  .top-location {
    padding: 7px 8px;
  }

  .location-pin {
    width: 17px;
    height: 17px;
  }

  .location-pin::after {
    left: 5px;
    top: 5px;
    width: 7px;
    height: 7px;
  }

  .top-location small {
    font-size: .58rem;
  }

  .top-location strong {
    max-width: 118px;
    font-size: .72rem;
  }

  .top-actions {
    grid-column: 3 / 4;
    grid-row: 1;
    align-self: center;
  }

  .cart-label {
    display: none;
  }

  .top-actions {
    gap: 7px;
  }

  .veg-mode-switch strong {
    display: block;
    font-size: .62rem;
  }

  .location-strip {
    grid-template-columns: 1fr;
    margin: 12px;
  }

  .compact-location {
    justify-content: stretch;
    margin: 8px 12px 0;
  }

  .location-form {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .location-form select {
    min-width: 0;
    width: 100%;
  }

  .app-hero, .restaurant-hero {
    margin: 12px;
    padding: 24px;
  }

  .content-pad,
  .mobile-home {
    padding: 16px 12px;
  }

  .restaurant-grid, .stats-grid, .location-list, .zomato-grid {
    grid-template-columns: 1fr;
  }

  .category-circles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .category-circles img {
    width: 70px;
    height: 70px;
  }

  .offer-banner {
    display: block;
    padding: 22px;
  }

  .offer-banner strong {
    width: 86px;
    height: 86px;
    margin-top: 16px;
    font-size: 1rem;
  }

  .product-strip {
    grid-auto-columns: minmax(210px, 78vw);
  }

  .mobile-location-card {
    align-items: flex-start;
  }

  .management-card {
    align-items: stretch;
  }

  .admin-section-bar,
  .order-date-filter,
  .admin-search-form,
  .manager-request-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .menu-import-uploader,
  .menu-import-row,
  .bulk-product-review-row {
    grid-template-columns: 1fr;
  }

  .menu-import-description,
  .bulk-product-review-row .menu-import-description,
  .menu-import-uploader textarea,
  .menu-import-uploader .menu-import-actions {
    grid-column: auto;
  }

  .menu-import-enable {
    display: flex;
    justify-content: space-between;
    min-height: auto;
  }

  .manager-request-submit {
    width: 100%;
  }

  .admin-pagination {
    justify-content: center;
  }

  .cancel-actions {
    grid-template-columns: 1fr;
  }

  .address-map-search {
    grid-template-columns: 1fr;
  }

  .address-map {
    height: 240px;
  }

  .address-map-meta {
    display: block;
  }

  .address-map-meta small {
    display: block;
    margin-top: 4px;
  }

  .management-card > img {
    flex-basis: 100%;
    width: 100%;
    height: 160px;
  }

  .restaurant-banner-card .restaurant-banner-preview {
    flex-basis: 100%;
    width: 100%;
    height: 180px;
  }

  .banner-upload-form {
    width: 100%;
  }

  .management-main {
    flex-basis: 100%;
  }

  .management-actions {
    flex-basis: 100%;
    min-width: 0;
  }

  .delivery-route-grid {
    grid-template-columns: 1fr;
  }

  .withdrawal-card .management-main,
  .withdrawal-card .management-main h2,
  .withdrawal-card .management-main p,
  .withdrawal-card .management-main small {
    max-width: none;
  }

  .withdrawal-claim-form {
    width: 100%;
  }

  .withdrawal-claim-row {
    grid-template-columns: 1fr;
  }

  .delivery-status-card {
    display: grid;
  }

  .delivery-status-card .btn {
    width: 100%;
  }

  .tracking-head,
  .tracking-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .tracking-head {
    display: grid;
    align-items: stretch;
  }

  .tracking-eta {
    width: 100%;
  }

  .tracking-page {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 150px;
  }

  .tracking-shell {
    gap: 12px;
  }

  .tracking-map-card,
  .tracking-panel {
    width: 100%;
    max-width: 100%;
  }

  .tracking-legend {
    top: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    gap: 6px;
    padding: 7px;
  }

  .tracking-legend span {
    font-size: .68rem;
  }

  .delivery-track-map {
    height: min(58vh, 430px);
    min-height: 320px;
    max-height: 430px;
  }
}

/* App-style shell refresh */
body {
  background: #f3f4f8;
}

.app-shell,
.app-shell.app-mobile-shell {
  display: block;
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 24, 35, .04), 0 22px 70px rgba(22, 24, 35, .10);
}

.app-sidebar {
  display: none !important;
}

.app-main {
  min-height: 100vh;
  padding-bottom: 104px;
}

.app-topbar.app-home-header {
  position: sticky;
  top: 0;
  z-index: 70;
  display: block;
  padding: 18px 20px 16px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(245, 198, 94, .96) 0%, rgba(255, 241, 181, .96) 72%, rgba(255, 255, 255, .98) 100%),
    url('https://images.unsplash.com/photo-1514516870926-205989ec7a33?auto=format&fit=crop&w=1200&q=80') center/cover;
  backdrop-filter: blur(18px);
}

.app-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.app-location-menu {
  flex: 1;
  min-width: 0;
}

.top-location.app-location-summary {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-location-summary .location-pin {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  background: #20242d;
}

.app-location-summary .location-pin::after {
  left: 5px;
  top: 5px;
  width: 8px;
  height: 8px;
}

.app-location-summary strong {
  display: inline-flex;
  align-items: center;
  max-width: min(220px, 40vw);
  color: #20242d;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: none;
}

.app-location-summary small {
  display: block;
  max-width: min(300px, 46vw);
  margin-top: 3px;
  overflow: hidden;
  color: #2b2f3a;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.location-chevron {
  width: 8px;
  height: 8px;
  margin: 10px 0 0 3px;
  border-right: 2px solid #20242d;
  border-bottom: 2px solid #20242d;
  transform: rotate(45deg);
}

.location-popover {
  top: calc(100% + 12px);
  width: min(390px, 92vw);
  border-radius: 8px;
  border-color: rgba(31, 41, 55, .08);
}

.app-action-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.gold-pill,
.round-action,
.profile-bubble {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(31, 41, 55, .14);
}

.gold-pill {
  min-width: 70px;
  height: 40px;
  padding: 5px 11px;
  border: 1px solid rgba(145, 95, 15, .22);
  border-radius: 999px;
  color: #8a5a09;
  background: #fffdf2;
  line-height: 1;
}

.gold-pill strong,
.gold-pill span {
  display: block;
}

.gold-pill strong {
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .02em;
}

.gold-pill span {
  margin-top: 2px;
  font-size: .78rem;
  font-weight: 800;
}

.round-action,
.profile-bubble {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
}

.profile-bubble {
  color: #2d6cdf;
  background: #dbe9ff;
  font-size: 1.1rem;
  font-weight: 950;
}

.action-icon {
  display: block;
  width: 21px;
  height: 21px;
  color: #4f5564;
}

.ticket-action span {
  position: relative;
  width: 19px;
  height: 24px;
  border: 2px solid #4f5564;
  border-radius: 5px;
  transform: rotate(-14deg);
}

.ticket-action span::before,
.ticket-action span::after {
  content: "";
  position: absolute;
  background: #4f5564;
}

.ticket-action span::before {
  width: 10px;
  height: 2px;
  margin: 7px 0 0 4px;
}

.ticket-action span::after {
  width: 8px;
  height: 2px;
  margin: 13px 0 0 5px;
}

.round-action b {
  position: absolute;
  right: -4px;
  top: -4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--pj-red);
  font-size: .68rem;
  font-weight: 950;
}

.ai-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.ai-search {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 46px;
  align-items: center;
  min-height: 58px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 244, .94);
  box-shadow: 0 12px 26px rgba(76, 55, 13, .10);
}

.ai-search-icon {
  position: relative;
  width: 21px;
  height: 21px;
  border: 4px solid #252936;
  border-radius: 50%;
}

.ai-search-icon::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 10px;
  height: 4px;
  border-radius: 999px;
  background: #252936;
  transform: rotate(45deg);
}

.ai-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: #222734;
  background: transparent;
  font-size: 1rem;
  font-weight: 650;
}

.ai-search input::placeholder {
  color: #8b8b8b;
  opacity: 1;
}

.mic-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-left: 1px solid rgba(31, 41, 55, .13);
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.mic-btn span {
  position: relative;
  width: 13px;
  height: 20px;
  border: 3px solid #252936;
  border-radius: 999px;
}

.mic-btn span::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 21px;
  height: 14px;
  border: 3px solid #252936;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.mic-btn span::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -11px;
  width: 3px;
  height: 9px;
  border-radius: 999px;
  background: #252936;
}

.mic-btn.listening {
  background: #fff0f1;
}

.app-veg-switch {
  align-self: center;
  width: 54px;
}

.app-veg-switch strong {
  color: #20242d;
  font-size: .62rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.app-veg-switch .veg-mode-track {
  width: 46px;
  height: 27px;
}

.app-veg-switch .veg-mode-knob {
  width: 19px;
  height: 19px;
}

.app-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 85;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: min(520px, calc(100vw - 32px));
  padding: 7px;
  border: 1px solid rgba(31, 41, 55, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 40px rgba(31, 41, 55, .18);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.install-app-chip {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 84;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pj-red), var(--pj-orange));
  box-shadow: 0 14px 30px rgba(226, 55, 68, .24);
  font-size: .88rem;
  font-weight: 950;
  transform: translateX(-50%);
}

.install-app-chip[hidden] {
  display: none !important;
}

.install-app-chip:active {
  transform: translateX(-50%) scale(.96);
}

.bottom-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 56px;
  padding: 7px 6px;
  border-radius: 999px;
  color: #69707d;
  text-decoration: none;
  font-weight: 850;
  transform: translateZ(0);
  transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.bottom-nav-item.active {
  color: var(--pj-red);
  background: #fff0f1;
  box-shadow: inset 0 0 0 1px rgba(226, 55, 68, .05);
  transform: translateY(-1px);
}

.bottom-nav-item small {
  display: block;
  max-width: 76px;
  overflow: hidden;
  font-size: .74rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav-item b {
  position: absolute;
  right: 10px;
  top: 4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--pj-red);
  font-size: .62rem;
}

.bottom-icon {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: currentColor;
}

.icon-delivery::before {
  content: "";
  position: absolute;
  inset: 6px 2px 5px 4px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-delivery::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 1px;
  height: 5px;
  border-radius: 999px;
  background: radial-gradient(circle at 3px 2px, currentColor 0 2px, transparent 2px), radial-gradient(circle at calc(100% - 3px) 2px, currentColor 0 2px, transparent 2px);
}

.icon-cart::before,
.icon-history::before,
.icon-profile::before,
.icon-admin::before,
.icon-home::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.icon-cart::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 1px;
  height: 4px;
  background: radial-gradient(circle at left center, currentColor 0 2px, transparent 2px), radial-gradient(circle at right center, currentColor 0 2px, transparent 2px);
}

.icon-history::before {
  border-radius: 50%;
}

.icon-history::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 7px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.icon-profile::before {
  inset: 4px 6px 2px;
  border-radius: 999px 999px 7px 7px;
}

.icon-profile::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-admin::before {
  border-radius: 3px;
}

.icon-home::before {
  inset: 8px 4px 3px;
}

.icon-home::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 13px;
  height: 13px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.mobile-home.app-home-page {
  max-width: none;
  padding: 0 20px 112px;
}

.gold-flash-banner {
  min-height: 260px;
  margin: 0 -20px 18px;
  padding: 44px 24px 34px;
  border-radius: 0;
  color: var(--banner-text, #8a5a09);
  text-align: center;
  background:
    linear-gradient(180deg, var(--banner-overlay-start, rgba(255, 250, 222, .76)), var(--banner-overlay-end, rgba(255, 236, 165, .72))),
    var(--banner-image, url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1200&q=80')) center/cover;
  box-shadow: none;
}

.gold-flash-banner div {
  margin: 0 auto;
}

.gold-flash-banner span {
  color: var(--banner-accent, #8a5a09);
  background: rgba(255, 255, 255, .70);
}

.gold-flash-banner h2 {
  max-width: none;
  margin: 16px 0 6px;
  color: var(--banner-accent, #9b6810);
  font-size: clamp(2.1rem, 8vw, 4.4rem);
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(255, 255, 255, .42);
}

.gold-flash-banner p {
  max-width: 420px;
  margin: 0 auto 18px;
  color: var(--banner-text, #6b4a16);
}

.gold-flash-banner a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--banner-button-text, #fff);
  background: var(--banner-button-bg, #111216);
  text-decoration: none;
  font-weight: 900;
}

.gold-flash-banner > strong {
  display: none;
}

.banner-settings-card .gold-flash-banner {
  min-height: 220px;
  margin: 14px 0 18px;
  border-radius: 18px;
}

.banner-settings-card .form-control-color {
  min-height: 46px;
  padding: 5px;
}

.category-circles.app-category-tabs {
  display: flex;
  grid-template-columns: none;
  gap: 22px;
  align-items: end;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 18px 20px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.category-circles.app-category-tabs::-webkit-scrollbar,
.app-filter-chips::-webkit-scrollbar,
.app-product-strip::-webkit-scrollbar {
  display: none;
}

.app-category-tabs a {
  flex: 0 0 108px;
  min-width: 108px;
  padding: 0;
  scroll-snap-align: start;
}

.app-category-tabs .offer-tab {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 88px;
  min-width: 88px;
  height: 104px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #f45a62, #3f8dd8);
  box-shadow: 0 12px 22px rgba(31, 76, 140, .18);
}

.offer-tab strong,
.offer-tab b,
.offer-tab span {
  display: block;
}

.offer-tab strong {
  font-size: .58rem;
  letter-spacing: .04em;
}

.offer-tab b {
  margin: 3px 0;
  font-size: 1rem;
}

.offer-tab span {
  font-size: .74rem;
}

.app-category-tabs .category-tab {
  position: relative;
}

.app-category-tabs .category-tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -8px;
  height: 4px;
  border-radius: 999px;
  background: #ef4c63;
}

.app-category-tabs img {
  width: 78px;
  height: 58px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.app-category-tabs span {
  display: block;
  width: 100%;
  max-width: 108px;
  margin-top: 8px;
  overflow: hidden;
  color: #575c6a;
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-category-tabs .active span {
  color: #1f2430;
}

.app-filter-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 16px -20px 20px;
  padding: 0 20px 4px;
}

.app-filter-chips a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(31, 41, 55, .10);
  border-radius: 8px;
  color: #2a2e39;
  background: #fff;
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(31, 41, 55, .06);
}

.chip-filter-icon {
  width: 18px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.chip-filter-icon::before {
  content: "";
  display: block;
  width: 18px;
  margin-top: 4px;
  border-top: 2px solid currentColor;
}

.chip-bolt {
  width: 11px;
  height: 18px;
  background: #00a86b;
  clip-path: polygon(44% 0, 100% 0, 62% 44%, 100% 44%, 29% 100%, 46% 56%, 0 56%);
}

.recommended-title h2,
.restaurant-title h2 {
  color: #6e7281;
  font-size: .92rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.app-product-strip {
  grid-auto-columns: minmax(210px, 246px);
  gap: 16px;
  margin: 0 -20px;
  padding: 0 20px 8px;
}

.product-card,
.zomato-card {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.product-card img {
  height: 134px;
  border-radius: 8px;
}

.product-card div {
  padding: 10px 0 2px;
}

.product-card small {
  color: #6f7684;
}

.product-card h3 {
  overflow: hidden;
  color: #20242d;
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card footer {
  justify-content: flex-start;
  gap: 12px;
}

.app-restaurant-feed {
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 20px 16px;
}

.zomato-image img {
  height: 148px;
  border-radius: 8px;
}

.zomato-image span {
  left: 8px;
  bottom: 8px;
  border-radius: 6px;
  background: rgba(32, 36, 45, .86);
}

.zomato-body {
  padding: 10px 0 0;
}

.zomato-body div {
  align-items: flex-start;
}

.zomato-body h3 {
  overflow: hidden;
  color: #20242d;
  font-size: 1.04rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zomato-body b {
  border-radius: 999px;
  font-size: .78rem;
}

.zomato-body p {
  min-height: 0;
  margin: 5px 0 8px;
  overflow: hidden;
  color: #667085;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zomato-body footer {
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.zomato-body footer span {
  color: #6f7684;
  font-size: .82rem;
}

.profile-app-page {
  max-width: none;
  padding: 18px 20px 112px;
  background: #f3f4f9;
}

.profile-back {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #1f2430;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 41, 55, .08);
}

.profile-back span {
  width: 15px;
  height: 15px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

.profile-hero-card,
.profile-mini-card,
.profile-update-row,
.profile-option-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 41, 55, .06);
}

.profile-hero-card {
  overflow: hidden;
}

.profile-person {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: #2d6cdf;
  background: #d8e5ff;
  font-size: 2.1rem;
  font-weight: 950;
}

.profile-person h1 {
  margin: 0 0 8px;
  color: #191d27;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 950;
}

.profile-person a {
  color: #303644;
  text-decoration: none;
  font-weight: 850;
}

.profile-gold-band {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 0 22px;
  color: #f4d9a0;
  background: #151519;
  text-decoration: none;
}

.gold-medal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, #f6d37e 0 34%, #8a641f 36% 100%);
}

.profile-gold-band strong {
  flex: 1;
  font-size: 1.14rem;
  font-weight: 950;
}

.profile-gold-band i,
.profile-update-row i,
.profile-list-row i {
  width: 13px;
  height: 13px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
}

.profile-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 18px;
}

.profile-mini-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  min-height: 88px;
  padding: 16px;
  color: #222734;
  text-decoration: none;
}

.profile-mini-card span,
.profile-update-row span,
.profile-list-row > span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f9;
  color: #7b8190;
}

.profile-icon {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 8px 18px rgba(31, 41, 55, .08);
}

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

.profile-icon-wallet {
  color: #0f9f62 !important;
  background: linear-gradient(145deg, #ecfdf3, #d9fbe8) !important;
}

.profile-icon-orders {
  color: #ef4c63 !important;
  background: linear-gradient(145deg, #fff0f3, #ffe3e9) !important;
}

.profile-icon-veg {
  color: #11a35d !important;
  background: linear-gradient(145deg, #f1fff7, #dcfce9) !important;
}

.profile-icon-address {
  color: #2d6cdf !important;
  background: linear-gradient(145deg, #eef5ff, #dae9ff) !important;
}

.profile-icon-logout {
  color: #d62f42 !important;
  background: linear-gradient(145deg, #fff0f1, #ffe2e5) !important;
}

.profile-mini-card strong {
  display: block;
  font-weight: 900;
}

.profile-mini-card em,
.profile-update-row em,
.profile-list-row em {
  color: #0f9f62;
  font-style: normal;
  font-weight: 900;
}

.profile-update-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  margin-bottom: 28px;
  padding: 18px;
  color: #222734;
  text-decoration: none;
}

button.profile-update-row {
  width: 100%;
  border: 0;
  text-align: left;
}

.install-profile-row {
  margin-top: -12px;
  color: #116b35;
}

.profile-update-row strong {
  font-size: 1.15rem;
  font-weight: 900;
}

.profile-update-row em {
  padding: 5px 12px;
  border-radius: 999px;
  color: #e85870;
  background: #fff1f4;
}

.install-profile-row em {
  color: #0f9f62;
  background: #ecfdf3;
}

.profile-option-card {
  position: relative;
  margin: 0 0 28px;
  overflow: hidden;
}

.profile-option-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 4px;
  height: 32px;
  border-radius: 999px;
  background: #ef4c63;
}

.profile-option-card h2 {
  margin: 0;
  padding: 28px 26px 18px;
  color: #222734;
  font-size: 1.45rem;
  font-weight: 950;
}

.profile-list-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 0 26px;
  border: 0;
  border-top: 1px solid #eceef4;
  color: #293040;
  background: #fff;
  text-align: left;
  text-decoration: none;
}

.profile-list-row strong {
  font-size: 1.08rem;
  font-weight: 850;
}

.profile-list-row em {
  color: #777e8e;
}

.profile-list-row.logout-row {
  color: #d62f42;
}

.profile-list-row.logout-row > span:first-child {
  color: #d62f42;
  background: #fff0f1;
}

.mini-toggle {
  justify-self: end;
  width: 56px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: #e5e8ef !important;
}

.mini-toggle::after {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 41, 55, .18);
}

.profile-edit-grid {
  margin-top: 12px;
}

.profile-edit-grid .pj-card,
.profile-edit-grid .address-card {
  border: 0;
  border-radius: 8px;
}

@media (max-width: 520px) {
  .app-topbar.app-home-header {
    padding: 16px 14px 14px;
  }

  .app-action-pills {
    gap: 6px;
  }

  .gold-pill {
    min-width: 66px;
    height: 38px;
    padding: 5px 10px;
  }

  .round-action,
  .profile-bubble {
    width: 38px;
    height: 38px;
  }

  .ai-search-row {
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .ai-search {
    min-height: 54px;
    grid-template-columns: 28px minmax(0, 1fr) 42px;
  }

  .ai-search input {
    font-size: .9rem;
  }

  .app-bottom-nav {
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .bottom-nav-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 7px 6px;
  }

  .bottom-icon {
    margin: 0 auto;
  }

  .mobile-home.app-home-page,
  .profile-app-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .gold-flash-banner,
  .category-circles.app-category-tabs,
  .app-filter-chips,
  .app-product-strip {
    margin-left: -14px;
    margin-right: -14px;
  }

  .category-circles.app-category-tabs,
  .app-filter-chips,
  .app-product-strip {
    padding-left: 14px;
    padding-right: 14px;
  }

  .app-restaurant-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .zomato-image img {
    height: 124px;
  }

  .profile-person {
    gap: 18px;
    padding: 22px;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.7rem;
  }

  .profile-quick-grid {
    gap: 12px;
  }

  .profile-mini-card {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 78px;
    padding: 12px;
  }

  .profile-list-row {
    grid-template-columns: 34px minmax(0, 1fr) auto 12px;
    padding: 0 18px;
  }

  .tracking-page {
    padding: 12px 12px 156px;
  }

  .tracking-head {
    padding: 14px;
    gap: 12px;
  }

  .tracking-head h1 {
    font-size: 1.75rem;
    line-height: 1.05;
  }

  .tracking-head small {
    display: block;
    line-height: 1.35;
  }

  .tracking-eta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 10px;
    padding: 10px 12px;
    text-align: left;
  }

  .tracking-eta strong {
    font-size: 1.25rem;
    text-align: right;
  }

  .tracking-eta span {
    grid-column: 1 / -1;
    margin-top: 2px;
    white-space: normal;
  }

  .delivery-track-map {
    height: min(46vh, 360px);
    min-height: 270px;
    max-height: 360px;
    border-radius: 8px;
  }

  .tracking-panel {
    gap: 10px;
    padding: 10px;
  }

  .tracking-panel > div {
    padding: 10px;
  }

  .tracking-panel p,
  .tracking-panel span {
    font-size: .88rem;
    line-height: 1.35;
  }

  .map-fallback {
    padding: 18px 12px;
  }

  .map-fallback-route {
    width: 94%;
  }

  .fallback-marker {
    width: 42px;
    height: 42px;
    border-width: 3px;
  }

  .fallback-marker.rider {
    width: 54px;
    height: 54px;
  }

  .fallback-marker svg {
    width: 24px;
    height: 24px;
  }

  .fallback-marker.rider svg {
    width: 32px;
    height: 32px;
  }

  .map-fallback-copy {
    max-width: calc(100% - 22px);
    padding: 12px;
  }
}

@keyframes pjHeaderDrop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pjSoftRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pjNavDock {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes pjHeroShine {
  from {
    transform: translateX(-120%) skewX(-16deg);
  }
  to {
    transform: translateX(150%) skewX(-16deg);
  }
}

.app-topbar.app-home-header {
  animation: pjHeaderDrop .42s cubic-bezier(.2, .8, .2, 1) both;
}

.ai-search,
.gold-flash-banner,
.app-category-tabs a,
.app-filter-chips a,
.product-card,
.zomato-card,
.profile-hero-card,
.profile-mini-card,
.profile-update-row,
.profile-option-card {
  animation: pjSoftRise .52s cubic-bezier(.2, .8, .2, 1) both;
}

.app-category-tabs a:nth-child(2),
.app-filter-chips a:nth-child(2),
.product-card:nth-child(2),
.zomato-card:nth-child(2),
.profile-mini-card:nth-child(2) {
  animation-delay: .04s;
}

.app-category-tabs a:nth-child(3),
.app-filter-chips a:nth-child(3),
.product-card:nth-child(3),
.zomato-card:nth-child(3) {
  animation-delay: .08s;
}

.app-category-tabs a:nth-child(4),
.app-filter-chips a:nth-child(4),
.product-card:nth-child(4),
.zomato-card:nth-child(4) {
  animation-delay: .12s;
}

.app-bottom-nav {
  animation: pjNavDock .46s cubic-bezier(.2, .8, .2, 1) .12s both;
}

.gold-flash-banner {
  position: relative;
  overflow: hidden;
}

.gold-flash-banner > * {
  position: relative;
  z-index: 1;
}

.gold-flash-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  opacity: .55;
  pointer-events: none;
  animation: pjHeroShine 3.8s ease-in-out infinite;
}

.round-action,
.profile-bubble,
.gold-pill,
.bottom-nav-item,
.app-filter-chips a,
.app-category-tabs a,
.product-card,
.zomato-card {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.round-action:hover,
.profile-bubble:hover,
.gold-pill:hover,
.app-filter-chips a:hover,
.app-category-tabs a:hover,
.product-card:hover,
.zomato-card:hover {
  transform: translateY(-2px);
}

.app-category-tabs a:hover img {
  transform: translateY(-2px) scale(1.04);
}

.app-category-tabs img {
  transition: transform .18s ease;
}

.ai-search {
  transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.ai-search:focus-within {
  background: #fff;
  box-shadow: 0 14px 30px rgba(226, 55, 68, .16);
  transform: translateY(-1px);
}

.bottom-nav-item:hover {
  color: var(--pj-red);
  background: #fff6f7;
}

.bottom-nav-item:active,
.round-action:active,
.profile-bubble:active,
.gold-pill:active,
.app-filter-chips a:active {
  transform: scale(.96);
}

.mic-btn.listening span,
.app-veg-switch.is-on .veg-mode-track {
  animation: pjSoftRise .35s cubic-bezier(.2, .8, .2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

.app-restaurant-feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px;
}

.vertical-restaurant-card {
  display: grid;
  grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(22, 24, 29, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 25, 33, .08);
}

.vertical-restaurant-card .zomato-image img {
  width: 100%;
  height: 100%;
  min-height: 126px;
  object-fit: cover;
  border-radius: 14px;
}

.vertical-restaurant-card .zomato-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

.vertical-restaurant-card .zomato-body > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.vertical-restaurant-card .zomato-body h3 {
  white-space: normal;
}

.view-menu-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 10px;
  color: #ef3b2d;
  font-size: .86rem;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  color: #15803d;
  font-size: .78rem;
}

.rating-pill b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: #188a42;
  font-size: .78rem;
  line-height: 1;
}

.rating-pill small {
  color: #7b8190;
  font-weight: 750;
}

.restaurant-back {
  position: relative;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 16px 24px -8px;
  border-radius: 50%;
  color: #20242d;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 25, 33, .14);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.restaurant-back:hover,
.restaurant-back:focus-visible {
  color: #20242d;
  transform: translateX(-2px);
  box-shadow: 0 16px 34px rgba(23, 25, 33, .18);
}

.restaurant-back:focus-visible {
  outline: 3px solid rgba(239, 59, 45, .22);
  outline-offset: 3px;
}

.restaurant-back span {
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

.restaurant-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.restaurant-hero-meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-weight: 800;
}

.restaurant-menu-page {
  padding-bottom: 152px;
}

.restaurant-menu-tools {
  position: sticky;
  top: 88px;
  z-index: 8;
  margin-bottom: 16px;
  padding: 8px 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.restaurant-menu-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(28, 32, 39, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 25, 33, .08);
}

.restaurant-menu-search span {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 3px solid #222733;
  border-radius: 50%;
}

.restaurant-menu-search span::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -6px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: #222733;
  transform: rotate(45deg);
}

.restaurant-menu-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #222733;
  font-weight: 800;
}

.restaurant-menu-list {
  display: grid;
  gap: 14px;
}

.app-menu-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(22, 24, 29, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 25, 33, .07);
}

.menu-item-image {
  width: 118px;
  height: 104px;
  object-fit: cover;
  border-radius: 16px;
}

.menu-item-body {
  min-width: 0;
}

.menu-item-body h2 {
  margin: 8px 0 4px;
  color: #20242d;
}

.menu-item-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.menu-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.menu-item-actions {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  overflow: hidden;
  min-height: 34px;
  border: 1px solid rgba(239, 59, 45, .18);
  border-radius: 999px;
  background: #fff4f2;
}

.qty-stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  color: #ef3b2d;
  background: transparent;
  font-size: 1.15rem;
  font-weight: 900;
}

.qty-stepper strong {
  color: #20242d;
  font-size: .9rem;
  text-align: center;
}

.qty-stepper:not(.is-active) {
  opacity: .54;
}

.restaurant-mini-cart {
  position: fixed;
  left: max(14px, calc((100vw - 760px) / 2 + 14px));
  right: max(14px, calc((100vw - 760px) / 2 + 14px));
  bottom: 92px;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #ef3b2d, #ff7b24);
  box-shadow: 0 20px 46px rgba(239, 59, 45, .34);
}

.restaurant-mini-cart small,
.restaurant-mini-cart span {
  display: block;
  color: rgba(255, 255, 255, .86);
}

.restaurant-mini-cart strong {
  display: block;
  font-size: 1rem;
}

.restaurant-mini-cart .btn {
  border: 0;
  color: #ef3b2d;
  background: #fff;
}

.cart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.cart-title h1 {
  margin: 0;
  font-weight: 950;
}

.cart-title p {
  margin: 3px 0 0;
  color: #777f8e;
  font-weight: 750;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(22, 24, 29, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 25, 33, .07);
}

.cart-item-card img {
  width: 96px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
}

.cart-item-main h2,
.cart-item-main h3 {
  margin: 2px 0 4px;
  color: #20242d;
  font-size: 1rem;
  font-weight: 900;
}

.cart-item-main p {
  margin: 0 0 6px;
  color: #777f8e;
  font-weight: 700;
}

.cart-item-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.checkout-summary-card .bill-row,
.checkout-summary-card .bill-total,
.bill-row,
.bill-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(24, 28, 35, .08);
}

.bill-total {
  border-bottom: 0;
  color: #20242d;
  font-size: 1.1rem;
  font-weight: 950;
}

.checkout-selected-address {
  display: grid;
  gap: 5px;
  padding: 14px;
  color: #20242d;
  background: linear-gradient(135deg, #fff7f4, #fff);
  border: 1px solid rgba(232, 54, 31, .14);
  border-radius: 8px;
}

.checkout-selected-address small,
.checkout-selected-address em {
  color: #ef3d49;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-selected-address strong {
  font-size: 1rem;
  font-weight: 950;
}

.checkout-selected-address p {
  margin: 0;
  color: #626b78;
  line-height: 1.35;
}

.checkout-selected-address span {
  color: #20242d;
  font-weight: 800;
}

.checkout-address-missing {
  background: #fff8e8;
  border-color: rgba(255, 168, 32, .38);
}

.order-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #ef3b2d, #ff8a2a);
}

.order-detail-hero h1 {
  margin: 10px 0 4px;
  font-weight: 950;
}

.order-detail-hero > strong {
  font-size: 1.4rem;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.delivery-rating-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(239, 59, 45, .12);
  background:
    radial-gradient(circle at top right, rgba(255, 112, 24, .12), transparent 30%),
    #fff;
}

.delivery-rating-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.delivery-rating-head small {
  display: block;
  color: var(--pj-red);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.delivery-rating-head h2 {
  margin: 3px 0;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 950;
}

.delivery-rating-head p {
  margin: 0;
  color: var(--pj-muted);
}

.delivery-rating-card form {
  display: grid;
  gap: 12px;
}

.rating-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.rating-choice label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.rating-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.rating-choice span {
  display: grid;
  width: 44px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(239, 59, 45, .16);
  border-radius: 14px;
  color: var(--pj-muted);
  background: #fff7f3;
  font-weight: 950;
  transition: transform .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}

.rating-choice input:checked + span {
  color: #fff;
  background: linear-gradient(135deg, var(--pj-red), var(--pj-orange));
  box-shadow: 0 12px 24px rgba(239, 59, 45, .22);
  transform: translateY(-1px);
}

.order-restaurant-line {
  display: flex;
  gap: 14px;
}

.order-restaurant-line img {
  width: 84px;
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
}

.order-timeline {
  display: grid;
  gap: 8px;
  color: #596170;
  font-weight: 750;
}

.is-hidden-by-search {
  display: none !important;
}

.settings-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  margin: 0;
  font-weight: 850;
}

.profile-person a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ef3b2d, #ff7b24);
  box-shadow: 0 10px 22px rgba(239, 59, 45, .22);
}

.profile-edit-grid > .col-lg-5 {
  display: none;
}

.profile-edit-grid:not(:target) {
  margin-top: 0;
}

.profile-edit-grid:not(:target) > .col-lg-7 {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

.profile-edit-grid:target {
  scroll-margin-top: 120px;
}

.profile-edit-grid:target > .col-lg-5 {
  display: block;
  animation: pjSoftRise .28s ease both;
}

.profile-edit-grid:target .pj-card:first-child {
  border: 1px solid rgba(239, 59, 45, .12);
  box-shadow: 0 18px 42px rgba(239, 59, 45, .12);
}

.profile-list-row:has(.star-list-icon),
.profile-list-row:has(.theme-list-icon),
.profile-list-row:has(.card-list-icon) {
  display: none !important;
}

@media (max-width: 640px) {
  .admin-panel-page {
    padding: 18px 14px 112px;
  }

  .admin-panel-page .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .admin-panel-page .panel-heading::after {
    right: -12px;
    bottom: -38px;
    width: 118px;
    height: 82px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-nav-card {
    min-height: 156px;
    padding: 20px;
  }

  .admin-nav-card span {
    grid-template-columns: 42px minmax(0, 1fr);
    font-size: .98rem;
  }

  .admin-nav-card .stat-icon {
    width: 42px;
    height: 42px;
  }

  .restaurant-back {
    width: 44px;
    height: 44px;
    margin: 12px 20px -6px;
  }

  .vertical-restaurant-card,
  .app-menu-card,
  .cart-item-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .vertical-restaurant-card .zomato-image img,
  .menu-item-image,
  .cart-item-card img {
    width: 96px;
    height: 94px;
    min-height: 0;
  }

  .menu-item-actions,
  .cart-item-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    justify-items: stretch;
  }

  .restaurant-menu-tools {
    top: 78px;
  }

  .cart-title,
  .order-detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .customer-eta-popup {
    bottom: 92px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  .customer-eta-close {
    top: -8px;
    right: -4px;
  }

  .customer-eta-main strong {
    white-space: normal;
  }

  .customer-eta-side {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
    padding-left: 58px;
  }

  .customer-eta-side small {
    grid-column: 1 / -1;
  }

  .delivery-delay-form {
    grid-template-columns: 1fr;
  }

  .delivery-rating-head {
    flex-direction: column;
  }
}
