.jp-groups-slider {
    position: relative;
    padding: 12px 0;
}

.jp-groups-slider__header {
    margin-bottom: 16px;
}

.jp-groups-slider__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #101827;
}

.jp-groups-slider__shell {
    position: relative;
    padding: 20px 20px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 20px 40px rgba(16, 24, 39, 0.12);
    backdrop-filter: blur(22px);
}

.jp-groups-slider__nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.jp-groups-slider__nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(16, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #101827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jp-groups-slider__nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(16, 24, 39, 0.18);
}

.jp-groups-slider__nav-btn:focus {
    outline: 2px solid rgba(16, 24, 39, 0.4);
    outline-offset: 2px;
}

.jp-groups-slider__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    touch-action: pan-y;
}

.jp-groups-slider__track > * {
    scroll-snap-align: start;
}

.jp-groups-card {
    flex: 0 0 min(360px, 82vw);
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 36px rgba(16, 24, 39, 0.18);
}

.jp-groups-card--green .jp-groups-card__top {
    background: linear-gradient(135deg, rgba(0, 204, 192, 0.95), rgba(0, 204, 192, 0.75));
}

.jp-groups-card--red .jp-groups-card__top {
    background: linear-gradient(135deg, rgba(255, 72, 88, 0.95), rgba(255, 72, 88, 0.75));
}

.jp-groups-card__top {
    padding: 28px 24px 44px;
    text-align: center;
    color: #fff;
}

.jp-groups-card__name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.jp-groups-card__avatars {
    display: flex;
    justify-content: center;
    margin-top: -24px;
    margin-bottom: 12px;
}

.jp-groups-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #101827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    background-size: cover;
    background-position: center;
}

.jp-groups-card__avatar + .jp-groups-card__avatar {
    margin-left: -14px;
}

.jp-groups-card__base {
    margin: 0 18px 18px;
    padding: 18px 16px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 24px rgba(16, 24, 39, 0.12);
    text-align: center;
}

.jp-groups-card__price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 700;
    color: #101827;
    margin-bottom: 14px;
    justify-content: center;
}

.jp-groups-card__price-value {
    font-size: 1.6rem;
}

.jp-groups-card__price-period {
    font-size: 0.9rem;
    color: rgba(16, 24, 39, 0.7);
}

.jp-groups-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 999px;
    background: #101827;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jp-groups-card__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(16, 24, 39, 0.25);
}

@media (max-width: 768px) {
    .jp-groups-slider__nav {
        display: none;
    }

    .jp-groups-slider__shell {
        padding: 16px 16px 22px;
    }

    .jp-groups-card {
        flex-basis: 78vw;
    }
}
