#pj-personal-popup-root {
    position: relative;
    z-index: 999999;
}

.pj-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 260ms ease, visibility 260ms ease;
}

.pj-popup-overlay.pj-popup-is-visible {
    opacity: 1;
    visibility: visible;
}

.pj-popup-modal {
    position: relative;
    width: min(660px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    
    /* বর্ডার অ্যাড করা হয়েছে, কালার চেঞ্জ করতে চাইলে #0f172a পরিবর্তন করুন */
    border: 2px solid #0f172a; 
    
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.30);
    transform: translateY(20px) scale(0.96);
    transition: transform 260ms ease;
}

.pj-popup-is-visible .pj-popup-modal {
    transform: translateY(0) scale(1);
}

.pj-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px 0 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.pj-popup-close:hover,
.pj-popup-close:focus-visible {
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
    transform: translateY(-1px);
    outline: none;
}

.pj-popup-close-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 26px;
}

.pj-popup-close-text {
    white-space: nowrap;
}

.pj-popup-image,
.pj-popup-video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px 28px 0 0;
}

.pj-popup-video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    background: #0f172a;
}

.pj-popup-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pj-popup-content {
    padding: 32px;
    text-align: center;
}

.pj-popup-body {
    max-width: 560px;
    margin: 0 auto;
}

.pj-popup-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pj-popup-title {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pj-popup-text {
    margin: 0 auto 18px;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

.pj-popup-text p {
    margin: 0 0 12px;
}

.pj-popup-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.pj-popup-countdown > div {
    padding: 14px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.pj-popup-countdown strong {
    display: block;
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
}

.pj-popup-countdown span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.pj-popup-expired {
    grid-column: 1 / -1;
    font-weight: 700;
    color: #b91c1c;
}

.pj-popup-actions {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.pj-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 14px 30px rgba(29, 78, 216, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.pj-popup-button:hover,
.pj-popup-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(29, 78, 216, 0.28);
    color: #ffffff !important;
}

.pj-popup-helper {
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

body.pj-popup-lock {
    overflow: hidden;
}

@media (max-width: 640px) {
    .pj-popup-overlay {
        align-items: center;
        padding: 12px;
    }

    .pj-popup-modal {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 28px;
    }

    .pj-popup-close {
        top: 12px;
        right: 12px;
        min-height: 40px;
        padding: 0 12px 0 8px;
    }

    .pj-popup-close-text {
        font-size: 13px;
    }

    .pj-popup-image,
    .pj-popup-video,
    .pj-popup-video-wrap {
        border-radius: 28px 28px 0 0;
    }

    .pj-popup-content {
        padding: 24px 18px 22px;
    }

    .pj-popup-countdown {
        gap: 8px;
    }

    .pj-popup-countdown > div {
        padding: 12px 8px;
        border-radius: 14px;
    }

    .pj-popup-countdown strong {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .pj-popup-countdown {
        grid-template-columns: repeat(2, 1fr);
    }
}