:root {
  --gold: #c0392b;
  --gold-soft: #e8998c;
  --wine: #241210;
  --brown: #3a2116;
  --cream: #fff8ec;
  --paper: #fffdf8;
  --dark: #17120d;
  --muted: #7b6b5e;
  --line: rgba(58, 33, 22, .13);
  --shadow: 0 22px 60px rgba(40, 18, 8, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background:
    radial-gradient(circle at top left, rgba(192,57,43,.14), transparent 28%),
    linear-gradient(180deg, #fff7e8 0%, #f6ecdc 100%);
}
/* Fundo do site público (não do admin) puxando pro dourado do banner do
   topo (#cd9049) em vez do vermelho padrão — bem clarinho, só um tom de
   fundo, não um destaque. */
body:not(.admin-page) {
  background:
    url('/static/bg-smoke-texture.webp?v=2') repeat,
    radial-gradient(circle at top left, rgba(205,144,73,.16), transparent 30%),
    linear-gradient(180deg, #fffaf0 0%, #faf0dd 100%);
}
/* Botões, pills e destaques do resto da página (abaixo do topo) puxando
   pras mesmas cores extraídas do banner — dourado #cd9049 no lugar do
   vermelho padrão, marrom escuro #5a230f no lugar do marrom neutro.
   Escopado só no cardápio/carrinho (main.public-shell), o cabeçalho
   (.hero) fica intocado de propósito. */
main.public-shell {
  --gold: #cd9049;
  --brown: #3d1f0f;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button:disabled { opacity: .65; cursor: not-allowed; }

/* Admin mais compacto: escopado a body.admin-page pra não afetar o
   cardápio público (que já tem tipografia própria, grande de propósito
   pra vender). Reduz fonte base + os maiores contribuintes de "tudo
   grande demais" (input/botão/painel com padding generoso, número de
   métrica gigante, título de seção no tamanho padrão do navegador). */
body.admin-page { font-size: 14px; }
body.admin-page input,
body.admin-page select,
body.admin-page textarea,
body.admin-page .search { padding: 9px 11px; border-radius: 11px; }
body.admin-page textarea { min-height: 60px; }
body.admin-page .order-form label,
body.admin-page .panel-form label { font-size: 12.5px; gap: 4px; }
body.admin-page .panel-form { padding: 14px; gap: 9px; }
body.admin-page .btn { padding: 9px 14px; font-size: 13px; border-radius: 11px; }
body.admin-page .mini-btn,
body.admin-page .qty-btn { padding: 7px 10px; font-size: 12px; }
body.admin-page .admin-content { padding: 16px; }
body.admin-page .admin-header { margin-bottom: 14px; }
body.admin-page .admin-header h1 { font-size: 19px; }
body.admin-page .section-title h2,
body.admin-page .panel-form h2,
body.admin-page .sticky-card h2 { font-size: 16px; }
body.admin-page .panel-form h3 { font-size: 13px; }
body.admin-page .side-menu { padding: 14px; gap: 6px; }
body.admin-page .tab-btn { padding: 10px 12px; font-size: 13px; }
body.admin-page .cards-row { gap: 10px; margin-bottom: 12px; }
body.admin-page .metric { padding: 11px; }
body.admin-page .metric strong { font-size: 20px; }
body.admin-page .order-card { padding: 13px; }
body.admin-page .admin-dish-row { padding: 9px; border-radius: 12px; }
body.admin-page .orders-table-summary strong { font-size: 20px; }
body.admin-page .orders-table th,
body.admin-page .orders-table td { padding: 9px 10px; font-size: 13px; }
body.admin-page .status-summary-row,
body.admin-page .recent-admin-item,
body.admin-page .report-row,
body.admin-page .admin-user-row { padding: 10px; }
body.admin-page .order-detail-card { font-size: 12.5px; }

.hero {
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(232,153,140,.18), transparent 28%),
    linear-gradient(100deg, rgba(20,13,9,.88) 0%, rgba(35,15,13,.72) 42%, rgba(20,13,9,.35) 100%),
    url('/static/hero-banner.webp?v=1') center/cover no-repeat;
}
.compact-hero { min-height: 360px; }
.topbar, .hero-content {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; letter-spacing: .04em; }
.brand small { display: block; color: rgba(255,255,255,.68); font-size: 12px; }
.crown {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), #e17a6d);
  color: #2a1608;
  font-size: 27px;
  box-shadow: 0 10px 28px rgba(192,57,43,.34);
  flex: 0 0 auto;
}
.crown.big { width: 58px; height: 58px; font-size: 36px; margin: 0 auto 8px; }
.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 10px 28px rgba(192,57,43,.34);
}
.admin-link, .btn.ghost {
  border: 1px solid rgba(255,255,255,.22);
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.04);
}
.hero-content {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  padding: 30px 24px 64px;
  align-items: center;
}
.pill, .eyebrow {
  display: inline-flex;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: .96;
  margin: 15px 0;
  max-width: 780px;
}
.hero p { font-size: 15px; max-width: 500px; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.muted { color: rgba(255,255,255,.68); }
.small-muted { margin: 4px 0 14px; color: var(--muted); font-size: 13px; }
.hero-card {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  padding: 16px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.hero-card span { color: var(--gold-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.hero-card strong { display: block; font-size: 29px; line-height: 1.05; margin: 16px 0; }
.hero-card p { font-size: 15px; margin-bottom: 0; }

.btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--gold), #e17a6d); color: #2a1608; box-shadow: 0 12px 26px rgba(192,57,43,.26); }
.btn.light { background: #f3eadb; color: var(--brown); }
.btn.full { width: 100%; }

.layout {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 22px;
  padding: 0 24px 72px;
  margin: -62px auto 0;
  align-items: start;
}
.menu-panel, .sticky-card, .panel-form, .metric, .order-card, .track-card, .track-box {
  background: rgba(255,255,255,.90);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.menu-panel { padding: 24px; }
.section-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.section-title h2, .sticky-card h2, .panel-form h2, .track-box h2 { margin: 4px 0 0; }
.search, input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 13px;
  background: var(--paper);
  color: var(--dark);
  outline: none;
}
input:focus, select:focus, textarea:focus, .search:focus { border-color: rgba(192,57,43,.75); box-shadow: 0 0 0 4px rgba(192,57,43,.13); }
textarea { min-height: 82px; resize: vertical; }
.search { max-width: 260px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.tab-chip {
  border: 1px solid var(--line);
  background: #fffaf0;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 900;
  color: var(--muted);
}
.tab-chip.active { background: var(--brown); color: #fff; }
/* Cardápio compacto: card horizontal (foto pequena + texto) desde o desktop,
   pensado para cardápios grandes (20+ sabores) — em vez de foto grande em
   cima, que obrigava rolar muito e só cabiam 2 por linha. A grid usa
   auto-fill: o navegador decide sozinho quantas colunas cabem de acordo
   com a largura da tela/monitor, sem precisar de breakpoint fixo. */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.menu-sections { display: grid; gap: 22px; }
.menu-section-title {
  margin: 0 0 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--wine);
  border-bottom: 2px solid var(--line);
  padding-bottom: 6px;
}
.dish-card {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fffaf2;
  display: grid;
  grid-template-columns: 92px 1fr;
}
.dish-card.dish-card-promo {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(192,57,43,.16);
}
.promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #e8998c, #c0392b);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.dish-promo-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(135deg, #e8998c, #c0392b);
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 3px 7px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,.24);
}
.dish-photo {
  width: 92px;
  height: 92px;
  min-height: 92px;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.26), transparent 20%),
    linear-gradient(135deg, #3a1210, #c0392b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.76);
  font-size: 24px;
  position: relative;
  overflow: hidden;
}
.dish-photo-button { cursor: zoom-in; }
.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .22s ease;
}
.dish-photo-button:hover img { transform: scale(1.045); }
.photo-zoom-label {
  position: absolute;
  right: 6px;
  bottom: 6px;
  border-radius: 999px;
  background: rgba(23,18,13,.76);
  color: #fff;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.dish-body { padding: 10px 12px; display: grid; align-content: center; min-width: 0; }
.dish-body small { color: var(--gold); font-weight: 900; text-transform: uppercase; font-size: 9px; letter-spacing: .07em; }
.dish-body h3 { margin: 3px 0 4px; font-size: 15px; }
.dish-body p { color: var(--muted); font-size: 12px; min-height: 0; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.price { font-weight: 950; color: var(--wine); font-size: 13px; }
.qty-btn, .mini-btn {
  border: 0;
  border-radius: 12px;
  background: var(--brown);
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
}

.cart-panel { min-width: 0; }
.sticky-card { position: sticky; top: 16px; padding: 20px; }
.cart-items.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; padding: 16px; text-align: center; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item strong { display: block; }
.cart-item small { color: var(--muted); }
.cart-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-actions button { width: 30px; height: 30px; border: 0; border-radius: 10px; background: #f0e4d1; cursor: pointer; font-weight: 950; }
.totals { margin: 16px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.totals div { display: flex; justify-content: space-between; margin: 7px 0; color: var(--muted); }
.totals strong { color: var(--dark); }
.totals .grand { font-size: 20px; color: var(--dark); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.totals.compact { margin-bottom: 0; }
.order-form { display: grid; gap: 11px; }
.order-form label, .panel-form label { display: grid; gap: 6px; font-weight: 900; color: var(--brown); font-size: 14px; }
.field-hint { color: var(--muted); font-size: 12px; font-weight: 700; }
.field-hint.success { color: #166534; }
.field-hint.warning { color: #92400e; }

.search-combo-field { position: relative; }
.search-suggestions {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(20,10,4,.16);
}
.search-suggestion-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  cursor: pointer;
  font-weight: 700;
}
.search-suggestion-item:last-child { border-bottom: 0; }
.search-suggestion-item:hover, .search-suggestion-item:focus { background: #fff3e2; }
.search-suggestion-item strong { display: block; font-size: 13px; color: var(--brown); }
.search-suggestion-item small { display: block; color: var(--muted); font-weight: 700; font-size: 11px; }
.search-suggestion-empty { padding: 10px 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.form-note { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 99;
  background: var(--dark); color: #fff;
  padding: 14px 16px; border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 360px;
  display: none;
}
.toast.show { display: block; }
.cart-fab {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 80;
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--gold), #e17a6d);
  color: #2a1608;
  box-shadow: 0 16px 42px rgba(40,18,8,.26);
  font-weight: 950;
  justify-content: space-between;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(23,18,13,.64);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-card {
  width: min(430px, 100%);
  background: var(--cream);
  border-radius: 30px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.modal-card p { color: var(--muted); }
.modal-actions { display: grid; gap: 10px; }
.success-pix-box { margin: 14px 0; }
.success-pix-box img { max-width: 220px; margin: 10px auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
.success-pix-copia-cola { display: flex; gap: 8px; text-align: left; }
.success-pix-copia-cola textarea { flex: 1; min-height: 60px; font-size: 11px; }
.pix-status-badge { display: inline-flex; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 950; background: #f0e4d1; color: var(--brown); }
.pix-status-badge.paid { background: #bbf7d0; color: #047857; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f0e4d1;
  font-size: 24px;
  cursor: pointer;
}
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(23,18,13,.76);
  display: grid;
  place-items: center;
  padding: 18px;
}
.photo-modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--cream);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
  position: relative;
  padding: 14px;
}
.photo-modal-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: #17120d;
}
.photo-modal-image-wrap img {
  width: 100%;
  max-height: min(68vh, 620px);
  object-fit: contain;
  display: block;
  background: #17120d;
}
.photo-modal-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 4px 12px;
}
.photo-modal-info h2 { margin: 0 0 6px; }
.photo-modal-info p { margin: 0; color: var(--muted); }
.photo-close {
  z-index: 2;
  background: rgba(255,248,236,.94);
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 20% 10%, rgba(192,57,43,.2), transparent 28%), linear-gradient(135deg, #17120d, #3a1210);
  padding: 24px;
}
.login-card { width: min(420px, 100%); background: #fff8ec; border-radius: 30px; padding: 32px; text-align: center; box-shadow: var(--shadow); }
.login-card p { color: var(--muted); }
.login-card input { margin: 16px 0 12px; }
.hidden { display: none !important; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.side-menu { background: #17120d; color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.admin-brand { margin-bottom: 20px; }
.admin-brand small { color: rgba(255,255,255,.6); }
.tab-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 14px; border: 0; border-radius: 14px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.82);
  cursor: pointer; font-weight: 900; text-align: left;
}
.tab-btn.active { background: var(--gold); color: #261406; }
.tab-btn.danger { margin-top: auto; background: rgba(36,18,16,.45); }
.badge { min-width: 23px; height: 23px; border-radius: 99px; background: #ef4444; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.badge.warning { background: #f59e0b; }
.admin-content { padding: 26px; overflow: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.admin-header h1 { margin: 4px 0 0; }
.live-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 900; }
.live-status span { width: 10px; height: 10px; background: #22c55e; border-radius: 99px; box-shadow: 0 0 0 5px rgba(34,197,94,.15); }
.cards-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.cards-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-row.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric { padding: 17px; }
.metric span { color: var(--muted); }
.metric strong { display: block; font-size: 30px; margin-top: 5px; }
.orders-toolbar { margin-bottom: 14px; }
.admin-filter-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; align-items: center; }
.admin-filter-row .search { min-width: 260px; }
.compact-select { max-width: 210px; min-width: 180px; }
.orders-list { display: grid; gap: 14px; }
.order-card { padding: 18px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.order-head h3 { margin: 0; }
.status { display: inline-flex; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 950; background: #f0e4d1; color: var(--brown); white-space: nowrap; }
.status.novo { background: #fee2e2; color: #991b1b; }
.status.preparando { background: #fef3c7; color: #92400e; }
.status.saiu_entrega { background: #dbeafe; color: #1e40af; }
.status.a_caminho { background: #ede9fe; color: #5b21b6; }
.status.finalizado, .status.entregue { background: #bbf7d0; color: #047857; }
.status.entregue { background: #d1fae5; color: #065f46; }
.status.cancelado { background: #e5e7eb; color: #374151; }
.order-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; }
.order-items { margin: 8px 0 0; padding-left: 18px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.order-actions select { max-width: 230px; }
.two-col { display: grid; grid-template-columns: 420px 1fr; gap: 18px; align-items: start; }
.panel-form { padding: 20px; display: grid; gap: 12px; }
.inline-form { display: flex; gap: 10px; margin-bottom: 18px; }
.ficha-tecnica-add-row { display: flex; gap: 8px; margin: 4px 0 8px; }
.ficha-tecnica-add-row select { flex: 2; }
.ficha-tecnica-add-row input { flex: 1; }
.compact-ficha-row { padding: 8px 10px; }
.dishes-list { display: grid; gap: 10px; }
.admin-dish-row { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: #fffdf8; }
.admin-dish-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-dish-row p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.admin-dish-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3a1210, #c0392b);
  color: #fff;
  flex: 0 0 auto;
}
.thumb.has-img { background-size: cover; background-position: center; }
.image-preview { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fffdf8; }
.image-preview img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.settings-form { max-width: 720px; }
.check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.check input { width: auto; }

.track-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(192,57,43,.2), transparent 25%),
    linear-gradient(135deg, #17120d, #3a1210);
  padding: 18px;
}
.track-shell { width: min(680px, 100%); margin: 0 auto; padding: 24px 0; }
.track-card { padding: 22px; }
.track-brand small { color: var(--muted); }
.track-back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; font-weight: 900; color: var(--brown); }
.track-content { display: grid; gap: 14px; margin: 18px 0; }
.track-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.track-head h1 { margin: 6px 0; font-size: clamp(28px, 7vw, 44px); line-height: 1; }
.track-head p { color: var(--muted); margin: 0; }
.progress { display: grid; gap: 10px; margin: 18px 0; }
.progress-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 16px;
  background: #f7ecda;
  color: var(--muted);
}
.progress-step span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7d7bd;
  font-weight: 950;
}
.progress-step.done { background: #fff4d6; color: var(--brown); }
.progress-step.done span { background: var(--gold); color: #2a1608; }
.progress-step.current { outline: 2px solid rgba(192,57,43,.55); }
.progress.canceled .progress-step { opacity: .55; }
.cancel-note { padding: 13px; border-radius: 14px; background: #fee2e2; color: #991b1b; font-weight: 900; text-align: center; }
.track-box { padding: 16px; box-shadow: none; }
.history-list { display: grid; gap: 8px; margin-top: 12px; }
.history-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }

@media (max-width: 1100px) {
  .hero-content, .layout, .admin-shell, .two-col, .order-grid { grid-template-columns: 1fr; }
  .layout { margin-top: -42px; }
  .sticky-card { position: static; }
  .side-menu { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: repeat(2, 1fr); }
  .admin-brand { grid-column: 1 / -1; margin-bottom: 4px; }
  .tab-btn.danger { margin-top: 0; }
}

@media (max-width: 720px) {
  body { background: #f8eedf; }
  .topbar { padding: 14px 14px 8px; }
  .admin-link { font-size: 12px; padding: 8px 11px; }
  .compact-hero { min-height: 390px; }
  .hero-content { padding: 34px 14px 76px; }
  .hero h1 { font-size: clamp(34px, 10vw, 50px); }
  .hero p { font-size: 16px; }
  .mobile-hidden-soft { display: none; }
  .layout { padding: 0 12px 88px; gap: 14px; margin-top: -34px; }
  .menu-panel, .sticky-card, .panel-form, .order-card, .track-card { border-radius: 22px; padding: 15px; }
  .section-title, .admin-header, .order-head, .track-head { flex-direction: column; }
  .search { max-width: 100%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-left: -2px; }
  .tab-chip { white-space: nowrap; }
  .menu-grid { grid-template-columns: 1fr; gap: 10px; }
  .cart-fab:not(.hidden) { display: flex; }
  .cards-row, .cards-row.four, .cards-row.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { padding: 14px; }
  .metric strong { font-size: 24px; }
  .admin-content { padding: 14px; }
  .side-menu { grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; }
  .admin-brand { display: none; }
  .tab-btn { padding: 11px; font-size: 13px; }
  .inline-form { flex-direction: column; }
  .admin-dish-row { grid-template-columns: 1fr; }
  .admin-dish-actions .mini-btn { flex: 1; }
  .order-actions .btn, .order-actions select { width: 100%; max-width: none; }
  .toast { left: 14px; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; }
  .modal-card { padding: 24px 18px; }
  .photo-modal { padding: 10px; }
  .photo-modal-card { border-radius: 24px; padding: 10px; max-height: calc(100vh - 20px); }
  .photo-modal-image-wrap { border-radius: 18px; }
  .photo-modal-info { grid-template-columns: 1fr; padding: 12px 2px 10px; }
  .history-item { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 11px; }
  .crown { width: 38px; height: 38px; }
  .brand-logo-img { width: 38px; height: 38px; }
  .hero-actions .btn, .hero-actions .btn.ghost { width: 100%; border-radius: 16px; }
  .dish-card { grid-template-columns: 76px 1fr; min-height: 76px; }
  .dish-photo { width: 76px; height: 76px; min-height: 76px; font-size: 20px; }
  .cards-row, .cards-row.four, .cards-row.five { grid-template-columns: 1fr; }
}


@media (max-width: 760px) {
  .admin-filter-row { width: 100%; justify-content: stretch; }
  .admin-filter-row .search, .admin-filter-row .compact-select, .admin-filter-row .btn { width: 100%; max-width: none; min-width: 0; }
}

/* V3 - fluxo público por abas */
.public-shell {
  width: min(1180px, 100%);
  padding: 0 24px 72px;
  margin: -62px auto 0;
}
.shop-nav {
  position: sticky;
  top: 10px;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: rgba(255, 253, 248, .92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 46px rgba(40, 18, 8, .13);
  backdrop-filter: blur(14px);
  padding: 6px;
  margin-bottom: 18px;
}
.shop-nav-btn {
  border: 0;
  border-radius: 16px;
  padding: 13px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 950;
  cursor: pointer;
}
.shop-nav-btn.active {
  background: var(--brown);
  color: #fff;
}
.mini-badge {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 99px;
  background: #ef4444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: 5px;
  vertical-align: middle;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}
.login-center-wrap {
  max-width: 480px;
  margin: 0 auto;
}
.customer-form-card h2,
.info-card h3,
.cart-main-card h2,
.checkout-card h2 { margin: 4px 0 4px; }
.info-card {
  background: rgba(255,255,255,.90);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.info-card p { color: var(--muted); }
.customer-summary {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(192,57,43,.34);
  background: #fff7df;
  border-radius: 18px;
  padding: 13px;
  color: var(--brown);
  margin-top: 10px;
}
.customer-summary.empty {
  border-style: dashed;
  background: #fffdf8;
  color: var(--muted);
}
.customer-summary strong { font-size: 17px; }
.customer-summary span,
.customer-summary small { color: var(--muted); }
.link-button {
  border: 0;
  background: transparent;
  color: var(--wine);
  font-weight: 950;
  padding: 0;
  text-align: left;
  cursor: pointer;
  width: fit-content;
}
.compact-title { margin-bottom: 8px; }
.orders-mini-list { display: grid; gap: 10px; }
.orders-mini-list.empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}
.mini-order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: #fffdf8;
}
.mini-order-card small,
.mini-order-card span { display: block; color: var(--muted); margin-top: 3px; }

/* Admin - clientes */
.admin-section-title { margin-bottom: 14px; }
.cards-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customers-list { display: grid; gap: 12px; }
.customer-card-admin {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr) minmax(240px, .8fr);
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.customer-main-admin { display: flex; gap: 12px; align-items: center; min-width: 0; }
.customer-main-admin h3 { margin: 0 0 4px; }
.customer-main-admin p,
.customer-main-admin small { margin: 0; color: var(--muted); }
.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), #e17a6d);
  color: #2a1608;
  font-weight: 950;
  flex: 0 0 auto;
}
.customer-stats-admin { display: grid; gap: 7px; }
.customer-stats-admin span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  color: var(--muted);
}
.customer-stats-admin strong { color: var(--dark); }
.customer-orders-admin { display: grid; gap: 7px; }
.customer-orders-admin a {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fffdf8;
  color: var(--brown);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .public-shell { margin-top: -42px; }
  .checkout-grid,
  .customer-card-admin { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .public-shell { padding: 0 12px 28px; margin-top: -34px; }
  .shop-nav {
    position: sticky;
    left: auto;
    right: auto;
    top: 8px;
    bottom: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    border-radius: 20px;
    padding: 6px;
    margin-bottom: 12px;
  }
  .shop-nav-btn { padding: 10px 5px; font-size: 12px; border-radius: 14px; }
  .checkout-grid { gap: 14px; }
  .info-card { border-radius: 22px; padding: 16px; }
  .cart-fab:not(.hidden) { display: none; }
  .cards-row.three { grid-template-columns: 1fr; }
  .customer-card-admin { border-radius: 18px; padding: 13px; }
  .customer-stats-admin span { font-size: 13px; }
  .mini-order-card { grid-template-columns: 1fr; }
  .mini-order-card .btn { width: 100%; }
}

@media (max-width: 420px) {
  .public-shell { padding-left: 10px; padding-right: 10px; }
  .shop-nav-btn { font-size: 11px; }
}

.auth-info-card {
  min-height: 100%;
}
#loginNewCustomerFields {
  display: grid;
  gap: 12px;
}
#loginReturningBox {
  display: grid;
  gap: 4px;
}
#loginReturningBox strong {
  color: var(--brown);
  font-size: 15px;
}
#loginReturningBox span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
#logoutCustomerBtn.hidden {
  display: none !important;
}

/* V6 - login separado, minha conta e menu do usuário */
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.user-menu-wrap { position: relative; }
.user-menu-button {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.06);
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 950;
  max-width: 190px;
}
.user-menu-button #userMenuName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-button .chevron { color: rgba(255,255,255,.72); }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  width: 260px;
  background: rgba(255,253,248,.98);
  color: var(--dark);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 58px rgba(20,10,4,.24);
  padding: 10px;
}
.user-dropdown > div { display: grid; gap: 7px; }
.user-dropdown strong { color: var(--brown); }
.user-dropdown small { color: var(--muted); margin-bottom: 4px; }
.user-dropdown button {
  border: 0;
  border-radius: 13px;
  padding: 11px 12px;
  background: #f3eadb;
  color: var(--brown);
  text-align: left;
  cursor: pointer;
  font-weight: 950;
}
.user-dropdown button:hover { background: #ecdcc3; }
.user-dropdown .danger-link { color: #991b1b; background: #fee2e2; }
.register-grid,
.login-grid,
.account-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}
.account-grid .panel-form input:disabled {
  background: #eee2cf;
  color: var(--muted);
  cursor: not-allowed;
}
#goAccountFromRegisterBtn.hidden,
#accountLoginBtn.hidden,
#logoutCustomerBtn.hidden { display: none !important; }
.shop-nav-btn.active[data-public-tab="login"],
.shop-nav-btn.active[data-public-tab="account"] { background: transparent; color: var(--muted); }

@media (max-width: 1100px) {
  .register-grid,
  .login-grid,
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { gap: 10px; }
  .top-actions { gap: 6px; }
  .user-menu-button { padding: 8px 10px; max-width: 136px; font-size: 12px; }
  .admin-link { padding: 8px 10px; }
  .user-dropdown {
    position: fixed;
    right: 10px;
    left: 10px;
    top: 68px;
    width: auto;
  }
}

@media (max-width: 420px) {
  .topbar { align-items: flex-start; }
  .top-actions { flex-direction: column; align-items: flex-end; }
  .user-menu-button { max-width: 142px; }
}


/* V7 - cadastro oculto quando logado e logo no título */
.hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 10px 0 10px;
}
.hero-title-wrap h1 {
  margin: 0;
}
.hero-logo-box {
  width: clamp(82px, 10vw, 136px);
  height: clamp(82px, 10vw, 136px);
  border-radius: 30px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 22px 52px rgba(0,0,0,.22);
  flex: 0 0 auto;
}
.hero-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-logo-box span {
  width: 68%;
  height: 68%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), #e17a6d);
  color: #2a1608;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
}
.customer-logged .guest-only {
  display: none !important;
}
.shop-nav.customer-logged {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.logo-preview-admin {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: #fffdf8;
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo-preview-admin img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
}
.logo-preview-admin span {
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 720px) {
  .hero-title-wrap {
    gap: 12px;
    align-items: flex-start;
  }
  .hero-logo-box {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    margin-top: 4px;
  }
  .shop-nav.customer-logged {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .hero-title-wrap {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }
  .hero-logo-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
}


/* V8 - topo mais limpo, logo no lugar do KPI e melhor proporção no celular */
.hero-content {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  gap: clamp(12px, 3vw, 24px);
}
.hero-title-wrap {
  display: block;
  margin: 10px 0 10px;
}
.hero-hours-only {
  margin-top: 10px;
}
.hero-hours-only .muted {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
}
.hero-logo-card {
  width: min(100%, 220px);
  justify-self: end;
  text-align: center;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
}
.hero-logo-card .hero-logo-box {
  width: clamp(82px, 10vw, 118px);
  height: clamp(82px, 10vw, 118px);
  border-radius: 24px;
  margin: 0 auto;
}
.hero-logo-card .hero-logo-box img {
  object-fit: contain;
  background: rgba(255,255,255,.92);
  padding: 6px;
}
.hero-logo-card strong {
  margin: 4px 0 0;
  font-size: clamp(15px, 1.7vw, 18px);
}
.hero-logo-card p {
  margin: 0;
  font-size: 11px;
  max-width: 170px;
}

@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 210px);
  }
  .hero-logo-card {
    width: min(100%, 210px);
  }
}

@media (max-width: 720px) {
  .compact-hero { min-height: 300px; }
  .hero-content {
    grid-template-columns: 1fr;
    padding: 20px 14px 44px;
    gap: 12px;
  }
  .hero h1 {
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1;
    max-width: 560px;
  }
  .hero p {
    font-size: 13px;
    margin: 8px 0 0;
  }
  .hero-hours-only {
    margin-top: 10px;
  }
  .hero-hours-only .muted {
    padding: 7px 10px;
    font-size: 11px;
  }
  .hero-logo-card {
    justify-self: start;
    width: min(100%, 160px);
    padding: 10px;
    border-radius: 22px;
    gap: 6px;
  }
  .hero-logo-card .hero-logo-box {
    width: 68px;
    height: 68px;
    border-radius: 22px;
  }
  .hero-logo-card strong {
    font-size: 13px;
  }
  .hero-logo-card p {
    display: none;
  }
  .public-shell { margin-top: -26px; }
}

@media (max-width: 420px) {
  .topbar {
    gap: 10px;
  }
  .hero-content {
    padding-top: 16px;
    padding-bottom: 40px;
  }
  .hero h1 {
    font-size: clamp(22px, 8vw, 30px);
  }
  .hero-logo-card {
    width: 136px;
    padding: 8px;
  }
  .hero-logo-card .hero-logo-box {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }
  .hero-logo-box span {
    font-size: 32px;
  }
  .shop-nav {
    left: 8px;
    right: 8px;
  }
}

/* V10 - melhorias do admin: resumo, kanban, impressão, usuários e relatórios */
.metric.featured {
  border-color: rgba(192,57,43,.42);
  background: linear-gradient(180deg, #fff8df, #fffdf8);
}
.text-danger { color: #991b1b; font-weight: 800; }
.metric.danger-soft {
  border-color: rgba(153,27,27,.18);
  background: linear-gradient(180deg, #fff1f1, #fffdf8);
}
.dashboard-grid,
.reports-grid,
.users-grid {
  align-items: start;
}
.status-summary-list,
.recent-admin-list,
.report-list,
.users-list-admin {
  display: grid;
  gap: 10px;
}
.status-summary-row,
.recent-admin-item,
.report-row,
.admin-user-row {
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.status-summary-row strong,
.recent-admin-item strong,
.report-row strong,
.admin-user-row strong { color: var(--dark); }
.recent-admin-item small,
.report-row small,
.admin-user-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 800;
}
.report-row.wide span { min-width: 210px; }
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(285px, 1fr));
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding: 4px 2px 18px;
}
.kanban-column {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
  border-radius: 24px;
  min-height: 220px;
  padding: 12px;
}
.kanban-column > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.kanban-column > header strong {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #f3eadb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
}
.kanban-orders { display: grid; gap: 12px; }
.empty-column {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}
.mini-admin-order {
  padding: 14px;
  box-shadow: 0 12px 34px rgba(41, 22, 10, .08);
}
.mini-admin-order.stale-order {
  border-color: rgba(220,38,38,.35);
  box-shadow: 0 0 0 3px rgba(220,38,38,.06), 0 16px 38px rgba(41, 22, 10, .10);
}
.order-head.compact h3 { margin-bottom: 2px; }
.compact-order-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
.order-client-box {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.order-client-box p { margin: 5px 0; }
.mini-admin-order .order-actions {
  gap: 7px;
  margin-top: 12px;
}
.mini-admin-order .order-actions .btn,
.mini-admin-order .order-actions select {
  min-height: 38px;
}
.admin-user-row .mini-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.print-area { display: none; }
.print-ticket {
  font-family: Arial, sans-serif;
  color: #111;
  max-width: 380px;
  margin: 0 auto;
  padding: 10px;
}
.print-ticket h1 { font-size: 20px; margin: 0 0 6px; }
.print-ticket h2 { font-size: 18px; margin: 8px 0; }
.print-ticket p { margin: 4px 0; font-size: 14px; }
.print-ticket table { width: 100%; border-collapse: collapse; font-size: 14px; }
.print-ticket td { padding: 5px 0; border-bottom: 1px dashed #aaa; vertical-align: top; }
.print-ticket td:first-child { width: 38px; }
.print-ticket td:last-child { text-align: right; width: 86px; }
@media print {
  body * { visibility: hidden !important; }
  #printArea, #printArea * { visibility: visible !important; }
  #printArea {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .print-ticket { max-width: none; width: 100%; }
  @page { margin: 8mm; }
}

@media (max-width: 1100px) {
  .kanban-board {
    grid-template-columns: repeat(5, minmax(265px, 82vw));
  }
}

@media (max-width: 720px) {
  .side-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kanban-board {
    grid-template-columns: minmax(280px, 1fr);
    overflow-x: visible;
  }
  .kanban-column {
    border-radius: 18px;
    padding: 10px;
  }
  .admin-filter-row {
    width: 100%;
  }
  .admin-filter-row .btn,
  .admin-filter-row .search {
    width: 100%;
  }
  .status-summary-row,
  .recent-admin-item,
  .report-row,
  .admin-user-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .mini-admin-order .order-actions {
    grid-template-columns: 1fr;
  }
  .mini-admin-order .order-actions .btn,
  .mini-admin-order .order-actions select {
    width: 100%;
  }
}

/* V12 - pedidos em tabela responsiva com popup de detalhes */
body.admin-page {
  overflow: hidden;
}
body.admin-page.modal-open {
  overflow: hidden;
}
.admin-shell {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
.admin-content {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(14px, 2vw, 26px);
}
.admin-header,
.admin-section-title,
.orders-toolbar,
.tab-content {
  min-width: 0;
}
.cards-row.five {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.orders-table-card {
  background: rgba(255,253,248,.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(41, 22, 10, .08);
  padding: 14px;
  min-width: 0;
}
.orders-table-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 14px;
  color: var(--muted);
  font-weight: 850;
}
.orders-table-summary div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--dark);
}
.orders-table-summary strong {
  font-size: 28px;
}
.orders-table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fffdf8;
}
.orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 840px;
}
.orders-table th,
.orders-table td {
  padding: 13px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.orders-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fbf0dc;
  color: var(--brown);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.orders-table tbody tr {
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.orders-table tbody tr:hover {
  background: #fff5e3;
}
.orders-table tbody tr:focus {
  outline: 3px solid rgba(192,57,43,.28);
  outline-offset: -3px;
}
.orders-table tbody tr.is-stale {
  background: #fff7ed;
}
.orders-table tbody tr.is-stale td:first-child {
  box-shadow: inset 4px 0 0 #dc2626;
}
.orders-table td small,
.order-number-cell small,
.order-customer-cell small,
.order-total-cell small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 800;
}
.order-number-cell strong,
.order-customer-cell strong,
.order-total-cell strong {
  color: var(--dark);
}
.order-items-cell {
  max-width: 330px;
  color: var(--muted);
  font-weight: 850;
}
.elapsed-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f3eadb;
  color: var(--brown);
  font-weight: 950;
  white-space: nowrap;
}
.elapsed-pill.late {
  background: #fee2e2;
  color: #991b1b;
}
.order-action-cell {
  text-align: right;
}
.order-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 18px;
}
.order-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,10,4,.58);
  backdrop-filter: blur(4px);
}
.order-detail-card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 24px));
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: #fffdf8;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 18px;
  box-shadow: 0 20px 56px rgba(20,10,4,.34);
  padding: clamp(12px, 1.4vw, 16px);
  font-size: 13px;
}
.modal-close-btn {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #f3eadb;
  color: var(--brown);
  font-size: 19px;
  cursor: pointer;
  z-index: 2;
}
.order-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-top: -22px;
  margin-bottom: 10px;
  padding-right: 40px;
}
.order-modal-head h2 {
  margin: 4px 0 2px;
  font-size: 17px;
}
.order-modal-head small {
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
}
.order-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, .85fr);
  gap: 10px;
}
.order-detail-block {
  border: 1px solid var(--line);
  background: #fff8ec;
  border-radius: 14px;
  padding: 11px;
}
.order-detail-block h3 {
  margin: 0 0 8px;
  font-size: 13px;
}
.order-detail-block p {
  margin: 5px 0;
  font-size: 12.5px;
}
.order-detail-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 12.5px;
}
.order-detail-items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 7px;
}
.order-detail-items li small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 850;
  font-size: 11.5px;
}
.order-note {
  margin-top: 10px !important;
  background: #fff3d8;
  border-radius: 12px;
  padding: 8px;
  font-size: 12px;
}
.order-total-panel {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff8ec;
  font-size: 12.5px;
}
.order-total-panel .grand-total,
.order-total-inline .grand-total {
  color: var(--brown);
  font-size: 15px;
}
.order-total-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
}
.order-modal-actions-grid {
  margin-top: 10px;
  grid-template-columns: 1fr 1fr;
}
.compact-actions-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compact-actions-block label {
  display: grid;
  gap: 4px;
  font-weight: 950;
  color: var(--brown);
  font-size: 12.5px;
}
.compact-actions-block select,
.compact-actions-block input {
  min-height: 34px;
  font-size: 12.5px;
}
.order-modal-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.order-modal-btn-row .btn {
  padding: 7px 10px;
  font-size: 12px;
}
.order-modal-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.order-modal-actions label {
  display: grid;
  gap: 4px;
  font-weight: 950;
  color: var(--brown);
  font-size: 12.5px;
  min-width: 190px;
}
.order-modal-actions select {
  min-height: 36px;
  font-size: 12.5px;
}

