/* ══════════════════════════════════════════
   PABBLY PRICING PAGE — REDESIGN OVERRIDE
   ══════════════════════════════════════════ */

/* ── Base ── */
body {
    font-family: 'Outfit', 'Nunito Sans', sans-serif !important;
    background: #f5f6fa !important;
}

/* ── Section Hero Headers (new unified class) ── */
.pricing-section-hero {
    margin-top: 0;
    padding: 60px 40px 200px;
    position: relative;
}

.pricing-section-hero:first-of-type {
    margin-top: 90px;
}

.pricing-section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.pricing-section-hero h1 {
    font-family: 'Outfit', 'Nunito', sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    color: #1a1a2e !important;
    letter-spacing: -0.5px;
}

.hero-bg-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.hero-bg-teal {
    background: linear-gradient(135deg, #ccfbf1 0%, #a7f3d0 100%);
}

.hero-bg-purple {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.hero-bg-amber {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.hero-bg-rose {
    background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
}

/* ── Override old section headers ── */
.cp-pricing-top {
    padding: 60px 40px 200px !important;
    position: relative;
}

.cp-pricing-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cp-pricing-top h1 {
    font-family: 'Outfit', 'Nunito', sans-serif !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
}

/* ── Unified Cards Section ── */
.cp-cards-section {
    position: relative;
    margin-top: -160px !important;
    padding: 0 20px 60px !important;
    z-index: 5;
}

/* ── All Cards Unified ── */
.cp-plan-card,
.plan-card {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07) !important;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.cp-plan-card:hover,
.plan-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13) !important;
}

.card-top {
    background: #fff !important;
    padding: 32px 28px 26px !important;
}

.card-top h2 {
    font-family: 'Outfit', 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

.price {
    font-family: 'Outfit', 'Nunito', sans-serif !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
}

.cp-btn-get-started {
    border-radius: 12px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    transition: all 0.25s ease !important;
}

.cp-btn-get-started:hover {
    transform: scale(1.02);
}

.card-features {
    background: #f8f9fb !important;
    border-top: 1px solid #f0f0f0 !important;
    padding: 24px 28px 30px !important;
}

.btn-view-details {
    color: #2563eb !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
}

.btn-view-details:hover {
    color: #1d4ed8 !important;
}

.cp-feature-item {
    font-size: 0.9rem !important;
    color: #333 !important;
}

/* ── Access / Price Wrap ── */
.access-title {
    font-family: 'Outfit', 'Nunito', sans-serif !important;
    font-weight: 700 !important;
}

.btn-buy-now {
    border-radius: 12px !important;
    background: #2563eb !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
}

.btn-buy-now:hover {
    background: #1d4ed8 !important;
}

.pabbly-features {
    background: #f8f9fb !important;
    border-top: 1px solid #f0f0f0 !important;
    padding: 24px 28px !important;
}

.app-name {
    font-family: 'Outfit', 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

/* ── Chatflow / plan-card ── */
.plan-card__top {
    padding: 36px 28px 26px !important;
    background: #fff !important;
}

.plan-card__name {
    font-family: 'Outfit', 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

.plan-card__price {
    font-family: 'Outfit', 'Nunito', sans-serif !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
}

.btn-get-started {
    border-radius: 12px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
}

.plan-card__features {
    background: #f8f9fb !important;
    border-top: 1px solid #f0f0f0 !important;
    padding: 24px 28px 30px !important;
}

.check-icon svg {
    stroke: #16a34a !important;
}

/* ── Pricing Hero (Chatflow) ── */
.pricing-hero {
    padding: 60px 40px 200px !important;
    position: relative;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.pricing-hero h1 {
    font-family: 'Outfit', 'Nunito', sans-serif !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
}

.cards-section {
    margin-top: -160px !important;
    padding: 0 20px 60px !important;
}

/* ── Spacing Between Sections ── */
.pricing-spacer {
    height: 80px;
}

/* ══════ NEW PABBLY BILLING PRICING CARD ══════ */
.pb-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.pb-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
}

.pb-card.featured {
    border: 2px solid #2563eb;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
}

.pb-card.featured:hover {
    box-shadow: 0 20px 56px rgba(37, 99, 235, 0.18);
}

.pb-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px 0;
    letter-spacing: 0.5px;
}

.pb-badge i {
    color: #fbbf24;
    margin-right: 2px;
}

.pb-top {
    padding: 36px 28px 28px;
    text-align: center;
    background: #fff;
}

.pb-name {
    font-family: 'Outfit', 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a1a2e;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.pb-icon-circle {
    display: inline-flex;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #f0fdf4;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.pb-icon-circle img {
    width: 60px;
    height: 60px;
}

.pb-highlights {
    padding: 0 10px;
    margin-bottom: 14px;
}

.pb-hi-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #333;
    margin-bottom: 5px;
    justify-content: center;
}

.pb-hi-item .hi-off {
    color: #ef4444;
}

.pb-hi-item .hi-on {
    color: #16a34a;
}

.pb-hi-item .hi-text-bold {
    color: #1a1a2e;
    font-weight: 800;
}

.pb-hi-item.featured-hi .hi-text-bold {
    color: #1a1a2e;
}

.pb-hi-item.featured-hi .hi-text-red-ul {
    color: #ff3333;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    font-weight: 800;
}

.pb-price-box {
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    padding: 18px 12px;
    margin: 12px 0;
    background: #fafafa;
    text-align: center;
}

.pb-old-price {
    font-size: 0.88rem;
    color: #888;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.pb-price {
    font-family: 'Outfit', 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    color: #1a1a2e;
    line-height: 1;
}

.pb-period {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

.pb-savings {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a2e;
    display: inline-block;
    margin-top: 10px;
}

.pb-cta {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.pb-cta--outline {
    background: transparent;
    border: 2px solid #1a1a2e;
    color: #1a1a2e;
}

.pb-cta--outline:hover {
    background: #1a1a2e;
    color: #fff;
    transform: scale(1.02);
}

.pb-cta--blue {
    background: #2563eb;
    color: #fff;
}

.pb-cta--blue:hover {
    background: #1d4ed8;
    transform: scale(1.02);
    color: #fff;
}

.pb-inr {
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 700;
    margin-top: 12px;
    display: block;
    text-align: center;
    text-transform: uppercase;
}

.pb-features {
    background: #f8f9fb;
    padding: 24px 28px 30px;
    flex: 1;
    border-top: 1px solid #f0f0f0;
}

.pb-feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
    font-size: 0.88rem;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.pb-feat:last-child {
    margin-bottom: 0;
}

.pb-feat.off {
    color: #bbb;
}

.pb-feat-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.pb-feat-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pb-feat-icon.ok svg {
    stroke: #16a34a;
}

.pb-feat-icon.no svg {
    stroke: #ef4444;
}

/* ── Responsive ── */
@media (max-width: 991px) {

    .pricing-section-hero,
    .cp-pricing-top {
        padding: 50px 20px 220px !important;
    }

    .pricing-hero {
        padding: 50px 20px 220px !important;
        text-align: center;
    }

    .cp-cards-section,
    .cards-section {
        margin-top: -180px !important;
    }
}

@media (max-width: 767px) {

    .pricing-section-hero,
    .cp-pricing-top {
        padding: 44px 16px 260px !important;
        text-align: center;
    }

    .pricing-hero {
        padding: 44px 16px 260px !important;
    }

    .billing-toggle-wrap {
        justify-content: center !important;
        margin-top: 16px;
    }

    .cp-cards-section,
    .cards-section {
        margin-top: -220px !important;
    }
}

@media (max-width: 575px) {

    .card-top,
    .plan-card__top,
    .pb-top {
        padding: 28px 20px 22px !important;
    }

    .card-features,
    .plan-card__features,
    .pb-features,
    .pabbly-features {
        padding: 20px 20px 26px !important;
    }

    .cp-cards-section,
    .cards-section {
        padding: 0 10px 30px !important;
    }
}