/* Camada interativa (Alpine): busca, destaque do dia, folha de personalização,
   carrinho e modo mesa. Estrutura visual/comportamento fiel a prototipos/variant-a.html.
   Só usa var(--...) dos temas — nada de cor fixa que quebre o tema "organic". */

[x-cloak] { display: none !important; }

/* wrapper só pra dar escopo ao Alpine — não deve interferir no flex de .pagina */
.cardapio-app { display: contents; }

/* ---------- ícones (sprite SVG embutido no cabeçalho, sem emoji) ---------- */
.ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -2px;
}

/* ---------- itens clicáveis (abrem a folha) ---------- */
.item { cursor: pointer; }
.item:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ---------- entrada suave ao rolar (progressive enhancement, sem JS) ----------
   @supports protege navegador sem animation-timeline (item só aparece normal,
   sem transição — nada quebra). prefers-reduced-motion: no-preference garante
   que quem pediu menos movimento nunca recebe nem o estado inicial opacity:0
   (dobra a garantia do bloco global em base.css). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .item {
      animation: itemEntrada linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
  }
}
@keyframes itemEntrada {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- chip "Mesa N" ---------- */
.mesa-chip {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mesa-chip .ponto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

/* ---------- seletor entrega/retirada (chip discreto, dentro do drawer do carrinho; some no modo mesa) ---------- */
.seletor-modo {
  display: flex;
  gap: 8px;
  padding: 0 20px 14px;
}
.seletor-modo button {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--glass);
  border: 1px solid var(--border-soft);
}
.seletor-modo button.ativo {
  color: #0c1210;
  background: var(--mint);
  border-color: transparent;
}
body[data-mesa] .seletor-modo { display: none; }

/* ---------- dados da entrega (dentro do drawer, só quando a modalidade é entrega) ---------- */
.form-entrega {
  display: grid;
  gap: 8px;
  padding: 0 20px 14px;
}
.form-entrega input,
.form-entrega select {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}
.form-entrega input:focus,
.form-entrega select:focus { outline: none; border-color: var(--mint); }
.drawer-subtotal { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }

/* ---------- busca ---------- */
.busca-bar {
  position: relative;
  padding: 4px 20px 12px;
}
.busca-icone {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dimmer);
}
.busca-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 14px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border-soft);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
}
.busca-input::placeholder { color: var(--text-dimmer); }
.busca-input:focus { outline: none; border-color: var(--mint); }

.busca-vazio {
  text-align: center;
  color: var(--text-dimmer);
  font-size: 13.5px;
  padding: 60px 20px;
  line-height: 1.7;
}
.busca-vazio .ico { width: 30px; height: 30px; margin-bottom: 10px; stroke-width: 1.6; }

/* ---------- destaque do dia ---------- */
.destaque-dia {
  margin: 4px 20px 6px;
  border-color: var(--magenta);
  box-shadow: 0 0 0 1px var(--magenta-fraco);
}
.destaque-rotulo {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--magenta);
  box-shadow: 0 0 16px var(--magenta-fraco);
}
.destaque-marca {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mint-fraco), var(--magenta-fraco));
}
.destaque-marca span {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  opacity: .45;
}
.destaque-marca img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.destaque-corpo { padding: 16px 18px 18px; }
.destaque-nome { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.destaque-desc { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; margin: 0 0 10px; }
.destaque-preco {
  display: inline-block;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--mint-text);
}

/* ---------- fundo escurecido ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(2, 3, 6, .5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ---------- folha de personalização (bottom sheet) ---------- */
.item-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  max-width: 640px;
  margin: 0 auto;
  max-height: 88dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 26px 26px 0 0;
  background: var(--sheet-grad);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.item-sheet.aberta { transform: translateY(0); }
.sheet-alca {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--text-dimmer);
  opacity: .4;
  margin: 12px auto 0;
}
.sheet-fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-corpo { padding: 20px 22px 6px; }
.sheet-categoria {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint-text);
  margin: 0 0 6px;
}
.sheet-nome { font-size: 22px; font-weight: 700; margin: 0 0 10px; line-height: 1.2; }
.sheet-desc { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; margin: 0 0 18px; }
.sheet-preco {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--mint-text);
  margin: 0 0 18px;
}

.personalizar { margin: 2px 0 20px; padding-top: 6px; border-top: 1px solid var(--border-soft); }
.personalizar-titulo { font-family: 'Unbounded', system-ui, sans-serif; font-size: 13px; font-weight: 600; margin: 16px 0 10px; }
.chip-grupo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip-tag {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--glass);
  border: 1px solid var(--border-soft);
}
.chip-tag.chip-remover.ativo {
  border-color: var(--magenta);
  color: var(--magenta-text);
  text-decoration: line-through;
  background: var(--magenta-fraco);
}
.chip-tag.chip-extra.ativo {
  border-color: var(--mint);
  color: var(--mint-text);
  background: var(--mint-fraco);
}

.observacao-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border-soft);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  margin-top: 2px;
}
.observacao-input::placeholder { color: var(--text-dimmer); }
.observacao-input:focus { outline: none; border-color: var(--mint); }

