/* === 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.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              visibility 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.support-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* BACKDROP COM BLUR PREMIUM */
.support-modal-backdrop {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.4) 0%, 
    rgba(30, 41, 59, 0.6) 50%, 
    rgba(15, 23, 42, 0.8) 100%);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.support-modal.active .support-modal-backdrop {
  opacity: 1 !important;
}

/* EFEITO GLASSMORPHISM AVANÇADO */
.support-modal-backdrop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, 
    rgba(16, 185, 129, 0.1) 0%, 
    transparent 50%),
    radial-gradient(circle at 70% 80%, 
    rgba(59, 130, 246, 0.08) 0%, 
    transparent 50%);
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.support-modal.active .support-modal-backdrop::before {
  opacity: 1;
}

/* MODAL CONTENT COM DESIGN PREMIUM */
.support-modal-content {
  position: relative !important;
  margin: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(255, 255, 255, 0.08) 100%) !important;
  backdrop-filter: blur(30px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 28px !important;
  width: 100% !important;
  max-width: 440px !important;
  max-height: 90vh !important;
  overflow: hidden !important;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transform: scale(0.9) translateY(40px) rotateX(10deg);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.support-modal.active .support-modal-content {
  opacity: 1 !important;
  transform: scale(1) translateY(0) rotateX(0deg) !important;
}

/* === PERSONAGEM COM DESIGN MODERNO === */
.support-character-container {
  position: fixed !important;
  bottom: 30px !important;
  left: 30px !important;
  z-index: 9999 !important;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
}

.support-character-container:hover {
  transform: translateY(-12px) scale(1.05);
}

.support-character-avatar {
  position: relative;
  width: 130px;
  height: 130px;
  animation: float 6s ease-in-out infinite;
}

.support-character-avatar::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: linear-gradient(45deg, 
    rgba(16, 185, 129, 0.3), 
    rgba(59, 130, 246, 0.3), 
    rgba(168, 85, 247, 0.3));
  border-radius: 50%;
  animation: rotate-gradient 8s linear infinite;
  z-index: -1;
}

.support-character-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1), 
    rgba(255, 255, 255, 0.05));
}

.support-character-pulse {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.6);
  animation: pulse-ring 3s ease-out infinite;
}

/* BALÃO DE FALA PREMIUM */
.support-character-bubble {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 20px;
  background: linear-gradient(135deg, 
    rgba(30, 41, 59, 0.95), 
    rgba(15, 23, 42, 0.98));
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px 24px 8px 24px;
  padding: 16px 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(15px) scale(0.8) rotateX(-10deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.support-character-container:hover .support-character-bubble {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}

.support-bubble-text {
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* === HEADER DO MODAL === */
.support-modal-header {
  display: flex;
  align-items: center;
  padding: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15), 
    rgba(255, 255, 255, 0.08));
  position: relative;
}

.support-modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(16, 185, 129, 0.5), 
    transparent);
}

.support-modal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(16, 185, 129, 0.4);
  margin-right: 18px;
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.2), 
    rgba(6, 214, 160, 0.2));
  position: relative;
}

.support-modal-avatar::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    rgba(16, 185, 129, 0.6), 
    rgba(59, 130, 246, 0.6));
  border-radius: 50%;
  animation: rotate-gradient 4s linear infinite;
  z-index: -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: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #06d6a0, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.support-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(45deg, #10b981, #06d6a0);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* BOTÃO DE FECHAR MAIS PRO LADO */
.support-modal-close {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 12px;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
}

.support-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: rgba(255, 255, 255, 0.95);
  transform: rotate(90deg) scale(1.1);
}

/* === CORPO DO MODAL === */
.support-modal-body {
  padding: 28px;
  max-height: 60vh;
  overflow-y: auto;
}

.support-modal-body::-webkit-scrollbar {
  width: 6px;
}

.support-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.support-modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.6), rgba(59, 130, 246, 0.6));
  border-radius: 10px;
}

.support-greeting {
  text-align: center;
  margin-bottom: 28px;
}

.support-greeting p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.support-greeting p:first-child {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.support-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.support-feature {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08), 
    rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.support-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(16, 185, 129, 0.1), 
    transparent);
  transition: left 0.6s ease;
}

.support-feature:hover {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12), 
    rgba(255, 255, 255, 0.08));
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateX(6px) translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.support-feature:hover::before {
  left: 100%;
}

.feature-icon2 {
  font-size: 26px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.25), 
    rgba(6, 214, 160, 0.25));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.4);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.feature-icon2::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  animation: icon-shine 3s ease-in-out infinite;
}

.feature-text span {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.feature-text small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.4;
}

/* === FOOTER DO MODAL === */
.support-modal-footer {
  padding: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05), 
    rgba(255, 255, 255, 0.02));
}

/* BOTÃO DISCORD AZUL SEM ÍCONE */
.whatsapp-button-premium {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px 28px;
  background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-shadow: 
    0 12px 30px rgba(59, 130, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-button-premium:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(59, 130, 246, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
}

/* Remover referências ao ícone */
.whatsapp-icon-bg {
  display: none;
}

.button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent);
  transition: left 0.8s ease;
}

.whatsapp-button-premium:hover .button-shine {
  left: 100%;
}

/* === ANIMAÇÕES AVANÇADAS === */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  33% { 
    transform: translateY(-8px) rotate(1deg); 
  }
  66% { 
    transform: translateY(-4px) rotate(-1deg); 
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.6; 
    transform: scale(1.2);
  }
}

@keyframes rotate-gradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes icon-shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

/* === RESPONSIVO PREMIUM === */
@media (max-width: 768px) {
  .support-character-container {
    bottom: 25px !important;
    left: 25px !important;
  }
  
  .support-character-avatar {
    width: 80px;
    height: 80px;
  }
  
  .support-modal {
    padding: 16px !important;
  }
  
  .support-modal-content {
    max-width: 100% !important;
    border-radius: 24px !important;
  }
  
  .support-modal-header,
  .support-modal-body,
  .support-modal-footer {
    padding: 24px;
  }
  
  .support-character-bubble {
    font-size: 13px;
    padding: 12px 16px;
  }

  .support-modal-close {
    top: 15px !important;
    right: 15px !important;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .support-character-avatar {
    width: 70px;
    height: 70px;
  }
  
  .support-modal-content {
    margin: 10px;
    max-width: calc(100% - 20px) !important;
  }
}

/* === GARANTIAS DE FUNCIONAMENTO === */
.support-modal,
.support-modal * {
  box-sizing: border-box !important;
}

body.modal-open {
  overflow: hidden !important;
}

/* MODO ESCURO AUTOMÁTICO */
@media (prefers-color-scheme: dark) {
  .support-modal-content {
    background: linear-gradient(145deg, 
      rgba(15, 23, 42, 0.95) 0%, 
      rgba(30, 41, 59, 0.9) 100%) !important;
  }
}