/* ============================================
   DHANTERAS 2026 — HOMEPAGE WELCOME POPUP
   ============================================ */
.dhan-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 2, 2, 0.82);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dhan-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.dhan-modal-box {
    position: relative;
    display: inline-block;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.dhan-modal-overlay.is-open .dhan-modal-box {
    transform: scale(1);
}

.dhan-modal-link {
    display: block;
    line-height: 0;
}

.dhan-modal-box img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(90vw, 480px);
    max-height: 90vh;
    border-radius: var(--radius-lg, 14px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.dhan-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-gold, #D4AF37);
    color: var(--color-navy-darkest, #4A0E0E);
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.dhan-modal-close:hover {
    transform: scale(1.08);
}

@media (max-width: 480px) {
    .dhan-modal-close {
        top: -10px;
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
}
