@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-bg-solid: #ffffff;
  --card-border: rgba(226, 232, 240, 0.9);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --accent-blue: #0284c7;
  --accent-sky: #0ea5e9;
  --accent-indigo: #2563eb;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
}

* {
  box-sizing: border-box;
  font-family: var(--font-family);
  text-shadow: none !important;
}

body {
  background: #f8fafc;
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Animated Gradient Blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.blob-1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(37, 99, 235, 0.16) 100%);
  animation: float-slow 18s ease-in-out infinite alternate;
}

.blob-2 {
  bottom: 10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(2, 132, 199, 0.14) 100%);
  animation: float-slow 22s ease-in-out infinite alternate-reverse;
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, 40px) scale(1.05);
  }

  100% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Light Glassmorphism Cards */
.light-glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-glass-card:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 16px 32px -4px rgba(14, 165, 233, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  transform: translateY(-3px);
}

.light-glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.light-glass-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  transition: all 0.2s ease;
}

.light-glass-input:focus {
  border-color: var(--accent-sky);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.light-glass-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  transition: all 0.2s ease;
}

.light-glass-select:focus {
  border-color: var(--accent-sky);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Solid Brand Blue Text */
.gradient-text-purple,
.gradient-text-blue {
  color: #2589F5 !important;
  -webkit-text-fill-color: #2589F5 !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  display: inline-block;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #06b6d4 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  display: inline-block;
}

/* Hero Badge Glow */
.hero-glow-badge {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: #0284c7;
}

/* Age counter input controls */
.age-counter-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.age-counter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.age-counter-btn:active {
  transform: scale(0.95);
}

/* Contract Filter Buttons (CPF, MEI, CNPJ) - No Black Focus Outline */
.filter-btn {
  outline: none !important;
  outline-color: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none;
}

.filter-btn:focus,
.filter-btn:focus-visible,
.filter-btn:active {
  outline: none !important;
  outline-color: transparent !important;
  border-color: transparent !important;
}

.filter-btn:not(.bg-\[\#2589F5\]) {
  border-color: #e2e8f0 !important;
}

/* Hide number input arrows for clean centered number input */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Custom Checkbox Component (Estilo Sleek com 5px de raio de borda) */
.custom-checkbox {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 5px !important;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex-shrink: 0;
}

.custom-checkbox:hover {
  border-color: #6366f1;
  background-color: #f8fafc;
}

.custom-checkbox:checked {
  background-color: #6366f1;
  border-color: #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.custom-checkbox::after {
  content: "✓";
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  display: none;
  line-height: 1;
}

.custom-checkbox:checked::after {
  display: block;
}

/* Animations */
@keyframes scaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-scale-up {
  animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ----------------------------------------------------------------------------
   PONTO CRIVELLO: SISTEMA DE PONTUAÇÃO & AVALIAÇÃO DA MARCA
   ---------------------------------------------------------------------------- */
.crivello-dot {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  background: linear-gradient(135deg, #2fcfff 0%, #2563eb 50%, #0066ff 100%);
  box-shadow: 0 1.5px 4px rgba(37, 99, 235, 0.35);
  position: relative;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease;
  line-height: 0;
  box-sizing: border-box;
}

.crivello-dot::after {
  content: '' !important;
  display: block !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  background-color: #ffffff;
  box-sizing: border-box;
  flex-shrink: 0 !important;
}

/* Variações de Tamanho do Ponto Crivello (Dimensões pares com centro exato) */
.crivello-dot-xs { width: 12px !important; height: 12px !important; min-width: 12px !important; min-height: 12px !important; max-width: 12px !important; max-height: 12px !important; }
.crivello-dot-xs::after { width: 4px !important; height: 4px !important; min-width: 4px !important; min-height: 4px !important; }

.crivello-dot-sm { width: 16px !important; height: 16px !important; min-width: 16px !important; min-height: 16px !important; max-width: 16px !important; max-height: 16px !important; }
.crivello-dot-sm::after { width: 5px !important; height: 5px !important; min-width: 5px !important; min-height: 5px !important; }

.crivello-dot-md { width: 20px !important; height: 20px !important; min-width: 20px !important; min-height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
.crivello-dot-md::after { width: 6px !important; height: 6px !important; min-width: 6px !important; min-height: 6px !important; }

.crivello-dot-lg { width: 24px !important; height: 24px !important; min-width: 24px !important; min-height: 24px !important; max-width: 24px !important; max-height: 24px !important; }
.crivello-dot-lg::after { width: 8px !important; height: 8px !important; min-width: 8px !important; min-height: 8px !important; }

.crivello-dot-xl { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; max-width: 36px !important; max-height: 36px !important; }
.crivello-dot-xl::after { width: 12px !important; height: 12px !important; min-width: 12px !important; min-height: 12px !important; }

/* Ponto Crivello Vazio (Desativado) */
.crivello-dot-empty {
  background: #e2e8f0 !important;
  box-shadow: none !important;
}
.crivello-dot-empty::after {
  background-color: #94a3b8 !important;
}

/* Badge de Avaliação Crivello no Card */
.crivello-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  padding: 4px 10px;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.crivello-score-badge:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.18);
  transform: translateY(-1px);
}

.crivello-score-badge:hover .crivello-dot {
  transform: scale(1.1);
}

/* Barra de Progresso da Pontuação */
.crivello-score-bar-bg {
  background-color: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  height: 6px;
  width: 100%;
}

.crivello-score-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Customização dos Botões e Acordeão da Rede Credenciada (Sem borda preta) */
#modalRedeCredenciadaBackdrop button,
.btn-toggle-grupo {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

#modalRedeCredenciadaBackdrop button:focus,
.btn-toggle-grupo:focus {
  outline: none !important;
}

#modalRedeCredenciadaBackdrop button:focus-visible,
.btn-toggle-grupo:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.4) !important;
}

.btn-toggle-grupo {
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-toggle-grupo:hover {
  background-color: #f0f9ff !important;
}

/* Scrollbar Elegante e 100% Contida no Modal */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Barra Flutuante de Comparação - Mobile Dock Glow */
@keyframes dock-pulse {
  0%, 100% {
    box-shadow: 0 12px 30px -6px rgba(14, 165, 233, 0.35), 0 8px 12px -6px rgba(15, 23, 42, 0.6);
  }
  50% {
    box-shadow: 0 16px 36px -4px rgba(37, 99, 235, 0.45), 0 8px 16px -6px rgba(14, 165, 233, 0.35);
  }
}

.floating-compare-dock {
  animation: dock-pulse 3.5s infinite ease-in-out;
}

/* ==========================================================================
   Airbnb-style Price Range Histogram Slider (Crivello Theme)
   ========================================================================== */
.price-histogram-wrap {
  position: relative;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 6px;
}

.price-histogram-bar {
  flex: 1;
  min-width: 3px;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  transition: background-color 0.15s ease, height 0.2s ease;
}

.price-histogram-bar.active {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}

.price-histogram-bar.inactive {
  background-color: #cbd5e1;
}

.price-histogram-bar.zero {
  background-color: #e2e8f0;
  height: 2px !important;
  opacity: 0.8;
}

.price-histogram-bar:hover {
  filter: brightness(1.15);
}

.airbnb-slider-wrap {
  position: relative;
  width: 100%;
  height: 32px;
  margin-top: -6px;
}

.airbnb-slider-track-bg {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background-color: #cbd5e1;
  border-radius: 9999px;
  z-index: 1;
}

.airbnb-slider-track-active {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #2563eb);
  border-radius: 9999px;
  z-index: 2;
}

.airbnb-dual-range {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 10;
}

.airbnb-dual-range::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.08);
  cursor: grab;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s, box-shadow 0.15s;
}

.airbnb-dual-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  border-color: #0284c7;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.28);
}

