.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #fff;
    max-width: 80%;
    width: 90%;
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    text-align: left;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content .pilot-grid {
    overflow-y: hidden;
    display: flex;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.pilot-card{
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media screen and (max-width: 600px) {
    .modal-content {
        width: auto;
        margin: 0 1rem;
        padding: 1.2rem 1rem;
        border-radius: 12px;
    }
}