@media (min-width: 1300px) {
  .admin-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .orders-table { min-width: 0; }
}

@media (max-width: 980px) {
  body.admin-page { overflow: auto; }
  .admin-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .admin-content {
    overflow: visible;
  }
  .orders-table { min-width: 760px; }
  .order-modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .orders-table-card { padding: 10px; border-radius: 18px; }
  .orders-table-summary { align-items: flex-start; flex-direction: column; }
  .orders-table-scroll { overflow: visible; border: 0; background: transparent; }
  .orders-table { min-width: 0; border-collapse: separate; border-spacing: 0 10px; }
  .orders-table thead { display: none; }
  .orders-table tbody,
  .orders-table tr,
  .orders-table td { display: block; width: 100%; }
  .orders-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffdf8;
    padding: 10px;
    box-shadow: 0 10px 26px rgba(41,22,10,.07);
  }
  .orders-table tbody tr.is-stale { box-shadow: inset 4px 0 0 #dc2626, 0 10px 26px rgba(41,22,10,.07); }
  .orders-table tbody tr.is-stale td:first-child { box-shadow: none; }
  .orders-table td {
    border: 0;
    padding: 8px 4px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .orders-table td::before {
    content: attr(data-label);
    color: var(--brown);
    font-weight: 950;
    min-width: 74px;
  }
  .orders-table .order-number-cell,
  .orders-table .order-customer-cell,
  .orders-table .order-total-cell,
  .orders-table .order-items-cell {
    display: grid;
    grid-template-columns: 74px 1fr;
    max-width: none;
  }
  .orders-table .order-number-cell::before,
  .orders-table .order-customer-cell::before,
  .orders-table .order-total-cell::before,
  .orders-table .order-items-cell::before { grid-row: 1 / 3; }
  .order-action-cell .mini-btn { width: 100%; }
  .order-detail-modal { padding: 10px; align-items: end; }
  .order-detail-card { width: 100%; max-height: calc(100vh - 20px); border-radius: 24px 24px 0 0; }
  .manual-order-card { width: 100%; max-height: calc(100vh - 20px); }
  .order-modal-head { margin-top: -28px; padding-right: 44px; flex-direction: column; }
  .order-total-panel { justify-content: stretch; flex-direction: column; gap: 8px; }
  .order-modal-actions { display: grid; grid-template-columns: 1fr; }
  .order-modal-actions label,
  .order-modal-actions .btn { width: 100%; min-width: 0; }
}

/* V13 - clientes compactos em tabela + sino de pedido novo */
.admin-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.new-order-bell {
  border: 1px solid rgba(192,57,43,.28);
  background: rgba(255,255,255,.72);
  color: var(--muted);
  border-radius: 999px;
  min-height: 42px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(73,42,22,.06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.new-order-bell.has-new {
  border-color: rgba(192,57,43,.55);
  background: linear-gradient(135deg, #fff7d6, #f4c844);
  color: #2a1608;
  box-shadow: 0 12px 32px rgba(192,57,43,.23);
  animation: bellPulse 1.25s infinite;
}
.new-order-bell.idle {
  animation: none;
  opacity: .88;
}
.new-order-bell strong {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #241210;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.new-order-bell.idle strong {
  display: none;
}
.new-order-bell .bell-icon { font-size: 18px; }
@keyframes bellPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 12px 32px rgba(192,57,43,.23); }
  50% { transform: translateY(-1px); box-shadow: 0 16px 42px rgba(192,57,43,.36); }
}
.customers-table { min-width: 900px; }
.customers-table-card .orders-table-summary strong { color: var(--brown); }
.customer-mini-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.customer-mini-profile > div:last-child { min-width: 0; }
.customer-summary-cell strong,
.customers-table td strong { color: var(--dark); }
.customer-summary-cell small,
.customer-last-cell small,
.customers-table td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 800;
}
.customer-address-cell {
  max-width: 280px;
  color: var(--muted);
  font-weight: 850;
}
.customer-last-cell {
  color: var(--muted);
  font-weight: 850;
}
.avatar-circle.small {
  width: 38px;
  height: 38px;
  font-size: 15px;
}
.avatar-circle.large {
  width: 58px;
  height: 58px;
  font-size: 22px;
}
.customer-detail-card { width: min(880px, calc(100vw - 28px)); }
.manual-order-card { width: min(980px, calc(100vw - 28px)); max-height: min(94vh, 900px); font-size: 11px; }
.customer-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.customer-modal-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.customer-recent-orders {
  display: grid;
  gap: 10px;
}
.customer-recent-order-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fffdf8;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.customer-recent-order-row strong { color: var(--dark); }
.customer-recent-order-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}
.customer-recent-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .admin-header-actions { justify-content: flex-start; width: 100%; }
  .customers-table { min-width: 760px; }
  .customer-modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .new-order-bell {
    width: 100%;
    justify-content: center;
    border-radius: 16px;
  }
  .customer-modal-stats { grid-template-columns: 1fr; }
  .customers-table { min-width: 0; }
  .customers-table .customer-summary-cell,
  .customers-table .customer-address-cell,
  .customers-table .customer-last-cell {
    display: grid;
    grid-template-columns: 74px 1fr;
    max-width: none;
  }
  .customers-table .customer-summary-cell::before,
  .customers-table .customer-address-cell::before,
  .customers-table .customer-last-cell::before { grid-row: 1 / 3; }
  .customer-recent-order-row {
    align-items: stretch;
    flex-direction: column;
  }
  .customer-recent-actions .mini-btn { flex: 1; text-align: center; }
  .customer-detail-card { width: 100%; }
}


