/* Animation styles extracted from styles.css to improve performance */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(86, 101, 247, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(86, 101, 247, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(86, 101, 247, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes blink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.2; }
    80%, 100% { transform: scale(1.3); opacity: 0; }
}

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

.shake {
    animation: shake 0.5s;
}

.points-display {
    animation: pulse 2s infinite;
}

/* Online users section */
.online-users-section {
    margin-bottom: 30px;
    text-align: center;
    background: var(--background-light);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.online-users-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    position: relative;
}

.online-users-counter i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    min-width: 80px;
}

.online-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    opacity: 0.1;
    pointer-events: none;
}

.online-activity {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.activity-dots {
    display: flex;
    margin-bottom: 10px;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    margin: 0 5px;
    opacity: 0.7;
}

.activity-dot:nth-child(1) { animation: blink 2.5s infinite 0.2s; }
.activity-dot:nth-child(2) { animation: blink 2.5s infinite 0.6s; }
.activity-dot:nth-child(3) { animation: blink 2.5s infinite 1.0s; }
.activity-dot:nth-child(4) { animation: blink 2.5s infinite 1.4s; }
.activity-dot:nth-child(5) { animation: blink 2.5s infinite 1.8s; }
.activity-dot:nth-child(6) { animation: blink 2.5s infinite 2.2s; }

/* Carousel section */
.live-users-section {
    margin: 60px 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.carousel {
    display: flex;
    gap: 20px;
    position: relative;
    transition: none;
}

.carousel-item {
    flex: 0 0 auto;
    min-width: 320px;
    background: var(--background-light);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.country-flag {
    font-size: 24px;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.redemption-details {
    font-size: 0.85rem;
    margin: 3px 0;
}

.reward-text {
    color: var(--secondary-color);
    font-weight: 500;
}

.time-ago {
    font-size: 0.75rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .carousel-item {
        min-width: 280px;
    }
}

/* Live redemption notification */
.live-redemption-container {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    width: 280px;
    max-height: 400px;
    overflow: hidden;
}

.redemption-notification {
    background: rgba(30, 41, 59, 0.9);
    border-radius: var(--radius);
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.redemption-notification.show {
    transform: translateX(0);
}

/* CPA offers */
.cpa-offers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.cpa-offer {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--background-light);
    border-radius: var(--radius);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cpa-offer:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.offer-icon {
    background: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.offer-icon i {
    font-size: 1.5rem;
    color: white;
}

.offer-details {
    flex: 1;
}

.offer-details h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.offer-details p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.offer-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.offer-button:hover {
    background: #6b4bd6;
    transform: scale(1.05);
}

#cpa-verify-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    width: 100%;
    margin-top: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#cpa-verify-btn:hover {
    background: var(--primary-dark);
}

/* Mobile responsive styles for CPA offers */
@media (max-width: 768px) {
    .cpa-offers-container {
        gap: 10px;
    }
    
    .cpa-offer {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .offer-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 10px;
    }
    
    .offer-details {
        margin-bottom: 10px;
    }
    
    .offer-details h4 {
        font-size: 1rem;
    }
    
    .offer-details p {
        font-size: 0.8rem;
    }
    
    .offer-button {
        width: 100%;
        padding: 8px 15px;
    }
}