#ajax-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#ajax-modal .modal-body.measuring {
    opacity: 0;
    pointer-events: none;
}

#ajax-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity 220ms ease-out;
}

#ajax-modal.open .modal-backdrop {
    opacity: 1;
}

#ajax-modal .modal-content {
    background-color: transparent;
    /*padding: 20px;*/
    border-radius: 10px;
    width: 70%;
    max-height: 80%;
    /*overflow-y: auto;*/
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #D0CFCC;

    /* 🚀 GPU optimized transition */
    transition:
        left 420ms cubic-bezier(0.16,1,0.3,1),
        top 420ms cubic-bezier(0.16,1,0.3,1),
        width 420ms cubic-bezier(0.16,1,0.3,1),
        height 420ms cubic-bezier(0.16,1,0.3,1),
        border-radius 300ms ease-out,
        background 300ms ease-out;
}
#ajax-modal .modal-content.no-scroll {
    display: inline-block;
    width: auto;
    height: auto;
    overflow-y: hidden;
    max-height: none;
}
.modal-overlay {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
.modal-error-text {
    border: 1px solid #d9534f;
    background: transparent;
    color: #d9534f;
    opacity: 0;
    overflow-wrap: wrap;
    padding: 20px;
}
.modal-success-text {
    border: 1px solid #5cb85c;
    background: transparent;
    color: #5cb85c;
    opacity: 0;
    overflow-wrap: wrap;
    padding: 20px;
}
.modal-success-text.blink {
    animation: messageBlink 2s ease-out forwards;
}
.modal-error-text.blink {
    animation: messageBlink 2s ease-out forwards;
}
@keyframes messageBlink {
    0% {opacity: 0;}
    25% {opacity: 1;}
    50% {opacity: 0;}
    75% {opacity: 1;}
    100% {opacity: 0;}
}

.modal-inner {
    padding: 20px;
}

.modal-close-btn {
    color: #255;
    background-color: black;
    border: 1px solid #255;
    height: 20px;
    width: 20px;

    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    line-height: 1;
}
.modal-close-btn:hover {
    border-color: #22aa88;
    color: #22aa88;
}
.modal-body {
    padding: 20px;
    color: white;
}
#ajax-modal .modal-body.measuring {
    opacity: 0;
    pointer-events: none;
}

.modal-deliverables {
    font-family: 'DejaVu Sans Mono', monospace;
}
.modal-deliverables-contents-directory {
    color: #12488B;
    background-color: #26A269;
    font-family: 'DejaVu Sans Mono', monospace;
}
.modal-deliverables-contents-file {
    color: #26A269;
    font-family: 'DejaVu Sans Mono', monospace;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #ff9500;
    border-radius: 50%;
    /*margin: 20px auto;*/
    animation: spin 1s linear infinite;
}
#modal-spinner {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#ultimate-membership-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
