/* ===================================================
   PUXADA — Design System 2025
   Font: Inter  |  Paleta clara e suave — Sky Blue
   =================================================== */

/* ─── Variables ────────────────────────────────── */
:root {
  /* Accent — azul‑céu suave */
  --accent:    #0ea5e9;
  --accent-d:  #0284c7;
  --accent-bg: rgba(14,165,233,.07);

  /* Superfícies — tudo claro */
  --page:    #f0f4f8;
  --card:    #ffffff;
  --muted:   #f8fafc;
  --hero-bg: #eef6fb;

  /* Texto */
  --tx1:  #1e293b;
  --tx2:  #64748b;
  --tx3:  #94a3b8;

  /* Bordas */
  --bdr:        #e2e8f0;
  --bdr-light:  #f1f5f9;

  /* Status */
  --ok:   #16a34a;
  --err:  #dc2626;
  --warn: #d97706;

  /* ── Aliases de compatibilidade (usados em estilos inline dos componentes) ── */
  --brand-50:  #f0f9ff;
  --brand-100: #e0f2fe;
  --brand-500: #0ea5e9;
  --brand-600: #0284c7;
  --orange:    #0ea5e9;
  --orange-d:  #0284c7;
  --orange-bg: rgba(14,165,233,.07);
  --orange-l:  rgba(14,165,233,.07);
  --navy:      #1e293b;
  --navy-d:    #0f172a;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --c-bg:      #f0f4f8;
  --c-surface: #ffffff;
  --c-border:  #e2e8f0;
  --c-text-1:  #1e293b;
  --c-text-2:  #64748b;
  --c-text-3:  #94a3b8;
  --c-success: #16a34a;
  --c-danger:  #dc2626;
  --c-warning: #d97706;
  --tag-v-bg:   #eff6ff;
  --tag-v-text: #2563eb;
  --tag-v-bdr:  #bfdbfe;
  --tag-b-bg:   #f5f3ff;
  --tag-b-text: #6d28d9;
  --tag-b-bdr:  #ddd6fe;

  /* Tokens */
  --r-xs: 4px;
  --r-sm: 7px;
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --sh0: 0 1px 3px rgba(0,0,0,.04);
  --sh1: 0 2px 6px rgba(0,0,0,.05);
  --sh2: 0 4px 16px rgba(0,0,0,.07);
  --sh3: 0 8px 28px rgba(0,0,0,.09);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--page);
  color: var(--tx1);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Sticky footer: empurra o footer para o fundo mesmo em páginas curtas */
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Faz o conteúdo principal ocupar todo o espaço disponível */
main { flex: 1; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--tx1);
  margin-top: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================================
   NAVBAR — branca, clean
   =================================================== */
.site-nav {
  background: var(--card);
  border-bottom: 1px solid var(--bdr);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--tx1);
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--tx1); }

.nav-brand-icon {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-size: .84rem;
  font-weight: 500;
  color: var(--tx2) !important;
  padding: 6px 11px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--tx1) !important;
  background: var(--muted);
}

.btn-nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  margin-left: 8px;
  flex-shrink: 0;
  transition: background .15s;
}
.btn-nav-cta:hover { background: var(--accent-d); color: #fff !important; }

.nav-link-sair {
  font-size: .82rem;
  opacity: .75;
  margin-left: 4px;
}

/* ── Hamburger (mobile) ─────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tx1);
  border-radius: 2px;
  transition: all .2s;
}

@media (max-width: 640px) {
  /* .site-nav já tem position:sticky — serve como containing block para o dropdown */
  .site-nav { height: auto; min-height: 60px; }
  .site-nav .container { height: 60px; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;   /* fixed garante largura = 100vw, sem herdar padding do container */
    top: 60px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--bdr);
    padding: 8px 16px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,.09);
    z-index: 98;
    box-sizing: border-box;
    width: 100vw;
  }
  .nav-links.open { display: flex; }

  .nav-links .nav-link {
    padding: 10px 12px;
    border-radius: 8px;
    width: auto;
    margin: 0;
  }
  .nav-links .nav-link-sair {
    opacity: .75;
    font-size: .84rem;
    margin: 2px 0 0 0;
  }
  .nav-links .btn-nav-cta {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    margin: 4px 0 0 0;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 14px;
  }
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--bdr);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--tx1);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: -.2px;
}
.footer-brand-link:hover { color: var(--accent); text-decoration: none; }
.footer-brand-link .nav-brand-icon {
  width: 24px;
  height: 24px;
  font-size: .72rem;
}

.footer-copy {
  font-size: .74rem;
  color: var(--tx3);
  margin-left: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: .8rem;
  color: var(--tx2);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--accent); }

