/* CAMARÃO — identidade premium
   Cores da LOGO (são as cores da marca): preto (base) · laranja da logo #F87800 (marca/destaque) · laranja escuro (ação) · branco (texto).
   Os nomes das variáveis (--gold, --coral, --sand...) ficaram os antigos para não mexer no resto do código. */
:root {
  --ink: #0A0A0A;      /* marrom café profundo */
  --ink-2: #151515;
  --ink-3: #222222;
  --line: rgba(255, 255, 255, .12);
  --sand: #F5F5F5;     /* creme */
  --sand-2: #B3B3B3;   /* texto secundário */
  --gold: #F87800;     /* amarelo batata frita */
  --gold-2: #FF9A3D;
  --coral: #E4570B;    /* laranja camarão */
  --sea: #F26A21;      /* sucesso: laranja (o dono não quer verde/azul; texto só branco, laranja ou preto) */
  --danger: #FF5A1F;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--ink); color: var(--sand); font-family: var(--sans); font-size: 16px; line-height: 1.45; }
body { min-height: 100dvh; }
a { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0 0 .4em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--sand-2); }
.small { font-size: .85rem; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.grow { flex: 1; }
.mt { margin-top: 16px; } .mt2 { margin-top: 28px; } .mb { margin-bottom: 16px; }
.hidden { display: none !important; }

/* marca */
.brand { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.6rem; color: var(--gold); letter-spacing: -.02em; text-decoration: none; }
.brand small { display: block; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--sand-2); }
@media (max-width: 480px) { .brand { font-size: 1.25rem; line-height: 1.1; } .brand small { font-size: .56rem; letter-spacing: .2em; } }
/* símbolo da logo (camarão na onda) antes do nome, em todas as telas */
.brand { display: inline-grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.brand::before { content: ''; grid-row: 1 / 3; width: 48px; height: 32px; background: url(../img/logo-simbolo.png) center / contain no-repeat; }
@media (max-width: 480px) { .brand::before { width: 40px; height: 27px; } }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 10, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap, .topbar .narrow { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }

.hero { padding: 34px 0 22px; background:
  radial-gradient(120% 80% at 85% 0%, rgba(248, 120, 0, .22), transparent 60%),
  radial-gradient(90% 70% at 0% 100%, rgba(228, 87, 11, .16), transparent 60%); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.02; }
.hero h1 em { color: var(--gold); }
/* hero com vídeo de fundo */
.hero-video { position: relative; overflow: hidden; min-height: min(78vh, 620px); display: flex; align-items: flex-end; padding: 0; border-bottom: 0; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 10, .15) 0%, rgba(10, 10, 10, .35) 45%, rgba(10, 10, 10, .92) 88%, var(--ink) 100%); }
.hero-in { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 26px; }
.hero-in h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.hero-in p { color: #EDEDED; max-width: 34em; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hero-in #sellerBanner { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(10, 10, 10, .7); color: var(--gold-2); }
.hero-in #sellerBanner.hidden { display: none; }
@media (min-width: 760px) { .hero-video { min-height: 520px; } }
@media (prefers-reduced-motion: reduce) { .hero-bg { display: none; } .hero-video { background: url(../img/hero.jpg) center/cover; } }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 14px; padding-bottom: 4px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 68%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; scroll-snap-align: start; border: 1px solid var(--line); }
@media (min-width: 760px) { .gallery img { flex: 1 1 0; max-width: none; } }
.prod-art.photo { padding: 0; overflow: hidden; background: var(--ink-2); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.prod-art.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-art.sm { width: 64px; height: 64px; font-size: 1.8rem; }
.pthumb { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 1px dashed rgba(248, 120, 0, .5); background: var(--ink-2); display: grid; place-items: center; font-size: 1.8rem; cursor: pointer; padding: 0; }
.tipbox { text-align: left; padding: 12px; border-radius: 14px; border: 1px solid rgba(248, 120, 0, .35); background: rgba(248, 120, 0, .06); }
.sim-box { margin: 10px 0 4px; }
.sim-start { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px; border-radius: 14px; border: 1px solid rgba(248, 120, 0, .45); background: linear-gradient(90deg, rgba(248, 120, 0, .12), rgba(228, 87, 11, .06)); }
.sim-start > div { flex: 1 1 320px; }
.sim-run, .sim-report { padding: 14px; border-radius: 14px; border: 1px solid rgba(228, 87, 11, .45); background: rgba(228, 87, 11, .07); }
.sim-report { border-color: var(--line); background: var(--ink-2); }
.sim-clock { font-family: Fraunces, serif; font-size: 2rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.sim-kpis { margin-top: 12px; }
.sim-kpis .kpi .v { font-size: 1.35rem; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb i { position: absolute; right: 2px; bottom: 2px; font-style: normal; font-size: .8rem; background: rgba(10, 10, 10, .8); border-radius: 6px; padding: 1px 3px; }
.badge15 { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(248, 120, 0, .45); color: var(--gold-2); font-weight: 600; font-size: .85rem; background: rgba(248, 120, 0, .08); }

/* botões */
.btn { appearance: none; border: 1px solid var(--line); background: var(--ink-3); color: var(--sand); font: 600 1rem var(--sans); padding: 12px 18px; border-radius: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .08s, filter .15s; min-height: 48px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #121212; border: 0; box-shadow: 0 10px 24px -10px rgba(248, 120, 0, .7); }
.btn-coral { background: var(--coral); color: #fff; border: 0; }
.btn-sea { background: var(--sea); color: #0A0A0A; border: 0; }
.btn-wa { background: #25D366; color: #052e14; border: 0; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 12px; min-height: 36px; font-size: .88rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-xl { min-height: 60px; font-size: 1.1rem; border-radius: 16px; }

/* cards */
.card { background: linear-gradient(180deg, var(--ink-2), #141414); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.section-title { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 26px 0 12px; }

/* produtos */
.prod { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); }
.prod + .prod { margin-top: 10px; }
.prod.in { border-color: rgba(248, 120, 0, .55); background: linear-gradient(90deg, rgba(248, 120, 0, .10), var(--ink-2)); }
.prod-art { width: 92px; height: 92px; border-radius: 16px; display: grid; place-items: center; font-size: 2.6rem; background: radial-gradient(circle at 30% 25%, #FF8A4C, #B3420A 70%); box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .25); }
.prod-art.k-acompanhamento { background: radial-gradient(circle at 30% 25%, #FFB466, #C25E00 70%); }
.prod-art.k-molho { background: radial-gradient(circle at 30% 25%, #E6E6E6, #6B6B6B 70%); font-size: 2rem; }
.prod-art.k-bebida { background: radial-gradient(circle at 30% 25%, #B3B3B3, #3A3A3A 70%); font-size: 2rem; }
.prod-art.k-combo { background: linear-gradient(135deg, #E4570B 0 50%, #F87800 50% 100%); }
.prod h3 { font-size: 1.12rem; margin: 0 0 4px; }
.prod p { margin: 0 0 10px; color: var(--sand-2); font-size: .88rem; }
.price { font-weight: 700; color: var(--gold-2); }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(228, 87, 11, .18); color: #FF9A3D; margin-left: 6px; vertical-align: middle; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 42px; height: 40px; border: 0; background: var(--ink-3); color: var(--sand); font-size: 1.3rem; cursor: pointer; }
.stepper span { min-width: 34px; text-align: center; font-weight: 700; }

/* barra de carrinho */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(10, 10, 10, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.cartbar .narrow { padding: 0; }

/* sheet / modal */
.sheet-bg { position: fixed; inset: 0; background: rgba(3, 8, 12, .65); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--ink-2); border-radius: 24px 24px 0 0; border: 1px solid var(--line); padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; } }

/* formulários */
label { display: block; font-size: .82rem; font-weight: 600; color: var(--sand-2); margin: 12px 0 6px; }
input, select, textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0E0E0E; color: var(--sand); font: 1rem var(--sans); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(248, 120, 0, .6); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-3); color: var(--sand); font: 600 .85rem var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { border-color: var(--gold); background: rgba(248, 120, 0, .16); color: var(--gold-2); }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255, 255, 255, .35); }

/* status */
.st { display: inline-block; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.st-aguardando_localizacao, .st-aguardando_pagamento { background: rgba(178, 178, 178, .15); color: var(--sand-2); }
.st-na_cozinha { background: rgba(248, 120, 0, .18); color: var(--gold-2); }
.st-pronto { background: rgba(228, 87, 11, .2); color: #FF9A3D; }
.st-em_rota { background: rgba(63, 184, 175, .2); color: #8FE3DC; }
.st-entregue { background: rgba(63, 184, 175, .35); color: #CFF7F3; }
.st-cancelado { background: rgba(229, 72, 77, .2); color: #FF9EA1; }

/* mapa */
.map { height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map.tall { height: 420px; }
.leaflet-container { background: #0E0E0E; font-family: var(--sans); isolation: isolate; z-index: 0; } /* camadas do mapa ficam presas no quadro: nunca passam por cima do menu nem da barra do topo */

/* bússola / distância */
/* bússola minimalista: anel fino com marcações, seta fina laranja, marcador fixo no topo = para onde você está virado */
.compass { position: relative; width: min(250px, 72vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #1c1c1c 0, #101010 70%); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05); }
.compass .dial { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.compass .dial text { font: 600 11px Inter, sans-serif; fill: rgba(245,245,245,.55); text-anchor: middle; dominant-baseline: central; letter-spacing: .04em; }
.compass .dial text.nn { fill: #F26A21; font-weight: 700; }
.compass .mira { position: absolute; top: -2px; left: 50%; width: 0; height: 0; transform: translateX(-50%); border: 7px solid transparent; border-top: 9px solid #F5F5F5; border-bottom: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.compass .arrow { position: absolute; inset: 24%; display: grid; place-items: center; transition: transform .35s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.compass .arrow svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 14px rgba(242,106,33,.28)) drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.compass .hub { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #0A0A0A; box-shadow: 0 0 0 2px #F5F5F5; }
.compass.perto .arrow svg { animation: perto 1.1s ease-in-out infinite; }
@keyframes perto { 50% { opacity: .55; } }
.dist { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.dist small { font-family: var(--sans); font-size: 1rem; color: var(--sand-2); font-weight: 500; }

/* timer / timeline */
.timer { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.timer.late { color: var(--coral); }
.timeline { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.timeline li { display: flex; gap: 12px; align-items: center; color: var(--sand-2); }
.timeline li .b { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; flex: none; }
.timeline li.done { color: var(--sand); } .timeline li.done .b { background: var(--gold); border-color: var(--gold); color: #121212; }
.timeline li.now { color: var(--gold-2); font-weight: 600; } .timeline li.now .b { border-color: var(--gold); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(248, 120, 0, .6); } 100% { box-shadow: 0 0 0 12px rgba(248, 120, 0, 0); } }

/* painéis */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.tab { white-space: nowrap; padding: 10px 14px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--sand-2); font: 600 .92rem var(--sans); cursor: pointer; }
.tab.on { background: var(--ink-3); color: var(--gold-2); border-color: var(--line); }
a.tab { text-decoration: none; }
@media (min-width: 760px) { .tabs { flex-wrap: wrap; overflow: visible; row-gap: 4px; } }
@media (max-width: 759px) { .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 30px; } }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; min-width: 0; overflow: hidden; }
.kpi .v { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); font-weight: 700; color: var(--sand); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-2); }
.kpi.good .v { color: var(--sea); } .kpi.bad .v { color: var(--coral); } .kpi.gold .v { color: var(--gold-2); }
.bar { height: 10px; border-radius: 99px; background: rgba(245, 245, 245, .08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--sea); }
.bar.bad > i { background: var(--coral); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--sand-2); font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.alert { padding: 10px 12px; border-radius: 12px; background: rgba(228, 87, 11, .12); border: 1px solid rgba(228, 87, 11, .35); color: #FFC7B8; font-size: .9rem; }
.ok-box { padding: 10px 12px; border-radius: 12px; background: rgba(63, 184, 175, .12); border: 1px solid rgba(63, 184, 175, .35); color: #BFF1EC; font-size: .9rem; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; background: rgba(228, 87, 11, .18); color: #FF9A3D; margin: 2px 4px 2px 0; }

/* cozinha */
.board { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.col h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sand-2); }
.ticket { background: var(--sand); color: #14202a; border-radius: 14px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.ticket.late { outline: 3px solid var(--coral); }
.ticket h3 { font-family: var(--sans); font-size: 1.3rem; margin: 0; }
.ticket ul { margin: 8px 0; padding-left: 0; list-style: none; font-size: 1.15rem; font-weight: 700; }
.ticket .t { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }

/* Clube de Afiliados: pódio, medalhas, prêmios */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; }
.pod { text-align: center; border-radius: 18px; padding: 14px 8px; border: 1px solid var(--line); background: var(--ink-2); min-width: 0; }
.pod .m { font-size: 2.2rem; line-height: 1; }
.pod .n { font-weight: 700; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .r { color: var(--gold-2); font-weight: 700; font-size: .95rem; }
.pod.ouro { border-color: #F87800; padding: 26px 8px 18px; background: linear-gradient(180deg, rgba(248, 120, 0, .25), var(--ink-2)); box-shadow: 0 0 30px -10px rgba(248, 120, 0, .6); }
.pod.ouro .m { font-size: 3rem; }
.pod.prata { border-color: #C9CED6; background: linear-gradient(180deg, rgba(201, 206, 214, .16), var(--ink-2)); }
.pod.bronze { border-color: #C98A4B; background: linear-gradient(180deg, rgba(201, 138, 75, .18), var(--ink-2)); }
.pod.vazio { opacity: .45; }
.me-row { color: var(--gold-2); font-weight: 700; }
.medal-wall { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.medal { text-align: center; padding: 14px 8px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.medal .m { font-size: 2.6rem; }
.pts { font-family: var(--serif); font-weight: 700; color: var(--gold-2); }
.reward { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); }
.reward + .reward { margin-top: 10px; }
.reward .e { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-size: 2rem; background: radial-gradient(circle at 30% 25%, #FFB466, #C25E00 70%); }
.reward.exp .e { background: radial-gradient(circle at 30% 25%, #FF8A4C, #B3420A 70%); }
.reward h3 { font-size: 1.05rem; margin: 0 0 2px; }
.reward p { margin: 0 0 8px; color: var(--sand-2); font-size: .85rem; }
.toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 99; background: var(--sand); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); max-width: 92vw; }
.stars { display: flex; gap: 6px; justify-content: center; }
.stars button { font-size: 2.4rem; background: none; border: 0; cursor: pointer; color: #3a4a57; padding: 0 2px; }
.stars button.on { color: var(--gold); }
.coupon { font-family: var(--serif); font-size: 1.8rem; letter-spacing: .06em; border: 2px dashed var(--gold); border-radius: 14px; padding: 12px; color: var(--gold-2); text-align: center; }
.qr { background: #fff; padding: 12px; border-radius: 18px; width: 100%; max-width: 320px; display: block; margin: 0 auto; }

/* ---------- Dashboard da operação ---------- */
.dfilters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dfilters .seg { display: flex; flex-wrap: wrap; gap: 6px; }
.dfilters input[type=date], .dfilters select { width: auto; padding: 8px 10px; font-size: .9rem; }
.dfilters label.chk { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--sand-2); cursor: pointer; }
.dfilters label.chk input { width: auto; }
.mt-xs { margin-top: 4px; }
.dup { color: var(--sea); font-weight: 600; } .ddown { color: var(--coral); font-weight: 600; }
.dhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dhead h3 { margin: 0; }
.dchart { margin-top: 10px; min-height: 120px; overflow-x: auto; touch-action: pan-y; }
.dchart svg { display: block; }
.dg { stroke: var(--line); stroke-width: 1; } .dg.base { stroke: rgba(255, 255, 255, .3); }
.dax { fill: var(--sand-2); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.dlab { fill: var(--sand); font: 600 11px var(--sans); }
.dbar { fill: var(--coral); transition: opacity .15s; } .dbar.peak { fill: var(--gold); }
.dhit { fill: transparent; cursor: pointer; } .dhit.on { fill: rgba(255, 255, 255, .06); }
.dhit2 { fill: transparent; cursor: crosshair; }
.dline { fill: none; stroke: var(--coral); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.darea { fill: rgba(228, 87, 11, .12); }
.ddot { fill: var(--coral); stroke: var(--ink-2); stroke-width: 2; }
.dfocus { fill: var(--gold); stroke: var(--ink-2); stroke-width: 2; }
.dcross { stroke: rgba(255, 255, 255, .35); stroke-width: 1; stroke-dasharray: 3 3; }
.dtip { position: fixed; z-index: 9999; pointer-events: none; background: #070707; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .82rem; line-height: 1.45; color: var(--sand); box-shadow: var(--shadow); display: none; max-width: 260px; }
.dheat { display: grid; gap: 2px; min-width: 520px; }
.dheat .dax2 { font-size: .7rem; color: var(--sand-2); text-align: center; align-self: center; }
.dheat .dax2.l { text-align: left; }
.dcell { height: 26px; border-radius: 4px; background: rgba(255, 255, 255, .04); display: grid; place-items: center; cursor: pointer; }
.dcell i { font-style: normal; font-size: .68rem; font-weight: 700; color: #0A0A0A; }
.dcell.on { outline: 2px solid var(--gold); }
.dramp { width: 120px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, rgba(228, 87, 11, .16), rgba(228, 87, 11, 1)); }
.dhb + .dhb { margin-top: 12px; }
.dtrack { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); margin-top: 6px; overflow: hidden; }
.dtrack i { display: block; height: 100%; background: var(--coral); border-radius: 0 4px 4px 0; }
.dins ul { margin: 0; padding-left: 18px; } .dins li + li { margin-top: 4px; }
#dKpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } #dKpis .kpi .v { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); }
.dgrid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); } @media (max-width: 420px) { .dgrid { grid-template-columns: 1fr; } } .dchart { overflow-x: hidden; } #cHeat { overflow-x: auto; }

/* ---------- menu lateral do portal (setores) ---------- */
.side { position: fixed; top: 0; bottom: 0; left: 0; width: 244px; z-index: 60; background: #0d0d0d; border-right: 1px solid var(--line); overflow-y: auto; padding: 18px 12px 24px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.side-logo { display: block; padding: 2px 8px 14px; } .side-logo img { width: 132px; height: auto; display: block; }
.side-g { padding: 10px 0 4px; } .side-g + .side-g { border-top: 1px solid rgba(255, 255, 255, .06); }
.side-h { padding: 4px 10px 6px; font: 600 .66rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sand-2); opacity: .7; }
.side .tab { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--sand); font: 500 .9rem var(--sans); text-align: left; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.side .tab .ico { width: 18px; height: 18px; flex: none; opacity: .75; }
.side .tab .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .tab .ext { font-size: .75rem; opacity: .45; }
.side .tab .pill { margin: 0; background: var(--coral); color: #fff; font-weight: 600; min-width: 20px; text-align: center; padding: 1px 7px; }
.side .tab:hover { background: rgba(255, 255, 255, .05); }
.side .tab.on { background: rgba(228, 87, 11, .12); color: var(--coral); border-color: rgba(228, 87, 11, .28); }
.side .tab.on .ico { opacity: 1; }
.side .tab:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.side .side-sair { margin-top: auto; color: var(--sand-2); }
.side-btn { display: none; align-items: center; gap: 6px; } .side-btn .ico { width: 18px; height: 18px; }
.side-fundo { display: none; }
.ico { vertical-align: middle; }
/* menu lateral sempre oculto: abre pelos 3 riscos antes do logo, em qualquer tela */
.side { transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; width: min(300px, 86vw); box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
body.menu-aberto .side { transform: none; visibility: visible; transition: transform .22s ease; }
body.menu-aberto .side-fundo { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .55); }
body.com-menu .side-btn { display: inline-flex; justify-content: center; width: 44px; height: 44px; padding: 0; flex: none; }
body.com-menu .side-btn .ico { width: 22px; height: 22px; }
body.com-menu .topbar a.btn[href="admin"] { display: none; } /* "← Painel" vira o menu */
@media (max-width: 999px) {
  .side .tab { padding: 12px 10px; font-size: .98rem; } /* dedo na praia: alvo maior */
}
/* caixas de marcar, rádio e barras no laranja da paleta (nunca o azul do navegador) */
:root { accent-color: #F26A21; }
input[type=checkbox], input[type=radio], input[type=range], progress { accent-color: #F26A21; }


/* simulação: faixa "vendo como" (pessoa fictícia) fixa no topo */
.ver-como { position: sticky; top: 0; z-index: 999; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 14px; background: #F26A21; color: #0A0A0A; font: 500 .86rem var(--sans); }
.ver-como b { font-weight: 700; }
.ver-como button { border: 0; border-radius: 999px; padding: 7px 14px; background: #0A0A0A; color: #F5F5F5; font: 600 .82rem var(--sans); cursor: pointer; }


/* ---------- jogo dos entregadores: nível, sequência, missões, conquistas ---------- */
.jogo .jg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jg-selo { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, var(--gold), var(--coral)); color: var(--ink); font: 700 1.5rem var(--serif); box-shadow: 0 8px 22px -10px var(--gold); }
.jg-id { flex: 1; min-width: 0; }
.jg-id small { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand-2); }
.jg-id b { font: 700 1.3rem var(--serif); color: var(--sand); }
.jg-seq { text-align: center; flex: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.jg-seq b { display: block; font: 700 1.5rem var(--serif); color: var(--gold); line-height: 1; }
.jg-seq small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sand-2); }
.jg-seq.quente b { animation: jgPulse 1.6s ease-in-out infinite; }
@keyframes jgPulse { 50% { color: var(--sand); text-shadow: 0 0 14px var(--gold); } }
.jg-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 12px; }
.jg-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--gold)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.jg-bar.fina { height: 6px; margin-top: 6px; }
.jg-mis { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.jg-mis:last-child { border-bottom: 0; }
.jg-mis .ck { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--ink); }
.jg-mis.ok .ck { background: var(--gold); border-color: var(--gold); }
.jg-mis .tx { flex: 1; min-width: 0; font-size: .92rem; }
.jg-mis .xp { flex: none; font: 700 .8rem var(--sans); color: var(--gold); }
.jg-mis.ok .tx { color: var(--sand-2); text-decoration: line-through; }
.jg-hoje { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .85rem; color: var(--sand-2); }
.jg-hoje b { color: var(--sand); }
.jg-conq { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.jg-conq div { border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; background: var(--ink-2); opacity: .38; }
.jg-conq div.ok { opacity: 1; border-color: var(--gold); }
.jg-conq i { display: block; font-style: normal; font-size: 1.3rem; color: var(--gold); line-height: 1.2; }
.jg-conq b { display: block; font-size: .78rem; margin-top: 2px; }
.jg-conq small { display: block; font-size: .66rem; color: var(--sand-2); margin-top: 2px; }
.jg-rk { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.jg-rk.eu { color: var(--gold); font-weight: 700; }
/* retorno logo depois de entregar */
.jg-pop { position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 98; max-width: 460px; margin: 0 auto; background: var(--ink); border: 2px solid var(--gold); border-radius: 20px; padding: 16px 18px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.8); transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.9,.25,1.2); }
.jg-pop.on { transform: none; }
.jg-pop .xpg { font: 700 2rem var(--serif); color: var(--gold); line-height: 1; }
.jg-pop .lin { margin-top: 6px; font-size: .95rem; }
.jg-pop .lin b { color: var(--gold); }
.jg-pop .sub { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(90deg, var(--coral), var(--gold)); color: var(--ink); font-weight: 700; }
/* ações da linha (equipe): botões lado a lado, sem quebrar o texto, para não abrir vão na tabela */
.u-acts { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px; align-items: center; }
.u-acts [data-payout] { grid-column: 1 / -1; }
.u-acts .btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; }

/* linha de totais nas tabelas do painel (entregadores e vendedores hoje) */
tr.tot td { font-weight: 700; color: var(--gold-2, #F4C430); background: rgba(244, 196, 48, .07); border-bottom: 1px solid rgba(244, 196, 48, .35); }
/* compra real / de teste no meio da simulação: destacada no painel ao vivo e na cozinha */
tr.real td { background: rgba(242, 106, 33, .10); }
.pill-real { background: #F26A21; color: #1A0F08; font-weight: 700; }
.ticket.real { outline: 3px solid #F26A21; }

/* olho: ocultar números e valores (body.privado) — nomes e títulos continuam visíveis */
.olho-btn { padding-left: 8px; padding-right: 8px; opacity: .75; }
.olho-btn:hover, .olho-btn[aria-pressed="true"] { opacity: 1; }
body.privado .kpi .v, body.privado td:not(:first-child), body.privado .price, body.privado .num, body.privado #hourly,
body.privado #funnel, body.privado #tempoBox .v, body.privado #trajKpis, body.privado .sim-box b, body.privado .sd-num, body.privado svg text {
  filter: blur(7px); user-select: none; transition: filter .15s; }
/* botão discreto da simulação no topo do painel (espaço liga/desliga) */
.sim-dot { width: 30px; height: 30px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; opacity: .35; }
.sim-dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.sim-dot:hover { opacity: .8; }
.sim-dot.on { opacity: .9; color: #3FC1A5; }
.sim-dot.on::before { box-shadow: 0 0 0 4px rgba(63, 193, 165, .18); }@media (max-width: 520px) { body[data-menu] #clock { display: none; } .olho-btn { min-width: 34px; } }

/* foto da pessoa no mapa (entregador) e nos cartões: círculo com borda na cor do estado + selo do veículo */
.fpin { position: relative; border-radius: 50%; border: 3px solid #F26A21; box-shadow: 0 0 0 2px #0A0A0A, 0 6px 14px rgba(0,0,0,.5); display: grid; place-items: center; color: #0A0A0A; font: 800 14px Inter, sans-serif; box-sizing: border-box; }
.fpin > i { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #0A0A0A; display: grid; place-items: center; color: #0A0A0A; font-style: normal; }
.fpin > i svg { width: 12px; height: 12px; }
.ufoto { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; border: 2px solid var(--line, #333); background: #222; display: inline-grid; place-items: center; font: 700 12px Inter, sans-serif; color: #aaa; }
/* leitor de QR da retirada (entregador) */
.scan-bg { position: fixed; inset: 0; z-index: 3000; background: rgba(10, 6, 4, .94); display: flex; align-items: center; justify-content: center; padding: 14px; }
.scan { width: min(440px, 100%); }
.scan-v { position: relative; margin: 12px 0 10px; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 1; border: 2px solid var(--gold); }
.scan-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-mira { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .28); pointer-events: none; }
.scan-erro { color: #FF9A3D; font-weight: 600; }
#retirarBtn { display: flex; align-items: center; justify-content: center; gap: 10px; }
/* QR do pedido no card da cozinha (o entregador escaneia pela tela) */
.ticket.com-qr { position: relative; }
.kqr { float: right; margin: 0 0 6px 10px; padding: 5px 5px 3px; background: #fff; border: 0; border-radius: 10px; cursor: zoom-in; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.kqr img { width: 92px; height: 92px; display: block; image-rendering: pixelated; background: #eee; }
.kqr small { color: #1A0F0A; font: 700 12px/1.4 Inter, sans-serif; letter-spacing: .06em; min-height: 16px; }
@media (max-width: 520px) { .kqr img { width: 76px; height: 76px; } }
/* chat com a loja */
.chat-fab { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 2500; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(244, 196, 48, .45); background: #2A1A10; color: #F5E6D3; font: 600 .95rem Inter, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); cursor: pointer; }
.chat-fab b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #F26A21; color: #fff; font-size: .8rem; display: grid; place-items: center; }
.chat-fab.tem { border-color: #F26A21; animation: chatPulso 1.6s infinite; }
@keyframes chatPulso { 50% { box-shadow: 0 0 0 6px rgba(242, 106, 33, .28), 0 8px 24px rgba(0, 0, 0, .5); } }
.chat-bg { position: fixed; inset: 0; z-index: 3200; background: rgba(10, 6, 4, .72); display: flex; align-items: flex-end; justify-content: center; }
.chat-win { width: min(520px, 100%); height: min(640px, 92dvh); background: #1A0F0A; border: 1px solid var(--line); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 700px) { .chat-bg { align-items: center; } .chat-win { border-radius: 20px; } }
.chat-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #241610; }
.chat-h b { font: 700 1.1rem var(--serif); color: var(--gold); display: block; }
.chat-h small { display: block; color: #B9A89A; font-size: .78rem; }
.chat-l { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.bolha { max-width: 82%; padding: 9px 12px 6px; border-radius: 16px; font-size: .98rem; line-height: 1.35; word-wrap: break-word; }
.bolha i { display: block; font-style: normal; font-weight: 700; font-size: .76rem; color: var(--gold); margin-bottom: 2px; }
.bolha small { display: block; text-align: right; font-size: .7rem; opacity: .7; margin-top: 3px; }
.bolha.outra { align-self: flex-start; background: #2E1F16; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bolha.minha { align-self: flex-end; background: #F26A21; color: #fff; border-bottom-right-radius: 5px; }
.bolha.minha i { color: #FFE3C4; }
.chat-r { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; flex: none; }
.chat-r .chip { white-space: nowrap; }
.chat-f { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: none; }
.chat-f textarea { flex: 1; min-width: 0; resize: none; min-height: 46px; max-height: 120px; font-size: 1rem; }