/* Subscription Plans V2 - Premium Grid Layout */

.sp-subscription-v2 {
    padding: 100px 0;
    background-color: #ffffff;
    font-family: var(--primaryFont);
}

.sp-subscription-v2 .sp-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.sp-sub-v2-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sp-sub-v2-header .sub-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #064e3b;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.sp-sub-v2-header .main-title {
    font-size: 4rem;
    font-weight: 800;
    color: #333333;
    line-height: 1.1;
    margin-bottom: 30px;
}

.sp-sub-v2-header .section-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #666666;
    font-weight: 400;
    margin-bottom: 40px;
}

/* Billing Toggle */
.sp-billing-toggle {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.sp-billing-toggle .toggle-container {
    background: #f1f5f9;
    padding: 6px;
    border-radius: 16px;
    display: inline-flex;
    gap: 4px;
}

.sp-billing-toggle .toggle-btn {
    border: none;
    background: transparent;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.sp-billing-toggle .toggle-btn.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: none !important;
}

.sp-billing-toggle .save-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Grid */
.sp-sub-v2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card */
.sp-sub-v2-card {
    background-color: #065f46; /* Deep Teal */
    color: #ffffff;
    border-radius: 30px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none !important;
}

.sp-sub-v2-card.is-light {
    background-color: #f8fafc;
    color: #333333;
    border: 1px solid #e2e8f0;
}

.sp-sub-v2-card:hover {
    transform: translateY(-10px);
    box-shadow: none !important;
}

.sp-sub-v2-card .plan-label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    opacity: 0.8;
}

.sp-sub-v2-card.is-light .plan-label {
    color: #059669;
    opacity: 1;
}

.sp-sub-v2-card .plan-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 30px;
}

.sp-sub-v2-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
    color: inherit;
    line-height: 1;
}

.sp-sub-v2-card .suffix {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

.sp-sub-v2-card .plan-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    min-height: 80px;
}

/* Features */
.sp-sub-v2-card .plan-features-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
    flex-grow: 1;
}

.sp-sub-v2-card .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.sp-sub-v2-card .check-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-sub-v2-card.is-light .check-icon {
    background: #059669;
    color: #ffffff;
}

/* Button */
.sp-sub-v2-btn {
    display: block;
    width: 100%;
    padding: 18px 20px;
    border-radius: 999px;
    background: #ffffff;
    color: #333333;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.sp-sub-v2-card.is-light .sp-sub-v2-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #666666;
}

.sp-sub-v2-btn:hover {
    transform: scale(1.02);
    box-shadow: none !important;
}

.sp-sub-v2-card.is-light .sp-sub-v2-btn:hover {
    border-color: #059669;
    color: #059669;
}

/* --- Optimized Responsive Section for Subscription Plans V2 --- */

/* Laptops & Tablets (1024px - 1440px) */
@media (max-width: 1399px) {
    .sp-subscription-v2 .sp-container {
        padding: 0 30px;
    }
    
    .sp-sub-v2-card .price {
        font-size: 3rem;
    }
    
    .sp-sub-v2-grid {
        gap: 20px;
    }
}

/* Tablets (Portrait & Small Landscape) */
@media (max-width: 1199px) {
    .sp-subscription-v2 {
        padding: 80px 0;
    }

    .sp-sub-v2-header .main-title {
        font-size: 3rem;
    }

    .sp-sub-v2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .sp-sub-v2-card {
        padding: 35px 25px;
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 991px) {
    .sp-sub-v2-header {
        margin-bottom: 50px;
        padding: 0 20px;
    }

    .sp-sub-v2-header .main-title {
        font-size: 2.5rem;
    }

    .sp-sub-v2-header .section-desc {
        font-size: 1.1rem;
    }

    .sp-billing-toggle .toggle-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .sp-subscription-v2 {
        padding: 60px 0;
    }

    .sp-subscription-v2 .sp-container {
        padding: 0 20px;
    }

    .sp-sub-v2-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

    .sp-sub-v2-header .sub-label {
        font-size: 1rem;
    }

    .sp-sub-v2-header .main-title {
        font-size: 2.25rem;
        margin-bottom: 20px;
    }

    .sp-sub-v2-header .section-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Adjust Card for Mobile */
    .sp-sub-v2-card {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .sp-sub-v2-card .price {
        font-size: 2.75rem;
    }

    .sp-sub-v2-card .plan-desc {
        min-height: auto; /* Remove fixed height on mobile */
        margin-bottom: 30px;
        font-size: 0.95rem;
    }

    .sp-sub-v2-card .plan-features-wrap {
        margin-bottom: 35px;
    }

    .sp-sub-v2-card .feature-item {
        font-size: 0.95rem;
    }

    .sp-sub-v2-btn {
        padding: 15px 20px;
    }
}

/* Extra Small Screens (iPhone SE, etc.) */
@media (max-width: 400px) {
    .sp-sub-v2-header .main-title {
        font-size: 1.85rem;
    }

    .sp-billing-toggle .toggle-container {
        width: 100%;
        display: flex;
    }

    .sp-billing-toggle .toggle-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 10px;
        font-size: 0.8rem;
    }
}