@media (max-width: 540px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ===================================================
   HERO — fundo claro, texto escuro
   =================================================== */
.hero-section {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--bdr);
  padding: 52px 0 44px;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--tx1);
  margin-bottom: 14px;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14,165,233,.09);
  color: var(--accent-d);
  font-size: .73rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid rgba(14,165,233,.18);
  margin-bottom: 16px;
  width: fit-content;
}

.hero-sub {
  font-size: .93rem;
  color: var(--tx2);
  max-width: 460px;
  margin-bottom: 24px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--bdr);
  flex-wrap: wrap;
}

.hero-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tx1);
  letter-spacing: -.5px;
  line-height: 1.15;
}
.hero-stat-label {
  display: block;
  font-size: .71rem;
  color: var(--tx3);
  margin-top: 1px;
}

/* ===================================================
   BOTÕES
   =================================================== */

/* Primário — azul */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font);
  white-space: nowrap;
  transition: background .15s;
}
.btn-primary:hover { background: var(--accent-d); color: #fff; }

/* Secundário — borda neutra (fundo claro) */
.btn-secondary {
  background: var(--card);
  color: var(--tx1);
  border: 1.5px solid var(--bdr);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font);
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-secondary:hover { background: var(--muted); border-color: var(--gray-300); color: var(--tx1); }

/* Outline — alias de btn-secondary */
.btn-outline {
  background: var(--card);
  color: var(--tx1);
  border: 1.5px solid var(--bdr);
  border-radius: 8px;
  padding: 9px 20px;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font);
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-outline:hover { background: var(--muted); border-color: var(--gray-300); color: var(--tx1); }

/* Submit de formulário */
.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  font-family: var(--font);
  transition: background .15s;
}
.btn-submit:hover:not(:disabled) { background: var(--accent-d); color: #fff; }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* WhatsApp */
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: .84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  transition: background .15s;
}
.btn-whatsapp:hover { background: #1ebe5c; color: #fff; }

/* Revelar contato */
.btn-reveal {
  background: var(--muted);
  color: var(--tx1);
  border: 1.5px solid var(--bdr);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  font-family: var(--font);
  transition: background .15s, border-color .15s;
}
.btn-reveal:hover { background: var(--bdr-light); border-color: var(--gray-300); }

/* CTA primário de seção */
.btn-cta-white {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background .15s;
}
.btn-cta-white:hover { background: var(--accent-d); color: #fff; }

/* Limpar filtros */
.btn-filter-clear {
  background: none;
  border: none;
  color: var(--tx3);
  font-size: .76rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font);
  transition: color .15s;
}
.btn-filter-clear:hover { color: var(--tx1); }

/* ===================================================
   CARDS GENÉRICOS
   =================================================== */
.section-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
}

.detail-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 12px;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 12px;
}

.detail-card-title,
.form-card-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--tx3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bdr);
}

/* ===================================================
   CARD DE FRETE
   =================================================== */
.frete-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  box-shadow: var(--sh0);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.frete-card:hover {
  box-shadow: var(--sh2);
  transform: translateY(-2px);
  border-color: var(--gray-300);
  text-decoration: none;
  color: inherit;
}

.fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fc-company-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fc-product-icon { font-size: .9rem; flex-shrink: 0; }

.fc-company-name {
  font-size: .76rem;
  font-weight: 500;
  color: var(--tx3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-dist-badge {
  background: var(--muted);
  border: 1px solid var(--bdr);
  color: var(--tx3);
  font-size: .68rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fc-route-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--muted);
  border: 1px solid var(--bdr-light);
  border-radius: 8px;
  padding: 10px 11px;
  margin-bottom: 11px;
}

.fc-route-side { flex: 1; min-width: 0; }
.fc-route-side.right { text-align: right; }

.fc-route-label {
  display: block;
  font-size: .58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--tx3);
  margin-bottom: 2px;
}

