/* ==========================================
    🔥 PAYSARAL BOSS: IMAGE 70% | GIF & VIDEO 50% POPUP CSS 🔥
========================================== */
.web-d-none {
    display: none !important;
}

.web-clickable-link,
.web-clickable-link img {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.web-disabled-link,
.web-disabled-link img {
    cursor: default !important;
    pointer-events: none !important;
}

.web-popup-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(15, 23, 42, 0.85); 
    z-index: 9999999; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    visibility: hidden; 
    backdrop-filter: blur(4px); 
    transition: all 0.4s ease; 
}

.web-popup-overlay.show { 
    opacity: 1; 
    visibility: visible; 
}

.web-popup-box { 
    background: transparent !important; 
    width: auto !important; 
    max-width: 70vw !important; /* 🔥 मेन इमेज के लिए अधिकतम 70% हिस्सा */
    border-radius: 12px; 
    position: relative; 
    transform: scale(0.9) translateY(30px); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: none !important; 
    display: flex; 
    flex-direction: column; 
    overflow: visible !important; 
}

.web-popup-overlay.show .web-popup-box { 
    transform: scale(1) translateY(0); 
}

.web-popup-close { 
    position: absolute; 
    top: -15px; 
    right: -15px; 
    background: #ef4444; 
    border: 2px solid #ffffff; 
    width: 38px; 
    height: 38px; 
    border-radius: 50%; 
    font-size: 18px; 
    color: #ffffff; 
    cursor: pointer; 
    z-index: 99; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.web-popup-close:hover { 
    background: #dc2626; 
    transform: scale(1.1); 
}

.web-popup-img-wrapper {
    background: transparent !important; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔥 मेन इमेज: 70% स्क्रीन तक बिना कटे 🔥 */
.web-popup-img-wrapper img { 
    width: auto; 
    height: auto;
    max-width: 70vw;
    max-height: 70vh; 
    object-fit: contain; 
    display: block; 
    border-radius: 12px;
    background: transparent !important;
    margin: 0 auto;
}

.web-popup-content { 
    padding: 15px 20px; 
    text-align: center; 
    background: #ffffff;
    border-radius: 12px;
    margin-top: 10px;
    max-height: none !important;
    overflow: visible !important;
}

.web-popup-title { 
    font-size: 20px; 
    font-weight: 700; 
    color: #0f172a; 
    margin-top: 0; 
    margin-bottom: 8px; 
    font-family: 'Inter', sans-serif; 
}

.web-popup-msg { 
    font-size: 14px; 
    color: #475569; 
    line-height: 1.5; 
    margin-bottom: 15px; 
    font-family: 'Inter', sans-serif; 
    max-height: none !important;
    overflow: visible !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 🔥 BOSS FIX: GIF अधिकतम 50% स्क्रीन साइज तक रहेगी 🔥 */
.web-popup-msg img { 
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 50vw !important; 
    max-height: 50vh !important;
    object-fit: contain !important;
    margin: 4px auto !important;
    border-radius: 8px !important; 
}

/* 🔥 BOSS FIX: YouTube Video अधिकतम 50% स्क्रीन साइज तक खुलेगा 🔥 */
.web-popup-msg .yt-embed-wrapper,
.yt-embed-wrapper {
    position: relative !important;
    width: 50vw !important;
    max-width: 50vw !important;
    max-height: 50vh !important;
    aspect-ratio: 16 / 9 !important;
    margin: 6px auto !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.web-popup-msg iframe,
.yt-embed-iframe {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border: none !important;
    border-radius: 10px !important;
    display: block !important;
}

.web-popup-actions { 
    display: flex; 
    gap: 12px; 
    justify-content: center; 
}

.web-btn-primary { 
    background-color: #67C949; 
    color: #0F172A !important; 
    text-decoration: none; 
    padding: 10px 24px; 
    border-radius: 30px; 
    font-weight: 600; 
    font-size: 14px; 
    transition: 0.3s; 
    font-family: 'Inter', sans-serif; 
    display: inline-block;
}

.web-btn-primary:hover { 
    background-color: #5ab53d; 
    transform: translateY(-2px); 
}

.web-btn-secondary { 
    background-color: #67C949; 
    color: #0F172A; 
    border: none; 
    padding: 10px 24px; 
    border-radius: 30px; 
    font-weight: 700; 
    font-size: 14px; 
    cursor: pointer; 
    transition: 0.3s; 
    font-family: 'Inter', sans-serif; 
}

.web-btn-secondary:hover { 
    background-color: #5ab53d; 
}

@media (max-width: 768px) {
    .web-popup-box {
        max-width: 85vw !important;
    }
    .web-popup-img-wrapper img {
        max-width: 85vw !important;
        max-height: 80vh !important;
    }
    .web-popup-msg img {
        max-width: 80vw !important;
        max-height: 60vh !important;
    }
    .web-popup-msg .yt-embed-wrapper,
    .yt-embed-wrapper {
        width: 80vw !important;
        max-width: 80vw !important;
    }
}