/* ==========================================
   STEP 8 - PAYMENT SUCCESS
   Phase 18 - Success Confirmation
   ========================================== */

.payment-success-modal .modal-content {
    max-width: 600px;
}

/* Success Icon */
.success-icon-large {
    width: 100px;
    height: 100px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPulse 0.6s ease-out;
}

.success-icon-large svg {
    width: 50px;
    height: 50px;
    color: var(--color-primary);
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Success Message */
.payment-success-title {
    font-size: var(--font-size-2xl) !important;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
}

.payment-success-message {
    text-align: center;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Order Details Card */
.order-details {
    background: var(--color-gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.order-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.order-details-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.order-details-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.order-details-value {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.order-number {
    color: var(--color-primary);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-lg);
}

/* Email Confirmation Box */
.email-confirmation-box {
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
}

.email-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-icon-wrapper svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.email-confirmation-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Next Steps Box */
.next-steps-box {
    background: var(--color-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.next-steps-title {
    font-size: var(--font-size-base) !important;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-steps-title svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.next-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.next-steps-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 16px;
}

/* Success Actions */
.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.success-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
}

.success-btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.success-btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.success-btn-secondary:hover {
    background: rgba(108, 92, 231, 0.05);
}

.success-btn svg {
    width: 20px;
    height: 20px;
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    z-index: 10000;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.confetti:nth-child(2n) {
    background: var(--color-orange);
}

.confetti:nth-child(3n) {
    background: var(--color-success);
}

.confetti:nth-child(4n) {
    background: var(--color-primary);
}

.confetti:nth-child(5n) {
    background: var(--color-error);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .payment-success-modal .modal-content {
        max-width: 100%;
        margin: 20px;
    }

    .success-icon-large {
        width: 80px;
        height: 80px;
    }

    .success-icon-large svg {
        width: 40px;
        height: 40px;
    }

    .payment-success-title {
        font-size: 24px !important;
    }

    .order-details-value {
        font-size: 14px;
    }

    .order-number {
        font-size: 16px;
    }
}