:root {
  color-scheme: light;
  --ruby: #6b1220;
  --ruby-deep: #3f0b14;
  --ruby-soft: #8d2434;
  --coral: #d46a4c;
  --gold: #c9a227;
  --gold-soft: #e7d7a0;
  --cream: #f6efe2;
  --paper: #fffaf1;
  --field: #ffffff;
  --ink: #1c100c;
  --muted: #4d3a32;
  --line: rgba(107, 18, 32, 0.12);
  --shadow: 0 18px 50px rgba(63, 11, 20, 0.16);
  --header-bg: rgba(251, 246, 236, 0.9);
  --cat-bg: linear-gradient(180deg, rgba(246, 239, 226, 0.96), rgba(246, 239, 226, 0.88));
  --page-glow: radial-gradient(900px 420px at 100% 0, rgba(212, 106, 76, 0.16), transparent 55%),
    radial-gradient(700px 380px at 0 20%, rgba(201, 162, 39, 0.14), transparent 50%),
    linear-gradient(180deg, #fbf6ec 0%, #f3ead8 100%);
  --overlay: rgba(42, 27, 20, 0.46);
  --ghost: var(--ruby);
  --ghost-line: rgba(107, 18, 32, 0.22);
  --badge: rgba(255, 250, 241, 0.94);
  --btn: #6b1220;
  --radius: 22px;
  --header: 78px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ruby: #e06b78;
  --ruby-deep: #2a1014;
  --ruby-soft: #c44d5b;
  --coral: #f08a6c;
  --gold: #e3be55;
  --gold-soft: #f3e3b4;
  --cream: #140e10;
  --paper: #23181b;
  --field: #1b1315;
  --ink: #fff8ee;
  --muted: #ead9c8;
  --line: rgba(243, 227, 180, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
  --header-bg: rgba(16, 10, 12, 0.9);
  --cat-bg: linear-gradient(180deg, rgba(20, 14, 16, 0.96), rgba(20, 14, 16, 0.88));
  --page-glow: radial-gradient(900px 420px at 100% 0, rgba(224, 107, 120, 0.18), transparent 55%),
    radial-gradient(700px 380px at 0 20%, rgba(227, 190, 85, 0.12), transparent 50%),
    linear-gradient(180deg, #161012 0%, #1c1215 100%);
  --overlay: rgba(8, 4, 5, 0.72);
  --ghost: var(--gold-soft);
  --ghost-line: rgba(227, 190, 85, 0.42);
  --badge: rgba(35, 24, 27, 0.92);
  --btn: #c44555;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
a { color: inherit; }
.muted { color: var(--muted); }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--page-glow);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 40;
  background: var(--header-bg);
}
.header-bar {
  position: sticky;
  top: 0;
  z-index: 42;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header:has(.stories-strip:not([hidden])) .header-bar {
  border-bottom: 0;
}
.admin-page .site-header {
  position: sticky;
  top: 0;
}
.admin-page .header-inner {
  min-height: 62px;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-page .brand-text small { font-size: 0.78rem; }
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffb3ce;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--gold-soft);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-footer .brand-mark {
  width: 54px;
  height: 54px;
}
.gem {
  position: absolute;
  border-radius: 50%;
}
.gem-ruby {
  width: 16px;
  height: 16px;
  background: #f2c14e;
  top: 12px;
  right: 10px;
}
.gem-coral {
  width: 14px;
  height: 14px;
  background: var(--coral);
  bottom: 10px;
  left: 11px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-text small { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  min-width: 0;
  flex-wrap: nowrap;
}
.header-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-inline-start: auto;
}
.header-actions .install-app-btn {
  height: 42px;
  padding: 0 14px;
  font-size: 0.86rem;
}
.nav-delivery,
.btn-delivery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-delivery svg,
.btn-delivery svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.header-nav a:hover { color: var(--ruby); }

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle svg { display: none; width: 20px; height: 20px; }
html[data-theme="light"] .theme-toggle .icon-moon,
html:not([data-theme]) .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.notify-wrap {
  position: relative;
  flex-shrink: 0;
  display: block;
}
.notify-bell {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  position: relative;
}
.notify-bell svg {
  display: block !important;
  width: 20px;
  height: 20px;
}
.notify-bell.is-open {
  border-color: var(--gold);
  color: var(--ruby);
}
.notify-dot {
  position: absolute;
  top: 6px;
  inset-inline-start: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--paper);
  pointer-events: none;
}
.notify-dot[hidden] { display: none; }
.notify-inbox {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  width: min(300px, calc(100vw - 24px));
  max-height: min(360px, 60vh);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  z-index: 55;
  padding: 8px;
}
.notify-inbox[hidden] { display: none; }
.notify-inbox-head {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  padding: 6px 10px 8px;
  letter-spacing: 0.02em;
}
.notify-inbox-list {
  display: grid;
  gap: 6px;
}
.notify-empty {
  margin: 0;
  padding: 18px 12px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.notify-item {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: start;
  border: 0;
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
  padding: 10px 12px;
  cursor: pointer;
}
.notify-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
}
.notify-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}
.notify-item em {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-style: normal;
  color: var(--muted);
  opacity: 0.85;
}
.notify-item.is-old {
  opacity: 0.72;
}
.notify-item:hover,
.notify-item:focus-visible {
  outline: none;
  background: rgba(201, 162, 39, 0.12);
}

.profile-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.profile-btn svg { width: 20px; height: 20px; }
.profile-btn.is-saved {
  border-color: var(--gold);
  color: var(--ruby);
}
.game-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.game-btn svg { width: 18px; height: 18px; }

.cart-btn, .btn, .icon-btn {
  border: 0;
  cursor: pointer;
}
.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--btn);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.cart-count {
  background: var(--gold);
  color: var(--ruby-deep);
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
}

