/* Lottery Countdown Styles */
.lottery-countdown-card {
    background: linear-gradient(135deg, #5c09a0 0%, #7b1fa2 50%, #5c09a0 100%);
    border-radius: 20px;
    border: 1.5px solid #ffc000;
}

.countdown-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #151132
}

.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 192, 0, 0.1) 0%,
            transparent 25%,
            transparent 75%,
            rgba(255, 192, 0, 0.1) 100%);
    animation: shimmerOverlay 4s linear infinite;
}

.countdown-title {
    color: #ffc000;
    font-weight: 900;
    text-shadow:
        0 0 10px rgba(255, 192, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.5rem;
}

.countdown-subtitle {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.lottery-icon {
    color: #ffc000;
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 192, 0, 0.8));
}

.countdown-timer-container {
    margin: 20px 0;
}

.countdown-timer-grid {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-item {
    background: #241d48;
    border-radius: 15px;
    padding: 10px 11px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: countdownFlip 1s ease-in-out infinite;
    min-width: 69px;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #d9c9e7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.countdown-label {
    font-size: 0.5rem;
    font-weight: 700;
    color: #a374c9;
    margin-top: 5px;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 1rem;
    font-weight: 900;
    color: #ffc000;
    text-shadow: 0 0 10px rgba(255, 192, 0, 0.8);
    animation: separatorBlink 2s ease-in-out infinite;
}

.jackpot-amount {
    background: rgba(255, 192, 0, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 192, 0, 0.3);
}

.amount-label {
    color: #ffc000;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffc000;
    text-shadow:
        0 0 20px rgba(255, 192, 0, 1),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 10px 0;
    animation: titlePulse 2s ease-in-out infinite;
}

.amount-subtitle {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    animation: textFlicker 2s ease-in-out infinite;
}

.lottery-cta-btn {
    background: linear-gradient(145deg, #ffc000, #ff8f00);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #5c09a0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 192, 0, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lottery-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 192, 0, 0.8);
    background: linear-gradient(145deg, #fff000, #ffc000);
}

/* Floating Coins Animation */
.floating-coins {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.coin {
    position: absolute;
    font-size: 1.5rem;
    animation: floatCoin 6s ease-in-out infinite;
    opacity: 0.7;
}

.coin-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.coin-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.coin-3 {
    top: 30%;
    right: 25%;
    animation-delay: 3s;
}

.coin-4 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4.5s;
}

/* Animations */
@keyframes cardGlow {
    0% {
        box-shadow:
            0 20px 40px rgba(92, 9, 160, 0.4),
            0 0 30px rgba(255, 192, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    100% {
        box-shadow:
            0 25px 50px rgba(92, 9, 160, 0.6),
            0 0 50px rgba(255, 192, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

@keyframes shimmerOverlay {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes titlePulse {

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

    50% {
        transform: scale(1.05);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(-5deg);
    }

    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

@keyframes countdownFlip {

    0%,
    100% {
        transform: rotateY(0deg) scale(1);
    }

    50% {
        transform: rotateY(5deg) scale(1.02);
    }
}

@keyframes separatorBlink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes textFlicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes floatCoin {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
    }

    75% {
        transform: translateY(-15px) rotate(270deg);
    }
}

.pulsing-gold {
    animation: goldPulse 1.5s ease-in-out infinite;
}

@keyframes goldPulse {

    0%,
    100% {
        text-shadow:
            0 0 20px rgba(255, 192, 0, 1),
            2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    50% {
        text-shadow:
            0 0 30px rgba(255, 192, 0, 1),
            0 0 40px rgba(255, 192, 0, 0.8),
            2px 2px 4px rgba(0, 0, 0, 0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-title {
        font-size: 1.8rem;
    }

    .countdown-number {
        font-size: 1rem;
    }

    .amount-value {
        font-size: 2rem;
    }

    .countdown-item {
        padding: 10px 15px;
        min-width: 30px;
    }
}