/* ValuePeak login welcome / reward announcement modal — brand lime on deep charcoal */

.sl-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(16px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-sizing: border-box;
  animation: slWelcomeFade 0.28s ease;
}

@keyframes slWelcomeFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sl-welcome-modal {
  position: relative;
  width: min(420px, 100%);
  margin: auto 0;
  max-height: none;
  overflow: visible;
  border-radius: 20px;
  color: #f4f6f8;
  background:
    radial-gradient(ellipse 110% 70% at 50% -8%, rgba(218, 255, 69, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 30%, rgba(196, 230, 18, 0.08), transparent 50%),
    linear-gradient(168deg, #161a14 0%, #0c0e0b 48%, #121612 100%);
  border: 1px solid rgba(218, 255, 69, 0.28);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(218, 255, 69, 0.08);
  animation: slWelcomeUp 0.32s ease;
  flex-shrink: 0;
}

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

.sl-welcome-close {
  position: sticky;
  top: 8px;
  float: right;
  margin: 8px 8px -40px 0;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s ease;
}

.sl-welcome-close:hover {
  background: rgba(218, 255, 69, 0.22);
  color: #111;
}

.sl-welcome-hero {
  position: relative;
  padding: 28px 22px 16px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(218, 255, 69, 0.14), transparent 72%),
    radial-gradient(circle at 18% 28%, rgba(196, 230, 18, 0.18), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(218, 255, 69, 0.12), transparent 44%);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.sl-welcome-hero::before {
  content: "";
  position: absolute;
  inset: -35% -15% auto;
  height: 130%;
  background: conic-gradient(
    from 210deg,
    transparent,
    rgba(218, 255, 69, 0.16),
    transparent 38%,
    rgba(196, 230, 18, 0.12),
    transparent 68%
  );
  opacity: 0.75;
  pointer-events: none;
  animation: slWelcomeShimmer 14s linear infinite;
}

@keyframes slWelcomeShimmer {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sl-welcome-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
  padding: 0;
  background: transparent;
}

.sl-welcome-brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 2px 16px rgba(218, 255, 69, 0.45));
}

.sl-welcome-brand span {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 18px rgba(218, 255, 69, 0.35);
}

.sl-welcome-headline {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.sl-welcome-prize {
  position: relative;
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #fff, #daff45, #e8ff8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.sl-welcome-body {
  padding: 8px 18px 20px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.sl-welcome-body .dear {
  font-weight: 700;
  margin-bottom: 6px;
  color: #daff45;
}

.sl-welcome-body .intro {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
}

.sl-welcome-body .intro strong {
  color: #daff45;
  font-weight: 800;
}

.sl-welcome-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.sl-welcome-col h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #daff45;
}

.sl-welcome-col ul {
  margin: 0;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.sl-welcome-col li {
  margin-bottom: 6px;
}

.sl-welcome-highlight {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #e8ff8a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sl-welcome-gifts {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin: 4px 0 10px;
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(218, 255, 69, 0.35));
}

.sl-welcome-footer {
  text-align: center;
  padding-top: 4px;
  border-top: 1px solid rgba(218, 255, 69, 0.18);
}

.sl-welcome-footer p {
  margin: 8px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.sl-welcome-footer .brand {
  font-weight: 800;
  font-size: 15px;
  color: #daff45;
}

.sl-welcome-footer .cta {
  font-weight: 600;
}

.sl-welcome-footer .legal {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 10px;
}

.sl-welcome-cta-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111;
  background: linear-gradient(90deg, #daff45, #c4e612);
  box-shadow: 0 8px 24px rgba(218, 255, 69, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sl-welcome-cta-btn:hover {
  box-shadow: 0 10px 28px rgba(218, 255, 69, 0.42);
}

.sl-welcome-cta-btn:active {
  transform: scale(0.98);
}

@media (max-width: 420px) {
  .sl-welcome-cols {
    grid-template-columns: 1fr;
  }
  .sl-welcome-prize {
    font-size: 24px;
  }
  .sl-welcome-brand img {
    width: 72px;
    height: 72px;
  }
  .sl-welcome-brand span {
    font-size: 22px;
  }
  .sl-welcome-hero {
    padding: 22px 16px 12px;
  }
  .sl-welcome-body {
    padding: 6px 14px 18px;
    font-size: 12px;
  }
}

@media (max-height: 700px) {
  .sl-welcome-brand img {
    width: 64px;
    height: 64px;
  }
  .sl-welcome-brand span {
    font-size: 20px;
  }
  .sl-welcome-prize {
    font-size: 22px;
  }
  .sl-welcome-hero {
    padding-top: 18px;
    padding-bottom: 10px;
  }
  .sl-welcome-body {
    font-size: 11.5px;
    line-height: 1.45;
  }
}

@media (min-width: 640px) {
  .sl-welcome-overlay {
    align-items: center;
  }
}

/* Keep CTA reachable while scrolling on short phones */
.sl-welcome-body {
  padding-bottom: 28px;
}
.sl-welcome-footer {
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
.sl-welcome-cta-btn {
  position: sticky;
  bottom: 8px;
  z-index: 2;
}