.hero { padding: 48px 0 20px; }
#menu, #about, #contact, #featured, #special-order, #delivery { scroll-margin-top: calc(var(--header) + 12px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  text-align: start;
}
.hero-copy { max-width: none; }
.hero-lead { margin-inline: 0; }
.hero-actions { justify-content: flex-start; }
.hero-points { justify-items: start; margin: 0; }
h1 { font-family: "Cairo", sans-serif; }
.eyebrow {
  letter-spacing: 0.04em;
  color: var(--coral);
  font-weight: 800;
  margin: 0 0 8px;
  font-size: 0.95rem;
}
h1, h2, h3 {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 12px;
}
h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); }
h1 span { color: var(--ruby); }
.hero-lead { font-size: 1.12rem; color: var(--muted); font-weight: 600; margin-inline: auto; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; justify-content: center; }
.hero-points {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  color: var(--muted);
  justify-items: center;
}
.hero-points li::before {
  content: "◆";
  color: var(--gold);
  margin-left: 8px;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.02rem;
  transition: 0.2s ease;
}
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--ruby-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ghost);
  box-shadow: inset 0 0 0 2px var(--ghost-line);
}
.btn-block { width: 100%; }

.trust-bar { padding: 10px 0 30px; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.trust-row div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.trust-icon {
  color: var(--gold);
  font-size: 0.92rem;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.trust-row strong { color: var(--ruby); }
.pay-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}
.pay-note img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.35);
}
.pay-note strong {
  display: block;
  color: var(--ruby);
  margin-bottom: 2px;
}
.pay-note span {
  color: var(--muted);
  font-size: 0.92rem;
}
.pay-note-compact {
  margin-top: 14px;
  margin-bottom: 14px;
}
.hours-card .pay-note-compact {
  margin-bottom: 16px;
}

.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.85rem, 3vw, 2.45rem); }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; font-weight: 600; }

.cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 16px;
  position: sticky;
  top: var(--header);
  z-index: 20;
  background: var(--cat-bg);
}
.cat-btn {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  scroll-margin-top: calc(var(--header) + 10px);
  scroll-margin-bottom: 96px;
}
.cat-btn.active {
  background: var(--btn);
  color: #fff;
  border-color: var(--btn);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding-bottom: 90px;
}
.dish-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(63, 11, 20, 0.06);
  transition: 0.2s ease;
}
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dish-photo {
  height: 200px;
  background: #3f0b14;
  background-size: cover;
  background-position: center;
  position: relative;
}
.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dish-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(42, 27, 20, 0.45));
  pointer-events: none;
  z-index: 1;
}
.dish-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: var(--badge);
  color: var(--ruby);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}
.dish-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-body h3 { font-size: 1.22rem; margin: 0; font-weight: 800; }
.dish-body p { margin: 0; color: var(--muted); font-size: 1rem; font-weight: 600; }
.price { color: var(--ruby); font-weight: 800; }
.dish-card .btn { margin-top: auto; }

