.modal-xxl {
    max-width: 80% !important;  /* or set exact px, e.g. 1400px */
}

/* ==== Modern Modal with Smooth Fade ==== */
/* Remove Bootstrap’s default dark backdrop */
.modal-backdrop {
    background-color: transparent !important;
    opacity: 0 !important;
}
/* Blurred & brightened background when modal is visible */
.modal-backdrop.show {
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) brightness(0.9);
    -webkit-backdrop-filter: blur(10px) brightness(0.9);
    opacity: 1 !important;
    transition: opacity 0.5s ease, background-color 0.4s ease, backdrop-filter 0.4s ease;
}
/* Smooth fade for modal content */
.modal.fade .modal-dialog {
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.5s ease;
}
.modal.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}
/* Smooth closing (slow fade-out) */
.modal.fade:not(.show) .modal-dialog {
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.6s ease; /* slightly longer fade out */
}
/* Modal Content: Glass look */
.modal-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 1rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    border: none !important;
    transition: box-shadow 0.3s ease;
}
.modal-content:hover {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
}

/* Optional: ensure no Bootstrap shadow/outline interference */
.modal-header .close:focus {
    outline: none;
    box-shadow: none;
}
.modal-header .close {
    opacity: 1 !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    margin: 0;
}
.modal-header .close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
    color: #fff;
}