/* ============================================
   EXIT-INTENT POPUP CSS - ZIP3
   Prefixo: z3m-exit-
   Design futurista com animações
   ============================================ */

/* === OVERLAY === */
#z3m-exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

#z3m-exit-popup-overlay.z3m-exit-show {
  display: flex !important;
  opacity: 1;
}

/* === POPUP === */
.z3m-exit-popup {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 24px;
  padding: 50px 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  overflow: hidden;
  transform: translateY(50px) scale(0.9);
  transition: transform 0.4s ease-out;
}

#z3m-exit-popup-overlay.z3m-exit-show .z3m-exit-popup {
  transform: translateY(0) scale(1);
}

.z3m-exit-popup::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 92, 38, 0.1) 0%,
    transparent 70%
  );
  animation: z3m-exit-rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes z3m-exit-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* === BOTÃO FECHAR === */
.z3m-exit-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
}

.z3m-exit-close:hover {
  background: rgba(255, 92, 38, 0.2);
  transform: rotate(90deg);
}

/* === ÍCONE === */
.z3m-exit-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: z3m-exit-bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 92, 38, 0.5));
}

@keyframes z3m-exit-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* === TEXTOS === */
.z3m-exit-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px 0;
  text-shadow: 0 0 30px rgba(255, 92, 38, 0.3);
  position: relative;
  z-index: 1;
}

.z3m-exit-subtitle {
  font-size: 18px;
  color: #b8b8d1;
  margin: 0 0 30px 0;
  position: relative;
  z-index: 1;
}

.z3m-exit-subtitle strong {
  color: #FF5C26;
  font-weight: 700;
}

/* === CAIXA DO CUPOM === */
.z3m-exit-coupon-box {
  background: linear-gradient(135deg, rgba(255, 92, 38, 0.1) 0%, rgba(255, 92, 38, 0.05) 100%);
  border: 2px dashed #FF5C26;
  border-radius: 16px;
  padding: 25px 20px;
  margin: 0 0 30px 0;
  position: relative;
  z-index: 1;
}

.z3m-exit-coupon-label {
  font-size: 11px;
  font-weight: 700;
  color: #FF5C26;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.z3m-exit-coupon-code {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255, 92, 38, 0.5);
}

.z3m-exit-coupon-desc {
  font-size: 14px;
  color: #b8b8d1;
}

/* === BOTÃO === */
.z3m-exit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #FF5C26 0%, #ff7849 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 
    0 10px 30px rgba(255, 92, 38, 0.4),
    0 0 0 0 rgba(255, 92, 38, 0.5);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.z3m-exit-btn::before {
  content: '';
  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.5s ease;
}

.z3m-exit-btn:hover::before {
  left: 100%;
}

.z3m-exit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 40px rgba(255, 92, 38, 0.5),
    0 0 0 8px rgba(255, 92, 38, 0.2);
}

.z3m-exit-btn:active {
  transform: translateY(0);
}

.z3m-exit-btn-text {
  position: relative;
  z-index: 1;
}

.z3m-exit-btn-icon {
  font-size: 24px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

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

/* === FOOTER === */
.z3m-exit-footer {
  font-size: 12px;
  color: #7a7a8c;
  margin: 20px 0 0 0;
  position: relative;
  z-index: 1;
}

/* === RESPONSIVO === */
@media (max-width: 576px) {
  .z3m-exit-popup {
    padding: 40px 25px;
    border-radius: 20px;
  }
  
  .z3m-exit-title {
    font-size: 24px;
  }
  
  .z3m-exit-subtitle {
    font-size: 16px;
  }
  
  .z3m-exit-coupon-code {
    font-size: 24px;
    letter-spacing: 1px;
  }
  
  .z3m-exit-btn {
    font-size: 16px;
    padding: 16px 30px;
  }
  
  .z3m-exit-icon {
    font-size: 48px;
  }
}