.fc-route-city {
  font-size: .8rem;
  font-weight: 700;
  color: var(--tx1);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-route-state {
  font-size: .6rem;
  font-weight: 600;
  background: var(--bdr-light);
  color: var(--tx3);
  border: 1px solid var(--bdr);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 3px;
}

.fc-arrow-circle {
  width: 22px;
  height: 22px;
  color: var(--tx3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fc-divider {
  border: none;
  border-top: 1px solid var(--bdr-light);
  margin: 8px 0;
}

.fc-product-line {
  font-size: .84rem;
  font-weight: 700;
  color: var(--tx1);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

.tag-v, .tag-b, .tag-pay {
  font-size: .67rem;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-v { background: var(--tag-v-bg); color: var(--tag-v-text); border: 1px solid var(--tag-v-bdr); }
.tag-b { background: var(--tag-b-bg); color: var(--tag-b-text); border: 1px solid var(--tag-b-bdr); }
.tag-pay { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.fc-stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}

.fc-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  color: var(--tx2);
}
.fc-stat svg { color: var(--tx3); flex-shrink: 0; }

.fc-price-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--bdr-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fc-price-label {
  font-size: .65rem;
  font-weight: 500;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.fc-price-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.3px;
}

.badge-novo {
  background: var(--accent-bg);
  color: var(--accent-d);
  border: 1px solid rgba(14,165,233,.2);
  font-size: .58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .3px;
  flex-shrink: 0;
}

/* ===================================================
   BARRA DE TÍTULO (FretesList)
   =================================================== */
.page-title-bar {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--bdr);
  padding: 24px 0;
  margin-bottom: 24px;
}
.page-title-bar h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--tx1);
  margin-bottom: 2px;
}
.page-title-bar .subtitle {
  font-size: .8rem;
  color: var(--tx3);
}

/* ===================================================
   PAINEL DE FILTROS
   =================================================== */
.filter-panel {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 16px;
  position: sticky;
  top: 76px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bdr);
}

.filter-header-title {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--tx3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-section { margin-bottom: 12px; }

.filter-section-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--tx3);
  margin-bottom: 5px;
}

.filter-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--tx2);
  cursor: pointer;
  user-select: none;
}
.filter-check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-sep {
  border: none;
  border-top: 1px solid var(--bdr-light);
  margin: 12px 0;
}

/* ───────────────────────────────────────────────────
   CITY COMBOBOX
   ─────────────────────────────────────────────────── */
.city-cmb {
  position: relative;
  outline: none;
}

.city-cmb-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.city-cmb-icon {
  position: absolute;
  left: 9px;
  color: var(--tx3);
  font-size: .75rem;
  pointer-events: none;
  z-index: 1;
}

.city-cmb-input {
  width: 100%;
  padding: .25rem .5rem .25rem 1.9rem;
  font-size: .875rem;
  font-family: var(--font);
  color: var(--tx1);
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r, 6px);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}

.city-cmb-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

.city-cmb-clear {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  color: var(--tx3);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  font-size: .85rem;
  display: flex;
  align-items: center;
}
.city-cmb-clear:hover { color: var(--tx1); }

.city-cmb-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r, 6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  overscroll-behavior: contain;
}

.city-cmb-option {
  padding: 7px 12px;
  font-size: .84rem;
  color: var(--tx1);
  cursor: pointer;
  transition: background .1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-cmb-option:hover,
.city-cmb-option.hl {
  background: var(--accent-bg);
  color: var(--accent-d);
}

.city-cmb-more {
  padding: 6px 12px;
  font-size: .73rem;
  color: var(--tx3);
  border-top: 1px solid var(--bdr-light);
  font-style: italic;
}

/* ───────────────────────────────────────────────────
   RADIUS PILLS
   ─────────────────────────────────────────────────── */
.radius-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.radius-pill {
  background: none;
  border: 1px solid var(--bdr);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: .68rem;
  font-weight: 500;
  color: var(--tx2);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  font-family: var(--font);
  line-height: 1.7;
}

.radius-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.radius-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.radius-badge {
  display: block;
  margin-top: 5px;
  font-size: .64rem;
  color: var(--accent);
  font-weight: 500;
}

/* ===================================================
   BARRA DE RESULTADOS
   =================================================== */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bdr);
}

.results-count { font-size: .8rem; color: var(--tx2); }
.results-count strong { color: var(--tx1); font-weight: 700; }

/* ===================================================
   CABEÇALHO DE SEÇÃO
   =================================================== */
.section-header {
  padding: 20px 20px 0;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.2px;
  margin-bottom: 3px;
}
.section-header p {
  font-size: .8rem;
  color: var(--tx2);
  margin: 0;
  line-height: 1.5;
}

/* ===================================================
   BREADCRUMB
   =================================================== */
.breadcrumb-bar {
  background: var(--card);
  border-bottom: 1px solid var(--bdr);
  padding: 9px 0;
}
.breadcrumb-bar a { color: var(--tx2); transition: color .15s; }
.breadcrumb-bar a:hover { color: var(--tx1); }

/* ===================================================
   PÁGINA DE DETALHE
   =================================================== */
.detail-route {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--muted);
  border: 1px solid var(--bdr);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.detail-state-block { flex: 1; min-width: 0; }

