@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Noto+Sans+Arabic:wght@400;600;700&display=swap");

:root {
  --gold-shine: #fff2ad;
  --gold-bright: #ffd700;
  --gold: #d4af37;
  --gold-light: #f9e076;
  --gold-dark: #b8860b;
  --gold-deep: #996515;
  --black: #0a0a0a;
  --black-soft: #1a1a1a;
  --cream: #faf8f2;
  --white: #fffef9;
  --gold-glow: rgba(255, 215, 0, 0.45);
}

body {
  font-family: "Noto Sans Arabic", sans-serif;
  background-color: var(--cream);
  color: var(--black);
}

.font-brand {
  font-family: "Cinzel", "Noto Sans Arabic", serif;
  letter-spacing: 0.04em;
}

.text-gold-gradient {
  background: linear-gradient(
    145deg,
    var(--gold-shine) 0%,
    var(--gold-bright) 28%,
    var(--gold) 52%,
    var(--gold-dark) 78%,
    var(--gold-deep) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(255, 215, 0, 0.25));
}

.bg-gold-gradient {
  background: linear-gradient(
    145deg,
    var(--gold-shine) 0%,
    var(--gold-bright) 25%,
    var(--gold) 50%,
    var(--gold-dark) 75%,
    var(--gold-deep) 100%
  );
}

.bg-gold-gradient-dark {
  background: linear-gradient(160deg, var(--black-soft) 0%, var(--black) 60%, #2a2008 100%);
}

.hero-bg {
  background:
    linear-gradient(160deg, rgba(10, 10, 10, 0.88) 0%, rgba(26, 26, 26, 0.82) 50%, rgba(139, 105, 20, 0.35) 100%),
    url("assets/brand-flyer.png") center/cover no-repeat,
    var(--black);
}

.app-launch-logo {
  width: min(42vw, 220px);
  height: min(42vw, 220px);
  max-width: 220px;
  max-height: 220px;
}

.auth-bg {
  background:
    linear-gradient(160deg, rgba(10, 10, 10, 0.92) 0%, rgba(26, 26, 26, 0.88) 100%),
    url("assets/brand-flyer.png") center top/cover no-repeat,
    var(--black);
}

.app-header {
  background: var(--black);
  color: var(--gold-bright);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-shine), var(--gold-bright), var(--gold-deep)) 1;
  box-shadow: 0 2px 16px var(--gold-glow);
  position: sticky;
  top: 0;
  z-index: 40;
}

.app-header-snack {
  background: var(--black-soft);
  color: var(--gold-light);
  border-bottom: 2px solid var(--gold-dark);
  position: sticky;
  top: 0;
  z-index: 40;
}

/* Floating sticky toolbar: menu | centered title | notify (phone-safe) */
header.app-header > .flex,
header.app-header-snack > .flex {
  display: grid !important;
  grid-template-columns: minmax(2.75rem, 1fr) minmax(0, max-content) minmax(2.75rem, 1fr);
  gap: 0.2rem;
  min-height: 3.25rem;
  align-items: center;
}
header.app-header > .flex > h1,
header.app-header-snack > .flex > h1 {
  grid-column: 2;
  justify-self: center;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.2rem;
}
header.app-header > .flex > #menu-btn,
header.app-header-snack > .flex > #menu-btn,
header.app-header > .flex > .header-start-group,
header.app-header-snack > .flex > .header-start-group {
  grid-column: 1;
  justify-self: start;
}
.header-start-group {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}
.header-end-group {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}
header.app-header > .flex > .header-end-group,
header.app-header-snack > .flex > .header-end-group,
header.app-header > .flex > [data-nav-back],
header.app-header-snack > .flex > [data-nav-back] {
  grid-column: 3;
  justify-self: end;
}
/* Chevron points to reading-start side as "back" */
.header-back-icon {
  display: block;
}
html[dir="ltr"] .header-back-icon {
  transform: scaleX(-1);
}
header.app-header > .flex > .client-notify-toolbar-slot,
header.app-header-snack > .flex > .client-notify-toolbar-slot,
header.app-header > .flex > #client-notify-bell,
header.app-header-snack > .flex > #client-notify-bell,
header.app-header > .flex > #refresh-btn,
header.app-header-snack > .flex > #refresh-btn {
  grid-column: 3;
  justify-self: end;
}

