/* 
-------------------------------------------------------------------
 CUSTOM ANIMATIONS
-------------------------------------------------------------------
*/

/* 1. Fade In Up (Used for Cards & Lists) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-up {
    animation-name: fadeInUp;
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

/* Staggered Delay for Lists */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }


/* 2. Pulse Effect (For 'Claim' or 'Deposit' Buttons) */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(246, 194, 62, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(246, 194, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 194, 62, 0); }
}

.pulse-btn {
    animation: pulse-gold 2s infinite;
}


/* 3. Preloader Animation */
.preloader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 4. Shimmer Effect (Loading Placeholders) */
.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px; 
    display: inline-block;
    position: relative; 
    animation-duration: 1s;
    animation-fill-mode: forwards; 
    animation-iteration-count: infinite;
    animation-name: placeholderShimmer;
    animation-timing-function: linear;
}

@keyframes placeholderShimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}