/* Cores da marca */
:root {
  --orange: #FF7A1A;
  --orange-dark: #D9600A;
  --orange-light: #FFE3CC;
  --navy: #0B2545;
  --bg: #F4F6F9;
  --white: #FFFFFF;
  --error: #B42318;
  --whatsapp: #128C4A;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--bg);
}

a { color: var(--orange-dark); }

h1, h2 { font-weight: 900; line-height: 1.2; }
h1 { font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }

.topbar {
  background: var(--navy);
  padding: 12px 16px;
}
.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.menu { display: flex; gap: 14px; }
.menu a { color: var(--white); text-decoration: none; font-weight: 800; font-size: .95rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand img { height: 36px; width: auto; }
/* Nome no estilo do logo: "uLeva" branco + "Aí" laranja, fonte Poppins */
.brand-name {
  font-family: "Poppins", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  color: var(--white);
}
.brand-accent { color: var(--orange); }

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.footer {
  text-align: center;
  padding: 20px;
  font-size: .9rem;
}

.lead { font-size: 1.15rem; margin: 0 0 1.5rem; }
.small { font-size: .95rem; opacity: .8; }
.center { text-align: center; }

.notice {
  background: var(--orange-light);
  border-radius: var(--radius);
  padding: 12px 16px;
}

/* Escolha motorista / cliente */
.choices { display: grid; gap: 16px; margin: 1.5rem 0; }
.choice {
  display: block;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 0 var(--orange-dark);
}
.choice-alt { background: var(--navy); box-shadow: 0 4px 0 #061629; }
.choice-title { display: block; font-size: 1.5rem; font-weight: 900; }
.choice-text { display: block; margin-top: 4px; }

/* Formulário */
.form { display: grid; gap: 6px; }
.field { display: grid; gap: 6px; margin-top: 12px; }
.field input, .field select {
  width: 100%;
  font: inherit;
  padding: 14px 16px;
  border: 2px solid #C9D1DC;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
}
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.check input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--orange); }
.error { color: var(--error); margin: 4px 0 0; }

