:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --muted: #6b7280;
  --primary: #111827;
  --primary-soft: #f3f4f6;
  --success: #166534;
  --danger: #b91c1c;
  --shadow-sm: 0 6px 18px rgba(17, 24, 39, .05);
  --shadow-md: 0 18px 40px rgba(17, 24, 39, .10);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --space-section: 14px;
  --space-card: 12px;
  --space-inner: 10px;
  --container: min(1100px, calc(100vw - 32px));
  --header-height: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body, "Manrope", ui-sans-serif, sans-serif);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
body.has-bottom-nav {
  padding-bottom: 86px;
}
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 20px rgba(15, 23, 42, .08);
}
.bnav-btn {
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 4px 2px;
  font-weight: 700;
  font-size: .72rem;
}
.bnav-icon {
  width: 22px;
  height: 22px;
  display: block;
  color: currentColor;
}
.bnav-icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: var(--bnav-icon) center / contain no-repeat;
  mask: var(--bnav-icon) center / contain no-repeat;
}
.bnav-btn[data-bnav="home"] {
  --bnav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 10.8 12 3l9 7.8v9.7a.5.5 0 0 1-.5.5h-5.2v-6.4H8.7V21H3.5a.5.5 0 0 1-.5-.5v-9.7Zm2 1V19h1.7v-6.4h10.6V19H19v-7.2l-7-6.1-7 6.1Z'/%3E%3C/svg%3E");
}
.bnav-btn[data-bnav="rewards"] {
  --bnav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 10h16v10.5a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5V10Zm2 2v7h5v-7H6Zm7 0v7h5v-7h-5ZM3 6.5A2.5 2.5 0 0 1 5.5 4H9c.8 0 1.6.4 2.1 1l.9 1.2.9-1.2c.5-.6 1.3-1 2.1-1h3.5A2.5 2.5 0 0 1 21 6.5V9H3V6.5ZM5.5 6a.5.5 0 0 0-.5.5V7h5.4l-.9-1.2A.8.8 0 0 0 9 6H5.5Zm9.5 0a.8.8 0 0 0-.5.2L13.6 7H19v-.5a.5.5 0 0 0-.5-.5H15Z'/%3E%3C/svg%3E");
}
.bnav-btn[data-bnav="qr"] {
  --bnav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4V4Zm2 2v3h3V6H6Zm7-2h7v7h-7V4Zm2 2v3h3V6h-3ZM4 13h7v7H4v-7Zm2 2v3h3v-3H6Zm8-2h2v2h-2v-2Zm4 0h2v4h-4v-2h2v-2Zm-4 4h2v3h-2v-3Zm4 2h2v1h-2v-1Z'/%3E%3C/svg%3E");
}
.bnav-btn[data-bnav="history"] {
  --bnav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a8 8 0 1 1-7.4 11H2.5A10 10 0 1 0 5 4.7V2H3v6h6V6H6.7A8 8 0 0 1 12 4Zm1 3h-2v6l5 3 .9-1.8-3.9-2.3V7Z'/%3E%3C/svg%3E");
}
.bnav-btn[data-bnav="account"] {
  --bnav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0-2a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Zm-8 9.5C4 16.5 7.1 14 12 14s8 2.5 8 5.5v.5H4v-.5Zm2.2-1.5h11.6c-.7-1.2-2.6-2-5.8-2s-5.1.8-5.8 2Z'/%3E%3C/svg%3E");
}
.bnav-btn.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--border);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  width: 100%;
  max-width: calc(1100px + 32px);
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 10px 16px;
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 6px;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  flex: none;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .10);
}
.brand-logo--image {
  background: transparent;
  padding: 0;
}
.brand-logo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.brand-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.02em;
}
.brand-subtitle {
  font-size: .76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  padding-left: 6px;
}
.btn, .icon-btn, .chip, .category-pill, .meta, .tag, .social-chip, .slider-dot {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: .18s ease;
}
.btn, .chip {
  max-width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}