.detail-state-badge {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent-d);
  border: 1px solid rgba(14,165,233,.2);
  font-size: .95rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 7px;
  letter-spacing: .4px;
  margin-bottom: 3px;
}

.detail-state-city {
  display: block;
  font-size: .78rem;
  color: var(--tx2);
  margin-top: 2px;
}

.detail-arrow { font-size: 1.2rem; color: var(--tx3); flex-shrink: 0; }
.detail-product { font-size: .95rem; font-weight: 700; color: var(--tx1); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.info-cell-label {
  display: block;
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--tx3);
  margin-bottom: 2px;
}

.info-cell-value {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--tx1);
}

.code-chip {
  background: var(--muted);
  color: var(--tx2);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--bdr);
}

/* ===================================================
   ROTAS POPULARES
   =================================================== */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  padding: 0 20px 20px;
}

.route-card {
  background: var(--muted);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.route-card:hover { border-color: var(--gray-300); box-shadow: var(--sh1); color: inherit; }

.route-badge-popular {
  position: absolute;
  top: -1px;
  right: 12px;
  background: var(--accent-bg);
  color: var(--accent-d);
  border: 1px solid rgba(14,165,233,.18);
  border-top: none;
  font-size: .58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 0 0 6px 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* ===================================================
   COMO FUNCIONA
   =================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 0 20px 20px;
}

.step-card {
  background: var(--muted);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 18px;
  transition: border-color .15s;
}
.step-card:hover { border-color: var(--gray-300); }

.step-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.step-number {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--bdr);
  letter-spacing: -1px;
  line-height: 1;
}

.step-icon-wrap {
  width: 32px;
  height: 32px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
}

/* ===================================================
   BENEFÍCIOS
   =================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  padding: 0 20px 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--muted);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 14px;
}

.benefit-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}

/* ===================================================
   TIPOS DE CARGA
   =================================================== */
.cargo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  padding: 0 20px 20px;
}

.cargo-item {
  background: var(--muted);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 12px 8px;
  text-align: center;
  font-size: .76rem;
  font-weight: 500;
  color: var(--tx2);
  transition: border-color .15s;
}
.cargo-item:hover { border-color: var(--gray-300); color: var(--tx1); }
.cargo-item-icon { font-size: 1.35rem; margin-bottom: 5px; }

/* ===================================================
   FAQ
   =================================================== */
.faq-list { padding: 0 20px 8px; }

.faq-item { border-bottom: 1px solid var(--bdr-light); }

.faq-question {
  background: none;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: var(--tx1);
  text-align: left;
  font-family: var(--font);
  gap: 10px;
  transition: color .15s;
}
.faq-question:hover { color: var(--tx2); }

.faq-chevron { font-size: .75rem; color: var(--tx3); transition: transform .2s; flex-shrink: 0; }
.faq-chevron.open { transform: rotate(180deg); color: var(--accent); }

.faq-answer { font-size: .84rem; color: var(--tx2); padding-bottom: 13px; line-height: 1.65; }

/* ===================================================
   SEÇÃO CTA — clara e suave
   =================================================== */
.cta-section {
  background: var(--hero-bg);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  padding: 44px 32px;
  text-align: center;
  margin-bottom: 40px;
}
.cta-section h2 {
  color: var(--tx1);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}
.cta-section p { color: var(--tx2); font-size: .88rem; margin-bottom: 20px; }

/* ===================================================
   CONTEÚDO SEO
   =================================================== */
.seo-content {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 24px;
  font-size: .84rem;
  color: var(--tx2);
  line-height: 1.75;
  margin-bottom: 40px;
}
.seo-content h2 { font-size: 1rem; color: var(--tx1); margin: 0 0 10px; }
.seo-content h3 { font-size: .88rem; color: var(--tx1); margin: 18px 0 7px; }
.seo-content p { margin-bottom: 10px; }

/* ===================================================
   FORMULÁRIOS
   =================================================== */
.form-control, .form-select {
  border-color: var(--bdr);
  border-radius: 7px;
  font-size: .86rem;
  color: var(--tx1);
  font-family: var(--font);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,.1);
  outline: none;
}
.form-label { font-size: .78rem; font-weight: 600; color: var(--tx1); margin-bottom: 4px; }

.pill-group { display: flex; flex-wrap: wrap; gap: 6px; }

.pill-opt {
  background: var(--muted);
  border: 1.5px solid var(--bdr);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: .76rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--tx2);
  transition: all .15s;
}
.pill-opt:hover { border-color: var(--accent); color: var(--accent-d); }
.pill-opt.checked { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-d); font-weight: 600; }

