/* =====================================================================
   Visual baseado no kit "Yuumzy" (pasta do zip de referência):
   - Fonte Inter (Bold / SemiBold / Medium)
   - Cores: Laranja #FF4A0A, Preto #141515, Off White #FAFAFA,
     Cinza #B6B6B7, Cinza suave #F4F4F4, Amarelo #FFB82A, Vermelho #E04129
   - Botões em pílula (raio = metade da altura), cartões com raio 20,
     painéis com raio 30 e menu de baixo flutuante com raio 40.
   ===================================================================== */
/* Tema escuro (padrão): cores tiradas da imagem de referência,
   fundo verde-escuro quase preto, laranja queimado, preços em dourado e brilho marrom embaixo. */
:root {
  --bg: #111615;
  --surface: #1a201f;
  --surface-2: #212827;
  --field: #161c1b;          /* fundo dos campos */
  --raised: #1d2423;         /* cartões "soltos" (chat, sugestões, botão contorno) */
  --placeholder: #262d2c;
  --line: rgba(255, 255, 255, .08);
  --line-warm: rgba(242, 106, 33, .45);
  --text: #f3efe9;
  --muted: #9aa09e;
  --grey: #6e7573;
  --primary: #f26a21;
  --primary-ink: #ffffff;
  --primary-soft: rgba(242, 106, 33, .13);
  --price: #d6a86c;          /* preços em dourado, como na referência */
  --ring: #d6a86c;           /* aro do prato selecionado */
  --yellow: #f2b24a;
  --red: #ff6b5e;
  --ok: #5fd68a;
  --topbar-bg: rgba(17, 22, 21, .9);
  --toast-bg: #f3efe9;
  --toast-ink: #111615;
  --contrast-bg: #0b0f0e;    /* cartão "Total médio" */
  --on-primary-bg: rgba(17, 22, 21, .92);  /* botão em cima da barra laranja */
  --on-primary-ink: #ffffff;
  --banner-bg: radial-gradient(circle at 88% 15%, rgba(242, 106, 33, .55), transparent 58%), linear-gradient(135deg, #2a1f17, #1a201f);
  --page-glow: radial-gradient(120% 55% at 50% 118%, rgba(160, 86, 22, .55) 0%, rgba(120, 60, 15, .16) 45%, transparent 70%);
  --r-card: 20px;
  --r-panel: 30px;
  --pill: 999px;
  --shadow: 0 14px 34px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* Tema claro: o kit "Yuumzy" original (escolha em Casa → Tema). */
:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #fafafa;
  --field: #ffffff;
  --raised: #ffffff;
  --placeholder: #d9d9d9;
  --line: #e6e6e6;
  --line-warm: rgba(255, 74, 10, .45);
  --text: #141515;
  --muted: #8e8e90;
  --grey: #b6b6b7;
  --primary: #ff4a0a;
  --primary-soft: #fff0ea;
  --price: #ff4a0a;
  --ring: #ff4a0a;
  --yellow: #ffb82a;
  --red: #e04129;
  --ok: #1f9d55;
  --topbar-bg: rgba(255, 255, 255, .94);
  --toast-bg: #141515;
  --toast-ink: #ffffff;
  --contrast-bg: #141515;
  --on-primary-bg: #ffffff;
  --on-primary-ink: #ff4a0a;
  --banner-bg: linear-gradient(135deg, #ff8a4c, #ff4a0a);
  --page-glow: none;
  --shadow: 0 10px 30px rgba(20, 21, 21, .08);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--page-glow) fixed, var(--bg);
  color: var(--text);
  font: 500 15px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}
main { max-width: 480px; margin: 0 auto; padding: 0 20px 24px; overflow-x: clip; }
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 12px 0 6px; }
h2 { font-size: 1rem; font-weight: 700; margin: 28px 0 12px; }
h3 { font-size: 1rem; font-weight: 700; margin: 0; }
p { margin: 6px 0; }
a { color: var(--primary); }
.muted { color: var(--muted); font-size: .8rem; font-weight: 500; }
.center { text-align: center; }
.orange { color: var(--primary); }
.yellow { color: var(--yellow); }
[hidden] { display: none !important; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.small svg.i, .badge-tag svg.i, .chip svg.i { width: 15px; height: 15px; }

/* ---------- Topo ("Hi, Nina / Arizona" do kit) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  max-width: 480px; margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 20px 12px;
  background: var(--topbar-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.house-btn { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); font: inherit; }
.house-btn b { display: block; font-size: .9rem; font-weight: 700; }
.house-btn span { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.house-btn span svg { color: var(--primary); width: 16px; height: 16px; }
.icon-plain { position: relative; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--text); display: grid; place-items: center; }
.icon-plain .dot {
  position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--primary); color: #fff; font: 700 10px/18px "Inter", system-ui; text-align: center;
}
.avatar {
  width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--placeholder); color: var(--text); font-weight: 700; text-decoration: none;
}
.avatar.round { border-radius: 50%; }
.avatar.orange { background: var(--primary-soft); color: var(--primary); }

/* ---------- Menu de baixo flutuante (Navigation Bar do kit) ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 6;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: min(400px, calc(100% - 24px)); height: 72px;
  display: flex; align-items: center; justify-content: space-around; padding: 0 10px;
  background: var(--surface); border-radius: 40px; box-shadow: var(--shadow);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--grey); text-decoration: none; font-size: .62rem; font-weight: 700; padding: 6px 4px;
}
.tabbar a svg.i { width: 24px; height: 24px; }
.tabbar a.active { color: var(--primary); }

/* ---------- Botões (Button 1 / 2 / 3 do kit) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 24px; border-radius: 28px;
  font: 700 1rem "Inter", system-ui; white-space: nowrap; text-decoration: none; cursor: pointer;
  background: var(--surface); color: var(--grey); border: 1.5px solid transparent;
}
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.outline { background: var(--raised); color: var(--primary); border-color: rgba(255, 74, 10, .45); }
.btn.white { background: var(--on-primary-bg); color: var(--on-primary-ink); }
.btn.dark { background: var(--text); color: #fff; }
.btn.danger { background: transparent; color: var(--red); border-color: rgba(224, 65, 41, .35); }
.btn.block { width: 100%; margin-top: 14px; }
.btn.small { min-height: 36px; padding: 0 16px; border-radius: 18px; font-size: .78rem; gap: 6px; }
.btn:disabled { opacity: .55; cursor: wait; }
.actions { display: flex; gap: 12px; margin: 16px 0; }
.actions > * { flex: 1 1 0; min-width: 0; padding: 0 12px; }

/* Botão quadrado-redondo laranja com ícone (ex.: carrinho ao lado da busca) */
.sq-btn {
  width: 48px; height: 48px; border-radius: 24px; flex: none; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--primary); color: #fff; text-decoration: none;
}
.sq-btn.sm { width: 36px; height: 36px; border-radius: 18px; }
.sq-btn.sm svg.i { width: 18px; height: 18px; }
.sq-btn.light { background: var(--surface); color: var(--text); }
.sq-btn.white { background: var(--on-primary-bg); color: var(--on-primary-ink); }