.about-section { padding: 28px 0 80px; }
.service-section { padding: 28px 0 36px; }
.service-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 18px;
}
.service-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}
.service-head p {
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
  font-size: 1.05rem;
  font-weight: 600;
}
.service-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 18px;
}
.service-pills div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 1rem;
}
.service-pills b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ruby-deep);
  color: var(--gold-soft);
  font-size: 0.92rem;
  flex-shrink: 0;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 20px 20px;
  box-shadow: var(--shadow);
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}
.service-card h3 {
  margin: 2px 0 16px;
  font-size: 1.2rem;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-block {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}
.form-block:last-child { margin-bottom: 0; }
.form-block-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ruby);
}
.form-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.form-block .form-block-head { margin-bottom: 12px; }
.form-block label { margin-bottom: 10px; }
.form-block .field-grid { margin-bottom: 2px; }
.special-foot { margin: 10px 0 0; text-align: center; font-size: 0.95rem; }
.about-copy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.about-copy p { color: var(--muted); }
.about-pills {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}
.about-pills li {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}
.hours-card {
  background: var(--ruby-deep);
  color: #f7efe4;
  padding: 24px 22px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(227, 190, 85, 0.28);
  display: flex;
  flex-direction: column;
}
.hours-card .muted { color: #e7d7a0; }
.hours-card .btn-primary { background: var(--gold); color: var(--ruby-deep); }
html[data-theme="dark"] .hours-card {
  background: #3a151c;
}
.hours-card #phone-link {
  color: var(--gold-soft);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.social-btn img {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 6px;
}
.social-row-footer .social-btn {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 110px;
  color: var(--muted);
}
.footer-inner { display: grid; gap: 10px; }

.mobile-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 35;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(63, 11, 20, 0.08);
}
.mobile-bar[hidden] { display: none; }

body:has(.drawer.open) .mobile-bar,
body:has(.modal.open) .mobile-bar {
  display: none !important;
}
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 50;
}
.overlay[hidden] { display: none; }

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 60;
  transform: translateX(-110%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer.open { transform: none; }
.drawer-head, .drawer-foot { padding: 18px 20px; }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer-body {
  overflow: auto;
  padding: 16px 20px;
  flex: 1;
}
.drawer-foot { border-top: 1px solid var(--line); }
.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  font-size: 1.4rem;
  color: var(--ink);
}
.cart-item.is-custom {
  border-color: rgba(201, 162, 39, 0.45);
}
.cart-item h4 { margin: 0 0 4px; }
.cart-item .extras { color: var(--muted); font-size: 0.95rem; }
.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}
.cart-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cart-edit {
  background: transparent;
  border: 0;
  color: var(--ruby);
  cursor: pointer;
  font-weight: 700;
}
.cart-item-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}
.cart-qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}
.remove-item {
  background: transparent;
  border: 0;
  color: var(--coral);
  cursor: pointer;
  font-weight: 700;
}
.empty-cart {
  text-align: center;
  color: var(--muted);
  padding: 40px 10px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
}
.modal.open { display: grid; }
.modal-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.modal-hero {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--ruby-deep);
}
.modal-body { padding: 22px; }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; }

