/* CAMARÃO — identidade premium
   Marrom café (base elegante) · Amarelo batata frita (marca/destaque) · Laranja camarão (ação) · Creme (texto) */
:root {
  --ink: #1A0F0A;      /* marrom café profundo */
  --ink-2: #24160F;
  --ink-3: #332117;
  --line: rgba(247, 236, 221, .12);
  --sand: #F7ECDD;     /* creme */
  --sand-2: #C9B39C;   /* texto secundário */
  --gold: #F4C430;     /* amarelo batata frita */
  --gold-2: #FFD95A;
  --coral: #F26A21;    /* laranja camarão */
  --sea: #7DBF8E;      /* verde suave: sucesso */
  --danger: #E5484D;
  --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); }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(26, 15, 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(244, 196, 48, .22), transparent 60%),
  radial-gradient(90% 70% at 0% 100%, rgba(242, 106, 33, .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); }
.badge15 { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(244, 196, 48, .45); color: var(--gold-2); font-weight: 600; font-size: .85rem; background: rgba(244, 196, 48, .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: #1b1206; border: 0; box-shadow: 0 10px 24px -10px rgba(244, 196, 48, .7); }
.btn-coral { background: var(--coral); color: #fff; border: 0; }
.btn-sea { background: var(--sea); color: #06201d; 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), #1E120C); 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(244, 196, 48, .55); background: linear-gradient(90deg, rgba(244, 196, 48, .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%, #FFA061, #C4480F 70%); box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .25); }
.prod-art.k-acompanhamento { background: radial-gradient(circle at 30% 25%, #FFE27A, #C99212 70%); }
.prod-art.k-molho { background: radial-gradient(circle at 30% 25%, #EBDCC4, #8A6A4A 70%); font-size: 2rem; }
.prod-art.k-bebida { background: radial-gradient(circle at 30% 25%, #C9B39C, #5A3B27 70%); font-size: 2rem; }
.prod-art.k-combo { background: linear-gradient(135deg, #F26A21 0 50%, #F4C430 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(242, 106, 33, .18); color: #FFB59E; 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(26, 15, 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: #150C07; color: var(--sand); font: 1rem var(--sans); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(244, 196, 48, .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(244, 196, 48, .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(191, 178, 158, .15); color: var(--sand-2); }
.st-na_cozinha { background: rgba(244, 196, 48, .18); color: var(--gold-2); }
.st-pronto { background: rgba(242, 106, 33, .2); color: #FFB59E; }
.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: #150C07; font-family: var(--sans); }

/* bússola / distância */
.compass { position: relative; width: 230px; height: 230px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle, #2E1D13 0 58%, #1E120C 59% 100%); border: 2px solid rgba(244, 196, 48, .35); box-shadow: inset 0 0 40px rgba(0,0,0,.5), var(--shadow); }
.compass .ticks { position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed rgba(244, 234, 219, .15); }
.compass .n { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-weight: 700; color: var(--coral); font-size: .8rem; }
.compass .arrow { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .25s ease-out; }
.compass .arrow svg { width: 120px; height: 120px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.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: #1b1206; }
.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(244, 196, 48, .6); } 100% { box-shadow: 0 0 0 12px rgba(244, 196, 48, 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); }
.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(150px, 1fr)); }
.kpi { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.kpi .v { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--sand); line-height: 1.1; }
.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(244, 234, 219, .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(242, 106, 33, .12); border: 1px solid rgba(242, 106, 33, .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(242, 106, 33, .18); color: #FFB59E; 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; }

.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; }