.icon-btn { background: none; border: 0; color: var(--grey); cursor: pointer; padding: 6px; display: inline-grid; place-items: center; }
.icon-btn:hover { color: var(--text); }

/* Selos ("4.8", "Gold Member", "On the Way"...) */
.badge-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 25px; padding: 0 10px; border-radius: 10px;
  font-size: .72rem; font-weight: 700; white-space: nowrap; background: var(--primary); color: #fff;
}
.badge-tag.yellow { background: var(--yellow); color: #fff; }
.badge-tag.grey { background: var(--grey); color: #fff; }
.badge-tag.light { background: var(--surface); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: 16px; background: var(--surface); color: var(--muted); font-size: .75rem; font-weight: 700; }

/* Abas em pílula (Cart | Order History do kit) */
.tabs { display: flex; gap: 14px; margin: 6px 0 16px; }
.tabs a, .tabs button {
  flex: 1; height: 32px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); color: var(--grey); font: 700 .75rem "Inter", system-ui; text-decoration: none; border: 0; cursor: pointer;
}
.tabs .on { background: var(--primary); color: #fff; }

/* Campos (Search Bar do kit) */
label { display: block; margin: 16px 0 8px; font-size: .85rem; font-weight: 700; }
input, select, textarea {
  width: 100%; font: 500 .9rem "Inter", system-ui; color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: 9.5px;
  padding: 0 16px; min-height: 48px;
}
textarea { padding: 14px 16px; min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--grey); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 74, 10, .12); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.search { display: flex; gap: 14px; align-items: center; }
.search .field { flex: 1; position: relative; }
.search .field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--grey); width: 18px; height: 18px; }
.search .field input { padding-left: 46px; }

/* Checkbox quadrado do kit */
.check {
  width: 26px; height: 26px; border-radius: 4px; flex: none; cursor: pointer; padding: 0;
  border: 1.5px solid var(--line-warm); background: var(--field); color: transparent; display: grid; place-items: center;
}
.check svg.i { width: 16px; height: 16px; stroke-width: 2.6; }
.check.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Superfícies ---------- */
.card { background: var(--surface); border-radius: var(--r-card); padding: 16px; margin: 12px 0; }
.panel { background: var(--surface); border-radius: var(--r-panel); padding: 20px; margin: 14px 0; }
.row { display: flex; gap: 12px; align-items: center; }
.row > * { min-width: 0; }
.grow { flex: 1; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; }
.section-title h2 { margin: 0; }
.section-title a { font-size: .8rem; font-weight: 700; text-decoration: none; }