label { display: grid; gap: 6px; font-weight: 800; margin-bottom: 14px; }
input[type="text"], input[type="tel"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--field);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}
::placeholder { color: var(--muted); opacity: 1; font-weight: 500; }
.choice-row {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice-row legend { font-weight: 800; margin-bottom: 8px; width: 100%; }
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.chip:has(input:checked) {
  background: var(--btn);
  color: #fff;
  border-color: var(--btn);
}
.chip input { accent-color: var(--gold); }
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}
.qty-row button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}
.toggle-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 700;
}
.toggle-extra span { flex: 1; }
.toggle-extra small { font-weight: 500; }
.toggle-extra input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  border: 2px solid var(--ruby);
  border-radius: 4px;
  background: var(--field);
  cursor: pointer;
}
.toggle-extra input:checked {
  background: var(--ruby);
  box-shadow: inset 0 0 0 3px var(--field);
}
.checkout-summary {
  background: var(--cream);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: var(--muted);
}
.field-hint {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 6px;
}
.bread-choice { margin-top: 4px; }
.bread-amount {
  display: none;
  width: 100%;
  margin-top: 6px;
  gap: 6px;
  font-weight: 800;
}
.bread-choice:has([value="نعم"]:checked) .bread-amount {
  display: grid;
}
.bread-amount input {
  font-weight: 700;
}
.location-box {
  margin-bottom: 12px;
}
.location-box.is-set { border-color: rgba(227, 190, 85, 0.55); }
.location-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.location-status {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.location-status.ok { color: var(--ruby); border-color: rgba(227, 190, 85, 0.45); }
.location-status.err { color: var(--coral); }
.location-hint { margin: 0 0 10px; font-size: 0.95rem; font-weight: 600; }
.location-preview {
  display: none;
  margin-top: 10px;
  text-align: center;
  font-weight: 700;
  color: var(--ruby);
  text-decoration: none;
}
.location-preview.is-visible { display: block; }

.pin-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8px;
  margin: 4px 0 10px;
}
.pin-actions .btn { width: 100%; padding: 10px 12px; }
.coord-details {
  margin-top: 4px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.coord-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.coord-details input[dir="ltr"] { text-align: left; letter-spacing: 0.02em; }
.map-card { width: min(720px, 100%); }
.map-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 12px 0 8px;
}
.map-search input {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--field);
  color: var(--ink);
  font-size: 1rem;
}
.map-search-results {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 168px;
  overflow: auto;
  background: var(--paper);
}
.map-search-results[hidden] { display: none; }
.map-search-results li + li { border-top: 1px solid var(--line); }
.map-search-results button {
  width: 100%;
  text-align: right;
  padding: 10px 12px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.map-search-results button:hover { background: var(--field); }
.map-search-results small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
.delivery-map {
  height: min(52vh, 420px);
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 10px 0 12px;
  background: var(--field);
}
.map-coord {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.delivery-quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 4px 0 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ruby-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 80;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1100px) {
  .header-nav a[href="#about"],
  .header-nav a[href="#contact"] { display: none; }
}
@media (max-width: 900px) {
  .header-nav { display: none; }
  .install-app-btn { display: none; }
  .about-grid, .trust-row, .menu-grid, .hero-grid, .featured-row {
    grid-template-columns: 1fr;
  }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy, .hero-actions, .hero-points { text-align: center; justify-content: center; justify-items: center; }
  .service-pills div { font-size: 0.95rem; padding: 8px 8px; }
}

@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; }
  .cart-btn span:nth-of-type(1) { display: none; }
  .hero { padding-top: 22px; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-dish { grid-template-columns: 72px 1fr; }
  .admin-dish-actions { grid-column: 1 / -1; }
  .field-grid, .pin-actions { grid-template-columns: 1fr; }
  .service-pills { gap: 6px; }
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-login[hidden],
#admin-app[hidden] { display: none !important; }
.admin-login-card {
  width: min(420px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-login-card h1 { font-size: 2rem; }
.admin-login-card form { text-align: right; margin: 18px 0; }
.admin-error { color: var(--coral); font-weight: 700; margin-top: 10px; }
.admin-main { padding: 18px 0 80px; }
.admin-tabs-wrap {
  position: sticky;
  top: var(--header);
  z-index: 38;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 12px;
}
.admin-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-tab.active {
  background: var(--btn);
  color: #fff;
  border-color: transparent;
}
.tab-count {
  min-width: 1.4em;
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0.85;
}
.admin-tab.active .tab-count { opacity: 1; }
.admin-guide {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}
.admin-tab-panel[hidden] { display: none !important; }
.admin-search {
  display: block;
  margin: 0 0 16px;
  font-weight: 700;
}
.admin-search input {
  width: 100%;
  margin-top: 6px;
}
.admin-steps {
  margin: 0 0 16px;
  padding: 0 18px;
  color: var(--muted);
  font-weight: 700;
}
.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.admin-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.admin-stat span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.admin-stat strong {
  font-size: 1.35rem;
}
.admin-stat-pair {
  display: grid;
  gap: 8px;
  margin: 0;
}
.admin-stat-pair > span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}
.admin-stat-pair strong {
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 800;
}
.admin-story-counts {
  display: flex;
  gap: 14px;
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}
.admin-story-counts span {
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.admin-story-counts strong {
  font-size: 1.05rem;
  color: var(--ink);
}
.admin-visits-title {
  margin: 8px 0 6px;
  font-size: 1.05rem;
}
.admin-visits-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 720px) {
  .admin-status-grid { grid-template-columns: 1fr; }
  .admin-visits-grid { grid-template-columns: 1fr 1fr; }
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}
  .admin-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#publish-status { margin: 6px 0 0; font-size: 0.92rem; }
.admin-alert-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 8px;
  margin: 8px 0 32px;
  box-shadow: var(--shadow);
}
.admin-alert-card .admin-toolbar { margin-bottom: 8px; align-items: start; }
.admin-alert-card h2 { margin: 0 0 4px; }
.alert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}
.alert-chip {
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.alert-chip.active {
  background: var(--btn);
  color: #fff;
  border-color: transparent;
}
.admin-alert-card .admin-toolbar-actions { margin: 6px 0 12px; }
#alert-last { margin: 0 0 12px; font-size: 0.92rem; }
.admin-live-alerts {
  margin: 4px 0 18px;
}
.admin-live-alerts h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.admin-alerts-empty { margin: 0; }
.admin-alert-item {
  grid-template-columns: 1fr auto;
  align-items: start;
}
.admin-alert-item p { margin: 6px 0 0; }
.urgent-banner {
  position: relative;
  z-index: 5;
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.22), rgba(107, 18, 32, 0.16)),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.urgent-banner,
.urgent-banner[hidden] { display: none !important; }
.urgent-banner-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.urgent-bell {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--ruby-deep);
  flex-shrink: 0;
}
.urgent-bell svg { width: 22px; height: 22px; }
.urgent-banner-inner strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}
.urgent-copy {
  min-width: 0;
  transition: opacity 0.18s ease;
}
.urgent-copy.is-swap { opacity: 0.15; }
.urgent-dots {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.urgent-dots[hidden] { display: none; }
.urgent-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(107, 18, 32, 0.28);
  cursor: pointer;
}
.urgent-dot.active { background: var(--gold); }
.urgent-banner-inner p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 720px) {
  .urgent-banner-inner {
    grid-template-columns: auto 1fr;
  }
  .urgent-banner-inner .btn {
    grid-column: 1 / -1;
  }
}
.admin-list { display: grid; gap: 12px; }
.admin-dish {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.admin-image-preview {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin: 4px 0 14px;
  border: 1px solid var(--line);
}
#story-image-preview {
  object-fit: contain;
  background: #12090c;
  max-height: 420px;
}
.admin-dish img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  background: #12090c;
}
.admin-story-thumb {
  object-fit: contain;
}
.admin-image-preview[hidden] { display: none; }
.admin-dish strong { display: block; margin-bottom: 4px; }
.admin-dish-actions { display: flex; gap: 8px; }
.admin-variants,
.admin-extras {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin: 8px 0 16px;
}
.admin-extras legend,
.admin-variants legend {
  font-weight: 800;
  padding: 0 6px;
}
.admin-extra-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}
.admin-extra-row [data-remove-extra] {
  flex-shrink: 0;
}
.admin-variant-row {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  gap: 8px;
  margin-bottom: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.page-ornament {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(201, 162, 39, 0.07) 0 1px, transparent 1.6px),
    radial-gradient(circle at 80% 70%, rgba(212, 106, 76, 0.06) 0 1px, transparent 1.6px);
  background-size: 42px 42px, 56px 56px;
  opacity: 0.7;
}
.site-header {
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.35), 0 10px 30px rgba(0, 0, 0, 0.04);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.45), 0 12px 28px rgba(0, 0, 0, 0.16);
}
.header-nav a {
  position: relative;
  padding-bottom: 4px;
}
.header-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.header-nav a:hover::after { width: 100%; }