.btn-gold {
  background: linear-gradient(
    145deg,
    var(--gold-shine) 0%,
    var(--gold-bright) 30%,
    var(--gold) 55%,
    var(--gold-dark) 100%
  );
  color: var(--black);
  font-weight: 700;
  box-shadow:
    0 4px 16px var(--gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-gold:hover {
  box-shadow:
    0 6px 22px rgba(255, 215, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.btn-gold:active {
  transform: scale(0.98);
}

.btn-gold-outline {
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  background: transparent;
  font-weight: 700;
}

.auth-card {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1rem;
}

.auth-input {
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid rgba(212, 175, 55, 0.45);
  color: var(--white);
}

.auth-input::placeholder {
  color: rgba(255, 254, 249, 0.55);
}

.auth-input:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.food-overlay {
  background: linear-gradient(transparent 35%, rgba(10, 10, 10, 0.85));
}

.slider-track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.slider-track--interactive {
  cursor: grab;
}

.slider-track--interactive:active {
  cursor: grabbing;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-track > * {
  scroll-snap-align: center;
}

/* Allow horizontal swipe on banner slides (buttons) */
.banner-slide {
  touch-action: pan-x;
  user-select: none;
  -webkit-user-drag: none;
}

.section-divider {
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-deep),
    var(--gold-bright),
    var(--gold-shine),
    var(--gold-bright),
    var(--gold-deep),
    transparent
  );
  height: 3px;
  border-radius: 9999px;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* Home / SNACK — header + banner stay fixed while grid scrolls */
.page-top-sticky {
  position: sticky;
  top: 0;
  z-index: 15;
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.08);
}

body.page-home .page-top-sticky {
  background-color: var(--cream);
}

body.snack-page .page-top-sticky {
  background-color: #f9fafb;
}

.page-banner-wrap {
  padding-top: 0.35rem;
  padding-bottom: 0.2rem;
}

.banner-slide--promo {
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #111;
}

.banner-slide--promo-static {
  cursor: grab;
  pointer-events: auto;
}

.banner-promo-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  text-align: center;
  gap: 0.3rem;
  unicode-bidi: isolate;
}

.banner-promo-title {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 100%;
  unicode-bidi: plaintext;
}

.banner-promo-sub {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.95;
  max-width: 100%;
  unicode-bidi: plaintext;
}

/* Values: color only — no boxes/cadres */
.promo-hl {
  font-weight: 900;
  font-size: 1.2em;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.banner-slide--hh {
  background: linear-gradient(135deg, #fff3b0 0%, #f0c14a 35%, #d4af37 70%, #a67c00 100%);
  color: #1a1200;
}
.banner-slide--hh .promo-hl {
  color: #9a3412;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.banner-slide--fd {
  background: linear-gradient(135deg, #99f6e4 0%, #2dd4bf 40%, #0f766e 100%);
  color: #042f2e;
}
.banner-slide--fd .promo-hl {
  color: #fff;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.banner-slide--coupon {
  background: linear-gradient(135deg, #fecdd3 0%, #fb7185 45%, #be123c 100%);
  color: #fff7f8;
}
.banner-slide--coupon .promo-hl {
  color: #fef08a;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.banner-slide--promo.banner-slide--coupon .banner-promo-sub,
.banner-slide--promo.banner-slide--fd .banner-promo-sub {
  opacity: 0.98;
}

.page-scroll-grid {
  position: relative;
  z-index: 1;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  background: var(--black);
  border-top: 2px solid var(--gold-dark);
  padding-bottom: env(safe-area-inset-bottom, 0);
  min-height: 3.75rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

.bottom-nav--snack {
  background: var(--black-soft);
  border-top-color: var(--gold);
}

.bottom-nav-item {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem;
  min-height: 3.75rem;
  border: none;
  background: transparent;
  color: rgba(244, 228, 166, 0.55);
  font-family: inherit;
  transition: background-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.bottom-nav-item:active {
  background-color: rgba(212, 175, 55, 0.15);
}

.bottom-nav-item.is-active {
  color: var(--gold-bright);
}

.bottom-nav-item.is-active .bottom-nav-icon {
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.bottom-nav--snack .bottom-nav-item.is-active {
  color: var(--gold-light);
  background-color: rgba(212, 175, 55, 0.1);
}

.bottom-nav-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
}

.bottom-nav-label {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  letter-spacing: 0.04em;
}

/* Cart page — full-screen centered modal with inner scroll */
.cart-page {
  margin: 0;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 0, 0, 0.35), transparent 50%),
    #1a1a1a;
}
.cart-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.45);
}
.cart-modal {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  overflow: hidden;
  box-sizing: border-box;
}
.cart-modal-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 3.25rem;
  padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
  position: relative;
  z-index: 2;
}
.cart-modal-title {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: inherit;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Always physical RIGHT — Arabic RTL inline-end would put × on the left under the bell */
.cart-modal-close {
  position: absolute;
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  top: max(0.55rem, env(safe-area-inset-top, 0px));
  right: 0.65rem;
  left: auto;
  inset-inline-end: auto;
  z-index: 5;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  color: inherit;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
  border-radius: 0.5rem;
}
.cart-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.cart-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #f9fafb;
}
.cart-modal-summary {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}
.cart-modal-foot {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
}
html:has(body.cart-page),
body.cart-page {
  width: 100%;
  height: 100%;
}

#gc-cart-modal-host {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #111;
}
#gc-cart-modal-host iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f9fafb;
}
body.gc-cart-modal-open {
  overflow: hidden;
}
body.gc-cart-modal-open .cart-fab,
body.gc-cart-modal-open .bottom-nav {
  visibility: hidden;
  pointer-events: none;
}

.cart-fab {
  position: fixed;
  bottom: 4.5rem;
  right: 6%;
  z-index: 45;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, var(--gold-shine), var(--gold-bright), var(--gold), var(--gold-dark));
  border: 2px solid var(--black);
  box-shadow:
    0 4px 20px var(--gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  text-decoration: none;
  pointer-events: auto;
}

.cart-fab-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  pointer-events: none;
}

.cart-fab-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: var(--black);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.cart-fab-badge.hidden {
  display: none;
}

.drawer-header {
  background: linear-gradient(180deg, var(--black-soft) 0%, var(--black) 100%);
  color: var(--gold-bright);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-shine), var(--gold-bright), var(--gold-deep)) 1;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.12);
}

.drawer-brand-logo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: 9999px;
  filter: drop-shadow(0 0 10px var(--gold-glow));
  box-shadow:
    0 0 0 2px var(--gold-dark),
    0 0 0 4px rgba(255, 215, 0, 0.15);
}

.drawer-nav-link {
  color: var(--black);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.drawer-nav-link:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), rgba(255, 242, 173, 0.14));
  color: var(--gold-dark);
  border-right: 3px solid var(--gold-bright);
}

.drawer-nav-link--logout:hover {
  background: rgba(220, 38, 38, 0.06);
  border-right-color: #dc2626;
}

.drawer-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.drawer-footer {
  box-shadow: 0 -4px 16px rgba(212, 175, 55, 0.08);
}

#drawer {
  z-index: 60;
}
html[dir="ltr"] #drawer {
  right: auto !important;
  left: 0 !important;
}
html[dir="ltr"] #drawer .drawer-header #close-drawer {
  left: auto;
  right: 1rem;
}
.drawer-lang-block {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 0 0.15rem;
  padding: 0.15rem 0 0.35rem;
}
.drawer-lang-label {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #6b5a2a;
  letter-spacing: 0.02em;
}
.drawer-lang-switch {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.drawer-lang-btn {
  appearance: none;
  border: 1.5px solid rgba(184, 134, 11, 0.55);
  background: #fffef9;
  color: #3a2a0a;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 0.7rem;
  padding: 0.7rem 0.25rem;
  cursor: pointer;
  min-height: 2.75rem;
}
.drawer-lang-btn:hover {
  background: #fff3c4;
}
.drawer-lang-btn.is-active {
  background: linear-gradient(160deg, #ffd700, #b8860b);
  color: #0a0a0a;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.35);
}
.home-cat-section-fav .home-cat-section-head h2 {
  color: #b8860b;
}

#drawer-overlay {
  z-index: 55;
}

.drawer-signout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.drawer-signout-btn:hover {
  border-color: #f87171;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

button.drawer-nav-link {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  cursor: pointer;
  font: inherit;
}

.drawer-nav-link.is-active {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.12), rgba(255, 242, 173, 0.18));
  color: var(--gold-dark);
  border-right: 3px solid var(--gold-bright);
  font-weight: 600;
}

