/* === Helpers for size controls (non-breaking additions) === */
.view-pricing {
    --view-gap: 24px; /* gap استاتیک (قابل تغییر از کنترل) */
    --view-card-w: auto; /* عرض کارت اسلایدر در حالت Auto Width */
    --view-card-basis: calc((100% - (var(--view-gap) * 2)) / 3); /* پایه ستون در استاتیک (۳ ستونه) */
}

.view-pricing.view--slider .swiper-slide {
    width: var(--view-card-w);
}

.view-pricing.view--static .swiper-slide {
    flex: 1 1 var(--view-card-basis);
    max-width: var(--view-card-basis);
}


/* والد ویجت */
.view-pricing {
    direction: rtl;
    font-family: inherit;
    --nav-gap: 16px;
}


.view-pricing .swiper-wrapper {
    align-items: flex-end;
}

/* حالت ثابت وقتی disable=1 (≤3 آیتم) */
.view-pricing.view--static .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--view-gap); /* ← به‌جای 24px */
    align-items: flex-end;
}

@media (max-width: 1023.98px) {
    .view-pricing.view--static .swiper-slide {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* حالت اسلایدر */
.view-pricing.view--slider .view-swiper {
    overflow: hidden;
}

/* کارت (Flex داخلی) */
.view-pricing .view-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    padding: 24px 48px;
    min-height: 307px;
    border: 1px solid rgb(34 31 71 / 10%);
    width: unset;
}

.view-pricing .view-card::before {
    content: '';
    background: url("../img/pattern-white-background.png");
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 31px;
    display: block;
}

.view-pricing .view-card--hl {
    content: '';
    -webkit-mask: url("../img/Subtract.png") no-repeat bottom center / 100% 100%;
    mask: url("../img/Subtract.png") no-repeat bottom center / 100% 100%;

}

.view-pricing .view-card-border {
    border: 1px solid rgb(34 31 71 / 10%);
    position: absolute;
    left: 106px;
    top: 0px;
    width: 70px;
    height: 150px;
    display: block;
    z-index: 0;
    border-radius: 20px;
}

.view-pricing .view-card-border-1 {
    background: var(--view-accent-50);
    position: absolute;
    left: 0;
    top: 38.7%;
    width: 150px;
    height: 40px;
    display: block;
    z-index: 0;
    border-radius: 24px;
}

/* Badge */
.view-pricing .view-badge {
    position: absolute;
    top: 10px;
    left: 14px;
    background: #f4f5f9;
    color: #6c6f7b;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 12px;
}

/* Thumb */
.view-pricing .view-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    transform: translate(10%, 25%);
    border-radius: 24px;
}

.view-pricing .view-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header */
.view-pricing .view-card__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.view-pricing .view-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.view-pricing .view-card__price strong {
    font-size: 48px;
    line-height: 1;
    color: var(--view-secondary);
}

.view-pricing .view-card--hl .view-card__price strong {
    color: var(--view-primary);
}

.view-pricing .view-card__price span {
    font-size: 24px;
    color: var(--view-accent);
    font-weight: 700;
}

.view-pricing .view-card__title {
    color: var(--view-accent-300);
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
}

.view-pricing .view-sep {
    height: 1px;
    background: var(--view-accent-100);
    margin: 25px -15px 25px -25px;
    position: relative;
}

.view-pricing .view-sep:after {
    content: '';
    display: block;
    background: var(--view-accent-100);
    width: 10px;
    height: 10px;
    position: absolute;
    left: 0;
    top: -4.4px;
    border-radius: 100%;
}

.view-pricing .view-card--hl .view-sep {
    height: 1px;
    background: var(--view-accent-100);
    margin: 15px -15px 25px 100px;
}

.view-pricing .view-card--hl .view-sep:after {
    display: none;
}

/* Features */
.view-pricing .view-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.view-pricing .view-list li {
    color: var(--view-accent-300);
    font-size: 18px;
}

.view-pricing .view-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #cfd4e1;
}

/* Footer */
.view-pricing .view-card__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 24px 0 24px;
    width: calc(100% + 48px);
}

.view-pricing .view-arrows {
    display: flex;
    gap: 8px;
}

.view-pricing .view-prev, .view-pricing .view-next {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #eef0f6;
    position: relative;
}

.view-pricing .view-prev::before, .view-pricing .view-next::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    transform: translateY(-50%);
}

.view-pricing .view-prev::before {
    right: 50%;
    border-right-color: #6b7280;
    margin-right: -4px;
}

.view-pricing .view-next::before {
    left: 50%;
    border-left-color: #6b7280;
    margin-left: -4px;
}

/* CTA Button (gradient توسط کنترل‌ها قابل عوض شدن است) */
.view-pricing .view-btn {
    display: flex;
    padding: 12px 12px 12px 6px;
    align-items: center;
    justify-content: space-between;
    min-width: 142px;
    height: 44px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    color: var(--view-accent);
    background: var(--view-accent-50);
    transition: all 300ms;
}

.view-pricing .view-card:hover .view-btn {
    color: #fff;
    background-color: var(--view-secondary);
    box-shadow: 0px 12px 21px -11px var(--view-secondary);
    position: relative;
    z-index: 1;
}

.view-pricing .view-card:hover .view-btn:before {
    content: '';
    display: block;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/pattern-btn-background.png");
    mix-blend-mode: exclusion;

}

.view-pricing .view-card .view-btn svg path, .view-pricing .view-card.view-btn svg circle {
    transition: all 300ms;
}

.view-pricing .view-card:hover .view-btn svg circle {
    fill: #FBFFFF;
}

.view-pricing .view-card:hover .view-btn svg path {
    stroke: #fff;
}

/* Pagination */
.view-pricing .view-pagination {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.view-pricing .view-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd0dc;
    opacity: 1;
}

.view-pricing .view-pagination .swiper-pagination-bullet-active {
    background: #6b6bea;
}

/* موبایل */
@media (max-width: 1023.98px) {
    .view-pricing .view-card__price strong {
        font-size: 34px;
    }

    .view-pricing .view-btn {
        min-width: 132px;
        height: 42px;
    }
}

@media screen and (max-width: 768px) {
    .view-pricing .view-card-border {
        left: 94px;
    }

    .view-pricing .view-card__foot {
        justify-content: center;
        width: 100%;
    }


}
