#toast-container {
    z-index: 99999999 !important;
    pointer-events: none;
}

#toast-container > div {
    z-index: 99999999 !important;
    position: relative;
    min-width: 320px;
    max-width: min(440px, calc(100vw - 32px));
    padding: 16px 42px 16px 54px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-left: 4px solid rgba(255, 255, 255, .78);
    border-radius: 15px;
    box-shadow: 0 18px 48px rgba(3, 30, 20, .24);
    opacity: 1;
    pointer-events: auto;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    backdrop-filter: blur(12px);
}

#toast-container .toast-title {
    margin-bottom: 3px;
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.01em;
}

#toast-container .toast-message {
    font-size: 12px;
    font-weight: 500;
}

#toast-container .toast-close-button {
    top: 7px;
    right: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: 19px;
    font-weight: 500;
    text-shadow: none;
    opacity: .82;
}

#toast-container .toast-close-button:hover {
    color: #fff;
    opacity: 1;
}

#toast-container .toast-progress {
    height: 3px;
    background: rgba(255, 255, 255, .76);
    opacity: .75;
}

#toast-container > .toast-success { border-left-color: #8ce2b8; background-color: #087451; }
#toast-container > .toast-error { border-left-color: #ffaaa3; background-color: #a63d3a; }
#toast-container > .toast-warning { border-left-color: #ffe18b; background-color: #896017; }
#toast-container > .toast-info { border-left-color: #9ad9f6; background-color: #205c7b; }

/* SweetAlert2 Modal Stacking - Always in front of any active dialog, gallery modal, or lightbox */
div.swal2-container,
.swal2-container {
    z-index: 99999999 !important;
}
.swal2-container.swal2-backdrop-show {
    z-index: 99999999 !important;
}
.swal2-popup {
    z-index: 100000000 !important;
}

.app-swal-popup {
    width: min(440px, calc(100vw - 28px));
    padding: 28px 28px 24px;
    border: 1px solid rgba(18, 75, 53, .1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 26px 75px rgba(7, 35, 24, .24);
    font-family: "DM Sans", sans-serif;
}

.app-swal-popup .swal2-icon { margin: 0 auto 17px; border-width: 3px; }
.app-swal-title { margin: 0; color: #18382b; font: 800 21px/1.25 Manrope, sans-serif; letter-spacing: -.025em; }
.app-swal-text { margin: 9px 0 0; color: #75847d; font: 500 13px/1.7 "DM Sans", sans-serif; }
.app-swal-actions { gap: 9px; margin: 23px 0 0; }
.app-swal-confirm, .app-swal-cancel { min-height: 43px; padding: 0 18px; border: 0; border-radius: 11px; font: 700 12px "DM Sans", sans-serif; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.app-swal-confirm { color: #fff; background: #087752; }
.app-swal-danger { background: #b93836; }
.app-swal-cancel { border: 1px solid #e2eae5; color: #62746b; background: #f6f9f7; }
.app-swal-confirm:hover, .app-swal-cancel:hover { transform: translateY(-1px); filter: brightness(.98); }

@media (max-width: 520px) {
    #toast-container { right: 10px; left: 10px; width: auto; }
    #toast-container > div { width: 100%; min-width: 0; max-width: none; margin: 0 0 8px; }
    .app-swal-popup { padding: 24px 20px 20px; }
    .app-swal-title { font-size: 19px; }
}
