/* Intelligent Modal Styles */
.intelligent-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.intelligent-modal-backdrop.show {
  opacity: 1;
}

.intelligent-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  max-width: 520px;
  width: 90%;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(193, 39, 45, 0.1);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.03);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.intelligent-modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-content {
  padding: 32px;
  color: #1a1a1a;
  text-align: left;
  position: relative;
}

.modal-headline {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #1a1a1a;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.modal-message {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  color: #4a5568;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #C1272D 0%, #dc2626 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.modal-meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-cta {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-cta.primary {
  background: linear-gradient(135deg, #C1272D 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(193, 39, 45, 0.2);
  font-weight: 600;
}

.modal-cta.primary:hover {
  background: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.modal-cta.secondary {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

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

/* Mobile Responsive */
@media (max-width: 600px) {
  .intelligent-modal {
    width: 95%;
    max-width: none;
  }
  
  .modal-content {
    padding: 30px 20px;
  }
  
  .modal-headline {
    font-size: 20px;
  }
  
  .modal-message {
    font-size: 14px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-cta {
    width: 100%;
  }
}

/* Smooth entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
}