/* Estilos para o Agente Promocional (Floating Bubble) */
#promo-agent-wrapper {
  position: fixed;
  z-index: 9999;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#promo-agent-wrapper.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 768px) {
  #promo-agent-wrapper {
    bottom: 30px;
    right: 15%; /* Mais próximo do centro no desktop */
  }
  .promo-bubble {
    width: 360px;
    padding: 25px;
  }
  .promo-title {
    font-size: 20px;
  }
  .promo-text {
    font-size: 15px;
  }
  .promo-btn {
    font-size: 16px;
    padding: 12px;
  }
  .promo-avatar {
    width: 80px;
    height: 80px;
    font-size: 44px;
  }
}

.promo-bubble {
  background: rgba(15, 20, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.1);
  position: relative;
  margin-bottom: 15px;
  color: #fff;
  font-family: 'Roboto Mono', monospace;
}

/* O rabicho do balão apontando para o avatar */
.promo-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 30px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: rgba(15, 20, 35, 0.85) transparent transparent transparent;
  display: block;
  width: 0;
}

.promo-bubble::before {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 29px;
  border-width: 11px 11px 0;
  border-style: solid;
  border-color: rgba(0, 255, 255, 0.15) transparent transparent transparent;
  display: block;
  width: 0;
  z-index: -1;
}

.promo-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff4757;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-family: sans-serif;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  border: 2px solid #1a1e29;
  transition: transform 0.2s;
}

.promo-close:hover {
  transform: scale(1.1);
  background: #ff6b81;
}

.promo-title {
  color: #00ffff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.promo-text {
  font-size: 13px;
  line-height: 1.5;
  color: #a0aec0;
  margin-bottom: 15px;
}

.promo-text strong {
  color: #fff;
}

.promo-btn {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #00ffff 0%, #0088ff 100%);
  color: #000;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Orbitron', sans-serif;
}

.promo-btn:hover {
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
  transform: translateY(-2px);
  color: #000;
}

.promo-avatar {
  width: 60px;
  height: 60px;
  background: rgba(20, 25, 40, 0.9);
  border: 2px solid #00ffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  margin-right: 15px;
  animation: floatAvatar 3s ease-in-out infinite;
  cursor: pointer;
}

@keyframes floatAvatar {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); box-shadow: 0 0 25px rgba(0, 255, 255, 0.5); }
  100% { transform: translateY(0px); }
}
