@import url('fonts.css');

:root {
  --bg-primary: #f0f4f8;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f7f9fc;
  --border-light: rgba(0, 0, 0, 0.06);
  --border-card: rgba(0, 0, 0, 0.08);
  --blue: #1a73a7;
  --blue-light: #e8f4fd;
  --blue-dark: #0d5a8a;
  --green: #2e9e6a;
  --green-light: #e6f7ef;
  --orange: #e88c30;
  --orange-light: #fff3e0;
  --teal: #1a9e96;
  --teal-light: #e0f7f5;
  --text-dark: #1a2b3c;
  --text-body: #4a5c6d;
  --text-muted: #8a9bab;
  --gradient-hero: linear-gradient(135deg, #1a73a7, #2e9e6a);
  --gradient-warm: linear-gradient(135deg, #e88c30, #f5a623);
  --gradient-cool: linear-gradient(135deg, #1a73a7, #1a9e96);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.navbar-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 992px) {
  .nav-extra-buttons {
    display: none !important;
  }

  .mobile-extra-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-light);
    width: 100%;
  }

  .mobile-extra-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .mobile-extra-buttons #visitorCounter {
    width: 100%;
    justify-content: center;
  }
}

.mobile-extra-buttons {
  display: none;
}

.navbar-logo span {
  font-size: 1.8rem;
}

.navbar-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-body);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.navbar-links a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.navbar-links a.active {
  color: #fff;
  background: var(--blue);
}

.nav-admin {
  opacity: 0.5;
  font-size: 0.8rem !important;
}

.nav-admin:hover {
  opacity: 1;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== MAIN ========== */
.main-content {
  margin-top: 72px;
  position: relative;
  min-height: calc(100vh - 72px);
}

.section {
  display: none;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 0.5s ease;
}

.section.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  text-align: left;
  padding: 0;
  margin: -2rem -2rem 2rem -2rem;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  min-height: 180px;
  /* Reduced aggressively so it doesn't take the whole screen */
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://i.imgur.com/LpFmM7G.jpeg') center/cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 115, 167, 0.75) 0%, rgba(26, 115, 167, 0.5) 35%, rgba(46, 158, 106, 0.2) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0.5rem 2.5rem;
  /* Reduced vertical padding significantly */
  max-width: 520px;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-size: 0.75rem;
  color: white;
  margin-bottom: 0.8rem;
  animation: fadeIn 0.8s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: white;
  animation: slideUp 0.8s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.8rem;
  line-height: 1.5;
  animation: slideUp 1s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 1.2s ease;
}

.hero-trust {
  display: flex;
  gap: 1rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  animation: fadeIn 1.5s ease;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 16px rgba(232, 140, 48, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 140, 48, 0.4);
  background: #d47e28;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 16px rgba(46, 158, 106, 0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  background: #268a5a;
}

.btn-blue {
  background: var(--blue);
  color: white;
}

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: white;
}

.btn-success {
  background: var(--green);
  color: white;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ========== SECTION TITLES ========== */
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== OPERADORAS ========== */
.operadoras-section {
  margin-top: 3rem;
}

.operadoras-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 1.5rem;
}

.operadora-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.operadora-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.op-logo {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.op-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.op-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========== FEATURES ========== */
.benefits-section {
  margin-top: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: var(--transition);
}

.feature-card:nth-child(1)::before {
  background: var(--blue);
}

.feature-card:nth-child(2)::before {
  background: var(--orange);
}

.feature-card:nth-child(3)::before {
  background: var(--green);
}

.feature-card:nth-child(4)::before {
  background: var(--teal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-icon.blue {
  background: var(--blue-light);
}

.feature-icon.purple {
  background: var(--orange-light);
}

.feature-icon.pink {
  background: var(--green-light);
}

.feature-icon.green {
  background: var(--teal-light);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-body);
  font-size: 0.88rem;
}

/* ========== STATS ========== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.social-proof {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
  margin-top: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.testimonial-card p {
  color: var(--text-body);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========== CTA ========== */
.cta-section {
  margin-top: 4rem;
}

.cta-card {
  background: var(--blue-dark);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  /* Reduzi bastante a altura para o vídeo "caber" no formato horizontal */
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  /* Foco na altura dos olhos/rosto */
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 115, 167, 0.4), rgba(46, 158, 106, 0.4));
  z-index: 1;
  pointer-events: none;
}