.top-actions .chip,
.top-actions .btn {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-actions .icon-btn { flex: 0 0 auto; }
.top-actions .btn,
.top-actions .chip { flex: 0 1 auto; }
.btn:hover, .icon-btn:hover, .chip:hover, .category-pill:hover { border-color: var(--border-strong); }
.lang-popover {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: start end;
  padding: 72px 16px 16px;
}
.lang-popover.hidden { display: none !important; }
.lang-popover__panel {
  width: min(240px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 12px;
}
.lang-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.lang-popover__list {
  display: grid;
  gap: 8px;
}
.lang-popover__item {
  min-height: 40px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 0 12px;
  text-align: left;
  font-weight: 700;
}
.lang-popover__item.is-active,
.welcome-screen__lang-options .chip.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.secondary { background: var(--surface-soft); }
.btn.danger { color: var(--danger); }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  padding: 0;
  font-size: .95rem;
  flex: none;
}
.hero {
  width: var(--container);
  margin: 18px auto var(--space-section);
  display: grid;
  gap: var(--space-card);
}
.hero.hero-collapsed {
  width: var(--container);
  margin: 0 auto var(--space-section);
  display: block;
  min-height: 0;
}
.slider-shell, .hero-toolbar, .category-strip, .list-shell, .empty-state, .drawer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.slider-shell {
  position: relative;
  overflow: hidden;
}
.slides {
  position: relative;
  min-height: 230px;
  height: clamp(230px, 32vw, 300px);
  max-height: 300px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slide-copy {
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 10px;
}
.slide-kicker {
  font-size: .74rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.slide-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.06;
  letter-spacing: -.04em;
  max-width: 18ch;
}
.slide-desc {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  max-width: 58ch;
}
.slide-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}
.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.card-image,
.compact-image,
.item-image {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}
.card-image {
  width: 100%;
  height: auto;
}
.compact-image,
.item-image {
  width: 88px;
  height: 88px;
  flex: none;
}
.slider-shell > .slider-controls {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 20 !important;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 34px;
}
.slider-arrow {
  min-width: 94px;
  visibility: visible !important;
  opacity: 1 !important;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .82rem;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(15,23,42,.06);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.slider-arrow span { font-size: 1.18rem; line-height: .8; }
.slider-arrow:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, #fff);
  transform: translateY(-1px);
}
.slider-shell[data-slider-count="1"] .slider-dots { display: none; }
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  padding: 0;
}
.slider-dot.active {
  width: 24px;
  background: var(--primary);
  border-color: var(--primary);
}
.hero-toolbar { padding: 14px; }
.toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.search-box {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  min-width: 0;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#searchToolbar.hidden { display: none !important; }
.category-strip {
  position: sticky;
  top: var(--header-height);
  z-index: 42;
  width: var(--container);
  margin: 0 auto var(--space-section);
  padding: 10px;
  display: flex;
  gap: 8px;
  overflow: auto;
  scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.category-strip::-webkit-scrollbar { display: none; }
.category-pill {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}
.category-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.content {
  width: var(--container);
  margin: 0 auto calc(var(--space-section) * 2);
  display: grid;
  gap: var(--space-card);
}
.list-shell { overflow: hidden; }
.list-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-inner);
  margin-bottom: var(--space-card);
}
.list-header > div,
.loyalty-page-head > div {
  min-width: 0;
}
.list-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}
.card-title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.card-subtitle {
  color: var(--muted);
  font-size: .84rem;
}
.list-subtitle {
  margin-top: 3px;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.35;
}
.menu-list-categorized {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  padding: 0 !important;
}
.menu-category-section {
  min-width: 0;
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.menu-category-section:last-child { border-bottom: 0; }
.menu-category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.menu-category-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.menu-category-items {
  display: grid;
}
.menu-load-more {
  padding: 12px 16px 16px;
  display: grid;
  place-items: center;
  background: var(--surface);
}
.menu-load-more .btn {
  min-width: min(220px, 100%);
}
body[data-card-style="grid"] .menu-category-items {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-card);
  padding: var(--space-card);
}
body[data-card-style="compact"] .menu-category-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.menu-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.menu-item:last-child { border-bottom: 0; }
.item-image {
  width: 88px;
  height: 88px;
  min-width: 88px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center center;
  background: #fff;
  flex-shrink: 0;
}
.img-rounded { border-radius: 10px; }
.img-square  { border-radius: 4px; }
.img-circle  { border-radius: 50%; }
.item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
}
.item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.item-name {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.35;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.item-price {
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--primary, var(--text));
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 1px;
}
.item-desc {
  font-size: .82rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.tag-row, .meta-row, .actions, .modal-actions, .socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.meta, .tag, .social-chip {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: #374151;
}
.tag-icon {
  font-size: .82rem;
  line-height: 1;
}
/* Alerjen listesi (modal) */
.allergen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.allergen-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff3cd;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: .72rem;
  font-weight: 600;
}
.allergen-icon {
  font-size: .9rem;
  line-height: 1;
}
.allergen-name { line-height: 1.2; }
.allergen-row {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
}
.allergen-row > span,
.allergen-row .allergen-list,
.allergen-row .modal-meta-empty {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}
.modal-meta-empty { color: var(--muted); font-size: .82rem; }
.item-side {
  min-width: 124px;
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 8px;
  text-align: right;
}
.price {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.price-note {
  font-size: .72rem;
  color: var(--muted);
  text-align: right;
}
.menu-item.detail-btn,
.menu-compact.detail-btn,
.menu-card .card-body {
  cursor: pointer;
}
.empty-state {
  margin-top: 14px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
.drawer, .modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.drawer.active, .modal.active { pointer-events: auto; }
.drawer-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: min(85vw, 360px) 1fr;
}
.drawer-panel {
  height: 100%;
  padding: 18px;
  border-radius: 0 18px 18px 0;
  transform: translateX(-105%);
  transition: transform .26s ease;
  overflow: auto;
}
.drawer.active .drawer-panel { transform: translateX(0); }
.drawer-backdrop, .modal-backdrop {
  background: rgba(17,24,39,.16);
  opacity: 0;
  transition: opacity .2s ease;
}
.drawer.active .drawer-backdrop, .modal.active .modal-backdrop { opacity: 1; }
.drawer-head, .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.drawer-title, .modal-title {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.drawer-section {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.drawer-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.drawer-label {
  margin-bottom: 8px;
  font-size: .76rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.drawer-value {
  font-size: .92rem;
  line-height: 1.6;
}
.drawer-value.schedule {
  display: grid;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.schedule-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: baseline;
}
.schedule-day {
  color: var(--muted);
  font-weight: 700;
}
.schedule-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -.01em;
}
.modal { display: none; }
#detailModal.modal { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
}
.modal-card {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--surface);
  opacity: 0;
  transform: translateY(18px);
  transition: .22s ease;
  padding: 16px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.modal.active .modal-card {
  opacity: 1;
  transform: translateY(0);
}
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 18px;
  place-items: center;
  overflow: hidden;
}
.auth-modal.active {
  display: grid !important;
}
.auth-modal.active .modal-card.auth-modal-card {
  opacity: 1 !important;
  transform: none !important;
}
.auth-modal .modal-card.auth-modal-card {
  position: relative !important;
  inset: auto !important;
  z-index: 1;
  width: min(520px, calc(100vw - 24px));
  height: auto;
  max-height: min(86dvh, 760px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
  opacity: 0;
  transform: translateY(10px) !important;
  box-shadow: var(--shadow-md);
  margin: 0 !important;
  -webkit-overflow-scrolling: touch;
}
.auth-modal .modal-body.auth-modal-body {
  min-height: auto;
  grid-template-columns: 1fr;
  gap: 14px;
}
.auth-modal .modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  justify-content: stretch !important;
}
.auth-modal .modal-actions .btn {
  width: 100%;
  min-height: 44px;
  padding-inline: 12px;
}
.modal-body {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: calc(var(--space-card) + 4px);
  align-items: start;
  min-height: calc(100dvh - 90px);
}
.modal-media-shell {
  display: grid;
  gap: 12px;
  align-self: start;
}
.modal-content-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}
.modal-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: .95rem;
}
.modal-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
  border-radius: 18px;
  background: #fff;
}
.option-list {
  display: grid;
  gap: 10px;
}
.modal-option-list,
.modal-meta-list {
  margin-top: 0;
}
.option-row {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .84rem;
  font-weight: 600;
}
.option-row strong {
  font-weight: 800;
  font-size: .9rem;
}
.option-row.active {
  background: #eef2ff;
  border-color: #c7d2fe;
}
.total-box {
  margin-top: 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}
