/* ============================================
   STAGE 6: PRICING - UPDATED FOR 3 TIERS
   ============================================ */

.btrade-pricing {
    position: relative;
    width: 100%;
    padding: 80px 40px;   /* ← كان 60px فوق 80px تحت، دلوقتي متناسق */
    background: linear-gradient(180deg, #0a0a0f 0%, #0d1117 50%, #0a0a0f 100%);
    overflow: hidden;
    margin-top: 0;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header */
.pricing-header {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-title {
    font-family: "Poppins", "Cairo", sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    color: #8b949e;
    line-height: 1.6;
}

/* Toggle Switch */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.pricing-toggle.visible {
    opacity: 1;
    transform: translateY(0);
}

.toggle-label {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #8b949e;
    transition: color 0.3s;
}

.toggle-label.active {
    color: #ffffff;
}

.save-badge {
    color: #00BCD4;
    font-weight: 600;
    margin-left: 4px;
}

/* Custom Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #21262d;
    transition: 0.3s;
    border-radius: 28px;
    border: 2px solid #30363d;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #2196F3;
    border-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(28px);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    perspective: 1000px;
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 24px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Free Card (Left) */
.pricing-card.left {
    border: 1px solid rgba(48, 54, 61, 0.5);
    background: rgba(13, 17, 23, 0.4);
    transform: scale(0.95);
}

.pricing-card.left .plan-name {
    color: #6b7280;
    font-weight: 600;
}

.pricing-card.left .amount.free {
    font-size: 3rem;
    font-weight: 800;
    color: #10b981;
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pro Card (Center - Popular) */
.pricing-card.popular {
    border: 2px solid #2196F3;
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.1) 0%, rgba(22, 27, 34, 0.8) 100%);
    z-index: 10;
    transform: scale(1.05);
    box-shadow: 
        0 25px 50px -12px rgba(33, 150, 243, 0.25),
        0 0 0 1px rgba(33, 150, 243, 0.3);
}

.pricing-card.popular .plan-name {
    color: #2196F3;
    font-weight: 700;
}

/* Elite Card (Right) */
.pricing-card.right {
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, rgba(22, 27, 34, 0.6) 100%);
    transform: scale(0.95);
}

.pricing-card.right .plan-name {
    color: #8b5cf6;
    font-weight: 600;
}

/* Hover Effects */
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(33, 150, 243, 0.4);
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(33, 150, 243, 0.15);
}

.pricing-card.popular:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 
        0 35px 60px rgba(33, 150, 243, 0.3),
        0 0 0 2px rgba(33, 150, 243, 0.4),
        0 0 80px rgba(33, 150, 243, 0.2);
}

.pricing-card.left:hover {
    transform: translateY(-4px) scale(0.97);
    border-color: rgba(16, 185, 129, 0.3);
}

.pricing-card.right:hover {
    transform: translateY(-4px) scale(0.97);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #2196F3, #00BCD4);
    color: #ffffff;
    padding: 10px 20px;
    border-bottom-left-radius: 16px;
    border-top-right-radius: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.popular-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Card Header */
.pricing-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-name {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.plan-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
    min-height: 70px;
}

.currency {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    align-self: flex-start;
    margin-top: 8px;
}

.amount {
    font-family: "Poppins", sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    transition: all 0.3s ease;
}

.period {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #8b949e;
    align-self: flex-end;
    margin-bottom: 8px;
    margin-left: 4px;
}

.billing-text {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #6e7681;
    min-height: 20px;
}

/* Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #c9d1d9;
    line-height: 1.5;
}

.plan-features li.includes-header {
    margin-top: 16px;
    font-weight: 600;
    color: #8b949e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-features li.includes-header svg {
    display: none;
}

.plan-features li.not-included {
    opacity: 0.4;
    color: #6e7681;
    text-decoration: line-through;
}

.plan-features li.not-included svg {
    stroke: #ef4444;
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.plan-features svg {
    width: 18px;
    height: 18px;
    color: #2196F3;
    flex-shrink: 0;
    margin-top: 1px;
}

.plan-features li.not-included svg {
    color: #ef4444;
}

/* Footer */
.plan-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(48, 54, 61, 0.5);
}

.plan-button {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    cursor: pointer;
    border: none;
}

/* Free Button */
.plan-button.outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #30363d;
}