.alert-ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r);
  color: #166534;
  padding: .9rem 1.1rem;
}

/* ===================================================
   ESTADOS
   =================================================== */
.loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 2rem;
  flex-direction: column;
  gap: 10px;
  color: var(--tx3);
}
.loading-state .spinner-border {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 2px;
  border-color: var(--accent);
  border-right-color: transparent;
}

.empty-state { text-align: center; padding: 4rem 2rem; color: var(--tx3); }
.empty-icon { font-size: 2.25rem; display: block; margin-bottom: 10px; }

/* ===================================================
   PAGINAÇÃO
   =================================================== */
.pagination .page-link {
  color: var(--tx1);
  border-color: var(--bdr);
  font-size: .82rem;
  font-weight: 500;
  border-radius: 7px !important;
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
}

/* ===================================================
   VALIDAÇÃO / ERRO
   =================================================== */
.field-validation-error { color: var(--err); font-size: .76rem; }
.input-validation-error { border-color: var(--err) !important; }

#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tx1);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: .84rem;
  z-index: 1000;
  box-shadow: var(--sh3);
}

/* ===================================================
   RESPONSIVO
   =================================================== */
@media (max-width: 991px) {
  .filter-panel { position: static; }
}

@media (max-width: 767px) {
  .hero-section { padding: 36px 0 30px; }
  .hero h1 { font-size: 1.8rem; letter-spacing: -.7px; }
  .hero-stats { gap: 20px; }
  .hero-stat-value { font-size: 1.3rem; }
  .page-title-bar { padding: 18px 0; }
  .page-title-bar h1 { font-size: 1.2rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .routes-grid { grid-template-columns: 1fr }
  .cta-section { padding: 32px 20px; }
  .cta-section h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-section { padding: 28px 0 24px; }
  .hero h1 { font-size: 1.6rem; letter-spacing: -.5px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px; }
  .steps-grid,
  .benefits-grid { grid-template-columns: 1fr; }
  .routes-grid { grid-template-columns: 1fr; }
  .cargo-grid { grid-template-columns: repeat(3, 1fr); }
  .section-header { padding: 14px 14px 0; }
  .routes-grid,
  .steps-grid,
  .benefits-grid,
  .cargo-grid { padding-left: 14px; padding-right: 14px; }
  .cta-section { padding: 24px 16px; border-radius: 10px; }
}

/* ===================================================
   ARTIGOS — lista e detalhe
   =================================================== */

/* ── Page header ── */
.page-header-artigos {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  padding: 48px 0 40px;
  margin-bottom: 0;
}
.page-header-artigos h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 8px 0 10px;
  letter-spacing: -.4px;
  color: #fff;
}
.page-header-artigos p {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin: 0;
  line-height: 1.6;
}
.artigos-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .4px;
  color: #fff;
  margin-bottom: 6px;
}

/* ── Category tabs ── */
.artigos-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
}
.artigo-tab {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--tx2);
  cursor: pointer;
  transition: all .15s;
}
.artigo-tab:hover { border-color: var(--accent); color: var(--accent); }
.artigo-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ── Grid de artigos ── */
.artigos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.artigo-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s, transform .15s;
}
.artigo-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.artigo-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.artigo-category-badge {
  background: rgba(14,165,233,.1);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 9px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.artigo-read-time {
  font-size: .75rem;
  color: var(--tx3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.artigo-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx1);
  margin: 0;
  line-height: 1.4;
}
.artigo-card-excerpt {
  font-size: .83rem;
  color: var(--tx2);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}
.artigo-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--bdr-light);
  margin-top: auto;
}
.artigo-card-date { font-size: .73rem; color: var(--tx3); }
.artigo-card-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Detalhe do artigo ── */
.artigo-breadcrumb {
  background: var(--card);
  border-bottom: 1px solid var(--bdr);
  padding: 10px 0;
}
.artigo-breadcrumb a {
  font-size: .82rem;
  color: var(--tx2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.artigo-breadcrumb a:hover { color: var(--accent); }
.artigo-breadcrumb-sep { color: var(--tx3); margin: 0 6px; }
.artigo-breadcrumb span:last-child { font-size: .82rem; color: var(--tx3); }

.artigo-container { padding-top: 36px; padding-bottom: 60px; }

.artigo-header { margin-bottom: 32px; }
.artigo-header-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.artigo-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--tx1);
  line-height: 1.25;
  letter-spacing: -.3px;
  margin: 0 0 12px;
}
.artigo-excerpt {
  font-size: 1rem;
  color: var(--tx2);
  line-height: 1.65;
  margin: 0 0 10px;
}
.artigo-date { font-size: .78rem; color: var(--tx3); }

