@font-face { font-family: 'Syne'; src: url(fonts/syne-latin-wght-normal.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
    --crema: #F6EFE4;
    --paper: #FFFBF5;
    --roast: #2B1A12;
    --roast-2: #46301F;
    --roast-3: #6E5444;
    --line: #E6DACB;
    --clay: #B9472F;
    --clay-2: #9C3823;
    --rose: #E58C7B;
    --rose-soft: #F7D9CF;
    --ochre: #B7862A;
    --azul: #1E6FA8;
    --sage: #5E7A4E;
    --display: 'Syne', 'Jakarta', system-ui, sans-serif;
    --sans: 'Jakarta', system-ui, sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--roast); color: var(--roast); font: 400 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 6px; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; }
[hidden] { display: none !important; }

/* ---------- desktop stage ---------- */
.stage { position: fixed; inset: 0; }
.stage-bg { position: absolute; inset: 0; }
.stage-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: saturate(.85); }
.stage-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 18, 11, .96) 0%, rgba(31, 18, 11, .9) 38%, rgba(31, 18, 11, .45) 70%, rgba(31, 18, 11, .25) 100%); }
.stage-copy { position: absolute; left: clamp(40px, 7vw, 120px); top: 50%; transform: translateY(-50%); width: min(520px, 44vw); color: var(--crema); }
.stage-brand { display: flex; align-items: center; gap: 10px; font: 800 30px/1 var(--display); letter-spacing: -.02em; }
.stage-brand .mark { width: 34px; height: 34px; color: var(--rose); }
.stage-brand small { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 239, 228, .6); margin-left: 6px; padding-left: 12px; border-left: 1px solid rgba(246, 239, 228, .25); }
.stage-kicker { margin: 44px 0 14px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.stage-title { margin: 0; font: 700 clamp(40px, 3.9vw, 56px)/1.02 var(--display); letter-spacing: -.035em; }
.stage-title em { font-style: normal; color: var(--rose); }
.stage-text { margin: 22px 0 0; max-width: 440px; font-size: 16px; line-height: 1.6; color: rgba(246, 239, 228, .74); }
.stage-try { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stage-try-label { width: 100%; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 239, 228, .5); margin-bottom: 4px; }
.stage-try button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 99px; border: 1px solid rgba(246, 239, 228, .22); color: var(--crema); font-size: 13.5px; font-weight: 600; background: rgba(246, 239, 228, .06); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.stage-try button svg { width: 16px; height: 16px; color: var(--rose); }
.stage-try button:hover { background: rgba(229, 140, 123, .16); border-color: var(--rose); }
.stage-try button:active { transform: scale(.97); }
.stage-link { display: inline-block; margin-top: 28px; color: var(--crema); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rose); padding-bottom: 3px; }
.stage-link:hover { color: var(--rose); }
.ribbon { position: fixed; left: 18px; bottom: 16px; z-index: 60; font: 600 11px/1 var(--sans); letter-spacing: .04em; color: rgba(246, 239, 228, .78); text-decoration: none; padding: 6px 10px; border: 1px solid rgba(246, 239, 228, .22); border-radius: 99px; background: rgba(31, 18, 11, .5); }
.ribbon:hover { color: #fff; border-color: var(--rose); }

.device { position: fixed; top: 50%; right: clamp(40px, 11vw, 200px); transform: translateY(-50%); width: 392px; height: min(830px, calc(100vh - 40px)); border-radius: 50px; padding: 11px; background: #140C08; box-shadow: 0 50px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .09) inset, 0 0 0 2px #3A2a20; }
.device::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 104px; height: 30px; border-radius: 20px; background: #000; z-index: 40; }
.device .app { border-radius: 40px; }

/* ---------- app shell ---------- */
.app { position: relative; height: 100%; overflow: hidden; background: var(--crema); display: flex; flex-direction: column; isolation: isolate; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 30px 0 34px; height: 44px; font: 650 14.5px/1 var(--sans); flex: none; }
.sb-icons { display: flex; gap: 3px; align-items: flex-end; }
.sb-icons i { width: 3.5px; background: var(--roast); border-radius: 1px; }
.sb-icons i:nth-child(1) { height: 6px; } .sb-icons i:nth-child(2) { height: 8px; } .sb-icons i:nth-child(3) { height: 10px; }
.sb-icons b { margin-left: 6px; width: 23px; height: 11px; border: 1.5px solid var(--roast); border-radius: 3.5px; position: relative; }
.sb-icons b::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--roast); border-radius: 1.5px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 8px; flex: none; }
.brand { display: flex; align-items: center; gap: 7px; font: 800 23px/1 var(--display); letter-spacing: -.03em; }
.brand .mark { width: 25px; height: 25px; color: var(--clay); }
.bell { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.bell svg { width: 20px; height: 20px; }
.bell .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 2px var(--paper); transform: scale(0); transition: transform .3s var(--spring); }
.bell.has .dot { transform: scale(1); }
main { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 18px 24px; scrollbar-width: none; }
main::-webkit-scrollbar { display: none; }
main:focus { outline: none; }
.view-in { animation: viewIn .38s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

.tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px 22px; background: var(--paper); border-top: 1px solid var(--line); position: relative; z-index: 5; }
.tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--roast-3); }
.tabs button svg { width: 23px; height: 23px; }
.tabs button[aria-current] { color: var(--clay); }
.tabs button[aria-current]::before { content: ''; position: absolute; top: -9px; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--clay); }
.badge { position: absolute; top: 1px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--clay); color: #fff; font: 700 10.5px/17px var(--sans); font-style: normal; box-shadow: 0 0 0 2px var(--paper); }

