:root {
  --ink: #121512;
  --forest: #173e31;
  --forest-2: #245844;
  --paper: #f7f2e8;
  --paper-2: #eee4d2;
  --white: #fffdf8;
  --yellow: #f5b91b;
  --yellow-2: #ffcd38;
  --orange: #ed6337;
  --blue: #2876cf;
  --green: #2d7d58;
  --muted: #6e716a;
  --line: rgba(18, 21, 18, .12);
  --shadow: 0 22px 70px rgba(14, 24, 18, .18);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -10%, rgba(245,185,27,.22), transparent 32%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.app-shell {
  width: min(100%, 540px);
  min-height: 100svh;
  margin: 0 auto;
  position: relative;
  overflow-x: clip;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(18,21,18,.06), 0 0 90px rgba(18,21,18,.12);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: calc(68px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) 16px 10px;
  color: var(--white);
  background: rgba(17, 23, 20, .94);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.brand-copy span { display: block; margin-top: 2px; color: rgba(255,255,255,.58); font-size: 12px; }
.waiter-btn {
  min-width: 98px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--yellow-2);
  border-radius: 15px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.waiter-btn svg { width: 19px; height: 19px; stroke: currentColor; }
.waiter-btn:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.waiter-btn:focus-visible { outline: 3px solid white; outline-offset: 2px; }

.view { display: none; min-height: calc(100svh - 68px); }
.view.is-active { display: block; animation: view-in .34s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }

.welcome-view {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: none;
  align-items: flex-end;
  padding: calc(26px + var(--safe-top)) 20px calc(26px + var(--safe-bottom));
  color: var(--white);
  background:
    radial-gradient(circle at 76% 18%, var(--yellow) 0 15%, transparent 15.3%),
    radial-gradient(circle at 8% 38%, rgba(40,118,207,.9) 0 20%, transparent 20.3%),
    radial-gradient(circle at 92% 58%, rgba(237,99,55,.82) 0 25%, transparent 25.3%),
    repeating-radial-gradient(circle at 50% 36%, rgba(255,255,255,.04) 0 2px, transparent 2px 16px),
    #173e31;
}
.welcome-view.is-active { display: flex; }
.welcome-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slow-zoom 12s ease-in-out infinite alternate;
}
@keyframes slow-zoom { to { transform: scale(1.06); } }
.welcome-view::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9,14,11,.05) 15%, rgba(9,14,11,.26) 45%, rgba(9,14,11,.94) 100%);
}
.welcome-content { width: 100%; }
.table-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(8,15,11,.28);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 850;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #69d794; box-shadow: 0 0 0 5px rgba(105,215,148,.14); }
.welcome-logo {
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: rgba(255,253,248,.9);
  box-shadow: var(--shadow);
}
.welcome-mark {
  width: 76px;
  height: 76px;
  flex: none;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(20,48,37,.15);
}
.welcome-wordmark { min-width: 0; color: var(--ink); text-align: left; }
.welcome-wordmark strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 8vw, 36px);
  line-height: .95;
  letter-spacing: -.045em;
}
.welcome-wordmark span {
  display: block;
  margin-top: 7px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.welcome-title {
  margin: 0;
  font-size: clamp(39px, 10vw, 58px);
  line-height: .95;
  letter-spacing: -.06em;
}
.welcome-copy { max-width: 430px; margin: 15px 0 22px; color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.5; }
.primary-btn, .secondary-btn {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 17px;
  font-weight: 900;
  cursor: pointer;
}
.primary-btn { border: 0; background: var(--yellow); color: var(--ink); box-shadow: 0 14px 36px rgba(245,185,27,.24); }
.primary-btn:active, .secondary-btn:active, .add-btn:active { transform: scale(.98); }
.secondary-btn { margin-top: 10px; border: 1px solid rgba(255,255,255,.24); color: var(--white); background: rgba(255,255,255,.08); }
.welcome-trust { margin: 16px 0 0; text-align: center; color: rgba(255,255,255,.48); font-size: 12px; }

.menu-view { padding-bottom: calc(110px + var(--safe-bottom)); }
.hero-carousel {
  position: relative;
  overflow: hidden;
  margin: 14px 14px 0;
  border-radius: 26px;
  color: white;
  box-shadow: 0 18px 42px rgba(16,28,20,.15);
}
.hero-track { display: flex; transition: transform .55s cubic-bezier(.22,.8,.2,1); }
.hero-slide { min-width: 100%; min-height: 270px; position: relative; display: flex; align-items: flex-end; isolation: isolate; padding: 20px; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--image) center/cover no-repeat;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.03) 18%, rgba(0,0,0,.28) 48%, rgba(0,0,0,.9) 100%);
}
.hero-brand {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  width: 158px;
  height: 78px;
  display: grid;
  place-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 17px;
  background: rgba(255,249,236,.88);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  backdrop-filter: blur(8px);
}
.hero-brand img { display: block; width: 100%; max-height: 62px; object-fit: contain; }
.hero-copy { position: relative; z-index: 2; max-width: 300px; }
.hero-label { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 10px; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.hero-slide h2 { margin: 9px 0 5px; font-size: 28px; line-height: .95; letter-spacing: -.045em; }
.hero-slide p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.45; }
.hero-cta {
  min-height: 34px;
  margin-top: 11px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 11px;
  color: white;
  background: rgba(255,255,255,.15);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.hero-dots { position: absolute; z-index: 3; right: 16px; top: 19px; display: flex; gap: 5px; }
.hero-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.36); }
.hero-dot.is-on { width: 20px; border-radius: 99px; background: white; }

