/* payment-celebration.css */

/* Overlay */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

    .celebration-overlay.show {
        opacity: 1;
    }

/* Modal Box */
.celebration-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.celebration-overlay.show .celebration-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Success Checkmark Animation */
.success-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 30px auto 15px;
    z-index: 1;
}

.success-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #7efcb3;
    border-radius: 50%;
    transform: scale(0);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-icon-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.success-icon-path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheck 0.4s ease-out 0.3s forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes drawCheck {
    0% {
        stroke-dashoffset: 48;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.success-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgb(25, 202, 73, 0.73) 0%, rgb(13, 215, 67, 0.59) 70%);
    border-radius: 50%;
    animation: pulseGlow 2s infinite 0.5s;
    z-index: -1;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* Titles and Text */
.celebration-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.celebration-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* Booking Summary Card */
.summary-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 0 24px 20px;
    padding: 20px;
    position: relative;
}

.ticket-number-box {
    text-align: center;
    /*    border-bottom: 1px dashed #d1d5db;*/
}

.ticket-number-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.ticket-number-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 2px;
    margin-top: 5px;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 8px;
}

    .payment-badge .dot {
        width: 6px;
        height: 6px;
        background: #22c55e;
        border-radius: 50%;
        margin-right: 6px;
        animation: blink 1.5s infinite;
    }

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Action Buttons & Countdown */
.celebration-actions {
    padding: 0 24px 24px;
    text-align: center;
}

.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
}

.countdown-timer-circle {
    position: relative;
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

    .countdown-timer-circle svg {
        transform: rotate(-90deg);
        width: 24px;
        height: 24px;
    }

    .countdown-timer-circle circle {
        fill: none;
        stroke-width: 3;
    }

.countdown-bg {
    stroke: #e5e7eb;
}

.countdown-progress {
    stroke: #3b82f6;
    stroke-dasharray: 63; /* 2 * PI * r (r=10) */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: #3b82f6;
}

.btn-celebration {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary-celeb {
    background: #2563eb;
    color: white;
}

    .btn-primary-celeb:hover {
        background: #1d4ed8;
        color: white;
    }

.btn-secondary-celeb {
    background: #fcd79c;
    color: #374151;
}

    .btn-secondary-celeb:hover {
        background: #fbe386;
        color: #1f2937;
    }

.secondary-actions-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .secondary-actions-row .btn-celebration {
        flex: 1;
        font-size: 1.2rem;
        padding: 15px;
        margin-bottom: 0;
    }

/* Confetti Canvas */
#celebration-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100000;
}