.hero-visual { justify-self: stretch; }
.hero-frame {
  position: relative;
  padding: 10px;
  border-radius: 28px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(135deg, var(--gold), var(--coral), var(--ruby)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.hero-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 150px 150px;
  gap: 8px;
}
.hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.hero-mosaic img:first-child {
  grid-row: 1 / span 2;
  height: 100%;
}
.hero-seal {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(42, 11, 18, 0.82);
  color: #f7efe4;
  border: 1px solid rgba(227, 190, 85, 0.45);
  border-radius: 16px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
}
.hero-seal span {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}
.hero-seal strong {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
}

.featured-section { padding: 8px 0 10px; }
.featured-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.featured-card {
  position: relative;
  min-height: 210px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  isolation: isolate;
  display: block;
  width: 100%;
  padding: 0;
  text-align: start;
  font: inherit;
  color: inherit;
  background: none;
}
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}
.featured-card:hover img { transform: scale(1.06); }
.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 8, 10, 0.82));
}
.featured-card div {
  position: absolute;
  inset-inline: 12px 12px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
}
.featured-card strong {
  display: block;
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
}
.featured-card span { font-size: 0.95rem; font-weight: 600; opacity: 1; }

.menu-tools { margin-bottom: 12px; }
.menu-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(63, 11, 20, 0.05);
}
.menu-search input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.dish-card {
  position: relative;
}
.dish-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}
.dish-card:hover::before { opacity: 1; }
.dish-photo { height: 220px; }
.hours-eyebrow { color: var(--gold-soft) !important; letter-spacing: 0.04em; }

