/**
 * QuantumForce - Premium Success Modal Styles
 */

.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.success-modal-content {
    background: white;
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-modal-overlay.active .success-modal-content {
    transform: scale(1);
}

/* Green Tick Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
    border-radius: 50%;
    border: 4px solid #34c759;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    background: #fff;
}

.check-icon::before, .check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: #fff;
    transform: rotate(-45deg);
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.icon-line {
    height: 5px;
    background-color: #34c759;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(52, 199, 89, 0.5);
    box-sizing: content-box;
    position: absolute;
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #fff;
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 46px; }
}
.success-modal-overlay.error .success-checkmark {
    border-color: #ff3b30;
}

.success-modal-overlay.error .icon-line {
    background-color: #ff3b30;
}

.success-modal-overlay.error .icon-circle {
    border-color: rgba(255, 59, 48, 0.5);
}

.success-modal-overlay.error .btn-modal-close {
    background: #ff3b30;
}

.success-modal-overlay.error .btn-modal-close:hover {
    background: #d70015;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

/* Cross Icon Animation */
.error-cross-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    background: #fff;
}

.icon-line-cross-1, .icon-line-cross-2 {
    height: 5px;
    background-color: #ff3b30;
    display: block;
    border-radius: 2px;
    position: absolute;
    width: 47px;
    z-index: 10;
}

.icon-line-cross-1 {
    top: 38px;
    left: 17px;
    transform: rotate(45deg);
    animation: icon-line-cross-1 0.75s;
}

.icon-line-cross-2 {
    top: 38px;
    left: 17px;
    transform: rotate(-45deg);
    animation: icon-line-cross-2 0.75s;
}

@keyframes icon-line-cross-1 {
    0% { transform: rotate(45deg) scaleX(0); }
    100% { transform: rotate(45deg) scaleX(1); }
}

@keyframes icon-line-cross-2 {
    0% { transform: rotate(-45deg) scaleX(0); }
    100% { transform: rotate(-45deg) scaleX(1); }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

.success-modal-content h2 {
    color: #1d1d1f;
    font-size: 28px;
    margin-bottom: 15px;
}

.success-modal-content p {
    color: #86868b;
    font-size: 16px;
    margin-bottom: 30px;
}

.btn-modal-close {
    background: #34c759;
    color: white;
    padding: 12px 30px;
    border-radius: 100px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-close:hover {
    background: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}
