:root {
  --primary-color: #4f46e5;
  --accent-color: #06b6d4;
  --text-muted: #64748b;
  --border-radius: 16px;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.analises-creditos-home {
  padding: 3rem 0;
}

.hero-section {
  padding: 2rem 0;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.bg-primary-soft {
  background-color: rgba(79, 70, 229, 0.1) !important;
}

.text-gradient {
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Busca */
.search-container .input-group {
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid #007bff;
  background-color: white;
}

.search-container .input-group:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.search-container .form-control {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.search-container .form-control:focus {
  border-color: #007bff;
  box-shadow: none;
  outline: none;
}

.search-container .input-group-text {
  border: none;
  background-color: transparent;
  padding: 1rem 1.5rem;
}

/* Cards */
.service-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.service-card-modern {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.2);
}

.card-header-modern {
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-icon-wrapper {
  position: relative;
  z-index: 2;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-card-modern:hover .service-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.card-pattern {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.service-card-modern:hover .card-pattern {
  transform: scale(1.5);
}

.service-card-modern .btn-modern {
  margin-top: auto;
  align-self: stretch;
}

.service-card-modern .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Botão */
.btn-modern {
  border: none;
  border-radius: 50px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-primary-modern i {
  transition: transform 0.3s ease;
}

.btn-primary-modern:hover i {
  transform: translateX(4px);
}

.btn-modern .btn-icon {
  transition: transform 0.3s ease;
}

.btn-modern:hover .btn-icon {
  transform: translateX(5px);
}

.empty-state {
  padding: 4rem 2rem;
}

.empty-icon {
  opacity: 0.6;
}

/* Animações e Responsividade */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-section h2 {
    font-size: 2rem;
  }

  .search-container .form-control {
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
  }

  .card-header-modern {
    height: 100px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon i {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .analises-creditos-home {
    padding: 1rem 0;
  }

  .card-body {
    padding: 1.5rem 1rem;
  }
}

.btn-share-service {
  border: 1px solid #d0d7f3;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}