/* QR ordering web — screen styles ported from the claude.ai/design prototype
   ("QR Ordering.dc.html"). Tokens come from ds/tokens, controls from ds/components.css. */

html, body { height: 100%; }
body { background: var(--neutral-100); }
[data-theme="dark"] body { background: var(--plum-950); }

@keyframes qrSpin { to { transform: rotate(360deg); } }
@keyframes qrPulse { 0% { box-shadow: 0 0 0 0 rgba(247,148,29,.55); } 100% { box-shadow: 0 0 0 10px rgba(247,148,29,0); } }
@keyframes qrPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes qrShimmer { 0% { opacity: .55; } 50% { opacity: 1; } 100% { opacity: .55; } }
@keyframes qrSheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes qrFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- phone column ---- */
.phone {
  position: relative; width: 100%; max-width: 420px; min-height: 100dvh; margin: 0 auto;
  background: var(--surface-page); color: var(--text-primary); overflow: hidden;
  display: flex; flex-direction: column;
}
@media (min-width: 480px) {
  .phone { min-height: 0; height: min(100dvh, 920px); margin: 20px auto; border-radius: 36px;
    box-shadow: 0 24px 60px rgba(45,18,39,.18), 0 0 0 1.5px var(--border-subtle); }
}
.scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.pad-cartpill { padding-bottom: 120px; }
.pad-order { padding-bottom: 230px; }
.pad-payment { padding-bottom: 130px; }

/* ---- shared bits ---- */
.overline { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.overline--accent { color: var(--text-accent); }
.section-label { padding: 20px 22px 8px; }
.card { background: var(--surface-card); border-radius: 20px; border: 1.5px solid var(--border-subtle); }
.card--pad { padding: 16px; }
.mx { margin-left: 12px; margin-right: 12px; }
.stripes { background: repeating-linear-gradient(135deg, var(--surface-sunken) 0 9px, var(--surface-card) 9px 18px); }
.money { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-secondary); }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 2px; }
.icon { display: inline-flex; flex-shrink: 0; }
.icon svg { width: 1em; height: 1em; }
.danger { color: var(--status-danger); }
.stepper { display: flex; align-items: center; background: var(--surface-sunken); border-radius: 999px; height: 44px; }
.stepper--accent { background: var(--accent-soft); }
.stepper__btn { width: 40px; height: 44px; border: none; background: transparent; font-size: 22px; font-weight: 800; color: var(--text-brand); cursor: pointer; font-family: inherit; }
.stepper--accent .stepper__btn { color: var(--text-accent); }
.stepper--wide .stepper__btn { width: 44px; }
.stepper__qty { min-width: 18px; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.hairline { height: 1.5px; background: var(--border-subtle); }
.screen-head { display: flex; align-items: center; gap: 6px; padding: 14px 12px 6px; }
.screen-head h1 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.rn-iconbtn svg { width: 24px; height: 24px; }
.rn-btn svg { width: 18px; height: 18px; }
select.select {
  height: 48px; border-radius: 14px; border: 1.5px solid var(--border-default); background: var(--surface-card);
  color: var(--text-primary); padding: 0 14px; font-family: inherit; font-size: 15px; font-weight: 600; width: 100%;
}
select.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-label { font-size: 14px; font-weight: 700; color: var(--text-secondary); }
.field-err { font-size: 13px; font-weight: 700; color: var(--status-danger); }
.rn-field__input[type="date"], .rn-field__input[type="time"] { -webkit-appearance: none; appearance: none; }
.rn-field__icon--prefix { color: var(--text-secondary); font-weight: 700; font-size: 15px; }

/* ---- S1 menu ---- */
.hero { position: relative; aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, var(--plum-500) 0 14px, var(--plum-600) 14px 28px); display: flex; align-items: flex-start; padding: 16px 22px; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--plum-100); position: relative; }
.shop-card { margin: -28px 12px 0; position: relative; background: var(--surface-card); border-radius: 24px; padding: 18px 18px 16px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 6px; }
.shop-card__name { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.shop-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); }
.menu-tools { padding: 18px 22px 0; display: flex; flex-direction: column; gap: 12px; }
.menu-tools .chips { margin: 0 -22px; padding: 0 22px 2px; }
.empty { padding: 48px 22px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.empty__title { font-size: 17px; font-weight: 800; }
.empty__body { font-size: 14px; color: var(--text-secondary); }
.grid { padding: 16px 22px 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.item { background: var(--surface-card); border-radius: 20px; border: 1.5px solid var(--border-subtle); overflow: hidden; display: flex; flex-direction: column; }
.item__img { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: flex-start; padding: 10px; cursor: pointer; overflow: hidden; }
.item__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item__cat { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); position: relative; }
.item__img img + .item__cat { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.item__badge { position: absolute; right: 10px; bottom: 10px; }
.item__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.item__name { font-size: 15px; font-weight: 800; line-height: 1.25; text-wrap: pretty; }
.item__variants { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.item__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; min-height: 44px; }
.item__price { font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--text-brand); }
.plus { width: 44px; height: 44px; border-radius: 999px; border: none; background: var(--accent); color: var(--text-on-accent); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-accent); flex-shrink: 0; }
.plus svg { width: 22px; height: 22px; }
.variant-qty { height: 44px; padding: 0 14px; border-radius: 999px; border: none; background: var(--accent); color: var(--text-on-accent); font-family: inherit; font-weight: 900; font-size: 15px; cursor: pointer; font-variant-numeric: tabular-nums; }

