/* ========================================
   💎 PRICING SECTION - Main Container
======================================== */
#pricing .container{
    max-width: 1400px;
    padding: 0 24px;
    margin: 0 auto;
}
#pricing .pricing-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    overflow: hidden;
    direction: rtl;
}

/* ========================================
   📝 Header Section
======================================== */

#pricing .pricing-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
    padding-top: 120px;
}

#pricing .pricing-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
}

#pricing .title-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

#pricing .title-gradient::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#pricing .pricing-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ========================================
   🔄 Toggle Tabs (Monthly/Yearly)
======================================== */

#pricing .pricing-toggle {
    position: relative;
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 50px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

#pricing .toggle-btn {
position: relative;
    padding: 12px 32px;
    background: transparent;
    border: none;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    white-space: nowrap;
    min-width: 120px;
}

#pricing .toggle-btn.active {
    color: white;
}

#pricing .toggle-indicator {
   position: absolute;
    top: 6px;
    bottom: 6px;
    right: 6px;
    width: calc(50% - 10px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.4),
        0 2px 4px rgba(118, 75, 162, 0.3);
    z-index: 1;
}

#pricing .discount-badge {
        position: absolute;
    top: 40px;
    right: 13px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 
        0 4px 16px rgba(16, 185, 129, 0.4),
        0 2px 4px rgba(5, 150, 105, 0.3);
    animation: badgePulse 2.5s ease-in-out infinite;
    z-index: 3;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    }
}

/* ========================================
   💳 Pricing Grid
======================================== */

#pricing .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ========================================
   🎴 Pricing Cards
======================================== */

#pricing .pricing-card {
    position: relative;
    background: white;
    border-radius: 28px;
    padding: 40px 32px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow: visible;
}

#pricing .pricing-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* 🌟 Featured Card (Pro Plan) */
#pricing .pricing-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.3),
        0 0 80px rgba(118, 75, 162, 0.2);
    transform: scale(1.08);
}

#pricing .pricing-card.featured:hover {
    transform: translateY(-16px) scale(1.1);
    box-shadow: 
        0 32px 80px rgba(102, 126, 234, 0.4),
        0 0 100px rgba(118, 75, 162, 0.3);
}

#pricing .pricing-card.featured * {
    color: white !important;
}

#pricing .pricing-card.featured .feature-item svg {
    color: white !important;
}

/* 🏷️ Popular Badge */
#pricing .popular-badge {
    position: absolute;
    top: -16px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(251, 191, 36, 0.6); }
}

/* ========================================
   📋 Card Header
======================================== */

#pricing .card-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

#pricing .pricing-card.featured .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

#pricing .plan-name {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

#pricing .plan-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* ========================================
   💰 Price Display
======================================== */

#pricing .price-wrapper {
    text-align: center;
    padding: 24px 0;
}

#pricing .price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    direction: ltr;
}

#pricing .currency {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
}

#pricing .amount {
    font-size: 56px;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#pricing .period {
    font-size: 16px;
    color: #64748b;
    font-weight: 600;
}

#pricing .price-custom {
    padding: 20px 0;
}

#pricing .contact-text {
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   ✅ Features List
======================================== */

#pricing .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#pricing .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #334155;
    transition: all 0.3s ease;
}

#pricing .feature-item:hover {
    transform: translateX(-4px);
}

#pricing .check-icon,
#pricing .cross-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #10b981;
}

#pricing .cross-icon {
    color: #ef4444;
}

#pricing .feature-item.disabled {
    opacity: 0.4;
}

#pricing .feature-item.disabled span {
    text-decoration: line-through;
}

/* ========================================
   🔘 Pricing Buttons
======================================== */

#pricing .pricing-btn {
    width: 100%;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Vazirmatn';
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    margin-top: auto;
}


#pricing .btn-gradient {
    background: linear-gradient(135deg, #f59e0b 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

#pricing .btn-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(251, 191, 36, 0.5);
}

#pricing .btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    font-family: 'Vazirmatn';
}

#pricing .btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

/* ========================================
   💡 Footer Info
======================================== */

#pricing .pricing-footer {
    margin-top: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

#pricing .footer-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 18px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#pricing .info-icon {
    width: 24px;
    height: 24px;
    color: #667eea;
    flex-shrink: 0;
}

#pricing .footer-info p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    font-weight: 600;
}

/* ========================================
   📱 RESPONSIVE
======================================== */

@media (max-width: 1200px) {
    #pricing .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
    }
    
    #pricing .pricing-card.featured {
        transform: scale(1);
    }
    
    #pricing .pricing-card.featured:hover {
        transform: translateY(-16px) scale(1.02);
    }
}

@media (max-width: 768px) {
    #pricing .pricing-section {
        padding: 80px 0;
    }
    
    #pricing .pricing-title {
        font-size: 36px;
    }
    
    #pricing .pricing-subtitle {
        font-size: 16px;
    }
    
    #pricing .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    #pricing .pricing-card {
        padding: 32px 24px;
    }
    
    #pricing .amount {
        font-size: 44px;
    }
    
    #pricing .pricing-toggle {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 40px;
    }
    
    #pricing .toggle-btn {
              flex: 1;
        min-width: auto;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    #pricing .toggle-indicator {
        width: calc(50 - 16px);
        height: calc(50% - -16px);
    }
}

    #pricing .discount-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    @media (max-width: 480px) {
    .toggle-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}
