.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.flip-card {
    position: relative;
    width: 120px;
    height: 140px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-color);
}

.flip-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.05) 50%, transparent 100%);
    pointer-events: none;
    border-radius: 16px;
}

.number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 5;
}

.flip-card.changing {
    animation: flip-scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flip-card.changing .number {
    animation: number-flip 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes flip-scale {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.08) rotateY(-5deg);
    }
    50% {
        transform: scale(0.95) rotateY(5deg);
    }
    75% {
        transform: scale(1.05) rotateY(-2deg);
    }
}

@keyframes number-flip {
    0% {
        transform: rotateX(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotateX(90deg) scale(0.8);
        opacity: 0;
        filter: blur(4px);
    }
    51% {
        transform: rotateX(-90deg) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

.unit-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.countdown-unit:hover .unit-label {
    color: var(--accent-color);
}