/* =====================================================
   RECENT BUSINESS ACTIVITY
===================================================== */

.homepage-activity {
    width: min(100%, 680px);
    margin: 24px auto 0;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #DCEFE0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 80, 35, 0.08);
    text-align: center;
}

/* Daily Counts */

.homepage-activity__counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.homepage-activity__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 7px 5px;
    border-right: 1px solid #DCE5EA;
}

.homepage-activity__count:last-child {
    border-right: 0;
}

.homepage-activity__count span {
    color: #64748B;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .45px;
}

.homepage-activity__count strong {
    display: block;
    color: #15803D;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    transform-origin: center bottom;
}

/* Today Highlight */

.homepage-activity__count--today strong {
    color: #008020;
}

/* Number Roll Animation */

.homepage-activity__count strong.is-rolling {
    animation: homepage-number-roll 0.65s ease;
}

@keyframes homepage-number-roll {
    0% {
        opacity: 0;
        transform: translateY(18px) rotateX(-45deg);
    }

    55% {
        opacity: 1;
        transform: translateY(-3px) rotateX(8deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Recent Businesses */

.homepage-activity__recent {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E5EEE7;
}

.homepage-activity__recent-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #006B25;
    font-size: 13px;
    font-weight: 800;
}

.homepage-activity__recent-heading i {
    font-size: 13px;
}

/* Business Name Rotation Area */

.homepage-activity__businesses {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 9px;
    overflow: hidden;
}

/* Individual Business Name */

.homepage-activity__business {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: 8px 20px;
    color: #075B2A;
    background: linear-gradient(
        135deg,
        #F0FDF4,
        #DCFCE7
    );
    border: 1px solid #BBE7C8;
    border-radius: 30px;
    box-shadow: 0 3px 9px rgba(21, 128, 61, 0.08);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Business Slide Animation */

.homepage-activity__businesses.is-changing
.homepage-activity__business {
    animation: homepage-business-slide 0.55s ease both;
}

.homepage-activity__business-name {
    display: inline;
}

.homepage-activity__business-city {
    display: inline-block;
    margin-left: 8px;
    padding-left: 8px;
    color: #15803D;
    border-left: 1px solid #A7DDB8;
    font-size: 11px;
    font-weight: 800;
}

@keyframes homepage-business-slide {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }

    65% {
        opacity: 1;
        transform: translateY(-2px);
    }

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

/* Empty State */

.homepage-activity__empty {
    color: #64748B;
    font-size: 12px;
}

/* Mobile Responsive */

@media (max-width: 576px) {

    .homepage-activity {
        margin-top: 20px;
        padding: 10px;
        border-radius: 14px;
    }

    .homepage-activity__count {
        padding: 7px 3px;
    }

    .homepage-activity__count span {
        font-size: 8px;
        letter-spacing: 0;
    }

    .homepage-activity__count strong {
        font-size: 21px;
    }

    .homepage-activity__recent-heading {
        font-size: 12px;
    }

    .homepage-activity__business {
        max-width: 100%;
        padding: 7px 13px;
        font-size: 12px;
    }

}