.airbnb-dual-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.22);
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.25);
}

.airbnb-dual-range::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: grab;
}

.airbnb-dual-range::-moz-range-track {
  background: transparent;
}

/* -------------------------------------------------------------------------- */
/* FILTRO DE OPERADORAS ESTILO WEBMOTORS                                      */
/* -------------------------------------------------------------------------- */
.webmotors-popover {
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.16), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top left;
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.webmotors-circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  width: 100%;
}

.webmotors-circle-btn:hover {
  background: rgba(241, 245, 249, 0.85);
  transform: translateY(-2px);
}

.webmotors-circle-btn:active {
  transform: scale(0.96);
}

.webmotors-circle-avatar {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .webmotors-circle-avatar {
    width: 72px;
    height: 72px;
    padding: 0;
  }
}

.webmotors-circle-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.webmotors-circle-btn:hover .webmotors-circle-avatar {
  border-color: #38bdf8;
  box-shadow: 0 8px 16px -4px rgba(14, 165, 233, 0.25);
  transform: scale(1.06);
}

/* Estado Ativo / Selecionado */
.webmotors-circle-btn.is-active .webmotors-circle-avatar {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.22), 0 8px 20px -4px rgba(2, 132, 199, 0.35);
  background: #f0f9ff;
  transform: scale(1.06);
}

.webmotors-circle-btn.is-active .webmotors-circle-label {
  color: #0284c7;
  font-weight: 800;
}

.webmotors-circle-check {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
  border: 2px solid #ffffff;
  animation: checkPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

@keyframes checkPop {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.webmotors-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.webmotors-circle-btn:hover .webmotors-circle-img {
  transform: scale(1.08);
}

.webmotors-circle-label {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  line-height: 1.25;
  transition: color 0.15s ease;
  max-width: 100%;
  word-break: break-word;
}

.webmotors-circle-count {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  line-height: 1;
  margin-top: -3px;
}

/* Custom Scrollbar for Popover */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}


