.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(100%, 560px);
    background: var(--card-bg);
    color: var(--text);
    padding: 2.5rem;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: modalPop 0.25s ease;
}

.modal-content h2,
.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.modal-content p {
    color: var(--text-soft);
    line-height: 1.7;
}

.modal-content ul {
    margin-top: 1.2rem;
    padding-left: 1.2rem;
}

.modal-content li {
    margin-bottom: 0.7rem;
    color: var(--text);
}

.modal-close,
.close {
    position: absolute;
    right: 22px;
    top: 16px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
}

@keyframes modalPop {
    from {
        transform: scale(0.96);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