.plan-button.outline:hover {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Pro Button */
.plan-button.primary {
    background: linear-gradient(135deg, #2196F3, #00BCD4);
    color: #ffffff;
}

.plan-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
}

/* Elite Button */
.plan-button.secondary {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #ffffff;
}

.plan-button.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.plan-description {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #6e7681;
    text-align: center;
    line-height: 1.5;
    min-height: 40px;
}

/* Trust Badges */
.pricing-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 50px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.pricing-trust.visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-family: "Inter", sans-serif;
}

.trust-item svg {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex-shrink: 0;
}

/* Background Glows */
.pricing-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.pricing-glow-1 {
    background: #2196F3;
    top: 10%;
    left: -10%;
    animation: float-glow-pricing 10s ease-in-out infinite;
}

.pricing-glow-2 {
    background: #00BCD4;
    bottom: 10%;
    right: -10%;
    animation: float-glow-pricing 10s ease-in-out infinite reverse;
}

@keyframes float-glow-pricing {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.1); }
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9999;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(300px) rotate(720deg) scale(0.5);
    }
}

/* Price Animation */
.price-changing {
    animation: price-pop 0.3s ease;
}

@keyframes price-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 30px;
    }
    
    .pricing-card,
    .pricing-card.left,
    .pricing-card.right,
    .pricing-card.popular {
        transform: scale(1) !important;
        min-height: auto;
    }
    
    .pricing-card.popular {
        order: -1;
    }
    
    .pricing-title {
        font-size: 36px;
    }
    
    .pricing-card:hover,
    .pricing-card.popular:hover,
    .pricing-card.left:hover,
    .pricing-card.right:hover {
        transform: translateY(-8px) scale(1.02) !important;
    }
}

@media (max-width: 768px) {
    .btrade-pricing {
        padding: 60px 20px;
    }
    
    .pricing-title {
        font-size: 28px;
    }
    
    .pricing-subtitle {
        font-size: 16px;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .amount {
        font-size: 42px;
    }
    
    .pricing-trust {
        gap: 1rem;
    }
    
    .trust-item {
        font-size: 12px;
    }
    
    .trust-item svg {
        width: 14px;
        height: 14px;
    }
}
/* ============================================
   COMPARE PLANS BUTTON
   ============================================ */

.pricing-compare {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.pricing-compare.visible {
    opacity: 1;
    transform: translateY(0);
}

.compare-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid rgba(33, 150, 243, 0.5);
    border-radius: 12px;
    color: #2196F3;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.compare-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
    transition: left 0.5s;
}

.compare-button:hover::before {
    left: 100%;
}

.compare-button:hover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.15);
}

.compare-button svg:first-child {
    width: 20px;
    height: 20px;
    color: #2196F3;
}

.compare-button .arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.compare-button:hover .arrow {
    transform: translateX(4px);
}

.compare-hint {
    margin-top: 12px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #6e7681;
}

/* Responsive */
@media (max-width: 768px) {
    .compare-button {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .compare-button svg:first-child {
        width: 18px;
        height: 18px;
    }
    
    .compare-button .arrow {
        width: 16px;
        height: 16px;
    }
}

/* ============================================================
   STAGE 6 — PRICE FIX
   أضف الكود ده في آخر ملف stage-6.css
   (بيـ override الـ styles القديمة)
   ============================================================ */

/* Plan price wrapper */
.plan-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 24px;
    min-height: 90px;
}

/* Price main row — السعر والـ /per month */
.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    width: 100%;
    line-height: 1;
}

.price-currency {
    font-family: "Poppins", "Cairo", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    align-self: flex-start;
    margin-top: 6px;
}

.price-amount {
    font-family: "Poppins", "Cairo", sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.price-period {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #8b949e;
    margin-left: 4px;
    align-self: flex-end;
    margin-bottom: 8px;
}

/* Billing note — تحت السعر منفصلة */
.price-note,
.billing-note {
    display: block !important;
    width: 100%;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #6e7681;
    text-align: center;
    margin-top: 8px;
    line-height: 1;
}

/* Free amount */
.free-amount {
    font-family: "Poppins", "Cairo", sans-serif;
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #2196F3, #00BCD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

/* Plan name — أوضح وأكبر */
.plan-name {
    font-family: "Poppins", "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
}

.pricing-card.popular .plan-name {
    color: #2196F3;
}

.pricing-card.right .plan-name {
    color: #8b5cf6;
}

/* Compare link */
.pricing-compare-link {
    text-align: center;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s ease 0.4s;
}

.pricing-compare-link.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-compare-link a {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.pricing-compare-link a:hover {
    color: #00BCD4;
    text-decoration: underline;
}

/* includes-header */
.plan-features li.includes-header {
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 700;
    color: #8b949e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.plan-features li.includes-header svg {
    display: none;
}