.cta-card h2,
.cta-card p,
.cta-card .hero-buttons {
  position: relative;
  z-index: 2;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ========== FORMS ========== */
.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Progress */
.progress-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
  padding: 0 10px;
}

.progress-line {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  height: 3px;
  background: #e2e8f0;
  transform: translateY(-50%);
  z-index: 0;
}

.progress-line-fill {
  height: 100%;
  background: var(--gradient-hero);
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  color: var(--text-muted);
}

.progress-step.active {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
  box-shadow: 0 0 16px rgba(26, 115, 167, 0.2);
}

.progress-step.completed {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
}

.progress-step .step-label {
  position: absolute;
  bottom: -22px;
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.progress-step.active .step-label {
  color: var(--blue);
}

.progress-step.completed .step-label {
  color: var(--green);
}

.form-step {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.form-step.active {
  display: block;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #e53e3e;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 167, 0.1);
  background: #fff;
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a9bab' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select.form-control option {
  background: white;
  color: var(--text-dark);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Option Cards */
.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.option-card {
  padding: 18px;
  background: var(--bg-soft);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.option-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.option-card.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 16px rgba(26, 115, 167, 0.12);
}

.option-card input {
  display: none;
}

.option-card .option-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.option-card .option-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.option-card .option-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Beneficiários */
.beneficiario-item {
  background: var(--bg-soft);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  animation: fadeInUp 0.3s ease;
}

.btn-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #e53e3e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-remove:hover {
  background: #fee2e2;
}

.btn-add-beneficiario {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px dashed var(--blue);
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  color: var(--blue);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-add-beneficiario:hover {
  background: #d5edfa;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

/* ========== CLIENTS / ADMIN ========== */
.clients-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.clients-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.search-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 10px 16px 10px 42px;
  background: var(--bg-card);
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  color: var(--text-dark);
  font-size: 0.85rem;
  width: 260px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--blue);
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
}

.filter-select {
  padding: 10px 36px 10px 14px;
  background: var(--bg-card);
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  color: var(--text-dark);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  font-family: 'Inter', sans-serif;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a9bab' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-select option {
  background: white;
}

.clients-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-card-info h4 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-dark);
}

.stat-card-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Table */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.client-table {
  width: 100%;
  border-collapse: collapse;
}

.client-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-soft);
}

.client-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

.client-table tr:hover td {
  background: var(--blue-light);
}

.client-table tr {
  cursor: pointer;
  transition: var(--transition);
}

.client-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
}

.client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-individual {
  background: var(--blue-light);
  color: var(--blue);
}

.badge-empresarial {
  background: var(--orange-light);
  color: var(--orange);
}

.badge-familiar {
  background: var(--green-light);
  color: var(--green);
}

.badge-novo {
  background: #e6f7ef;
  color: #2e9e6a;
}

.badge-negociando {
  background: #fff3e0;
  color: #e88c30;
}

.badge-fechado {
  background: var(--blue-light);
  color: var(--blue);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s ease;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: #fef2f2;
  color: #e53e3e;
}

.modal-body {
  padding: 2rem;
}

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.detail-item label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.detail-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 24px;
  border-radius: 30px;
  background: white;
  border: 1px solid var(--border-light);
  cursor: pointer;
  z-index: 1500;
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 12px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  color: #25D366;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* ========== CHATBOT ========== */
.chatbot-toggle {
  position: fixed;
  top: 15vh;
  right: 0;
  left: auto;
  border-radius: 30px 0 0 30px;
  background: var(--gradient-hero);
  border: none;
  cursor: pointer;
  z-index: 1500;
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 12px;
  box-shadow: -4px 4px 20px rgba(26, 115, 167, 0.35);
  transition: var(--transition);
  color: white;
}

.chatbot-toggle:hover {
  transform: translateX(-5px);
  animation: none;
}

.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 420px;
  height: calc(100vh - 120px);
  max-height: 650px;
  background: white;
  border: 1px solid var(--border-card);
  border-radius: 24px;
  z-index: 1600;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.4s ease;
}

.chatbot-container.active {
  display: flex;
}