html.dark-mode #drawer {
  background: #1e1e1e !important;
}

html.dark-mode .drawer-nav-link.is-active {
  color: var(--gold-bright);
}

.spinner-gold {
  border-color: var(--gold-bright);
  border-top-color: transparent;
}

.fidelity-balance-card {
  background: linear-gradient(160deg, var(--black-soft), var(--black));
  border: 2px solid var(--gold-dark);
  box-shadow: 0 4px 20px var(--gold-glow);
}

/* Dark mode */
html.dark-mode {
  --cream: #121212;
  --white: #1e1e1e;
  --black: #f0f0f0;
  --black-soft: #e8e8e8;
}

html.dark-mode body {
  background-color: #121212;
  color: #eee;
}

html.dark-mode .bg-white,
html.dark-mode .order-card {
  background: #1e1e1e !important;
  color: #eee;
}

html.dark-mode .bg-gray-50 {
  background: #181818 !important;
}

html.dark-mode .drawer-nav-link {
  color: #eee;
  border-bottom-color: rgba(212, 175, 55, 0.2);
}

/* Restaurant closed banner — under floating page toolbar, not above it */
.restaurant-closed-banner {
  position: relative;
  z-index: 30;
  background: linear-gradient(90deg, #1a1a1a, #3d2e08);
  border-bottom: 2px solid var(--gold);
  padding: 10px 16px;
  text-align: center;
  color: var(--gold-light);
}

.restaurant-closed-banner.hidden {
  display: none;
}

.hours-chip {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  background: transparent;
  border: none;
  line-height: 1;
}
.hours-chip.hidden { display: none; }
.hours-chip-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  max-width: 100%;
  background: transparent;
  border: none;
}
.hours-chip-icon {
  flex-shrink: 0;
  display: flex;
  overflow: visible;
}
.hours-sign { overflow: visible; display: block; }
.hours-sign-swing {
  transform-origin: 44px 5px;
  animation: hours-sign-swing 2.4s ease-in-out infinite;
}
.hours-sign-text {
  fill: #fff;
  font-size: 15px;
  font-weight: 900;
  font-family: Arial Black, Arial, sans-serif;
  letter-spacing: 0.8px;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.18);
  stroke-width: 0.6px;
}
.hours-sign-text--closed {
  font-size: 12px;
  letter-spacing: 0.35px;
}
.hours-chip-word {
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.hours-chip--open .hours-chip-word { color: #15803d; }
.hours-chip--closed .hours-chip-word { color: #b91c1c; }
.hours-chip-times {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}
.hours-chip-time {
  direction: ltr;
  unicode-bidi: isolate;
}
.hours-chip-arrow {
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  line-height: 0;
}
.hours-chip-times[dir="rtl"] .hours-chip-arrow {
  transform: scaleX(-1);
}
.hours-chip--open .hours-chip-times { color: #15803d; }
.hours-chip--closed .hours-chip-times { color: #b91c1c; }
@keyframes hours-sign-swing {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}
html.dark-mode .hours-chip--open .hours-chip-word,
html.dark-mode .hours-chip--open .hours-chip-times { color: #86efac; }
html.dark-mode .hours-chip--closed .hours-chip-word,
html.dark-mode .hours-chip--closed .hours-chip-times { color: #fca5a5; }
@media (prefers-reduced-motion: reduce) {
  .hours-sign-swing { animation: none; }
}

.tracking-map {
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gold-dark);
}

/* Follow-order cards — delivery-app vertical timeline */
.order-follow-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 8px 24px rgba(26, 20, 4, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.28);
  color: #1a1a1a;
}
.order-follow-card.is-live {
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.16);
}
.order-follow-card.is-complete {
  border-color: rgba(22, 163, 74, 0.35);
}
.order-follow-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.order-follow-idrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.order-follow-id {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #6b7280;
}
.order-kind-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #111;
  color: var(--gold-bright);
}
.order-follow-status {
  margin: 4px 0 2px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: #111;
}
.order-follow-eta {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 600;
}
.order-follow-times p {
  margin: 0;
}
.order-eta-live {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
}
.order-eta-live.is-soon {
  background: #dcfce7;
  color: #166534;
}
html.dark-mode .order-eta-live {
  background: #422006;
  color: #fde68a;
}
html.dark-mode .order-eta-live.is-soon {
  background: #14532d;
  color: #bbf7d0;
}

.moto-deliver {
  position: relative;
  height: 68px;
  margin: 8px 0 4px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #ecf7ff 0%, #dbeafe 60%, #bfdbfe 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
}
.moto-deliver-line {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  height: 3px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #1e3a8a 0 8px, transparent 8px 16px);
  opacity: 0.32;
  animation: moto-dashes 0.55s linear infinite;
}
.moto-deliver-bike {
  position: absolute;
  bottom: 4px;
  inset-inline-start: -120px;
  animation: moto-go 4s linear infinite;
}
.moto-deliver-img {
  display: block;
  height: 56px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}
html[dir="ltr"] .moto-deliver-bike img {
  transform: scaleX(-1);
}
@keyframes moto-go {
  0% { inset-inline-start: -120px; }
  100% { inset-inline-start: calc(100% + 8px); }
}
@keyframes moto-dashes {
  from { background-position: 0 0; }
  to { background-position: 16px 0; }
}
html.dark-mode .moto-deliver {
  background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 100%);
  border-color: rgba(96, 165, 250, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .moto-deliver-bike, .moto-deliver-line { animation: none; }
  .moto-deliver-bike { inset-inline-start: 50%; transform: translateX(-50%); }
}
.order-follow-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.order-status-pill {
  display: inline-flex;
  align-items: center;
  max-width: 11rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #f3f4f6;
  color: #374151;
}
.order-status-pill.pill-sent { background: #f3f4f6; color: #374151; }
.order-status-pill.pill-prep { background: #fef3c7; color: #92400e; }
.order-status-pill.pill-ready { background: #ffedd5; color: #9a3412; }
.order-status-pill.pill-way { background: #111; color: var(--gold-bright); }
.order-status-pill.pill-done { background: #dcfce7; color: #166534; }
.order-follow-date {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  direction: ltr;
  unicode-bidi: isolate;
}
.order-follow-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.order-follow-total {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
}
.order-follow-comment {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-style: italic;
  color: #6b7280;
}

.order-status-track {
  list-style: none;
  margin: 12px 0 10px;
  padding: 8px 6px;
  background: linear-gradient(180deg, #faf8f2 0%, #f5f0e4 100%);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 14px;
}
.order-status-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  min-height: 48px;
  padding: 8px 8px;
  border-radius: 10px;
}
.order-status-step.is-current {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.04));
}
html[dir="rtl"] .order-status-step.is-current {
  background: linear-gradient(270deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.04));
}
.order-status-step.is-complete-end.is-current {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.16), rgba(22, 163, 74, 0.03));
}
html[dir="rtl"] .order-status-step.is-complete-end.is-current {
  background: linear-gradient(270deg, rgba(22, 163, 74, 0.16), rgba(22, 163, 74, 0.03));
}
.order-status-rail {
  position: relative;
  width: 32px;
  height: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
.order-status-step:not(:last-child) .order-status-rail::after,
.order-status-step:not(:first-child) .order-status-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #e5e7eb;
  border-radius: 3px;
  z-index: 0;
}
.order-status-step:not(:last-child) .order-status-rail::after {
  top: calc(50% + 12px);
  bottom: 0;
}
.order-status-step:not(:first-child) .order-status-rail::before {
  top: 0;
  bottom: calc(50% + 12px);
}
.order-status-step.is-done:not(:last-child) .order-status-rail::after,
.order-status-step.is-done:not(:first-child) .order-status-rail::before,
.order-status-step.is-current:not(:first-child) .order-status-rail::before {
  background: var(--gold);
}
.order-status-dot {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}
.order-status-dot svg {
  width: 11px;
  height: 11px;
  display: block;
}
.order-status-step.is-done .order-status-dot {
  border-color: var(--gold-dark);
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-dark));
  color: #111;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.16);
}
.order-status-step.is-current .order-status-dot {
  border-color: var(--gold-dark);
  background: #111;
  color: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.28);
  animation: order-status-pulse 1.7s ease-in-out infinite;
}
.order-status-step.is-complete-end.is-current .order-status-dot,
.order-status-step.is-complete-end.is-done .order-status-dot {
  border-color: #15803d;
  background: linear-gradient(145deg, #22c55e, #15803d);
  color: #fff;
  animation: none;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}
.order-status-step.is-todo .order-status-dot {
  background: #fff;
  border-color: #d4d4d8;
  color: #c4c4c4;
}
.order-status-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: #9ca3af;
}
.order-status-step.is-done .order-status-label {
  color: #1f2937;
}
.order-status-step.is-current .order-status-label {
  color: #8a6d12;
  font-weight: 800;
}
.order-status-step.is-complete-end.is-current .order-status-label {
  color: #166534;
}
.order-status-time {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d1d5db;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
  min-width: 3.2rem;
  text-align: end;
}
.order-status-step.is-done .order-status-time,
.order-status-step.is-current .order-status-time {
  color: #4b5563;
}
@keyframes order-status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(201, 162, 39, 0.1); }
}
@media (prefers-reduced-motion: reduce) {
  .order-status-step.is-current .order-status-dot { animation: none; }
}

