/* Carga Já — sistema visual
   Grafite + âmbar "carga" + verde "volt". Mobile-first. */
:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #faf9f5;
  --ink: #15171c;
  --ink-2: #3a3e47;
  --muted: #6b6f79;
  --line: #e6e3d9;
  --line-2: #d6d2c4;
  --graphite: #1b1e24;
  --graphite-2: #262a32;
  --brand: #ffc21a;
  --brand-strong: #f0a800;
  --brand-ink: #1c1500;
  --brand-soft: #fff3c7;
  --volt: #0d8063;
  --volt-soft: #e2f3ec;
  --danger: #c4362c;
  --danger-soft: #fbeae8;
  --info: #2450c4;
  --info-soft: #e8edfb;
  --warn: #8f5a00;
  --warn-soft: #fff0d3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 24, 10, 0.06), 0 6px 20px rgba(27, 24, 10, 0.06);
  --shadow-lg: 0 10px 40px rgba(20, 18, 8, 0.18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
svg.i { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 900;
  background: var(--graphite);
  color: #fff;
  padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 12px;
  min-height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand-word em { font-style: normal; color: var(--brand); }
.brand-sub { font-size: 12px; color: #b9bcc4; border-left: 1px solid #3b404a; padding-left: 10px; margin-left: 2px; }
.topbar .spacer { flex: 1; }
.topbar .link { color: #d9dbe0; font-size: 13px; text-decoration: none; }
.topbar .link:hover { color: #fff; }

.demo-banner {
  background: repeating-linear-gradient(-45deg, #fff3c7, #fff3c7 12px, #ffeaa3 12px, #ffeaa3 24px);
  color: var(--brand-ink);
  font-size: 12.5px;
  padding: 7px var(--gutter);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  border-bottom: 1px solid #f0d77a;
}
.demo-banner b { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; background: var(--graphite); color: var(--brand); padding: 2px 7px; border-radius: 99px; }
.demo-banner button { margin-left: auto; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.screen { padding-top: 18px; padding-bottom: 110px; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 20px; }
.row { display: flex; gap: 10px; align-items: center; }
.row-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card-flat { box-shadow: none; }
.section-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

.backbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.backbar h1 { font-size: 22px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn svg { width: 20px; height: 20px; }
.lead { color: var(--ink-2); font-size: 15px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px;
  border: 1px solid transparent; background: var(--surface); color: var(--ink);
  font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 2px 0 var(--brand-strong); }
.btn-primary:hover:not(:disabled) { background: #ffcb3d; }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-outline { border-color: var(--line-2); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f2c9c5; }
.btn-volt { background: var(--volt); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 16px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linklike { background: none; border: 0; padding: 0; color: var(--info); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- formulários ---------- */
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field > span small { font-weight: 400; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--surface);
  outline: none; font-size: 16px; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 84px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 194, 26, 0.35); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.searchbox input { padding-left: 44px; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 99px;
  padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 40px;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed='true'] { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.chip-grid .chip { border-radius: 12px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge-volt { background: var(--volt-soft); color: var(--volt); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: #efede6; color: var(--ink-2); }
.badge-dark { background: var(--graphite); color: var(--brand); }

/* ---------- alertas ---------- */
.alert { border-radius: 14px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert-warn { background: var(--warn-soft); color: #5b3a00; border-color: #f4d79b; }
.alert-danger { background: var(--danger-soft); color: #7a1f18; border-color: #f2c9c5; }
.alert-info { background: var(--info-soft); color: #1b3a8f; border-color: #cbd8f6; }
.alert-ok { background: var(--volt-soft); color: #0a5a46; border-color: #bfe5d6; }
.alert b { font-weight: 700; }

.empty { text-align: center; padding: 28px 18px; }
.empty .empty-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); }
.empty .empty-icon svg { width: 32px; height: 32px; }
.empty h2 { margin-bottom: 6px; }
.empty p { color: var(--ink-2); max-width: 420px; margin: 0 auto 16px; }

/* ---------- home ---------- */
.hero { background: var(--graphite); color: #fff; padding: 22px 0 70px; position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; right: -60px; top: -40px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255, 194, 26, 0.28), transparent 65%);
}
.hero h1 { font-size: 30px; max-width: 520px; position: relative; z-index: 1; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { color: #c9ccd3; margin-top: 10px; max-width: 520px; position: relative; z-index: 1; }
.hero-actions { margin-top: -52px; position: relative; z-index: 2; display: grid; gap: 12px; }
.big-action {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px;
  box-shadow: var(--shadow); cursor: pointer; text-decoration: none;
}
.big-action:hover { border-color: var(--line-2); }
.big-action .ba-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); flex: none; }
.big-action .ba-icon svg { width: 26px; height: 26px; color: var(--brand-ink); }
.big-action.done .ba-icon { background: var(--volt-soft); }
.big-action.done .ba-icon svg { color: var(--volt); }
.big-action .ba-title { font-family: var(--display); font-weight: 700; font-size: 17px; }
.big-action .ba-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.big-action.done .ba-sub { color: var(--ink); font-weight: 600; }
.big-action .chev { width: 20px; height: 20px; color: var(--muted); flex: none; margin-left: auto; }
.how { display: grid; gap: 10px; }
.how-item { display: flex; gap: 12px; align-items: flex-start; }
.how-num { width: 30px; height: 30px; border-radius: 10px; background: var(--graphite); color: var(--brand); font-weight: 800; font-family: var(--display); display: grid; place-items: center; flex: none; }
.recent a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.recent a:first-child { border-top: 0; }

/* ---------- mapa ---------- */
.map { width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9e7df; z-index: 1; }
.map-confirm { height: 300px; }
.map-results { height: 360px; }
.map-small { height: 200px; }
.leaflet-container { font-family: var(--font); }
.dest-pin { width: 44px; height: 44px; display: grid; place-items: center; }
.dest-pin .dp { width: 40px; height: 40px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--graphite); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); border: 2.5px solid #fff; }
.dest-pin svg { transform: rotate(45deg); width: 20px; height: 20px; color: var(--brand); }
.fr-pin { transform: translate(-50%, -100%); position: absolute; left: 0; top: 0; }
.fr-pin .fp {
  background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 12.5px; white-space: nowrap;
  padding: 6px 10px; border-radius: 12px; border: 2px solid var(--graphite); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  position: relative; display: flex; gap: 6px; align-items: center; cursor: pointer;
}
.fr-pin .fp::after { content: ''; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--graphite); }
.fr-pin .fp small { font-weight: 600; opacity: 0.8; }
.fr-pin.active .fp { background: var(--graphite); color: var(--brand); }
.unit-pin .fp { background: var(--brand); padding: 6px; }
.map-hint { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.map-hint svg { width: 16px; height: 16px; }

/* ---------- endereços ---------- */
.results { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.results:empty { display: none; }
.results li button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; align-items: flex-start; }
.results li:first-child button { border-top: 0; }
.results li button:hover { background: var(--surface-2); }
.results svg { width: 18px; height: 18px; color: var(--muted); flex: none; margin-top: 2px; }
.addr-card { display: flex; gap: 10px; align-items: flex-start; }
.addr-card svg { width: 22px; height: 22px; flex: none; color: var(--ink); }
.divider-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.divider-or::before, .divider-or::after { content: ''; height: 1px; background: var(--line-2); flex: 1; }

/* ---------- barra de contexto ---------- */
.context-bar { display: grid; gap: 8px; grid-template-columns: 1fr; }
.ctx {
  display: flex; gap: 10px; align-items: center; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; cursor: pointer; min-width: 0;
}
.ctx svg { width: 20px; height: 20px; flex: none; }
.ctx .ctx-text { min-width: 0; flex: 1; }
.ctx small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.ctx b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx .ctx-edit { font-size: 13px; font-weight: 700; color: var(--info); flex: none; }

.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 14px 0 10px; }
.seg { display: inline-flex; background: #ebe8df; border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button svg { width: 16px; height: 16px; }
.seg button[aria-pressed='true'] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.sort { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sort .chip { min-height: 34px; padding: 5px 12px; font-size: 13px; }

/* ---------- ofertas ---------- */
.results-layout .map-wrap { margin-bottom: 14px; }
.results-layout.mobile-list .map-wrap { display: none; }
.results-layout.mobile-map .list-wrap { display: none; }
.offer-list { display: grid; gap: 12px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.offer.highlight { outline: 3px solid var(--brand); }
.offer-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.offer-fr { font-size: 16.5px; }
.offer-meta { font-size: 13px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.offer-meta .km { color: var(--ink); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.offer-meta .km svg { width: 15px; height: 15px; }
.open-now { color: var(--volt); font-weight: 600; }
.closed-now { color: var(--warn); font-weight: 600; }
.badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.offer-batt { display: flex; gap: 12px; align-items: center; margin: 12px 0; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.batt-thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--graphite); display: grid; place-items: center; flex: none; overflow: hidden; }
.batt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.batt-thumb .bt { color: var(--brand); font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1; text-align: center; }
.batt-thumb .bt small { display: block; font-size: 10px; color: #b9bcc4; font-weight: 600; margin-top: 2px; }
.batt-name { font-weight: 700; }
.batt-spec { font-size: 13px; color: var(--ink-2); }
.batt-tech { font-size: 12.5px; color: var(--muted); }
.price { margin: 0; display: grid; gap: 6px; }
.price > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.price dt { color: var(--ink-2); }
.price dt small { display: block; color: var(--muted); font-size: 12px; }
.price dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.price .total { border-top: 1px dashed var(--line-2); padding-top: 8px; margin-top: 2px; align-items: baseline; }
.price .total dt { font-weight: 700; color: var(--ink); }
.price .total dd { font-family: var(--display); font-size: 21px; font-weight: 800; }
.price.big .total dd { font-size: 26px; }
.offer-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 12px; }
.stock-low { color: var(--danger); font-weight: 700; font-size: 12.5px; }
.outrange { font-size: 13.5px; }
.outrange li { margin: 4px 0; }

/* ---------- bottom sheet / modal ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(15, 16, 20, 0.45); z-index: 1000; opacity: 0; transition: opacity 0.2s; }
.backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; background: var(--surface);
  border-radius: 22px 22px 0 0; max-height: 86vh; overflow: auto; padding: 8px 16px 24px; box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform 0.25s ease;
}
.sheet.open { transform: translateY(0); }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 4px auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; position: sticky; top: -8px; background: var(--surface); padding: 6px 0; z-index: 1; }

/* ---------- checkout ---------- */
.review-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.review-row:first-child { border-top: 0; padding-top: 0; }
.review-row > svg { width: 22px; height: 22px; flex: none; color: var(--ink-2); margin-top: 2px; }
.review-row small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.review-row b { display: block; }
.total-banner { background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 16px; }
.total-banner .price dt, .total-banner .price dt small { color: #c9ccd3; }
.total-banner .price .total { border-top-color: #444a55; }
.total-banner .price .total dt { color: #fff; }
.total-banner .price .total dd { color: var(--brand); }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 16px; cursor: pointer; background: var(--surface); }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.45); }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.pay-opt b { display: block; font-size: 15.5px; }
.pay-opt small { color: var(--muted); font-size: 13px; }
.pay-opt .pay-ico { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.pay-opt .pay-ico svg { width: 20px; height: 20px; }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta .inner { max-width: 1080px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.sticky-cta .st-total small { display: block; color: var(--muted); font-size: 12px; }
.sticky-cta .st-total b { font-family: var(--display); font-size: 19px; }
.sticky-cta .btn { flex: 1; }

/* ---------- acompanhamento ---------- */
.track-hero { background: var(--graphite); color: #fff; padding: 20px 0 26px; }
.track-hero .code { font-size: 12.5px; color: var(--brand); font-weight: 700; letter-spacing: 0.06em; }
.track-hero h1 { font-size: 28px; margin-top: 4px; }
.track-hero p { color: #c9ccd3; margin-top: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; z-index: 1; }
.timeline .dot svg { width: 15px; height: 15px; }
.timeline li.done .dot { background: var(--volt); border-color: var(--volt); color: #fff; }
.timeline li.done::before { background: var(--volt); }
.timeline li.current .dot { background: var(--brand); border-color: var(--graphite); color: var(--brand-ink); box-shadow: 0 0 0 5px rgba(255, 194, 26, 0.35); }
.timeline li.canceled .dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.timeline .t-title { font-weight: 700; }
.timeline .t-time { font-size: 13px; color: var(--muted); }
.timeline li.pending .t-title { color: var(--muted); font-weight: 600; }
.qr-box { display: grid; gap: 14px; justify-items: center; text-align: center; }
.qr-box img { width: 220px; height: 220px; image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.copy-field { display: flex; gap: 8px; width: 100%; }
.copy-field input { flex: 1; min-width: 0; font-size: 13px; font-family: ui-monospace, Consolas, monospace; }
.countdown { font-family: var(--display); font-weight: 800; font-size: 22px; }
.history-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.history-list li { padding: 8px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.history-list li:first-child { border-top: 0; }

/* ---------- painéis ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); background: var(--surface); scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 14px 12px 12px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--brand); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; }
.count.zero { background: #e4e1d7; color: var(--muted); }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.order-card { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; box-shadow: var(--shadow); }
.order-card.is-new { border-color: var(--brand-strong); box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.35), var(--shadow); }
.order-card .oc-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.order-card .oc-code { font-family: var(--display); font-weight: 800; }
.collect { background: var(--brand); color: var(--brand-ink); border-radius: 14px; padding: 12px 14px; font-weight: 800; font-family: var(--display); font-size: 17px; display: flex; gap: 10px; align-items: center; }
.collect svg { width: 22px; height: 22px; }
.collect-sm { font-size: 13.5px; padding: 6px 10px; border-radius: 10px; margin-top: 8px; display: inline-flex; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.switch input { appearance: none; width: 48px; height: 28px; border-radius: 99px; background: #cfcabb; position: relative; cursor: pointer; transition: background 0.15s; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.switch input:checked { background: var(--volt); }
.switch input:checked::after { transform: translateX(20px); }
.product { display: grid; gap: 12px; }
.product-head { display: flex; gap: 12px; align-items: flex-start; }
.product-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.compat-list { font-size: 13px; color: var(--ink-2); margin: 0; padding-left: 18px; }
.compat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 14px; position: relative; }
.compat-row .full { grid-column: 1 / -1; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table td { padding: 6px 4px; border-top: 1px solid var(--line); }
.hours-table input[type='time'] { min-height: 40px; padding: 6px 8px; border: 1.5px solid var(--line-2); border-radius: 10px; width: 100%; }
.modal {
  position: fixed; inset: 0; z-index: 1001; display: grid; place-items: end center; pointer-events: none;
}
.modal .modal-box {
  pointer-events: auto; background: var(--surface); width: 100%; max-height: 92vh; overflow: auto;
  border-radius: 22px 22px 0 0; padding: 18px var(--gutter) 24px; box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.toast-host { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 2000; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--graphite); color: #fff; padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px; animation: rise 0.2s ease; }
.toast.err { background: var(--danger); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.skeleton { background: linear-gradient(90deg, #ece9e0, #f6f4ee, #ece9e0); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.footer { padding: 24px 0 40px; color: var(--muted); font-size: 13px; text-align: center; }
.footer a { color: var(--ink-2); margin: 0 8px; }

@media (min-width: 700px) {
  :root { --gutter: 24px; }
  h1 { font-size: 30px; }
  .hero { padding: 40px 0 90px; }
  .hero h1 { font-size: 40px; }
  .hero-actions { grid-template-columns: 1fr 1fr; margin-top: -60px; }
  .context-bar { grid-template-columns: 1fr 1fr; }
  .offer-list { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .sheet { left: 50%; right: auto; width: 560px; transform: translate(-50%, 100%); }
  .sheet.open { transform: translate(-50%, 0); }
  .modal { place-items: center; }
  .modal .modal-box { width: min(640px, 94vw); border-radius: 22px; }
  .checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
  .checkout-grid .aside { position: sticky; top: 76px; }
  .map-results { height: 420px; }
  .panel-grid { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
}
@media (min-width: 900px) {
  .seg.only-mobile { display: none; }
  .results-layout.mobile-list .map-wrap, .results-layout.mobile-map .list-wrap { display: block; }
  .offer-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 699px) {
  .grid-2.stack-mobile { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 8px; }
  .history-list li { grid-template-columns: 1fr; gap: 2px; }
  .hide-mobile { display: none !important; }
}