/* V15 - página do entregador */
.delivery-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(192,57,43,.18), transparent 30%),
    linear-gradient(180deg, #fff7e8 0%, #f4e5cd 100%);
}
.delivery-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 28px);
}
.delivery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--brown);
}
.delivery-header .brand small { color: var(--muted); }
.delivery-login-card,
.delivery-panel {
  background: rgba(255,253,248,.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 26px);
}
.delivery-login-card {
  max-width: 440px;
  margin: 60px auto 0;
  display: grid;
  gap: 12px;
}
.delivery-login-card h1,
.delivery-panel h1,
.delivery-panel h2 { margin: 0; }
.delivery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.delivery-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.delivery-list {
  display: grid;
  gap: 12px;
}
.delivery-order-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffdf8;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.delivery-order-card.delivered {
  opacity: .72;
  background: #f6fff9;
}
.delivery-order-card.a-caminho {
  border-color: var(--wine);
  box-shadow: 0 0 0 2px rgba(36,18,16,.12);
}
.delivery-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}
.delivery-order-head h3 { margin: 2px 0; font-size: 22px; }
.delivery-order-head small { color: var(--muted); font-weight: 850; }
.delivery-order-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.delivery-order-info p { margin: 0; color: var(--muted); }
.delivery-order-info strong { color: var(--brown); }
.delivery-items {
  margin: 0;
  padding-left: 18px;
  color: var(--dark);
}
.delivery-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.delivery-done-btn {
  background: #16a34a !important;
  color: #fff !important;
}
@media (max-width: 720px) {
  .delivery-header { align-items: flex-start; flex-direction: column; }
  .delivery-summary { grid-template-columns: 1fr; }
  .delivery-order-info { grid-template-columns: 1fr; }
  .delivery-actions { display: grid; grid-template-columns: 1fr; }
  .delivery-actions .btn { width: 100%; }
  .delivery-login-card { margin-top: 24px; }
}


