/* === MODAL COM BLUR SUAVE === */
.support-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.support-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* BACKDROP COM BLUR FIXO E OPACIDADE ANIMADA */
.support-modal-backdrop {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  /* BLUR FIXO - NÃO ANIMA */
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  /* APENAS A COR DE FUNDO E OPACIDADE ANIMAM */
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: background-color 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.support-modal.active .support-modal-backdrop {
  background: rgba(0, 0, 0, 0.6) !important;
  opacity: 1 !important;
}

/* ALTERNATIVA: CAMADA DUPLA PARA BLUR MAIS SUAVE */
.support-modal-backdrop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.support-modal.active .support-modal-backdrop::before {
  opacity: 0.7;
}

.support-modal-content {
  position: relative !important;
  margin: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 24px !important;
  width: 100% !important;
  max-width: 420px !important;
  max-height: 90vh !important;
  overflow: hidden !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
  
  /* ANIMAÇÃO SUAVE DO MODAL */
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.support-modal.active .support-modal-content {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}

/* === PERSONAGEM FIXO === */
.support-character-container {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  z-index: 9999 !important;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.support-character-container:hover {
  transform: translateY(-8px);
}

.support-character-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  animation: float 4s ease-in-out infinite;
}

.support-character-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.support-character-pulse {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s ease-out infinite;
}

.support-character-bubble {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 15px;
  background: rgba(39, 38, 38, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px 20px 5px 20px;
  padding: 12px 16px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.support-character-container:hover .support-character-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.support-bubble-text {
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981, #06d6a0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === RESTO DO CSS DO MODAL === */
.support-modal-header {
  display: flex;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.support-modal-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(16, 185, 129, 0.5);
  margin-right: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.support-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.support-modal-title {
  flex: 1;
}

.support-modal-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #06d6a0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.support-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.support-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.support-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  transform: rotate(90deg);
}

.support-modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.support-greeting {
  text-align: center;
  margin-bottom: 24px;
}

.support-greeting p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.support-greeting p:first-child {
  font-size: 18px;
  font-weight: 600;
}

.support-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.support-feature:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateX(4px);
}

.feature-icon2 {
  font-size: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 214, 160, 0.2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.feature-text span {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 14px;
}

.feature-text small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.support-modal-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-button-premium {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-button-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  flex-shrink: 0;
}

.button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.whatsapp-button-premium:hover .button-shine {
  left: 100%;
}

/* === ANIMAÇÕES === */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
  .support-character-container {
    bottom: 20px !important;
    right: 20px !important;
  }
  
  .support-character-avatar {
    width: 60px;
    height: 60px;
  }
  
  .support-modal {
    padding: 15px !important;
  }
  
  .support-modal-content {
    max-width: 100% !important;
  }
  
  .support-modal-header,
  .support-modal-body,
  .support-modal-footer {
    padding: 20px;
  }
}

/* === GARANTIR QUE NADA INTERFIRA === */
.support-modal,
.support-modal * {
  box-sizing: border-box !important;
}

body.modal-open {
  overflow: hidden !important;
}