/* ── Article body ── */
.artigo-content { color: var(--tx1); line-height: 1.75; font-size: .96rem; }
.artigo-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--tx1);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bdr);
}
.artigo-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tx1);
  margin: 24px 0 10px;
}
.artigo-content p {
  color: var(--tx2);
  margin-bottom: 16px;
}
.artigo-content ul, .artigo-content ol {
  padding-left: 1.4rem;
  margin-bottom: 16px;
  color: var(--tx2);
}
.artigo-content li { margin-bottom: 6px; }
.artigo-content strong { color: var(--tx1); font-weight: 600; }
.artigo-content em { font-style: italic; }

/* ── CTA box inside article ── */
.artigo-cta-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--hero-bg);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.artigo-cta-icon {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.artigo-cta-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.artigo-cta-text strong { font-size: .95rem; color: var(--tx1); }
.artigo-cta-text span { font-size: .82rem; color: var(--tx2); }

/* ── Related articles ── */
.artigo-related { border-top: 1px solid var(--bdr); padding-top: 32px; margin-top: 16px; }
.artigo-related-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--tx1);
}
.artigos-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.artigo-related-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.artigo-related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.artigo-related-card h3 {
  font-size: .87rem;
  font-weight: 600;
  color: var(--tx1);
  margin: 0;
  line-height: 1.4;
}
.artigo-related-card:hover h3 { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-header-artigos { padding: 32px 0 28px; }
  .page-header-artigos h1 { font-size: 1.4rem; }
  .artigos-grid { grid-template-columns: 1fr; }
  .artigo-title { font-size: 1.4rem; }
  .artigo-cta-box { flex-direction: column; text-align: center; }
  .artigos-related-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   AUTH — Login / Cadastro
   =================================================== */
.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--page);
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.auth-logo {
  text-align: center;
  margin-bottom: 20px;
}

.auth-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tx1);
  margin-bottom: 20px;
  text-align: center;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: var(--err);
  font-size: .84rem;
  padding: 10px 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Botão Google */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--bdr);
  border-radius: 8px;
  background: var(--card);
  color: var(--tx1);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  cursor: pointer;
}
.btn-google:hover {
  background: var(--muted);
  border-color: var(--tx3);
  color: var(--tx1);
  text-decoration: none;
}
.google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Divisor "ou" */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--tx3);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bdr);
}

/* Campos */
.auth-card .form-group {
  margin-bottom: 14px;
}
.auth-card .form-label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--tx2);
  margin-bottom: 5px;
  display: block;
}
.auth-card .form-control {
  width: 100%;
  padding: 9px 12px;
  font-size: .9rem;
  border: 1.5px solid var(--bdr);
  border-radius: 8px;
  background: var(--card);
  color: var(--tx1);
  outline: none;
  transition: border-color .15s;
}
.auth-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

/* Botão principal */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  background: var(--accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  margin-top: 4px;
}
.btn-auth:hover:not(:disabled) { background: var(--accent-d); }
.btn-auth:disabled { opacity: .65; cursor: not-allowed; }

/* Link de rodapé */
.auth-footer-link {
  text-align: center;
  font-size: .84rem;
  color: var(--tx2);
  margin-top: 18px;
  margin-bottom: 0;
}
.auth-footer-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer-link a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
}

/* Tipo de usuário — toggle card */
.user-type-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.user-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 1.5px solid var(--bdr);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--tx2);
  text-align: center;
  line-height: 1.3;
  font-family: var(--font);
  transition: border-color .15s, background .15s, color .15s;
  width: 100%;
}
.user-type-btn i { font-size: 1.45rem; }
.user-type-btn.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}
.user-type-btn:hover:not(.selected) {
  border-color: var(--tx3);
  background: var(--muted);
}

/* ===================================================
   PROFILE BANNER — aviso de perfil incompleto
   =================================================== */
.profile-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fcd34d;
}
.profile-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.profile-banner-text {
  font-size: .84rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 7px;
}
.profile-banner-text i {
  font-size: 1rem;
  color: #d97706;
  flex-shrink: 0;
}
.profile-banner-btn {
  font-size: .8rem;
  font-weight: 600;
  color: #92400e;
  background: #fde68a;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 5px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.profile-banner-btn:hover { background: #fcd34d; color: #78350f; }

/* Label de campo opcional */
.field-optional {
  font-size: .72rem;
  font-weight: 400;
  color: var(--tx3);
  margin-left: 4px;
}

/* ===================================================
   AUTH FIELD GROUP — input customizado com addon
   (usado em senha e CPF/CNPJ; ignora Bootstrap input-group)
   =================================================== */
.auth-field-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--bdr);
  border-radius: 8px;
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.auth-field-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.auth-field-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 9px 12px;
  font-size: .9rem;
  color: var(--tx1);
  font-family: var(--font);
  border-radius: 8px;
}
.auth-field-input::placeholder { color: var(--tx3); }

