/* Modal wrapper */
.elite-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

/* Dark overlay */
.elite-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 999998;
}

/* Modal content (scrollable) */
.elite-modal-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 700px;
    max-height: 70vh; /* prevent overflow */
    width: 90%;
    z-index: 999999;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: fadeInUp 0.4s ease-out;
    overflow-y: auto; /* make inside scrollable */
}

/* Scroll styling (optional, nicer look) */
.elite-modal-content::-webkit-scrollbar {
    width: 8px;
}
.elite-modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.elite-modal-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Close button */
.elite-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

/* Lock body scroll */
body.elite-modal-open {
    overflow: hidden;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