/* V18 - entregador dentro do admin como aba lateral */
.delivery-admin-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,253,248,.72);
  box-shadow: var(--soft-shadow, 0 12px 32px rgba(76, 46, 25, .08));
  overflow: hidden;
}
.delivery-admin-frame {
  display: block;
  width: 100%;
  min-height: min(760px, calc(100vh - 210px));
  border: 0;
  background: transparent;
}
.embedded-delivery-page {
  min-height: auto;
  background: transparent;
}
.embedded-delivery-page .delivery-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px;
}
.embedded-delivery-page .delivery-header {
  display: none;
}
.embedded-delivery-page .delivery-login-card {
  margin: 8px 0;
  max-width: 460px;
  box-shadow: none;
}
.embedded-delivery-page .delivery-panel {
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 0;
}
.embedded-delivery-page .delivery-toolbar {
  padding: 6px 4px 12px;
}
.embedded-delivery-page .delivery-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .delivery-admin-frame { min-height: 720px; }
  .embedded-delivery-page .delivery-summary { grid-template-columns: 1fr; }
}

/* V19 - hero compacto solicitado pelo cliente */
@media (min-width: 721px) {
  .brand strong { font-size: 15px; }
  .brand small { font-size: 11px; }
  .pill { font-size: 11px; }
  .hero-hours-only .muted { font-size: 13px; }
  .public-shell { margin-top: -34px; }
}