.modal-total-copy {
  display: grid;
  gap: 4px;
}
.modal-total-label {
  font-size: .8rem;
  color: var(--muted);
}
.point-popup.hidden { display: none !important; }
.point-popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100dvh;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(18px, env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
}
.point-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.point-popup__card {
  position: relative;
  z-index: 1;
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid rgba(22, 101, 52, .18);
  border-radius: 22px;
  padding: 42px 22px 22px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, .18), transparent 38%),
    var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  display: grid;
  gap: 12px;
  text-align: center;
  animation: pointPopupIn .18s ease-out both;
}
.point-popup__close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.point-popup__badge {
  width: max-content;
  margin: 4px auto 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: .78rem;
  font-weight: 900;
}
.point-popup__title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.point-popup__body {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.point-popup__ok {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--primary);
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.reward-code-popup.hidden { display: none !important; }
.reward-code-popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100dvh;
  z-index: 165;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(18px, env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
}
.reward-code-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.reward-code-popup__card {
  position: relative;
  z-index: 1;
  width: min(410px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 24px;
  padding: 42px 22px 22px;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, .08), transparent 42%),
    var(--surface);
  color: var(--text);
  box-shadow: 0 26px 76px rgba(15, 23, 42, .26);
  display: grid;
  gap: 12px;
  text-align: center;
  animation: pointPopupIn .18s ease-out both;
}
.reward-code-popup__close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.reward-code-popup__badge {
  width: max-content;
  margin: 4px auto 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 900;
}
.reward-code-popup__title {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.reward-code-popup__body {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.reward-code-popup__qr {
  width: min(260px, 70vw);
  aspect-ratio: 1 / 1;
  margin: 4px auto 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}
.reward-code-popup__qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.reward-code-popup__code {
  width: max-content;
  margin: 0 auto;
  padding: 8px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  background: var(--surface-soft);
  font-size: clamp(1.55rem, 8vw, 2.15rem);
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1;
}
.reward-code-popup__small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.reward-code-popup__small strong {
  color: var(--text);
  letter-spacing: .04em;
}
.reward-code-popup__ok {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--primary);
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
@keyframes pointPopupIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 90;
  min-width: 220px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: .22s ease;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.welcome-auth-form {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  margin: 8px auto 0;
}
.input, .select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
}
.loyalty-views {
  width: var(--container);
  margin: 18px auto var(--space-section);
  display: grid;
  gap: var(--space-card);
}
.loyalty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  overflow: hidden;
}
.loyalty-page {
  display: grid;
  gap: 14px;
}
.loyalty-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
}
.loyalty-kicker {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.loyalty-page-head .card-title {
  line-height: 1.2;
}
.loyalty-page-head .card-subtitle {
  margin-top: 3px;
  line-height: 1.4;
}
.loyalty-balance-pill {
  flex: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.loyalty-wallet {
  margin-top: 8px;
  font-weight: 800;
}
.loyalty-info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.loyalty-info-strip div {
  min-height: 72px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
}
.loyalty-info-strip strong {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .82rem;
}
.loyalty-info-strip span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.loyalty-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.loyalty-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 10px;
}
.loyalty-empty {
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--muted);
  background: var(--surface-soft);
  text-align: center;
  font-weight: 700;
}
.rewards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}
.reward-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}
.reward-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--muted);
  font-weight: 900;
  overflow: hidden;
}
.reward-media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  line-height: 1.2;
}
.reward-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}
.reward-body {
  padding: 12px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-height: 164px;
}
.reward-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}
.reward-title {
  font-size: .98rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.24;
  min-height: calc(1.24em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reward-desc {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.38;
  min-height: calc(1.38em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reward-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
}
.reward-cost {
  min-width: 0;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
}
.reward-foot .btn {
  min-width: 88px;
  min-height: 38px;
  padding-inline: 10px;
}
.btn:disabled {
  opacity: .48;
  cursor: not-allowed;
}
.qr-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.qr-box {
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  background: var(--surface-soft);
}
.qr-box img {
  width: min(280px, 70vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
}
.qr-code-6 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: .2em;
  margin-top: 8px;
}
.qr-timer {
  margin-top: 5px;
  color: var(--muted);
  font-size: .85rem;
}
.qr-help-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 10px;
}
.qr-help-title {
  font-weight: 900;
}
.qr-help-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.history-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(96px, auto);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}
.history-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
}
.history-main,
.history-side {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.history-main span,
.history-side span {
  color: var(--muted);
  font-size: .76rem;
}
.history-detail {
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  gap: 3px;
}
.history-detail b {
  color: var(--text);
  font-size: .76rem;
  font-weight: 900;
}
.history-detail em {
  color: var(--muted);
  font-size: .8rem;
  font-style: normal;
  line-height: 1.35;
}
.history-side {
  justify-items: end;
  text-align: right;
}
.history-side small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}
.is-plus {
  color: var(--success);
  background: #dcfce7;
}
.is-minus {
  color: var(--danger);
  background: #fee2e2;
}
.account-hero {
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(17, 24, 39, .10), transparent 38%),
    linear-gradient(135deg, var(--surface-soft), var(--surface));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-avatar {
  width: 68px;
  height: 68px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}
