/* Layout: phone-frame app, bottom tab bar, bottom-sheet for drink customisation */
:root{
  --bg:color-mix(in srgb,var(--brand) 5%,#FFFDF9); --surface:#FFFFFF; --ink:#0D0D0D; --muted:#6E6E6A; --line:#E2E2DE;
  --espresso:var(--hero); --gold:var(--accent); --gold-soft:color-mix(in srgb,var(--brand) 13%,var(--surface)); --ok:#2F7A4D; --danger:#B33A2B;
  --brand:#EE6A1F; --hero:#EE6A1F; --accent:#FFC23D; --on-brand:#FFFFFF; --tint:color-mix(in srgb,var(--brand) 9%,var(--surface));
  --frame:color-mix(in srgb,var(--brand) 14%,#FFFFFF); color-scheme:light;
  --display:"Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:"Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html,body{height:100%}
body{background:var(--frame);color:var(--ink);font-family:var(--body);display:flex;justify-content:center}
*{box-sizing:border-box}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.app{position:relative;width:100%;max-width:430px;height:100%;background:var(--bg);display:flex;flex-direction:column;overflow:hidden}
.screen{flex:1;overflow-y:auto;padding:16px max(16px,env(safe-area-inset-right,0px)) 96px max(16px,env(safe-area-inset-left,0px))}
h1,h2,h3{font-family:var(--display);margin:0;text-wrap:balance}
h1{font-size:1.5rem;font-weight:700;line-height:1.2}
h2{font-size:1.1rem;font-weight:700}
.muted{color:var(--muted)}
.small{font-size:.8rem}
.row{display:flex;align-items:center;gap:10px}
.between{justify-content:space-between}
.stack{display:flex;flex-direction:column;gap:12px}
.num{font-variant-numeric:tabular-nums}
.label{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:var(--muted)}
.demo{background:var(--gold-soft);color:var(--ink);font-size:.72rem;padding:6px 10px;border-radius:8px;text-align:center}

/* home */
.hero{background:var(--hero);color:#fff;box-shadow:0 10px 24px -12px var(--hero);border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:14px}
.hero .muted{color:rgba(255,255,255,.85)}
.logo{width:44px;height:44px;flex:0 0 44px}
.wordmark{font-family:var(--display);font-weight:800;font-size:1.05rem;letter-spacing:.18em;text-transform:uppercase}
.pts{font-family:var(--display);font-size:2.4rem;font-weight:700;line-height:1}
.bar{height:8px;background:rgba(255,255,255,.18);border-radius:99px;overflow:hidden}
.bar>i{display:block;height:100%;background:var(--accent);border-radius:99px}
.toggle{display:grid;grid-template-columns:1fr 1fr;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:4px}
.toggle button{padding:10px;border-radius:10px;font-weight:600}
.toggle button[aria-pressed="true"]{background:var(--brand);color:var(--on-brand)}
.outlet{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;text-align:left;width:100%}
.promo{border-radius:16px;padding:16px;background:var(--gold-soft);color:var(--ink);border:1px solid var(--line);display:flex;flex-direction:column;gap:4px}
.promo h3{font-size:1.2rem}
.hscroll{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px}
.mini{flex:0 0 132px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px;text-align:left}

/* menu */
.cats{display:flex;gap:8px;overflow-x:auto;position:sticky;top:-16px;background:var(--bg);padding:8px 0;z-index:2}
.chip{white-space:nowrap;padding:8px 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-weight:600;font-size:.85rem}
.chip[aria-pressed="true"]{background:var(--brand);color:var(--on-brand);border-color:var(--brand)}
.item{display:flex;gap:12px;align-items:center;background:var(--surface);border-bottom:1px solid var(--line);padding:12px 4px;width:100%;text-align:left}
.item:first-child{border-top:1px solid var(--line)}
.cup{flex:0 0 64px;height:64px;border-radius:14px;display:grid;place-items:center;background:var(--gold-soft)}
.item .txt{flex:1;min-width:0}
.item .name{font-weight:600}
.add{width:32px;height:32px;border-radius:99px;background:var(--brand);color:var(--on-brand);font-size:1.2rem;display:grid;place-items:center;flex:0 0 32px}
.tag{font-size:.65rem;font-weight:700;padding:2px 6px;border-radius:6px;background:var(--gold);color:#22170F;margin-left:6px;vertical-align:middle}

/* menu screen: two-column layout with category rail */
.screen.menu{padding:0;display:flex;flex-direction:column;overflow:hidden}
.mhead{padding:12px max(16px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:10px;background:var(--bg)}
.seg{display:inline-flex;background:var(--surface);border:1px solid var(--line);border-radius:99px;padding:3px}
.seg button{padding:9px 16px;border-radius:99px;font-weight:600;font-size:.9rem;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--brand);color:var(--on-brand)}
.round{width:42px;height:42px;border-radius:99px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center}
.storeline{display:flex;align-items:center;gap:8px;text-align:left;font-size:1rem}
.storeline b{flex:1;min-width:0;font-size:1rem;font-weight:600}
.notice{display:flex;gap:10px;align-items:center;background:var(--gold-soft);border-radius:12px;padding:10px 12px;font-size:.85rem}
.mbody{flex:1;display:flex;min-height:0;border-top:1px solid var(--line)}
.side{flex:0 0 92px;overflow-y:auto;background:var(--bg);padding-bottom:90px;padding-left:env(safe-area-inset-left,0px)}
.side button{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:14px 6px;font-size:.72rem;text-align:center;color:var(--muted);border-left:3px solid transparent}
.side button[aria-current="true"]{background:var(--surface);color:var(--brand);font-weight:700;border-left-color:var(--brand)}
.pane{flex:1;min-width:0;overflow-y:auto;background:var(--surface);padding-bottom:96px}
.pane section{padding:4px 12px 18px}
.banner{position:relative;margin:0 -12px 4px;background:var(--hero);color:#fff;padding:16px 14px;display:flex;flex-direction:column;overflow:hidden;min-height:118px}
.banner .kick{font-size:.62rem;text-transform:uppercase;letter-spacing:.14em;color:var(--accent);font-weight:700}
.banner .big{font-family:var(--display);font-weight:700;font-size:1.7rem;line-height:1.1;max-width:68%;margin-top:4px}
.banner .sub{font-size:.75rem;color:rgba(255,255,255,.85);margin-top:4px}
.banner .bcup{position:absolute;right:10px;bottom:-4px;transform:scale(2.1);transform-origin:bottom right;opacity:.9}
.sectitle{font-size:1rem;font-weight:600;border-left:4px solid var(--brand);padding-left:8px;margin:16px 0 12px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 10px}
.prod{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;min-width:0}
.circle{position:relative;width:100%;max-width:120px;aspect-ratio:1;border-radius:50%;background:var(--tint);display:grid;place-items:center;margin-bottom:6px}
.circle svg{transform:scale(1.6)}
.perk{font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:#9A7440;font-weight:500}
.pname{font-weight:500;font-size:.88rem;line-height:1.3}
.pprice{font-size:.85rem;color:var(--muted)}
.prod.out .circle svg,.prod.out .pname,.prod.out .perk,.prod.out .pprice{opacity:.4}
.soldout{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:color-mix(in srgb,var(--surface) 55%,transparent)}
.soldout b{font-size:.9rem;font-weight:700;letter-spacing:.04em}
.soldout span{font-size:.7rem;color:var(--muted)}

/* account screen */
.screen.acc0{}
.acc{margin:-16px calc(-1 * max(16px,env(safe-area-inset-right,0px))) 0 calc(-1 * max(16px,env(safe-area-inset-left,0px)))}
.acchead{display:flex;align-items:center;gap:6px;background:var(--surface);padding:14px max(16px,env(safe-area-inset-right,0px)) 14px max(16px,env(safe-area-inset-left,0px));border-bottom:1px solid var(--line)}
.who{flex:1;min-width:0;display:flex;align-items:center;gap:12px;text-align:left}
.who b{font-size:1.1rem;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who>span:nth-child(2){min-width:0}
.who small{display:block;font-size:.78rem}
.avatar{width:52px;height:52px;border-radius:50%;flex:0 0 52px;object-fit:cover}
.chev{font-size:1.4rem;color:var(--muted);line-height:1}
.icon{width:42px;height:42px;display:grid;place-items:center;border-radius:99px}
.accbody{padding:16px max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:14px}
.tiles{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:12px}
.tile{position:relative;overflow:hidden;background:var(--surface);border-radius:18px;padding:14px;text-align:left;display:flex;flex-direction:column;gap:2px;min-height:118px;border:1px solid var(--line)}
.tile.tall{grid-row:span 2}
.tile b{font-weight:500;font-size:1rem}
.tile small{font-size:.78rem}
.tile .art{position:absolute;right:0;bottom:0;width:72%;line-height:0}
.tile.tall .art{width:100%}
.tile .art svg{width:100%;height:auto;display:block}
.pbanner{position:relative;overflow:hidden;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:10px;min-height:150px}
.pbanner>div:first-child{display:flex;flex-direction:column;gap:2px;max-width:64%;position:relative;z-index:1}
.pbanner.light{background:var(--gold-soft);color:var(--ink)}
.pbanner.dark{background:var(--hero);color:#fff}
.pbanner.dark small{color:rgba(255,255,255,.85)}
.pbanner .kick{font-size:.66rem;text-transform:uppercase;letter-spacing:.1em;font-weight:600;color:#9A7440}
.pbig{font-size:1.6rem;font-weight:700;line-height:1.15}
.pbtn{align-self:flex-start;background:var(--brand);color:var(--on-brand);border-radius:99px;padding:9px 18px;font-weight:600;font-size:.88rem;position:relative;z-index:1}
.pbanner.dark .pbtn{background:#fff;color:var(--hero)}
.pcup{position:absolute;right:14px;bottom:6px;transform:scale(2.6);transform-origin:bottom right}
.list{background:var(--surface);border-radius:18px;border:1px solid var(--line);overflow:hidden}
.lrow{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;width:100%;padding:16px;text-align:left;font-size:.98rem}
.lrow+.lrow{border-top:1px solid var(--line)}


.photo{display:block;filter:drop-shadow(0 6px 8px rgba(80,40,10,.18))}
.circle .photo,.cup .photo{width:86%;height:86%;object-fit:contain;margin:auto}
.circle,.cup{display:grid;place-items:center}
.mini .cup{width:100%;height:110px!important}
.circle{overflow:hidden}
.bphoto{position:absolute;right:6px;bottom:4px;height:112px;width:auto;filter:drop-shadow(0 6px 10px rgba(0,0,0,.25))}
.bphoto.wide{height:auto;width:44%;bottom:10px}
.pphoto{position:absolute;right:-10px;bottom:8px;width:46%;height:auto;filter:drop-shadow(0 6px 10px rgba(0,0,0,.2))}
.carousel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:18px;scrollbar-width:none;box-shadow:0 8px 20px -14px rgba(0,0,0,.4)}
.carousel::-webkit-scrollbar{display:none}
.slide{flex:0 0 100%;scroll-snap-align:start;line-height:0}
.slide img,.mposter img{width:100%;aspect-ratio:12/5;object-fit:cover;display:block}
.dots{display:flex;justify-content:center;gap:6px;margin-top:-4px}
.dots i{width:6px;height:6px;border-radius:99px;background:var(--line);transition:width .2s}
.dots i.on{width:18px;background:var(--brand)}
.mposter{display:block;width:calc(100% + 24px);margin:0 -12px 4px;line-height:0}
/* sheet */
.scrim{position:absolute;inset:0;background:rgba(0,0,0,.45);z-index:20}
.sheet{position:absolute;left:0;right:0;bottom:0;max-height:88%;background:var(--bg);border-radius:22px 22px 0 0;z-index:21;display:flex;flex-direction:column}
.sheet .body{overflow-y:auto;padding:18px 16px;display:flex;flex-direction:column;gap:18px}
.opts{display:flex;flex-wrap:wrap;gap:8px}
.opt{padding:9px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-size:.88rem;font-weight:500}
.opt[aria-pressed="true"]{border-color:var(--brand);background:var(--gold-soft);font-weight:700}
.foot{border-top:1px solid var(--line);padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));display:flex;gap:12px;align-items:center;background:var(--surface)}
.qty{display:flex;align-items:center;gap:10px}
.qty button{width:34px;height:34px;border-radius:99px;border:1px solid var(--line);font-size:1.1rem}
.cta{flex:1;background:var(--brand);color:var(--on-brand);padding:14px;border-radius:14px;font-weight:700;display:flex;justify-content:space-between}
.cta:disabled{opacity:.4}
.ghost{border:1px solid var(--line);background:var(--surface);padding:10px 14px;border-radius:12px;font-weight:600}

/* cards */
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px}
.line{display:flex;justify-content:space-between;gap:10px;padding:6px 0}
.line.total{font-weight:800;font-size:1.05rem;border-top:1px dashed var(--line);margin-top:6px;padding-top:12px}
.voucher{display:flex;border:1px dashed var(--gold);border-radius:14px;overflow:hidden;background:var(--surface);text-align:left;width:100%}
.voucher .amt{background:var(--gold-soft);padding:14px;font-family:var(--display);font-weight:800;min-width:84px;display:grid;place-items:center;text-align:center}
.voucher .vt{padding:12px;flex:1;min-width:0}
.voucher[aria-pressed="true"]{border-style:solid;box-shadow:0 0 0 2px var(--gold)}
.pill{display:inline-block;font-size:.7rem;font-weight:700;padding:3px 8px;border-radius:99px;background:var(--gold-soft)}
.pill.ok{background:color-mix(in srgb,var(--ok) 18%,transparent);color:var(--ok)}
.steps{display:flex;flex-direction:column;gap:0}
.step{display:flex;gap:12px;padding-bottom:16px;position:relative}
.dot{width:14px;height:14px;border-radius:99px;border:2px solid var(--line);background:var(--surface);margin-top:3px;flex:0 0 14px}
.step.done .dot{background:var(--ok);border-color:var(--ok)}
.step.now .dot{background:var(--gold);border-color:var(--gold)}

/* tabbar */
.tabs{position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);background:var(--surface);border-top:1px solid var(--line);padding:6px max(4px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(4px,env(safe-area-inset-left,0px));z-index:10}
.tabs button{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.68rem;padding:6px 0;color:var(--muted);position:relative}
.tabs button[aria-current="page"]{color:var(--brand);font-weight:700}
.tabs svg{width:22px;height:22px}
.badge{position:absolute;top:0;right:calc(50% - 20px);background:var(--gold);color:#22170F;font-size:.62rem;font-weight:800;min-width:18px;height:18px;border-radius:99px;display:grid;place-items:center;padding:0 4px}
.toast{position:absolute;left:16px;right:16px;bottom:88px;background:var(--ink);color:var(--bg);padding:12px 14px;border-radius:12px;z-index:30;font-weight:600;font-size:.88rem}
input[type=text],input[type=tel]{width:100%;padding:12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit}
@media (prefers-reduced-motion:no-preference){.sheet{animation:up .22s ease-out}@keyframes up{from{transform:translateY(30px);opacity:.6}}}

/* ── live app additions ── */
body{margin:0}
.app{height:100dvh}
input[type=email],input[type=password],textarea{width:100%;padding:12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit}
textarea{min-height:70px;resize:vertical}
.field{display:flex;flex-direction:column;gap:6px}
.err{color:var(--danger);font-size:.85rem}
.linkbtn{color:var(--brand);font-weight:600;text-decoration:underline}
.loading{display:grid;place-items:center;min-height:60vh;color:var(--muted)}
.spin{width:28px;height:28px;border-radius:99px;border:3px solid var(--line);border-top-color:var(--brand);animation:sp 0.8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.cta.full{flex:none;justify-content:center}
.promo-strip{display:flex;flex-direction:column;gap:8px}
.promo-chip{display:flex;gap:10px;align-items:center;background:var(--surface);border:1px dashed var(--brand);border-radius:12px;padding:10px 12px;font-size:.85rem;text-align:left;width:100%}
.promo-chip b{color:var(--brand)}
.pill.bad{background:color-mix(in srgb,var(--danger) 14%,transparent);color:var(--danger)}
.offline{background:var(--ink);color:var(--bg);font-size:.78rem;text-align:center;padding:6px}
.install{display:flex;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 12px;font-size:.85rem}
.install img{width:36px;height:36px;border-radius:9px}
.voucher:disabled{opacity:.45}