/* Preço grande em laranja ("$9.99") */
.price-big { font-size: 1.5rem; font-weight: 700; color: var(--price); letter-spacing: -.01em; white-space: nowrap; }
.price-big.xl { font-size: 2rem; }

/* ---------- Fotos de pratos ---------- */
.dish-img {
  --size: 64px; --radius: 20px;
  width: var(--size); height: var(--size); border-radius: var(--radius); flex: none; overflow: hidden;
  display: grid; place-items: center; font-size: calc(var(--size) * .46); background: var(--surface);
}
.dish-img.round { --radius: 50%; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Banner do topo (como "Blueberry Waffles / Order Now") */
.banner {
  position: relative; overflow: hidden; border-radius: var(--r-panel); min-height: 150px; margin: 6px 0 4px;
  padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: var(--banner-bg); border: 1px solid var(--line);
}
.banner .bg { position: absolute; inset: 0; }
.banner .bg img { width: 100%; height: 100%; object-fit: cover; }
.banner .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 21, 21, .72), rgba(20, 21, 21, .15)); }
.banner .emoji { position: absolute; right: 14px; top: 6px; font-size: 5.5rem; opacity: .95; }
.banner > :not(.bg):not(.emoji):not(.btn) { position: relative; }
.banner small { font-size: .75rem; font-weight: 500; opacity: .9; }
.banner b.price { font-size: 1rem; }
.banner h3 { font-size: 1.5rem; margin-top: 2px; max-width: calc(100% - 130px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner .btn { position: absolute; right: 14px; bottom: 14px; min-height: 48px; border-radius: 24px; padding: 0 18px; font-size: .85rem; }

/* Dias da semana (pílulas) */
.days { display: flex; gap: 6px; overflow-x: auto; margin: 4px -20px 0; padding: 4px 20px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days a {
  flex: 1 1 0; min-width: 40px; display: flex; flex-direction: column; align-items: center; padding: 9px 0 8px; position: relative;
  border-radius: 16px; background: var(--surface); color: var(--grey); text-decoration: none; font-weight: 700;
}
.days a b { font-size: 1.05rem; color: var(--text); }
.days a span { font-size: .66rem; }
.days a.on { background: var(--primary); color: #fff; }
.days a.on b { color: #fff; }
.days a.has::after { content: ""; position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.days a.today:not(.on) { box-shadow: inset 0 0 0 1.5px rgba(255, 74, 10, .45); }

.weeknav { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 10px; }
.weeknav .center b { display: block; font-size: .95rem; }
.weeknav .center span { font-size: .72rem; color: var(--muted); }

/* Categorias em círculo (Burger / Pizza / Sandwich) → escolher o prato */
.cats { display: flex; gap: 16px; overflow-x: auto; margin: 0 -20px; padding: 4px 20px 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button {
  flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; cursor: pointer; font: 700 .78rem "Inter", system-ui; color: var(--text);
}
.cats button span.lbl { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.cats .dish-img { --size: 74px; --radius: 50%; background: var(--surface); border: 2px solid transparent; }
.cats button.on .dish-img { border-color: var(--ring); }
.cats button.on { color: var(--primary); }

/* Linha estilo carrinho (foto à esquerda, infos à direita) */
.cart-row { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-card); background: var(--surface); margin: 10px 0; }
.cart-row .dish-img { --size: 74px; }
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .info .muted { margin: 2px 0 0; }
.qty-label { color: var(--primary); font-size: .72rem; font-weight: 500; }

/* − número + */
.stepper { display: inline-flex; align-items: center; gap: 10px; background: var(--field); border-radius: 18px; padding: 3px; }
.stepper button { width: 30px; height: 30px; border-radius: 15px; border: 0; cursor: pointer; background: var(--primary); color: #fff; display: grid; place-items: center; }
.stepper button svg.i { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper output { font-weight: 700; min-width: 16px; text-align: center; }

/* Grade de pratos (cartão 180x181 do kit) */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.food-card { text-decoration: none; color: inherit; display: block; min-width: 0; }
.food-card .photo { position: relative; }
.food-card .dish-img { --size: 100%; aspect-ratio: 1; height: auto; font-size: 3.4rem; }
.food-card .badge-tag { position: absolute; top: 10px; right: 10px; }
.food-card h3 { margin-top: 10px; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.food-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.food-card .foot b { color: var(--primary); font-size: .9rem; }
.food-card .foot svg { color: var(--primary); }

/* Itens da lista */
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); margin: 8px 0; }
.item .name { flex: 1; min-width: 0; font-weight: 700; }
.item.bought .name > span { text-decoration: line-through; color: var(--grey); }
.qty { color: var(--muted); font-size: .75rem; font-weight: 500; }
.item .price { width: 92px; min-height: 40px; text-align: right; border-radius: 20px; padding: 0 12px; flex: none; color: var(--primary); font-weight: 700; border-color: transparent; }

/* Barra laranja de baixo ("$9.99 | Checkout") */
.checkout {
  position: sticky; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 4;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 18px -4px 0; padding: 16px 16px 16px 22px; border-radius: var(--r-panel);
  background: var(--primary); color: #fff; box-shadow: 0 12px 30px rgba(255, 74, 10, .3);
}
.checkout b { font-size: 1.15rem; display: block; }
.checkout small { font-size: .72rem; opacity: .9; }
.checkout .btn { min-height: 48px; border-radius: 12px; padding: 0 20px; }

.ing-row { display: grid; grid-template-columns: 1fr 62px 74px 30px; gap: 6px; margin-top: 8px; align-items: center; }
.ing-row input, .ing-row select { min-height: 44px; padding: 0 12px; }
.ing-row select { padding-right: 24px; background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; }

.photo-pick { display: block; position: relative; margin: 6px 0 4px; cursor: pointer; }
.photo-pick .dish-img { --size: 100%; height: 220px; --radius: var(--r-panel); font-size: 5rem; }
.photo-pick .sq-btn { position: absolute; right: 14px; bottom: 14px; }

/* Indicadores de gasto */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 16px; border-radius: var(--r-card); background: var(--surface); }
.stat .muted { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.stat .muted svg { color: var(--primary); width: 16px; height: 16px; }
.stat.wide { grid-column: 1 / -1; background: var(--contrast-bg); color: #fff; border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.stat.wide .price-big { color: var(--price); }
:root[data-theme="light"] .stat.wide .price-big { color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th { font-size: .72rem; color: var(--muted); font-weight: 700; }
th, td { text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Perfil da casa (cartão com "Gold Member") */
.profile-card {
  position: relative; height: 200px; border-radius: var(--r-card); overflow: hidden; padding: 18px;
  display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(135deg, #2a2b2b, #141515); border: 1px solid var(--line);
}
.profile-card .house-art { position: absolute; right: 22px; top: 62px; color: var(--primary); opacity: .9; }
.profile-card .house-art svg.i { width: 84px; height: 84px; }
.profile-card .badge-tag { position: absolute; top: 18px; right: 18px; height: 39px; border-radius: 19.5px; padding: 0 14px; font-size: .9rem; }
.profile-card h1 { margin: 0; font-size: 1.5rem; position: relative; }
.menu-list { padding: 4px 0; }
.menu-list > * { display: flex; align-items: center; gap: 14px; padding: 11px 0; text-decoration: none; color: inherit; font-weight: 700; font-size: .88rem; width: 100%; background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left; }
.menu-list > * > svg:first-child { color: var(--text); }
.menu-list > * > .grow { min-width: 0; }
.menu-list .chev { color: var(--text); width: 18px; height: 18px; }
.menu-list .danger { color: var(--red); }
.menu-list .danger svg { color: var(--red) !important; }
.code { font-size: 2rem; font-weight: 700; letter-spacing: .2em; color: var(--primary); }

/* Nota fiscal */
.receipt-preview { width: 100%; max-height: 300px; object-fit: contain; border-radius: var(--r-card); background: var(--surface); }
.rc-item { display: grid; grid-template-columns: 1fr 100px; gap: 8px; padding: 12px 0; }
.rc-item + .rc-item { border-top: 1px solid var(--line); }
.rc-item input { min-height: 44px; }
.rc-item select { grid-column: 1 / -1; min-height: 40px; font-size: .82rem; }
.spinner { width: 38px; height: 38px; border-radius: 50%; margin: 22px auto; border: 3px solid var(--primary-soft); border-top-color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Login (tela de On Boarding do kit) */
.onboard { margin: 0 -20px; }
.onboard .art {
  position: relative; height: 46vh; min-height: 300px; max-height: 420px; overflow: hidden;
  background: radial-gradient(circle at 70% 30%, #ff8a4c, var(--primary) 60%);
  border-radius: 0 0 var(--r-panel) var(--r-panel);
}
.onboard .art span { position: absolute; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.onboard .bars { position: absolute; left: 35px; right: 35px; bottom: 22px; display: flex; gap: 6px; }
.onboard .bars i { height: 8px; border-radius: 5px; background: rgba(255, 255, 255, .45); flex: 1.3; }
.onboard .bars i.on { background: #fff; flex: 1; }
.onboard .body { padding: 22px 20px 0; }
.onboard h1 { color: var(--yellow); font-size: 2.1rem; }

/* Avisos */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--toast-bg); color: var(--toast-ink); padding: 12px 18px; border-radius: 14px; z-index: 10; font-weight: 600;
  max-width: calc(100% - 32px); box-shadow: var(--shadow);
}
.notice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin: 12px 0; border-radius: var(--r-card); background: var(--primary-soft); font-weight: 600; font-size: .88rem; }
.notice svg.i { color: var(--primary); }
.empty { text-align: center; color: var(--muted); padding: 28px 8px; font-weight: 600; }
details summary { cursor: pointer; }

/* ---------- Chef IA (chat) ---------- */
.tabbar a.ai-tab svg.i { color: var(--primary); }
.tabbar a.ai-tab.active { color: var(--primary); }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chat-head h1 { font-size: 1.5rem; margin: 6px 0 0; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 90px; }
.bubble { max-width: 86%; padding: 12px 15px; border-radius: 20px 20px 20px 6px; background: var(--surface); font-weight: 500; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-radius: 20px 20px 6px 20px; white-space: pre-wrap; }
.bubble ul, .bubble ol { margin: 6px 0; padding-left: 20px; }
.bubble li + li { margin-top: 3px; }
.bubble p { margin: 0 0 6px; }
.bubble p:last-child { margin-bottom: 0; }
.chat-dish { display: flex; gap: 12px; align-items: center; max-width: 86%; padding: 10px; border-radius: var(--r-card); background: var(--raised); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.chat-dish .dish-img { --size: 72px; --radius: 16px; }
.chat-dish h3 { font-size: .92rem; }
.chat-action { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); font-size: .8rem; font-weight: 700; text-decoration: none; }
.chat-action svg.i { width: 16px; height: 16px; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: var(--surface); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--grey); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-input {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 5; bottom: calc(96px + env(safe-area-inset-bottom));
  width: min(440px, calc(100% - 40px)); display: flex; gap: 10px; align-items: flex-end;
}
.chat-input textarea { min-height: 50px; max-height: 140px; padding: 14px 16px; border-radius: 25px; resize: none; box-shadow: var(--shadow); line-height: 1.35; }
.chat-input .sq-btn { width: 50px; height: 50px; border-radius: 25px; box-shadow: 0 8px 20px rgba(255, 74, 10, .3); }
.chat-empty { text-align: center; padding: 18px 0 6px; }
.chat-empty .big { width: 84px; height: 84px; border-radius: 42px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.chat-empty .big svg { width: 40px; height: 40px; }
.suggest { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.suggest button { text-align: left; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--raised); font: 600 .86rem "Inter", system-ui; color: var(--text); cursor: pointer; display: flex; gap: 10px; align-items: center; }
.suggest button svg { color: var(--primary); width: 18px; height: 18px; }
.dish-img.loading { position: relative; }
.dish-img.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .6); border-top-color: var(--primary); animation: spin 1s linear infinite; }
.dish-img.loading::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 55%, transparent); }

/* ---------- Detalhes só do tema escuro (como na imagem de referência) ---------- */
:root:not([data-theme="light"]) .btn { font-weight: 500; font-size: .84rem; letter-spacing: .09em; text-transform: uppercase; }
:root:not([data-theme="light"]) .btn:not(.primary):not(.white) { border-color: var(--line-warm); background: transparent; color: var(--text); }
:root:not([data-theme="light"]) .btn.danger { color: var(--red); border-color: rgba(255, 107, 94, .35); }
:root:not([data-theme="light"]) .btn.primary { box-shadow: 0 10px 26px rgba(242, 106, 33, .28); }
:root:not([data-theme="light"]) label:not(.btn):not(.photo-pick) { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #d7d9d8; }
:root:not([data-theme="light"]) .sq-btn.light { background: transparent; border: 1.5px solid var(--line-warm); color: var(--text); }
:root:not([data-theme="light"]) .avatar { background: transparent; border: 1.5px solid var(--line-warm); color: var(--text); }
:root:not([data-theme="light"]) .avatar.orange { border-color: rgba(214, 168, 108, .5); color: var(--price); background: rgba(214, 168, 108, .08); }
:root:not([data-theme="light"]) .chip { background: transparent; border: 1.5px solid var(--line-warm); color: var(--text); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
:root:not([data-theme="light"]) .tabs { padding: 4px; border: 1.5px solid var(--line-warm); border-radius: var(--pill); gap: 4px; }
:root:not([data-theme="light"]) .tabs a, :root:not([data-theme="light"]) .tabs button { background: transparent; color: var(--muted); height: 38px; border-radius: var(--pill); }
:root:not([data-theme="light"]) .tabs .on { background: var(--primary); color: #fff; }
:root:not([data-theme="light"]) .days a { background: transparent; border: 1.5px solid var(--line); }
:root:not([data-theme="light"]) .days a.on { border-color: var(--primary); }
:root:not([data-theme="light"]) .days a.has::after { background: var(--price); }
:root:not([data-theme="light"]) .days a.today:not(.on) { box-shadow: none; border-color: rgba(214, 168, 108, .55); }
:root:not([data-theme="light"]) .cats .dish-img { border: 1.5px solid var(--line); padding: 3px; background-clip: content-box; }
:root:not([data-theme="light"]) .cats button.on .dish-img { border: 2px solid var(--ring); }
:root:not([data-theme="light"]) .dish-img { background: radial-gradient(circle at 35% 30%, #3a2a1c, #1d1a17 72%); }
:root:not([data-theme="light"]) .dish-card .dish-img, :root:not([data-theme="light"]) .food-card .dish-img { box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }
:root:not([data-theme="light"]) .tabbar { background: rgba(26, 32, 31, .92); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
:root:not([data-theme="light"]) .tabbar a { color: var(--grey); }
:root:not([data-theme="light"]) .item .price { background: var(--field); border: 1px solid var(--line); }
:root:not([data-theme="light"]) .divider { background: linear-gradient(90deg, transparent, rgba(214, 168, 108, .45), transparent); }
:root:not([data-theme="light"]) h1, :root:not([data-theme="light"]) .banner h3 { font-weight: 600; }
:root:not([data-theme="light"]) .onboard .art { background: radial-gradient(circle at 70% 25%, rgba(242, 106, 33, .55), transparent 60%), linear-gradient(160deg, #2a1f17, #111615); border-bottom: 1px solid var(--line); }
:root:not([data-theme="light"]) .onboard .art span { background: radial-gradient(circle at 35% 30%, #3a2a1c, #1d1a17 72%); box-shadow: 0 22px 50px rgba(0, 0, 0, .6), 0 0 0 1.5px rgba(214, 168, 108, .35); }
:root:not([data-theme="light"]) .onboard h1 { color: var(--text); }
:root:not([data-theme="light"]) .bubble { background: var(--surface-2); }
:root:not([data-theme="light"]) .profile-card { background: radial-gradient(circle at 85% 20%, rgba(242, 106, 33, .35), transparent 55%), linear-gradient(135deg, #2a1f17, #161c1b); }
:root:not([data-theme="light"]) .notice { border: 1px solid var(--line-warm); }
:root:not([data-theme="light"]) .days a.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Vidro líquido (public/glass.js) ---------- */
:root { --glass-tint: rgba(17, 22, 21, .4); --glass-tint-soft: rgba(26, 32, 31, .58); --glass-rim: rgba(255, 255, 255, .12); --glass-active: rgba(255, 255, 255, .09); }
:root[data-theme="light"] { --glass-tint: rgba(255, 255, 255, .22); --glass-tint-soft: rgba(255, 255, 255, .62); --glass-rim: rgba(255, 255, 255, .6); --glass-active: rgba(255, 74, 10, .1); }

/* Topo vira uma pílula flutuante */
.topbar {
  top: calc(8px + env(safe-area-inset-top));
  width: min(456px, calc(100% - 24px)); margin: calc(8px + env(safe-area-inset-top)) auto 8px;
  padding: 8px 8px 8px 18px; border-radius: 32px;
}
.topbar .avatar { border-radius: 50%; }

.lg {
  isolation: isolate; /* as barras já são fixed/sticky; o brilho (.lg-spec) se posiciona nelas */
  background: var(--glass-tint) !important; border-color: transparent !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .32), inset 0 0 0 .5px var(--glass-rim) !important;
}
.lg.lg-soft { background: var(--glass-tint-soft) !important; backdrop-filter: blur(18px) saturate(170%) !important; -webkit-backdrop-filter: blur(18px) saturate(170%) !important; }
.lg > .lg-spec { position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; background-size: 100% 100%; }
.lg > :not(.lg-spec) { position: relative; z-index: 2; }

/* Item ativo do menu: uma "gota" clara que desliza */
.tabbar a { border-radius: 28px; margin: 0 1px; padding: 8px 2px 7px; transition: background-color .25s, color .25s; }
.tabbar a.active { background: var(--glass-active); }

/* Campo do chat dentro do vidro */
.chat-input.lg { padding: 6px; border-radius: 31px; align-items: center; }
.chat-input.lg textarea { background: transparent; border: 0; box-shadow: none; min-height: 50px; }
.chat-input.lg textarea:focus { box-shadow: none; }

/* Sem vidro (desligado em Casa, ou o aparelho pediu menos transparência) */
html.glass-off .lg { background: var(--surface) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.glass-off .lg > .lg-spec { display: none; }
:root:not([data-theme="light"]) .tabbar a.active { color: var(--primary); }

/* Ícones Hugeicons: traço 1.5 por padrão; mais grosso onde o ícone é pequeno */
.check svg.i path, .stepper svg.i path, .sq-btn.sm svg.i path { stroke-width: 2.2; }
.tabbar a.active svg.i path { stroke-width: 1.8; }

/* Ícones no lugar dos emojis */
.dish-img svg.food { width: 46%; height: 46%; color: var(--price); }
.banner .emoji svg.i { width: 92px; height: 92px; color: #fff; opacity: .9; }
.onboard .art span svg.i { width: var(--ic); height: var(--ic); color: var(--primary); }
.toast { display: flex; align-items: center; gap: 10px; }
.toast svg.i { width: 20px; height: 20px; color: var(--ok); }
.toast.erro svg.i { color: var(--red); }
.empty svg.i { width: 34px; height: 34px; color: var(--red); }
.toast { width: max-content; max-width: calc(100% - 32px); }

/* =====================================================================
   Componentes do app no lugar dos controles do sistema (public/ui.js)
   ===================================================================== */
.ui-native { display: none !important; }

/* Botão que substitui o <select> e o campo de data (mesmo visual dos campos) */
.ui-select {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  min-height: 48px; padding: 0 14px 0 16px; border-radius: 9.5px; cursor: pointer; text-align: left;
  background: var(--field); border: 1px solid var(--line); color: var(--text); font: 500 .9rem "Inter", system-ui;
}
.ui-select:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 74, 10, .15); }
.ui-select .ui-select-value { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-select .ui-select-value.placeholder { color: var(--grey); }
.ui-select svg.i { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ing-row .ui-select { min-height: 44px; padding: 0 8px 0 12px; }
.ing-row .ui-select svg.i { width: 14px; height: 14px; }
.rc-item .ui-select { grid-column: 1 / -1; min-height: 42px; font-size: .82rem; }

/* Camada, fundo escurecido e animação */
.ui-layer { position: relative; z-index: 50; }
html.ui-locked body { overflow: hidden; }
.ui-backdrop {
  position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: flex-end;
  background: rgba(0, 0, 0, 0); transition: background-color .2s;
}
.ui-backdrop.open { background: rgba(0, 0, 0, .55); }
.ui-dialog-backdrop, .ui-viewer-backdrop { align-items: center; padding: 20px; }

/* Painel que sobe de baixo */
/* Painel que flutua um pouco acima da borda (cantos redondos nos quatro lados, como o vidro pede) */
.ui-sheet {
  display: flex; flex-direction: column; overflow: hidden;
  width: min(480px, calc(100% - 16px)); max-height: min(80vh, 640px);
  margin-bottom: calc(8px + env(safe-area-inset-bottom));
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--r-panel); padding: 8px 20px 20px;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, .35); transform: translateY(110%); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}
.ui-sheet > .ui-body { overflow-y: auto; overscroll-behavior: contain; margin: 0 -20px; padding: 0 20px; }
.ui-backdrop.open .ui-sheet { transform: none; }
.ui-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--grey); opacity: .5; margin: 4px auto 10px; }
.ui-title { font-size: 1.05rem; margin: 4px 0 12px; }

/* Caixa central (confirmação) e visualizador de foto */
.ui-dialog, .ui-viewer {
  width: min(380px, 100%); background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 24px; padding: 22px 20px 6px; box-shadow: var(--shadow);
  opacity: 0; transform: scale(.96); transition: opacity .18s, transform .18s;
}
.ui-viewer { width: min(560px, 100%); padding: 16px 16px 4px; }
.ui-backdrop.open .ui-dialog, .ui-backdrop.open .ui-viewer { opacity: 1; transform: none; }
.ui-dialog .ui-title { font-size: 1.15rem; margin: 0 0 6px; }
.ui-message { color: var(--muted); font-size: .9rem; margin: 0 0 4px; }
.ui-image { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 16px; background: #000; cursor: zoom-out; }
.btn.danger-solid { background: var(--red); border-color: var(--red); color: #fff; }

/* Opções da lista */
.ui-options { display: flex; flex-direction: column; gap: 4px; }
.ui-option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px; border-radius: 16px;
  background: none; border: 0; color: var(--text); font: 600 .95rem "Inter", system-ui; text-align: left; cursor: pointer;
}
.ui-option:hover, .ui-option:focus-visible { background: var(--surface); outline: none; }
.ui-option[aria-selected="true"] { color: var(--primary); background: var(--primary-soft); }
.ui-option svg.i { width: 22px; height: 22px; color: var(--primary); }
.ui-option .ui-check { color: var(--primary); }
.ui-search { margin-bottom: 10px; }

/* Calendário */
.ui-month { margin-bottom: 10px; }
.ui-month b { text-transform: none; }
.ui-week, .ui-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.ui-week span { font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.ui-day {
  aspect-ratio: 1; border-radius: 50%; border: 0; background: none; color: var(--text); cursor: pointer;
  font: 600 .9rem "Inter", system-ui;
}
.ui-day:hover, .ui-day:focus-visible { background: var(--surface); outline: none; }
.ui-day.today { box-shadow: inset 0 0 0 1.5px var(--line-warm); }
.ui-day[aria-selected="true"] { background: var(--primary); color: #fff; }

/* Botão da foto do prato (antes era um <label>) */
.photo-pick { width: 100%; border: 0; background: none; padding: 0; text-align: left; }
/* precisa vencer a regra ":not(.primary):not(.white)" do tema escuro */
:root:not([data-theme="light"]) .btn.danger-solid:not(.primary):not(.white) { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Componentes de vidro líquido (quando ligado) ---------- */
:root { --glass-tint-strong: rgba(24, 30, 29, .62); }
:root[data-theme="light"] { --glass-tint-strong: rgba(255, 255, 255, .6); }
.ui-glass.open { background: rgba(0, 0, 0, .28); }
.ui-sheet.lg, .ui-dialog.lg, .ui-viewer.lg { background: var(--glass-tint-strong) !important; }
.ui-sheet.lg.lg-soft, .ui-dialog.lg.lg-soft, .ui-viewer.lg.lg-soft { background: var(--glass-tint-strong) !important; }
.ui-glass .ui-option:hover, .ui-glass .ui-option:focus-visible, .ui-glass .ui-day:hover { background: rgba(255, 255, 255, .08); }
:root[data-theme="light"] .ui-glass .ui-option:hover, :root[data-theme="light"] .ui-glass .ui-day:hover { background: rgba(255, 255, 255, .5); }
.ui-glass .search .field input { background: rgba(0, 0, 0, .18); border-color: rgba(255, 255, 255, .1); }
:root[data-theme="light"] .ui-glass .search .field input { background: rgba(255, 255, 255, .5); }
/* Aviso de vidro: texto na cor do tema (o aviso sólido usa cores invertidas) */
.toast.lg { color: var(--text); border-radius: 18px; }
.toast.lg { background: var(--glass-tint-strong) !important; }
html.glass-off .toast.lg { background: var(--toast-bg) !important; color: var(--toast-ink); }

/* ---------- Foto de perfil ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-row { padding: 6px 0 14px; }
.avatar-edit { position: relative; border: 0; background: none; padding: 0; cursor: pointer; flex: none; }
.avatar-edit .avatar { width: 72px; height: 72px; font-size: 1.3rem; }
.avatar-edit .sq-btn { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border: 2px solid var(--surface); }
.avatar-edit .sq-btn svg.i { width: 15px; height: 15px; }
:root:not([data-theme="light"]) .avatar:has(img) { border-color: rgba(214, 168, 108, .5); }

/* ---------- Aviso de instalar o app (public/install.js) ---------- */
.install-head { display: flex; align-items: center; gap: 14px; }
.install-head b { font-size: 1.05rem; }
.install-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.install-text { margin: 14px 0 4px; font-size: .92rem; color: var(--text); }
.install-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.install-steps li { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.install-step-icon { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.install-step-icon svg.i { width: 20px; height: 20px; }

/* ---------- Login e cadastro: ocupam exatamente a tela, sem rolagem ---------- */
html.public, html.public body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.public body { padding-bottom: 0; background-attachment: scroll; }
html.public main { height: 100%; padding-top: 0; padding-bottom: 0; }
.onboard { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
/* A ilustração encolhe para caber; o formulário fica sempre inteiro. */
.onboard .art { flex: 1 1 auto; height: auto; min-height: 0; max-height: 420px; container-type: size; }
.onboard .body { flex: none; padding: 18px 20px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; }
.onboard .art span { aspect-ratio: 1; }
.onboard .art .c1 { width: min(210px, 68cqh); left: 50%; top: 46%; transform: translate(-50%, -50%); --ic: min(96px, 31cqh); }
.onboard .art .c2 { width: min(96px, 31cqh); left: 7%; top: 12%; --ic: min(44px, 14cqh); }
.onboard .art .c3 { width: min(84px, 27cqh); right: 7%; top: 10%; --ic: min(38px, 12cqh); }
.onboard .art .c4 { width: min(74px, 24cqh); right: 12%; bottom: 16%; --ic: min(32px, 10cqh); }
.onboard .bars { bottom: min(22px, 6cqh); }
.onboard h1 { font-size: clamp(1.55rem, 4.2vh, 2.1rem); margin-top: 0; }
.onboard .body > .muted { margin: 4px 0 0; }
.onboard label { margin-top: 12px; }
/* Telas baixas: textos mais compactos; muito baixas: sem ilustração. */
@media (max-height: 720px) {
  .onboard .body { padding-top: 14px; }
  .onboard .body > .muted { display: none; }
  .onboard label { margin: 10px 0 6px; }
  .onboard .between[style] { margin-top: 16px !important; }
}
@media (max-height: 600px) {
  .onboard { justify-content: center; }
  .onboard .art { display: none; }
  .onboard .body { padding-top: calc(20px + env(safe-area-inset-top)); }
}

/* ---------- Ver senha (olhinho) ---------- */
.pw-field { position: relative; display: block; }
.pw-field input { padding-right: 52px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 12px;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--text); outline: none; background: var(--surface); }
.pw-toggle svg.i { width: 20px; height: 20px; }
.onboard .brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; font-size: .95rem; color: var(--primary); }
.onboard .brand svg.i { width: 22px; height: 22px; }