/* ---------- shared bits ---------- */
.h-eyebrow { font: 600 11.5px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--roast-3); margin: 26px 0 12px; }
.h-big { font: 700 27px/1.08 var(--display); letter-spacing: -.03em; margin: 8px 0 4px; }
.sub { color: var(--roast-3); font-size: 14px; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; background: var(--clay); color: #fff; font-weight: 700; font-size: 15px; transition: transform .15s var(--ease), background .2s; }
.btn:hover { background: var(--clay-2); }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; }
.btn.dark { background: var(--roast); }
.btn.ghost { background: transparent; color: var(--roast); border: 1.5px solid var(--line); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font: 700 11px/1 var(--sans); letter-spacing: .02em; background: var(--rose-soft); color: var(--clay-2); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.shopdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---------- card view ---------- */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tierpill { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--sans); padding: 7px 10px; border-radius: 99px; background: var(--roast); color: var(--crema); white-space: nowrap; }
.tierpill i { width: 9px; height: 9px; border-radius: 50%; background: #8A5A3C; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }

.stampcard { position: relative; margin-top: 18px; padding: 18px 18px 16px; border-radius: 24px; color: var(--crema); background:
    radial-gradient(120% 90% at 100% 0%, rgba(229, 140, 123, .22), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(183, 134, 42, .16), transparent 60%),
    var(--roast); box-shadow: 0 18px 30px -18px rgba(43, 26, 18, .7); overflow: hidden; }
.stampcard::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px); background-size: 5px 5px; }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; position: relative; z-index: 1; }
.sc-head b { font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 239, 228, .6); }
.sc-count { font: 800 30px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sc-count small { font-size: 15px; color: rgba(246, 239, 228, .55); font-weight: 600; }
.stamps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0 14px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(246, 239, 228, .28); display: grid; place-items: center; position: relative; }
.stamp .n { font: 700 13px/1 var(--sans); color: rgba(246, 239, 228, .3); }
.stamp.last { border-color: rgba(229, 140, 123, .7); }
.stamp.last .n { color: var(--rose); }
.stamp .ink { position: absolute; inset: -1px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #D66A52, var(--clay) 60%, #8E3220); color: var(--crema); transform: rotate(var(--r, -8deg)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14), inset 0 -3px 6px rgba(0, 0, 0, .2); }
.stamp .ink svg { width: 56%; height: 56%; }
.stamp.last .ink { background: radial-gradient(circle at 35% 30%, #E4B65A, var(--ochre) 60%, #8C6315); }
.stamp.press .ink { animation: press .62s var(--spring) both; }
.stamp.press::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--rose); animation: ring .7s .18s var(--ease) both; }
@keyframes press { 0% { transform: scale(2.4) rotate(-40deg); opacity: 0; } 45% { transform: scale(.86) rotate(calc(var(--r) + 4deg)); opacity: 1; } 70% { transform: scale(1.06) rotate(var(--r)); } 100% { transform: scale(1) rotate(var(--r)); } }
@keyframes ring { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.stampcard.thump { animation: thump .45s .22s var(--ease); }
@keyframes thump { 30% { transform: translateY(3px) scale(.992); } 60% { transform: translateY(-1px); } }
.stampcard.full { animation: glow 1.6s var(--ease); }
@keyframes glow { 30% { box-shadow: 0 0 0 4px var(--ochre), 0 18px 40px -10px rgba(183, 134, 42, .8); } }
.sc-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(246, 239, 228, .78); }
.sc-foot strong { color: var(--crema); }

.membercode { margin-top: 14px; padding: 14px; display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: center; }
.qr { position: relative; width: 100px; height: 100px; padding: 7px; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr .scanline { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(185, 71, 47, .35) 85%, var(--clay) 100%); opacity: 0; }
.qr.scanning .scanline { animation: scan 1s var(--ease) 1; opacity: 1; }
@keyframes scan { from { top: -30%; } to { top: 100%; } }
.qr.ok::after { content: ''; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 3px var(--sage); animation: fadeout 1.2s .3s both; }
@keyframes fadeout { to { opacity: 0; } }
.mc-text b { display: block; font: 700 15px/1.2 var(--display); letter-spacing: -.01em; }
.mc-text span { display: block; font-size: 12.5px; color: var(--roast-3); margin: 3px 0 10px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.mc-text .btn { height: 40px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }

.offer { position: relative; margin-top: 14px; border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 112px 1fr; background: var(--paper); border: 1px solid var(--line); text-align: left; width: 100%; }
.offer img { width: 112px; height: 100%; min-height: 124px; object-fit: cover; }
.offer div { padding: 14px 14px 14px 16px; }
.offer b { display: block; font: 700 17px/1.15 var(--display); letter-spacing: -.02em; margin: 8px 0 4px; }
.offer p { margin: 0; font-size: 13px; color: var(--roast-3); }
.offer .go { display: inline-flex; margin-top: 9px; font-weight: 700; font-size: 13px; color: var(--clay); }

.near { margin-top: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.near .pinico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--crema); color: var(--clay); flex: none; }
.near .pinico svg { width: 20px; height: 20px; }
.near div { flex: 1; min-width: 0; }
.near b { font-weight: 700; font-size: 14.5px; }
.near span { display: block; font-size: 12.5px; color: var(--roast-3); }
.near .open { color: var(--sage); font-weight: 700; }
.near .btn { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 11px; }

/* ---------- order view ---------- */
.ordhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.shoppick { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 12px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.shoppick svg { width: 15px; height: 15px; color: var(--clay); }
.cats { position: sticky; top: -4px; z-index: 2; display: flex; gap: 6px; margin: 16px -18px 0; padding: 10px 18px; background: var(--crema); overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; padding: 8px 13px; border-radius: 99px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--paper); }
.cats button[aria-pressed="true"] { background: var(--roast); color: var(--crema); border-color: var(--roast); }
.mcat { font: 700 19px/1 var(--display); letter-spacing: -.02em; margin: 20px 0 10px; }
.item { width: 100%; display: grid; grid-template-columns: 74px 1fr auto; gap: 13px; align-items: center; padding: 10px; margin-bottom: 8px; text-align: left; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); transition: transform .15s var(--ease); }
.item:active { transform: scale(.985); }
.thumb { width: 74px; height: 74px; border-radius: 13px; object-fit: cover; background: var(--rose-soft); display: grid; place-items: center; overflow: hidden; }
.thumb.ill { color: var(--clay); }
.thumb.ill svg { width: 40px; height: 40px; }
.thumb.ill.black { background: #EADFD1; color: var(--roast-2); }
.thumb.ill.pastry { background: #F3E3C4; color: var(--ochre); }
.item b { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.item small { display: block; font-size: 12px; color: var(--roast-3); line-height: 1.35; margin-top: 3px; }
.item .tag { margin-top: 6px; }
.item .price { align-self: start; padding-top: 2px; text-align: right; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.item .add { display: grid; place-items: center; width: 30px; height: 30px; margin: 18px 0 0 auto; border-radius: 50%; background: var(--roast); color: var(--crema); }
.item .add svg { width: 15px; height: 15px; }

.bagbar { position: relative; z-index: 4; margin: 0 12px 10px; padding: 0 8px 0 16px; height: 56px; border-radius: 18px; background: var(--roast); color: var(--crema); display: flex; align-items: center; justify-content: space-between; box-shadow: 0 12px 24px -10px rgba(43, 26, 18, .6); animation: up .35s var(--spring); }
.bagbar span { font-size: 13.5px; color: rgba(246, 239, 228, .7); }
.bagbar strong { color: var(--crema); font-size: 15px; margin-left: 6px; }
.bagbar .btn { height: 42px; border-radius: 13px; font-size: 14px; padding: 0 16px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* ---------- sheet ---------- */
.scrim { position: absolute; inset: 0; z-index: 20; background: rgba(31, 18, 11, .45); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 90%; display: flex; flex-direction: column; background: var(--crema); border-radius: 26px 26px 0 0; animation: sheetIn .4s var(--ease); box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); }
.sheet.out { animation: sheetOut .25s var(--ease) forwards; }
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 9px auto 0; flex: none; }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px 6px; flex: none; }
.sh-head h2 { margin: 0; font: 700 21px/1.1 var(--display); letter-spacing: -.02em; }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); flex: none; }
.iconbtn svg { width: 17px; height: 17px; }
.sh-body { padding: 6px 18px 12px; overflow-y: auto; flex: 1; scrollbar-width: none; }
.sh-foot { padding: 12px 18px 26px; border-top: 1px solid var(--line); background: var(--crema); flex: none; }
.hero-img { width: 100%; height: 170px; object-fit: cover; border-radius: 18px; }
.hero-ill { height: 130px; border-radius: 18px; display: grid; place-items: center; }
.hero-ill svg { width: 64px; height: 64px; }
.opt { margin-top: 18px; }
.opt > b { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.opt > b em { font-style: normal; color: var(--roast-3); font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; min-height: 42px; padding: 6px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-size: 13.5px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.seg button small { font-size: 11px; color: var(--roast-3); font-weight: 500; }
.seg button[aria-pressed="true"] { border-color: var(--roast); background: var(--roast); color: var(--crema); }
.seg button[aria-pressed="true"] small { color: rgba(246, 239, 228, .7); }
.qty { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); height: 48px; padding: 0 4px; }
.qty button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
.qty button svg { width: 16px; height: 16px; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.footrow { display: flex; gap: 10px; align-items: center; }
.footrow .btn { flex: 1; }

/* checkout */
.steps { display: flex; gap: 6px; padding: 0 18px 4px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--clay); }
.bagline { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bagline .q { font-weight: 800; color: var(--clay); min-width: 22px; }
.bagline div { flex: 1; }
.bagline b { font-size: 14.5px; }
.bagline small { display: block; color: var(--roast-3); font-size: 12.5px; }
.bagline .p { font-weight: 700; font-variant-numeric: tabular-nums; }
.bagline .rm { display: block; font-size: 12px; color: var(--clay); font-weight: 600; margin-top: 4px; }
.totals { margin-top: 12px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--roast-3); }
.totals div.t { color: var(--roast); font-weight: 800; font-size: 17px; padding-top: 8px; }
.earn { margin-top: 12px; padding: 11px 13px; border-radius: 14px; background: var(--rose-soft); color: var(--clay-2); font-size: 13px; font-weight: 600; display: flex; gap: 9px; align-items: center; }
.earn svg { width: 18px; height: 18px; flex: none; }
.shopopt { width: 100%; display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 14px; margin-bottom: 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); text-align: left; }
.shopopt[aria-pressed="true"] { border-color: var(--roast); box-shadow: inset 0 0 0 1px var(--roast); }
.shopopt b { font-size: 15px; }
.shopopt small { display: block; color: var(--roast-3); font-size: 12.5px; }
.shopopt .w { font-size: 12.5px; font-weight: 700; text-align: right; }
.shopopt .w span { display: block; font-weight: 500; color: var(--roast-3); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slots button { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.slots button small { display: block; font-size: 10.5px; font-weight: 600; color: var(--roast-3); }
.slots button[aria-pressed="true"] { background: var(--roast); border-color: var(--roast); color: var(--crema); }
.slots button[aria-pressed="true"] small { color: var(--rose); }
.payopt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); text-align: left; font-weight: 600; }
.payopt[aria-pressed="true"] { border-color: var(--roast); box-shadow: inset 0 0 0 1px var(--roast); }
.payopt .logo { width: 46px; height: 30px; border-radius: 7px; display: grid; place-items: center; font: 800 11px/1 var(--sans); flex: none; }
.payopt .logo.mbw { background: #EADFD1; color: var(--roast); letter-spacing: -.02em; font-size: 9.5px; }
.payopt .logo.card { background: var(--roast); color: var(--crema); }
.payopt small { display: block; font-weight: 500; font-size: 12px; color: var(--roast-3); }
.payopt .radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.payopt[aria-pressed="true"] .radio { border: 6px solid var(--roast); }
.mbway-wait { text-align: center; padding: 30px 10px 10px; }
.mbway-wait .phone-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: var(--roast); color: var(--crema); text-align: center; display: grid; place-items: center; font: 800 15px/1 var(--sans); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07); } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* order status */
.status-hero { margin-top: 8px; padding: 20px; border-radius: 24px; background: var(--roast); color: var(--crema); position: relative; overflow: hidden; }
.status-hero .num { font: 800 52px/1 var(--sans); letter-spacing: -.03em; }
.status-hero p { margin: 6px 0 0; color: rgba(246, 239, 228, .7); font-size: 14px; }
.status-hero .eta { position: absolute; right: 20px; top: 22px; text-align: right; font-size: 12px; color: rgba(246, 239, 228, .6); }
.status-hero .eta b { display: block; font: 700 22px/1 var(--display); color: var(--rose); }
.track { margin: 18px 0 0; padding: 0; list-style: none; }
.track li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 18px; position: relative; color: var(--roast-3); }
.track li::before { content: ''; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.track li:last-child::before { display: none; }
.track li.done::before { background: var(--sage); }
.track .dotc { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: center; transition: all .35s var(--spring); }
.track .dotc svg { width: 15px; height: 15px; opacity: 0; }
.track li.done .dotc { background: var(--sage); border-color: var(--sage); color: #fff; }
.track li.done .dotc svg { opacity: 1; }
.track li.now .dotc { border-color: var(--clay); box-shadow: 0 0 0 5px rgba(185, 71, 47, .15); animation: pulse 1.2s infinite; }
.track b { display: block; color: var(--roast); font-size: 14.5px; padding-top: 4px; }
.track small { font-size: 12.5px; }

/* ---------- rewards ---------- */
.freebie { margin-top: 16px; padding: 18px; border-radius: 22px; color: var(--roast); background: linear-gradient(135deg, #F3D08A, #E0A94A); position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.freebie::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .22); }
.freebie b { font: 700 20px/1.1 var(--display); letter-spacing: -.02em; display: block; }
.freebie p { margin: 4px 0 0; font-size: 13px; }
.freebie .btn { position: relative; z-index: 1; height: 42px; font-size: 14px; }
.progress-mini { margin-top: 16px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.ringwrap { position: relative; width: 52px; height: 52px; flex: none; }
.ringwrap svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.ringwrap span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 15px/1 var(--sans); }
.rw { display: grid; grid-template-columns: 52px 1fr; gap: 13px; padding: 14px; margin-bottom: 8px; align-items: center; }
.rw .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--rose-soft); color: var(--clay); }
.rw .ico svg { width: 26px; height: 26px; }
.rw .ico.beans { background: #EADFD1; color: var(--roast-2); --bean-line: #EADFD1; }
.rw .ico.pastry { background: #F3E3C4; color: var(--ochre); }
.rw b { font-size: 14.5px; display: block; line-height: 1.25; }
.rw small { font-size: 12.5px; color: var(--roast-3); display: block; margin-top: 2px; }
.rw .act { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.rw .act .btn { height: 36px; font-size: 13px; padding: 0 14px; border-radius: 11px; }
.rw.locked { opacity: .62; }
.rw .used { font-size: 12.5px; font-weight: 700; color: var(--sage); display: inline-flex; gap: 5px; align-items: center; }
.rw .used svg { width: 15px; height: 15px; }

.codebox { text-align: center; padding: 8px 0 4px; }
.cd-ring { position: relative; width: 210px; height: 210px; margin: 8px auto 0; }
.cd-ring svg { width: 210px; height: 210px; transform: rotate(-90deg); }
.cd-ring .in { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.cd-code { font: 800 46px/1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; padding-left: .08em; }
.cd-time { margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--clay); font-variant-numeric: tabular-nums; }
.cd-ring.expired .cd-code { color: var(--line); text-decoration: line-through; }
.cd-ring.confirmed .cd-code { color: var(--sage); }
.codebox p { color: var(--roast-3); font-size: 13.5px; max-width: 280px; margin: 14px auto 0; }
.linkbtn { color: var(--clay); font-weight: 700; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; margin-top: 12px; }

/* ---------- me ---------- */
.prof { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.avatar { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font: 800 21px/1 var(--display); background: var(--rose); color: var(--roast); flex: none; }
.prof b { font: 700 22px/1.1 var(--display); letter-spacing: -.02em; display: block; }
.prof span { font-size: 13px; color: var(--roast-3); }
.tiercard { margin-top: 18px; padding: 18px; border-radius: 22px; background: var(--roast); color: var(--crema); }
.tiercard .row { display: flex; justify-content: space-between; align-items: baseline; }
.tiercard .row b { font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.tiercard .row span { font-size: 12.5px; color: rgba(246, 239, 228, .6); }
.ladder { position: relative; margin: 20px 4px 6px; height: 8px; border-radius: 4px; background: rgba(246, 239, 228, .14); }
.ladder .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #8FAF7A, var(--ochre), #8A4A2C); width: 0; transition: width 1.1s var(--ease); }
.ladder .tk { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--roast); border: 2px solid rgba(246, 239, 228, .4); }
.ladder .tk.on { border-color: var(--crema); background: var(--ochre); }
.ladder-labels { position: relative; height: 30px; font-size: 10.5px; color: rgba(246, 239, 228, .6); margin: 0 4px; }
.ladder-labels span { position: absolute; transform: translateX(-50%); top: 6px; white-space: nowrap; }
.ladder-labels span:first-child { transform: none; }
.ladder-labels span:last-child { transform: translateX(-100%); }
.tiercard p { margin: 10px 0 0; font-size: 13.5px; color: rgba(246, 239, 228, .8); }
.tiercard p strong { color: var(--rose); }
.visit { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); align-items: start; }
.visit .shopdot { margin-top: 6px; }
.visit b { font-size: 14px; }
.visit small { display: block; font-size: 12.5px; color: var(--roast-3); }
.visit .st { font-size: 12px; font-weight: 700; color: var(--clay); white-space: nowrap; }
.visit .st.rw2 { color: var(--ochre); }
.visit.new { animation: newrow 1.4s var(--ease); }
@keyframes newrow { from { background: var(--rose-soft); } }
.setrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; width: 100%; text-align: left; }
.setrow:last-child { border-bottom: 0; }
.setrow small { display: block; font-weight: 500; color: var(--roast-3); font-size: 12px; }
.switch { width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::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,.2); transition: transform .25s var(--spring); }
.switch[aria-checked="true"] { background: var(--sage); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

/* ---------- push, a2hs, toast, fx ---------- */
.push { position: absolute; left: 9px; right: 9px; top: 10px; z-index: 30; padding: 12px 13px; border-radius: 22px; display: grid; grid-template-columns: 38px 1fr 46px; gap: 11px; align-items: center; background: rgba(250, 244, 236, .9); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 14px 34px rgba(31, 18, 11, .28), 0 0 0 .5px rgba(0,0,0,.08); text-align: left; cursor: pointer; transform: translateY(-140%); transition: transform .55s var(--spring); }
.push.in { transform: translateY(0); }
.push .appico { width: 38px; height: 38px; border-radius: 10px; background: var(--roast); color: var(--rose); display: grid; place-items: center; align-self: start; }
.push .appico svg { width: 24px; height: 24px; }
.push .meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--roast-3); font-weight: 600; letter-spacing: .02em; }
.push b { display: block; font-size: 14px; line-height: 1.25; margin-top: 1px; }
.push p { margin: 1px 0 0; font-size: 13px; line-height: 1.3; color: var(--roast-2); }
.push img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.push.noimg { grid-template-columns: 38px 1fr; }

.a2hs { position: absolute; left: 12px; right: 12px; bottom: 96px; z-index: 25; padding: 16px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 40px -12px rgba(31, 18, 11, .45); animation: up .45s var(--spring); }
.a2hs .row { display: flex; gap: 12px; align-items: center; }
.a2hs .appico { width: 52px; height: 52px; border-radius: 14px; background: var(--roast); color: var(--rose); display: grid; place-items: center; flex: none; box-shadow: 0 6px 12px -4px rgba(43, 26, 18, .5); }
.a2hs .appico svg { width: 32px; height: 32px; }
.a2hs .row b { display: block; font: 700 16px/1.2 var(--display); letter-spacing: -.01em; }
.a2hs p { margin: 3px 0 0; font-size: 13px; color: var(--roast-3); }
.a2hs ol { margin: 14px 0 0; padding: 12px 14px; list-style: none; background: var(--crema); border-radius: 14px; font-size: 13px; display: grid; gap: 8px; counter-reset: s; }
.a2hs li { display: flex; align-items: center; gap: 8px; counter-increment: s; }
.a2hs li::before { content: counter(s); width: 20px; height: 20px; border-radius: 50%; background: var(--roast); color: var(--crema); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.a2hs li svg { width: 17px; height: 17px; color: var(--azul); }
.a2hs .acts { display: flex; gap: 8px; margin-top: 12px; }
.a2hs .acts .btn { flex: 1; height: 42px; font-size: 14px; }
.a2hs .pointer { position: absolute; bottom: -10px; left: 50%; width: 20px; height: 20px; margin-left: -10px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }

.toast { position: absolute; left: 50%; bottom: 100px; z-index: 35; transform: translate(-50%, 14px); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 14px; background: var(--roast); color: var(--crema); font-size: 13.5px; font-weight: 600; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; transition: all .35s var(--ease); display: flex; gap: 8px; align-items: center; }
.toast svg { width: 16px; height: 16px; color: #A8C795; flex: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.app:has(.bagbar:not([hidden])) .toast { bottom: 170px; }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.fx svg { position: absolute; width: 16px; height: 16px; color: var(--roast-2); --bean-line: var(--crema); }
.unlock { position: absolute; left: 50%; top: 40%; z-index: 41; transform: translate(-50%, -50%); padding: 18px 22px; border-radius: 22px; background: var(--roast); color: var(--crema); text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.4); animation: pop .5s var(--spring); white-space: nowrap; }
.unlock b { display: block; font: 800 22px/1.1 var(--display); color: #F3D08A; }
.unlock span { font-size: 13px; color: rgba(246, 239, 228, .7); }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }

/* ---------- small screens: app goes full screen ---------- */
@media (max-width: 900px) {
    body { background: var(--crema); }
    .stage-bg, .stage-copy { display: none; }
    .stage { position: static; }
    .ribbon { left: auto; right: 0; top: 58%; bottom: auto; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; border-radius: 0 6px 6px 0; padding: 8px 3px; font-size: 9px; background: rgba(43, 26, 18, .6); color: rgba(246, 239, 228, .92); border: 0; }
    .device { position: static; transform: none; width: auto; height: 100dvh; padding: 0; border-radius: 0; background: none; box-shadow: none; }
    .device::before { display: none; }
    .device .app { border-radius: 0; }
    .statusbar { display: none; }
    .top { padding-top: 14px; }
    .tabs { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (min-width: 901px) and (max-width: 1180px) {
    .stage-copy { width: min(420px, 42vw); }
    .stage-title { font-size: 40px; }
    .device { right: 36px; }
}
@media (min-width: 901px) and (max-height: 760px) {
    .stage-kicker { margin-top: 26px; }
    .stage-text { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