/* ========== CHATBOT SUPORTE (ESQUERDA / AGORA DIREITA INFERIOR) ========== */
.chatbot-suporte-toggle {
  position: fixed;
  bottom: 24px;
  right: 0;
  left: auto;
  border-radius: 30px 0 0 30px;
  background: linear-gradient(135deg, var(--purple, #9333ea), #7e22ce);
  border: none;
  cursor: pointer;
  z-index: 1500;
  display: flex;
  align-items: center;
  padding: 6px 12px 6px 6px;
  box-shadow: -4px 4px 20px rgba(147, 51, 234, 0.35);
  transition: var(--transition);
  color: white;
}

.chatbot-suporte-toggle:hover {
  transform: translateX(-5px);
  animation: none;
}

.chatbot-suporte-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  left: auto;
  width: 380px;
  height: calc(100vh - 120px);
  max-height: 650px;
  background: white;
  border: 1px solid var(--border-card);
  border-radius: 24px;
  z-index: 1600;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.4s ease;
}

.chatbot-suporte-container.active {
  display: flex;
}


.chat-header {
  padding: 1rem 1.25rem;
  background: var(--gradient-hero);
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-header-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.chat-header-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-info span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.chat-close:hover {
  color: white;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-soft);
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease;
}

.message.bot {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--border-card);
  border-bottom-left-radius: 4px;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
}

.message.user {
  align-self: flex-end;
  background: var(--gradient-hero);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.typing {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--border-card);
  border-bottom-left-radius: 4px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-8px);
  }
}

.chat-input-area {
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  background: white;
}

.chat-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  color: var(--text-dark);
  font-size: 0.95rem;
  outline: none;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  transition: var(--transition);
}

.chat-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(26, 115, 167, 0.1);
}

.chat-send {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(26, 115, 167, 0.3);
}

.chat-send:active {
  transform: scale(0.95);
}

.chat-input:focus {
  border-color: var(--blue);
}



.chat-send:hover {
  transform: scale(1.05);
  background: #d47e28;
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== TOAST ========== */
.toast-container {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 24px;
  background: white;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.4s ease;
  min-width: 280px;
}

.toast.success {
  border-left: 4px solid var(--green);
}

.toast.error {
  border-left: 4px solid #e53e3e;
}

.toast.info {
  border-left: 4px solid var(--blue);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== LOADING ========== */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== FOOTER ========== */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 4rem;
  background: white;
}

/* ========== SIMULATOR RESULTS ========== */
.sim-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.sim-result-card {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sim-result-card.melhor {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(46, 158, 106, 0.15);
}

.sim-result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.melhor-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--green-light);
  color: var(--green);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}

.sim-result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.sim-op-emoji {
  font-size: 2rem;
}

.sim-result-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.sim-tipo-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-price {
  text-align: center;
  padding: 1rem 0;
  margin: 0.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.sim-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.sim-price-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  display: block;
}

.sim-price-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-detail {
  margin-top: 0.75rem;
}

.sim-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}

.sim-disclaimer {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--orange-light);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-body);
}

.sim-ben-item {
  animation: fadeInUp 0.3s ease;
  margin-bottom: 0.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .navbar-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a.active {
    background: var(--blue-light);
    color: var(--blue);
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .section {
    padding: 1rem;
  }

  .chatbot-container {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 96px;
    height: 70vh;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .beneficiario-item {
    grid-template-columns: 1fr 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .clients-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box input {
    width: 100%;
  }

  .operadoras-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sim-results-grid {
    grid-template-columns: 1fr;
  }

  .progress-step .step-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .option-cards {
    grid-template-columns: 1fr 1fr;
  }

  .operadoras-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}



.btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ========== SUCCESS PAGE ========== */
.sucesso-container {
  text-align: center;
  max-width: 600px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease;
}

.sucesso-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 1.5s ease infinite;
}

.sucesso-container h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.8rem;
}

.sucesso-container>p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.6;
}

.sucesso-info {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sucesso-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 500;
}

.sucesso-step span {
  font-size: 1.3rem;
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== NAV BADGE ========== */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 50px;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: top;
  animation: pulse 2s infinite;
}

/* ========== WHATSAPP CELL IN TABLE ========== */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #25D366;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.whatsapp-link:hover {
  color: #1ebe5d;
  transform: scale(1.05);
}