.stats-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 1px rgba(0, 0, 0, 0.08);
    height: auto;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.4rem;
}

.refresh-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s;
}

.refresh-btn:hover {
    transform: rotate(180deg);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 3px;
}

.counter-item {
    text-align: center;
    padding: 5px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.03);
}

.counter-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.counter-value {
    font-size: 1.0rem;
    font-weight: bold;
}

.animated-bg {
    background: linear-gradient(-45deg, var(--primary), var(--success), var(--warning), var(--primary));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.progress {
    height: 8px;
    border-radius: 4px;
    margin-top: 15px;
}

.main-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.main-title:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--primary);
    left: 0;
    bottom: -8px;
    border-radius: 2px;
}

.spinner-grow {
    width: 1rem;
    height: 1rem;
}