/* Socket Craft - New Client Welcome Offer */

.welcome-offer-overlay[hidden] {
  display: none !important;
}

.welcome-offer-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 18, 39, 0.72);
  backdrop-filter: blur(5px);
  overflow-y: auto;
}

.welcome-offer-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: welcomeOfferEnter 0.35s ease-out;
}

.welcome-offer-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

.welcome-offer-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.welcome-offer-header {
  padding: 36px 28px 28px;
  background: linear-gradient(135deg, #101c38, #234a89);
  color: #ffffff;
}

.welcome-offer-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.13);
  color: #dce9ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.welcome-offer-gift {
  margin: 18px 0 10px;
  font-size: 42px;
}

.welcome-offer-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  font-weight: 800;
}

.welcome-offer-header h2 span {
  color: #facc15;
}

.welcome-offer-header h3 {
  margin: 8px 0 12px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
}

.welcome-offer-header p {
  margin: 0;
  color: #dce5f5;
  font-size: 13px;
  line-height: 1.7;
}

.welcome-offer-body {
  padding: 26px 28px 24px;
}

.welcome-offer-benefit {
  margin: 0 0 11px;
  color: #26354e;
  font-size: 13px;
  font-weight: 500;
}

.welcome-offer-claim {
  display: block;
  margin-top: 22px;
  padding: 15px 18px;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.welcome-offer-claim:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.welcome-offer-terms {
  margin: 15px 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.6;
}

.welcome-offer-later {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.welcome-offer-later:hover {
  color: #1e40af;
}

.welcome-offer-close:focus-visible,
.welcome-offer-later:focus-visible,
.welcome-offer-claim:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 3px;
}

@keyframes welcomeOfferEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .welcome-offer-overlay {
    padding: 12px;
  }

  .welcome-offer-card {
    max-height: calc(100dvh - 24px);
  }

  .welcome-offer-header {
    padding: 30px 20px 24px;
  }

  .welcome-offer-header h2 {
    font-size: 29px;
  }

  .welcome-offer-header h3 {
    font-size: 18px;
  }

  .welcome-offer-body {
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-offer-card {
    animation: none;
  }

  .welcome-offer-claim {
    transition: none;
  }
}