/* V22 - ajustes mobile: esconder logo do topo e melhorar proporção dos pratos */
@media (max-width: 720px) {
  .hero-logo-card {
    display: none !important;
  }
  .compact-hero {
    min-height: 250px !important;
  }
  .hero-content {
    padding: 16px 14px 28px !important;
    gap: 8px !important;
  }
  .hero h1 {
    font-size: clamp(22px, 8vw, 30px) !important;
    max-width: 100% !important;
  }
  .hero p {
    font-size: 13px !important;
  }
  .public-shell {
    margin-top: -12px !important;
  }
}

/* V23 - corrigir barra Cardápio no mobile: manter no topo da área e não no rodapé */
@media (max-width: 720px) {
  .shop-nav.customer-logged { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* V24 - card da logo menor, só nome da pizzaria e imagem quadrada preenchida */
@media (min-width: 721px) {
  .hero-logo-card {
    width: min(100%, 150px) !important;
    padding: 0 !important;
    gap: 8px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }
  .hero-logo-card .hero-logo-box {
    width: 116px !important;
    height: 116px !important;
    border-radius: 18px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    margin: 0 auto 0 !important;
  }
  .hero-logo-card .hero-logo-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 26px rgba(20,10,6,.18) !important;
  }
  .hero-logo-card strong {
    font-size: 15px !important;
    line-height: 1.04 !important;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin: 0 !important;
    color: #fff !important;
    text-align: center !important;
  }
  .hero-logo-card p,
  .hero-logo-caption {
    display: none !important;
  }
}


/* V29 - ajustar tamanho da logo e aproximar do nome/título */
@media (min-width: 721px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) 138px !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .hero-logo-card {
    width: 138px !important;
    justify-self: start !important;
    align-self: center !important;
    margin-left: -6px !important;
    gap: 4px !important;
  }
  .hero-logo-card .hero-logo-box {
    width: 102px !important;
    height: 102px !important;
    border-radius: 16px !important;
  }
  .hero-logo-card .hero-logo-box img {
    border-radius: 16px !important;
  }
  .hero-logo-card strong {
    font-size: 14px !important;
    margin-top: 2px !important;
  }
}


