@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn { animation: fadeIn 0.5s ease-out; }

@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
.animate-float { animation: float 3s ease-in-out infinite; }

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}
body {
    background: linear-gradient(to bottom, #0a0e27 0%, #1a1a3e 50%, #2d1b4e 100%);
    position: relative;
    overflow-x: hidden;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    z-index: 1000;
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}
.back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}
.back-button svg { transition: transform 0.3s ease; }
.back-button:hover svg { transform: translateX(-3px); }

/* ===== REDIRECT LOADING OVERLAY ===== */
#redirectOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 50%, #2d1b4e 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
#redirectOverlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* Orbit ring loader */
.orbit-container {
    position: relative;
    width: 100px;
    height: 100px;
}
.orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}
.orbit-ring:nth-child(1) {
    border-top-color: #a855f7;
    border-right-color: #a855f7;
    animation: spin 1.2s linear infinite;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}
.orbit-ring:nth-child(2) {
    inset: 12px;
    border-bottom-color: #6366f1;
    border-left-color: #6366f1;
    animation: spin 0.9s linear infinite reverse;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}
.orbit-ring:nth-child(3) {
    inset: 24px;
    border-top-color: #c084fc;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 6px rgba(192, 132, 252, 0.4);
}
.orbit-core {
    position: absolute;
    inset: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #a855f7, #6366f1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 40px rgba(168, 85, 247, 0.3);
    animation: corePulse 1.5s ease-in-out infinite;
}
@keyframes corePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 40px rgba(168, 85, 247, 0.3); }
    50% { transform: scale(1.15); box-shadow: 0 0 30px rgba(168, 85, 247, 1), 0 0 60px rgba(168, 85, 247, 0.5); }
}

/* Text + dots */
.redirect-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e9d5ff;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a855f7;
    animation: dotBounce 1.2s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

/* Progress bar */
.progress-bar-wrap {
    width: 220px;
    height: 4px;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.2);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #a855f7, #6366f1, #c084fc);
    background-size: 200% 100%;
    animation: progressSlide 1.8s ease-in-out infinite, shimmer 2s linear infinite;
    width: 60%;
}
@keyframes progressSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(280%); }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.redirect-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.5);
    animation: particleFloat 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(1.3); opacity: 0.2; }
}                                                    </svg>
            
