/* Popup promo Home (assets/js/popup.js). Awalan .icp- supaya tidak bentrok dengan gaya lain. */
.icp-overlay {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(0, 0, 0, .55);
    opacity: 0; transition: opacity .25s ease;
}
.icp-overlay.open { opacity: 1; }

.icp-box {
    position: relative; width: min(420px, 85vw);
    border-radius: 28px; overflow: hidden; background: #fff; color: #111;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    transform: scale(.9); transition: transform .25s ease;
}
.icp-overlay.open .icp-box { transform: scale(1); }

.icp-link { display: block; color: inherit; text-decoration: none; }

/* dengan gambar: ukuran mengikuti rasio gambar, dibatasi tinggi layar */
.icp-box.has-img { width: min(420px, 85vw, calc(86vh * .8)); }
.icp-img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; background: #fff; }

/* tanpa gambar: kartu teks hitam persegi */
.icp-box.no-img { aspect-ratio: 1 / 1; background: radial-gradient(circle at 30% 20%, #3a3a3d 0, #111 62%); color: #fff; }
.icp-box.no-img .icp-link { position: absolute; inset: 0; }
.icp-info { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 32px; text-align: center; }
.icp-title { font-size: clamp(26px, 8vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.icp-caption { font-size: 15px; line-height: 1.35; opacity: .9; }
.icp-cta { margin-top: 8px; padding: 12px 22px; border-radius: 999px; background: #fff; color: #111; font-size: 15px; font-weight: 700; }

.icp-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
    background: #111; color: #fff; font-size: 24px; line-height: 34px; text-align: center; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.icp-close:hover { background: #333; }
.icp-close:focus-visible, .icp-link:focus-visible { outline: 3px solid #4da3ff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .icp-overlay, .icp-box { transition: none; }
}