/* Addon genérico (ícone de validação ou botão) */
.auth-field-addon {
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-left: 1.5px solid var(--bdr);
  background: transparent;
  color: var(--tx3);
  font-size: .86rem;
  flex-shrink: 0;
  animation: field-pop .18s ease;
}

/* Botão toggle de senha */
.auth-pwd-btn {
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: none;
  border-left: 1.5px solid var(--bdr);
  background: transparent;
  color: var(--tx3);
  font-size: .95rem;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  flex-shrink: 0;
  transition: color .15s;
}
.auth-pwd-btn:hover { color: var(--accent); }

/* Estados de validação do CPF/CNPJ */
.auth-field-group.field-ok  { border-color: var(--c-success); }
.auth-field-group.field-err { border-color: var(--c-danger);  }
.auth-field-group.field-ok:focus-within  { box-shadow: 0 0 0 3px rgba(22,163,74,.13); }
.auth-field-group.field-err:focus-within { box-shadow: 0 0 0 3px rgba(220,38,38,.13); }
.auth-field-addon.ok { color: var(--c-success); }
.auth-field-addon.err{ color: var(--c-danger);  }

/* CPF/CNPJ: espaçamento entre dígitos */
.taxid-input {
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}

@keyframes field-pop {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===================================================
   WIZARD — Formulário de novo frete em 3 passos
   =================================================== */

/* Indicador de passos */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 640px;
  margin: 1.5rem auto 1.25rem;
  gap: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}

.wizard-step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  border: 2px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text-3);
  transition: border-color .2s, background .2s, color .2s;
}

.wizard-step.active .wizard-step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.wizard-step.done .wizard-step-circle {
  border-color: var(--c-success);
  background: var(--c-success);
  color: #fff;
}

.wizard-step-label {
  font-size: .72rem;
  color: var(--c-text-3);
  white-space: nowrap;
  transition: color .2s, font-weight .2s;
}

.wizard-step.active .wizard-step-label { color: var(--accent); font-weight: 600; }
.wizard-step.done  .wizard-step-label  { color: var(--c-success); }

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--c-border);
  margin: 0 .5rem;
  margin-bottom: 1.35rem;
  transition: background .2s;
}
.wizard-step-line.done { background: var(--c-success); }

/* Card principal do wizard */
.wizard-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.5rem;
}

/* Barra de navegação (Voltar / Próximo) */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-border);
}

.wizard-back-btn {
  background: none;
  border: 1.5px solid var(--c-border);
  color: var(--c-text-2);
  border-radius: var(--r);
  padding: .5rem 1rem;
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.wizard-back-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Mensagem de erro do wizard */
.wizard-error {
  max-width: 640px;
  margin: .5rem auto .25rem;
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--r);
  color: var(--c-danger);
  padding: .75rem 1rem;
  font-size: .84rem;
}

/* Chips de sugestão de produto */
.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .5rem;
}

.product-chip {
  background: none;
  border: 1.5px solid var(--c-border);
  border-radius: 99px;
  padding: .2rem .7rem;
  font-size: .76rem;
  color: var(--c-text-2);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.product-chip:hover   { border-color: var(--accent); color: var(--accent); }
.product-chip.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font-weight: 600; }

/* Badge "opcional" nos títulos de seção */
.optional-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-text-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 99px;
  padding: .1rem .45rem;
  margin-left: .4rem;
  vertical-align: text-bottom;
}

/* Asterisco obrigatório */
.req { color: var(--c-danger); }

/* ── Minha Conta ── */
.account-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--c-border);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.account-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: .55rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--tx3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .15s;
    white-space: nowrap;
}

.account-tab.active {
    color: var(--accent-d);
    border-bottom-color: var(--accent-d);
}

.account-tab:hover:not(.active) {
    color: var(--c-text-1);
}

.account-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.badge-user-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: var(--accent-d);
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: .75rem;
    color: var(--tx3);
}

.my-freights-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.my-freight-row {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: .875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.mfr-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.mfr-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 99px;
}

