.swal2-shown {
    overflow: hidden !important;
}

.custom_modal.swal2-popup {
    background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.90)) !important;
    backdrop-filter: blur(5px);
    border: 1.5px dashed rgba(160, 160, 160, 0.95) !important;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(160, 160, 160, 0.1);
    padding: 20px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.swal2-container.swal2-backdrop-show {
    background: transparent !important;
}

@media (min-width: 768px) {
    .custom_modal.swal2-popup {
        max-width: 500px;
    }
}

.custom_modal .swal2-title {
    color: #ccfe1e !important;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(204, 254, 30, 0.3);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.custom_modal .swal2-html-container {
    color: #fff !important;
    font-size: 18px;
}

.custom_modal .swal2-html-container strong {
    color: #ccfe1e;
    font-weight: 600;
}

.custom_modal .swal2-html-container small {
    color: #a0a0a0;
    font-style: italic;
}

.custom_modal .swal2-input {
    background: linear-gradient(180deg, rgba(15,19,25,0.90), rgba(26,31,39,0.90)) !important;
    border: 1.5px dashed rgba(160,160,160,0.95) !important;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
    width: 90% !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    display: block !important;
}

.custom_modal:has(.swal2-html-container:not(:empty)) .swal2-input:not([type="number"]) {
    display: none !important;
}

.custom_modal:has(.swal2-icon.swal2-warning) .swal2-input {
    display: none !important;
}

.custom_modal:has(.swal2-icon.swal2-success):not(:has(.swal2-html-container:not(:empty))) .swal2-input {
    display: none !important;
}

.custom_modal .swal2-input:focus {
    outline: none !important;
}

.custom_modal .swal2-input::placeholder {
    color: #6a6b7d;
}

.custom_modal .swal2-confirm {
    position: relative;
    overflow: hidden;
    border: 1.5px dashed rgba(160,160,160,0.95) !important;
    background: linear-gradient(180deg, rgba(15,19,25,0.90), rgba(26,31,39,0.90)) !important;
    -webkit-tap-highlight-color: transparent;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none !important;
    box-shadow: none !important;
}

.custom_modal .swal2-confirm:focus {
    outline: none !important;
    box-shadow: none !important;
}

.custom_modal .swal2-confirm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

.custom_modal .swal2-confirm:active {
    transform: scale(0.95);
}

.custom_modal .swal2-confirm:active::after {
    opacity: 0;
    transition: 0s;
}

.custom_modal .swal2-cancel {
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    border: 1.5px dashed rgba(160,160,160,0.95) !important;
    background: linear-gradient(180deg, rgba(15,19,25,0.90), rgba(26,31,39,0.90)) !important;
    -webkit-tap-highlight-color: transparent;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    outline: none !important;
    box-shadow: none !important;
}

.custom_modal .swal2-cancel:focus {
    outline: none !important;
    box-shadow: none !important;
}

.custom_modal .swal2-cancel::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.4s;
}

.custom_modal .swal2-cancel:hover::after {
    left: 120%;
}

.custom_modal .swal2-cancel:active {
    transform: scale(0.95);
}

.custom_modal .swal2-cancel:active::after {
    opacity: 0;
    transition: 0s;
}

.custom_modal .swal2-icon {
    margin: 15px auto !important;
}

.custom_modal .swal2-icon.swal2-error {
    border-color: #ff4757 !important;
    color: #ff4757 !important;
}

.custom_modal .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ff4757 !important;
}

.custom_modal .swal2-icon.swal2-success {
    border-color: #ccfe1e !important;
}

.custom_modal .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #ccfe1e !important;
}

.custom_modal .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(204, 254, 30, 0.3) !important;
}

.custom_modal .swal2-icon.swal2-warning {
    border-color: #ffa502 !important;
    color: #ffa502 !important;
}

.custom_modal .swal2-loader {
    border-color: #ccfe1e transparent #ccfe1e transparent !important;
}

.custom_modal .swal2-close {
    color: #ccfe1e !important;
    font-size: 30px;
    transition: all 0.3s ease;
}

.custom_modal .swal2-close:hover {
    color: #ffffff !important;
    transform: rotate(90deg);
}

.custom_modal.swal2-show {
    animation: swal2-show 0.3s;
}

@keyframes swal2-show {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    45% {
        transform: scale(1.05);
        opacity: 1;
    }
    80% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.custom_modal .swal2-input-label {
    font-weight: 600;
    margin-bottom: 10px;
}

.custom_modal .swal2-actions {
    gap: 15px;
    margin-top: 20px;
}

.custom_modal .swal2-validation-message {
    background: rgba(255, 71, 87, 0.1) !important;
    border: 1px solid #ff4757 !important;
    color: #ff4757 !important;
    border-radius: 8px;
}