/* ── IPTVBut Welcome Popup — frontend styles ── */

#ibp-overlay {
  --ibp-accent: #7b68ee;
  --ibp-accent2: #a78bfa;
  --ibp-bg:     #ffffff;
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 30, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
#ibp-overlay.ibp-show {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal ── */
#ibp-modal {
  background: var(--ibp-bg);
  border: 1.5px solid #dde4f0;
  box-shadow:
    0 2px 12px rgba(100, 90, 200, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.22),
    0 0 80px -10px rgba(123, 104, 238, 0.18);
  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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
}
#ibp-overlay.ibp-show #ibp-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Close button ── */
#ibp-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid #dde4f0;
  background: #f4f2ff;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  line-height: 1;
}
#ibp-close:hover {
  background: rgba(123, 104, 238, 0.12);
  border-color: var(--ibp-accent);
  color: var(--ibp-accent);
}

/* ── Logo ── */
.ibp-logo-link {
  display: inline-block;
  margin-bottom: 14px;
}
.ibp-logo {
  height: 36px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ── Badge ── */
.ibp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(123, 104, 238, 0.10);
  border: 1px solid rgba(123, 104, 238, 0.30);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ibp-accent);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ibp-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ibp-accent);
  box-shadow: 0 0 6px var(--ibp-accent);
  animation: ibpPulse 1.6s infinite;
}
@keyframes ibpPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Header text ── */
.ibp-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.ibp-title span {
  background: linear-gradient(135deg, var(--ibp-accent), var(--ibp-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ibp-sub {
  font-size: 13px;
  color: #666;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* ── Offer cards ── */
.ibp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.ibp-card {
  background: #f8f7ff;
  border: 1.5px solid #dde4f0;
  border-radius: 14px;
  padding: 18px 14px 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  position: relative;
  user-select: none;
}
.ibp-card:hover {
  border-color: rgba(123, 104, 238, 0.45);
  background: #f0eeff;
}
.ibp-card.ibp-selected {
  border-color: var(--ibp-accent);
  background: rgba(123, 104, 238, 0.07);
  box-shadow: 0 0 28px -6px rgba(123, 104, 238, 0.30);
}
.ibp-card-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #c4b8f8;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: transparent;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.ibp-card.ibp-selected .ibp-card-check {
  background: linear-gradient(135deg, var(--ibp-accent), var(--ibp-accent2));
  border-color: var(--ibp-accent);
  color: #fff;
}
.ibp-card-icon {
  width: 46px; height: 46px;
  background: rgba(123, 104, 238, 0.10);
  border: 1px solid rgba(123, 104, 238, 0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}
.ibp-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 6px;
  line-height: 1.3;
}
.ibp-card-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.55;
}
.ibp-card.ibp-selected .ibp-card-desc { color: #555; }

/* ── Popular ribbon on card 1 ── */
#ibp-card-months::before {
  content: "🏆 Le Plus Populaire";
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--ibp-accent), var(--ibp-accent2));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── CTA button ── */
#ibp-cta {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--ibp-accent), var(--ibp-accent2));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(123, 104, 238, 0.30);
}
#ibp-cta:hover {
  opacity: 0.88;
  box-shadow: 0 8px 28px rgba(123, 104, 238, 0.45);
  transform: translateY(-1px);
}
#ibp-cta:active  { transform: translateY(0); }
#ibp-cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Skip link ── */
#ibp-skip {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  width: 100%;
  font-family: inherit;
  padding: 4px 0;
}
#ibp-skip:hover { color: #666; }

/* ── Timer ── */
.ibp-timer {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin-top: 14px;
  letter-spacing: 0.03em;
}
.ibp-timer strong {
  color: var(--ibp-accent);
  font-weight: 700;
}

/* ── Trust bar ── */
.ibp-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  background: #f4f2ff;
  border: 1px solid #ede9fe;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #534ab7;
}

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