/* --- NEW MODERN LOADING PATTERN --- */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 19, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-card {
    background: #fff;
    padding: 25px 35px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
    border-left: 6px solid var( --accent-green);
}

.modal-wrapper .loading-card .spinner-border {
    height: 35px !important;
    width: 35px !important;
    color: var( --accent-green) !important;
    border-width: 4px;
    animation: spin 1s linear infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-box {
    font-size: 35px;
    color: var( --accent-green);
}

.text-box {
    display: flex;
    flex-direction: column;
}

.loading-texted {
    font-weight: 800;
    color: var(--brand-seagreen);
    font-size: 18px;
}

.sub-text {
    font-size: 13px;
    color: #648b6e;
    margin-top: 2px;
}


.modal-wrapper .loading-card svg {
    height: 35px !important;
    width: 35px !important;
    color: #d92343 !important;
}

.loader-spin {
    width: 50px;
    height: 50px;
    color: #B8860B;
    animation: spin 1s linear infinite;
}

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

.visually-hidden, .visually-hidden-focusable:not(:focus):not(:focus-within) {
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

    .visually-hidden-focusable:not(:focus):not(:focus-within):not(caption), .visually-hidden:not(caption) {
        position: absolute !important;
    }

.modal-wrapper .loading-card .spinner-border {
    width: 35px !important;
    height: 35px !important;
    border: 4px solid rgb(129 164 221) !important;
    border-right-color: var( --accent-green) !important;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite !important;
    flex-shrink: 0;
}