/* LIM Success Popup — glassmorphism matching avoria-theme */

.lim-popup-overlay {
  position: fixed;
  inset: 0;
  /* deep navy with a hint of blue — same dark tone as site's dark sections */
  background: rgba(5, 12, 26, 0.82);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  animation: lim-fade-in 0.32s ease forwards;
}

.lim-popup-overlay.lim-closing {
  animation: lim-fade-out 0.28s ease forwards;
  pointer-events: none;
}

/* Glass card */
.lim-popup-card {
  position: relative;
  max-width: 460px;
  width: 100%;
  text-align: center;
  border-radius: 20px;
  padding: 48px 40px 40px;

  /* layered glass: dark navy base + semi-transparent blue tint */
  background:
    linear-gradient(
      145deg,
      rgba(13, 59, 110, 0.38) 0%,
      rgba(6,  81, 146, 0.28) 55%,
      rgba(26,125, 200, 0.22) 100%
    ),
    rgba(6, 18, 40, 0.52);

  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);

  /* blue-tinted glass border + top-edge highlight */
  border: 1px solid rgba(100, 168, 240, 0.22);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.10),
    inset 1px  0   0 rgba(255, 255, 255, 0.04),
    0 32px 80px  rgba(3, 10, 22, 0.70),
    0  8px 24px  rgba(3, 10, 22, 0.40),
    0  0   60px  rgba(6, 81, 146, 0.18);

  transform: scale(0.84) translateY(22px);
  opacity: 0;
  animation: lim-spring-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s forwards;
}

/* Close button */
.lim-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  padding: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lim-popup-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.30);
  color: #ffffff;
}

/* Icon circle */
.lim-popup-icon {
  width: 72px;
  height: 72px;
  background: rgba(26, 125, 200, 0.18);
  border: 1px solid rgba(100, 168, 240, 0.32);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 28px rgba(26,125,200,0.22);
}

.lim-popup-icon svg {
  width: 34px;
  height: 34px;
  stroke: #7bc8f8;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
  animation: lim-check-draw 0.42s ease 0.44s forwards;
  filter: drop-shadow(0 0 6px rgba(100, 200, 255, 0.55));
}

/* Title */
.lim-popup-title {
  font-size: 1.42rem;
  font-weight: 700;
  color: #e8f2fc;
  margin: 0 0 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 12px rgba(26,125,200,0.35);
}

/* Body text */
.lim-popup-body {
  font-size: 0.92rem;
  color: rgba(185, 215, 245, 0.78);
  line-height: 1.65;
  margin: 0 0 30px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Auto-close progress bar */
.lim-popup-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 99px;
  overflow: hidden;
}

.lim-popup-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(26,125,200,0.7), rgba(100,200,255,0.9));
  border-radius: 99px;
  transform-origin: left center;
  box-shadow: 0 0 8px rgba(100,200,255,0.5);
  animation: lim-bar-drain 5s linear 0.5s forwards;
}

/* Keyframes */
@keyframes lim-fade-in  { to { opacity: 1; } }
@keyframes lim-fade-out { to { opacity: 0; } }

@keyframes lim-spring-in {
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes lim-check-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes lim-bar-drain {
  to { transform: scaleX(0); }
}

@media (max-width: 480px) {
  .lim-popup-card {
    padding: 36px 22px 28px;
    border-radius: 16px;
  }
  .lim-popup-title { font-size: 1.22rem; }
}
