/* ── Lynk IPTV Welcome Popup — frontend styles ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800;900&family=DM+Sans:wght@400;600;700&display=swap');

#lkp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
#lkp-overlay.lkp-show {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal ── */
#lkp-modal {
  background: #0a0a0a;
  border: 1px solid rgba(255, 45, 155, 0.3);
  box-shadow:
    0 0 0 1px rgba(255, 107, 26, 0.1),
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 80px -10px rgba(255, 45, 155, 0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 36px 28px 26px;
  position: relative;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #F5FF00;
  overflow: hidden;
}

/* Scanline */
#lkp-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* Glow blob */
#lkp-modal::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,45,155,0.12) 0%, transparent 70%);
  top: -80px; left: -60px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* Corner accent */
.lkp-corner {
  position: absolute;
  top: 0; right: 0;
  width: 32px; height: 32px;
  border-top: 1.5px solid rgba(255, 107, 26, 0.35);
  border-right: 1.5px solid rgba(255, 107, 26, 0.35);
  border-radius: 0 20px 0 0;
  pointer-events: none;
  z-index: 1;
}

#lkp-overlay.lkp-show #lkp-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* All children above pseudo-elements */
#lkp-modal > * { position: relative; z-index: 1; }

/* ── Close button ── */
#lkp-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,45,155,0.3);
  background: rgba(255,45,155,0.07);
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  line-height: 1;
  z-index: 10;
}
#lkp-close:hover {
  background: rgba(255,45,155,0.18);
  border-color: #FF2D9B;
  color: #FF2D9B;
}

/* ── Header ── */
.lkp-header { text-align: center; margin-bottom: 20px; }

/* Wordmark (shown when no logo URL) */
.lkp-wordmark {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #F5FF00;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  display: inline-block;
}
.lkp-wordmark span { color: #FF2D9B; }

/* Logo image */
.lkp-logo-link { display: inline-block; margin-bottom: 14px; }
.lkp-logo { height: 38px; width: auto; display: block; margin: 0 auto; }

/* ── Badge ── */
.lkp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,45,155,0.1);
  border: 1px solid rgba(255,45,155,0.3);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 10px;
  font-weight: 800;
  color: #FF2D9B;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: 'Syne', sans-serif;
}
.lkp-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FF2D9B;
  box-shadow: 0 0 6px #FF2D9B;
  animation: lkpPulse 1.6s infinite;
  flex-shrink: 0;
}
@keyframes lkpPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ── Title ── */
.lkp-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #F5FF00;
  text-align: center;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(245,255,0,0.15);
}
.lkp-title em {
  font-style: normal;
  color: #FF2D9B;
  text-shadow: 0 0 22px rgba(255,45,155,0.5);
}

.lkp-sub {
  font-size: 13px;
  color: rgba(245,255,0,0.45);
  text-align: center;
  line-height: 1.65;
  margin: 0;
}

/* ── Offer cards ── */
.lkp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.lkp-card {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 18px 12px 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  position: relative;
  user-select: none;
}
.lkp-card:hover {
  border-color: rgba(255,45,155,0.4);
  background: rgba(255,45,155,0.06);
}
.lkp-card.lkp-selected {
  border-color: #FF2D9B;
  background: rgba(255,45,155,0.09);
  box-shadow: 0 0 28px -6px rgba(255,45,155,0.4);
}

/* Check circle */
.lkp-card-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,45,155,0.3);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: transparent;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.lkp-card.lkp-selected .lkp-card-check {
  background: linear-gradient(135deg, #FF2D9B, #FF6B1A);
  border-color: #FF2D9B;
  color: #000;
  font-weight: 900;
}

/* Icon */
.lkp-card-icon {
  width: 46px; height: 46px;
  background: rgba(255,45,155,0.1);
  border: 1px solid rgba(255,45,155,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}

.lkp-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #F5FF00;
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lkp-card-desc {
  font-size: 11.5px;
  color: rgba(245,255,0,0.38);
  line-height: 1.55;
}
.lkp-card.lkp-selected .lkp-card-desc { color: rgba(245,255,0,0.6); }

/* Popular ribbon on card 1 */
#lkp-card-months::before {
  content: "🏆 Le Plus Populaire";
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FF2D9B, #FF6B1A);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255,45,155,0.35);
}

/* ── CTA button ── */
#lkp-cta {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(135deg, #FF2D9B, #FF6B1A);
  border: none;
  border-radius: 10px;
  color: #000;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.1s;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(255,45,155,0.35);
}
#lkp-cta:hover {
  opacity: 0.88;
  box-shadow: 0 8px 32px rgba(255,45,155,0.55);
  transform: translateY(-1px);
}
#lkp-cta:active  { transform: translateY(0); }
#lkp-cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Skip link ── */
#lkp-skip {
  display: block;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  padding: 4px 0;
}
#lkp-skip:hover { color: rgba(255,255,255,0.5); }

/* ── Timer ── */
.lkp-timer {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 14px;
  letter-spacing: 0.04em;
}
.lkp-timer strong {
  color: #FF2D9B;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}

/* ── Trust bar ── */
.lkp-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(255,45,155,0.05);
  border: 1px solid rgba(255,45,155,0.15);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(245,255,0,0.55);
  font-family: 'DM Sans', sans-serif;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  #lkp-modal  { padding: 32px 16px 22px; }
  .lkp-title  { font-size: 19px; }
  .lkp-trust  { gap: 7px; font-size: 10px; }
  .lkp-cards  { gap: 8px; }
}
