.hvc-section {
    --hvc-accent: var(--theme-primary, #4054d4);
    --hvc-text: #202124;
    --hvc-muted: #74767b;
    --hvc-border: #e7e8eb;
    --hvc-soft: #f7f8fa;
    --hvc-radius: 16px;
    padding-top: 28px;
    padding-bottom: 34px;
}

.hvc-section .hvc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.hvc-heading-wrap { min-width: 0; }

.hvc-heading {
    margin: 0;
    color: var(--hvc-text);
    font-size: clamp(26px, 2.35vw, 25px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.7px;
}

.hvc-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.hvc-type-btn,
.hvc-view-all {
    min-height: 40px;
    border: 1px solid var(--hvc-border);
    border-radius: 14px;
    background: #fff;
    color: var(--hvc-text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hvc-type-btn {
    padding: 0 20px;
    white-space: nowrap;
}

.hvc-type-btn:hover,
.hvc-type-btn:focus-visible,
.hvc-view-all:hover,
.hvc-view-all:focus-visible {
    border-color: var(--hvc-accent);
    color: var(--hvc-accent);
    outline: 0;
}

.hvc-type-btn:focus-visible,
.hvc-view-all:focus-visible {
    box-shadow: 0 0 0 3px rgba(64, 84, 212, .12);
}

.hvc-type-btn.is-active {
    border-color: var(--hvc-accent);
    color: var(--hvc-accent);
    background: rgba(64, 84, 212, .055);
}

.hvc-type-btn:disabled,
.hvc-view-all:disabled {
    cursor: wait;
    opacity: .62;
}

.hvc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.hvc-card {
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: var(--hvc-radius);
    transition: transform .22s ease;
}

.hvc-card:hover { transform: translateY(-3px); }

.hvc-card__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 108px;
    overflow: hidden;
    border: 1px solid var(--hvc-border);
    border-radius: var(--hvc-radius);
    background: #fff;
    transition: border-color .22s ease, box-shadow .22s ease;
}

.hvc-card:hover .hvc-card__image {
    border-color: #d9dbe0;
    box-shadow: 0 8px 24px rgba(22, 26, 35, .06);
}

.hvc-card__image img {
    width: 100%;
    height: 100%;
    padding: 13px 20px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.hvc-card__fallback {
    width: 74px;
    height: 46px;
    color: #a6a9b0;
}

.hvc-card__fallback svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.4;
}

.hvc-card__content {
    display: block;
    padding: 18px 8px 0;
    text-align: center;
}

.hvc-card__title {
    display: block;
    margin: 0;
    overflow: hidden;
    color: #2e3034;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hvc-card__count {
    display: block;
    margin-top: 7px;
    color: var(--hvc-muted);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
}

.hvc-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.hvc-footer[hidden],
.hvc-status[hidden] { display: none !important; }

.hvc-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 122px;
    padding: 0 20px;
}

.hvc-view-all i {
    font-size: 11px;
    transition: transform .2s ease;
}

.hvc-view-all.is-expanded i { transform: rotate(180deg); }

.hvc-status {
    margin-top: 26px;
    padding: 18px;
    border: 1px solid var(--hvc-border);
    border-radius: 14px;
    background: var(--hvc-soft);
    color: var(--hvc-muted);
    font-size: 14px;
    text-align: center;
}

.hvc-retry {
    margin-left: 8px;
    border: 0;
    background: transparent;
    color: var(--hvc-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.hvc-pill-skeleton,
.hvc-card-skeleton__image,
.hvc-card-skeleton__title,
.hvc-card-skeleton__meta {
    position: relative;
    overflow: hidden;
    background: #eff0f2;
}

.hvc-pill-skeleton::after,
.hvc-card-skeleton__image::after,
.hvc-card-skeleton__title::after,
.hvc-card-skeleton__meta::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
    animation: hvc-shimmer 1.25s infinite;
}

.hvc-pill-skeleton {
    width: 116px;
    height: 40px;
    border-radius: 14px;
}

.hvc-pill-skeleton.is-wide { width: 145px; }
.hvc-card-skeleton { min-width: 0; }

.hvc-card-skeleton__image {
    height: 108px;
    border-radius: var(--hvc-radius);
}

.hvc-card-skeleton__title {
    width: 44%;
    height: 15px;
    margin: 20px auto 0;
    border-radius: 6px;
}

.hvc-card-skeleton__meta {
    width: 28%;
    height: 10px;
    margin: 10px auto 0;
    border-radius: 5px;
}

@keyframes hvc-shimmer { 100% { transform: translateX(100%); } }

@media (max-width: 991.98px) {
    .hvc-section .hvc-head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .hvc-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .hvc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 767.98px) {
    .hvc-section {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .hvc-section .hvc-head {
        gap: 20px;
        margin-bottom: 30px;
    }

    .hvc-heading {
        font-size: 20px;
        line-height: 1.18;
        letter-spacing: -0.55px;
    }

    .hvc-actions { gap: 10px; }

    .hvc-type-btn {
        min-height: 38px;
        padding: 0 17px;
        border-radius: 13px;
        font-size: 13px;
    }

    .hvc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 18px;
    }

    .hvc-card__image,
    .hvc-card-skeleton__image {
        height: 108px;
        border-radius: 14px;
    }

    .hvc-card__image img { padding: 12px 14px; }
    .hvc-card__content { padding-top: 17px; }
    .hvc-card__title { font-size: 15px; }

    .hvc-card__count {
        margin-top: 6px;
        font-size: 12px;
    }

    .hvc-footer { margin-top: 26px; }
}

@media (max-width: 379.98px) {
    .hvc-heading { font-size: 27px; }
    .hvc-grid { gap: 18px 12px; }

    .hvc-card__image,
    .hvc-card-skeleton__image { height: 102px; }

    .hvc-card__image img { padding-inline: 10px; }
    .hvc-card__title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .hvc-pill-skeleton::after,
    .hvc-card-skeleton__image::after,
    .hvc-card-skeleton__title::after,
    .hvc-card-skeleton__meta::after { animation: none; }

    .hvc-card,
    .hvc-card__image,
    .hvc-type-btn,
    .hvc-view-all,
    .hvc-view-all i { transition: none; }
}
