/* --- Global Container --- */
.pass-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* --- Hero Section --- */
.hero-section {
    padding: 3rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.feature-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color, #4f46e5); /* Fallback color included */
    margin-bottom: 1rem;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
}

/* --- Pricing Section --- */
.pricing-section {
    margin-top: 2rem;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border-color: var(--primary-color, #4f46e5);
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(to bottom, #f8fafc, #fff);
    border-bottom: 1px dashed #e2e8f0;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
}

.plan-period {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.pricing-body {
    padding: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: #475569;
    display: flex;
    align-items: center;
}

.pricing-features i {
    color: #16a34a;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.pricing-footer {
    padding: 0 2rem 2rem;
}

/* --- Special Styling for Lifetime/Popular Plan --- */
.card-lifetime {
    border: 2px solid var(--primary-color, #4f46e5);
    transform: scale(1.02);
}

.card-lifetime .pricing-header {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    border: none;
}

.card-lifetime .plan-name,
.card-lifetime .plan-price,
.card-lifetime .plan-period {
    color: white;
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #fbbf24;
    color: #78350f;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
    border-bottom-left-radius: 8px;
    z-index: 10;
}

/* --- Mobile Responsiveness --- */
/* --- Mobile Responsiveness Fix --- */
@media (max-width: 768px) {
    /* 1. Top Features (Grid adjustment) */
    .top-features-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 4 ke bajaye 2 line me */
        gap: 10px !important;
    }

    /* 2. Pricing Plans (Isse stacking enable hogi) */
    .pricing-section .row {
        flex-wrap: wrap !important; /* Nowrap ko hata kar wrap kiya */
        justify-content: center !important;
        gap: 15px !important;
    }

    /* Har card mobile par puri width lega taaki content clear dikhe */
    .pricing-section .row > div {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 400px; /* Zyada bada na dikhe isliye limit */
    }

    /* Card adjustments for mobile */
    .pricing-card { margin-bottom: 10px; }
    .plan-price { font-size: 2.2rem !important; }
}

.card-lifetime .btn-light:hover {
    background-color: #0d6efd !important; /* Bootstrap primary blue */
    color: white !important;
    border-color: #0d6efd !important;
}

/* =========================================
   GOLDEN LIFETIME PASS STYLES
   ========================================= */

/* 1. कार्ड का बॉर्डर और शैडो (Golden Glow) */
.card-lifetime {
    border: 2px solid #FFD700 !important; /* प्योर गोल्ड बॉर्डर */
    box-shadow: 0 15px 40px -10px rgba(255, 215, 0, 0.4) !important; /* सुनहरी परछाई */
    transform: scale(1.02); /* थोड़ा सा उभरा हुआ */
}

/* 2. हेडर का बैकग्राउंड (Royal Gold Gradient) */
.card-lifetime .pricing-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    border-bottom: 1px solid #e0c200;
}

/* 3. हेडर के अंदर का टेक्स्ट (Black for Contrast) */
/* गोल्ड पर सफ़ेद टेक्स्ट नहीं दिखता, इसलिए काला रंग बेहतर है */
.card-lifetime .plan-name,
.card-lifetime .plan-price,
.card-lifetime .plan-period {
    color: #1a1a1a !important; /* गहरा काला */
    text-shadow: none !important;
}

.card-lifetime .plan-price {
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.4); /* हल्का सा 3D इफेक्ट */
}

/* 4. "BEST" या "POPULAR" बैज */
.popular-badge {
    background-color: #000 !important; /* काला बैज */
    color: #FFD700 !important; /* गोल्ड टेक्स्ट */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 5. नीचे का बटन (Buy Now) */
.card-lifetime .choose-plan-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    border: none !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.card-lifetime .choose-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
}

/* 6. फीचर्स लिस्ट के आइकॉन (Checkmarks) */
.card-lifetime .pricing-features i {
    color: #d4af37 !important; /* डार्क गोल्ड टिक मार्क */
    font-weight: bold;
}


/* =========================================
   SILVER PLATINUM YEARLY PASS STYLES
   ========================================= */

/* 1. कार्ड का बॉर्डर और स्टाइल */
.card-yearly {
    border: 2px solid #94a3b8 !important; /* स्लेट सिल्वर बॉर्डर */
    box-shadow: 0 10px 30px -5px rgba(148, 163, 184, 0.4) !important; /* सिल्वर ब्लू शैडो */
    background: #fff;
}

/* 2. हेडर का बैकग्राउंड (Cool Platinum Gradient) */
.card-yearly .pricing-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%) !important;
    border-bottom: 1px solid #94a3b8;
}

/* 3. हेडर टेक्स्ट */
.card-yearly .plan-name {
    color: #475569 !important; /* डार्क ग्रे */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-yearly .plan-price {
    color: #1e293b !important; /* गहरा नीला/काला */
    text-shadow: 2px 2px 0px rgba(255,255,255,0.5); /* टेक्स्ट को उभारने के लिए */
}

.card-yearly .plan-period {
    color: #64748b !important;
}

/* 4. बटन (Solid Blue for Silver Card) */
.card-yearly .choose-plan-btn {
    background-color: #334155 !important; /* डार्क स्लेट ब्लू */
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
}

.card-yearly .choose-plan-btn:hover {
    background-color: #1e293b !important; /* होवर पर और गहरा */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

/* 5. फीचर्स के टिक मार्क */
.card-yearly .pricing-features i {
    color: #334155 !important; /* डार्क टिक मार्क */
}




/* Coupon Input Styling */
#coupon-input {
    border: 1px solid #ced4da;
    font-weight: 600;
    color: #495057;
}

#coupon-input:focus {
    box-shadow: none;
    border-color: #6c757d;
}

#coupon-input.is-valid {
    border-color: #198754; /* Green border on success */
    background-color: #f8fff9;
}

#coupon-input.is-invalid {
    border-color: #dc3545; /* Red border on error */
    background-color: #fff8f8;
}

/* Success Message Text */
#coupon-message {
    transition: all 0.3s ease;
}

/* Logo hover effect */
.sidebar-header a:hover .brand-name {
    color: var(--secondary-color);
    transition: 0.3s;
}

.target-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.target-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
}

#sidebar-goal-text {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.4rem;
    text-transform: lowercase; /* Professional look ke liye sab small */
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--sidebar-link-color);
    display: block;
    margin-top: -2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


@media (max-width: 768px) {

    /* Container को Horizontal Scroll बनाएं */
    #plans-container {
        display: flex !important;
        flex-wrap: nowrap !important; /* Stack नहीं, लाइन में रखो */
        overflow-x: auto !important;   /* Scroll enable करो */
        gap: 15px !important;
        padding-bottom: 20px !important;
        padding-left: 5px;
        padding-right: 5px;
        align-items: stretch !important; /* सब बराबर हाइट के हों */
        justify-content: flex-start !important; /* लेफ्ट से शुरू हो */
    }

    /* हर कार्ड की चौड़ाई फिक्स करें ताकि वो दिखे */
    #plans-container > div {
        width: 85% !important; /* स्क्रीन का 85% हिस्सा लेगा */
        flex: 0 0 85% !important;
        max-width: 85% !important;
    }
}