.wa-float {
  position: fixed;
  left: 18px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 36;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.38);
  text-decoration: none;
}
body:has(.drawer.open) .wa-float,
body:has(.modal.open) .wa-float { display: none; }
.mobile-bar:not([hidden]) ~ .wa-float,
body:has(#mobile-bar:not([hidden])) .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }

.install-app-btn {
  white-space: nowrap;
}
html[data-native-app] .install-app-btn,
html[data-native-app] .install-overlay,
html[data-native-app] #android-apk-btn,
html[data-native-app] .notify-bar {
  display: none !important;
}
.install-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  background: var(--overlay);
}
.install-overlay[hidden] { display: none; }
.install-modal {
  width: min(420px, 100%);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 18px 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.install-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(107, 18, 32, 0.22);
}
.install-modal h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.install-modal p {
  margin: 0 0 14px;
  color: var(--muted);
}
.install-steps {
  text-align: right;
  margin: 0 0 16px;
  padding: 0 18px;
  color: var(--ink);
  font-weight: 600;
}
.install-steps[hidden] { display: none; }
.install-modal .btn { margin-top: 8px; }
.notify-bar {
  position: fixed;
  z-index: 70;
  inset-inline: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 12px 12px 14px;
  box-shadow: var(--shadow);
}
.notify-bar[hidden] { display: none; }
.notify-bar-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.notify-bar-copy strong {
  font-size: 0.98rem;
  font-weight: 800;
}
.notify-bar-copy span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.notify-bar-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.notify-bar-actions .btn {
  padding: 8px 14px;
  margin: 0;
  white-space: nowrap;
}
body:has(#mobile-bar:not([hidden])) .notify-bar {
  bottom: calc(90px + env(safe-area-inset-bottom));
}
body:has(.install-overlay:not([hidden])) .notify-bar {
  display: none !important;
}
html.has-dock .notify-bar {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 901px) {
  html.has-dock .notify-bar {
    bottom: 24px;
    inset-inline-start: 134px;
    width: min(420px, calc(100% - 160px));
  }
}
@media (min-width: 720px) {
  .notify-bar {
    inset-inline: auto 18px;
    width: min(420px, calc(100% - 36px));
  }
  .notify-bar-actions { flex-direction: row; }
}
@media (min-width: 901px) {
  .install-overlay {
    align-items: center;
  }
}
@media (display-mode: standalone) {
  .install-overlay,
  .install-app-btn { display: none !important; }
}

.site-footer {
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.legal-links {
  margin: 10px 0 0;
}
.legal-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 80px;
}
.legal-page h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.legal-page h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}
.legal-page p, .legal-page li {
  color: var(--muted);
}

.empty-search {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 36px 12px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.stories-strip {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 0 14px;
}
.stories-strip[hidden] { display: none; }
.stories-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 16px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.stories-row::-webkit-scrollbar { display: none; }
.story-ring {
  flex: 0 0 72px;
  width: 72px;
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
  cursor: pointer;
  text-align: center;
}
.story-ring-frame {
  display: block;
  width: 66px;
  height: 66px;
  min-width: 66px;
  min-height: 66px;
  margin: 0 auto 6px;
  padding: 2.5px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
  box-sizing: border-box;
}
.story-ring.seen .story-ring-frame {
  background: #b9b3ae;
}
html[data-theme="dark"] .story-ring.seen .story-ring-frame {
  background: #5a504c;
}
.story-ring-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--header-bg);
}
.story-ring-photo img,
.story-ring-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 50%;
}
.story-ring small {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 74px;
}
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: grid;
  place-items: stretch;
}
.story-viewer[hidden] { display: none; }
.story-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #12090c;
  overflow: hidden;
  touch-action: none;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: calc(62px + env(safe-area-inset-top)) 10px calc(78px + env(safe-area-inset-bottom));
}
.story-photo-bg {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(32px) saturate(1.1);
  transform: scale(1.06);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}