html.dark-mode .order-follow-card {
  background: #1c1c1c;
  border-color: rgba(201, 162, 39, 0.35);
  color: #eee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
html.dark-mode .order-follow-status,
html.dark-mode .order-follow-total { color: #f9fafb; }
html.dark-mode .order-follow-id,
html.dark-mode .order-follow-eta,
html.dark-mode .order-follow-comment { color: #9ca3af; }
html.dark-mode .order-follow-date { color: #6b7280; }
html.dark-mode .order-status-track {
  background: linear-gradient(180deg, #161616 0%, #1a170f 100%);
  border-color: rgba(201, 162, 39, 0.22);
}
html.dark-mode .order-status-step.is-current {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent);
}
html[dir="rtl"].dark-mode .order-status-step.is-current {
  background: linear-gradient(270deg, rgba(212, 175, 55, 0.2), transparent);
}
html.dark-mode .order-status-step:not(:last-child) .order-status-rail::after,
html.dark-mode .order-status-step:not(:first-child) .order-status-rail::before {
  background: #3f3f46;
}
html.dark-mode .order-status-step.is-done:not(:last-child) .order-status-rail::after,
html.dark-mode .order-status-step.is-done:not(:first-child) .order-status-rail::before,
html.dark-mode .order-status-step.is-current:not(:first-child) .order-status-rail::before {
  background: var(--gold);
}
html.dark-mode .order-status-dot {
  background: #2a2a2a;
  border-color: #52525b;
  color: #a1a1aa;
}
html.dark-mode .order-status-step.is-todo .order-status-dot {
  background: #18181b;
  border-color: #3f3f46;
  color: #52525b;
}
html.dark-mode .order-status-step.is-current .order-status-dot {
  background: #111;
  color: var(--gold-bright);
}
html.dark-mode .order-status-label { color: #71717a; }
html.dark-mode .order-status-step.is-done .order-status-label { color: #e5e7eb; }
html.dark-mode .order-status-step.is-current .order-status-label { color: #e8c547; }
html.dark-mode .order-status-time { color: #52525b; }
html.dark-mode .order-status-step.is-done .order-status-time,
html.dark-mode .order-status-step.is-current .order-status-time { color: #d4d4d8; }
html.dark-mode .order-status-pill.pill-sent { background: #27272a; color: #e5e7eb; }
html.dark-mode .order-status-pill.pill-prep { background: #422006; color: #fde68a; }
html.dark-mode .order-status-pill.pill-ready { background: #431407; color: #fdba74; }
html.dark-mode .order-status-pill.pill-done { background: #14532d; color: #bbf7d0; }

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.order-actions button,
.order-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 calc(50% - 4px);
  min-height: 40px;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid #c9a227;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.order-actions a.order-btn-track,
.order-actions button.order-btn-maps {
  flex: 1 1 100%;
  background: linear-gradient(135deg, #d4af37, #c9a227);
  border-color: #b8941f;
  color: #111;
}

.order-actions button.order-btn-cancel {
  flex: 1 1 100%;
  background: #fff;
  border-color: #dc2626;
  color: #dc2626;
}

.order-actions button.order-btn-cancel:active,
.order-actions button:active,
.order-actions a:active {
  opacity: 0.88;
}

html.dark-mode .order-actions button,
html.dark-mode .order-actions a {
  background: #2a2a2a;
  color: #eee;
  border-color: #c9a227;
}

html.dark-mode .order-actions a.order-btn-track,
html.dark-mode .order-actions button.order-btn-maps {
  background: linear-gradient(135deg, #d4af37, #c9a227);
  color: #111;
}

html.dark-mode .order-actions button.order-btn-cancel {
  background: #2a2a2a;
  border-color: #f87171;
  color: #f87171;
}

.receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.receipt-modal.hidden { display: none; }
.receipt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.receipt-modal-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  padding-bottom: env(safe-area-inset-bottom, 12px);
}
@media (min-width: 640px) {
  .receipt-modal-sheet {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(28rem, calc(100% - 2rem));
    max-height: 88vh;
    border-radius: 1.25rem;
  }
}
.receipt-modal-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: #d4d4d4;
  margin: 10px auto 0;
}
.receipt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 12px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.receipt-modal-header h3 {
  font-weight: 800;
  font-size: 1.05rem;
  color: #b8860b;
}
.receipt-modal-close {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #f7f7f7;
  min-height: 40px;
}
.receipt-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 16px 20px;
  color: #222;
}
.receipt-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #b8860b;
  margin: 0 0 4px;
}
.receipt-h2 {
  font-size: 0.9rem;
  margin: 14px 0 8px;
  color: #b8860b;
}
.receipt-meta {
  margin: 4px 0;
  font-size: 0.82rem;
  word-break: break-word;
}
.receipt-meta span { opacity: 0.7; }
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 12px;
}
.receipt-table th,
.receipt-table td {
  border-bottom: 1px solid #eee;
  padding: 8px 4px;
  text-align: right;
  font-size: 0.8rem;
  vertical-align: top;
}
.receipt-table th { color: #666; }
.receipt-table .extra {
  font-size: 0.7rem;
  color: #888;
  margin-top: 2px;
}
.receipt-totals {
  width: 100%;
  margin-top: 4px;
}
.receipt-totals td {
  border: 0;
  padding: 6px 0;
  font-size: 0.85rem;
}
.receipt-totals .label { opacity: 0.75; }
.receipt-grand td {
  font-weight: 800;
  font-size: 1rem;
  color: #b8860b;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}
.receipt-thanks {
  margin-top: 16px;
  font-size: 0.75rem;
  color: #888;
}
html.dark-mode .receipt-modal-sheet { background: #1c1c1c; color: #eee; }
html.dark-mode .receipt-modal-header { border-bottom-color: #333; }
html.dark-mode .receipt-modal-close { background: #2a2a2a; border-color: #444; color: #eee; }
html.dark-mode .receipt-table th,
html.dark-mode .receipt-table td { border-bottom-color: #333; }
html.dark-mode .receipt-grand td { border-top-color: #444; }

/* Client web notifications — sticky toolbar bell + centered fit-all modal */
.client-notify-toolbar-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  flex: 0 0 auto;
  max-width: 5.5rem;
}
.client-notify-bell {
  position: relative;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border-radius: 0.65rem;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.client-notify-bell:hover,
.client-notify-bell:active {
  background: rgba(255, 255, 255, 0.1);
}
/* If no header found — still float with titles strip */
body > #client-notify-bell.client-notify-bell {
  position: fixed;
  top: max(0.4rem, env(safe-area-inset-top, 0px));
  left: max(0.5rem, env(safe-area-inset-left, 0px));
  z-index: 45;
  background: var(--black);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.client-notify-badge {
  position: absolute;
  top: 0.1rem;
  inset-inline-end: 0.1rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
  pointer-events: none;
}
.client-notify-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  overscroll-behavior: contain;
}
.client-notify-overlay.hidden {
  display: none !important;
}
.client-notify-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-tap-highlight-color: transparent;
}
.client-notify-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  height: auto;
  max-height: min(80vh, calc(100% - 0.25rem));
  max-height: min(80dvh, calc(100% - 0.25rem));
  background: #fffef9;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 0 auto;
}
body.client-notify-open {
  overflow: hidden;
  touch-action: none;
}
.client-notify-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: #0a0a0a;
  color: #ffd700;
  flex-shrink: 0;
}
.client-notify-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
.client-notify-panel-actions button {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f4e4a6;
  background: transparent;
  border: 0;
  padding: 0.4rem 0.5rem;
  min-height: 2.25rem;
  min-width: 2.25rem;
}
.client-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}
.client-notify-item {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.client-notify-item.is-unread {
  background: rgba(212, 175, 55, 0.12);
}
.client-notify-title {
  font-weight: 800;
  font-size: 0.88rem;
  margin: 0 0 0.2rem;
  word-break: break-word;
}
.client-notify-body {
  font-size: 0.82rem;
  margin: 0;
  opacity: 0.9;
  word-break: break-word;
}
.client-notify-meta {
  margin-top: 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.65;
}
.client-notify-link {
  color: #b8860b;
  font-weight: 700;
}
.client-notify-empty {
  padding: 1.4rem;
  text-align: center;
  opacity: 0.55;
  font-size: 0.85rem;
}

@media (max-width: 380px) {
  .client-notify-panel {
    max-height: min(78vh, calc(100% - 0.25rem));
    max-height: min(78dvh, calc(100% - 0.25rem));
    border-radius: 0.85rem;
  }
  .client-notify-panel-head strong {
    font-size: 0.9rem;
  }
  .client-notify-panel-actions button {
    font-size: 0.68rem;
    padding: 0.35rem 0.35rem;
  }
}

/* PWA install — toolbar icon next to menu */
.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0.65rem;
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold-bright);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: pwa-install-pulse 1.6s ease-in-out infinite;
}
.pwa-install-btn[hidden] {
  display: none !important;
}
.pwa-install-btn:active {
  transform: scale(0.94);
  background: rgba(255, 215, 0, 0.22);
}
.pwa-install-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  filter: drop-shadow(0 0 6px var(--gold-glow));
  animation: pwa-install-bounce 1.6s ease-in-out infinite;
}
@keyframes pwa-install-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.12);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
    background: rgba(255, 215, 0, 0.22);
  }
}
@keyframes pwa-install-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(2px);
  }
  70% {
    transform: translateY(-3px);
  }
}
.pwa-install-btn--float {
  position: fixed;
  z-index: 90;
  top: max(0.75rem, env(safe-area-inset-top));
  inset-inline-start: 0.75rem;
}
@media (display-mode: standalone) {
  .pwa-install-btn {
    display: none !important;
  }
}

/* Home display mode — single dropdown (spinner) in header near menu */
.home-view-spinner {
  position: relative;
  display: inline-flex;
}
.home-view-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  height: 2.4rem;
  padding: 0 0.3rem 0 0.45rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-bright);
  cursor: pointer;
}
.home-view-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
}
.home-view-current {
  display: inline-flex;
}
.home-view-current-icon {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
}
.home-view-caret {
  width: 1rem;
  height: 1rem;
  opacity: 0.85;
}
.page-top-sticky,
header.app-header,
header.app-header > .flex,
.header-start-group,
.header-end-group,
.home-view-spinner {
  overflow: visible !important;
}
.home-view-menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: min(16.5rem, calc(100vw - 1rem));
  width: max-content;
  max-width: calc(100vw - 1rem);
  max-height: min(70vh, 26rem);
  overflow-x: hidden;
  overflow-y: auto;
  background: #0f0f0f;
  color: #fffef9;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 0.9rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  padding: 0.35rem;
  z-index: 80;
  direction: inherit;
  box-sizing: border-box;
}
.home-view-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.65rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: start;
  cursor: pointer;
}
.home-view-option:hover {
  background: rgba(255, 255, 255, 0.08);
}
.home-view-option.is-active {
  background: linear-gradient(160deg, rgba(255, 215, 0, 0.22), rgba(184, 134, 11, 0.22));
  color: #ffd700;
}
.home-view-option span {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  line-height: 1.3;
  word-break: break-word;
}
.home-view-option-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.home-view-check {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* Tabbed menu (screenshot style) */
.home-menu-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.home-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  scrollbar-width: none;
}
.home-tabs::-webkit-scrollbar {
  display: none;
}
.home-tab {
  flex: 0 0 auto;
  padding: 0.65rem 0.9rem;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #6b7280;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
}
.home-tab.is-active {
  color: #0a0a0a;
  border-bottom-color: #0a0a0a;
  font-weight: 800;
}
.home-menu-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.home-menu-head img {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.8rem;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.home-menu-head-text {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
  flex-wrap: wrap;
}
.home-menu-head-text h2 {
  margin: 0;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  font-weight: 800;
  color: #0a0a0a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.home-menu-head-text span {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.9rem;
}
.home-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.home-menu-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #e5e7eb;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.home-menu-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-menu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.75) 100%);
}
.home-menu-add {
  position: absolute;
  top: 0.6rem;
  inset-inline-end: 0.6rem;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #0a0a0a;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.home-menu-card-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.home-menu-card-name {
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-menu-card-desc {
  font-size: 0.75rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-menu-card-price {
  margin-top: 0.2rem;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Classic paper menu */
.home-text-menu {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.home-text-section {
  background: #fffef9;
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 1rem;
  padding: 0.9rem 1rem 0.6rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.home-text-title {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #b8860b;
  letter-spacing: 0.04em;
  position: relative;
}
.home-text-title::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  border-top: 1px solid rgba(184, 134, 11, 0.35);
}
.home-text-title span {
  position: relative;
  background: #fffef9;
  padding: 0 0.6rem;
}
.home-text-row {
  display: block;
  padding: 0.45rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}
.home-text-row:last-child {
  border-bottom: 0;
}
.home-text-line {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}
.home-text-name {
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}
.home-text-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(0, 0, 0, 0.25);
  transform: translateY(-0.25rem);
  min-width: 1rem;
}
.home-text-price {
  flex-shrink: 0;
  font-weight: 800;
  color: #b8860b;
}
.home-text-desc {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.45;
}

/* Featured hero + grid */
.home-featured {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.home-hero {
  position: relative;
  display: block;
  border-radius: 1.2rem;
  overflow: hidden;
  min-height: clamp(12rem, 52vw, 20rem);
  background: #111;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.home-hero-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.home-hero-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  background: linear-gradient(160deg, #ffd700, #b8860b);
  color: #0a0a0a;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.home-hero-name {
  font-size: 1.25rem;
  font-weight: 800;
}
.home-hero-desc {
  font-size: 0.82rem;
  opacity: 0.9;
}
.home-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.home-hero-price {
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffd700;
}
.home-hero-add {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 800;
  background: #fff;
  color: #0a0a0a;
  cursor: pointer;
}

.home-content {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  box-sizing: border-box;
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
  min-width: 0;
  overflow-x: clip;
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.home-cat-tile {
  position: relative;
  height: 8rem;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.home-cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-cat-tile-fav {
  background: linear-gradient(155deg, #1a1408 0%, #3a2a0a 45%, #b8860b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-cat-tile-fav-bg {
  color: #ffd700;
  opacity: 0.9;
}
.home-cat-tile-fav-bg svg {
  width: 3.2rem;
  height: 3.2rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.home-cat-list-row-fav {
  background: linear-gradient(90deg, #fff8e1, #fffef9);
  border: 1px solid rgba(184, 134, 11, 0.35);
}
.home-cat-list-fav-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(160deg, #ffd700, #b8860b);
  color: #0a0a0a;
}
.home-cat-list-fav-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.home-cat-tile-name {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.62);
  text-align: center;
  padding: 0.45rem 0.4rem;
  font-weight: 800;
  font-size: clamp(0.75rem, 2.8vw, 0.9rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.home-cat-list-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  background: #fffef9;
  border-radius: 0.9rem;
  padding: 0.5rem 0.65rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
}
.home-cat-list-row img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.65rem;
  object-fit: cover;
  flex-shrink: 0;
}
.home-cat-list-name {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-cat-list-chev {
  color: #b8860b;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}

.home-dishes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
.home-dishes-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.home-dish-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fffef9;
  border-radius: 0.9rem;
  padding: 0.55rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  min-width: 0;
}
.home-dish-row-img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 0.7rem;
  flex-shrink: 0;
  background: #eee;
}
.home-dish-row-body {
  flex: 1;
  min-width: 0;
}
.home-dish-row-name {
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-dish-row-desc {
  margin: 0.15rem 0;
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-dish-row-price {
  margin: 0;
  font-weight: 800;
  color: #b8860b;
  font-size: 0.88rem;
}
.home-dish-row-add {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(160deg, #ffd700, #b8860b);
  color: #0a0a0a;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

/* Favorites section + heart buttons */
.home-fav-section {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, #fff8e1 0%, #fffef9 55%, #fff 100%);
  border: 1px solid rgba(184, 134, 11, 0.35);
  box-shadow: 0 2px 12px rgba(184, 134, 11, 0.1);
}
.home-fav-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.home-fav-section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0a0a0a;
}
.home-fav-section-head span {
  color: #b8860b;
  font-weight: 700;
  font-size: 0.85rem;
}
.home-fav-empty {
  margin: 0.25rem 0 0.15rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem;
}
.home-fav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.home-fav-dish-card {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  min-width: 0;
}
.home-fav-dish-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.home-fav-dish-link img {
  width: 100%;
  height: 7.2rem;
  object-fit: cover;
  display: block;
  background: #eee;
}
.home-fav-dish-body {
  padding: 0.45rem 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.home-fav-dish-name {
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-fav-dish-price {
  font-weight: 800;
  font-size: 0.8rem;
  color: #b8860b;
}
.home-fav-dish-add {
  position: absolute;
  bottom: 0.55rem;
  inset-inline-end: 0.45rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(160deg, #ffd700, #b8860b);
  color: #0a0a0a;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.home-fav-btn {
  position: absolute;
  top: 0.45rem;
  inset-inline-start: 0.45rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #b8860b;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  padding: 0;
}
.home-fav-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.home-fav-btn.is-fav {
  color: #e11d48;
  background: #fff;
}
.home-menu-card .home-fav-btn {
  inset-inline-start: auto;
  inset-inline-end: 0.6rem;
  top: 0.6rem;
}
.home-menu-card .home-menu-add {
  inset-inline-end: auto;
  inset-inline-start: 0.6rem;
}
.home-hero .home-fav-btn {
  top: 0.75rem;
  inset-inline-start: 0.75rem;
}
.home-large-card {
  position: relative;
}
.home-large-card .home-fav-btn {
  top: 0.7rem;
  inset-inline-start: 0.7rem;
}
.home-compact-card-wrap {
  position: relative;
}
.home-compact-card-wrap .home-fav-btn {
  top: 0.4rem;
  inset-inline-start: 0.4rem;
}
.home-compact-meta {
  display: block;
  text-decoration: none;
  color: inherit;
}
.home-compact-meta .home-compact-name,
.home-compact-meta .home-compact-price,
.home-compact-meta .home-plat-cat {
  display: block;
}
.home-dish-row {
  position: relative;
}
.home-dish-row-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.home-dish-row .home-fav-btn {
  position: relative;
  top: auto;
  inset-inline-start: auto;
  flex-shrink: 0;
  margin-inline: 0.15rem;
  box-shadow: none;
  background: transparent;
}
.home-cat-chip .home-fav-btn {
  top: 0.35rem;
  inset-inline-start: auto;
  inset-inline-end: 0.35rem;
  width: 1.75rem;
  height: 1.75rem;
}
.home-cat-chip .home-plat-cat {
  inset-inline-start: 0.35rem;
  max-width: calc(100% - 2.4rem);
}
.home-text-row-fav {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  padding: 0.45rem 0;
}
.home-text-row-fav .home-fav-btn {
  position: relative;
  top: auto;
  inset-inline-start: auto;
  flex-shrink: 0;
  margin-top: 0.1rem;
  box-shadow: none;
  background: rgba(255, 248, 225, 0.9);
}
.home-text-row-main {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.home-text-fav {
  border-color: rgba(184, 134, 11, 0.45);
  background: linear-gradient(165deg, #fff8e1, #fffef9);
}
.home-tab-fav {
  color: #b8860b !important;
}
.home-tab-fav.is-active {
  color: #0a0a0a !important;
  border-bottom-color: #b8860b !important;
}
.home-fav-badge {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #ffd700, #b8860b);
  color: #0a0a0a;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.home-fav-badge svg {
  width: 1.75rem;
  height: 1.75rem;
}
.home-menu-head-fav .home-menu-head-text h2 {
  color: #b8860b;
}
@media (min-width: 640px) {
  .home-fav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .home-fav-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Category label on each dish card */
.home-plat-cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #b8860b;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}
.home-plat-cat--on-dark,
.home-menu-card-body .home-plat-cat,
.home-hero-body .home-plat-cat,
.home-large-meta .home-plat-cat,
.home-cat-chip .home-plat-cat {
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.home-compact-card .home-plat-cat,
.home-dish-row-body .home-plat-cat,
.home-text-row .home-plat-cat {
  padding: 0.3rem 0.45rem 0;
  color: #b8860b;
  text-shadow: none;
}
.home-dish-row-body .home-plat-cat {
  padding: 0 0 0.1rem;
}
.home-text-row .home-plat-cat {
  padding: 0 0 0.15rem;
}
.home-cat-chip .home-plat-cat {
  position: absolute;
  top: 0.35rem;
  inset-inline-start: 0.35rem;
  z-index: 2;
  max-width: calc(100% - 0.7rem);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.62rem;
}
.home-menu-card-body .home-plat-cat {
  opacity: 0.95;
  font-size: 0.7rem;
  margin-bottom: 0.05rem;
}
.home-hero-body .home-plat-cat {
  font-size: 0.78rem;
}
.home-large-meta .home-plat-cat {
  margin-bottom: 0.1rem;
}

.home-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.home-compact-card {
  min-width: 0;
  background: #fffef9;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
}
.home-compact-card img {
  width: 100%;
  height: 6.2rem;
  object-fit: cover;
  display: block;
  background: #eee;
}
.home-compact-name,
.home-compact-price {
  display: block;
  padding: 0.35rem 0.45rem 0;
  font-weight: 800;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-compact-price {
  padding-bottom: 0.45rem;
  color: #b8860b;
  font-size: 0.75rem;
}

.home-large-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.home-large-card {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  background: #fffef9;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}
.home-large-card img {
  width: 100%;
  height: clamp(10rem, 42vw, 16rem);
  object-fit: cover;
  display: block;
  background: #eee;
}
.home-large-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  min-width: 0;
}
.home-large-name {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-large-price {
  flex-shrink: 0;
  font-weight: 800;
  color: #b8860b;
}

.home-by-category {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}
.home-cat-section {
  min-width: 0;
  width: 100%;
}
.home-cat-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.home-cat-section-head h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.95rem, 3.4vw, 1.1rem);
  font-weight: 800;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-cat-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #b8860b;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.2rem 0.15rem;
}
.home-cat-rail {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}
.home-cat-chip {
  position: relative;
  flex: 0 0 clamp(8.2rem, 38vw, 10.5rem);
  max-width: 11rem;
  scroll-snap-align: start;
  background: #fffef9;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.home-cat-chip img {
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
  display: block;
  background: #eee;
}
.home-cat-chip-name {
  display: block;
  padding: 0.4rem 0.5rem 0.1rem;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-cat-chip-price {
  display: block;
  padding: 0 0.5rem 0.45rem;
  font-weight: 700;
  font-size: 0.78rem;
  color: #b8860b;
}

@media (min-width: 640px) {
  .home-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-dishes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .home-cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home-dishes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home-text-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .home-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* PWA sheets: iOS install guide + notification ask */
.pwa-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.pwa-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.pwa-sheet {
  position: relative;
  width: min(100%, 26rem);
  background: linear-gradient(165deg, #1a1a1a 0%, #0a0a0a 70%, #2a2008 100%);
  color: #fffef9;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 1.15rem 1.15rem 0.85rem 0.85rem;
  padding: 1.25rem 1.2rem 1.1rem;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  animation: pwa-sheet-in 0.28s ease-out;
}
@keyframes pwa-sheet-in {
  from {
    transform: translateY(1.25rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.pwa-sheet-brand {
  font-family: "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.06em;
  color: #ffd700;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.pwa-sheet-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
}
.pwa-sheet-text {
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.9;
  margin: 0 0 0.85rem;
}
.pwa-sheet-steps {
  margin: 0 0 1rem;
  padding-right: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.95;
}
.pwa-sheet-steps li {
  margin-bottom: 0.25rem;
}
.pwa-share-icon {
  display: inline-block;
  color: #ffd700;
  font-weight: 800;
}
.pwa-sheet-actions {
  display: grid;
  gap: 0.5rem;
}
.pwa-sheet-primary {
  border: none;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  font-weight: 800;
  background: linear-gradient(160deg, #ffd700 0%, #d4af37 55%, #b8860b 100%);
  color: #0a0a0a;
  cursor: pointer;
}
.pwa-sheet-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  font-weight: 700;
  background: transparent;
  color: #fffef9;
  cursor: pointer;
}

.rest-remind-banner {
  margin: 0.45rem 0.9rem 0.15rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}
.rest-remind-banner--page { margin: 0 0 0.25rem; }
.rest-remind-title {
  font-weight: 800;
  font-size: 0.88rem;
  margin: 0 0 0.25rem;
}
.rest-remind-text {
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
}
.rest-remind-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #c2410c;
  text-decoration: underline;
}
.mahal-pay-box {
  margin-bottom: 0.9rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 2px solid #fde68a;
  background: #fffbeb;
}
.mahal-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}
.mahal-pay-row.is-due {
  font-weight: 800;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #fbbf24;
}
.mahal-rest-list {
  margin: 0.35rem 0 0;
  padding-inline-start: 1.1rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #9a3412;
}
.client-pay-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-weight: 800;
}
.client-pay-badge.is-paid {
  background: #dcfce7;
  color: #166534;
}
.client-pay-badge.is-unpaid {
  background: #fee2e2;
  color: #b91c1c;
}
.client-order--unpaid {
  border-right: 4px solid #dc2626;
}
html[dir="ltr"] .client-order--unpaid {
  border-right: 0;
  border-left: 4px solid #dc2626;
}

.news-msg-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
}
.news-msg-popup-card {
  width: min(100%, 22rem);
  background: #fffef9;
  border-radius: 1.15rem;
  padding: 1.15rem 1.2rem 1.05rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.news-msg-popup-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #b45309;
  margin: 0 0 0.35rem;
}
.news-msg-popup-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #7a5a12;
  margin: 0 0 0.45rem;
}
.news-msg-popup-body {
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  margin: 0 0 1rem;
  color: #1f1f1f;
}
.news-msg-popup-actions {
  display: flex;
  gap: 0.5rem;
}
.news-msg-popup-open,
.news-msg-popup-later {
  flex: 1;
  border-radius: 0.8rem;
  padding: 0.7rem 0.6rem;
  font-weight: 800;
  cursor: pointer;
}
.news-msg-popup-open {
  background: linear-gradient(180deg, #e8c547, #c9a227);
  color: #1a1408;
  border: 0;
}
.news-msg-popup-later {
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: #7a5a12;
}
.client-msg-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.2);
}
.client-msg-card.is-unread {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}
.client-msg-card.is-open {
  outline: 2px solid #c9a227;
}
.client-msg-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
}
.client-msg-del {
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  border-radius: 0.7rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