/* V30 - AJUSTE FINAL SOMENTE DESKTOP - LOGO DO BANNER
   Altere aqui se quiser mexer depois:
   - tamanho da foto: .hero-logo-card .hero-logo-box width/height
   - aproximar do texto: .hero-logo-card margin-left
*/
@media (min-width: 721px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) 125px !important;
    gap: 0 !important;
    align-items: center !important;
  }

  .hero-logo-card {
    width: 125px !important;
    justify-self: start !important;
    align-self: center !important;
    margin-left: -55px !important;
    padding: 0 !important;
    gap: 4px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
  }

  .hero-logo-card .hero-logo-box {
    width: 108px !important;
    height: 108px !important;
    border-radius: 16px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }

  .hero-logo-card .hero-logo-box img {
    width: 108px !important;
    height: 108px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 16px !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
    box-shadow: 0 10px 24px rgba(20,10,6,.22) !important;
  }

  .hero-logo-card strong {
    font-size: 13px !important;
    line-height: 1.05 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    margin: 2px 0 0 !important;
    color: #fff !important;
    text-align: center !important;
  }

  .hero-logo-card p,
  .hero-logo-caption {
    display: none !important;
  }
}

/* V31 - rastreio GPS automático do entregador */
.delivery-tracking-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,253,248,.86);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(40,18,8,.08);
  margin: 14px 0;
}
.delivery-tracking-box strong {
  display: block;
  font-size: 18px;
  color: var(--brown);
  margin: 3px 0;
}
.delivery-tracking-box small {
  color: var(--muted);
  font-weight: 750;
}
.tracking-dot {
  min-width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 12px;
  background: #f3eadb;
  color: var(--brown);
  border: 1px solid var(--line);
}
.delivery-tracking-box.active {
  border-color: rgba(22,163,74,.32);
  background: linear-gradient(180deg, #f0fff4, #fffdf8);
}
.delivery-tracking-box.active .tracking-dot {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 0 0 8px rgba(22,163,74,.12);
}
.delivery-tracking-box.error {
  border-color: rgba(220,38,38,.32);
  background: linear-gradient(180deg, #fff1f2, #fffdf8);
}
.delivery-tracking-box.error .tracking-dot {
  background: #dc2626;
  color: #fff;
}
.delivery-tracking-box.paused .tracking-dot,
.delivery-tracking-box.waiting .tracking-dot {
  background: var(--gold);
  color: #2a1608;
}
.delivery-tracking-admin {
  margin-bottom: 16px;
}
.delivery-locations-list {
  display: grid;
  gap: 10px;
}
.delivery-location-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 1.2fr auto;
  gap: 12px;
  align-items: center;
}
.delivery-location-card h3 {
  margin: 3px 0;
  color: var(--dark);
}
.delivery-location-card small,
.delivery-location-info p {
  color: var(--muted);
}
.delivery-location-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
}
.delivery-location-info p {
  margin: 0;
}
.delivery-location-info strong {
  color: var(--brown);
}
.delivery-location-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .delivery-location-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .delivery-location-info {
    grid-template-columns: 1fr;
  }
  .delivery-location-actions {
    justify-content: stretch;
  }
  .delivery-location-actions .btn {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .delivery-tracking-box {
    align-items: flex-start;
    flex-direction: column;
  }
  .tracking-dot {
    min-width: 100%;
    height: 38px;
  }
}

