/* Fast Delivery — sistema visual */
:root {
  --brand: #5b3df5;
  --brand-600: #4a2de0;
  --brand-700: #3b22b8;
  --brand-50: #f1eeff;
  --brand-100: #e4deff;
  --accent: #ffb800;
  --accent-50: #fff6db;
  --ink: #12131a;
  --ink-2: #4a4d5c;
  --ink-3: #6e7287;
  --line: #e4e6ef;
  --line-2: #eef0f5;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #fafafd;
  --ok: #15803d;
  --ok-50: #e8f7ee;
  --warn: #b45309;
  --warn-50: #fff4e0;
  --bad: #c81e1e;
  --bad-50: #fdecec;
  --info: #1d4ed8;
  --info-50: #eaf0ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 20px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 10px 40px rgba(16, 24, 40, 0.16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 24px; font-weight: 750; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 10px; }
small, .muted { color: var(--ink-3); }
.muted-2 { color: var(--ink-2); }
.hidden, [hidden] { display: none !important; }
#view:focus { outline: none; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 22px !important; height: 22px !important; }

/* ---------- Botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, transform 0.05s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: #d5d8e4; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:focus-visible, .input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 1px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(59, 34, 184, 0.3); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1c1400; }
.btn-accent:hover { background: #f0ad00; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #126b33; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-50); border-color: #f3c4c4; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--line-2); }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  font: 400 15px/1.35 var(--font);
}
textarea { min-height: 120px; resize: vertical; }
.input::placeholder, textarea::placeholder { color: #a2a6b8; }
.row { display: flex; gap: 10px; align-items: center; }
.row-wrap { flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: 2fr 1.2fr 1fr auto; gap: 12px; }
@media (max-width: 700px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.seg { display: inline-flex; padding: 3px; background: var(--line-2); border-radius: 11px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); }

/* ---------- Cartões, selos, listas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card-flat { box-shadow: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.narrow { max-width: 440px; width: 100%; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge-ifood { background: #fdeaec; color: #b4121f; }
.badge-whatsapp { background: #e3f8ea; color: #116a32; }
.badge-telefone { background: #e8eefc; color: #2446a8; }
.badge-foto { background: var(--accent-50); color: #8a5a00; }
.badge-manual, .badge-balcao { background: var(--line-2); color: var(--ink-2); }
.badge-loja { background: var(--brand-50, #efeaff); color: var(--brand-700, #3d22c9); }
.badge-motoboy { background: var(--brand-50); color: var(--brand-700); }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-bad { background: var(--bad-50); color: var(--bad); }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }

.empty { text-align: center; padding: 34px 16px; color: var(--ink-3); }
.empty svg.ic { width: 34px; height: 34px; color: #b9bdd0; margin-bottom: 8px; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--info-50); color: #1e3a8a; font-size: 14px; }
.alert-warn { background: var(--warn-50); color: #7c3a06; }
.alert-bad { background: var(--bad-50); color: #8b1414; }
.alert-ok { background: var(--ok-50); color: #0f5229; }

table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; }

/* ---------- Estrutura do painel ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #14122b; color: #cfd0e6; padding: 18px 12px 14px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand .light { color: #b9b2ff; font-weight: 700; }
/* Menu lateral em seções (12/11/2026): itens leves, título de seção pequeno, item ativo bem marcado e o bloco
   "Conta" menor no rodapé. Em tela baixa o menu rola e a caixa da loja (com o Sair) fica sempre à vista. */
.sidebar .brand { flex: none; gap: 8px; padding: 0 0 18px 6px; font-size: 16.5px; white-space: nowrap; }
.sidebar .brand img { width: 30px; height: 30px; }
.sidebar .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.nav-sec { display: flex; flex-direction: column; gap: 1px; }
.nav-title { padding: 0 10px 6px; font-size: 10.5px; font-weight: 650; line-height: 14px; letter-spacing: .09em; text-transform: uppercase; color: #7c7ea1; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: #a9abc9; font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: none; }
.nav a svg.ic { width: 17px; height: 17px; stroke-width: 1.9; color: #7d7fa3; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a:hover svg.ic { color: #cfd0e6; }
.nav a:focus-visible { outline: 2px solid #8f7bff; outline-offset: -2px; }
.nav a[aria-current='page'] { background: rgba(124, 99, 255, .26); color: #fff; font-weight: 600; }
.nav a[aria-current='page'] svg.ic { color: #c4b8ff; }
.nav a .count { margin-left: auto; background: var(--accent); color: #241a00; font-size: 11.5px; font-weight: 750; line-height: 18px; padding: 0 7px; border-radius: 999px; }
.nav-rodape:not(:first-child) { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.nav-rodape a { padding: 6px 10px; font-size: 13px; line-height: 18px; }
.nav-rodape a svg.ic { width: 16px; height: 16px; }
.sidebar .store-box { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 6px; margin-top: 12px; padding: 12px 0 0 10px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12px; line-height: 1.4; color: #8d8fb0; }
.sidebar .store-box > b { color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .store-box > span { grid-column: 1 / -1; overflow-wrap: anywhere; }
.sidebar .store-box .btn { grid-column: 2; grid-row: 1; min-height: 28px; padding: 0 8px; gap: 6px; color: #a9abc9; }
.sidebar .store-box .btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar .store-box .btn svg.ic { width: 15px; height: 15px; }
@media (max-height: 860px) {
  .sidebar { padding-top: 14px; padding-bottom: 10px; }
  .sidebar .brand { padding-bottom: 12px; }
  .sidebar .nav { gap: 10px; }
  .nav a { padding-top: 6px; padding-bottom: 6px; }
  .nav-title { padding-bottom: 4px; }
  .nav-rodape:not(:first-child) { padding-top: 10px; }
  .nav-rodape a { padding-top: 4px; padding-bottom: 4px; }
  .sidebar .store-box { margin-top: 8px; padding-top: 8px; }
}
@media (max-height: 720px) {
  .sidebar { padding-top: 10px; padding-bottom: 8px; }
  .sidebar .brand { padding-bottom: 8px; }
  .sidebar .nav { gap: 4px; }
  .nav a { padding-top: 5px; padding-bottom: 5px; }
  .nav-title { padding-bottom: 2px; }
  .nav-rodape:not(:first-child) { padding-top: 6px; }
  .nav-rodape a { padding-top: 3px; padding-bottom: 3px; }
  .sidebar .store-box { margin-top: 6px; padding-top: 6px; }
  .sidebar .store-box .btn { min-height: 24px; }
}
.main { min-width: 0; padding: 22px 28px 90px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.tabbar { display: none; }
.demo-ribbon { background: var(--accent-50); color: #6b4a00; font-size: 13px; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: calc(14px + env(safe-area-inset-top)) 16px 96px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 4px 0; text-decoration: none; }
  .tabbar a[aria-current='page'] { color: var(--brand); }
  .tabbar a svg.ic { width: 22px; height: 22px; }
  .mobile-brand { display: flex !important; }
}
.mobile-brand { display: none; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 10px; }
.mobile-brand img { width: 28px; height: 28px; }

/* ---------- Indicadores ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .label { font-size: 13px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; margin-top: 4px; }
.kpi .delta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.kpi .delta.good { color: var(--ok); font-weight: 650; }
.kpi-hero { background: linear-gradient(135deg, #2a1d8f, #5b3df5); color: #fff; border: 0; }
.kpi-hero .label, .kpi-hero .delta { color: #d9d3ff; }

/* ---------- Pedidos ---------- */
.order-card { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); align-items: flex-start; }
.order-card + .order-card { margin-top: 8px; }
.order-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.order-card .addr { font-weight: 600; }
.order-card .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.age { font-weight: 650; font-variant-numeric: tabular-nums; }
.age.ok { color: var(--ok); } .age.warn { color: var(--warn); } .age.bad { color: var(--bad); }
.order-num { min-width: 44px; height: 44px; border-radius: 12px; background: var(--line-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--ink-2); }

/* ---------- Rota ---------- */
.route-layout { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .route-layout { grid-template-columns: 1fr; } }
.stop { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.stop:last-child { border-bottom: 0; }
.stop-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.stop.done .stop-n { background: var(--ok) !important; }
.stop.done .addr { text-decoration: line-through; color: var(--ink-3); }
.saving { display: flex; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--ok-50); color: #0f5229; font-size: 14px; }
.saving b { font-size: 18px; }
.courier-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }

/* ---------- Mapa ---------- */
.map { position: relative; width: 100%; height: 520px; border-radius: var(--radius); overflow: hidden; background: #eef0f6; border: 1px solid var(--line); touch-action: none; user-select: none; cursor: grab; }
.map.dragging { cursor: grabbing; }
.map .tiles, .map .overlay, .map .markers { position: absolute; inset: 0; }
.map .tiles img { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.map .overlay { pointer-events: none; }
.map.offline { background-color: #eef1f7; background-image: linear-gradient(rgba(91, 61, 245, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 61, 245, 0.06) 1px, transparent 1px); }
.map .ctrl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.map .ctrl button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.map .attrib { position: absolute; right: 6px; bottom: 4px; font-size: 11px; background: rgba(255, 255, 255, 0.85); padding: 1px 6px; border-radius: 6px; z-index: 5; color: #333; }
.map .offline-note { position: absolute; left: 10px; bottom: 10px; font-size: 12px; background: rgba(255, 255, 255, 0.92); padding: 4px 8px; border-radius: 8px; z-index: 5; color: var(--ink-2); box-shadow: var(--shadow); }
.pin { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; }
.pin .b { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); border: 2px solid #fff; }
.pin .b span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 13px; }
.pin.done .b { background: var(--ok) !important; opacity: 0.85; }
.pin.store .b { background: #14122b; }
.pin.store .b svg.ic { transform: rotate(45deg); color: #fff; width: 16px; height: 16px; }
.pin.me .b { background: #0ea5e9; border-radius: 50%; width: 20px; height: 20px; transform: none; }
.pin.pending .b { background: #9aa0b5; }
.pin-label { position: absolute; transform: translate(-50%, 6px); background: #fff; font-size: 11px; font-weight: 650; padding: 1px 6px; border-radius: 6px; box-shadow: var(--shadow); white-space: nowrap; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Diálogos e avisos ---------- */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(18, 19, 26, 0.45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h2 { margin: 0; }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line-2); position: sticky; bottom: 0; background: #fff; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1000; width: min(420px, calc(100vw - 24px)); }
.toast { background: #14122b; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 10px; align-items: center; animation: toastIn 0.2s ease-out; }
.toast.bad { background: #7f1414; }
.toast.ok { background: #0f5229; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.cand { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.cand.dup { border-color: #f3c9a4; background: #fffaf3; }

/* ---------- Gráficos ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: #eceef4; stroke-width: 1; }
.chart .axis text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .val { fill: var(--ink-2); font-size: 11.5px; font-weight: 650; font-family: var(--font); }
.chart .bar { fill: var(--brand); }
.chart .bar:hover, .chart .bar.hl { fill: var(--brand-600); }
.chart .hit { fill: transparent; cursor: default; }
.tip { position: absolute; pointer-events: none; background: #14122b; color: #fff; font-size: 12.5px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); z-index: 10; box-shadow: var(--shadow-lg); }
.hbar-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 14px; padding: 5px 0; }
.hbar-track { height: 12px; border-radius: 0 4px 4px 0; background: transparent; position: relative; }
.hbar-fill { height: 12px; border-radius: 0 4px 4px 0; background: var(--brand); }

/* ---------- Login / páginas centrais ---------- */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 10% -10%, #e9e4ff, transparent), radial-gradient(900px 500px at 110% 110%, #fff1cc, transparent), var(--bg); }
.login-card { width: min(420px, 100%); position: relative; z-index: 1; }
.login-card .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 18px; }
.login-card .logo img { width: 44px; height: 44px; }
.login-card .logo .fast { color: var(--brand); }

/* ---------- App do motoboy ---------- */
.courier { max-width: 560px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 14px 110px; }
.courier-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.courier-top img { width: 34px; height: 34px; }
.current { border-radius: 18px; padding: 18px; background: linear-gradient(160deg, #2a1d8f, #5b3df5); color: #fff; box-shadow: var(--shadow-lg); }
.current .big-n { font-size: 46px; font-weight: 850; line-height: 1; }
.current .addr { font-size: 20px; font-weight: 750; margin-top: 6px; }
.current .sub { color: #ddd8ff; font-size: 14px; margin-top: 4px; }
.current .pay { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, 0.14); padding: 6px 10px; border-radius: 10px; font-weight: 650; }
.current .btn { border: 0; }
.current .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.current .actions .btn { background: rgba(255, 255, 255, 0.16); color: #fff; }
.current .actions .btn:hover { background: rgba(255, 255, 255, 0.26); }
.current .done-btn { margin-top: 10px; background: #22c55e !important; color: #05250f !important; font-size: 17px; min-height: 56px; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 8px; justify-content: center; z-index: 30; }
.bottom-bar .btn { flex: 1; max-width: 270px; }
.progress { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--ok); border-radius: 999px; transition: width 0.3s; }

/* ---------- Acompanhamento ---------- */
.track { max-width: 480px; margin: 0 auto; padding: 20px 16px 40px; }
.track-map { height: 250px; border-radius: 18px; margin-top: 14px; overflow: hidden; }
.track-map .offline-note { display: none; }
.pin.moto .b { background: var(--brand, #5b3df5); border-radius: 50%; transform: none; width: 40px; height: 40px; }
.pin.moto .b svg.ic { color: #fff; width: 22px; height: 22px; }
.pin.moto.ifood .b { background: #ea1d2c; width: 34px; height: 34px; }
.pin.moto.ifood .b svg.ic { width: 19px; height: 19px; }
.pin.home .b { background: #14122b; }
.pin.home .b svg.ic { transform: rotate(45deg); color: #fff; width: 16px; height: 16px; }
.steps { list-style: none; padding: 0; margin: 16px 0 0; }
.steps li { display: flex; gap: 12px; padding-bottom: 18px; position: relative; color: var(--ink-3); }
.steps li::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .b { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: none; display: grid; place-items: center; }
.steps li.done { color: var(--ink); }
.steps li.done .b { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.now { color: var(--ink); font-weight: 650; }
.steps li.now .b { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }

/* ---------- Etiquetas (impressão) ---------- */
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 16px; }
.label-card { border: 2px dashed #c7cbe0; border-radius: 12px; padding: 12px 14px; background: #fff; break-inside: avoid; page-break-inside: avoid; }
.label-card .top { display: flex; align-items: center; justify-content: space-between; }
.label-card .n { font-size: 54px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.label-card .of { font-size: 14px; font-weight: 700; color: #555; }
.label-card .who { font-size: 16px; font-weight: 750; margin-top: 6px; }
.label-card .ad { font-size: 15px; margin-top: 2px; }
.label-card .pay { margin-top: 8px; font-weight: 750; border-top: 1px solid #ddd; padding-top: 6px; }
@media print {
  @page { margin: 6mm; }
  body { background: #fff; }
  .no-print { display: none !important; }
  .labels { padding: 0; grid-template-columns: 1fr; gap: 4mm; }
  .label-card { border: 1.5px solid #000; width: 76mm; }
}

/* ---------- Landing ---------- */
.site-nav { display: flex; align-items: center; justify-content: space-between; max-width: 1140px; margin: 0 auto; padding: 18px 20px; }
.site-nav .brand { color: var(--ink); padding: 0; }
.site-nav .brand .light { color: var(--brand); }
.hero { max-width: 1140px; margin: 0 auto; padding: 30px 20px 60px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 850; letter-spacing: -0.035em; line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 18px; color: var(--ink-2); margin: 14px 0 22px; max-width: 540px; }
.hero img { width: 100%; height: auto; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 10px; } }
.section { max-width: 1140px; margin: 0 auto; padding: 40px 20px; }
.section h2 { font-size: 28px; letter-spacing: -0.02em; text-align: center; margin-bottom: 26px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } }
.steps3 .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #241a00; font-weight: 850; margin-bottom: 10px; }
.price { max-width: 420px; margin: 0 auto; text-align: center; border: 2px solid var(--brand); }
.price .amount { font-size: 48px; font-weight: 850; letter-spacing: -0.03em; }
.price ul { text-align: left; padding-left: 0; list-style: none; }
.price li { display: flex; gap: 8px; padding: 6px 0; }
.price li svg.ic { color: var(--ok); }
.footer { text-align: center; color: var(--ink-3); font-size: 13px; padding: 30px 20px 40px; }

/* avisos acima da barra inferior no app do motoboy */
body:has(.bottom-bar:not(:empty)) .toasts { bottom: 96px; }

/* ---------- Versão 2: menu "Mais", folhas no celular, dinheiro, WhatsApp, promoções ---------- */
.tabbar { grid-template-columns: repeat(5, 1fr); }
.tabbar a { position: relative; }
.tab-count { position: absolute; top: 0; left: calc(50% + 6px); background: var(--accent); color: #241a00; font-size: 10.5px; font-weight: 800; padding: 0 5px; border-radius: 999px; line-height: 16px; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(18, 19, 26, 0); z-index: 200; transition: background .2s; }
.sheet-backdrop.open { background: rgba(18, 19, 26, .45); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 24px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 22px 22px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s ease-out; box-shadow: var(--shadow-lg); }
.sheet-backdrop.open .sheet { transform: none; }
.sheet-grip { width: 44px; height: 5px; border-radius: 999px; background: #d9dbe6; margin: 2px auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px 12px; }
/* folha "Mais" nas mesmas seções do menu lateral (12/11/2026); tema e Sair ficam no rodapé da folha */
.sheet-sec + .sheet-sec { margin-top: 14px; }
.sheet-title { padding: 0 4px 6px; font-size: 11px; font-weight: 650; line-height: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sheet-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); font: 600 12.5px/1.25 var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.sheet-item:hover { text-decoration: none; }
.sheet-item.on { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.sheet-item svg.ic { color: var(--brand); }
.sheet-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.sheet-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; }
.sheet-btn:active { background: var(--line-2); }
@media (max-width: 640px) {
  dialog.modal { margin: auto 0 0; width: 100vw !important; max-width: 100vw; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .modal-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .page-head .row-wrap { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .page-head .row-wrap .btn { flex: none; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  h1 { font-size: 22px; }
  .kpi .value { font-size: 24px; }
}

/* motoboy semitransparente no fundo */
.bg-moto { position: relative; overflow: hidden; }
.bg-moto::after { content: ''; position: absolute; right: -40px; bottom: -30px; width: 340px; height: 230px; background: url('/img/motoboy.svg') no-repeat center / contain; opacity: .14; pointer-events: none; }
.kpi-hero.bg-moto::after { opacity: .22; filter: brightness(1.8); right: -70px; bottom: -40px; width: 260px; height: 180px; }
.center-page.bg-moto::after { position: fixed; width: min(760px, 90vw); height: 480px; right: -60px; bottom: -40px; opacity: .13; }

/* dinheiro */
.money-pos { color: var(--ok); }
.money-neg { color: var(--bad); }
.split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line-2); gap: 2px; }
.split > div { height: 100%; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.insight { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #fff8e6, #fff1cc); color: #5c3d00; }
.insight b { color: #3d2900; }

/* WhatsApp */
.wa-layout { display: grid; grid-template-columns: 320px 1fr; gap: 14px; min-height: 520px; }
@media (max-width: 900px) { .wa-layout { grid-template-columns: 1fr; } }
.wa-list { max-height: 560px; overflow: auto; }
.wa-conv { display: flex; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; align-items: center; }
.wa-conv:hover, .wa-conv.on { background: var(--brand-50); }
.wa-avatar { width: 38px; height: 38px; border-radius: 50%; background: #dfe3f0; display: grid; place-items: center; font-weight: 800; color: var(--ink-2); flex: none; }
.chat { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: #efeae2; border-radius: 14px; min-height: 380px; max-height: 520px; overflow: auto; }
.bubble { max-width: 78%; padding: 8px 10px; border-radius: 10px; font-size: 14px; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0,0,0,.08); word-wrap: break-word; }
.bubble.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.bubble.in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.bubble .meta { display: block; font-size: 11px; color: #667; text-align: right; margin-top: 3px; }
.qr-box { width: 240px; height: 240px; border-radius: 16px; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; margin: 8px auto; }
.qr-box img { width: 220px; height: 220px; image-rendering: pixelated; }
.qr-fake { width: 200px; height: 200px; background:
  repeating-linear-gradient(90deg, #14122b 0 10px, transparent 10px 20px),
  repeating-linear-gradient(0deg, #14122b 0 10px, transparent 10px 20px); opacity: .85; border-radius: 6px; position: relative; }
.toggle-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.toggle-row:last-child { border-bottom: 0; }

/* promoções */
.seg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .seg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .seg-grid { grid-template-columns: 1fr; } }
.seg-card { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.seg-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.seg-card .n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.rfm { display: inline-flex; gap: 2px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px; }
.rfm span { background: var(--line-2); border-radius: 5px; padding: 1px 5px; }
.phone-preview { max-width: 340px; margin: 0 auto; background: #efeae2; border-radius: 18px; padding: 14px; }

/* passo a passo */
.guide { counter-reset: g; list-style: none; padding: 0; margin: 0; }
.guide li { position: relative; padding: 0 0 14px 44px; }
.guide li::before { counter-increment: g; content: counter(g); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.guide li b { display: block; }
details.box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); }
details.box + details.box { margin-top: 10px; }
details.box summary { cursor: pointer; font-weight: 700; }

/* ganhos do motoboy */
.earn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.earn .kpi { padding: 12px; }
.earn .kpi .value { font-size: 20px; }
.tabs-line { display: flex; gap: 6px; margin: 4px 0 12px; }
.route-layout.layout-half { grid-template-columns: 1fr 1fr; }
.route-layout.layout-split { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 1000px) { .route-layout.layout-half, .route-layout.layout-split { grid-template-columns: 1fr; } }
/* no fundo escuro, o motoboy vira uma silhueta branca bem clarinha */
.kpi-hero.bg-moto::after, .current.bg-moto::after {
  background: #fff; filter: none; opacity: .13;
  -webkit-mask: url('/img/motoboy.svg') no-repeat center / contain; mask: url('/img/motoboy.svg') no-repeat center / contain;
}
.main { overflow-x: hidden; }
.guide li b { display: inline; }
.guide li > b:first-child { display: block; margin-bottom: 2px; }

/* ---------- Mapa base guardado no sistema ---------- */
.map .vbase { position: absolute; inset: 0; pointer-events: none; }
.map.has-base.offline { background-image: none; }

/* ---------- Avisos (sininho), mensagens com o motoboy e indicação ---------- */
.bell { position: relative; }
.bell .dot-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.notif-item { display: flex; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line-2); }
.notif-item:last-child { border-bottom: 0; }
.notif-item .t { font-weight: 650; }
.notif-item .when { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.msgs { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--line-2); border-radius: 14px; min-height: 220px; max-height: 50vh; overflow: auto; }
.msg { max-width: 80%; padding: 8px 11px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; background: var(--surface); box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.msg.mine { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg .meta { display: block; font-size: 11px; opacity: .75; margin-top: 3px; text-align: right; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ref-link { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); font-weight: 650; word-break: break-all; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Tema escuro ---------- */
:root[data-theme='dark'] {
  --brand-50: #231d4f;
  --brand-100: #2f2770;
  --brand-700: #c4b8ff;
  --accent-50: #33290f;
  --ink: #ecebf7;
  --ink-2: #bdbad6;
  --ink-3: #918dae;
  --line: #2c2a46;
  --line-2: #232139;
  --bg: #0e0d1b;
  --surface: #17162a;
  --surface-2: #1e1c35;
  --ok: #34c472;
  --ok-50: #10301f;
  --warn: #f5a524;
  --warn-50: #352610;
  --bad: #ff6b6b;
  --bad-50: #3a1618;
  --info: #8fb0ff;
  --info-50: #16224a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
[data-theme='dark'] .btn:hover { border-color: #3d3a5e; }
[data-theme='dark'] .input::placeholder, [data-theme='dark'] textarea::placeholder { color: #6f6c8d; }
[data-theme='dark'] .map .ctrl button, [data-theme='dark'] .pin-label, [data-theme='dark'] .modal-head, [data-theme='dark'] .modal-foot,
[data-theme='dark'] .bottom-bar, [data-theme='dark'] .steps .b, [data-theme='dark'] .sheet, [data-theme='dark'] .qr-box { background: var(--surface); color: var(--ink); }
[data-theme='dark'] .map { background: #14132a; }
[data-theme='dark'] .map .tiles img { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.75); }
[data-theme='dark'] .map.offline { background-color: #14132a; background-image: linear-gradient(rgba(170, 150, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(170, 150, 255, .07) 1px, transparent 1px); }
[data-theme='dark'] .map .attrib, [data-theme='dark'] .map .offline-note { background: rgba(23, 22, 42, .9); color: var(--ink-2); }
[data-theme='dark'] .map .attrib a { color: var(--ink-2); }
[data-theme='dark'] .badge-ifood { background: #3b1418; color: #ff8d97; }
[data-theme='dark'] .badge-whatsapp { background: #0f2e1c; color: #5fe08f; }
[data-theme='dark'] .badge-telefone { background: #16224a; color: #9db6ff; }
[data-theme='dark'] .badge-foto { color: #ffcc66; }
[data-theme='dark'] .badge-loja { background: #241a5c; color: #b9a8ff; }
[data-theme='dark'] .alert { color: #c7d4ff; }
[data-theme='dark'] .alert-warn { color: #ffd08a; }
[data-theme='dark'] .alert-bad { color: #ffb0b0; }
[data-theme='dark'] .alert-ok, [data-theme='dark'] .saving { color: #9be8b8; }
[data-theme='dark'] .insight { background: linear-gradient(135deg, #2b220c, #33280e); color: #f3dca0; }
[data-theme='dark'] .insight b { color: #ffe7a8; }
[data-theme='dark'] .demo-ribbon { color: #f3d48a; }
[data-theme='dark'] .chat { background: #0f1a17; }
[data-theme='dark'] .bubble.out { background: #134d37; color: #e6fff0; }
[data-theme='dark'] .bubble.in { background: #1f2c33; color: #e7eef2; }
[data-theme='dark'] .bubble .meta { color: #9fb3ad; }
[data-theme='dark'] .wa-avatar { background: #2c2a46; }
[data-theme='dark'] .empty svg.ic { color: #4a4766; }
[data-theme='dark'] .sidebar { background: #0a0918; }
[data-theme='dark'] .sheet-grip { background: #3a3857; }
[data-theme='dark'] .cand.dup { border-color: #6b4a1e; background: #2a1f10; }
[data-theme='dark'] .label-card { background: var(--surface); }

.side-actions { margin-left: auto; display: inline-flex; gap: 2px; }
.sidebar .side-actions .btn { width: 32px; min-height: 32px; color: #a9abc9; }
.sidebar .side-actions .btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.mobile-brand .side-actions .btn { color: var(--ink-2); }
.chart .axis-l { fill: var(--ink-3); font-size: 11.5px; font-family: var(--font); }

/* planos de assinatura */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; }
.plan.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50), var(--shadow); }
.plan h3 { margin: 0 0 6px; }
.plan-price { font-size: 30px; font-weight: 850; letter-spacing: -0.02em; }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.plan-off { position: absolute; top: 14px; right: 14px; }
.pix-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; resize: none; }

/* aparelhos das notificações push */
.dev-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.dev-ic svg { width: 22px; height: 22px; }
.card.flash { animation: flash-card 1.6s ease-out 1; }
@keyframes flash-card { 0%, 30% { box-shadow: 0 0 0 4px var(--accent); } 100% { box-shadow: var(--shadow); } }

/* Checkout da Hotmart dentro do painel (12/11/2026, igual ao ZapFy): janela por cima da tela com o iframe da Hotmart */
.hm-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); }
.hm-card { width: min(560px, 100%); height: min(780px, 100%); background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.hm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #111; color: #fff; font-size: 14px; }
.hm-acts { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.hm-acts a { color: #9be7b8; font-size: 13px; }
.hm-x { background: transparent; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 2px; }
.hm-card iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.hm-ok { margin: auto; text-align: center; padding: 24px; color: #14122b; max-width: 360px; }
.hm-ok svg.ic { width: 52px; height: 52px; color: #15803d; }
@media (max-width: 640px) { .hm-overlay { padding: env(safe-area-inset-top) 0 0; } .hm-card { border-radius: 0; height: 100%; } }

/* Localização do aparelho nos mapas (12/11/2026): bolinha azul "você está aqui" e aviso quando o navegador bloqueou */
.map .eu-dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(26, 115, 232, .22), 0 1px 4px rgba(0, 0, 0, .35); z-index: 400; pointer-events: none; }
.map .eu-chip { position: absolute; left: 10px; top: 10px; z-index: 6; display: none; max-width: calc(100% - 70px); background: #fff; color: #7c3a06; border: 0; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 650; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer; text-align: left; }
.map .eu-chip.on { display: block; }

/* Foto do item do cardápio (12/11/2026): é o ícone do item no painel; toque para pôr ou trocar */
.menu-ph { width: 56px; height: 56px; flex: none; border-radius: 12px; border: 1px dashed var(--line); background: var(--line-2); color: var(--ink-3); display: grid; place-items: center; align-content: center; gap: 1px; padding: 0; overflow: hidden; cursor: pointer; font: inherit; }
button.menu-ph:hover { border-color: var(--brand); color: var(--brand); }
.menu-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-ph:has(img) { border-style: solid; }
.menu-ph svg.ic { width: 22px; height: 22px; }
.menu-ph small { font-size: 10.5px; font-weight: 650; line-height: 1; }
.menu-ph-lg { width: 84px; height: 84px; border-radius: 16px; cursor: default; }
