/* İyzico Success Modal - Professional Design */

.iyzico-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999; /* İframe modal'dan çok daha yüksek */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.iyzico-success-modal {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    padding: 0;
    position: relative;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    z-index: 9999999; /* En üstte olsun */
}

.iyzico-success-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
}

.iyzico-success-icon {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.iyzico-success-icon svg {
    width: 45px;
    height: 45px;
}

.iyzico-success-checkmark {
    stroke: #4caf50;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: drawCheck 0.8s ease-out 0.3s both;
}

.iyzico-success-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.iyzico-success-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.iyzico-success-body {
    padding: 30px;
    text-align: center;
}

.iyzico-success-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.iyzico-success-message {
    color: #555555;
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 25px;
}

.iyzico-success-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.iyzico-success-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.iyzico-success-info-item:last-child {
    border-bottom: none;
}

.iyzico-success-info-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.iyzico-success-info-value {
    color: #212529;
    font-size: 14px;
    font-weight: 600;
}

.iyzico-success-countdown {
    margin-top: 20px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 8px;
    text-align: center;
}

.iyzico-success-countdown span {
    color: #856404;
    font-size: 13px;
    font-weight: 500;
}

.iyzico-success-footer {
    padding: 0 30px 30px;
}

.iyzico-success-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.iyzico-success-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.iyzico-success-button:active {
    transform: translateY(0);
}

.iyzico-success-powered {
    text-align: center;
    padding: 15px 30px;
    background: #f8f9fa;
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}

.iyzico-success-powered img {
    height: 20px;
    vertical-align: middle;
    margin-left: 5px;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes drawCheck {
    0% {
        stroke-dasharray: 0, 100;
    }
    100% {
        stroke-dasharray: 100, 0;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .iyzico-success-modal {
        max-width: 95%;
        border-radius: 15px;
    }
    
    .iyzico-success-header {
        padding: 30px 20px 20px;
    }
    
    .iyzico-success-icon {
        width: 70px;
        height: 70px;
    }
    
    .iyzico-success-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .iyzico-success-title {
        font-size: 24px;
    }
    
    .iyzico-success-subtitle {
        font-size: 14px;
    }
    
    .iyzico-success-body {
        padding: 20px;
    }
    
    .iyzico-success-footer {
        padding: 0 20px 20px;
    }
}

/* Loading animation for button */
.iyzico-success-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.iyzico-success-button.loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: buttonSpin 0.8s linear infinite;
}

@keyframes buttonSpin {
    to {
        transform: rotate(360deg);
    }
}