/* V32 - tela do entregador compacta + GPS obrigatório */
.delivery-shell {
  width: min(820px, 100%);
  padding: clamp(10px, 2vw, 18px);
}
.delivery-header {
  margin-bottom: 10px;
}
.delivery-back-link {
  padding: 10px 14px;
  border-radius: 16px;
}
.delivery-panel {
  padding: clamp(14px, 2.3vw, 18px) !important;
  border-radius: 22px !important;
}
.compact-delivery-toolbar {
  margin-bottom: 10px !important;
  align-items: center !important;
}
.compact-delivery-toolbar h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: .98;
}
.compact-delivery-toolbar .eyebrow {
  font-size: 11px;
}
.compact-delivery-toolbar .delivery-actions {
  gap: 8px;
}
.compact-delivery-toolbar .btn {
  padding: 10px 14px;
  border-radius: 14px;
}
.delivery-summary-compact {
  grid-template-columns: 150px 190px 1fr !important;
  align-items: stretch;
  gap: 10px !important;
  margin-bottom: 12px !important;
}
.delivery-summary-compact .metric {
  padding: 12px !important;
  border-radius: 16px !important;
}
.delivery-summary-compact .metric strong {
  font-size: 26px !important;
}
.compact-tracking-box {
  margin: 0 !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  min-height: 0;
}
.compact-tracking-box strong {
  font-size: 15px !important;
  margin: 1px 0 !important;
}
.compact-tracking-box small {
  font-size: 12px;
}
.compact-tracking-box .tracking-dot {
  min-width: 42px;
  height: 42px;
  font-size: 10px;
}
.compact-delivery-order {
  padding: 12px !important;
  border-radius: 18px !important;
  gap: 10px !important;
}
.compact-delivery-order .delivery-order-head {
  padding-bottom: 8px;
  gap: 8px;
}
.compact-delivery-order .delivery-order-head h3 {
  font-size: 19px;
  margin: 1px 0;
}
.compact-order-info {
  gap: 6px 10px !important;
  font-size: 13px;
}
.delivery-items-details {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  color: var(--muted);
  font-weight: 850;
}
.delivery-items-details summary {
  cursor: pointer;
  color: var(--brown);
}
.delivery-items-details[open] summary {
  margin-bottom: 8px;
}
.compact-actions {
  justify-content: stretch !important;
}
.compact-actions .btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
}
.gps-locked {
  opacity: .45 !important;
  cursor: not-allowed !important;
}
.gps-required-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23,18,13,.62);
  backdrop-filter: blur(6px);
}
.gps-required-modal.hidden {
  display: none !important;
}
.gps-required-card {
  width: min(430px, 100%);
  border-radius: 24px;
  background: #fffdf8;
  border: 1px solid rgba(220,38,38,.28);
  box-shadow: 0 28px 90px rgba(20,10,6,.30);
  padding: 22px;
  display: grid;
  gap: 12px;
}
.gps-required-card h2 {
  margin: 0;
  font-size: 28px;
  color: var(--brown);
}
.gps-required-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}
.gps-required-card small {
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 720px) {
  .delivery-shell {
    padding: 10px;
  }
  .delivery-header {
    margin-bottom: 8px;
  }
  .delivery-back-link {
    padding: 9px 12px;
    font-size: 14px;
  }
  .delivery-panel {
    padding: 14px !important;
    border-radius: 20px !important;
  }
  .compact-delivery-toolbar {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px !important;
  }
  .compact-delivery-toolbar h1 {
    font-size: 31px;
  }
  .compact-delivery-toolbar .delivery-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .delivery-summary-compact {
    grid-template-columns: 1fr 1fr !important;
  }
  .delivery-summary-compact .compact-tracking-box {
    grid-column: 1 / -1;
  }
  .compact-order-info {
    grid-template-columns: 1fr !important;
  }
  .compact-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
  .gps-required-card {
    padding: 18px;
    border-radius: 22px;
  }
}


