/* PRICING SECTION STYLING */
.pricing-swiper {
    padding-bottom: 50px !important;
    overflow: hidden;
}

/* Ensure Swiper slides stretch equal height */
.pricing-swiper .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
}

.pricing-swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
}

/* Base Custom Card Layout */
.custom-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between; /* Equal distribution */
    width: 100%;
    height: 100%; /* Forces cards to expand fully */
    box-sizing: border-box;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-premium {
    border: 2px solid #a855f7 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f9f5ff 100%);
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #6366f1;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-glow {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
}

.price-sub {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Content Area Takes Full Available Height */
.plan-features {
    margin: 25px 0;
    flex-grow: 1; /* Pushes the button to the bottom */
    padding-left: 0;
    list-style: none;
}

.plan-features li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #334155;
    display: flex;
    align-items: center;
}

.plan-features i {
    margin-right: 12px;
    font-size: 1.1rem;
    color: #a855f7;
    flex-shrink: 0;
}

/* Button Stays Locked at the Bottom */
.btn-animated {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    margin-top: auto !important; /* Locks button to card bottom */
    background-image: linear-gradient(135deg, #a855f7 50%, #f3e8ff 50%) !important;
    background-size: 250% 250% !important;
    background-position: 100% 100% !important;
    border: 2px solid #a855f7 !important;
    color: #a855f7 !important;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
    transition: background-position 0.4s ease-in-out, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    box-sizing: border-box;
}

.btn-animated:hover {
    background-position: 0% 0% !important;
    color: #ffffff !important;
    border-color: #7e22ce !important;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5) !important;
}

/* =========================================================
   RESPONSIVE DESIGNS
   ========================================================= */

/* Below 1200px: Balanced Layout Adjustments */
@media screen and (max-width: 1199.98px) {
    .custom-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .plan-title {
        font-size: 1.3rem;
    }

    .plan-price {
        font-size: 1.9rem;
    }

    .plan-features {
        margin: 20px 0;
    }

    .plan-features li {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }

    .btn-animated {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Below 575px: Ultra-Compact Mobile Layout */
@media screen and (max-width: 574.98px) {
    .pricing-swiper {
        padding-bottom: 35px !important;
    }

    .custom-card {
        padding: 18px 12px;
        border-radius: 12px;
    }

    .card-badge {
        font-size: 0.62rem;
        padding: 3px 8px;
        top: -10px;
        right: 12px;
    }

    .plan-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .plan-price {
        font-size: 1.5rem;
    }

    .price-sub {
        font-size: 0.75rem;
    }

    .plan-features {
        margin: 14px 0;
    }

    .plan-features li {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }

    .plan-features i {
        font-size: 0.9rem;
        margin-right: 8px;
    }

    .btn-animated {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
}