/* =========================================
   4. NEW PLANS PAGE STYLING (Fully Fixed)
   ========================================= */
#plansPage {
    padding: 10px 0;
}

.jp-plans-header {
    margin-bottom: 25px;
    text-align: left;
}

.jp-title {
    margin: 10px 0;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: white;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.jp-title i {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
}

.jp-subtitle {
    color: #64748b;
    font-size: 14px;
    padding-left: 10px;
}

/* --- Active Cards Section --- */
.jp-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 700;
    margin: 20px 0 12px 0;
    display: block;
}

.jp-active-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 12px;
    border-left: 5px solid #cbd5e1;
}

.jp-border-blue { border-left-color: #2563eb; }
.jp-border-orange { border-left-color: #f97316; }

.jp-active-info { display: flex; align-items: center; gap: 12px; }

.jp-icon-bg {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.jp-icon-bg.blue { background: #eff6ff; color: #3b82f6; }
.jp-icon-bg.orange { background: #fff7ed; color: #f97316; }
.jp-icon-bg.red { background: #fee2e2; color: #ef4444; }
.jp-icon-bg.green { background: #dcfce7; color: #22c55e; }

.jp-service-name { font-size: 15px; font-weight: 600; color: #1e293b; margin: 0; }
.jp-plan-detail { font-size: 12px; color: #64748b; margin: 0; }

.jp-active-tag {
    background: #dcfce7; 
    color: #166534;
    font-size: 10px; 
    font-weight: 800; 
    padding: 4px 10px; 
    border-radius: 20px;
}

/* --- Pricing Cards & Horizontal Scroll --- */
.jp-category-header {
    font-weight: 700;
    font-size: 17px;
    margin: 30px 0 15px 0;
    color: #1e293b;
}

.jp-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 5px 5px 20px 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.jp-scroll-wrapper::-webkit-scrollbar { display: none; }

.jp-pricing-card {
    min-width: 220px; 
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.jp-pricing-card.featured {
    border: 2px solid #2563eb;
    background: #f8fbff;
}

.jp-card-top h4 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.jp-card-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

/* --- DUAL ACTION ROWS (Fixed spacing from amount) --- */
.jp-dual-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;           /* Space between push and sms rows */
    margin-top: 25px;    /* 🟢 Significant space from title/amount above */
    padding-top: 15px;   /* Space after the border line */
    border-top: 1px solid #f1f5f9;
}

.jp-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc; 
    padding: 12px;       /* Increased padding for better look */
    border-radius: 12px;
    transition: all 0.2s ease;
}

.jp-action-row:hover {
    background: #f1f5f9;
}

.jp-mini-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    /* 🟢 This pushes the button to the far right */
    flex-grow: 1; 
    margin-right: 15px; /* Adds space even if the text is long */
}

.jp-mini-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    
    /* 🟢 Adds the specific gap you see in the image */
    margin-left: auto; 
    white-space: nowrap; /* Prevents the word "Upgrade" from breaking */
}

.jp-current-badge {
    color: #16a34a;
    background: #dcfce7;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
}

/* --- Wellness Card Standard Button --- */
.jp-action-btn {
    background: #1e293b;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    width: 100%;
}

.featured .jp-action-btn {
    background: #2563eb;
}

/* --- Tablet / Desktop Grid Fix --- */
@media (min-width: 768px) {
    .jp-scroll-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        overflow-x: hidden;
        gap: 20px;
    }
}