#npcp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: scroll;
}

.npcp-box {
    overflow: visible;
    max-width: 520px;
    position: relative;
}

#npcp-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    z-index: 10;
    width: 25px;
    height: 25px;
    background: red;
    text-align: center;
    display: flex;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
}

#npcp-card {
    width: 100%;
    border-radius: 20px;
    overflow: visible;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
    background: transparent !important;
}


/* Default (Bangla) */
#npcp-card {
    font-family: 'SolaimanLipi', Arial, sans-serif;
}

/* English হলে */
#npcp-card.npcp-en {
    font-family: Arial, Helvetica, sans-serif;
}

.npcp-image-wrap {
    border: 5px solid #fff;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.npcp-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.npcp-content {
    text-align: center;
}

.npcp-footer {
    text-align: center;
    font-size: 14px;
    color: #fff;
    opacity: 0.8;
    padding-top: 10px;
    padding-bottom: 14px;
}

.npcp-bottom {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.npcp-bottom button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    font-weight: bold;
    color: black;
}

.npcp-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.npcp-buttons button {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: #9999D9;
    color: black;
    font-weight: normal;
    transition: 0.3s;
}

.npcp-buttons button:hover {
    background: #006400;
    color: white;
}

.npcp-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background: black;
    color: white;
    border-radius: 50%;
    z-index: 9999999;
    font-size: 18px;          /* 🔥 reduce font-size */
    line-height: 25px;       /* 🔥 important fix */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    text-align: center;
    padding: 0;
}

.npcp-ad img,
.npcp-logo img:hover,
.npcp-image-wrap img:hover {
    transform: scale(1);
}

/* @media (max-width: 768px) {

    .npcp-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }

    .npcp-box {
        transform: scale(0.9);
        transform-origin: center;
    }

} */

/* =========================
   MOBILE VIEW NORMAL
========================= */
@media (max-width: 768px) {
    .npcp-box {
        transform: none !important;
    }
}


/* =========================
   EXPORT FIX (MOST IMPORTANT)
========================= */
.npcp-export-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 512px !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 auto !important;
    transform: none !important;
    overflow: visible !important;
    background: transparent !important;
}


html, body {
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {

    .npcp-box {
        width: 90%;        /* 👈 তোমার 80–90% control */
        max-width: 90%;
        max-height: 85vh;  /* 👈 screen limit */
        overflow-y: auto;
    }

    #npcp-card {
        transform: none !important; /* কোন scaling bug avoid */
    }

}