/* DiskMoto — design system (sem build). Mobile-first, 320px → 1440px. Cores da marca: amarelo #FECF02, preto e cinza. */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f2f3f5; --border: #e8eaee;
  --text: #25282e; --muted: #6b7078; --brand: #17191d; --brand-ink: #ffffff; --brand-soft: #fff4bf;
  --accent: #fecf02; --accent-ink: #111214; --accent-strong: #e6b800; --map-bg: #eceded;
  --success: #1f7a3d; --success-soft: #e4f4e9; --danger: #d32f2f; --danger-soft: #fdecea;
  --warning: #b54708; --warning-soft: #fef0e1; --info: #1d6fd8; --info-soft: #e8f0ff;
  --pending: #8a5a00; --pending-soft: #fff6db;
  --radius: 16px; --radius-sm: 12px; --shadow: 0 2px 10px rgba(30,40,60,.08);
  --shadow-float: 0 4px 18px rgba(30,40,60,.16); --nav-h: 70px;
  --focus: 0 0 0 3px rgba(254,207,2,.55);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #171b21; --surface-2: #1e232b; --border: #2a313b; --text: #eef1f5; --muted: #9aa4b2;
    --brand: #fecf02; --brand-ink: #111214; --brand-soft: #2e2805; --accent: #fecf02; --accent-ink: #111214; --accent-strong: #ffd83a; --map-bg: #1b1d21; --success: #4cc27a; --success-soft: #12301f;
    --danger: #ff7b6e; --danger-soft: #3a1714; --warning: #f5a35c; --warning-soft: #3a2511; --info: #7aa2ff; --info-soft: #172341;
    --pending: #f2c94c; --pending-soft: #33290d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #171b21; --surface-2: #1e232b; --border: #2a313b; --text: #eef1f5; --muted: #9aa4b2;
  --brand: #fecf02; --brand-ink: #111214; --brand-soft: #2e2805; --accent: #fecf02; --accent-ink: #111214; --accent-strong: #ffd83a; --map-bg: #1b1d21; --success: #4cc27a; --success-soft: #12301f;
  --danger: #ff7b6e; --danger-soft: #3a1714; --warning: #f5a35c; --warning-soft: #3a2511; --info: #7aa2ff; --info-soft: #172341;
  --pending: #f2c94c; --pending-soft: #33290d; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .mono { font-family: ui-monospace, Consolas, monospace; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }

/* Layout */
.app { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; padding: 16px 16px 96px; }
.container { max-width: 1120px; margin: 0 auto; }
.narrow { max-width: 560px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 16px; }
.topbar .title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.topbar .title h1 { overflow-wrap: anywhere; }
.topbar > .row { flex-wrap: nowrap; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand-mark { width: auto; height: 32px; flex-shrink: 0; }
.logo-wordmark, .logo-full { display: inline-flex; align-items: center; }
.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .on-dark { display: inline !important; } :root:not([data-theme="light"]) .on-light { display: none !important; } }
:root[data-theme="dark"] .on-dark { display: inline !important; } :root[data-theme="dark"] .on-light { display: none !important; }
.grid { display: grid; gap: 16px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Sidebar (admin) e navegação inferior (comércio/motoboy) */
.sidebar { display: none; width: 248px; background: var(--surface); border-right: 1px solid var(--border); padding: 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.sidebar nav a:hover { background: var(--surface-2); }
.sidebar nav a.active { background: var(--brand-soft); color: var(--brand); }
.sidebar .group { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 12px 6px; }
@media (min-width: 1024px) { .sidebar { display: block; } .main { padding: 24px 32px 48px; } .has-bottomnav .main { padding-bottom: 48px; } }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
.bottomnav { grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; padding-top: 6px; z-index: 700; }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px 8px; font-size: .78rem; color: var(--muted); text-decoration: none; height: calc(var(--nav-h) - 7px); justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottomnav a svg { box-sizing: content-box; padding: 5px 20px; border-radius: 999px; transition: background .15s; }
.bottomnav a.active { color: var(--text); font-weight: 600; }
.bottomnav a.active svg { background: var(--accent); color: var(--accent-ink); }
.bottomnav svg, .sidebar svg { width: 22px; height: 22px; flex-shrink: 0; }
.admin-mobile-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
.admin-mobile-nav a { flex-shrink: 0; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .875rem; }
.admin-mobile-nav a.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
@media (min-width: 1024px) { .admin-mobile-nav { display: none; } .bottomnav.desktop-hide { display: none; } }

/* Cartões */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.card.tight { padding: 12px; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--brand); }
.stat .label { color: var(--muted); font-size: .85rem; }
.stat .value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.stat .hint { font-size: .8rem; color: var(--muted); }
.hero-amount { font-size: 2rem; font-weight: 800; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--surface-2); color: var(--text); }
.btn:hover { filter: brightness(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 56px; font-size: 1.05rem; border-radius: 14px; padding: 14px 20px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .875rem; border-radius: 10px; }

/* Formulários */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field .hint { color: var(--muted); font-size: .8rem; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
textarea.input { min-height: 88px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: var(--focus); outline: none; }
.input.is-invalid { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: .82rem; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 2px; }
.pin-input { font-size: 2rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.choice label { border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; display: flex; gap: 8px; align-items: flex-start; background: var(--surface); }
.choice input:checked + span { font-weight: 700; color: var(--brand); }

/* Status, alertas, tabelas */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-success { background: var(--success-soft); color: var(--success); }
.chip-danger { background: var(--danger-soft); color: var(--danger); }
.chip-warning { background: var(--warning-soft); color: var(--warning); }
.chip-pending { background: var(--pending-soft); color: var(--pending); }
.chip-info { background: var(--info-soft); color: var(--info); }
.chip-neutral { background: var(--surface-2); color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.alert-info { background: var(--info-soft); color: var(--info); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
dl.kv { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* Linha do tempo */
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 14px 12px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.timeline li.done::before { background: var(--brand); }
.timeline li.bad::before { border-color: var(--danger); background: var(--danger); }
.timeline time { color: var(--muted); font-size: .8rem; display: block; }
.progress-steps { display: flex; gap: 4px; margin: 8px 0 4px; }
.progress-steps span { flex: 1; height: 6px; border-radius: 4px; background: var(--surface-2); }
.progress-steps span.on { background: var(--brand); }

/* Estados vazios, skeleton, toast, modal */
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty .icon { font-size: 2rem; margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; min-height: 16px; }
@keyframes sk { to { background-position: -200% 0; } }
.toast-host { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--text); color: var(--bg); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); }
.offline-bar { display: none; background: var(--warning); color: #fff; text-align: center; padding: 6px; font-size: .85rem; position: sticky; top: 0; z-index: 50; }
body.is-offline .offline-bar { display: block; }
dialog { border: 0; border-radius: var(--radius); padding: 20px; max-width: min(92vw, 480px); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.45); }
.badge-dot { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.map { height: 280px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); z-index: 0; }
.map.tall { height: 420px; }
.offer-card { border: 2px solid var(--brand); }
.offer-amount { font-size: 2.2rem; font-weight: 800; color: var(--success); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.online-toggle { font-size: 1.2rem; min-height: 64px; }
.dot-online { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot-online.on { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.steps { display: flex; gap: 8px; margin-bottom: 16px; }
.steps .step { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--border); }
.steps .step.current { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.steps .step.done { border-color: var(--brand); }
.price-lines { list-style: none; padding: 0; margin: 0; }
.price-lines li { display: flex; justify-content: space-between; padding: 4px 0; }
.price-lines li.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: 1.1rem; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.pagination .active span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: 100%; max-width: 440px; }
.landing-hero { padding: 48px 16px 32px; text-align: center; }
.landing-hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hide-mobile { display: none; } @media (min-width: 720px) { .hide-mobile { display: initial; } }
/* ===== Estilo app (mapa limpo, cabeçalho flutuante, painel inferior, listas tipo "Conta") ===== */
.map { background: var(--map-bg); }
/* Mapa limpo: tiles OSM em tons de cinza-azulado, sem cores fortes (estilo apps de corrida) */
.map-clean .leaflet-tile-pane { filter: grayscale(1) brightness(1.06) contrast(.88); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-clean .leaflet-tile-pane { filter: grayscale(1) invert(.92) brightness(.95) contrast(.85); } }
:root[data-theme="dark"] .map-clean .leaflet-tile-pane { filter: grayscale(1) invert(.92) brightness(.95) contrast(.85); }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { display: none; }
.map-info { display: flex; align-items: center; gap: 6px; margin: 0 8px 8px 0 !important; font-size: 11px; }
.map-info button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #6b7280; font: italic 600 11px/20px Georgia, serif; padding: 0; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.map-info span { order: -1; background: rgba(255,255,255,.9); color: #3a4150; padding: 2px 8px; border-radius: 999px; }
.map-info span a { color: inherit; }
.leaflet-control-zoom { display: none; }
.map-zoom { position: absolute; top: 10px; right: 10px; z-index: 450; display: flex; flex-direction: column; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-float); overflow: hidden; }
.map-zoom button { width: 44px; height: 44px; border: 0; background: none; color: var(--text); font: 400 26px/1 var(--font); cursor: pointer; display: grid; place-items: center; }
.map-zoom button + button { border-top: 1px solid var(--border); }
.map-zoom button:active { background: var(--surface-2); }
.map-screen .map-zoom { top: calc(76px + env(safe-area-inset-top)); right: 18px; } /* abaixo do cabeçalho: não colide com o painel, que muda de altura */
.ce-pin { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.25); display: grid; place-items: center; color: #fff; }
.ce-pin svg { width: 22px; height: 22px; }
.ce-pin.pickup { background: #17191d; } .ce-pin.dropoff { background: var(--danger); }
.ce-pin.courier { background: var(--accent); color: #111214; animation: pulse 2s infinite; }
.ce-pin.sm { width: 30px; height: 30px; border-width: 3px; } .ce-pin.sm svg { width: 15px; height: 15px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(254,207,2,.6), 0 3px 10px rgba(0,0,0,.25); } 70% { box-shadow: 0 0 0 16px rgba(254,207,2,0), 0 3px 10px rgba(0,0,0,.25); } 100% { box-shadow: 0 0 0 0 rgba(254,207,2,0), 0 3px 10px rgba(0,0,0,.25); } }

/* Tela com mapa ocupando tudo (início do motoboy e do comércio no celular) */
@media (max-width: 1023px) { .main-map { padding-bottom: 0; } .main-map .narrow, .main-map .container { max-width: none; } }
.map-screen { position: relative; isolation: isolate; margin: -16px -16px 0; height: calc(100vh - var(--nav-h) - env(safe-area-inset-bottom)); height: calc(100dvh - var(--nav-h) - env(safe-area-inset-bottom)); overflow: hidden; }
.map-screen .map { position: absolute; inset: 0; height: auto; border: 0; border-radius: 0; }
.map-float { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 500; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.map-float > * { pointer-events: auto; }
.brand-pill { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 6px 18px 6px 6px; box-shadow: var(--shadow-float); text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .95rem; min-width: 0; }
.brand-pill .brand-mark { height: 38px; } .brand-pill .logo-wordmark img { display: block; }
.brand-pill span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-float); display: grid; place-items: center; color: var(--text); border: 0; cursor: pointer; position: relative; flex-shrink: 0; text-decoration: none; }
.round-btn svg { width: 24px; height: 24px; }
.round-btn .badge-dot { position: absolute; top: 4px; right: 4px; min-width: 12px; height: 12px; padding: 0; font-size: 0; border: 2px solid var(--surface); }
.map-float .spacer { flex: 1; }
/* Avisos do servidor flutuam sobre o mapa (sem empurrar a tela); sucesso some sozinho */
.flash-float { position: fixed; top: calc(76px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 900; display: grid; gap: 8px; pointer-events: none; }
.flash-float .alert { margin: 0; box-shadow: var(--shadow-float); pointer-events: auto; }
.flash-float .alert-success { animation: flash-out .4s ease 4.5s forwards; pointer-events: none; }
@keyframes flash-out { to { opacity: 0; visibility: hidden; transform: translateY(-8px); } }
@media (min-width: 1024px) { .flash-float { position: static; margin-bottom: 12px; } }
.map-locate { position: absolute; right: 14px; z-index: 500; bottom: calc(var(--sheet-h, 180px) + 14px); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -4px 20px rgba(30,40,60,.12); padding: 10px 16px 16px; max-height: 55%; overflow-y: auto; overscroll-behavior: contain; }
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 12px; }
.sheet .greet { text-align: center; font-size: 1.45rem; font-weight: 600; margin: 0 0 12px; }
.where-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.where-btn svg { width: 20px; height: 20px; padding: 7px; box-sizing: content-box; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow-float); font-weight: 700; font-size: .85rem; }
@media (min-width: 1024px) { .map-screen { margin: 0 0 16px; height: 560px; border-radius: var(--radius); } .map-screen .sheet { left: auto; right: 16px; bottom: 16px; width: 380px; border-radius: 20px; } .map-screen .map-locate { bottom: 16px; right: 412px; } }

/* Lista estilo "Conta" (linhas grandes com ícone e seta) */
.menu-list { list-style: none; margin: 0 -16px; padding: 0; background: var(--surface); border-top: 10px solid var(--surface-2); border-bottom: 10px solid var(--surface-2); }
.menu-list li + li { border-top: 1px solid var(--border); }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px 18px; color: var(--text); text-decoration: none; font: inherit; font-size: 1.1rem; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-list svg { width: 26px; height: 26px; flex-shrink: 0; }
.menu-list .chev { margin-left: auto; width: 20px; height: 20px; color: var(--text); }
.menu-list .danger { color: var(--danger); font-weight: 600; }
.profile-head { display: flex; align-items: center; gap: 18px; padding: 8px 0 18px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; flex-shrink: 0; }
.profile-head .name { font-size: 1.5rem; font-weight: 600; }
.wallet-card { display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--text); margin-bottom: 16px; }
.wallet-card .label { font-size: .95rem; } .wallet-card .amount { font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.wallet-card svg { width: 22px; height: 22px; }

.quote-total { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 18px 12px; margin-bottom: 12px; border-radius: var(--radius); background: var(--surface-2); }
.quote-total strong { font-size: 2.4rem; line-height: 1.1; color: var(--text); }
/* Código de retirada do motoboy (mostra no caixa) e confirmação pela loja */
.pickup-code { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 12px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.pickup-code strong { font-size: 2.6rem; line-height: 1.05; letter-spacing: .12em; }
.pickup-confirm { border: 2px solid var(--accent); }
.pickup-confirm .pin-input { font-size: 1.6rem; letter-spacing: .25em; text-align: center; }
/* Atividade agrupada por mês */
.chip-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 10px; padding: 0 16px 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row a { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chip-row a.active { background: var(--text); color: var(--surface); }
.search-field { position: relative; margin-bottom: 6px; }
.search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: 44px; border-radius: 999px; background: var(--surface-2); border-color: transparent; }
.month-group { margin: 0 -16px; border-bottom: 10px solid var(--surface-2); padding: 0 18px; }
.month-group h2 { font-size: 1.55rem; font-weight: 700; margin: 22px 0 6px; }
.activity-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--text); text-decoration: none; }
.activity-item + .activity-item { border-top: 1px solid var(--border); }
.activity-item .when { color: var(--muted); font-size: .92rem; }
.activity-item .what { font-weight: 600; font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item .meta { color: var(--muted); font-size: .95rem; }
.activity-item .body { flex: 1; min-width: 0; }
.activity-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.chip-new { background: var(--accent); color: var(--accent-ink); } .chip-new::before { display: none; }

/* Tela da corrida: mapa da rota no topo */
.trip-map { margin: -16px -16px 12px; height: 46vh; min-height: 260px; border-radius: 0; border: 0; }
@media (min-width: 1024px) { .trip-map { margin: 0 0 12px; border-radius: var(--radius); } }

@media print { .sidebar, .bottomnav, .btn { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
