:root {
  --bg: #F6F1EB;
  --surface: #FFFFFF;
  --surface-2: #F3ECE4;
  --ink: #24170E;
  --ink-2: #6B5646;
  --ink-3: #A39080;
  --line: #EADFD4;
  --brand: #2B1B11;
  --brand-2: #4B2E1C;
  --gold: #E6A93A;
  --gold-2: #F6D48C;
  --gold-soft: #FBF0D9;
  --ok: #17915B;
  --ok-soft: #DFF3E8;
  --bad: #D2402F;
  --bad-soft: #FBE5E1;
  --warn: #C97C08;
  --warn-soft: #FCEEDA;
  --pix: #0E9F8E;
  --card: #3E63D6;
  --cash: #7A9A2E;
  --shadow: 0 1px 2px rgba(43,27,17,.05), 0 6px 20px rgba(43,27,17,.06);
  --shadow-lg: 0 18px 50px rgba(43,27,17,.22);
  --r: 20px;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120E0B; --surface: #1C1612; --surface-2: #28201A; --ink: #F5EDE4; --ink-2: #C9B6A4; --ink-3: #8E7B6B;
    --line: #2F261F; --brand: #1A120C; --brand-2: #3A2416; --gold-soft: #3A2C14; --ok-soft: #10301F; --bad-soft: #3A1813;
    --warn-soft: #3A2A0E; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #120E0B; --surface: #1C1612; --surface-2: #28201A; --ink: #F5EDE4; --ink-2: #C9B6A4; --ink-3: #8E7B6B;
  --line: #2F261F; --brand: #1A120C; --brand-2: #3A2416; --gold-soft: #3A2C14; --ok-soft: #10301F; --bad-soft: #3A1813;
  --warn-soft: #3A2A0E; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none; min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
svg.i { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Splash ---------- */
.splash { height: 100dvh; display: grid; place-items: center; align-content: center; gap: 24px; background: var(--brand); }
.splash img { width: 96px; height: 96px; border-radius: 28px; box-shadow: var(--shadow-lg); animation: pop .5s ease; }
.spinner { width: 26px; height: 26px; border: 3px solid rgba(246,212,140,.25); border-top-color: var(--gold-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }

/* ---------- Shell ---------- */
.shell { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: calc(var(--top) + 12px) 18px 14px;
  background: linear-gradient(160deg, var(--brand-2), var(--brand) 70%);
  color: #FFF4E2; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.topbar img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.brand-t { font-family: 'Fraunces', Georgia, serif; font-size: 18px; line-height: 1.1; color: var(--gold-2); letter-spacing: -.2px; }
.brand-s { font-size: 12px; color: #C9A879; font-weight: 600; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.sync-dot.pend { background: var(--gold); box-shadow: 0 0 0 3px rgba(230,169,58,.25); animation: blink 1.2s infinite; }
.sync-dot.off { background: #F87171; box-shadow: 0 0 0 3px rgba(248,113,113,.2); }
@keyframes blink { 50% { opacity: .35; } }
.topbar .grow { flex: 1; min-width: 0; }
.top-chip {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: rgba(214,64,47,.95); color: #fff; font-weight: 800; font-size: 13px;
}
.top-chip svg.i { width: 16px; height: 16px; }

.view { padding: 16px 16px calc(110px + var(--bottom)); animation: fadeUp .28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Bottom nav ---------- */
.nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
  width: 100%; max-width: 520px;
  padding: 8px 10px calc(8px + var(--bottom));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
}
.nav-b { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--ink-3); font-size: 11px; font-weight: 700; position: relative; transition: color .2s; }
.nav-b.on { color: var(--ink); }
.nav-b.on svg.i { stroke-width: 2.4; }
.nav-b.on::after { content: ""; position: absolute; top: -8px; width: 22px; height: 3px; border-radius: 3px; background: var(--gold); }
.nav-badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }
.fab {
  justify-self: center; width: 60px; height: 60px; margin-top: -26px; border-radius: 20px;
  background: linear-gradient(145deg, var(--gold-2), var(--gold)); color: var(--brand);
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(230,169,58,.45), 0 0 0 5px var(--bg);
  transition: transform .15s;
}
.fab svg.i { width: 28px; height: 28px; stroke-width: 2.6; }
.fab:active { transform: scale(.92) rotate(90deg); }

/* ---------- Blocks ---------- */
.hello { display: flex; justify-content: space-between; align-items: flex-end; margin: 4px 2px 14px; }
.hello h1 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.hello p { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.hello p::first-letter { text-transform: uppercase; }

.seg { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 2px; margin-bottom: 14px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 11px; font-weight: 700; font-size: 13px; color: var(--ink-2); transition: all .2s; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.hero {
  border-radius: 26px; padding: 20px; margin-bottom: 14px; color: #FFF4E2; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, #6A3F22 0%, transparent 60%), linear-gradient(160deg, var(--brand-2), var(--brand));
  box-shadow: var(--shadow-lg);
}
.hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(246,212,140,.18), transparent 70%); }
.hero-l { font-size: 12px; font-weight: 700; color: #D9B98A; text-transform: uppercase; letter-spacing: .8px; }
.hero-v { font-size: 36px; font-weight: 800; letter-spacing: -1.2px; margin: 4px 0 2px; color: #fff; }
.hero-d { font-size: 13px; font-weight: 600; color: #D9B98A; }
.hero-d b { color: var(--gold-2); }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.hero-k { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 10px; }
.hero-k span { display: block; font-size: 11px; color: #D9B98A; font-weight: 700; }
.hero-k strong { font-size: 15px; font-weight: 800; color: #fff; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.quick button { background: var(--surface); border-radius: 18px; padding: 14px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow); font-weight: 700; font-size: 12.5px; color: var(--ink); transition: transform .15s; }
.quick button:active { transform: scale(.95); }
.quick .qi { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; }

.sec { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 10px; }
.sec h2 { font-size: 16px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }
.sec .count { font-size: 12px; background: var(--surface-2); color: var(--ink-2); padding: 2px 8px; border-radius: 999px; font-weight: 800; }
.link { color: var(--warn); font-weight: 800; font-size: 13px; }

.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 10px; }

/* Chart */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 18px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-col { width: 100%; max-width: 34px; border-radius: 10px 10px 6px 6px; background: var(--surface-2); position: relative; transition: height .6s cubic-bezier(.2,.8,.2,1); min-height: 6px; }
.bar.on .bar-col { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.bar-v { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.bar-l { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: capitalize; }
.bar.on .bar-l { color: var(--ink); }

/* Stacked */
.stack { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--surface-2); gap: 2px; margin: 4px 0 14px; }
.stack div { transition: flex .6s ease; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.lg { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.lg i { width: 10px; height: 10px; border-radius: 4px; }
.lg b { margin-left: auto; color: var(--ink); }

/* Rows */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.t1 { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2 { color: var(--ink-2); font-size: 13px; font-weight: 600; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t3 { color: var(--ink-3); font-size: 12px; font-weight: 600; margin-top: 2px; }
.val { font-weight: 800; font-size: 16px; letter-spacing: -.3px; white-space: nowrap; }
.av { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.rank { width: 28px; height: 28px; border-radius: 9px; background: var(--gold-soft); color: var(--warn); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.mini-bar { height: 6px; background: var(--surface-2); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.mini-bar div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 4px; }

.btn-sm { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; font-weight: 800; font-size: 13px; white-space: nowrap; transition: transform .12s; }
.btn-sm:active { transform: scale(.94); }
.btn-sm svg.i { width: 17px; height: 17px; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-dark { background: var(--brand); color: var(--gold-2); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.chip svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.c-ok { background: var(--ok-soft); color: var(--ok); }
.c-bad { background: var(--bad-soft); color: var(--bad); }
.c-warn { background: var(--warn-soft); color: var(--warn); }
.c-mute { background: var(--surface-2); color: var(--ink-2); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }

.alert {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); margin-bottom: 10px;
  background: linear-gradient(135deg, #D2402F, #E8604A); color: #fff; box-shadow: 0 10px 26px rgba(210,64,47,.3); width: 100%; text-align: left;
}
.alert .ic { background: rgba(255,255,255,.18); }
.alert .t2 { color: rgba(255,255,255,.85); }

/* Search + filters */
.search { position: relative; margin-bottom: 12px; }
.search svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 20px; height: 20px; }
.search input { width: 100%; padding: 14px 14px 14px 44px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; font-weight: 600; outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex-shrink: 0; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.filters button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters .n { font-size: 11px; background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 1px 7px; }
.filters button.on .n { background: rgba(255,255,255,.18); color: inherit; }

.day-h { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 4px 8px; }
.day-h h3 { font-size: 13px; font-weight: 800; text-transform: capitalize; color: var(--ink-2); }
.day-h span { font-size: 13px; font-weight: 800; color: var(--ink); }

.order { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; width: 100%; text-align: left; position: relative; overflow: hidden; transition: transform .15s; }
.order:active { transform: scale(.985); }
.order::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ok); }
.order.pend::before { background: var(--bad); }
.order .grow { flex: 1; min-width: 0; }
.order .val { text-align: right; }

.empty { text-align: center; padding: 44px 20px; color: var(--ink-2); }
.empty .ic { width: 64px; height: 64px; border-radius: 22px; background: var(--surface-2); margin: 0 auto 14px; color: var(--ink-3); }
.empty .ic svg.i { width: 30px; height: 30px; }
.empty h3 { color: var(--ink); font-size: 16px; margin-bottom: 4px; }

.month { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); margin-bottom: 14px; }
.month button { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); }
.month button:active { background: var(--surface-2); }
.month strong { font-size: 15px; display: inline-block; }
.month strong::first-letter { text-transform: uppercase; }

.menu-list .row { cursor: pointer; }
.menu-list .row .chev { color: var(--ink-3); }

/* ---------- Sheets ---------- */
.backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(20,12,6,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s ease; display: flex; align-items: flex-end; justify-content: center; }
.backdrop.closing { animation: fade .22s ease reverse forwards; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 520px; max-height: calc(100dvh - var(--top) - 24px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lg);
  animation: up .34s cubic-bezier(.2,.9,.25,1);
}
.backdrop.closing .sheet { animation: up .22s ease-in reverse forwards; }
@keyframes up { from { transform: translateY(100%); } }
.sheet-h { padding: 10px 20px 8px; flex-shrink: 0; touch-action: none; }
.grab { width: 42px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 12px; }
.sheet-h .hrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-h h2 { font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.x { width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.x svg.i { width: 18px; height: 18px; }
.sheet-b { padding: 8px 20px 20px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet-f { padding: 12px 20px calc(14px + var(--bottom)); border-top: 1px solid var(--line); background: var(--surface); flex-shrink: 0; display: flex; gap: 10px; align-items: center; }

.fl { display: block; font-size: 12px; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .6px; margin: 16px 2px 8px; }
.inp { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; font-weight: 700; outline: none; transition: border-color .2s, box-shadow .2s; appearance: none; }
.inp:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); }
.inp-money { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sugs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sugs button { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink-2); }

.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dish { background: var(--surface); border: 2px solid transparent; border-radius: 18px; padding: 12px; box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, transform .12s; position: relative; min-height: 104px; }
.dish.sel { border-color: var(--gold); background: color-mix(in srgb, var(--gold-soft) 60%, var(--surface)); }
.dish:active { transform: scale(.97); }
.dish .dn { padding-right: 26px; font-weight: 800; font-size: 14px; line-height: 1.2; }
.dish .dp { font-weight: 800; color: var(--warn); font-size: 14px; margin-top: auto; }
.stepper { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; background: var(--surface-2); border-radius: 12px; padding: 3px; }
.stepper button { width: 34px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.stepper button svg.i { width: 16px; height: 16px; stroke-width: 2.8; }
.stepper b { font-size: 15px; }
.dish .qbadge { position: absolute; top: 8px; right: 8px; background: var(--gold); color: var(--brand); border-radius: 9px; min-width: 24px; height: 24px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }

.pay { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay button { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; color: var(--ink-2); transition: all .18s; }
.pay button.on { border-color: currentColor; background: color-mix(in srgb, currentColor 10%, var(--surface)); }
.pay .p-fiado.on { color: var(--bad); }
.pay .p-pix.on { color: var(--pix); }
.pay .p-card.on { color: var(--card); }
.pay .p-cash.on { color: var(--cash); }
.pay-big { grid-template-columns: 1fr; }
.pay-big button { flex-direction: row; justify-content: flex-start; padding: 16px; font-size: 16px; gap: 14px; color: var(--ink); }

.switch { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 16px; padding: 14px 16px; margin-top: 10px; box-shadow: var(--shadow); font-weight: 700; width: 100%; text-align: left; }
.tg { width: 50px; height: 30px; border-radius: 30px; background: var(--line); position: relative; transition: background .2s; flex-shrink: 0; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .22s cubic-bezier(.3,1.4,.5,1); }
.switch.on .tg { background: var(--ok); }
.switch.on .tg::after { transform: translateX(20px); }

.total-box { flex: 1; min-width: 0; }
.total-box span { display: block; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.total-box strong { font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: 16px; font-weight: 800; font-size: 16px; transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-p { background: var(--brand); color: var(--gold-2); box-shadow: 0 8px 20px rgba(43,27,17,.3); }
.btn-g { background: var(--surface-2); color: var(--ink); }
.btn-d { background: var(--bad-soft); color: var(--bad); }
.btn-ok { background: var(--ok); color: #fff; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.actions .btn { font-size: 14px; padding: 14px 10px; }
.actions .full { grid-column: 1 / -1; }

.detail-h { text-align: center; padding: 6px 0 12px; }
.detail-h .av { width: 64px; height: 64px; border-radius: 22px; font-size: 22px; margin: 0 auto 10px; }
.detail-h h3 { font-size: 22px; font-weight: 800; }
.detail-h .big { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-top: 4px; }

.cat-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pick button { padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.cat-pick button.on { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }

.dialog { width: calc(100% - 40px); max-width: 360px; margin: auto; background: var(--surface); border-radius: 26px; padding: 24px 20px 18px; text-align: center; animation: pop .25s cubic-bezier(.2,1.4,.4,1); box-shadow: var(--shadow-lg); }
.dialog .ic { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 12px; }
.dialog h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.dialog p { color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: pre-line; }
.dialog .actions { margin-top: 20px; }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(96px + var(--bottom)); transform: translateX(-50%); z-index: 200; width: calc(100% - 32px); max-width: 488px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 16px; border-radius: 18px; background: #24170E; color: #FFF4E2; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14px; animation: toastIn .3s cubic-bezier(.2,1.2,.4,1); pointer-events: auto; }
.toast.out { animation: toastIn .2s ease reverse forwards; }
.toast .ti { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.toast .ti svg.i { width: 17px; height: 17px; stroke-width: 2.6; }
.toast span { flex: 1; }
.toast button { color: var(--gold-2); font-weight: 800; padding: 6px 8px; border-radius: 10px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

.banner { display: flex; gap: 10px; align-items: center; background: var(--warn-soft); color: var(--warn); border-radius: 16px; padding: 12px 14px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }

@media (min-width: 521px) {
  body { background: radial-gradient(circle at 50% 0%, var(--surface-2), var(--bg) 60%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Seletor de prato */
.combo { position: relative; }
.combo-list { margin-top: 6px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.combo-list[hidden] { display: none; }
.combo-op { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 13px 14px; font-weight: 700; font-size: 15px; }
.combo-op + .combo-op { border-top: 1px solid var(--line); }
.combo-op span:first-child { flex: 1; min-width: 0; }
.combo-op b { color: var(--warn); font-weight: 800; }
.combo-op:active { background: var(--surface-2); }
.combo-vazio { padding: 14px; color: var(--ink-2); font-weight: 600; }

/* Topo da marca */
.topbar {
  padding: calc(var(--top) + 14px) 18px 18px; gap: 14px;
  border-radius: 0 0 26px 26px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(230,169,58,.28), transparent 55%),
    radial-gradient(60% 120% at 0% 100%, rgba(120,60,25,.55), transparent 60%),
    linear-gradient(160deg, #4B2E1C, #2B1B11 70%);
  box-shadow: 0 10px 30px rgba(43,27,17,.28);
  overflow: hidden;
}
.topbar::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(246,212,140,.45), transparent); }
.logo-ring { width: 56px; height: 56px; border-radius: 18px; padding: 2px; flex-shrink: 0; background: linear-gradient(145deg, #F6D48C, #B7791F); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.logo-ring img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; display: block; box-shadow: none; }
.brand-k { font-size: 10.5px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; color: #C9A879; }
.brand-t { font-size: 21px; margin-top: 1px; background: linear-gradient(180deg, #FFE7B0, #E6A93A); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-s { font-size: 11.5px; margin-top: 4px; color: #BFA07A; }
.page-t { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 2px 2px 14px; }
@media (max-width: 360px) { .brand-t { font-size: 18px; } .logo-ring { width: 48px; height: 48px; } }

/* Cardápio do dia */
.dia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.dia-item { position: relative; background: var(--surface); border-radius: 18px; padding: 14px 14px 12px; box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 92px; border: 1.5px solid transparent; transition: transform .12s, border-color .2s; }
.dia-item:active { transform: scale(.96); border-color: var(--gold); }
.dia-item .dn { font-weight: 800; font-size: 14px; line-height: 1.25; padding-right: 30px; }
.dia-item .dp { font-weight: 800; color: var(--warn); font-size: 14px; margin-top: auto; }
.dia-item .dv { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.dia-item .dplus { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 10px; background: linear-gradient(145deg, var(--gold-2), var(--gold)); color: var(--brand); display: grid; place-items: center; }
.dia-item .dplus svg.i { width: 16px; height: 16px; stroke-width: 2.8; }
.dia-vazio { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--surface); border: 1.5px dashed var(--gold); border-radius: var(--r); padding: 14px; margin-bottom: 16px; color: var(--ink); }
#d-lista .switch { margin-top: 8px; }