.menu-tools { padding: 18px 14px 0; }
.section-kicker { margin: 0 0 5px; color: var(--green); font-size: 11px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.menu-title-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.menu-title-row h1 { margin: 0; font-size: 32px; letter-spacing: -.055em; }
.mode-pill { padding: 7px 9px; border-radius: 10px; background: rgba(23,62,49,.1); color: var(--forest); font-size: 11px; font-weight: 850; white-space: nowrap; }
.search-wrap { position: relative; margin-top: 14px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); stroke: var(--muted); }
.search-input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 43px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.search-input:focus { border-color: rgba(31,84,63,.56); box-shadow: 0 0 0 4px rgba(31,84,63,.08); }

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 14px 6px;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-btn {
  min-height: 40px;
  flex: none;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}
.category-btn.is-on { border-color: var(--forest); color: white; background: var(--forest); }

.sales-nudge {
  margin: 10px 14px 6px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  color: white;
  background: var(--forest);
}
.sales-nudge::after { content: ""; position: absolute; width: 100px; height: 100px; right: -30px; top: -38px; border-radius: 50%; background: rgba(245,185,27,.28); }
.sales-nudge strong { position: relative; z-index: 1; display: block; font-size: 14px; }
.sales-nudge span { position: relative; z-index: 1; display: block; margin-top: 3px; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.35; }
.sales-nudge button { position: relative; z-index: 2; min-height: 40px; border: 0; border-radius: 12px; padding: 0 13px; background: var(--yellow); font-size: 12px; font-weight: 900; cursor: pointer; }