.story-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.story-head {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 4;
  padding: calc(10px + env(safe-area-inset-top)) 12px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.story-progress {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}
.story-bar {
  flex: 1;
  height: 2.5px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,0.35);
}
.story-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}
.story-bar.done i { width: 100%; }
.story-bar.active i {
  animation: storyFill 5.5s linear forwards;
}
@keyframes storyFill {
  from { width: 0; }
  to { width: 100%; }
}
.story-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding-bottom: 12px;
  min-height: 48px;
}
.story-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.4);
}
.story-user strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
}
.story-user span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.85;
}
.story-close {
  pointer-events: auto;
  position: absolute;
  top: calc(28px + env(safe-area-inset-top));
  inset-inline-end: 8px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.story-caption {
  position: absolute;
  inset-inline: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 4;
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  pointer-events: none;
}
.story-caption[hidden] { display: none; }
.story-reply {
  position: absolute;
  inset-inline: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 6;
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: auto;
}
.story-reply input {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.28);
  color: #fff;
  padding: 0 16px;
  outline: none;
  font-size: 0.95rem;
}
.story-reply input::placeholder {
  color: rgba(255,255,255,0.78);
}
.story-reply button {
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.story-caption[hidden] { display: none; }
.admin-story-expired { opacity: 0.58; }
body:has(#story-viewer:not([hidden])) .wa-float,
body:has(#story-viewer:not([hidden])) .mobile-bar { display: none; }

@media (max-width: 1100px) {
  .featured-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-mosaic { grid-template-rows: 110px 110px; }
  .featured-row { grid-template-columns: 1fr; }
  .wa-float { left: 12px; }
}
@media (min-width: 900px) {
  .stories-row {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
    padding-inline: 0;
  }
  .story-stage {
    width: min(430px, 100%);
    margin-inline: auto;
  }
}

.game-section {
  padding: 36px 0 48px;
}
.game-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}
.game-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.game-stats div {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.game-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  margin-top: 2px;
}
.game-time-box.is-low {
  border-color: var(--coral);
  color: var(--coral);
  animation: game-pulse 0.9s ease infinite;
}
.game-time-box.is-low strong { color: var(--coral); }
@keyframes game-pulse {
  50% { transform: scale(1.04); }
}
.game-stage {
  position: relative;
  min-height: 420px;
}
.game-board {
  display: grid;
  grid-template-columns: repeat(var(--game-cols, 4), 1fr);
  gap: 10px;
}
.game-board.is-shuffle .game-card {
  animation: game-swap 0.4s ease;
}
@keyframes game-swap {
  0% { transform: scale(0.86) rotate(-6deg); opacity: 0.4; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.game-card {
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  perspective: 900px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.game-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.38s cubic-bezier(.2,.8,.2,1);
}
.game-card.is-flipped .game-card-inner,
.game-card.is-matched .game-card-inner {
  transform: rotateY(180deg);
}
.game-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.game-front {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.45), transparent 46%),
    linear-gradient(160deg, #f4c9d4, #e8a7bb 45%, #c6a15b);
  box-shadow: inset 0 0 0 2px rgba(198, 161, 91, 0.45);
}
.game-front::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: url("assets/logo.png") center/cover no-repeat;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}
.game-back {
  transform: rotateY(180deg);
  background: #1c100c;
}
.game-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card.is-matched .game-back {
  box-shadow: 0 0 0 3px var(--gold);
}
.game-card.is-miss .game-card-inner {
  animation: game-shake 0.4s ease;
}
@keyframes game-shake {
  0%, 100% { transform: rotateY(180deg) translateX(0); }
  25% { transform: rotateY(180deg) translateX(-6px); }
  75% { transform: rotateY(180deg) translateX(6px); }
}
.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 16, 12, 0.72);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  display: none;
  place-items: center;
  text-align: center;
  padding: 24px 16px;
  color: #fff8ee;
  z-index: 2;
}
.game-overlay.is-on {
  display: grid;
}
.game-overlay[hidden] {
  display: none !important;
}
.game-overlay h3 {
  margin: 4px 0 8px;
  font-size: 1.5rem;
}
.game-overlay p {
  margin: 0 0 16px;
  max-width: 36ch;
}
.game-overlay .btn { min-width: 180px; }
.game-hint {
  text-align: center;
  margin: 14px 0 0;
}
@media (max-width: 640px) {
  .game-stats { grid-template-columns: repeat(2, 1fr); }
  .game-board { gap: 7px; }
  .game-stage { min-height: 340px; }
}

.snake-section { padding-top: 8px; }
.snake-stage {
  position: relative;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(244, 201, 212, 0.18), transparent 42%),
    linear-gradient(180deg, #241418, #161012);
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
  touch-action: none;
}
.snake-board {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  border-radius: 18px;
}
#game-overlay-text:empty,
#snake-overlay-text:empty {
  display: none;
}
.game-overlay .btn + .btn { margin-top: 8px; }

.app-dock {
  display: none;
}
html.has-dock .app-dock {
  display: flex;
  position: fixed;
  z-index: 40;
  bottom: 0;
  inset-inline: 0;
  min-height: 58px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  align-items: stretch;
  justify-content: space-between;
  background: var(--paper);
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  box-shadow:
    0 -10px 28px rgba(28, 16, 12, 0.14),
    inset 0 1px 0 color-mix(in srgb, var(--gold) 55%, transparent);
  transition: transform 0.28s ease;
}
html.has-dock .app-dock-glow {
  position: absolute;
  top: 6px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 32%, var(--field)), color-mix(in srgb, var(--ruby) 16%, var(--field)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent);
  transition: inset-inline-start 0.28s cubic-bezier(.22,.8,.28,1), inset-block-start 0.28s cubic-bezier(.22,.8,.28,1), width 0.28s ease, height 0.28s ease;
  pointer-events: none;
}
html.has-dock .app-dock button {
  position: relative;
  z-index: 1;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 4px 0 0;
  font-weight: 800;
  font-size: 0.7rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}
