/* =============================================================
   PROP EDGE FUNDING — RESPONSIVE SYSTEM v3 (FRESH BUILD)
   Covers: All pages · All breakpoints · Bottom Nav Bar
   Breakpoints:
     Desktop  : 1200px+
     Tablet   : 768px – 1199px
     Mobile   : 480px – 767px
     XS Mobile: < 480px
   ============================================================= */

/* ---------------------------------------------------------------
   0.  GLOBAL BASE FIXES
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; word-break: break-word; -webkit-font-smoothing: antialiased; }
img, video, canvas { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------
   1.  BOTTOM NAV — hidden by default
--------------------------------------------------------------- */
.mobile-bottom-nav { display: none; }

/* ---------------------------------------------------------------
   2.  DESKTOP (1200px+)
--------------------------------------------------------------- */
@media (min-width: 1200px) {
    .mobile-bottom-nav  { display: none !important; }
    .mobile-menu-toggle { display: none !important; }
    .mobile-only-nav, .mobile-login-btn { display: none !important; }
    .nav-menu    { display: flex !important; }
    .nav-buttons { display: flex !important; }
}

/* ---------------------------------------------------------------
   3.  TABLET (768px – 1199px)
--------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    body { padding-top: 96px; }
    .promo-ribbon  { height: 36px; }
    .promo-message { font-size: 12px; padding: 0 28px; }
    .navbar        { top: 36px; }
    .nav-container { padding: 10px 24px; }
    .nav-buttons   { display: none; }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column; justify-content: center; align-items: center;
        width: 40px; height: 40px;
        background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.2);
        border-radius: 8px; cursor: pointer; padding: 8px; gap: 5px;
        transition: background .3s ease;
    }
    .mobile-menu-toggle span {
        display: block; width: 20px; height: 2px;
        background: #E4EEFC; border-radius: 2px; transition: all .3s ease;
    }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px,5px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-5px); }

    .nav-menu {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(8,5,22,.98); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        flex-direction: column; align-items: flex-start; justify-content: flex-start;
        gap: 0; padding: 100px 28px 60px; z-index: 999; overflow-y: auto; list-style: none;
    }
    .nav-menu.open { display: flex; }
    .nav-menu > li { width: 100%; border-bottom: 1px solid rgba(91,76,255,.12); }
    .nav-menu > li:last-child { border-bottom: none; }
    .nav-menu > li > a, .nav-menu .dropdown-toggle {
        font-size: 16px; font-weight: 600; padding: 16px 0; width: 100%;
        justify-content: flex-start; color: var(--text-color);
        display: flex; align-items: center; gap: 10px;
        background: none; border: none; cursor: pointer; font-family: inherit;
    }
    .nav-menu .dropdown-menu {
        position: static !important; opacity: 1 !important; visibility: visible !important;
        transform: none !important; background: rgba(91,76,255,.06) !important;
        border: none !important; border-radius: 8px !important; margin: 0 0 10px !important;
        padding: 6px 10px !important; box-shadow: none !important; display: none; min-width: unset;
    }
    .nav-menu .nav-dropdown.active .dropdown-menu { display: block !important; }
    .nav-menu .dropdown-menu li a { font-size: 14px; padding: 12px 14px; }
    .mobile-only-nav, .mobile-login-btn { display: list-item !important; }

    /* Hero */
    .hero { min-height: auto; padding-top: 50px; padding-bottom: 60px; }
    .hero-container { padding: 30px 24px; flex-direction: column; align-items: center; text-align: center; gap: 30px; }
    .hero-left { max-width: 100%; margin-bottom: 0; text-align: center; }
    .hero-title  { font-size: 2.5rem; line-height: 1.15; }
    .hero-highlight { font-size: 2.7rem; }
    .hero-subtitle { font-size: .9rem; max-width: 600px; margin: 0 auto; }
    .hero-center { align-items: center; width: 100%; max-width: 600px; margin: 0 auto; }
    .hero-features { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .feature-text { white-space: normal; }
    .candles-container { width: 260px; height: 260px; top: 50px; right: 10px; opacity: .25; pointer-events: none; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(3,1fr); gap: 30px; padding: 10px 24px 30px; }
    .stat-number { font-size: 3.2rem; } .stat-suffix { font-size: 2rem; } .stat-label { font-size: .88rem; }

    /* Sections */
    .fast-payouts  { padding: 60px 24px; }
    .payouts-grid  { grid-template-columns: repeat(2,1fr) !important; gap: 20px; }
    .payouts-title { font-size: 2rem !important; }
    .our-benefits  { padding: 60px 24px; }
    .benefits-grid { grid-template-columns: repeat(2,1fr) !important; gap: 20px; }
    .how-it-works  { padding: 60px 24px; }
    .works-steps   { display: flex !important; flex-direction: column !important; align-items: center; gap: 20px; }
    .step-card     { width: 100%; max-width: 560px; }
    .step-arrow    { transform: rotate(90deg); }
    .step-arrow img { width: 36px; height: 36px; object-fit: contain; }

    .pricing-plans-new  { padding: 60px 24px; }
    .pricing-title-new  { font-size: 2rem; }
    /* pricing-tabs handled in mobile-only block */
    .pricing-table-wrapper-new { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pricing-table-new { min-width: 860px; }
    .futures-plan-btn { width: 100%; justify-content: center; }

    .program-details { padding: 60px 24px; }
    .program-stats-horizontal { flex-wrap: wrap; gap: 10px; }
    .stat-card-inline { flex: 1 1 calc(50% - 10px); min-width: 0; }
    .evaluation-cards { grid-template-columns: repeat(2,1fr) !important; }
    .sizes-grid { grid-template-columns: repeat(4,1fr) !important; }

    .traders-hero   { padding: 50px 24px; }
    .traders-title  { font-size: 2.2rem !important; }
    .traders-features { grid-template-columns: repeat(2,1fr) !important; gap: 20px; margin-top: 40px; }

    .cta-footer     { padding: 60px 24px; }
    .footer         { padding: 50px 24px 24px; }
    .footer-columns { grid-template-columns: repeat(2,1fr); gap: 32px; }
    .page-container { padding: 40px 24px; }
    .page-title, .section-title, .content-title { font-size: 2.2rem; }
    .disclaimer-section { padding: 40px 24px 60px !important; }
    .content-body { padding: 36px 28px; }
    .faq-page { padding: 50px 24px 60px; }
    .faq-main-title { font-size: 2.2rem !important; }
    .faq-content { max-width: 100% !important; }
    .faq-category { padding: 28px 24px !important; }
    .rules-page    { padding: 50px 24px 60px; }
    .rules-content { display: flex !important; flex-direction: column !important; gap: 20px; }
    .about-page    { padding: 50px 24px 60px; }
    .values-grid   { grid-template-columns: repeat(2,1fr) !important; }
    .stats-grid-about { grid-template-columns: repeat(2,1fr) !important; }
    .about-story, .about-block { padding: 36px 28px !important; }
    .section-heading { font-size: 1.9rem; }
    .affiliate-page  { padding: 50px 24px 60px; }
    .affiliate-stats { grid-template-columns: repeat(2,1fr) !important; gap: 16px; }
    .features-grid   { grid-template-columns: 1fr !important; }
    .affiliate-cta   { padding: 40px 30px !important; }
    .promo-popup-content { width: 88%; max-width: 440px; }
    .futures-hero { padding: 120px 24px 80px !important; }
    .hero-stats { gap: 14px; flex-wrap: wrap; }
    .stat-item { padding: 16px 22px; }
    .futures-content { padding: 60px 24px !important; }
    .tabs-container { padding: 0 24px !important; }
    .npf-hero { padding: 120px 24px 70px !important; }
    .npf-section { padding: 60px 24px !important; }
    .npf-cards-grid, .npf-why-grid, .npf-models-grid { grid-template-columns: repeat(2,1fr) !important; gap: 20px; }
}

/* ---------------------------------------------------------------
   4.  MOBILE (max-width: 767px)
--------------------------------------------------------------- */
@media (max-width: 767px) {
    body { padding-top: 82px; padding-bottom: 68px; }
    .promo-ribbon  { height: 30px; }
    .promo-message { font-size: 11px; padding: 0 18px; }
    .navbar        { top: 30px; }
    .nav-container { padding: 9px 16px; }
    .logo span     { font-size: 14px; }
    .logo img      { height: 26px; }
    .nav-buttons   { display: none; }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column; justify-content: center; align-items: center;
        width: 38px; height: 38px;
        background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.2);
        border-radius: 8px; cursor: pointer; padding: 8px; gap: 5px;
        transition: background .3s ease;
    }
    .mobile-menu-toggle span {
        display: block; width: 18px; height: 2px;
        background: #E4EEFC; border-radius: 2px; transition: all .3s ease;
    }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px,5px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-5px); }

    .nav-menu {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(8,5,22,.99); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        flex-direction: column; align-items: flex-start; justify-content: flex-start;
        gap: 0; padding: 88px 16px 84px; z-index: 999; overflow-y: auto; list-style: none;
    }
    .nav-menu.open { display: flex; }
    .nav-menu > li { width: 100%; border-bottom: 1px solid rgba(91,76,255,.1); }
    .nav-menu > li:last-child { border-bottom: none; }
    .nav-menu > li > a, .nav-menu .dropdown-toggle {
        font-size: 15px; font-weight: 600; padding: 14px 0; width: 100%;
        justify-content: flex-start; color: var(--text-color);
        display: flex; align-items: center; gap: 10px;
        background: none; border: none; cursor: pointer; font-family: inherit;
    }
    .nav-menu .dropdown-menu {
        position: static !important; opacity: 1 !important; visibility: visible !important;
        transform: none !important; background: rgba(91,76,255,.06) !important;
        border: none !important; border-radius: 8px !important; margin: 0 0 10px !important;
        padding: 4px 10px !important; box-shadow: none !important; display: none; min-width: unset;
    }
    .nav-menu .nav-dropdown.active .dropdown-menu { display: block !important; }
    .nav-menu .dropdown-menu li a { font-size: 13px; padding: 11px 14px; }
    .mobile-only-nav, .mobile-login-btn { display: list-item !important; }

    /* ── BOTTOM NAV BAR ───────────────────────────── */
    .mobile-bottom-nav {
        display: flex !important; position: fixed; bottom: 0; left: 0; right: 0;
        z-index: 9999; background: rgba(6,3,18,.97);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(91,76,255,.22);
        height: 62px; box-shadow: 0 -4px 24px rgba(0,0,0,.55); padding: 0;
    }
    .mob-nav-item {
        flex: 1; display: flex; flex-direction: column; align-items: center;
        justify-content: center; gap: 3px; color: rgba(228,238,252,.42);
        text-decoration: none; font-size: 10px; font-weight: 600; letter-spacing: .3px;
        transition: color .2s ease; padding: 6px 4px; position: relative;
    }
    .mob-nav-item svg {
        width: 21px; height: 21px; stroke: currentColor; fill: none;
        flex-shrink: 0; transition: stroke .2s ease;
    }
    .mob-nav-item span { line-height: 1; }
    .mob-nav-item:hover, .mob-nav-item.active { color: #8B7FFF; }
    .mob-nav-item.active::before {
        content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
        width: 26px; height: 2px; background: linear-gradient(90deg,#5B4CFF,#8B7FFF);
        border-radius: 0 0 4px 4px;
    }

    /* Hero */
    .hero { padding-top: 20px; padding-bottom: 50px; min-height: auto; }
    .hero-container { padding: 20px 16px; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
    .hero-left { max-width: 100%; margin-bottom: 0; text-align: center; }
    .hero-title { font-size: 2.3rem; line-height: 1.15; }
    .hero-highlight { font-size: 2.55rem; white-space: normal; }
    .hero-subtitle { font-size: .88rem; margin-top: 12px; }
    .candles-container { display: none !important; }
    .mt5-badge { padding: 10px 18px; }
    .mt5-badge span { font-size: .82rem; }
    .hero-center { align-items: center; width: 100%; }
    .hero-buttons { gap: 10px; flex-direction: column; align-items: center; width: 100%; }
    .btn-hero-primary, .btn-hero-secondary {
        font-size: .9rem; padding: 13px 24px;
        width: 100%; max-width: 280px; justify-content: center; text-align: center;
    }
    .hero-features { gap: 10px; flex-direction: column; align-items: center; }
    .feature-text  { font-size: .82rem; white-space: normal; text-align: left; }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr; gap: 16px; padding: 10px 16px 28px; }
    .stat-number { font-size: 2.8rem; } .stat-suffix { font-size: 1.9rem; } .stat-label { font-size: .85rem; }

    /* Fast Payouts */
    .fast-payouts  { padding: 48px 16px; }
    .payouts-title { font-size: 1.7rem !important; }
    .payouts-subtitle { font-size: .82rem !important; }
    .payouts-grid  { grid-template-columns: 1fr !important; gap: 14px; }
    .payout-card   { padding: 22px 18px !important; }

    /* Benefits */
    .our-benefits   { padding: 48px 16px; }
    .benefits-grid  { grid-template-columns: 1fr !important; gap: 14px; }
    .benefit-card   { padding: 22px 18px !important; }
    .benefits-title { font-size: 1.9rem !important; }
    .benefits-header { max-width: 100% !important; text-align: center !important; }

    /* How it Works */
    .how-it-works { padding: 48px 16px; }
    .works-steps  { display: flex !important; flex-direction: column !important; align-items: center; gap: 16px; }
    .step-card    { padding: 22px 18px !important; max-width: 100%; min-height: auto !important; }
    .step-title   { font-size: 1.05rem !important; }
    .step-description { font-size: .82rem !important; line-height: 1.6 !important; }
    .step-arrow   { transform: rotate(90deg); }
    .step-arrow img { width: 26px; height: 26px; }

    /* Pricing */
    .pricing-plans-new   { padding: 48px 16px; }
    .pricing-title-new   { font-size: 1.65rem; }
    .pricing-subtitle-new { font-size: .9rem; }
    .price-badge-new  { font-size: 9px; padding: 3px 7px; }
    /* pricing-tabs scroll handled below */
    .pricing-table-wrapper-new { border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pricing-table-new { min-width: 720px; }
    .pricing-row-new   { grid-template-columns: 140px repeat(8,1fr) !important; }
    .pricing-cell-new  { padding: 13px 10px; font-size: 12.5px; }
    .get-plan-btn-new  { font-size: 11px !important; padding: 8px 8px !important; }
    .fee-label-new     { font-size: 11px !important; }
    .futures-plan-btn  { font-size: 13px; padding: 12px 18px; width: 100%; justify-content: center; }

    /* Program Details */
    .program-details  { padding: 48px 16px; }
    .program-stats-horizontal { flex-wrap: wrap; gap: 10px; }
    .stat-card-inline { flex: 1 1 calc(50% - 10px); min-width: 130px; padding: 12px 14px !important; }
    .selected-amount  { font-size: 1.7rem !important; }
    .evaluation-cards { grid-template-columns: 1fr !important; gap: 14px; }
    .sizes-grid       { grid-template-columns: repeat(3,1fr) !important; gap: 10px; }

    /* Traders Hero */
    .traders-hero    { padding: 40px 16px; }
    .traders-title   { font-size: 1.7rem !important; line-height: 1.25 !important; }
    .traders-subtitle { font-size: .82rem !important; }
    .traders-features { grid-template-columns: 1fr !important; gap: 14px; margin-top: 28px; }
    .trader-feature  { padding: 22px 18px !important; }

    /* CTA Footer */
    .cta-footer   { padding: 48px 16px; }
    .cta-title    { font-size: 1.7rem !important; }
    .cta-subtitle { font-size: .9rem !important; }

    /* Footer */
    .footer { padding: 40px 16px 24px; }
    .footer-columns { grid-template-columns: 1fr; gap: 28px; }
    .footer-company { grid-column: span 1; }
    .footer-bottom  { text-align: center; gap: 8px; }
    .footer-copyright, .footer-disclaimer { font-size: .78rem; }

    /* Generic page */
    .page-container { padding: 28px 16px; }
    .section-title, .page-title, .content-title { font-size: 1.75rem !important; line-height: 1.25; }
    .section-subtitle, .page-subtitle { font-size: .84rem; }

    /* Disclaimer */
    .disclaimer-section { padding: 36px 16px 60px !important; }
    .content-body { padding: 20px 16px !important; border-radius: 12px; }
    .disclaimer-heading { font-size: 1.15rem !important; }
    .disclaimer-text    { font-size: .84rem !important; line-height: 1.7; }

    /* FAQ */
    .faq-page           { padding: 36px 16px 60px; }
    .faq-hero           { padding: 16px 0 24px; margin-bottom: 40px !important; }
    .faq-hero-icon      { width: 80px !important; height: 80px !important; border-radius: 20px !important; }
    .faq-main-title     { font-size: 1.75rem !important; }
    .faq-main-subtitle  { font-size: .84rem !important; }
    .faq-content        { max-width: 100% !important; }
    .faq-category       { padding: 22px 16px !important; border-radius: 16px; }
    .faq-category-title { font-size: 1.5rem !important; }
    .faq-question       { padding: 18px 16px; gap: 12px; }
    .faq-question h3    { font-size: 1rem !important; }
    .faq-answer p       { padding-left: 0 !important; font-size: .88rem !important; }
    .faq-item.active .faq-answer { padding: 0 16px 20px !important; }
    .faq-cta-content    { padding: 36px 20px !important; }
    .faq-cta-content h2 { font-size: 1.65rem !important; }

    /* Rules */
    .rules-page    { padding: 36px 16px 60px; }
    .rules-content { display: flex !important; flex-direction: column !important; gap: 16px; }
    .rule-category { padding: 24px 18px !important; border-radius: 16px; }
    .category-title { font-size: 1.35rem !important; }
    .rule-list li  { font-size: .88rem !important; padding: 10px 0 10px 28px !important; }
    .rules-notice  { text-align: left; padding: 14px 16px; font-size: .84rem; }
    .rules-final-notice { padding: 24px 18px !important; flex-direction: column; gap: 14px; }
    .rules-final-notice h4 { font-size: 1.2rem !important; }
    .subsection    { padding: 18px 14px !important; }

    /* About */
    .about-page { padding: 36px 16px 60px; }
    .section-heading { font-size: 1.65rem; }
    .about-story, .about-mission, .about-approach, .about-commitment { padding: 22px 16px !important; border-radius: 14px; }
    .story-text, .mission-text, .approach-text, .commitment-text { font-size: .88rem !important; line-height: 1.7; }
    .values-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .value-card  { padding: 28px 20px !important; }
    .stats-grid-about { grid-template-columns: repeat(2,1fr) !important; gap: 14px; }

    /* Affiliate */
    .affiliate-page  { padding: 36px 16px 60px; }
    .affiliate-stats { grid-template-columns: 1fr !important; gap: 12px; }
    .affiliate-stat  { padding: 22px 16px !important; }
    .features-grid   { grid-template-columns: 1fr !important; gap: 14px; }
    .affiliate-cta   { padding: 28px 16px !important; }
    .cta-heading     { font-size: 1.7rem !important; }

    /* Promo popup */
    .promo-popup-content { width: 92%; border-radius: 16px; max-height: 84vh; }
    .promo-popup-body { padding: 14px 18px 24px; }
    .promo-title    { font-size: 1.5rem; }
    .promo-subtitle { font-size: .84rem; }
    .promo-steps    { grid-template-columns: 1fr; gap: 10px; }

    /* Futures page */
    .futures-hero { padding: 100px 16px 56px !important; }
    .hero-stats { flex-direction: column; gap: 10px; align-items: center; }
    .stat-item  { width: 100%; max-width: 340px; padding: 14px 20px; justify-content: center; }
    .hero-cta   { flex-direction: column; align-items: center; gap: 12px; }
    .hero-cta a, .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; text-align: center; }
    .futures-content { padding: 50px 16px !important; }
    .tabs-container  { padding: 0 !important; }
    .comparison-table, .futures-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .comparison-table table, .futures-table-wrapper table { min-width: 560px; }
    .new-pricing-table { min-width: 540px; }

    /* New Prop Firm */
    .npf-hero       { padding: 100px 16px 56px !important; }
    .npf-hero-title { font-size: 1.85rem !important; line-height: 1.2; }
    .npf-section    { padding: 48px 16px !important; }
    .npf-cards-grid, .npf-why-grid, .npf-models-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .npf-card { padding: 22px 16px !important; }
}

/* ---------------------------------------------------------------
   5.  XS MOBILE (max-width: 479px)
--------------------------------------------------------------- */
@media (max-width: 479px) {
    body { padding-top: 78px; }
    .promo-ribbon  { height: 26px; }
    .promo-message { font-size: 9.5px; padding: 0 14px; }
    .navbar        { top: 26px; }
    .nav-container { padding: 7px 12px; }
    .logo span     { font-size: 12.5px; }
    .logo img      { height: 22px; }
    .hero-title     { font-size: 2rem; }
    .hero-highlight { font-size: 2.2rem; }
    .btn-hero-primary, .btn-hero-secondary { font-size: .88rem; padding: 12px 20px; }
    .stat-number { font-size: 2.5rem; } .stat-suffix { font-size: 1.65rem; }
    .section-title, .page-title, .content-title,
    .pricing-title-new, .faq-main-title, .traders-title, .cta-title { font-size: 1.5rem !important; }
    .pricing-table-new { min-width: 650px; }
    .pricing-row-new   { grid-template-columns: 120px repeat(8,1fr) !important; }
    .pricing-cell-new  { padding: 11px 7px; font-size: 11.5px; }
    .stat-card-inline  { flex: 1 1 100% !important; }
    .footer       { padding: 28px 12px 24px; }
    .footer-logo span   { font-size: .9rem; }
    .footer-description { font-size: .8rem; }
    .footer-links li a, .footer-links li { font-size: .8rem; }
    .promo-popup-content { width: 96%; }
    .mob-nav-item { font-size: 9px; gap: 2px; }
    .mob-nav-item svg { width: 19px; height: 19px; }
    .rule-category { padding: 18px 14px !important; }
    .values-grid   { gap: 10px; }
    .affiliate-stats { grid-template-columns: 1fr !important; }
    .stats-grid-about { grid-template-columns: 1fr !important; }
    .sizes-grid { grid-template-columns: repeat(2,1fr) !important; }
}

/* =============================================================
   MOBILE-ONLY ENHANCEMENTS
   ============================================================= */

/* ── Mobile Pricing Cards (hidden on desktop/tablet) ── */
.pricing-cards-mobile { display: none; }

/* ── Mobile Stats row: always one row ── */
/* (desktop default is 3-col grid — keep it) */

@media (max-width: 767px) {

    /* ── Stats: force single row of 3 ───────────────── */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 10px 12px 24px !important;
    }
    .stat-box { text-align: center; }
    .stat-number {
        font-size: 1.8rem !important;
        margin-bottom: 4px !important;
    }
    .stat-suffix { font-size: 1.2rem !important; }
    .stat-label  { font-size: 0.65rem !important; line-height: 1.3; }

    /* ── Hide desktop table on mobile ───────────────── */
    .pricing-table-wrapper-new { display: none !important; }

    /* ── Show mobile cards ───────────────────────────── */
    .pricing-cards-mobile {
        display: block !important;
        margin-top: 16px;
    }

    /* ── Horizontal scroll container ────────────────── */
    .mob-cards-scroll {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 4px 4px 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .mob-cards-scroll::-webkit-scrollbar { display: none; }

    /* ── Individual plan card ────────────────────────── */
    .mob-price-card {
        flex: 0 0 260px;
        background: rgb(7, 4, 17);
        border: 1.5px solid rgba(91, 76, 255, 0.28);
        border-radius: 16px;
        overflow: hidden;
        scroll-snap-align: start;
        transition: border-color .25s ease;
    }
    .mob-price-card:first-child { margin-left: 4px; }
    .mob-price-card:last-child  { margin-right: 4px; }

    /* ── Card header (size + CTA) ────────────────────── */
    .mob-card-header {
        background: rgb(10, 6, 22);
        padding: 20px 16px 14px;
        text-align: center;
        border-bottom: 1px solid rgba(91, 76, 255, 0.18);
    }
    .mob-card-size {
        font-family: 'Montserrat Black', sans-serif;
        font-size: 2rem;
        font-weight: 900;
        color: #fff;
        letter-spacing: -0.02em;
        margin-bottom: 10px;
    }
    .mob-card-btn {
        display: block;
        width: 100%;
        padding: 10px 0;
        background: var(--secondary-color, #5B4CFF);
        border: none;
        border-radius: 12px;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: background .25s ease, transform .2s ease;
        font-family: inherit;
        margin-bottom: 8px;
    }
    .mob-card-btn:active { transform: scale(.97); }
    .mob-card-fee {
        font-size: 12px;
        color: rgba(228, 238, 252, 0.65);
    }
    .mob-card-fee strong { color: #fff; }

    /* ── Feature rows ────────────────────────────────── */
    .mob-card-features { padding: 6px 0; }
    .mob-card-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 9px 16px;
        border-bottom: 1px solid rgba(91, 76, 255, 0.08);
    }
    .mob-card-row:last-child { border-bottom: none; }
    .mob-card-row:nth-child(even) { background: rgba(29, 18, 68, 0.4); }
    .mob-card-label {
        font-size: 11.5px;
        color: rgba(228, 238, 252, 0.72);
        font-weight: 500;
        flex: 1;
        padding-right: 8px;
    }
    .mob-card-value {
        font-size: 11.5px;
        color: #fff;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 60px;
        text-align: right;
    }
    .mob-card-value svg { flex-shrink: 0; }
    .mob-card-value span { color: #fff; }

    /* ── Swipe hint ──────────────────────────────────── */
    .mob-cards-hint {
        text-align: center;
        font-size: 11px;
        color: rgba(91, 76, 255, 0.65);
        font-weight: 600;
        letter-spacing: 0.3px;
        margin-top: 8px;
        padding: 0 16px;
    }

    /* ── Footer: 2-column layout ─────────────────────── */
    .footer-columns {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px 18px !important;
    }
    .footer-company {
        grid-column: span 2 !important;
        border-bottom: 1px solid rgba(91, 76, 255, 0.15);
        padding-bottom: 20px;
        margin-bottom: 4px;
    }
    .footer-heading { font-size: .95rem !important; margin-bottom: 10px !important; }
    .footer-links li a, .footer-links li { font-size: .82rem !important; }
    .footer-links { gap: 8px !important; }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding-top: 16px;
    }
}

@media (max-width: 479px) {
    /* Even smaller stats text */
    .stat-number { font-size: 1.55rem !important; }
    .stat-suffix { font-size: 1rem !important; }
    .stat-label  { font-size: 0.58rem !important; }

    /* Slightly narrower cards on XS */
    .mob-price-card { flex: 0 0 230px; }
    .mob-card-size  { font-size: 1.75rem; }
}


/* =============================================================
   PRICING TABS — SCROLL (MOBILE ONLY)
   ============================================================= */

/* Desktop: scroll-outer is just a transparent passthrough */
.pricing-tabs-scroll-outer {
    display: flex;
    align-items: center;
}

/* Dots hidden on desktop */
.tab-scroll-dots { display: none; }

@media (max-width: 767px) {

    /* Wrapper: stack vertically on mobile */
    .pricing-tabs-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    /* Outer becomes the SCROLLABLE WINDOW */
    .pricing-tabs-scroll-outer {
        display: block;
        width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-mask-image: linear-gradient(to right, black 75%, transparent 100%);
        mask-image: linear-gradient(to right, black 75%, transparent 100%);
    }
    .pricing-tabs-scroll-outer::-webkit-scrollbar { display: none; }

    /* Inner: single row, wider than screen → this creates the scroll */
    .pricing-tabs-container {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        gap: 6px !important;
        padding: 7px 14px !important;
        background: rgb(15, 9, 36) !important;
        border: 1.5px solid rgba(167,139,250,.18) !important;
        border-radius: 50px !important;
    }

    /* Each tab stays on one line */
    .pricing-tab-new {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 11.5px !important;
        padding: 9px 14px !important;
    }

    /* Futures btn full width below tabs */
    .futures-plan-btn {
        width: 100%;
        justify-content: center;
    }

    /* Blinking dots */
    .tab-scroll-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 2px 0;
    }
    .tab-scroll-dot {
        width: 7px; height: 7px;
        border-radius: 50%;
        background: rgba(91,76,255,.28);
        cursor: pointer;
        transition: all .3s ease;
        animation: dotBlink 2s ease-in-out infinite;
        flex-shrink: 0;
    }
    .tab-scroll-dot:nth-child(2) { animation-delay: .25s; }
    .tab-scroll-dot:nth-child(3) { animation-delay: .5s; }
    .tab-scroll-dot:nth-child(4) { animation-delay: .75s; }
    .tab-scroll-dot.active {
        width: 22px;
        border-radius: 4px;
        background: #5B4CFF;
        animation: none;
    }
    @keyframes dotBlink {
        0%, 100% { opacity: .25; }
        50%       { opacity: .85; transform: scale(1.2); }
    }
    .tab-scroll-hint {
        width: 100%;
        text-align: center;
        font-size: 9.5px;
        font-weight: 700;
        letter-spacing: .6px;
        text-transform: uppercase;
        color: rgba(91,76,255,.55);
        animation: hintFade 2.4s ease-in-out infinite;
    }
    @keyframes hintFade {
        0%, 100% { opacity: .3; }
        50%       { opacity: 1; }
    }
}

/* =============================================================
   MOBILE NAV — RIGHT SIDE (Get Funded + Hamburger)
   ============================================================= */

/* Hidden on desktop — only shown on mobile */
.mob-nav-right {
    display: none;
}

/* Get Funded button — hidden on desktop */
.btn-mob-getfunded {
    display: none;
}

@media (max-width: 1199px) {
    /* Show the right-side group on tablet/mobile */
    .mob-nav-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .btn-mob-getfunded {
        display: inline-flex;
        align-items: center;
        padding: 9px 16px;
        background: var(--primary-color, #FF5722);
        color: #fff;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        transition: all .25s ease;
        box-shadow: 0 4px 14px rgba(255,87,34,.35);
    }
    .btn-mob-getfunded:hover {
        background: #ff6b3d;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(255,87,34,.5);
    }
}

@media (max-width: 767px) {
    .btn-mob-getfunded {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 9px;
    }
    /* Bigger logo text on mobile */
    .logo span { font-size: 16px !important; }
    .logo img  { height: 28px !important; }
}

@media (max-width: 479px) {
    .btn-mob-getfunded {
        padding: 7px 12px;
        font-size: 11px;
    }
    .logo span { font-size: 15px !important; }
    .logo img  { height: 25px !important; }
}

/* =============================================================
   MT5 BADGE — no border/bg on mobile, just icon + text
   ============================================================= */
@media (max-width: 767px) {
    .mt5-badge {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 10px;
        gap: 8px;
    }
    .mt5-badge img {
        width: 26px;
        height: 26px;
    }
    .mt5-badge span {
        font-size: .88rem;
        color: rgba(228,238,252,.75);
    }

    /* Stats row — always visible on mobile */
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding: 14px 12px 24px !important;
        width: 100%;
    }
    .stat-box { text-align: center; }
    .stat-number {
        font-size: 1.75rem !important;
        margin-bottom: 3px !important;
        line-height: 1 !important;
    }
    .stat-suffix { font-size: 1.1rem !important; }
    .stat-label  { font-size: 0.6rem !important; line-height: 1.3; }
}

@media (max-width: 479px) {
    .stat-number { font-size: 1.5rem !important; }
    .stat-suffix { font-size: .95rem !important; }
    .stat-label  { font-size: 0.55rem !important; }
}
