.tf-vip-cards-widget-wrap {
    margin-bottom: 22px;
    padding: 26px 24px;
    border-radius: var(--main-radius, 8px);
    background: var(--main-bg-color, #fff);
    box-shadow: none;
}

.tf-vip-cards-widget-wrap.is-full-width-bg {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    padding-right: max(24px, calc((100vw - var(--mian-max-width, 1200px)) / 2));
    padding-left: max(24px, calc((100vw - var(--mian-max-width, 1200px)) / 2));
    border-radius: 0;
}

.tf-vip-cards-widget {
    width: 100%;
    max-width: var(--mian-max-width, 1200px);
    margin: 0 auto;
}

.tf-vip-cards-widget * {
    box-sizing: border-box;
}

.tf-vip-cards-inner {
    display: grid;
    grid-template-columns: minmax(230px, 0.78fr) minmax(0, 2.9fr);
    gap: 26px;
    align-items: stretch;
}

.tf-vip-cards-inner.no-intro {
    grid-template-columns: minmax(0, 1fr);
}

.tf-vip-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 24px 4px 22px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tf-vip-intro-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--main-color, #333);
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
}

.tf-vip-intro-title i,
.tf-vip-intro-title > .icon {
    margin-top: 0;
    color: var(--focus-color, #2b7cff);
    width: 22px;
    height: 22px;
    font-size: 22px;
    flex: none;
}

.tf-vip-intro-desc {
    color: var(--muted-color, #6c757d);
    font-size: 14px;
    line-height: 1.95;
}

.tf-vip-intro-desc p {
    margin: 0 0 12px;
}

.tf-vip-intro-desc p:last-child {
    margin-bottom: 0;
}

.tf-vip-plans {
    display: grid;
    grid-template-columns: repeat(var(--tf-vip-cols, 3), minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
    justify-content: center;
    align-items: stretch;
}

.tf-vip-plan {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    height: 100%;
    min-height: 0;
    justify-self: center;
    padding: 16px 18px 18px;
    border: 1px solid rgba(125, 139, 156, 0.16);
    border-radius: 8px;
    background: var(--main-bg-color, #fff);
    box-shadow: 0 2px 12px rgba(20, 36, 71, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tf-vip-cards-widget[style*="--tf-vip-cols:4"] .tf-vip-cards-inner {
    grid-template-columns: minmax(190px, 0.62fr) minmax(0, 3.38fr);
    gap: 20px;
}

.tf-vip-cards-widget[style*="--tf-vip-cols:4"] .tf-vip-plans {
    gap: clamp(10px, 1vw, 16px);
}

.tf-vip-cards-widget[style*="--tf-vip-cols:4"] .tf-vip-plan {
    max-width: none;
    padding: 14px 14px 16px;
}

.tf-vip-cards-widget[style*="--tf-vip-cols:4"] .tf-vip-price {
    min-height: 84px;
}

.tf-vip-cards-widget[style*="--tf-vip-cols:4"] .tf-vip-price span {
    font-size: 22px;
}

.tf-vip-cards-widget[style*="--tf-vip-cols:4"] .tf-vip-price strong {
    font-size: 44px;
}

.tf-vip-cards-widget[style*="--tf-vip-cols:4"] .tf-vip-features li {
    font-size: 13px;
    line-height: 1.42;
}

.tf-vip-plan:hover {
    border-color: rgba(125, 139, 156, 0.22);
    box-shadow: 0 4px 16px rgba(20, 36, 71, 0.1);
}

.tf-vip-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 30px;
}

.tf-vip-plan-title {
    min-width: 0;
    color: var(--main-color, #333);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: none;
    white-space: nowrap;
}

.tf-vip-badge .icon,
.tf-vip-badge i {
    width: 1em;
    height: 1em;
    flex: none;
}

.tf-vip-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    min-height: 94px;
    color: var(--focus-color, #2b7cff);
}

.tf-vip-plan.level-2 .tf-vip-price {
    color: #d99a28;
}

.tf-vip-price span {
    margin-right: 4px;
    font-size: 26px;
    line-height: 1;
    font-weight: 400;
}

.tf-vip-price strong {
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
}

.tf-vip-features {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tf-vip-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 7px;
    color: var(--muted-color, #666);
    font-size: 14px;
    line-height: 1.45;
}

.tf-vip-features li i {
    width: 16px;
    margin-top: 4px;
    text-align: center;
    color: var(--focus-color, #2b7cff);
    font-size: 12px;
    flex: none;
}

.tf-vip-plan.level-2 .tf-vip-features li i {
    color: #d99a28;
}

.tf-vip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    margin-top: 14px;
    text-decoration: none;
}

.tf-vip-button.is-disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.72;
    filter: grayscale(0.25);
}

@media (max-width: 991px) {
    .tf-vip-cards-inner {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 14px;
    }

    .tf-vip-intro {
        min-height: auto;
        height: auto;
        justify-content: center;
        padding: 18px;
        border: 1px solid rgba(125, 139, 156, 0.14);
        border-radius: var(--main-radius, 8px);
        background: var(--main-bg-color, #fff);
        box-shadow: 0 2px 12px rgba(20, 36, 71, 0.06);
    }

    .tf-vip-intro-title {
        margin-bottom: 12px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .tf-vip-cards-widget-wrap {
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .tf-vip-cards-widget-wrap.is-full-width-bg {
        left: auto;
        width: auto;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .tf-vip-plans {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        justify-content: stretch;
    }

    .tf-vip-plan.is-mobile-hide {
        display: none;
    }

    .tf-vip-plan {
        width: 100%;
        max-width: none;
        min-height: auto;
        justify-self: stretch;
        padding: 16px;
    }

    .tf-vip-price {
        min-height: 88px;
    }

    .tf-vip-price span {
        font-size: 20px;
    }

    .tf-vip-price strong {
        font-size: 38px;
    }

    .tf-vip-features li {
        gap: 6px;
        margin-bottom: 7px;
        font-size: 12px;
        line-height: 1.45;
    }

    .tf-vip-button {
        min-height: 40px;
        margin-top: 14px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 420px) {
    .tf-vip-plan-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tf-vip-badge {
        align-self: flex-start;
    }

    .tf-vip-plan {
        padding: 15px;
    }

    .tf-vip-plan-title {
        font-size: 14px;
    }

    .tf-vip-badge {
        font-size: 11px;
    }

    .tf-vip-price {
        min-height: 80px;
    }

    .tf-vip-price span {
        font-size: 16px;
    }

    .tf-vip-price strong {
        font-size: 32px;
    }
}