.qtd-linha { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.qtd-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qtd-btn:active { transform: scale(.9); }
.qtd-valor { font-family: 'Unbounded', system-ui, sans-serif; font-size: 18px; min-width: 24px; text-align: center; }

.sheet-adicionar {
  width: 100%;
  padding: 17px;
  border-radius: 16px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #0c1210;
  background: linear-gradient(100deg, var(--mint), color-mix(in srgb, var(--mint) 55%, white));
}
.sheet-adicionar:active { transform: scale(.98); }

/* ---------- carrinho: pílula flutuante ---------- */
.carrinho-pill {
  position: fixed;
  right: 18px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  color: var(--text);
  background: var(--fab-grad);
  border: 1px solid var(--magenta-fraco);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.carrinho-pill:active { transform: scale(.95); }
.carrinho-pill .contagem {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--magenta);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* feedback de "acabou de entrar" — pulso curto, some sozinho (classe some
   depois de 500ms via cardapio.js#adicionarAoCarrinho) */
@keyframes carrinhoPulso {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.carrinho-pill.pulso { animation: carrinhoPulso .4s ease; }

/* ---------- carrinho: drawer ---------- */
.carrinho-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  width: min(88vw, 400px);
  background: var(--sheet-grad);
  border-left: 1px solid var(--border-soft);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
}
.carrinho-drawer.aberto { transform: translateX(0); }
.drawer-cabecalho { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px; }
.drawer-cabecalho h2 { font-size: 18px; }
.drawer-lista { flex: 1; overflow-y: auto; padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.carrinho-vazio {
  text-align: center;
  color: var(--text-dimmer);
  font-size: 13.5px;
  padding: 60px 20px;
  line-height: 1.7;
}
.carrinho-vazio .ico { width: 30px; height: 30px; margin-bottom: 10px; stroke-width: 1.6; }

.linha-carrinho { display: flex; gap: 12px; padding: 12px; align-items: flex-start; border-radius: 14px; background: var(--glass); border: 1px solid var(--border-soft); }
.linha-info { flex: 1; min-width: 0; }
.linha-nome { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.linha-custom { font-size: 11px; color: var(--text-dimmer); margin: 2px 0 4px; line-height: 1.4; }
.linha-preco { font-size: 12.5px; color: var(--mint-text); }
.linha-remover {
  margin-top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--magenta-text);
  background: var(--magenta-fraco);
  border: 1px solid var(--magenta-fraco);
  display: flex;
  align-items: center;
  justify-content: center;
}
.linha-remover .ico { width: 13px; height: 13px; }
.linha-acoes { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.linha-acoes button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.linha-acoes .ico { width: 13px; height: 13px; }

.drawer-rodape { padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border-soft); }
.drawer-total { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 14px; }
.drawer-total b { font-family: 'Unbounded', system-ui, sans-serif; color: var(--mint-text); font-size: 18px; }
.fechar-pedido-btn {
  width: 100%;
  padding: 17px;
  border-radius: 16px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dimmer);
  background: var(--glass);
  border: 1px solid var(--border-soft);
}
.fechar-pedido-btn:disabled { cursor: not-allowed; }
.fechar-pedido-btn:not(:disabled) {
  color: #0c1210;
  background: linear-gradient(100deg, var(--mint), color-mix(in srgb, var(--mint) 55%, white));
  border-color: transparent;
}
.fechar-pedido-btn:not(:disabled):active { transform: scale(.98); }
.pedido-erro {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--magenta-text);
}

/* ---------- confirmação do pedido (mesma folha do item-sheet, timeline do protótipo) ---------- */
.confirmacao-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  max-width: 640px;
  margin: 0 auto;
  max-height: 88dvh;
  overflow-y: auto;
  border-radius: 26px 26px 0 0;
  background: var(--sheet-grad);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  padding: 32px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.confirmacao-sheet.aberta { transform: translateY(0); }
.confirmacao-titulo { margin: 0 0 6px; font-weight: 600; }
.confirmacao-codigo {
  margin: 0 0 20px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 40px;
  font-weight: 800;
  background: var(--title-grad);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.confirmacao-timeline { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 22px; }
.confirmacao-msg { font-size: 13px; color: var(--text-dim); margin: 0 0 20px; }
.confirmacao-fechar {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  font-weight: 600;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border-soft);
}
.tl-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-dimmer); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--glass); border: 1px solid var(--border-soft); }
.tl-step.done .tl-dot { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 10px var(--mint-fraco); }
.tl-step.done { color: var(--mint-text); }
.tl-line { width: 26px; height: 1px; background: var(--border-soft); margin-bottom: 18px; }

/* ---------- mesa compartilhada: abas cardápio / comanda ---------- */
.mesa-nav {
  display: flex;
  gap: 8px;
  padding: 0 20px 14px;
}
.mesa-nav button {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mesa-nav button.ativo {
  color: #04120d;
  background: linear-gradient(100deg, var(--mint), color-mix(in srgb, var(--mint) 55%, white));
  border-color: transparent;
}
.mesa-nav-contagem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-size: 10px;
}