.account-hero-copy {
  min-width: 0;
}
.account-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.03em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-phone {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.account-stat,
.account-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}
.account-stat {
  min-height: 88px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 4px;
}
.account-stat span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.account-stat strong {
  font-size: 1.45rem;
  font-weight: 900;
}
.account-panel {
  padding: 14px;
}
.account-panel-title {
  margin-bottom: 10px;
  font-weight: 900;
}
.account-grid {
  display: grid;
  gap: 8px;
}
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.account-row span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}
.account-row strong {
  text-align: right;
}
.account-actions {
  display: flex;
  justify-content: flex-end;
}
.account-actions .btn {
  min-width: 140px;
}
@media (max-width: 860px) {
  :root {
    --container: min(1100px, calc(100vw - 20px));
  }
  .shell,
  .hero,
  .loyalty-views {
    width: var(--container);
  }
  .slides {
    height: clamp(300px, 68vw, 380px);
    max-height: 380px;
  }
  .slide {
    position: absolute;
    inset: 0;
    display: grid;
    opacity: 0;
    pointer-events: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(190px, 1fr);
  }
  .slide.active {
    opacity: 1;
    pointer-events: auto;
  }
  .slide-copy { padding: 14px 16px 8px; }
  .slide-media {
    min-height: 190px;
    max-height: none;
    height: 100%;
  }
  .slide-title { font-size: clamp(1.05rem, 3.8vw, 1.45rem); }
  .toolbar-row { grid-template-columns: 1fr; }
  .toolbar-actions { justify-content: flex-start; }
  #detailModal.modal {
    display: block;
    padding: 0;
  }
  #detailModal.modal.active { display: block; }
  .auth-modal.active { display: grid !important; }
  #detailModal .modal-card {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    overflow: auto;
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
  }
  .auth-modal {
    padding: 12px;
  }
  .auth-modal .modal-card.auth-modal-card {
    inset: auto !important;
    width: min(520px, calc(100vw - 24px)) !important;
    height: auto !important;
    max-height: min(84dvh, 760px) !important;
    border-radius: 16px !important;
    padding: 14px !important;
  }
  .auth-modal .modal-body.auth-modal-body {
    min-height: auto !important;
  }
  .modal-head {
    position: static;
  }
  .modal-body {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }
  .modal-media-shell {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }
  .modal-image {
    aspect-ratio: 1 / 1;
    max-height: 320px;
  }
  .rewards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .qr-layout {
    grid-template-columns: 1fr;
  }
  .total-box {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .sticky-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sticky-modal-actions .btn {
    width: 100%;
    min-height: 44px;
  }
}
@media (max-width: 560px) {
  :root {
    --container: calc(100vw - 16px);
    --header-height: 60px;
  }
  body.has-bottom-nav {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav {
    gap: 4px;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .bnav-btn {
    min-height: 50px;
    font-size: .68rem;
    border-radius: 10px;
  }
  .bnav-icon {
    width: 20px;
    height: 20px;
  }
  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    max-width: none;
    padding: calc(6px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 6px max(8px, env(safe-area-inset-left, 0px));
    min-height: var(--header-height);
  }
  .brand {
    gap: 10px;
    padding-right: 0;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .brand-subtitle { display: none; }
  .top-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    padding-left: 0;
  }
  .top-actions .icon-btn,
  .top-actions .btn,
  .top-actions .chip {
    min-height: 38px;
  }
  .top-actions .icon-btn {
    width: 38px;
    height: 38px;
  }
  .top-actions .btn {
    min-width: 0;
    font-size: .82rem;
    padding: 0 9px;
    white-space: nowrap;
  }
  .top-actions .chip {
    max-width: 88px;
    padding: 0 8px;
    font-size: .8rem;
  }
  .slide-copy { padding: 14px; }
  .slide-title { font-size: 1.12rem; max-width: none; }
  .slide-desc { font-size: .82rem; }
  .slides {
    height: clamp(300px, 72vw, 390px);
    max-height: 390px;
  }
  .slide {
    grid-template-rows: auto minmax(200px, 1fr);
  }
  .slide-media {
    min-height: 200px;
    max-height: none;
    height: 100%;
  }
  .slider-controls {
    padding: 10px 12px 14px;
    flex-wrap: wrap;
  }
  .hero-toolbar { padding: 10px; }
  .toolbar-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .toolbar-actions .btn {
    width: 100%;
    min-height: 40px;
  }
  .loyalty-page-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .loyalty-balance-pill {
    width: 100%;
  }
  .loyalty-info-strip,
  .account-stats {
    grid-template-columns: 1fr;
  }
  .reward-body {
    padding: 10px;
    gap: 7px;
    min-height: 150px;
  }
  .reward-title {
    font-size: .88rem;
    line-height: 1.2;
    min-height: calc(1.2em * 2);
  }
  .reward-desc {
    min-height: calc(1.35em * 2);
    font-size: .76rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .reward-foot {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 74px;
    align-items: end;
  }
  .reward-foot .btn {
    width: 100%;
    min-height: 38px;
    padding-inline: 8px;
    font-size: .78rem;
  }
  .reward-cost {
    font-size: .8rem;
  }
  .account-hero {
    align-items: flex-start;
    padding: 14px;
  }
  .account-avatar {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }
  .history-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .history-side {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
  .account-actions .btn {
    width: 100%;
  }
  .point-popup {
    align-items: center;
    padding-inline: 12px;
  }
  .point-popup__card {
    width: min(390px, calc(100vw - 24px));
    border-radius: 18px;
    padding: 42px 16px 16px;
  }
  .category-strip {
    padding: 10px;
    gap: 8px;
  }
  .menu-list-categorized {
    gap: 10px !important;
  }
  .menu-category-head {
    top: var(--header-height);
    padding: 10px 12px;
  }
  .menu-category-title {
    font-size: .92rem;
  }
  body[data-card-style="grid"] .menu-category-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .menu-item {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }
  .item-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 9px;
  }
  .item-price { font-size: .93rem; }
  .price-note { display: none; }
  .menu-compact {
    grid-template-columns: 64px 1fr auto;
    gap: 10px;
    padding: 12px;
  }
  .menu-compact .actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .compact-image {
    width: 64px;
    height: 64px;
  }
  #detailModal .modal-card {
    inset: 0;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px));
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .auth-modal .modal-card.auth-modal-card {
    inset: auto !important;
    width: calc(100vw - 16px) !important;
    height: auto !important;
    max-height: min(86dvh, 760px) !important;
    border-radius: 14px !important;
    padding: 12px !important;
  }
  .auth-modal .modal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-screen__panel {
    width: calc(100vw - 16px);
    padding: 14px;
    border-radius: 14px;
  }
  .welcome-screen__actions .btn {
    width: 100%;
  }
  #detailModal.modal {
    display: block;
  }
  .auth-modal.active { display: grid !important; }
  .modal-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .modal-media-shell {
    max-width: 260px;
  }
  .modal-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    max-height: 260px;
    border-radius: 14px;
  }
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .modal-actions .btn {
    width: 100%;
    min-height: 44px;
  }
  .total-box {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .history-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .history-side {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
}
@media (max-width: 420px) {
  .topbar-inner {
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
  }
  .auth-modal {
    padding: 8px;
  }
  .auth-modal .modal-card.auth-modal-card {
    width: calc(100vw - 12px) !important;
    max-height: min(86dvh, 760px) !important;
  }
  .brand-title { font-size: .9rem; }
  .top-actions .btn.secondary {
    width: 38px;
    padding: 0;
    font-size: 0;
  }
  .top-actions .btn.secondary::before {
    content: "i";
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1.5px solid currentColor;
    font-size: .8rem;
    font-weight: 900;
    line-height: 1;
  }
  .top-actions .chip {
    max-width: 72px;
  }
  .slide-title { font-size: 1.02rem; }
  .slide-desc { font-size: .78rem; }
  .slide-media { min-height: 156px; max-height: 188px; }
  .menu-item {
    grid-template-columns: 68px minmax(0,1fr);
    gap: 10px;
    padding: 10px 12px;
  }
  .item-image { width: 68px; height: 68px; min-width: 68px; border-radius: 8px; }
  .item-name { font-size: .87rem; }
  .item-price { font-size: .89rem; }
  .item-desc { font-size: .76rem; }
  .toolbar-actions { grid-template-columns: 1fr; }
  #detailModal .modal-card { padding: 10px; }
  .modal-image { height: 190px; }
  .option-row { padding: 10px 12px; }
}
