:root {
    --countdownPrimary: #6366f1;
    --countdownSecondary: #8b5cf6;
    --countdownGlass: rgba(255, 255, 255, .1);
    --countdownShadow: 0 8px 32px rgba(31, 38, 135, .15);
}

@keyframes countdownPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.hq-countdown {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, var(--countdownPrimary), var(--countdownSecondary));
    border-radius: 1.5rem;
    box-shadow: var(--countdownShadow);
    backdrop-filter: blur(10px);
    transition: all .3s ease;
}
.hq-countdown-item {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--countdownGlass);
    border-radius: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform .3s ease;
}
.hq-countdown-item:hover {
    transform: translateY(-5px);
}
.hq-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: .5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.hq-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Ended state */
.hq-ended {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    animation: countdownPulse 1.5s infinite;
}
.hq-ended .hq-countdown-item {
    background: rgba(255, 255, 255, .15);
}
.hq-countdown-ended {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Dark mode toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--countdownGlass);
    padding: .75rem;
    border-radius: .75rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .1);
}
body.dark-mode {
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
}
body.dark-mode .hq-countdown {
    background: linear-gradient(145deg, #4f46e5, #7c3aed);
}
.hq-number {
    transition: transform .3s ease;
}
.hq-number-update {
    transform: scale(1.1);
    opacity: .8;
}

/* Responsive design */
@media (max-width: 1400px) {
    .hq-countdown {
        gap: 1rem;
        padding: 1rem;
    }
    .hq-countdown-item {
        padding: 1rem .5rem;
    }
    .hq-number {
        font-size: 2.5rem;
    }
    .hq-label {
        font-size: .7rem;
    }
}
@media (max-width: 1200px) {
    .hq-countdown {
        /*flex-direction: column;*/
        /*flex-wrap: wrap;*/
        gap: 1rem;
        padding: 1rem;
    }
    .hq-countdown-item {
        padding: 1rem .5rem;
    }
    .hq-number {
        font-size: 2rem;
    }
    .hq-label {
        font-size: .5rem;
    }
}