.button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  font-size: 1.2rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--orange-dark);
}
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--orange-dark); }
.button-whatsapp { background: var(--whatsapp); box-shadow: 0 4px 0 #0B5E31; }

/* Lugar na fila */
.position {
  display: grid;
  justify-items: center;
  padding: 24px;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: var(--radius);
  border: 3px solid var(--orange);
}
.position-label { font-weight: 800; }
.position-number { font-size: 4rem; font-weight: 900; color: var(--orange); line-height: 1.1; }

/* ===== App (cadastro, anúncios, ofertas) ===== */
.notice-success { background: #DDF4E4; }
.notice-error { background: #FDE2E0; }
.inline { display: inline; }
.link {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--orange-dark); text-decoration: underline;
}
.link-danger { color: var(--error); }
.help { font-size: .85rem; opacity: .75; }
.empty { opacity: .7; text-align: center; padding: 12px 0; }

.button-navy { background: var(--navy); box-shadow: 0 4px 0 #061629; }
.button-small { width: auto; display: inline-block; margin-top: 8px; padding: 10px 18px; font-size: 1rem; }
.actions { display: grid; gap: 4px; margin: 1rem 0; }
.actions .button { margin-top: 10px; }

/* Rádio grande (fácil de tocar) */
fieldset.field { border: 0; padding: 0; margin: 12px 0 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.radios { display: grid; gap: 8px; }
.radio {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; border: 2px solid #C9D1DC; border-radius: var(--radius); background: var(--white);
}
.radio input { width: 22px; height: 22px; accent-color: var(--orange); }
.radio:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.field textarea {
  width: 100%; font: inherit; padding: 14px 16px; border: 2px solid #C9D1DC;
  border-radius: var(--radius); background: var(--white); color: var(--navy);
}

/* Caixa de destaque */
.box { background: var(--white); border-radius: var(--radius); padding: 16px 18px; margin: 1.25rem 0; border: 2px solid #E3E8EF; }
.box h2 { margin-top: 0; }
.box-ok, .status-approved { border-color: #34A853; }
.status-pending { border-color: var(--orange); }
.status-rejected { border-color: var(--error); }
.tip { background: var(--white); border-left: 5px solid var(--orange); padding: 12px 16px; border-radius: 8px; margin-bottom: 1rem; }

/* Selos */
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 800; padding: 2px 10px;
  border-radius: 999px; background: var(--orange-light); color: var(--orange-dark); vertical-align: middle;
}
.badge-ok { background: #DDF4E4; color: #1E7A3A; }
.badge-founder { background: var(--navy); color: var(--orange); }

/* Lista de passos do cadastro */
.checklist { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 8px; }
.checklist li a, .checklist li .row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--white); border-radius: var(--radius);
  border: 2px solid #E3E8EF; color: var(--navy); text-decoration: none;
}
.checklist li small { font-weight: 800; color: var(--error); white-space: nowrap; }
.checklist li.done small { color: #1E7A3A; }
.checklist li.done a::before, .checklist li.done .row::before { content: "✓"; color: #1E7A3A; font-weight: 900; }

/* Botão grande para foto */
.photo-pick {
  display: grid; place-items: center; gap: 8px; margin-top: 14px;
  padding: 24px 16px; border: 3px dashed var(--orange); border-radius: var(--radius);
  background: var(--white); text-align: center; font-weight: 800; cursor: pointer;
}
.photo-pick input { max-width: 100%; }

/* Formulário de anúncio em passos */
.step { background: var(--white); border-radius: var(--radius); padding: 4px 16px 18px; margin-top: 16px; }
.step h2 { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; }
.step-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: var(--white); font-size: 1rem;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.city-uf { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }

/* Cartões de anúncio */
.cards-list { display: grid; gap: 12px; margin-top: 1rem; }
.card-ship {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 10px; color: var(--navy); text-decoration: none;
  border: 2px solid #E3E8EF;
}
.card-ship img, .card-ship-nophoto {
  width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--orange-light);
  display: grid; place-items: center; font-size: 2rem;
}
.card-ship-body { display: grid; gap: 2px; }
.card-ship-body small { opacity: .75; }
.filters { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.filters input { font: inherit; padding: 10px 12px; border: 2px solid #C9D1DC; border-radius: 10px; width: 100%; }
.pager { display: flex; justify-content: space-between; margin-top: 1rem; }

/* Página do anúncio */
.gallery { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 1rem; scroll-snap-type: x mandatory; }
.gallery img { height: 220px; border-radius: var(--radius); scroll-snap-align: start; }
.route { font-size: 1.15rem; margin: 0 0 1rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 1rem 0; }
.facts div { background: var(--white); border-radius: 10px; padding: 8px 12px; }
.facts dt { font-size: .8rem; opacity: .7; }
.facts dd { margin: 0; font-weight: 800; }

/* Ofertas */
.bid { background: var(--white); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; border: 2px solid #E3E8EF; }
.bid-best { border-color: var(--orange); }
.bid-mine { box-shadow: inset 4px 0 0 var(--navy); }
.bid-accepted { border-color: #34A853; }
.bid-top { display: flex; justify-content: space-between; align-items: center; }
.bid-amount { font-size: 1.6rem; font-weight: 900; }
.bid-who { margin: 4px 0; }
.bid-msg { font-style: italic; margin: 6px 0 0; }

/* Perguntas */
.qa { background: var(--white); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.qa p { margin: 4px 0; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { flex: 1; font: inherit; padding: 10px 12px; border: 2px solid #C9D1DC; border-radius: 10px; }
.inline-form .button { margin-top: 0; }

@media (max-width: 420px) {
  .brand-name { font-size: 1.3rem; }
  .brand img { height: 30px; }
  .menu { gap: 10px; }
  .menu a { font-size: .85rem; }
  .filters { grid-template-columns: 1fr; }
}

/* Ajustes */
.checklist li a > span, .checklist li .row > span { flex: 1; }
.checklist li small.optional { color: var(--navy); opacity: .6; }
.footer { display: flex; justify-content: center; gap: 18px; }

/* Avisos, códigos, linha do tempo, assinatura */
.count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--orange); color: var(--white); font-size: .75rem;
}
.notif {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px;
  background: var(--white); border-radius: var(--radius); color: var(--navy); text-decoration: none;
  border: 2px solid #E3E8EF;
}
.notif-new { border-color: var(--orange); font-weight: 800; }
.notif small { opacity: .6; white-space: nowrap; }
.code { font-size: 3rem; font-weight: 900; letter-spacing: .3em; text-align: center; margin: .25rem 0; color: var(--orange-dark); }
.code-input { font-size: 2rem !important; letter-spacing: .4em; text-align: center; }
.timeline { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 6px; }
.timeline li { padding: 10px 14px; border-radius: 10px; background: var(--white); opacity: .55; }
.timeline li.done { opacity: 1; border-left: 5px solid #34A853; }
.timeline li.done::before { content: "✓ "; color: #1E7A3A; font-weight: 900; }
.howto { background: var(--white); border-radius: var(--radius); padding: 12px 16px 12px 36px; }
.howto li { margin: 4px 0; }
.signature {
  width: 100%; height: 180px; background: var(--white); border: 2px dashed #9AA6B8;
  border-radius: var(--radius); touch-action: none;
}
.stars { color: var(--orange-dark); font-weight: 800; font-size: .9rem; }
.radios .radio span { font-size: 1.05rem; }
.stars-form .radio span { color: var(--orange); font-size: 1.6rem; letter-spacing: 3px; line-height: 1; }

/* Como funciona / páginas públicas */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; background: var(--white); border-radius: var(--radius); padding: 12px 14px 12px 58px; }
.steps li::before {
  content: counter(step); position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: var(--white); font-weight: 900; display: grid; place-items: center;
}
.steps li strong { display: block; }
.faq details { background: var(--white); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 8px 0 0; }
.legal h2 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 4px 0; }
.list-x { list-style: none; padding: 0; display: grid; gap: 8px; }
.list-x li { background: var(--white); border-radius: 10px; padding: 10px 14px 10px 44px; position: relative; }
.list-x li::before { content: "✕"; position: absolute; left: 16px; color: var(--error); font-weight: 900; }
.footer { flex-wrap: wrap; }

/* Perfil público do motorista */
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: .5rem; }
.profile-head h1 { margin: 0; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--orange);
  display: grid; place-items: center; font-size: 2rem; font-weight: 900; flex: none;
}

/* Chat */
.chat-list { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; margin-bottom: 10px; }
.msg { background: var(--bg); border-radius: 14px 14px 14px 4px; padding: 8px 12px; max-width: 85%; justify-self: start; }
.msg-mine { background: var(--orange-light); border-radius: 14px 14px 4px 14px; justify-self: end; }
.msg p { margin: 0; }
.msg small { font-size: .75rem; opacity: .65; }

/* Card para compartilhar */
.share-card { width: 100%; max-width: 420px; display: block; margin: 0 auto 12px; border-radius: var(--radius); }
.copy-line { word-break: break-all; user-select: all; }

/* Esconder de verdade (mesmo com display: grid/flex) */
[hidden] { display: none !important; }

/* Lista de cidades enquanto digita */
.field { position: relative; }
.city-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: 4px 0 0; padding: 4px 0; list-style: none;
  background: #fff; border: 2px solid var(--orange); border-radius: 12px; box-shadow: 0 8px 24px rgba(11, 37, 69, .15);
  max-height: 320px; overflow-y: auto;
}
.city-list li { padding: 12px 14px; cursor: pointer; font-size: 1.05rem; }
.city-list li span { color: #6b7a90; font-weight: 700; margin-left: 4px; }
.city-list li.active, .city-list li:hover { background: var(--orange-light); }
.filters { position: relative; }
.filters .city-wrap { position: relative; flex: 1; min-width: 0; }
.filters .city-wrap input { width: 100%; }

/* Botão vermelho (desistir/cancelar) */
.button-danger { background: var(--error); }
.button-danger:hover { background: #a8261d; }

/* Fotos já enviadas (mudar anúncio) */
.photo-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.photo-edit label { display: grid; gap: 4px; font-size: .95rem; }
.photo-edit img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* Cancelar / desistir (escondido num "abrir") */
.undo { margin: 20px 0; padding: 12px 14px; border: 2px dashed #C9D1DC; border-radius: 12px; }
.undo summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.undo form { margin-top: 10px; }

/* Fotos de perfil (foto ou arte da marca) */
.avatar-img { border-radius: 50%; object-fit: cover; flex: none; background: var(--orange-light); }
.avatar-preview { display: grid; place-items: center; margin: 8px 0 16px; }
.avatar-edit { position: relative; display: inline-block; text-decoration: none; }
.avatar-edit .avatar-cam { position: absolute; right: -4px; bottom: -4px; background: var(--white); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(11,37,69,.2); font-size: .9rem; }
.menu-me { display: inline-flex; align-items: center; gap: 6px; }
.menu-me .avatar-img { border: 2px solid var(--white); }
.person-line { display: flex; gap: 12px; align-items: center; padding: 12px; margin: 12px 0; background: var(--white); border-radius: 14px; text-decoration: none; color: var(--navy); }
.person-line span { display: grid; }
.person-line small { color: #5b6b80; }
.review { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.review p { margin: 0 0 4px; }

/* Oferta com foto do motorista e do veículo */
a.bid-who { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--navy); margin: 6px 0; }
a.bid-who span { display: grid; }
a.bid-who small { color: #5b6b80; font-size: .9rem; }
.bid-vehicle { display: flex; gap: 10px; align-items: center; font-size: .95rem; margin: 6px 0; }
.bid-vehicle img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }

/* Cards com figura (dicas e números) */
.tip-cards, .stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.tip-card, .stat-card { background: var(--white); border-radius: 14px; padding: 12px 8px; display: grid; justify-items: center; text-align: center; gap: 4px; font-size: .95rem; }
.stat-card strong { font-size: 1.5rem; color: var(--navy); line-height: 1; }
.stat-card span:last-child { color: #5b6b80; font-size: .85rem; }
.stat-bad { border: 2px solid var(--error); }
.tip-icon { font-size: 2rem; line-height: 1; }
.msg { display: block; }
.msg .avatar-img { float: left; margin: 0 8px 0 0; }

/* Escolher o tipo com figura (anunciar) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 14px; }
.cat { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 6px; text-align: center;
  background: var(--white); border: 2px solid #C9D1DC; border-radius: 14px; cursor: pointer; font-weight: 700; font-size: .92rem; }
.cat input { position: absolute; opacity: 0; pointer-events: none; }
.cat-icon { font-size: 2.1rem; line-height: 1; }
.cat:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.cat:has(input:focus-visible) { outline: 3px solid var(--navy); }
.card-cat { color: #5b6b80; }

/* Busca de fretes */
.search-box { background: var(--white); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.search-box .filters { grid-template-columns: 1fr 1fr; }
.search-hint { margin: 0; font-size: .95rem; }
.detour { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detour select { font: inherit; padding: 8px 10px; border: 2px solid #C9D1DC; border-radius: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 2px solid #C9D1DC; text-decoration: none; color: var(--navy); font-weight: 700; white-space: nowrap; }
.chip-on { border-color: var(--orange); background: var(--orange-light); }
.empty-card { background: var(--white); border-radius: 16px; padding: 20px; text-align: center; }
@media (max-width: 420px) { .search-box .filters { grid-template-columns: 1fr; } }

/* Como funciona em cards com figura */
.how-cards { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.how-card { position: relative; background: var(--white); border-radius: 16px; padding: 14px 12px; display: grid; justify-items: center; text-align: center; gap: 6px; box-shadow: 0 2px 8px rgba(11, 37, 69, .06); }
.how-card strong { color: var(--navy); line-height: 1.2; }
.how-card span:last-child { color: #5b6b80; font-size: .92rem; line-height: 1.3; }
.how-fig { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: var(--orange-light); }
.fig-navy { background: #DCE6F2; }
.fig-green { background: #DDF3E4; }
.how-n { position: absolute; top: 8px; left: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 900; display: grid; place-items: center; font-size: .9rem; }
.trust-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0 20px; }
.trust-card { background: var(--white); border-radius: 16px; padding: 14px 12px; display: grid; justify-items: center; text-align: center; gap: 6px; }
.trust-card span:last-child { color: #5b6b80; font-size: .9rem; }
.tabs { display: flex; gap: 8px; margin: 8px 0 4px; }
.tab { flex: 1; text-align: center; padding: 12px; border-radius: 12px; background: var(--white); border: 2px solid var(--orange); font-weight: 800; text-decoration: none; color: var(--navy); }
.choice-fig { font-size: 2.4rem; line-height: 1; }
.chips-big { flex-wrap: wrap; }
@media (min-width: 720px) { .how-cards { grid-template-columns: repeat(3, 1fr); } .trust-cards { grid-template-columns: repeat(4, 1fr); } }

/* Moldura para foto de documento */
.doc-frame { margin: 8px auto 12px; width: 220px; height: 140px; border: 4px dashed var(--orange); border-radius: 16px; display: grid; place-items: center; background: var(--white); }
.doc-frame span { font-size: 3.4rem; }
.doc-frame-face { width: 150px; height: 190px; border-radius: 50%; }

.checklist-title { font-size: 1.1rem; margin: 18px 0 6px; }

/* Powered by Zeus (rodapé de todas as telas) */
.powered { flex-basis: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 10px; text-decoration: none; }
.powered span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #6b7a90; }
.powered img { height: auto; opacity: .9; }
.powered:hover img { opacity: 1; }

/* Ajustes: menu alinhado e categorias sem cortar palavras */
.menu { align-items: center; }
.menu a { display: inline-flex; align-items: center; gap: 4px; line-height: 1.2; }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.cat { align-content: center; min-height: 104px; overflow-wrap: anywhere; hyphens: auto; line-height: 1.2; }
@media (max-width: 420px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } .cat { font-size: .82rem; padding: 10px 4px; } }

/* Tamanho pelo veículo (cards com figura) */
.field-label { margin: 14px 0 6px; font-weight: 700; }
.size-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.size strong { font-size: .95rem; }
.size small { color: #5b6b80; font-weight: 600; font-size: .8rem; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.measures { margin: 8px 0 12px; padding: 10px 12px; border: 2px dashed #C9D1DC; border-radius: 12px; }
.measures summary { cursor: pointer; font-weight: 800; color: var(--navy); }

/* Botão de foto (esconde o "Escolher arquivos" do navegador) */
.photo-pick { position: relative; cursor: pointer; }
.photo-pick input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-pick span::before { content: "📷"; display: block; font-size: 2.2rem; margin-bottom: 4px; }
.photo-pick .picked { display: block; margin-top: 4px; color: var(--ok, #2f855a); font-weight: 800; font-size: .95rem; }

/* Volumes do anúncio */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; margin: 8px 0 12px; }
.preset { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; background: var(--white); border: 2px solid #C9D1DC; border-radius: 12px;
  font: inherit; font-size: .82rem; font-weight: 700; color: var(--navy); cursor: pointer; line-height: 1.15; }
.preset span { font-size: 1.6rem; }
.preset:active, .preset-on { border-color: var(--orange); background: var(--orange-light); }
.items { display: grid; gap: 10px; margin-bottom: 10px; }
.item-card { background: var(--bg); border-radius: 14px; padding: 10px 12px; border: 2px solid #E1E6EE; }
.item-top { display: grid; grid-template-columns: 1fr 80px; gap: 8px; }
.item-hint { margin: 6px 0 0; font-size: .85rem; font-weight: 700; color: #5b6b80; }
.item-card .field { margin-top: 6px; }
.item-remove { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: .9rem; color: var(--error); cursor: pointer; }
.item-removed { opacity: .45; }
.items-total { font-weight: 800; color: var(--navy); }
.item-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.item-list li { background: var(--white); border-radius: 12px; padding: 10px 12px; display: grid; }
.item-list span { color: #5b6b80; font-size: .92rem; }

/* Cuidados e acesso */
.flag-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
.flag { display: flex; gap: 8px; align-items: center; padding: 12px; background: var(--white); border: 2px solid #C9D1DC; border-radius: 12px; font-weight: 700; font-size: .92rem; cursor: pointer; }
.flag input { width: 22px; height: 22px; accent-color: var(--orange); flex: none; }
.flag:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.access { min-height: 0; padding: 10px 4px; font-size: .85rem; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag-chip { background: var(--orange-light); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .9rem; }
.card-flags { letter-spacing: 2px; }
.cep-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.cep-row a { padding-bottom: 14px; }
.cep-status { margin: 4px 0 0; font-weight: 700; }
@media (max-width: 420px) { .flag-grid { grid-template-columns: 1fr; } }

/* Mapa dos fretes */
.map-box { margin: 4px 0 12px; }
.board-map { height: 340px; border-radius: 16px; overflow: hidden; border: 2px solid #E1E6EE; z-index: 0; }
.map-legend { font-size: .85rem; color: #5b6b80; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0; }
.dot-live { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, .35); }
.line-legend { display: inline-block; width: 22px; border-top: 3px dashed var(--orange); }
.line-you { border-top: 5px solid var(--navy); }
.map-pulse span { display: block; width: 14px; height: 14px; margin: 4px; border-radius: 50%; background: var(--orange); border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(255, 122, 26, .7); animation: map-pulse 1.6s infinite; }
@keyframes map-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .7); }
  70% { box-shadow: 0 0 0 16px rgba(255, 122, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); }
}
.map-flag { font-size: 18px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .map-pulse span { animation: none; } }
.leaflet-popup-content { font-family: inherit; font-size: .95rem; line-height: 1.4; }
.leaflet-popup-content a { font-weight: 800; }

/* Central de Ajuda */
.help-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 8px 0 16px; }
.help-search input { font: inherit; padding: 12px 14px; border: 2px solid #C9D1DC; border-radius: 12px; }
.help-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 8px; }
.help-section { background: var(--white); border-radius: 16px; padding: 14px 10px; display: grid; justify-items: center; gap: 6px; text-align: center; text-decoration: none; color: var(--navy); }
.help-link { display: flex; gap: 12px; align-items: center; background: var(--white); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; text-decoration: none; color: var(--navy); }
.help-link > span:first-child { font-size: 1.6rem; }
.help-link span:last-child { display: grid; }
.help-link small { color: #5b6b80; }
.help-article { background: var(--white); border-radius: 16px; padding: 18px; }
.help-fig { margin-bottom: 6px; }
.help-article h1 { margin-top: 0; }

/* Alertas de frete e datas flexíveis */
.alert-save { margin: 0 0 10px; }
.alert-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #E1E6EE; }
.alert-row a { font-weight: 700; color: var(--navy); }
.flag-wide { margin-top: 10px; }
.flag-wide small { display: block; font-weight: 600; color: #5b6b80; margin-top: 2px; }

/* Linha de etapas do frete */
.steps-line { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps-line::before { content: ""; position: absolute; top: 17px; left: 10%; right: 10%; border-top: 3px solid #DCE2EA; z-index: 0; }
.steps-line li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: .78rem; font-weight: 700; color: #7b8aa0; }
.steps-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid #DCE2EA; font-size: 1rem; }
.steps-line li.done .steps-dot { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 900; }
.steps-line li.now .steps-dot { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-light); }
.steps-line li.done, .steps-line li.now { color: var(--navy); }

/* Sua estimativa */
.estimate { background: var(--white); border-radius: 18px; padding: 16px; margin: 12px 0; box-shadow: 0 2px 10px rgba(11, 37, 69, .06); }
.estimate h2 { margin-top: 0; }
.estimate-chart svg { width: 100%; height: 70px; display: block; }
.estimate-labels { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: -4px; }
.estimate-labels span { display: grid; }
.estimate-labels small { color: #5b6b80; font-weight: 700; }
.estimate-labels strong { font-size: 1.3rem; color: var(--navy); }
.estimate-avg { background: var(--navy); color: #fff; border-radius: 12px; padding: 6px 4px; }
.estimate-avg small, .estimate-avg strong { color: #fff !important; }
.estimate-question { font-weight: 900; font-size: 1.1rem; margin: 14px 0 8px; }
.choice-cards { display: grid; gap: 10px; }
@media (min-width: 640px) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice-card { border: 2px solid var(--navy); border-radius: 16px; padding: 12px 14px; }
.choice-card h3 { margin: 0 0 6px; }
.choice-card-alt { border-color: var(--orange); background: #FFF8F2; }
.mini-steps { margin: 0 0 6px; padding-left: 20px; }
.price-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.price-form label { display: flex; align-items: center; gap: 6px; background: #fff; border: 2px solid #C9D1DC; border-radius: 12px; padding: 0 10px; font-weight: 900; }
.price-form input { border: 0; font: inherit; font-size: 1.3rem; font-weight: 900; width: 100%; padding: 10px 0; outline: none; }

/* Abas (Meus anúncios) */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tab-bar { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid #E1E6EE; margin: 8px 0 12px; scrollbar-width: none; }
.tab-item { flex: none; padding: 10px 12px; text-decoration: none; color: #5b6b80; font-weight: 800; font-size: .92rem; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab-on { color: var(--navy); border-bottom-color: var(--orange); }
.tab-item .count { background: var(--orange); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: .75rem; }
.card-bids { color: var(--orange-dark, #D9600A); }