/* ---- skeleton ---- */
.skel { display: flex; flex-direction: column; }
.skel__hero { aspect-ratio: 16 / 9; background: var(--surface-sunken); animation: qrShimmer 1.4s infinite; }
.skel__head { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.skel__bar { height: 14px; border-radius: 7px; background: var(--surface-sunken); }
.skel__bar--pill { height: 48px; border-radius: 999px; margin-top: 8px; width: 100%; }
.skel__grid { padding: 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skel__card { border-radius: 20px; background: var(--surface-card); border: 1.5px solid var(--border-subtle); overflow: hidden; }
.skel__img { aspect-ratio: 1 / 1; background: var(--surface-sunken); animation: qrShimmer 1.4s infinite; }
.skel__txt { padding: 12px; display: flex; flex-direction: column; gap: 8px; }

/* ---- sticky bottoms ---- */
.pill-wrap { position: absolute; left: 12px; right: 12px; bottom: 16px; }
.cart-pill { width: 100%; height: 60px; border-radius: 999px; border: none; background: var(--surface-brand); color: var(--text-on-brand); display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 22px; font-family: inherit; cursor: pointer; box-shadow: var(--shadow-brand); }
.cart-pill__sum { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-pill__cta { height: 42px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--text-on-accent); display: flex; align-items: center; font-size: 15px; font-weight: 900; }
.closed-bar { position: absolute; left: 12px; right: 12px; bottom: 16px; height: 60px; border-radius: 999px; background: var(--surface-sunken); border: 1.5px solid var(--border-default); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--text-secondary); }
.bottom { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface-card); border-top: 1.5px solid var(--border-subtle); padding: 14px 22px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -8px 24px rgba(45,18,39,.06); }
.bottom__row { display: flex; justify-content: space-between; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.bottom__row b { font-weight: 800; color: var(--text-primary); }
.bottom__hint { font-size: 13px; text-align: center; color: var(--text-secondary); }

/* ---- S2 order ---- */
.modes { padding: 6px 22px 4px; }
.mode-card { margin: 12px 12px 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.table-lock { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.table-lock__label { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.table-lock__value { font-size: 22px; font-weight: 900; }
.hint { font-size: 13px; color: var(--text-secondary); }
.hint--md { font-size: 15px; }
.map { height: 96px; border-radius: 14px; position: relative; overflow: hidden; }
.map__pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 999px; background: var(--brand); border: 3px solid var(--surface-card); box-shadow: var(--shadow-brand); }
.two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.cart-list { margin: 0 12px; overflow: hidden; }
.cart-row { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1.5px solid var(--border-subtle); }
.cart-row--out { background: var(--status-danger-surface); }
.cart-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-row__name { font-size: 15px; font-weight: 800; }
.cart-row__unit { font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.cart-row__out { font-size: 13px; font-weight: 800; color: var(--status-danger); }
.cart-row__line { width: 74px; text-align: right; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-empty { padding: 16px; font-size: 14px; color: var(--text-secondary); }
.add-more { width: 100%; height: 52px; border: none; background: transparent; color: var(--text-accent); font-family: inherit; font-size: 15px; font-weight: 800; text-align: left; padding: 0 16px; cursor: pointer; }
.fields { padding: 0 12px; display: flex; flex-direction: column; gap: 12px; }
.fields--note { padding-top: 16px; }

/* ---- S3 payment ---- */
.order-line { padding: 6px 22px 8px; font-size: 14px; color: var(--text-secondary); }
.methods { padding: 8px 12px 0; display: flex; flex-direction: column; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; border-radius: 20px; border: 1.5px solid var(--border-subtle); background: var(--surface-card); text-align: left; font-family: inherit; color: var(--text-primary); cursor: pointer; width: 100%; }
.method--on { border: 2px solid var(--border-accent); }
.method__logo { width: 48px; height: 32px; border-radius: 8px; background: var(--surface-sunken); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; letter-spacing: .02em; color: var(--text-brand); flex-shrink: 0; overflow: hidden; }
.method__logo img { width: 100%; height: 100%; object-fit: contain; }
.method__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.method__name { font-size: 15px; font-weight: 800; }
.method__fee { font-size: 13px; color: var(--text-secondary); }
.method__radio { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--border-default); flex-shrink: 0; }
.method--on .method__radio { border: 7px solid var(--accent); }
.summary { margin: 16px 12px 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-variant-numeric: tabular-nums; }
.summary__row { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-secondary); }
.summary__row--sm { font-size: 14px; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; }
.summary__total b { font-size: 16px; font-weight: 800; }
.summary__total strong { font-size: 24px; font-weight: 900; color: var(--text-brand); }
.summary__total--sm strong { font-size: 20px; }

/* ---- S4 pay ---- */
.pay { padding: 28px 22px 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pay__amount { font-size: 30px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qr-box { background: #fff; padding: 18px; border-radius: 24px; box-shadow: var(--shadow-md); border: 1.5px solid var(--border-subtle); }
.qr-box > div { width: 232px; height: 232px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.pay__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.pay__hint { font-size: 14px; color: var(--text-secondary); max-width: 300px; text-wrap: pretty; }
.va { width: 100%; background: var(--surface-card); border-radius: 24px; border: 1.5px solid var(--border-subtle); padding: 20px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.va__logo { width: 72px; height: 44px; border-radius: 10px; background: var(--surface-sunken); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: var(--text-brand); overflow: hidden; }
.va__logo img { width: 100%; height: 100%; object-fit: contain; }
.va__name { font-size: 17px; font-weight: 800; }
.countdown { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.countdown--late { color: var(--status-danger); }
.countdown svg { width: 18px; height: 18px; }
.waiting { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--accent-soft); font-size: 15px; font-weight: 800; color: var(--text-primary); }
.pulse { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); animation: qrPulse 1.4s infinite; flex-shrink: 0; }
.pay__note { font-size: 13px; color: var(--text-muted); max-width: 300px; text-wrap: pretty; }

/* ---- S5 status ---- */
.status-head { background: var(--surface-brand); color: var(--text-on-brand); padding: 28px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.status-head__paid { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--plum-100); }
.check-dot { width: 32px; height: 32px; border-radius: 999px; background: var(--success-500); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.check-dot svg { width: 20px; height: 20px; }
.status-head__title { font-size: 26px; font-weight: 900; letter-spacing: -.02em; text-wrap: pretty; }
.ref { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(255,255,255,.1); border-radius: 16px; padding: 10px 10px 10px 14px; }
.ref__label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--plum-200); }
.ref__code { font-size: 22px; font-weight: 900; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.ref__copy { height: 40px; padding: 0 14px; border-radius: 999px; border: none; background: var(--accent); color: var(--text-on-accent); font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 800; }
.steps-card { margin: 16px 12px 0; padding: 18px 12px 14px; }
.steps { display: grid; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.step__line { position: absolute; top: 15px; left: 50%; width: 100%; height: 3px; background: var(--border-subtle); }
.step__line--done { background: var(--success-500); }
.step__dot { position: relative; width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; background: var(--surface-card); color: var(--text-muted); border: 2px solid var(--border-default); }
.step__dot--done { background: var(--success-500); color: #fff; border: none; }
.step__dot--cur { background: var(--accent); color: var(--text-on-accent); border: none; }
.step__label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-align: center; line-height: 1.2; }
.step__label--on { color: var(--text-primary); }
.step__label--cur { font-weight: 900; }
.steps-card__foot { margin-top: 12px; text-align: center; font-size: 12px; color: var(--text-muted); }
.share { margin: 12px 12px 0; background: var(--accent-soft); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.share__title { font-size: 15px; font-weight: 900; }
.share__body { font-size: 14px; color: var(--text-secondary); text-wrap: pretty; }
.receipt { margin: 12px 12px 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-variant-numeric: tabular-nums; }
.receipt__row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; }
.receipt__note { font-size: 14px; color: var(--text-secondary); }
.shop-row { margin: 12px 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.shop-row__name { font-size: 15px; font-weight: 800; }
.shop-row__meta { font-size: 13px; color: var(--text-secondary); }
.again { padding: 16px 12px 0; }

/* ---- S6 error ---- */
.err { min-height: 100%; padding: 40px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.err__art { width: 132px; height: 132px; border-radius: 999px; border: 1.5px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; color: var(--text-brand); margin-bottom: 8px; }
.err__art svg { width: 48px; height: 48px; }
.err__title { font-size: 24px; font-weight: 900; letter-spacing: -.02em; text-wrap: pretty; }
.err__body { font-size: 15px; color: var(--text-secondary); max-width: 300px; text-wrap: pretty; }
.err__cta { width: 100%; max-width: 300px; margin-top: 10px; }
.err__foot { margin-top: 24px; font-size: 13px; color: var(--text-muted); }
.err__foot a { font-weight: 800; }

/* ---- overlays ---- */
.sheet-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; z-index: 20; }
.sheet-wrap__bg { position: absolute; inset: 0; background: rgba(30,12,26,.5); }
.sheet { position: relative; background: var(--surface-card); border-radius: 28px 28px 0 0; padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; animation: qrSheet .32s var(--ease-standard); max-height: 92%; overflow-y: auto; }
.sheet__grip { width: 40px; height: 5px; border-radius: 999px; background: var(--border-default); align-self: center; flex-shrink: 0; }
.sheet__img { height: 140px; border-radius: 20px; border: 1.5px solid var(--border-subtle); overflow: hidden; flex-shrink: 0; }
.sheet__img img { width: 100%; height: 100%; object-fit: cover; }
.sheet__name { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.sheet__desc { font-size: 15px; color: var(--text-secondary); text-wrap: pretty; }
.sheet__comp { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.sheet__rows { display: flex; flex-direction: column; border-top: 1.5px solid var(--border-subtle); }
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1.5px solid var(--border-subtle); }
.vrow__name { font-size: 16px; font-weight: 800; }
.vrow__price { font-size: 14px; font-weight: 700; color: var(--text-brand); font-variant-numeric: tabular-nums; }
.overlay { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--surface-page); }
.overlay--brand { background: var(--surface-brand); color: var(--text-on-brand); }
.overlay__title { font-size: 18px; font-weight: 900; }
.overlay--brand .overlay__title { font-size: 24px; }
.overlay__sub { font-size: 14px; color: var(--text-secondary); }
.overlay--brand .overlay__sub { font-size: 15px; color: var(--plum-100); font-variant-numeric: tabular-nums; }
.spinner { width: 48px; height: 48px; border-radius: 999px; border: 5px solid var(--accent-soft); border-top-color: var(--accent); animation: qrSpin .9s linear infinite; }
.bigcheck { width: 96px; height: 96px; border-radius: 999px; background: var(--success-500); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 52px; font-weight: 900; animation: qrPop .6s cubic-bezier(.34,1.56,.64,1) both; }
.toast-wrap { position: absolute; left: 12px; right: 12px; top: 16px; display: flex; justify-content: center; z-index: 40; animation: qrFade .2s var(--ease-out); pointer-events: none; }
.toast-wrap .rn-toast { pointer-events: auto; }
