/* ============================================================
   App screens. Layout follows the reference app; the look follows Limón y Sal:
   coral and white surfaces, a navy tab bar with lime highlights, wide
   caps titles, photo or colour tiles, certificate cards.
   ============================================================ */

#view {
  position: absolute;
  inset: 0 0 calc(var(--tabbar-h) + var(--safe-bottom)) 0;
  overflow: hidden;
}
/* Backs the status bar once full-bleed content scrolls under it. On a real
   phone --safe-top is the OS inset, so this only shows where one exists. */
.status-scrim {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--safe-top);
  z-index: 35;
  pointer-events: none;
  background: rgba(255, 248, 244, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .2s;
}
.screen.scrolled .status-scrim { opacity: 1; }
#layer { position: absolute; inset: 0; pointer-events: none; z-index: 40; }
#layer > :not(.toast) { pointer-events: auto; }

.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper-grain), var(--bg);
}

.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-bottom: 24px;
}
.scroll::-webkit-scrollbar { display: none; }
.pad { padding: 16px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.ok { color: var(--success) !important; }
.closed { color: var(--brand-ink) !important; }
.script { font-family: var(--font-script); color: var(--brand-ink); font-size: 22px; margin: 0; line-height: 1.1; }
.link { color: var(--brand-ink); font-weight: 700; }
.link.small { font-size: 13px; align-self: flex-end; }
.fineprint { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 12px 16px; }
.eyebrow { font: 600 10.5px/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .8px; color: var(--brand-ink); margin: 0 0 4px; }
.ic { flex-shrink: 0; }

/* ---------- Top bar (pushed screens) ---------- */
.topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: calc(var(--safe-top) + 4px) 8px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-grain), var(--bg);
  position: relative;
  z-index: 2;
}
.topbar h1 {
  margin: 0;
  text-align: center;
  font: 600 17.5px/1.1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--brand-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar.plain { border: 0; background: transparent; }
.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--brand-ink);
  position: relative;
}
.icon-btn.light { color: #fff; }
.icon-btn.float {
  position: absolute;
  top: calc(var(--safe-top) + 6px);
  background: rgba(255, 248, 244, .94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  width: 40px; height: 40px;
}
.icon-btn.float.left { left: 14px; }
.icon-btn.float.right { right: 14px; }
.icon-btn.on svg { fill: var(--brand-ink); }
.dot-badge {
  position: absolute; top: 6px; right: 5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px;
  background: var(--lime); color: var(--navy);
  font: 700 10.5px/17px var(--font-body);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--on-brand);
  font: 600 13.5px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .8px;
  text-align: center;
  transition: transform .12s, background .15s, opacity .15s;
}
.btn:active { transform: scale(.97); background: var(--brand-deep); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.block { display: flex; width: 100%; }
.btn.grow { flex: 1; padding: 0 10px; white-space: nowrap; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn.ghost { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand-ink); }
.btn.ghost:active { background: var(--brand-soft); }
.btn-row { display: flex; gap: 10px; margin: 12px 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.three .btn { padding: 0 6px; font-size: 12.5px; letter-spacing: .4px; white-space: nowrap; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 30;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .08);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: rgba(255, 255, 255, .62);
  font: 700 10px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
  transition: color .15s;
}
.tabbar a.on { color: var(--lime); }
.tab-ic { position: relative; display: grid; }
.badge {
  position: absolute; top: -5px; right: -10px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--lime); color: var(--navy);
  font: 700 11px/18px var(--font-body);
  text-align: center;
}
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } }

/* ---------- Home ---------- */
.hero {
  position: relative;
  height: 470px;
  overflow: hidden;
  background: var(--navy);
}
.hero .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s ease-out;
}
.hero .slide.on { opacity: 1; transform: scale(1); }
/* Swipeable: vertical drags still scroll; the photos never start a drag. */
.hero { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero .slide { pointer-events: none; }
.hero.swiped .slide { transition: opacity .45s ease, transform 6s ease-out; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 58, .55) 0%, rgba(10, 26, 58, 0) 28%, rgba(10, 26, 58, 0) 45%, rgba(10, 26, 58, .82) 100%);
}
.hero-menu { position: absolute; top: calc(var(--safe-top) + 2px); left: 10px; }
.hero-bell { position: absolute; top: calc(var(--safe-top) + 2px); right: 10px; }
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 40px;
  text-align: center; color: #fff;
  display: flex; flex-direction: column; align-items: center;
}
.hero-logo { width: 230px; margin-bottom: 8px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
.hero-copy .script { color: var(--lime); font-size: 26px; }
.hero-copy h2 { margin: 2px 0 0; font: 600 27px/1 var(--font-display); text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.hero-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: width .3s, background .3s; }
.hero-dots span.on { width: 18px; background: #fff; }

.panel {
  position: relative;
  margin-top: -14px;
  padding: 18px 16px 6px;
  border-radius: 18px 18px 0 0;
  background: var(--paper-grain), var(--bg);
}
.panel-note { text-align: center; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.panel-note strong { color: var(--brand-ink); }
.hello { font: 26px/1.1 var(--font-script); color: var(--brand-ink); text-align: center; margin: 0 0 10px; }

.points-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.points-card::after {
  content: ""; position: absolute; right: -24px; top: -24px;
  width: 110px; height: 110px;
  background: url("../assets/brand/lime-slice-160.png") center / contain no-repeat;
  opacity: .22;
}
.pc-label { font: 600 10.5px/1 var(--font-display); text-transform: uppercase; letter-spacing: 1px; color: var(--lime); }
.pc-points { font-size: 15px; }
.pc-points strong { font: 600 27px/1 var(--font-display); margin-right: 4px; }
.pc-next { font-size: 12.5px; opacity: .85; }
.bar { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; background: var(--lime); transition: width .6s; }
.reward-detail .bar { background: var(--line); margin-top: 10px; }

.section { padding: 18px 0 4px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px 10px; }
.section-head h3, .mini-head {
  margin: 0;
  font: 600 16px/1.1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink);
}
.mini-head { font-size: 17px; margin: 20px 0 10px; }
.section-head a { color: var(--brand-ink); font-weight: 700; font-size: 14px; }
.hscroll {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding: 0 16px 6px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;   /* snap to the padding, not the screen edge */
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }
.fav-card { width: 148px; display: flex; flex-direction: column; gap: 4px; }
.fav-card > img, .fav-card .no-photo { width: 148px; height: 170px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.fav-card strong { font: 600 12px/1.15 var(--font-display); text-transform: uppercase; color: var(--brand-ink); margin-top: 4px; }
.fav-card span { font-size: 13.5px; color: var(--muted); font-weight: 500; }

.again {
  display: flex; align-items: center; gap: 12px;
  margin: 0 16px;
  padding: 10px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.again div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.again strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.again small { color: var(--muted); font-size: 12.5px; }

.promos { display: grid; gap: 12px; padding: 18px 16px 4px; }
.promo {
  display: flex; align-items: center; gap: 14px;
  min-height: 112px;
  padding: 16px;
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.promo span { display: grid; gap: 3px; position: relative; }
.promo small { font: 600 9.5px/1 var(--font-display); text-transform: uppercase; letter-spacing: 1px; color: var(--lime); }
.promo small.script { font: 22px/1 var(--font-script); text-transform: none; letter-spacing: 0; }
.promo strong { font: 600 21px/1 var(--font-display); text-transform: uppercase; letter-spacing: .5px; }
.promo em { font-style: normal; font-size: 13.5px; opacity: .9; }
.promo.dining { background: var(--navy); }
.promo.dining img { width: 84px; height: 112px; object-fit: cover; border-radius: 10px; margin: -6px 0; }
.promo.wide { min-height: 150px; align-items: flex-end; background-size: cover; background-position: center; }
.promo.wide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 58, .1), rgba(10, 26, 58, .85)); }
.promo.gift { background: var(--brand); color: var(--on-brand); }
.promo.gift small { color: var(--on-brand); }
.promo.gift img { width: 84px; }

.loc-card { margin: 0 16px; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.loc-card > img { width: 100%; height: 120px; object-fit: cover; }
.loc-card-body { padding: 12px 14px 4px; display: grid; gap: 3px; }
.loc-card-body strong { font: 600 17.5px/1.1 var(--font-display); text-transform: uppercase; color: var(--brand-ink); }
.loc-card-body small { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 5px; }
.sign-off { text-align: center; font-size: 30px; margin: 28px 0 8px; }

/* ---------- Drawer ---------- */
.drawer-wrap, .sheet-wrap { position: absolute; inset: 0; z-index: 50; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(10, 26, 58, .45); opacity: 0; transition: opacity .25s; }
.open > .sheet-scrim { opacity: 1; }
.drawer {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 82%;
  background: var(--paper-grain), var(--bg);
  padding: calc(var(--safe-top) + 12px) 0 calc(var(--safe-bottom) + 12px);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 8px 0 30px rgba(0, 0, 0, .2);
}
.drawer-wrap.open .drawer { transform: none; }
.drawer-head { padding: 0 20px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer-head img { width: 190px; }
.drawer-head p { margin: 10px 0 0; font: 600 16px/1.2 var(--font-display); text-transform: uppercase; color: var(--ink); }
.drawer-head small { display: block; font: 500 13px var(--font-body); text-transform: none; color: var(--muted); }
.drawer a, .drawer button {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 22px;
  font: 600 13.5px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink);
  width: 100%;
  text-align: left;
}
.drawer a svg, .drawer button svg { color: var(--brand-ink); }
.drawer-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 6px; }
.drawer-pattern { display: block; width: 62%; max-width: 190px; margin: 16px auto 4px; opacity: .95; }

/* ---------- Sheets ---------- */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 86%;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--paper-grain), var(--bg);
  border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(var(--safe-bottom) + 18px);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
}
.sheet.tall { height: 86%; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet-title { margin: 4px 0 14px; text-align: center; font: 600 17.5px/1.15 var(--font-display); text-transform: uppercase; color: var(--brand-ink); letter-spacing: .5px; }

/* ---------- Toast ---------- */
.toast {
  position: absolute;
  left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  transform: translate(-50%, 20px);
  max-width: 86%;
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
  font-size: 14px; font-weight: 500;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 60;
  pointer-events: none;
  white-space: nowrap;
}
.toast span { overflow: hidden; text-overflow: ellipsis; }
.toast.ok { color: #fff !important; }
.toast.ok svg { color: var(--lime); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Order Now ---------- */
.mode-switch {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mode-switch button {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px;
  border-radius: 9px;
  font: 600 12px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.mode-switch button.on { background: var(--brand); color: var(--on-brand); }
.loc-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
}
.loc-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.loc-text { flex: 1; display: grid; gap: 1px; min-width: 0; }
.loc-text small { font-size: 12px; color: var(--muted); }
.loc-text strong { font: 600 14.5px/1.2 var(--font-display); text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-text span { font-size: 12.5px; }
.loc-row .link { font-size: 14px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 16px 8px; }
.tile {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:active img { transform: scale(1.04); }
.tile-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  min-height: 46px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 8px;
  text-align: center;
  color: #fff;
  font: 600 12px/1.1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .6px;
  background: rgba(10, 26, 58, .55);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
}

/* Art tiles: sections without a photo get a flat brand tone and an illustration. */
.t-navy { --tone-bg: var(--navy); --tone-ink: #fff; --tone-sub: var(--lime); }
.t-coral { --tone-bg: var(--brand); --tone-ink: var(--navy); --tone-sub: var(--navy); }
.t-blush { --tone-bg: var(--blush); --tone-ink: var(--navy); --tone-sub: var(--brand-ink); }
.t-lime { --tone-bg: var(--lime); --tone-ink: var(--navy); --tone-sub: var(--navy); }
.tile.art, .cat-banner.art, .no-photo.art { background: var(--tone-bg); color: var(--tone-ink); }
.tile.art { display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; }
.tile.art .tile-art { position: absolute; top: 12px; right: 10px; width: auto; height: auto; max-width: 58%; max-height: 46%; object-fit: contain; transition: transform .3s; }
.tile.art:active .tile-art { transform: rotate(-6deg) scale(1.04); }
.tile-name { position: relative; font: 600 12.5px/1.12 var(--font-display); text-transform: uppercase; letter-spacing: .4px; overflow-wrap: anywhere; }
.tile-sub { position: relative; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--tone-sub); }
.t-coral .tile-sub, .t-lime .tile-sub { opacity: .8; }
.tile.type { justify-content: center; text-align: left; }
.tile.type .tile-name { font-size: 17px; line-height: 1.05; }
.tile.type::before { content: ""; position: absolute; left: 12px; top: 14px; width: 26px; height: 4px; border-radius: 2px; background: var(--tone-sub); }

.bagbar {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  display: flex; align-items: center; gap: 12px;
  height: 52px;
  padding: 0 16px 0 8px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font: 600 13.5px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  animation: rise .3s cubic-bezier(.2, .8, .2, 1);
  z-index: 5;
}
.bagbar span:nth-child(2) { flex: 1; }
.bagbar-count { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--lime); color: var(--navy); font-family: var(--font-body); font-weight: 700; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.page:has(.bagbar) .scroll { padding-bottom: 80px; }

.cat-banner { position: relative; height: 150px; overflow: hidden; }
.cat-banner img { width: 100%; height: 100%; object-fit: cover; }
.cat-banner span {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 16px 12px;
  color: #fff;
  font: 600 22.5px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .6px;
  background: linear-gradient(180deg, transparent, rgba(10, 26, 58, .8));
}
.cat-banner.art { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 130px; padding: 0 20px; }
.cat-banner.art span { position: static; padding: 0; background: none; color: inherit; font-size: 19px; line-height: 1.08; }
.cat-banner.art small { display: block; margin-top: 6px; font: 600 14px/1.2 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--tone-sub); }
.cat-banner.art img { width: auto; height: auto; max-width: 38%; max-height: 96px; object-fit: contain; }
.cat-note { margin: 12px 16px 0; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 13px; line-height: 1.45; color: var(--muted); border-left: 3px solid var(--lime); }

.item-list { padding: 6px 16px; }
.item-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.thumb { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.thumb.sm { width: 56px; height: 56px; }
.item-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.item-info strong { font: 600 13.5px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .3px; color: var(--ink); }
.item-info .desc { font-size: 13px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.star { color: var(--brand-ink); }
.add-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--brand); color: var(--on-brand); }
.no-photo { display: grid; place-items: center; background: var(--paper); }
.no-photo img { width: 42%; max-width: 120px; }
.no-photo.art img { width: auto; max-width: 52%; max-height: 58%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .25)); }

.search-field {
  display: flex; align-items: center; gap: 8px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}
.search-field input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); min-width: 0; }
.search-results { margin-top: 6px; }
.search-results .thumb { width: 60px; height: 60px; }

