/* ── Krooz TV Popup — frontend styles ── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

#itp-overlay {
  --itp-accent:  #c9a84c;
  --itp-accent2: #e8c96a;
  --itp-bg:      #0a0a0a;
  --itp-gold-glow: rgba(201,168,76,0.22);
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
#itp-overlay.itp-show {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal ── */
#itp-modal {
  background: var(--itp-bg);
  border: 1px solid rgba(201,168,76,0.15);
  border-top: 2px solid var(--itp-accent);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 40px 80px rgba(0,0,0,0.9),
    0 0 100px var(--itp-gold-glow);
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  padding: 36px 28px 28px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.34,1.4,0.64,1), opacity 0.3s ease;
  opacity: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#itp-overlay.itp-show #itp-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Decorative gold corner line ── */
#itp-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--itp-accent) 30%, var(--itp-accent2) 50%, var(--itp-accent) 70%, transparent 100%);
  border-radius: 14px 14px 0 0;
}

/* ── Close button ── */
#itp-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(201,168,76,0.15);
  background: rgba(201,168,76,0.04);
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}
#itp-close:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.40);
  color: var(--itp-accent);
}

/* ── Logo / Brand ── */
.itp-icon-wrap {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(201,168,76,0.12) 0%, rgba(201,168,76,0.06) 100%);
  border: 1px solid rgba(201,168,76,0.30);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow:
    0 0 30px -4px rgba(201,168,76,0.35),
    0 0 0 1px rgba(201,168,76,0.08) inset;
  animation: itpIconPop 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes itpIconPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.itp-brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.itp-brand span {
  color: var(--itp-accent);
}

/* ── Badge ── */
.itp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(201,168,76,0.12), rgba(201,168,76,0.06));
  border: 1px solid rgba(201,168,76,0.30);
  border-radius: 4px;
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--itp-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.itp-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--itp-accent);
  box-shadow: 0 0 6px var(--itp-accent);
  animation: itpPulse 1.8s infinite;
}
@keyframes itpPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

/* ── Header text ── */
.itp-title {
  font-size: 23px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  font-family: 'Playfair Display', Georgia, serif;
}
.itp-title span {
  color: var(--itp-accent);
  background: linear-gradient(135deg, var(--itp-accent), var(--itp-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.itp-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.36);
  text-align: center;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* ── Offer cards ── */
.itp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.itp-card {
  background: rgba(255,255,255,0.02);
  border: 1.5px solid rgba(201,168,76,0.10);
  border-radius: 10px;
  padding: 18px 12px 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, transform 0.12s;
  position: relative;
  user-select: none;
}
.itp-card:hover {
  border-color: rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.04);
  transform: translateY(-2px);
}
.itp-card.itp-selected {
  border-color: var(--itp-accent);
  background: linear-gradient(135deg, rgba(201,168,76,0.10) 0%, rgba(201,168,76,0.04) 100%);
  box-shadow:
    0 0 24px -4px rgba(201,168,76,0.30),
    0 0 0 1px rgba(201,168,76,0.08) inset;
}

/* Gold "BEST" label on card 1 */
#itp-card-months::after {
  content: 'POPULAR';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--itp-accent), var(--itp-accent2));
  color: #000;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 10px;
  border-radius: 0 0 6px 6px;
}

.itp-card-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 17px; height: 17px;
  border-radius: 4px;
  border: 1.5px solid rgba(201,168,76,0.20);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.itp-card.itp-selected .itp-card-check {
  background: var(--itp-accent);
  border-color: var(--itp-accent);
  color: #000;
}
.itp-card-icon {
  width: 46px; height: 46px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.20);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin: 0 auto 10px;
}
.itp-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.25;
  font-family: 'Playfair Display', serif;
}
.itp-card.itp-selected .itp-card-title {
  background: linear-gradient(135deg, var(--itp-accent), var(--itp-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.itp-card-desc {
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}
.itp-card.itp-selected .itp-card-desc { color: rgba(255,255,255,0.50); }

/* ── CTA button ── */
#itp-cta {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--itp-accent) 0%, var(--itp-accent2) 50%, var(--itp-accent) 100%);
  background-size: 200% 100%;
  border: none;
  border-radius: 7px;
  color: #000;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background-position 0.4s ease, box-shadow 0.2s, transform 0.12s;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: 'Inter', inherit;
  position: relative;
  overflow: hidden;
}
#itp-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
#itp-cta:hover {
  background-position: 100% 0;
  box-shadow: 0 6px 28px rgba(201,168,76,0.50);
  transform: translateY(-1px);
}
#itp-cta:active  { transform: translateY(0); }
#itp-cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Skip link ── */
#itp-skip {
  display: block;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.20);
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  width: 100%;
  font-family: inherit;
  padding: 5px 0;
}
#itp-skip:hover { color: rgba(255,255,255,0.42); }

/* ── Timer ── */
.itp-timer {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 16px;
  letter-spacing: 0.04em;
}
.itp-timer strong {
  color: var(--itp-accent);
  font-weight: 700;
}

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