/* V34 - entregador sem GPS obrigatório por enquanto */
.delivery-summary-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.gps-required-modal {
  display: none !important;
}
@media (max-width: 720px) {
  .delivery-summary-compact {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .delivery-summary-compact .metric {
    padding: 14px !important;
  }
}

/* V36 - melhorias profissionais: carrinho, PIX, loja fechada, taxas, backup e pedido manual */
.closed-notice {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff3cd;
  border: 1px solid rgba(192,57,43,.38);
  color: #5c3210;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(40,18,8,.08);
}
.pix-box {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(192,57,43,.55);
  background: #fff9e8;
}
.pix-box span {
  color: var(--brown);
  font-weight: 900;
  word-break: break-word;
}
.privacy-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 20px auto 36px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,253,248,.78);
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}
.privacy-footer strong { color: var(--brown); }
.zones-list,
.settings-side-tools {
  display: grid;
  gap: 12px;
}
.zone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  background: #fffdf8;
}
.zone-row strong,
.zone-row small { display: block; }
.zone-row small { color: var(--muted); font-weight: 900; }
.soft-sep {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0;
}
.admin-checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-weight: 750;
}
.manual-order-form { box-shadow: none; border: 0; padding: 0; background: transparent; }
.compact-form-grid { gap: 12px; }
.cart-fab:not(.hidden) {
  min-width: min(440px, calc(100vw - 28px));
  justify-content: space-between;
}
.cart-fab strong { margin-left: auto; }
@media (max-width: 720px) {
  .privacy-footer { margin-bottom: 24px; font-size: 12px; }
  .settings-grid-pro,
  .compact-form-grid { grid-template-columns: 1fr !important; }
  .zone-row { align-items: flex-start; flex-direction: column; }
}


/* V37 - evitar texto ALT da logo aparecendo ao atualizar ou trocar de aba */
.hero-logo-box img:not([src]),
.hero-logo-box img[src=""] {
  display: none !important;
}
.hero-logo-box img.hidden {
  display: none !important;
}
@media (min-width: 721px) {
  .hero-logo-card {
    min-height: 136px;
  }
}

/* V38 - melhorias profissionais: fluxo, opções, popup e relatórios */
.shop-nav { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.cart-fab:not(.hidden) {
  display: inline-flex;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  min-width: min(92vw, 460px);
  justify-content: space-between;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(58, 33, 22, .22);
}
.cart-fab strong { margin-left: 12px; }
.option-list { display: grid; gap: 8px; margin: 10px 0 14px; }
.option-list h3 { margin: 8px 0 2px; font-size: 16px; }
.option-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf2;
  font-weight: 850;
}
.option-row input { width: auto; }
.manual-dish-options { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: -6px 0 14px; background: #fffaf2; }
.manual-order-items-section { margin-bottom: 14px; }
.manual-order-items-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.manual-order-items-header strong { font-size: 15px; }
.customize-card textarea { min-height: 64px; }
.new-order-popup-card {
  max-width: 520px;
  border-color: rgba(192,57,43,.45);
}
.new-order-popup-info {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8df;
}
.backup-downloads { margin-top: 10px; }
.password-change-form { display: grid; gap: 8px; }
.report-list + h3 { margin-top: 18px; }
@media (max-width: 720px) {
  .cart-fab:not(.hidden) { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .shop-nav { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media print {
  .print-area { display: block !important; }
}


/* V39 - ações do relatório */
.reports-actions-hint {
  color: var(--muted);
  font-size: 12px;
}
@media print {
  .side-menu,
  .admin-header,
  .admin-filter-row,
  .toast,
  .modal-overlay,
  .new-order-popup {
    display: none !important;
  }
  .admin-shell,
  .admin-content,
  .tab-content:not(.hidden) {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
  }
  body.admin-page { background: #fff !important; }
}

/* V40 - controle de pagamento e comprovante PIX */
.payment-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 950;
  background: #f3eadb;
  color: var(--brown);
}
.payment-status.aguardando { background: #fff7d6; color: #8a5a00; }
.payment-status.comprovante_enviado { background: #e0f2fe; color: #075985; }
.payment-status.pago { background: #dcfce7; color: #166534; }
.payment-status.na_entrega { background: #f3e8ff; color: #6b21a8; }
.payment-status.cancelado { background: #fee2e2; color: #991b1b; }
.pix-receipt-box {
  display: grid;
  gap: 9px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 16px;
  background: #fff8e8;
  border: 1px solid rgba(192,57,43,.24);
}
.pix-receipt-box.hidden { display: none !important; }
.pix-receipt-box.inline { margin-top: 10px; }
.pix-receipt-box strong { color: var(--brown); }
.pix-receipt-box input[type="file"] {
  background: #fffdf8;
  border: 1px dashed rgba(58,33,22,.22);
}
.payment-actions {
  background: rgba(255,248,232,.86);
  border: 1px solid rgba(192,57,43,.20);
  border-radius: 18px;
  padding: 10px;
}
.payment-actions input,
.payment-actions select { min-width: 180px; }
@media (max-width: 720px) {
  .payment-actions { display: grid; grid-template-columns: 1fr; }
  .payment-actions .btn,
  .payment-actions input,
  .payment-actions select { width: 100%; min-width: 0; }
}