/* ---------- Item detail ---------- */
.item-hero { position: relative; height: 330px; background: var(--navy); }
.item-hero > img, .item-hero > .no-photo { width: 100%; height: 100%; object-fit: cover; }
.item-hero.short { height: 250px; }
.item-hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 110px; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent); pointer-events: none; }
.item-hero .icon-btn { z-index: 2; }
.hero-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; text-align: center; color: #fff; background: linear-gradient(180deg, transparent, rgba(10, 26, 58, .85)); z-index: 1; }
.hero-title .script { color: var(--lime); }
.hero-title h1 { margin: 2px 0 0; font: 600 25.5px/1 var(--font-display); text-transform: uppercase; letter-spacing: 1px; }
.item-body { padding: 18px 16px 8px; margin-top: -16px; position: relative; border-radius: 18px 18px 0 0; background: var(--paper-grain), var(--bg); }
.item-name { margin: 0; font: 600 24px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .5px; color: var(--brand-ink); }
.item-price { font-size: 18px; font-weight: 700; margin: 6px 0 0; }
.item-desc { font-size: 15px; line-height: 1.55; color: #2E3550; margin: 10px 0 4px; }
.opt { border: 0; margin: 18px 0 0; padding: 0; }
.opt legend { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 0 8px; font: 600 13.5px/1 var(--font-display); text-transform: uppercase; letter-spacing: .4px; }
.opt legend span { font: 600 11.5px/1 var(--font-body); text-transform: none; letter-spacing: 0; padding: 5px 8px; border-radius: 10px; background: var(--paper); color: var(--muted); }
.opt legend span.req { background: var(--brand-soft); color: var(--brand-ink); }
.choice {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.mark { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C9B8B0; flex-shrink: 0; transition: box-shadow .15s, background .15s; }
.choice input[type=checkbox] + .mark { border-radius: 6px; }
.choice input:checked + .mark { background: var(--brand-ink); box-shadow: inset 0 0 0 2px var(--brand-ink), inset 0 0 0 5px #fff; }
.choice input[type=checkbox]:checked + .mark { box-shadow: none; background: var(--brand-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.choice input:focus-visible + .mark { outline: 2px solid var(--lime); outline-offset: 2px; }
.choice-label { flex: 1; font-size: 15px; }
.choice-price { font-size: 14px; color: var(--muted); }
.notice { display: flex; gap: 10px; padding: 12px; margin-top: 16px; border-radius: 10px; background: var(--paper); font-size: 14px; line-height: 1.45; color: var(--muted); }
.notice svg { color: var(--brand-ink); margin-top: 1px; }

.item-cta, .cta-bar {
  flex-shrink: 0;
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px;
  background: var(--paper-grain), var(--bg);
  border-top: 1px solid var(--line);
}
.stepper {
  display: flex; align-items: center;
  height: 44px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  background: var(--card);
  flex-shrink: 0;
}
.stepper button { width: 40px; height: 44px; display: grid; place-items: center; color: var(--brand-ink); }
.stepper button[disabled] { opacity: .3; }
.stepper span { min-width: 20px; text-align: center; font-weight: 700; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink); }
.field em { font-weight: 400; font-style: normal; color: var(--muted); }
.field input, .field textarea, .select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--field);
  font-size: 16px;
  outline: 0;
  resize: none;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .select:focus { border-color: var(--brand-ink); }
/* Date inputs are as wide as their native picker unless told otherwise
   (Safari), which pushes the next field in a .two row off its column. */
.field input { min-width: 0; height: 50px; }
.field input[type=date] { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
.field input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.select { appearance: none; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8423B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand-ink); }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.toggle input { position: absolute; opacity: 0; }
.toggle i { width: 48px; height: 28px; border-radius: 14px; background: #E3D2CA; position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.toggle input:checked + i { background: var(--success); }
.toggle input:checked + i::after { transform: translateX(20px); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips.wrap { flex-wrap: wrap; }
.chip {
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 2px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.chip.on { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.chip.input input { width: 58px; border: 0; outline: 0; background: none; font-size: 14px; font-weight: 600; color: inherit; }
.chip.input input::placeholder { color: inherit; opacity: .6; }

/* ---------- Bag / checkout ---------- */
.bag-mode, .row-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.bag-mode svg, .row-line svg { color: var(--brand-ink); }
.bag-mode strong { color: var(--ink); }
.bag-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bag-info strong { font: 600 13px/1.15 var(--font-display); text-transform: uppercase; }
.bag-info small { font-size: 12.5px; color: var(--muted); }
.bag-info .note { font-style: italic; }
.upsell { padding: 0 0 6px; margin: 0 -16px; padding-left: 16px; }
.up-card { width: 120px; display: grid; gap: 4px; text-align: left; }
.up-card > img, .up-card .no-photo { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.up-card strong { font: 600 11px/1.1 var(--font-display); text-transform: uppercase; }
.up-card span { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--brand-ink); }

.summary { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.summary div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary .discount dd, .summary .discount dt { color: var(--success); }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 17px; }
.summary .total dt { color: var(--ink); font-weight: 700; }
.summary .total dd { font-weight: 700; }

.card-block { padding: 14px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); display: grid; gap: 10px; }
.card-block h3 { margin: 0; font: 600 13.5px/1 var(--font-display); text-transform: uppercase; letter-spacing: .4px; }
.checkout .summary { margin: 0; }
.pay-list { display: grid; gap: 8px; }
.pay { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; font-weight: 500; text-align: left; }
.pay span:nth-child(2) { flex: 1; }
.radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C9B8B0; flex-shrink: 0; }
.pay.on { box-shadow: inset 0 0 0 2px var(--brand-ink); }
.pay.on .radio, .loc-option.on .radio { box-shadow: inset 0 0 0 6px var(--brand-ink); }
.earn-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.earn-banner span { flex: 1; display: grid; gap: 2px; }
.earn-banner svg:first-child { color: var(--lime); }
.earn-banner small { opacity: .8; }

.loc-list { display: grid; gap: 8px; }
.loc-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; }
.loc-option .radio { margin-top: 2px; }
.loc-option span:last-child { display: grid; gap: 2px; }
.loc-option strong { font: 600 13.5px/1.1 var(--font-display); text-transform: uppercase; }
.loc-option small { font-size: 12.5px; color: var(--muted); }
.loc-option.on { box-shadow: inset 0 0 0 2px var(--brand-ink); }
.loc-option.soon { opacity: .55; }

/* ---------- Status ---------- */
.status { display: grid; gap: 14px; }
.status-hero { text-align: center; padding: 8px 0 4px; }
.status-hero h2 { margin: 2px 0 4px; font: 600 24px/1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.status-hero .muted { margin: 0; }
.burst { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; animation: pop .5s; box-shadow: 0 0 0 10px rgba(46, 125, 79, .14); }
.steps { list-style: none; margin: 0; padding: 14px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); display: grid; gap: 0; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--muted); font-weight: 500; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 32px; width: 2px; height: 16px; background: var(--line); }
.steps .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line); color: #fff; flex-shrink: 0; }
.steps li.done { color: var(--ink); }
.steps li.done .dot { background: var(--success); box-shadow: none; }
.steps li.done::after { background: var(--success); }
.steps li.now { color: var(--brand-ink); font-weight: 700; }
.steps li.now .dot { box-shadow: inset 0 0 0 7px var(--brand-ink); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 7px var(--brand-ink), 0 0 0 6px rgba(242, 111, 103, .28); } }
.earned { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); background: var(--lime); color: var(--navy); font-size: 14.5px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 14.5px; }
.order-line small { display: block; color: var(--muted); font-size: 12.5px; }
.order-line.total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }

/* ---------- Menu (read-only) ---------- */
.cat-strip {
  display: flex; gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--paper-grain), var(--bg);
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip button {
  flex-shrink: 0;
  padding: 12px 10px 10px;
  font: 600 11px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.cat-strip button.on { color: var(--brand-ink); border-color: var(--brand-ink); }
.menu-sec { padding: 8px 16px 10px; }
.menu-sec-head { text-align: center; padding: 26px 0 14px; }
.menu-sec-head h2 { margin: 0; font: 600 30.5px/1 var(--font-display); text-transform: uppercase; letter-spacing: 1px; color: var(--ink); }
.menu-sec-head h2::after { content: ""; display: block; width: 46px; height: 3px; background: var(--brand); margin: 12px auto 0; border-radius: 2px; }
.menu-sec-head p:not(.script) { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 10px 8px 0; }
.menu-card { display: block; text-align: center; margin: 0 0 26px; }
.menu-card img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.menu-card h4 { margin: 12px 0 2px; font: 600 17.5px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .5px; color: var(--brand-ink); }
.menu-card p { margin: 6px 6px 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.menu-line { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ml-name { font: 600 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .3px; color: var(--brand-ink); }
.ml-dots { border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.menu-line p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.menu-line.short { padding: 8px 0; }

/* ---------- Rewards ---------- */
.earned-head { text-align: center; padding: 18px 0 4px; }
.earned-head span { font: 600 12px/1 var(--font-display); text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.earned-head strong { display: block; font: 600 51px/1 var(--font-display); color: var(--brand-ink); margin-top: 4px; }
.join-card { text-align: center; padding: 22px 22px 6px; }
.join-card img { width: 80px; margin: 0 auto 6px; }
.join-card .script { font-size: 28px; }
.join-card h2 { margin: 2px 0 8px; font: 600 24px/1 var(--font-display); text-transform: uppercase; }
.join-card p { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.search-band { background: var(--brand); padding: 14px 16px; margin: 6px 0 16px; }
.search-field.light { box-shadow: none; height: 42px; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 16px; }
.cert {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.cert[hidden] { display: none; }
.cert-art {
  aspect-ratio: 1.25;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.cert-art .cover { width: 100%; height: 100%; object-fit: cover; }
.cert-art.cash {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 50% 40%, #FFF3EE, #F8D3C8);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7.5px rgba(200, 66, 59, .5);
  color: var(--brand-ink);
  text-align: center;
  padding: 10px;
}
.cert-art.cash img { width: 42px; opacity: .85; }
.cert-art.cash strong { font: 600 29px/1 var(--font-display); }
.cert-art.cash span { font: 600 10.5px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .6px; }
.cert-name { padding: 10px 10px 8px; font: 600 12px/1.15 var(--font-display); text-transform: uppercase; text-align: center; color: var(--brand-ink); flex: 1; }
.cert-foot { padding: 9px 6px; text-align: center; background: var(--paper); color: var(--muted); font: 600 9.5px/1 var(--font-display); text-transform: uppercase; letter-spacing: .6px; }
.cert.can .cert-foot { background: var(--brand); color: #fff; font-size: 13px; }
.cert.big { max-width: 240px; margin: 4px auto 16px; }
.reward-detail { text-align: center; }
.reward-detail h2 { margin: 0; font: 600 22.5px/1.05 var(--font-display); text-transform: uppercase; color: var(--brand-ink); }
.reward-detail .pts { font-weight: 700; margin: 4px 0 8px; }
.reward-detail .muted { font-size: 14px; line-height: 1.5; margin: 0 0 18px; }

.wallet-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--lime-deep); text-align: left; }
.wallet-row svg:first-child { color: var(--brand-ink); }
.wallet-row span { flex: 1; display: grid; gap: 2px; }
.wallet-row small { font-size: 12.5px; color: var(--muted); }
.wallet-row.static { box-shadow: inset 0 0 0 1.5px var(--line); }
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.tile-card { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-align: center; }
.tile-card svg { color: var(--brand-ink); }
.tile-card strong { font: 600 13px/1.1 var(--font-display); text-transform: uppercase; }
.tile-card small { font-size: 12.5px; color: var(--muted); }
.how { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: #2E3550; }
.how strong { color: var(--brand-ink); }

.code-sheet { text-align: center; }
.barcode { width: 100%; height: 72px; fill: var(--navy); margin: 4px 0; }
.code { font: 600 17.5px/1 var(--font-display); letter-spacing: 3px; margin: 6px 0 8px; }
.code-sheet .muted { font-size: 14px; line-height: 1.5; }

.refer { text-align: center; }
.refer-art { width: 170px; height: 170px; margin: 6px auto 12px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--navy-2), var(--navy)); box-shadow: 0 0 0 10px rgba(209, 224, 47, .35); }
.refer-art img { width: 110px; }
.refer h2 { margin: 2px 0 8px; font: 600 24px/1.05 var(--font-display); text-transform: uppercase; color: var(--brand-ink); }
.refer .muted { font-size: 14.5px; line-height: 1.5; margin: 0 10px; }
.code-pill { display: inline-block; margin: 16px 0 4px; padding: 10px 18px; border-radius: 22px; border: 2px dashed var(--brand-ink); font: 600 14.5px/1 var(--font-display); letter-spacing: 2px; color: var(--brand-ink); }
.round-btns { display: flex; justify-content: center; gap: 22px; margin-top: 20px; }
.round { display: grid; justify-items: center; gap: 8px; font: 600 10.5px/1 var(--font-display); text-transform: uppercase; letter-spacing: .5px; }
.round svg { width: 64px; height: 64px; padding: 19px; border-radius: 50%; background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow); }

/* ---------- Account ---------- */
.profile-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-lg); background: var(--navy); color: #fff; margin-bottom: 12px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--navy); font: 600 17.5px/1 var(--font-display); flex-shrink: 0; }
.profile-card > span:nth-child(2) { flex: 1; display: grid; gap: 3px; min-width: 0; }
.profile-card strong { font: 600 16px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .4px; }
.profile-card small { font-size: 12.5px; opacity: .8; }
.pc-pts { text-align: center; display: grid; }
.pc-pts strong { font-size: 28px; color: var(--lime); }
.list { border-top: 1px solid var(--line); margin-top: 6px; }
.list.boxed { border: 0; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); margin: 0 0 14px; overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 500; text-align: left; }
.list.boxed .list-row:last-child { border-bottom: 0; }
.list-row > svg:first-child { color: var(--brand-ink); }
.list-row > span { flex: 1; }
.list-row em { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: var(--paper); color: var(--muted); }
.list-row em.hot { background: var(--lime); color: var(--navy); }
.list-row small { color: var(--muted); font-size: 13px; }
.chev { color: #C3B3AC; }
.member-card { border-radius: 18px; padding: 18px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; margin-bottom: 14px; box-shadow: var(--shadow); }
.mc-top { display: flex; align-items: center; justify-content: space-between; }
.mc-top img { width: 96px; }
.mc-top span { font: 600 11px/1 var(--font-display); text-transform: uppercase; letter-spacing: 1px; color: var(--lime); }
.mc-name { margin: 16px 0 0; font: 600 17.5px/1 var(--font-display); text-transform: uppercase; }
.mc-pts { margin: 4px 0 12px; opacity: .85; font-size: 14px; }
.mc-code { background: #fff; border-radius: 10px; padding: 10px 12px 8px; text-align: center; color: var(--navy); }
.mc-code .barcode { height: 60px; margin: 0; }
.mc-code span { font-size: 13px; letter-spacing: 2px; font-weight: 600; }
.order-card { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 10px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.oc-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.oc-main > span { display: grid; gap: 2px; min-width: 0; }
.oc-main strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-main small { font-size: 12px; color: var(--muted); }
.msg { border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.msg summary { display: flex; gap: 12px; align-items: center; padding: 14px; list-style: none; cursor: pointer; }
.msg summary::-webkit-details-marker { display: none; }
.msg summary img { width: 36px; height: 36px; }
.msg summary span { display: grid; gap: 2px; flex: 1; }
.msg summary small { font-size: 12px; color: var(--muted); }
.msg.unread summary strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: middle; }
.msg p { margin: 0; padding: 0 16px 16px 62px; font-size: 14px; line-height: 1.55; color: #2E3550; }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; gap: 6px; }
.empty.compact { padding: 24px 24px 18px; }
.empty-art { width: 84px; opacity: .9; margin-bottom: 6px; }
.empty > svg { color: var(--brand-ink); }
.empty h2 { margin: 0; font: 600 21px/1.1 var(--font-display); text-transform: uppercase; color: var(--brand-ink); }
.empty p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- Auth ---------- */
.auth .topbar { position: absolute; left: 0; right: 0; }
.auth-head { text-align: center; padding: calc(var(--safe-top) + 30px) 20px 0; }
.auth-head img { width: 200px; margin: 0 auto; }
.auth-head h2 { margin: 14px 0 0; font: 600 22.5px/1.05 var(--font-display); text-transform: uppercase; color: var(--ink); }
.join-perk { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--lime); font-size: 14px; line-height: 1.35; }
.join-perk svg { color: var(--navy); }

/* ---------- Locations ---------- */
.map { height: 260px; flex-shrink: 0; background: #EEE4DF; position: relative; z-index: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #B9A9A2; }
.map-pin { background: none; border: 0; }
.map-pin img { width: 34px; height: 34px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.leaflet-container { font-family: var(--font-body); }
.loc-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.loc-item > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.loc-item strong { font: 600 14.5px/1.1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.loc-item small { font-size: 12.5px; color: var(--muted); }
.loc-item.soon { opacity: .55; }
.pin-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex-shrink: 0; }
.loc-detail { padding-top: 18px; margin-top: -16px; position: relative; border-radius: 18px 18px 0 0; background: var(--paper-grain), var(--bg); }
.loc-detail .item-name { margin-bottom: 10px; }
.loc-detail .three { margin: 16px 0 4px; }
.hours, .price-list { margin: 0; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 4px 14px; }
.hours div, .price-list div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.hours div:last-child, .price-list div:last-child { border: 0; }
.hours dd, .price-list dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.price-list dt small { display: block; color: var(--muted); font-size: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.ticks svg { color: #fff; background: var(--success); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }

/* ---------- Gift cards ---------- */
.gift-art {
  position: relative;
  aspect-ratio: 1.586;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #fff;
}
.gifts .gift-art { width: 280px; }
.gift-art .ga-icon { position: absolute; right: -18px; bottom: -22px; width: 150px; opacity: .9; }
.gift-art.ga-salud .ga-icon { width: 96px; right: 10px; bottom: -18px; transform: rotate(8deg); }
.gift-art.ga-limon .ga-icon { width: 140px; right: -8px; bottom: -14px; }
.gift-art .ga-logo { position: absolute; left: 16px; top: 16px; width: 110px; }
.gift-art strong { position: absolute; left: 18px; bottom: 14px; font: 600 32px/1 var(--font-display); }
[data-preview] .gift-art { max-width: 320px; margin: 0 auto; }

/* ---------- Story / private dining ---------- */
.story blockquote { margin: 6px 0 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--navy); color: #fff; font: 22px/1.3 var(--font-script); }
.story cite { display: block; margin-top: 10px; font: 600 10.5px/1 var(--font-display); text-transform: uppercase; letter-spacing: 1px; color: var(--lime); font-style: normal; }
.story p { font-size: 15.5px; line-height: 1.65; color: #2E3550; }
.story-heart { width: 90px; margin: 18px auto 0; }
.lead { margin: 0 0 16px; font-size: 15.5px; line-height: 1.6; color: #2E3550; }
.space-card { margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.space-card > img, .space-art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.space-art { display: grid; place-items: center; background: var(--navy); }
.space-art img { width: 46%; }
.space-body { padding: 14px 16px 16px; }
.space-body h3 { margin: 0 0 6px; font: 600 15px/1.15 var(--font-display); text-transform: uppercase; color: var(--navy); }
.space-body p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Catering: the Margarita Bar ---------- */
.marg-bar { margin: 22px -4px 6px; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.marg-bar > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.marg-body { padding: 16px 16px 18px; }
.marg-body .script { color: var(--lime); margin: 0; }
.marg-body h2 { margin: 2px 0 8px; font: 600 20px/1.1 var(--font-display); text-transform: uppercase; }
.marg-body > p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: rgba(255, 248, 244, .82); }
.price-list.light { background: rgba(255, 255, 255, .06); box-shadow: none; }
.price-list.light div { border-color: rgba(255, 255, 255, .12); }
.price-list.light dt small { color: rgba(255, 248, 244, .66); }
.price-list.light dd { color: var(--lime); }
.marg-rental { margin: 12px 0 0; font-size: 13px; color: rgba(255, 248, 244, .75); }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 10px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.contact-row > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.contact-row strong { font: 600 13px/1.2 var(--font-display); text-transform: uppercase; }
.contact-row small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.icon-btn.soft { position: static; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
