/* Soft glass overlay */
.kcet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Glow border wrapper */
.kcet-glow {
  padding: 2px;
  border-radius: 24px;
  background: linear-gradient(270deg, #6c63ff, #00c6ff, #ff6ec4, #6c63ff);
  background-size: 600% 600%;
  animation: glowMove 6s ease infinite;
  display: inline-block;
  overflow: hidden; /* 🔥 IMPORTANT FIX */
}

/* Animation for glow */
@keyframes glowMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Popup */
.kcet-popup {
  width: 100%;
  max-width: 400px;
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 30px 70px rgba(0,0,0,0.2);
  padding: 16px;
  position: relative;
}

/* Entry animation */
@keyframes popupFade {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Close */
.kcet-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}

/* Header */
.kcet-header {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

/* Timer */
.kcet-timer {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

/* Image wrapper */
.kcet-img-wrap {
  padding: 10px;
}

/* Image */
.kcet-img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* Button */
.kcet-btn {
  display: block;
  margin: 15px auto 5px;
  padding: 12px;
  width: 90%;
  text-align: center;
  background: linear-gradient(135deg, #6c63ff, #8b7bff);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.kcet-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(108,99,255,0.4);
}

/* Mobile */
@media(max-width:480px) {
  .kcet-popup {
    padding: 14px;
  }

  .kcet-header {
    font-size: 15px;
  }
}