.plans-section {
        max-width: 1500px;
        margin: auto;
        padding: 60px 20px;
        text-align: center; 
    }
    .plans-container {
        display: flex;
        justify-content: center;
        gap: 25px;
        flex-wrap: nowrap; /* keep in one line */
        overflow-x: auto;  /* scroll on small screens */
        padding-bottom: 10px;
        padding-top: 50px;
    }
    .plan-card {
        flex: 0 0 280px;
        height: auto !important;
    }
    
    #pop_box{
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 16px;
        color: #fff;
        padding: 30px 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s, box-shadow 0.3s;
        display: flex;
        flex-direction: column;
        /*justify-content: space-between;*/
        font-size: 1.2rem;

    }
    
    .plan-title {
        font-size: 1.7rem;
        color: #fff;
    }

    .plan-price {
        font-size: 1.4rem;
        color: #f5d742;
        font-weight: bold;
    }

    .plan-details {
        list-style: none;
        padding: 0;
        margin: 20px 0;
    }
    
    .plan-details li {
        text-align: center;
        margin: 8px 0;
        color: #fff;
    }
    
    .plan-btn {
        display: inline-block;
        background: transparent;
        color: #fff;
        padding: 12px 25px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: bold;
        transition: background 0.3s, transform 0.3s;
        box-shadow: 0 4px 14px rgba(108, 99, 255, 0.4);
        border: none;
    }
    
    .plan-btn:hover {
        background: linear-gradient(135deg, #442060, #5a2d82);
        transform: scale(1.05);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .plans-container {
          flex-wrap: wrap; /* stack on small devices */
        }
        .plan-card { 
            height: 1100px; 
        }
    }
    .active-badge {
        position: absolute;
        top: 15px;
        top: 15px;
        right: 15px;
        background: #646464f0;
        color: #e67e22;
        font-size: 0.85rem;
        font-weight: bold;
        padding: 6px 12px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
    .plans-section h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
        color: #fff; 
    }
    .plans-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    .plan-card {
        color: #333;
        padding: 30px 20px;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        transition: transform 0.3s, box-shadow 0.3s;
        position: relative;
        overflow: hidden;
    }
    .plan-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.4);
    }
    .popular-tag {
        position: absolute;
        top: 15px;
        right: -40px;
        background: #f5d742;
        color: #333;
        font-size: 0.9rem;
        font-weight: bold;
        transform: rotate(45deg);
        padding: 5px 40px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    }

    .plan-title {
        font-size: 1.7rem;
        margin-bottom: 10px;
        color: #ffffffff;
    }
    .plan-price {
        font-size: 1.4rem;
        margin-bottom: 20px;
        color: #e67e22;
        font-weight: bold;
    }
    .plan-details {
        list-style: none;
        padding: 0;
        margin: 20px 0;
        text-align: left;
    }
    .plan-details li {
        text-align: center;
        margin: 10px 0;
        padding-left: 20px;
        position: relative;
        color: #ffffffff;
    }
    /* Payment Loader */
#paymentLoader {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.loader-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1f1f1f;
    padding: 30px 40px;
    border-radius: 14px;
    text-align: center;
    color: #fff;
    min-width: 260px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #444;
    border-top: 4px solid #f5d742;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}