.ppe-pricing {
    --ppe-text: #fff;
    --ppe-muted: #a9a9a9;
    --ppe-border: #303030;
    --ppe-columns: 4;
    --ppe-mobile-gap: 16px;
    --ppe-mobile-card-width: 86%;
    --ppe-mobile-min-height: 480px;
    color: var(--ppe-text);
    width: 100%;
    box-sizing: border-box;
}

.ppe-pricing *, .ppe-pricing *::before, .ppe-pricing *::after { box-sizing: border-box; }

.ppe-periods {
    margin: 0 auto 60px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px;
    border-radius: 40px;
    background: #121212;
    max-width: 100%;
}

.ppe-period {
    border: 0;
    background: transparent;
    color: #fff;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    transition: .2s ease;
}

.ppe-period:hover { opacity: .9; }
.ppe-period.is-active { color: #111; }
.ppe-period-discount {
    color: #d76cff;
    font-size: .75em;
    font-weight: 700;
}
.ppe-period.is-active .ppe-period-discount { color: #c95dff; }

.ppe-plans-grid {
    display: grid;
    grid-template-columns: repeat(var(--ppe-columns), minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.ppe-plan-card {
    position: relative;
    min-width: 0;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: 16px;
    padding: 40px 20px 32px;
    background: #111;
    color: #fff;
}

.ppe-plan-card.is-featured {
    background: linear-gradient(135deg, #302b58 0%, #5c3c82 100%);
    border-color: #5d6cff;
}

.ppe-popular-badge {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: #105f62;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.ppe-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
}

.ppe-plan-title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
}

.ppe-rate-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 3px 5px 3px 12px;
    border: 1px solid #333;
    border-radius: 999px;
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}
.ppe-rate-badge strong {
    padding: 3px 7px;
    border-radius: 999px;
    background: #3c3c3c;
    color: #fff;
    font-size: 13px;
}

.ppe-price-area {
    min-height: auto;
    padding-top: 18px;
}
.ppe-price-state { display: none; }
.ppe-price-state.is-active { display: block; }

.ppe-discount {
    display: inline-block;
    padding: 4px 8px;
    margin-right: 8px;
    border-radius: 7px;
    background: #f5e8ff;
    color: #27212b;
    font-size: 14px;
    font-weight: 700;
}
.ppe-old-price {
    color: #929292;
    text-decoration: line-through;
    font-size: 18px;
    font-weight: 600;
}
.ppe-current-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 8px;
}
.ppe-price-current {
    color: #fff;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.8px;
}
.ppe-price-suffix {
    color: #8f8f8f;
    font-size: 17px;
    font-weight: 600;
}

.ppe-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 20px;
}
.ppe-divider span {
    height: 1px;
    flex: 1;
    background: #105f62;
}
.ppe-divider i {
    color: #105f62;
    font-style: normal;
    font-size: 16px;
}

.ppe-plan-description {
    color: #000;
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 18px;
    min-height: 100px;
    font-weight: 600;
}

.ppe-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ppe-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ppe-feature-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: #444;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.ppe-feature-icon svg { width: 11px; height: 11px; }
.ppe-feature-text {
    color: #b9b9b9;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.ppe-card-spacer { flex: 1; min-height: 34px; }

.ppe-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 18px;
    border: 1px solid #454545;
    border-radius: 30px;
    background: transparent;
    color: #fff;
    text-decoration: none !important;
    font-weight: 700;
    transition: .2s ease;
}
.ppe-button:hover { color: #fff; text-decoration: none; }
.ppe-button-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}
.ppe-featured-button-yes .ppe-plan-card.is-featured .ppe-button {
    border: 0;
    background: linear-gradient(90deg, #386bff 0%, #d66cff 100%);
}
.ppe-featured-button-yes .ppe-plan-card.is-featured .ppe-button:hover {
    filter: brightness(1.08);
}

.ppe-carousel-arrow, .ppe-carousel-dots { display: none; }

.ppe-included {
    margin-top: 56px;
    padding: 24px 24px 30px;
    border: 1px solid #2b2b2b0d;
    border-radius: 16px;
    background: #111;
}
.ppe-included-title {
    margin: 0 0 22px;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}
.ppe-included-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}
.ppe-included-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ppe-included-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    background: #444;
    color: #bbb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.ppe-included-item-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}
.ppe-included-desc {
    margin-top: 4px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .ppe-plan-card { min-height: 500px; }
    .ppe-card-head { align-items: flex-start; }
    /*.ppe-card-head { align-items: flex-start; flex-direction: column; }*/
    .ppe-rate-badge { align-self: flex-start; }
    .ppe-included-list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .ppe-pricing.ppe-mobile-carousel-yes .ppe-plans-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--ppe-mobile-gap);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        padding-bottom: 5px;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }
    .ppe-pricing.ppe-mobile-carousel-yes .ppe-plans-grid::-webkit-scrollbar { height: 5px; }
    .ppe-pricing.ppe-mobile-carousel-yes .ppe-plans-grid::-webkit-scrollbar-thumb {
        background: #575757;
        border-radius: 99px;
    }
    .ppe-pricing.ppe-mobile-carousel-yes .ppe-plan-card {
        flex: 0 0 var(--ppe-mobile-card-width);
        width: var(--ppe-mobile-card-width);
        scroll-snap-align: start;
        min-height: var(--ppe-mobile-min-height);
    }
    .ppe-pricing.ppe-mobile-carousel-no .ppe-plans-grid {
        grid-template-columns: 1fr;
    }
    .ppe-periods {
        margin-bottom: 22px;
        width: 100% !important;
        min-height: 58px;
        padding: 6px;
    }
    .ppe-period {
        min-height: 44px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
        gap: 5px;
    }
    .ppe-period-discount { font-size: 10px; }
    .ppe-plan-card {
        min-height: 500px;
        padding: 34px 16px 22px;
    }
    .ppe-plan-title { font-size: 21px; }
    .ppe-price-current { font-size: 32px; }
    .ppe-feature-text { font-size: 15px; }
    .ppe-included {
        margin-top: 30px;
        padding: 22px 16px 24px;
        margin-right: 20px;
    }
    .ppe-included-title { font-size: 19px; }
    .ppe-carousel-arrow {
        position: absolute;
        top: 50%;
        z-index: 4;
        width: 34px;
        height: 34px;
        transform: translateY(-50%);
        border: 1px solid #555;
        border-radius: 50%;
        background: #151515;
        color: #fff;
        cursor: pointer;
        display: none;
    }
    .ppe-carousel-arrow.ppe-is-visible { display: inline-flex; align-items: center; justify-content: center; }
    .ppe-carousel-prev { left: -8px; }
    .ppe-carousel-next { right: -8px; }
    .ppe-carousel-wrap { position: relative; }
    .ppe-carousel-dots {
        margin-top: 12px;
        display: flex;
        justify-content: center;
        gap: 6px;
    }
    .ppe-carousel-dots button {
        width: 6px;
        height: 6px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #555;
        cursor: pointer;
    }
    .ppe-carousel-dots button.is-active { width: 20px; border-radius: 20px; background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    .ppe-period, .ppe-button { transition: none; }
}
