/* ============================================
   RL MARKET 2.0 - NEWSLETTER POPUP
   ============================================ */
.rl-newsletter-popup {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.65);
  display: none;
  align-items: center; justify-content: center;
  z-index: 5000;
  padding: 1rem;
}
.rl-newsletter-popup.open { display: flex; animation: rlFade .3s; }
@keyframes rlFade { from{opacity:0} to{opacity:1} }

.rl-newsletter-content {
  background: #fff;
  border-radius: 24px;
  max-width: 740px; width: 100%;
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: rlSlide .4s ease;
}
@keyframes rlSlide { from{transform:translateY(40px);opacity:0} to{transform:translateY(0);opacity:1} }

.rl-newsletter-close {
  position: absolute; top: 14px; right: 16px;
  background: rgba(255,255,255,.2);
  border: none; color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer; z-index: 10;
  transition: all .2s;
}
.rl-newsletter-close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }

.rl-newsletter-left {
  background: linear-gradient(135deg, #1E40AF 0%, #1E1B4B 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem;
  position: relative;
}
.rl-newsletter-left::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(251,191,36,.2), transparent 70%);
}
.rl-newsletter-icon {
  font-size: 4rem;
  color: #FBBF24;
  margin-bottom: 1rem;
  animation: rlBounce 2s ease-in-out infinite;
}
@keyframes rlBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.rl-newsletter-badge {
  background: #FBBF24;
  color: #1E3A8A;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.rl-newsletter-right {
  padding: 2.5rem 2rem;
}
.rl-newsletter-right h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  margin-bottom: 8px;
}
.rl-newsletter-highlight {
  background: linear-gradient(135deg, #FBBF24, #F97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.rl-newsletter-right > p {
  color: #64748B;
  font-size: .9375rem;
  margin-bottom: 1.25rem;
}

#rlNewsletterForm {
  display: flex; gap: 8px; margin-bottom: 12px;
}
#rlNewsletterForm input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-size: .9375rem;
  outline: none;
  transition: border .2s;
}
#rlNewsletterForm input:focus { border-color: #1E40AF; }
#rlNewsletterForm button {
  padding: 12px 18px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff; border: none;
  border-radius: 10px;
  font-weight: 800; font-size: .875rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16,185,129,.3);
  transition: all .2s;
  white-space: nowrap;
}
#rlNewsletterForm button:hover { transform: translateY(-2px); }

.rl-newsletter-foot {
  font-size: .75rem; color: #94A3B8;
}
.rl-newsletter-foot i { margin-right: 4px; }

.rl-newsletter-success {
  display: none;
  padding: 1rem;
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  border-radius: 12px;
  align-items: center; gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.rl-newsletter-success.show { display: flex; }
.rl-newsletter-success i { color: #059669; font-size: 1.5rem; }
.rl-newsletter-success code {
  background: #fff; padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800; color: #1E40AF;
  border: 2px dashed #1E40AF;
}
.rl-newsletter-success button {
  background: #1E40AF; color: #fff;
  border: none; padding: 6px 12px;
  border-radius: 6px; font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .rl-newsletter-content { grid-template-columns: 1fr; }
  .rl-newsletter-left { padding: 1.5rem; }
  .rl-newsletter-icon { font-size: 3rem; }
  #rlNewsletterForm { flex-direction: column; }
  #rlNewsletterForm button { width: 100%; }
}