.mfr-status-active    { background: #d1fae5; color: #065f46; }
.mfr-status-pending   { background: #fef3c7; color: #92400e; }
.mfr-status-cancelled { background: #f3f4f6; color: #6b7280; }

.btn-mfr-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 500;
    padding: .2rem .65rem;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--brand-500);
    color: var(--brand-600);
    background: var(--brand-50);
    text-decoration: none;
    transition: background .15s;
}
.btn-mfr-edit:hover { background: var(--brand-100); color: var(--brand-700); }

.btn-mfr-cancel {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 500;
    padding: .2rem .65rem;
    border-radius: var(--r-sm);
    border: 1.5px solid #fca5a5;
    color: #dc2626;
    background: #fef2f2;
    cursor: pointer;
    transition: background .15s;
}
.btn-mfr-cancel:hover { background: #fee2e2; }

.btn-danger-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    font-weight: 500;
    padding: .2rem .7rem;
    border-radius: var(--r-sm);
    border: none;
    color: #fff;
    background: #dc2626;
    cursor: pointer;
    transition: background .15s;
}
.btn-danger-sm:hover { background: #b91c1c; }
.btn-danger-sm:disabled { opacity: .6; cursor: not-allowed; }

.mfr-code {
    font-size: .75rem;
    color: var(--tx3);
    font-family: monospace;
}

.mfr-route { font-size: .9rem; }

.mfr-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .8rem;
    color: var(--tx3);
    flex-wrap: wrap;
}

.security-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--c-border);
    font-size: .875rem;
}

.security-label {
    min-width: 200px;
    font-weight: 500;
    color: var(--c-text-2);
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--c-bg);
    color: var(--c-text-1);
    font-size: .8rem;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 99px;
    border: 1px solid var(--c-border);
}

.cnh-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: .5rem .85rem;
    border: 1.5px solid var(--c-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: .8rem;
    color: var(--c-text-2);
    transition: border-color .15s, background .15s;
    min-width: 80px;
    text-align: center;
}

.cnh-option strong {
    font-size: 1.1rem;
    color: var(--c-text-1);
}

.cnh-option.selected {
    border-color: var(--accent-d);
    background: #e0f2fe;
    color: var(--accent-d);
}

.cnh-option.selected strong {
    color: var(--accent-d);
}

/* ─── WhatsApp Banner ───────────────────────────── */
.wap-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #d1fae5;
    border-left: 4px solid #25d366;
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin: 28px 0;
    box-shadow: var(--sh1);
}

.wap-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
}

.wap-banner-content {
    flex: 1;
    min-width: 0;
}

.wap-banner-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--tx1);
    margin: 0 0 3px;
}

.wap-banner-desc {
    font-size: .83rem;
    color: var(--tx2);
    margin: 0;
    line-height: 1.45;
}

.wap-banner-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #25d366;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--r);
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s;
}

.wap-banner-btn:hover {
    background: #1ebe5a;
    color: #fff;
}

@media (max-width: 600px) {
    .wap-banner {
        flex-wrap: wrap;
    }
    .wap-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ─── Fretes em Destaque ────────────────────────── */
.badge-destaque {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.badge-destaque .bi-star-fill {
    font-size: .55rem;
    color: #f59e0b;
}

.featured-section {
    border: 1.5px solid #fcd34d;
    border-radius: var(--r-lg);
    background: #fffbeb;
    padding: 1rem 1.25rem 1.25rem;
}

.featured-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .75rem;
}

/* ─── Modal de Solicitar Destaque ───────────────── */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-box {
    background: #fff;
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 440px;
    padding: 1.25rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--tx3);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 4px;
    line-height: 1;
    border-radius: 4px;
    transition: background .12s;
}
.modal-close-btn:hover { background: var(--gray-100); }

.highlight-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-bottom: .75rem;
}

.highlight-plan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: .7rem .5rem;
    border: 2px solid var(--c-border);
    border-radius: var(--r-md);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.highlight-plan-card:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.highlight-plan-card.selected {
    border-color: #f59e0b;
    background: #fef3c7;
}

.plan-days {
    font-size: .8rem;
    font-weight: 700;
    color: var(--tx1);
}

.plan-price {
    font-size: .82rem;
    color: var(--brand-600);
    font-weight: 600;
}

.highlight-quote-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    border-radius: var(--r-sm);
    padding: .5rem .75rem;
    font-size: .8rem;
    color: var(--tx2);
}

/* ─── Suporte — Label de campo no modal ───────── */
.support-field-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--tx3);
    margin-bottom: .35rem;
}

/* ─── Suporte — Botão inline em destaque ───────── */
.btn-support-inline {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: none;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    border-radius: var(--r);
    padding: .45rem 1rem;
    font-size: .84rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s;
    font-family: var(--font);
}
.btn-support-inline:hover {
    background: var(--accent-bg);
}