/* ---------- botão flutuante + toast "chamar garçom" ---------- */
.waiter-fab {
  position: fixed;
  left: 18px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.waiter-fab:active { transform: scale(.9); }

.garcom-toast {
  position: fixed;
  top: calc(20px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 1100;
  transform: translate(-50%, -16px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--mint);
  color: var(--mint-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .35s ease;
}
.garcom-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- modal "quem é você na mesa" ---------- */
.nome-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  background: rgba(2, 3, 6, .6);
  backdrop-filter: blur(4px);
}
.nome-modal.show { display: flex; }
.nome-card {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0;
  background: var(--sheet-grad);
  border: 1px solid var(--border-soft);
  text-align: center;
}
.nome-titulo { font-family: 'Unbounded', system-ui, sans-serif; font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.nome-sub { font-size: 13px; color: var(--text-dim); margin: 0 0 20px; }
.nome-input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  color: var(--text);
  font-size: 15px;
  text-align: center;
  margin-bottom: 16px;
}
.nome-input::placeholder { color: var(--text-dimmer); }
.nome-entrar {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: #04120d;
  background: linear-gradient(100deg, var(--mint), color-mix(in srgb, var(--mint) 55%, white));
}
.nome-entrar:active { transform: scale(.97); }

/* ---------- comanda da mesa ---------- */
.comanda-tag { padding: 0 20px 14px; font-size: 13px; color: var(--text-dim); }
.comanda-lista { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.comanda-vazia { text-align: center; color: var(--text-dimmer); font-size: 13.5px; padding: 50px 20px; line-height: 1.7; }
.comanda-item {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border-soft);
}
.comanda-item-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 8px; }
.comanda-item-nome { font-family: 'Unbounded', system-ui, sans-serif; font-size: 13.5px; font-weight: 600; }
.comanda-item-status { font-size: 11px; color: var(--text-dimmer); flex: 0 0 auto; }
.comanda-item-linha { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.comanda-item-total { font-size: 13px; color: var(--mint-text); font-weight: 700; margin-top: 6px; }
.comanda-rodape {
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.waiter-btn {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.waiter-btn:active { transform: scale(.97); }
.checkout-btn {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #04120d;
  background: linear-gradient(100deg, var(--mint), color-mix(in srgb, var(--mint) 55%, white));
  border: none;
}
.checkout-btn:active { transform: scale(.97); }

/* ---------- conta: dividir igual + por item ---------- */
.conta-total-tag { padding: 0 20px 10px; font-size: 13px; color: var(--text-dim); }
.conta-tabs { display: flex; gap: 8px; padding: 0 20px 14px; }
.conta-tab {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
}
.conta-tab.ativo {
  color: #04120d;
  background: linear-gradient(100deg, var(--mint), color-mix(in srgb, var(--mint) 55%, white));
  border-color: transparent;
}
.conta-secao > div { padding: 10px 20px 0; }
.conta-stepper { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 18px 0 24px; }
.conta-por-pessoa { text-align: center; margin-bottom: 22px; }
.conta-por-pessoa .valor { font-family: 'Unbounded', system-ui, sans-serif; font-size: 34px; font-weight: 800; color: var(--mint-text); }
.conta-por-pessoa .label { font-size: 12px; color: var(--text-dimmer); margin-top: 4px; }
.conta-igual-lista { display: flex; flex-direction: column; gap: 8px; }
.conta-igual-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 13.5px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--border-soft);
}
.conta-igual-row b { color: var(--mint-text); }
.conta-pessoas-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.conta-pessoa-chip {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
}
.conta-pessoa-chip.ativo {
  color: #04120d;
  background: linear-gradient(100deg, var(--mint), color-mix(in srgb, var(--mint) 55%, white));
  border-color: transparent;
}
.conta-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--border-soft);
}
.conta-item-row.atribuido { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta-fraco); }
.conta-item-row .nome-item { font-size: 13px; font-weight: 600; }
.conta-item-row .sub-item { font-size: 11px; color: var(--text-dimmer); }
.conta-item-row .preco-item { font-size: 13px; color: var(--mint-text); font-weight: 700; white-space: nowrap; }
.conta-subtotais { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 6px; }
.conta-subtotal-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-dim); }
.conta-subtotal-row b { color: var(--text); }
.conta-voltar {
  display: block;
  margin: 20px auto calc(20px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  color: var(--text-dimmer);
  text-decoration: underline;
  padding: 10px;
}

/* ---------- login da equipe ---------- */
.login-app {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 360px;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--sheet-grad);
  border: 1px solid var(--border-soft);
  text-align: center;
}
.login-sub { font-size: 13px; color: var(--text-dim); margin: 8px 0 22px; }
.login-erro {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--magenta-text);
  background: var(--magenta-fraco);
}
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form .nome-input { margin-bottom: 0; text-align: left; }
.login-form .nome-entrar { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .item-sheet, .carrinho-drawer, .confirmacao-sheet, .nome-modal, .backdrop { transition: none !important; }
}

/* campo isca anti-robô: fora da tela (não display:none, que alguns robôs ignoram) */
.campo-isca {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