.product-list { display: grid; gap: 10px; padding: 10px 14px; }
.product-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 108px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,253,248,.88);
  box-shadow: 0 9px 26px rgba(20,30,22,.04);
}
.product-art {
  width: 84px;
  height: 86px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: rgba(255,255,255,.9);
  background: var(--art, linear-gradient(145deg,#385f50,#15382c));
}
.product-art::before { content: ""; width: 27px; height: 43px; border: 3px solid currentColor; border-radius: 6px 6px 12px 12px; transform: skew(-5deg); opacity: .9; }
.product-art::after { content: ""; position: absolute; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; top: -34px; right: -27px; }
.product-art.beer::before { width: 30px; height: 40px; border-radius: 5px 5px 9px 9px; box-shadow: inset 0 12px rgba(255,255,255,.28); }
.product-art.wine::before { width: 26px; height: 31px; border-radius: 4px 4px 50% 50%; transform: none; box-shadow: 0 22px 0 -11px currentColor; }
.product-art.shot::before { width: 31px; height: 25px; border-radius: 3px 3px 9px 9px; transform: none; }
.product-art.bottle::before { width: 20px; height: 45px; border-radius: 5px 5px 8px 8px; transform: none; }
.product-art.pizza { background: linear-gradient(145deg, #a73e26, #e6a73c); }
.product-art.pizza::before {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  transform: none;
  background:
    radial-gradient(circle at 31% 29%, #9d2d24 0 5%, transparent 6%),
    radial-gradient(circle at 68% 37%, #9d2d24 0 5%, transparent 6%),
    radial-gradient(circle at 51% 69%, #9d2d24 0 5%, transparent 6%),
    radial-gradient(circle at 44% 43%, #fff2bc 0 17%, transparent 18%),
    #e9b44a;
  box-shadow: inset 0 0 0 5px #cf7b2a, 0 5px 12px rgba(67, 22, 13, .25);
}
.product-art.has-photo {
  isolation: isolate;
  padding: 5px;
  background:
    radial-gradient(circle at 76% 18%, rgba(255,255,255,.98) 0 14%, transparent 42%),
    linear-gradient(145deg, #fff8e9, #f1d8aa);
  box-shadow: inset 0 0 0 1px rgba(90,57,19,.08);
}
.product-art.has-photo::before { content: none; }
.product-art.has-photo::after {
  z-index: -1;
  width: 60px;
  height: 60px;
  top: -24px;
  right: -24px;
  border-color: rgba(179,111,24,.16);
}
.product-art.has-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}
.product-art.is-scene { padding: 0; }
.product-art.is-scene img { object-fit: cover; }
.product-art.is-pizza { background: #292019; }
.product-art.is-pizza img { object-fit: contain; }
.product-art.is-bottle img {
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 5px 5px rgba(72,44,18,.18));
}
.product-art.is-duo {
  display: flex;
  gap: 0;
  justify-content: center;
  padding: 5px 1px;
}
.product-art.is-duo img {
  width: 52%;
  min-width: 0;
}
.product-art.is-trio {
  display: flex;
  gap: 0;
  justify-content: center;
  padding: 5px 0;
}
.product-art.is-trio img {
  width: 34%;
  min-width: 0;
}
.product-info { min-width: 0; }
.product-info h3 { margin: 0; font-size: 14px; line-height: 1.25; letter-spacing: -.012em; }
.product-info p { margin: 5px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.product-price { display: block; margin-top: 7px; color: var(--forest); font-size: 13px; font-weight: 900; }
.add-btn, .stepper button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--yellow);
  font-weight: 950;
  cursor: pointer;
}
.stepper { display: grid; grid-template-columns: 36px 26px 36px; align-items: center; justify-items: center; }
.stepper button { min-width: 36px; min-height: 38px; border-radius: 12px; background: var(--paper-2); }
.stepper .plus { background: var(--yellow); }
.stepper span { font-size: 13px; font-weight: 900; }
.empty-state { padding: 44px 22px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 7px; }

.cart-fab {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom));
  width: min(calc(100% - 28px), 512px);
  min-height: 68px;
  transform: translate(-50%, 120px);
  opacity: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border: 2px solid #d99f08;
  border-radius: 21px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 22px 60px rgba(128,83,0,.3);
  transition: .35s ease;
  cursor: pointer;
}
.cart-fab.is-visible { transform: translate(-50%, 0); opacity: 1; }
.cart-fab:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.cart-count { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--forest); color: white; font-weight: 950; }
.cart-fab-copy { text-align: left; }
.cart-fab-copy strong, .cart-fab-copy span { display: block; }
.cart-fab-copy strong { font-size: 14px; }
.cart-fab-copy span { margin-top: 3px; color: rgba(24,33,28,.72); font-size: 11px; }
.cart-total { color: var(--ink); font-weight: 950; font-variant-numeric: tabular-nums; }

.sheet-backdrop, .modal-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(9,14,11,.58);
  backdrop-filter: blur(7px);
}
.sheet-backdrop.is-open, .modal-backdrop.is-open { display: flex; animation: fade .22s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: min(100%, 540px);
  max-height: 92svh;
  overflow: auto;
  padding: 12px 16px calc(20px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: sheet-up .34s cubic-bezier(.22,.8,.2,1) both;
}
@keyframes sheet-up { from { transform: translateY(35px); } }
.grabber { width: 42px; height: 5px; margin: 0 auto 17px; border-radius: 99px; background: rgba(18,21,18,.18); }
.sheet-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.sheet-head h2 { margin: 0; font-size: 27px; letter-spacing: -.045em; }
.sheet-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.icon-btn { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; }
.cart-lines { display: grid; gap: 10px; margin-top: 18px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.cart-line strong { display: block; font-size: 13px; }
.cart-line small { display: block; margin-top: 4px; color: var(--muted); }
.cart-summary { margin: 16px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.summary-row + .summary-row { margin-top: 9px; }
.summary-row.total { font-size: 17px; font-weight: 950; }
.cross-sell { padding: 15px; border-radius: 19px; background: #e4eee8; }
.cross-sell-label { margin: 0 0 4px; color: var(--green); font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; }
.cross-sell h3 { margin: 0; font-size: 16px; }
.cross-sell p { margin: 5px 0 12px; color: rgba(18,21,18,.62); font-size: 12px; line-height: 1.4; }
.quick-adds { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.quick-adds button { min-height: 41px; flex: none; padding: 0 12px; border: 0; border-radius: 12px; background: var(--white); font-size: 11px; font-weight: 850; cursor: pointer; }
.sheet-primary { margin-top: 14px; }
.sheet-secondary { width: 100%; min-height: 46px; margin-top: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }

.modal {
  width: min(calc(100% - 28px), 500px);
  margin-bottom: max(14px, var(--safe-bottom));
  overflow: hidden;
  border-radius: 27px;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: sheet-up .34s cubic-bezier(.22,.8,.2,1) both;
}
.modal-art { min-height: 150px; position: relative; display: flex; align-items: flex-end; padding: 18px; color: white; background: var(--image) center/cover; isolation: isolate; }
.modal-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.76)); }
.modal-art span { padding: 7px 9px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.modal-body { padding: 20px; }
.modal-body h2 { margin: 0; font-size: 25px; line-height: 1; letter-spacing: -.045em; }
.modal-body p { margin: 10px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.48; }
.modal-actions { display: grid; gap: 8px; }
.modal-actions .primary-btn { min-height: 51px; }
.modal-actions button:last-child { min-height: 45px; border: 0; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }

.checkout-view { padding: 18px 14px calc(30px + var(--safe-bottom)); }
.back-btn { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); font-weight: 800; cursor: pointer; }
.checkout-head { margin: 20px 0; }
.checkout-head p { margin: 0 0 5px; color: var(--green); font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; }
.checkout-head h1 { margin: 0; font-size: 38px; line-height: .98; letter-spacing: -.06em; }
.checkout-card { padding: 17px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.checkout-card + .checkout-card { margin-top: 12px; }
.checkout-card h2 { margin: 0 0 12px; font-size: 16px; }
.checkout-line { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 13px; }
.checkout-line + .checkout-line { margin-top: 9px; }
.checkout-line strong { color: var(--ink); }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-option { min-height: 60px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); font-weight: 900; cursor: pointer; }
.pay-option.is-on { border-color: var(--forest); background: #e3efe8; box-shadow: inset 0 0 0 1px var(--forest); }
.tip-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tip-option { min-height: 44px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); font-size: 12px; font-weight: 850; cursor: pointer; }
.tip-option.is-on { color: white; border-color: var(--forest); background: var(--forest); }
.checkout-total { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 19px 0; }
.checkout-total span { color: var(--muted); font-size: 12px; }
.checkout-total strong { font-size: 29px; letter-spacing: -.045em; }
.secure-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.45; }

.confirm-view { padding: 28px 18px calc(28px + var(--safe-bottom)); text-align: center; }
.confirm-mark { width: 78px; height: 78px; display: grid; place-items: center; margin: 20px auto; border-radius: 26px; color: var(--ink); background: var(--yellow); box-shadow: 0 18px 36px rgba(245,185,27,.22); }
.confirm-mark svg { width: 38px; height: 38px; stroke: currentColor; }
.confirm-view h1 { margin: 0; font-size: 38px; letter-spacing: -.055em; line-height: .98; }
.confirm-lead { max-width: 410px; margin: 11px auto 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.order-code { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: rgba(31,84,63,.1); color: var(--forest); font-size: 12px; font-weight: 900; }
.status-card { margin: 23px 0 14px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); text-align: left; }
.status-step { display: grid; grid-template-columns: 25px 1fr; gap: 11px; align-items: start; }
.status-step + .status-step { margin-top: 16px; }
.status-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #dfe9e2; color: var(--green); font-size: 11px; font-weight: 950; }
.status-step.is-current .status-icon { background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 5px rgba(245,185,27,.15); }
.status-step.is-done .status-icon { background: var(--forest); color: white; }
.status-step strong { display: block; font-size: 13px; }
.status-step span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.again-card { margin: 14px 0; padding: 18px; border-radius: 22px; color: white; text-align: left; background: var(--forest); }
.again-card .label { color: var(--yellow); font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; }
.again-card h2 { margin: 7px 0 5px; font-size: 22px; letter-spacing: -.04em; }
.again-card p { margin: 0 0 14px; color: rgba(255,255,255,.65); font-size: 12px; line-height: 1.4; }
.again-card button { min-height: 48px; border: 0; border-radius: 14px; padding: 0 16px; background: var(--yellow); font-weight: 900; cursor: pointer; }
.confirmation-note { margin: 12px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.message-preview { margin: 20px 0 14px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--white); text-align: left; font: 600 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.confirm-view > .primary-btn, .confirm-view > .secondary-btn { width: 100%; margin-top: 10px; }
.confirm-view > .secondary-btn { border-color: var(--line); color: var(--ink); background: var(--white); }

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: calc(80px + var(--safe-top));
  width: min(calc(100% - 28px), 500px);
  transform: translate(-50%, -20px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  color: white;
  background: rgba(17,23,20,.96);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  font-size: 13px;
  font-weight: 780;
  transition: .28s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.loading { position: relative; color: transparent !important; pointer-events: none; }
.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 21px; height: 21px; margin: -12px; border: 3px solid rgba(18,21,18,.25); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 760px) {
  body { padding: 18px 0; }
  .app-shell { min-height: calc(100svh - 36px); border-radius: 30px; overflow: clip; }
  .welcome-view { min-height: calc(100svh - 36px); }
  .cart-fab { bottom: 30px; }
  .sheet-backdrop, .modal-backdrop { align-items: center; padding: 20px; }
  .sheet { max-height: 90svh; border-radius: 28px; }
  .modal { margin: 0; }
}

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