/* Mama T's web app. Mirrors the iOS app: dark, warm gradient, glass cards, fried-golden orange. */
:root {
  --accent: #fa731f;
  --accent-ink: #fff;
  --green: #6bb033;
  --yellow: #ffd60a;
  --red: #ff5a4f;
  --blue: #3b8cff;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.38);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.14);
  --field: rgba(255, 255, 255, 0.09);
  --col: 680px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
/* Safari tints its own bars from these two colours (top: theme-color in index.html; bottom: the page background),
   so the page colour is the gradient's warm mid-brown rather than near-black. */
html { background: #40230e; }
body {
  position: relative;
  /* No background here: with one on <html>, a body background would paint OVER the fixed gradient layer (.bg, z-index -1). */
  background: transparent;
  color: var(--text);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh; min-height: 100dvh;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
a { color: inherit; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* background
   iOS 26 Safari does not paint position:fixed layers under its floating bottom bar, and it colours its top and bottom
   bars from the <html> background (theme-color is ignored). So the gradient is NOT a fixed layer: it is part of the
   page and scrolls with it, which Safari does draw under the bars. It starts in the same brown as <html>, so the
   status bar, the header and the page read as one surface, and it warms up and turns green further down. The glow
   spots repeat every 1500px so every screenful has colour in it; each one fades out inside its own 1500px tile,
   otherwise the tile edge shows as a hard line. */
.bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    /* the last stretch melts back into the <html> brown, which is what Safari shows below the end of the page */
    linear-gradient(to top, #40230e 0, rgba(64, 35, 14, 0) 260px) bottom / 100% 260px no-repeat,
    radial-gradient(420px 420px at 0% 430px, rgba(250, 115, 31, 0.34), transparent) 0 0 / 100% 1500px repeat-y,
    radial-gradient(320px 320px at 100% 700px, rgba(255, 214, 10, 0.14), transparent) 0 0 / 100% 1500px repeat-y,
    radial-gradient(440px 440px at 100% 1050px, rgba(107, 176, 51, 0.30), transparent) 0 0 / 100% 1500px repeat-y,
    linear-gradient(180deg, #40230e 0, #55260b 420px, #3a2410 55%, #1f2c15 100%); }
.bg i { display: none; }

/* splash */
#splash { position: fixed; inset: 0; z-index: 100; background: #e7bb13; display: grid; place-items: center; transition: opacity 0.45s ease-out; }
#splash.out { opacity: 0; pointer-events: none; }
.splash-in { text-align: center; animation: breathe 1.1s ease-in-out; }
.splash-in img { width: min(280px, 62vw); height: auto; margin: 0 auto; }
.splash-in p { margin-top: 6px; color: #cc3d1f; font-weight: 800; letter-spacing: 3.5px; font-size: clamp(13px, 4.2vw, 19px); animation: fadein 0.5s 0.2s both; }
@keyframes breathe { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* layout */
.app { max-width: var(--col); margin: 0 auto; }
.sticky { position: sticky; top: 0; z-index: 20; padding-top: var(--safe-t);
  background: rgba(64, 35, 14, 0.82); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
@media (min-width: 720px) { .sticky { border-radius: 0 0 22px 22px; } }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 6px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #e7bb13; flex: none; }
.brand h1 { font-size: 17px; font-weight: 800; line-height: 1.15; }
.status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.status.open i { background: #34c759; }
.status.closed i { background: var(--red); }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 20px; font-weight: 700; font-size: 14.5px;
  background: var(--glass); border: 1px solid var(--line); flex: none; }
.pill-btn:hover { background: var(--glass-strong); }

.search { display: flex; align-items: center; gap: 8px; margin: 4px 16px 8px; padding: 0 12px; height: 40px; border-radius: 12px; background: var(--field); color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.6); }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; scroll-behavior: smooth; }
.tabs::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--line); transition: background 0.2s, border-color 0.2s; }
.chip.on { background: var(--accent); border-color: transparent; }

main { padding-bottom: 150px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 16px 0; }
.quick a, .quick button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 48px; border-radius: 16px; font-size: 14.5px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--line); text-decoration: none; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.quick a:hover, .quick button:hover { background: var(--glass-strong); }
.quick svg { flex: none; }

.deals { display: flex; gap: 10px; overflow-x: auto; padding: 16px 16px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
.deals::-webkit-scrollbar { display: none; }
.deal { position: relative; flex: none; width: 240px; height: 120px; border-radius: 16px; overflow: hidden; scroll-snap-align: start; text-align: left; background: #2a1a10; }
.deal img { width: 100%; height: 100%; object-fit: cover; }
.deal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.82)); }
.deal .txt { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; }
.deal .badge { display: inline-block; padding: 3px 8px; border-radius: 99px; background: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 3px; }
.deal.off .badge { background: #777; }
.deal b { display: block; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal span.sub { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
div.deal { cursor: default; }

.cat { scroll-margin-top: 160px; }
.cat-h { padding: 18px 16px 6px; }
.cat-h h2 { font-size: 20px; font-weight: 700; }
.cat-h p { font-size: 14.5px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; position: relative; }
.row + .row::before { content: ""; position: absolute; left: 104px; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, 0.12); }
.row.sold { opacity: 0.55; }
.row.fri { opacity: 0.88; }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }
.thumb { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: rgba(255, 255, 255, 0.07); flex: none; }
.row .info { min-width: 0; }
.row .name { font-size: 16.5px; font-weight: 600; line-height: 1.25; }
.row .desc { font-size: 14.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.row .price { font-size: 14.5px; font-weight: 700; }
.tag { font-size: 10.5px; font-weight: 800; padding: 3px 6px; border-radius: 6px; background: var(--accent); }
.tag.gray { background: #7c7c80; }
.tag.blue { background: var(--blue); }
.plus { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; transition: transform 0.15s; }
.plus:active { transform: scale(0.92); }
.plus.dis { background: rgba(142, 142, 147, 0.4); color: rgba(255, 255, 255, 0.5); }
.remind { flex: none; height: 40px; padding: 0 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700; background: var(--glass); border: 1px solid var(--line); white-space: nowrap; }
.remind.set { background: rgba(107, 176, 51, 0.5); }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 19px; margin-bottom: 4px; }
.foot { padding: 0 16px 170px; margin-top: -120px; color: var(--faint); font-size: 12.5px; text-align: center; }
.foot a { color: var(--muted); }

/* bottom bar: order pills + cart */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 16px calc(10px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.bottom > * { pointer-events: auto; width: 100%; max-width: calc(var(--col) - 40px); }
.opill, .cartbar { display: flex; align-items: center; gap: 12px; border-radius: 26px; border: 1px solid var(--line); text-align: left;
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); animation: rise 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.opill { min-height: 56px; padding: 10px 14px; background: rgba(60, 40, 22, 0.78); }
.opill.s-new { background: rgba(120, 70, 10, 0.78); }
.opill.s-accepted { background: rgba(20, 60, 120, 0.78); }
.opill.s-ready { background: rgba(40, 90, 20, 0.82); }
.opill .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #ff9f0a; }
.opill.s-accepted .ic { background: var(--blue); }
.opill.s-ready .ic { background: var(--green); }
.opill .t { flex: 1; min-width: 0; }
.opill small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.opill b { display: block; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff3b30; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.chev { color: var(--muted); flex: none; }
.cartbar { padding: 12px 18px; background: var(--accent); border-color: rgba(255, 255, 255, 0.25); font-weight: 700; font-size: 16.5px; }
.cartbar .n { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; }
.cartbar .l { flex: 1; }

/* sheets */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.5); display: flex; align-items: flex-end; justify-content: center; animation: fadein 0.2s; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 94vh; max-height: 94dvh; height: 94dvh; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px 24px 0 0; background: linear-gradient(135deg, #1c120d 0%, #47200a 55%, #1a2914 100%); border: 1px solid var(--line); border-bottom: 0;
  animation: up 0.32s cubic-bezier(0.2, 0.85, 0.3, 1); box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5); }
.sheet.auto { height: auto; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.backdrop.closing { animation: fadeout 0.18s forwards; }
.backdrop.closing .sheet { animation: down 0.18s forwards; }
@keyframes fadeout { to { opacity: 0; } }
@keyframes down { to { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) {
  .backdrop { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; border-bottom: 1px solid var(--line); height: min(820px, 92dvh); max-height: 92dvh; }
  .sheet.auto { height: auto; }
}
.sh-head { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 8px 10px; flex: none; }
.sh-head h2 { flex: 1; text-align: center; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-head .side { width: 72px; display: flex; }
.sh-head .side.r { justify-content: flex-end; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); }
.text-btn { height: 40px; padding: 0 10px; font-weight: 600; color: var(--accent); }
.sh-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 20px; overscroll-behavior: contain; }
.sh-foot { flex: none; padding: 10px 16px calc(12px + var(--safe-b)); background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55)); display: flex; gap: 12px; align-items: center; }
.sh-foot:empty { display: none; }

.card { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.card + .card, .card + .btn, .stack > * + * { margin-top: 14px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card.warn { background: rgba(255, 159, 10, 0.22); font-size: 14px; font-weight: 500; border-radius: 16px; padding: 14px; }
.card.gold { background: rgba(255, 214, 10, 0.13); }
.btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 14px 22px; border-radius: 20px; font-size: 17px; font-weight: 700; text-align: left;
  background: var(--glass); border: 1px solid var(--line); transition: transform 0.15s, opacity 0.2s; text-decoration: none; }
.btn.center { justify-content: center; text-align: center; }
.btn.primary { background: var(--accent); border-color: rgba(255, 255, 255, 0.22); }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; }
.field { display: block; width: 100%; padding: 13px 14px; border-radius: 13px; background: var(--field); border: 1px solid transparent; outline: 0; font-size: 16px; }
.field:focus { border-color: var(--accent); }
.field::placeholder { color: var(--faint); }
textarea.field { resize: none; min-height: 84px; }
.field + .field { margin-top: 10px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.ico { flex: none; vertical-align: -0.2em; }
.card.notify { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-align: left; }
.card.notify.on { color: inherit; }
.card.notify .ico { margin-top: 1px; font-size: 16px; }
.err { color: #ff6b61; font-size: 14px; font-weight: 600; margin-top: 12px; text-align: center; }
.err:empty { display: none; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 80px 0; }

/* item sheet */
.hero { width: 100%; height: 230px; object-fit: cover; border-radius: 22px; background: rgba(255, 255, 255, 0.07); }
.item-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; }
.item-h h3 { font-size: 27px; font-weight: 700; line-height: 1.15; }
.item-h span { font-size: 21px; font-weight: 700; }
.item-d { color: var(--muted); margin-top: 10px; }
.fixed-note { color: var(--accent); font-size: 13.5px; font-weight: 600; margin-top: 12px; }
.grp { margin-top: 20px; }
.grp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.grp-h b { font-size: 17px; }
.grp-h span { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); }
.grp-h span.req { background: rgba(250, 115, 31, 0.35); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 2px solid transparent; text-align: left; }
.tile.on { background: rgba(250, 115, 31, 0.18); border-color: var(--accent); }
.tile img { width: 100%; height: 84px; object-fit: cover; border-radius: 12px; background: rgba(255, 255, 255, 0.07); }
.tile .l { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 14.5px; font-weight: 600; }
.tile small { color: var(--muted); }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 10px; border-radius: 14px; text-align: left; }
.opt.on { background: rgba(250, 115, 31, 0.15); }
.opt img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.opt .n { flex: 1; font-weight: 500; }
.opt .d { color: var(--muted); }
.mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--faint); flex: none; display: grid; place-items: center; }
.mark.sq { border-radius: 6px; }
.on > .mark, .on .mark { background: var(--accent); border-color: var(--accent); }
.on .mark::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.stepper { display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 6px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); flex: none; }
.stepper button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.stepper b { min-width: 22px; text-align: center; font-size: 17px; }
.stepper.sm { height: 44px; border-radius: 16px; padding: 0 2px; }
.stepper.sm button { width: 36px; height: 36px; }