html.has-dock .app-dock button svg {
  width: 22px;
  height: 22px;
}
html.has-dock .app-dock button.is-on {
  color: var(--ruby);
}
html.has-dock .app-dock button.is-on::after {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--gold);
  box-shadow: 0 0 10px color-mix(in srgb, var(--gold) 70%, transparent);
}
html.has-dock .dock-pane { display: none; }
html.has-dock[data-dock="home"] .dock-home,
html.has-dock[data-dock="menu"] .dock-menu,
html.has-dock[data-dock="special"] .dock-special,
html.has-dock[data-dock="delivery"] .dock-delivery,
html.has-dock[data-dock="play"] .dock-play {
  display: block;
  animation: dock-in 0.34s cubic-bezier(.22,.8,.28,1);
}
@keyframes dock-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
html.has-dock {
  scroll-padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
}
html.has-dock body {
  padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
}
html.has-dock .header-nav { display: none !important; }
html.has-dock .profile-btn,
html.has-dock .game-btn { display: none; }
html.has-dock .brand-text small,
html[data-native-app] .brand-text small { display: none; }
html.has-dock .header-actions,
html[data-native-app] .header-actions {
  z-index: 6;
}
html.has-dock .cart-btn span:not(.cart-count),
html[data-native-app] .cart-btn span:not(.cart-count) {
  display: none;
}
html.has-dock .notify-wrap,
html[data-native-app] .notify-wrap {
  display: block !important;
  flex-shrink: 0;
}
html.has-dock .mobile-bar {
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  inset-inline: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(28, 16, 12, 0.18);
}
html.has-dock .wa-float {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
html.has-dock .toast {
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}
html.has-dock .site-footer { padding-bottom: 20px; }
html.has-dock .app-dock button {
  font-size: 0.62rem;
  white-space: nowrap;
}
html.has-dock .app-dock button svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 900px) {
  body:has(.drawer.open) .app-dock,
  body:has(#checkout-modal.open) .app-dock,
  body:has(#item-modal.open) .app-dock,
  body:has(#map-modal.open) .app-dock,
  body:has(#story-viewer:not([hidden])) .app-dock {
    transform: translateY(100%);
    pointer-events: none;
  }
}
@media (min-width: 901px) {
  html.has-dock {
    scroll-padding-bottom: 0;
  }
  html.has-dock body {
    padding-bottom: 0;
    padding-inline-start: 118px;
  }
  html.has-dock .app-dock {
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: 118px;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    justify-content: space-evenly;
    overflow: hidden;
    padding: 12px 8px;
    border-radius: 0;
    border-top: 0;
    border-inline-end: 1px solid var(--line);
    box-shadow:
      -16px 0 36px rgba(28, 16, 12, 0.12),
      inset -1px 0 0 color-mix(in srgb, var(--gold) 40%, transparent);
  }
  html.has-dock .app-dock-glow {
    display: none;
  }
  html.has-dock .app-dock button {
    flex: 1 1 0;
    min-height: 0;
    padding: 6px 4px;
    gap: 4px;
    font-size: 0.74rem;
    border-radius: 18px;
  }
  html.has-dock .app-dock button svg {
    width: 22px;
    height: 22px;
  }
  html.has-dock .app-dock button.is-on {
    background: color-mix(in srgb, var(--gold) 18%, var(--field));
  }
  html.has-dock .app-dock button.is-on::after {
    display: none;
  }
  html.has-dock .wa-float {
    bottom: 24px;
    inset-inline-end: 18px;
  }
  html.has-dock .mobile-bar {
    bottom: 16px;
    inset-inline: 16px 16px;
    inset-inline-start: 134px;
  }
  html.has-dock .toast {
    bottom: 24px;
  }
  body:has(.drawer.open) .app-dock,
  body:has(#checkout-modal.open) .app-dock,
  body:has(#item-modal.open) .app-dock,
  body:has(#map-modal.open) .app-dock,
  body:has(#story-viewer:not([hidden])) .app-dock {
    transform: translateX(110%);
    pointer-events: none;
  }
}
body:has(#profile-modal.open) .app-dock { transform: none; pointer-events: auto; }
