/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: #020617;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    z-index: 2;
    animation: modalShow .25s ease;
}

.modal-close {
    position: absolute;

    display: flex;
    align-items: center;
    justify-content: center;

    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f3f3f3;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.modal-close:hover {
    background: #e5e5e5;
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-content {
    margin-top: 30px;
}

/*  */

.modal h2 {
    margin-bottom: 15px;
}

.modal p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
}

.modal ul {
    list-style: none;
    padding-left: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.modal li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 5px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
}

.modal li::before {
    content: "•";
    color: var(--primary);
    font-size: 20px;
    position: absolute;
    left: 5px;
    top: -5px;
}

/*  */

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-container {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px;
        padding: 20px;
    }

    .modal-close {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}