/* cart */
.line { padding: 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.line + .line { margin-top: 12px; }
.line .t { display: flex; align-items: flex-start; gap: 12px; }
.line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: rgba(255, 255, 255, 0.07); }
.line .i { flex: 1; min-width: 0; }
.line .i b { display: block; font-size: 16.5px; }
.line .i small { display: block; font-size: 13px; color: var(--muted); }
.line .i span { font-size: 14.5px; font-weight: 600; }
.line .edit { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; text-align: left; font-size: 14.5px; color: var(--muted); }
.line .edit.has { color: var(--text); }
.line .edit span { flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* checkout */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, 0.1); }
.seg button { height: 36px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.seg button.on { background: rgba(255, 255, 255, 0.24); }
.sum { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 2px 0; }
.sum.gold { color: var(--yellow); font-weight: 600; }
.sum.total { font-size: 17px; font-weight: 700; border-top: 1px solid rgba(255, 255, 255, 0.3); margin-top: 8px; padding-top: 10px; }
.pts-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pts-h b { color: var(--yellow); font-size: 17px; }
.pts-h small { color: var(--muted); font-size: 12.5px; text-align: right; }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; margin: 12px 0 8px; }
.bar i { display: block; height: 100%; background: var(--yellow); border-radius: 3px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.switch-row b { display: block; }
.switch-row small { color: var(--muted); font-size: 12.5px; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 16px; background: rgba(255, 255, 255, 0.22); flex: none; transition: background 0.2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* order tracking */
.track { text-align: center; padding-top: 8px; }
.track .seal { width: 76px; height: 76px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 4px auto 12px; }
.track .seal.pop { animation: pop 0.5s; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.track h3 { font-size: 34px; font-weight: 800; }
.track .st { font-size: 20px; font-weight: 600; margin-top: 2px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0 2px; }
.steps div { font-size: 12px; font-weight: 700; color: var(--faint); }
.steps div::before { content: ""; display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); margin-bottom: 6px; }
.steps div.on { color: var(--text); }
.steps div.on::before { background: var(--green); }
.track .card { text-align: left; }
.oline { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; }
.oline img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: rgba(255, 255, 255, 0.07); }
.oline .i { flex: 1; min-width: 0; }
.oline b { font-size: 14.5px; }
.oline small { display: block; font-size: 12.5px; color: var(--muted); }
.oline small.note { color: var(--yellow); }
.thanks { text-align: center !important; }
.thanks b { font-size: 17px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thanks p { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.thanks .gold { color: var(--yellow); font-size: 12.5px; font-weight: 600; }
.thanks .addr { font-size: 13px; }
.rowbtn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); text-align: left; font-size: 14.5px; font-weight: 600; margin-top: 14px; }
.rowbtn.gold { background: rgba(255, 214, 10, 0.13); }
.rowbtn .t { flex: 1; min-width: 0; }
.rowbtn .t b { display: block; font-size: 17px; }
.rowbtn .t small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.rowbtn .one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 5; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 18px; background: rgba(60, 130, 30, 0.95); font-size: 14.5px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); animation: drop 0.3s; cursor: pointer; }
@keyframes drop { from { transform: translate(-50%, -30px); opacity: 0; } }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.chat .cap { text-align: center; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.chat .none { text-align: center; color: var(--muted); font-size: 18px; padding: 40px 12px; }
.msg { max-width: 82%; align-self: flex-start; }
.msg.me { align-self: flex-end; text-align: right; }
.msg p { display: inline-block; padding: 11px 15px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); font-size: 17px; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me p { background: var(--accent); }
.msg small { display: block; font-size: 12px; color: var(--faint); margin-top: 3px; }
.chat-foot { flex-direction: column; align-items: stretch; gap: 8px; background: rgba(0, 0, 0, 0.25); }
.quickr { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.quickr::-webkit-scrollbar { display: none; }
.quickr button { flex: none; min-height: 44px; padding: 0 15px; border-radius: 22px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line); font-weight: 600; font-size: 15px; white-space: nowrap; }
.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 50px; max-height: 120px; border-radius: 25px; padding: 13px 18px; }
.send { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.send:disabled { opacity: 0.45; }

/* rewards */
.logo-lg { width: 100px; height: 100px; border-radius: 50%; margin: 6px auto 10px; background: #e7bb13; }
.center { text-align: center; }
.big-title { font-size: 27px; font-weight: 800; text-align: center; margin-bottom: 16px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.perks div { padding: 12px 4px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); text-align: center; }
.perks b { display: block; color: var(--yellow); font-size: 16.5px; font-weight: 800; }
.perks small { font-size: 12px; color: var(--muted); }
.code { font-size: 34px; font-weight: 700; text-align: center; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
.demo { padding: 12px; border-radius: 12px; background: rgba(255, 214, 10, 0.2); font-size: 14.5px; font-weight: 600; text-align: center; margin-bottom: 10px; }
.links { display: flex; justify-content: space-between; margin-top: 14px; }
.links button { font-size: 14.5px; font-weight: 600; color: var(--accent); min-height: 40px; }
.links button:disabled { color: var(--faint); }
.sec-h { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); margin: 22px 6px 8px; display: flex; justify-content: space-between; }
.sec-f { font-size: 12.5px; color: var(--muted); margin: 8px 6px 0; }
.list { border-radius: 16px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
.list > * { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 11px 14px; text-align: left; text-decoration: none; }
.list > * + * { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.list .grow { flex: 1; min-width: 0; }
.list .val { color: var(--muted); }
.list .danger { color: #ff6b61; }
.list .link { color: var(--accent); }
.acct { display: flex; align-items: center; gap: 14px; }
.ring { position: relative; width: 72px; height: 72px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ring b { font-size: 19px; font-weight: 800; }
.ring small { font-size: 11px; color: var(--muted); }
.acct .who b { display: block; font-size: 17px; }
.acct .who span { display: block; font-size: 14.5px; color: var(--muted); }
.acct .who small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.acct .who small.ok { color: #6ee06a; }
.hist img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: rgba(255, 255, 255, 0.07); }
.hist .h1 { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; }
.hist .st { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 99px; background: rgba(107, 176, 51, 0.3); }
.hist .st.act { background: rgba(250, 115, 31, 0.35); }
.hist .st.can { background: rgba(255, 59, 48, 0.3); }
.hist small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hist .r { text-align: right; flex: none; }
.hist .r b { display: block; font-size: 14.5px; font-weight: 600; }
.hist .r span { font-size: 11px; color: var(--muted); }
.hist .r span.pts { color: var(--yellow); font-weight: 700; }
.hours > div.today { background: rgba(250, 115, 31, 0.2); font-weight: 700; }
.hours .closed { color: #ff6b61; }

#toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 90; padding: 11px 16px; border-radius: 16px; background: rgba(20, 20, 20, 0.92); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.25s; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; }

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

/* Punch card */
.stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 12px 0 8px; }
.stamps i { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; line-height: 1;
  border: 1.5px dashed rgba(255, 214, 10, 0.45); color: #40230e; }
.stamps i.on { background: var(--yellow); border-style: solid; border-color: var(--yellow); }
.seg button:disabled { opacity: 0.5; font-size: 12.5px; cursor: default; }

/* ---------- online payment + delivery ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.two .field + .field { margin-top: 0; }
.seg.five { grid-template-columns: repeat(5, 1fr); }
.seg.five button { font-size: 13px; padding: 0 2px; }
.hint.q { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 22px; }
.hint.ok { color: #9be15d; font-weight: 600; }
.hint.bad { color: #ff8a80; font-weight: 600; }
.linkbtn { color: var(--accent); font-weight: 700; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:disabled { opacity: 0.5; }
.spin.sm { width: 14px; height: 14px; border-width: 2px; flex: none; }
.steps.five { grid-template-columns: repeat(5, 1fr); gap: 4px; }
.steps.five div { font-size: 10.5px; }
.opill.s-out_for_delivery { background: rgba(70, 45, 130, 0.82); }
.opill.s-out_for_delivery .ic { background: #8b6cf0; }
.track .seal .spin { width: 34px; height: 34px; border-width: 3.5px; }
