@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');
/* Crypto Radar Persian homepage - consolidated local stylesheet. */
html[lang="fa-IR"] body{font-family:Vazirmatn,Tahoma,Arial,sans-serif;text-align:right;line-height:1.8}
html[lang="fa-IR"] :is(h1,h2,h3,h4,p,a,button,input,select,textarea){letter-spacing:normal}
html[lang="fa-IR"] :is(h1,h2,h3,h4){font-family:Vazirmatn,Tahoma,sans-serif;line-height:1.5;overflow-wrap:break-word}
html[lang="fa-IR"] :is(.section p,.intro,.screener-product-copy p){line-height:1.9}
html[lang="fa-IR"] .section{padding-block:clamp(44px,5.5vw,75px)}
html[lang="fa-IR"] .section h2{font-size:clamp(23px,2.5vw,38px);line-height:1.5;letter-spacing:0}
html[lang="fa-IR"] .kicker,html[lang="fa-IR"] .eyebrow{letter-spacing:0;font-size:12px}
html[lang="fa-IR"] .hero{padding:clamp(62px,6vw,90px) 20px clamp(45px,5vw,65px)}
html[lang="fa-IR"] .hero h1{font-size:clamp(32px,4.2vw,62px);line-height:1.5;letter-spacing:0;margin:16px auto 18px;max-width:950px}
html[lang="fa-IR"] .hero>p{font-size:clamp(14px,1.25vw,17px);line-height:2;max-width:820px}
html[lang="fa-IR"] .hero-actions{gap:12px}
/* Header remains fixed as in the original English site. */
html[lang="fa-IR"] body{padding-top:72px}
html[lang="fa-IR"] header.nav{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;z-index:5000!important;min-height:72px;gap:clamp(8px,1vw,16px);padding-inline:clamp(12px,2vw,30px)}
html[lang="fa-IR"] header.nav .brand{flex-shrink:0;font-size:12px;gap:5px}
html[lang="fa-IR"] header.nav nav{display:flex;min-width:0;flex:1 1 auto;gap:clamp(9px,.85vw,16px);margin:0;align-items:center;justify-content:center;overflow-x:auto;scrollbar-width:none}
html[lang="fa-IR"] header.nav nav::-webkit-scrollbar{display:none}
html[lang="fa-IR"] header.nav nav a{white-space:nowrap;flex:0 0 auto;font-size:clamp(11px,.85vw,13px);line-height:1.6}
html[lang="fa-IR"] header.nav .actions{flex-shrink:0;gap:7px}
html[lang="fa-IR"] header.nav .actions .linkbtn{font-size:12px;padding:9px 11px;white-space:nowrap}
/* Language switcher is a compact accessible disclosure. */
html[lang="fa-IR"] .language-switcher{position:relative;flex:0 0 auto;font-size:12px;z-index:5}
html[lang="fa-IR"] .language-switcher summary{list-style:none;cursor:pointer;border:1px solid #294534;border-radius:9px;padding:8px 11px;white-space:nowrap;background:#0b160e;color:#dcece1}
html[lang="fa-IR"] .language-switcher summary::-webkit-details-marker{display:none}
html[lang="fa-IR"] .language-options{position:absolute;top:calc(100% + 8px);left:0;min-width:125px;background:#0a160f;border:1px solid #294534;border-radius:11px;box-shadow:0 16px 32px #0009;padding:5px;display:grid;gap:3px}
html[lang="fa-IR"] .language-options a{color:#dcece1;text-decoration:none;padding:8px 11px;border-radius:7px;text-align:right;white-space:nowrap}
html[lang="fa-IR"] .language-options a:hover{background:#193824}
/* Scanner and screener: give Persian descriptions room, retain LTR data. */
html[lang="fa-IR"] :is(.scanner-head,.table-title,.screener-showcase-head){gap:22px}
html[lang="fa-IR"] :is(.scanner-head p,.table-title p,.screener-showcase-head .intro){font-size:14px;line-height:1.85}
html[lang="fa-IR"] .screener-launch-v2 .screener-showcase-head h2{font-size:clamp(28px,3.5vw,49px);line-height:1.5;letter-spacing:0}
html[lang="fa-IR"] .screener-launch-v2 .screener-product{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:20px}
html[lang="fa-IR"] .screener-launch-v2 .screener-demo{min-width:0;min-height:430px;padding:clamp(14px,2vw,26px)}
html[lang="fa-IR"] .screener-product-copy{min-width:0;padding:clamp(18px,2.2vw,28px)}
html[lang="fa-IR"] .screener-product-copy h3{font-size:clamp(20px,2vw,28px);line-height:1.6}
html[lang="fa-IR"] .screener-benefits>div{grid-template-columns:28px minmax(0,1fr);gap:10px}
html[lang="fa-IR"] .screener-benefits p{font-size:13px;line-height:1.8}
html[lang="fa-IR"] .screener-benefits b{font-size:14px;line-height:1.6}
html[lang="fa-IR"] .screener-showcase-stats{min-width:0}
html[lang="fa-IR"] .screener-showcase-stats span{font-size:11px;letter-spacing:0;text-transform:none;line-height:1.65}
html[lang="fa-IR"] :is(.scanner-table,.screener-demo-table){direction:ltr}
html[lang="fa-IR"] :is(.crypto-symbol,.wallet-address,[data-direction="ltr"]){direction:ltr;unicode-bidi:isolate}
html[lang="fa-IR"] :is(.pricing article,.signal-grid article,.learn-grid article,.support-grid article){min-width:0}
html[lang="fa-IR"] .pricing article :is(p,li){line-height:1.85}
html[lang="fa-IR"] :is(#scanner,#signals,#etf-market,#screener-showcase,#learn,#how,#pricing,#support){scroll-margin-top:100px}
@media(max-width:1250px){
 html[lang="fa-IR"] header.nav nav{justify-content:flex-start}
 html[lang="fa-IR"] header.nav nav a{font-size:11px}
 html[lang="fa-IR"] .screener-launch-v2 .screener-product{grid-template-columns:1fr}
 html[lang="fa-IR"] .screener-launch-v2 .screener-demo{min-height:unset}
}
@media(max-width:1100px){
 html[lang="fa-IR"] header.nav nav{display:none}
 html[lang="fa-IR"] header.nav .mobile-menu-btn{display:flex;margin-inline-start:auto;margin-inline-end:0}
 html[lang="fa-IR"] header.nav.mobile-open{height:auto;flex-wrap:wrap;max-height:95vh;overflow-y:auto;align-content:flex-start}
 html[lang="fa-IR"] header.nav.mobile-open nav{display:flex;order:5;width:100%;flex:0 0 100%;flex-direction:column;align-items:stretch;overflow:visible;border-top:1px solid #233b2b}
 html[lang="fa-IR"] header.nav.mobile-open nav a{font-size:14px;padding:10px 6px;white-space:normal}
 html[lang="fa-IR"] header.nav .actions{display:none}
 html[lang="fa-IR"] header.nav.mobile-open .actions{display:flex;order:6;width:100%;flex:0 0 100%;justify-content:center;flex-wrap:wrap}
 html[lang="fa-IR"] .screener-showcase-head{display:block}
 html[lang="fa-IR"] .screener-showcase-stats{margin-top:18px}
}
@media(max-width:700px){
 html[lang="fa-IR"] body{padding-top:64px}
 html[lang="fa-IR"] header.nav{min-height:64px;padding-inline:12px}
 html[lang="fa-IR"] .hero{padding:55px 16px 40px}
 html[lang="fa-IR"] .hero h1{font-size:clamp(28px,7vw,39px);line-height:1.55}
 html[lang="fa-IR"] .hero>p{font-size:14px}
 html[lang="fa-IR"] .section h2{font-size:clamp(23px,5.2vw,30px)}
 html[lang="fa-IR"] .screener-launch-v2 .screener-showcase-head h2{font-size:clamp(26px,6vw,34px)}
 html[lang="fa-IR"] .screener-showcase-stats span{font-size:10px}
 html[lang="fa-IR"] .screener-product-copy{padding:18px}
 html[lang="fa-IR"] .screener-demo{padding:14px}
 html[lang="fa-IR"] .trust{flex-wrap:wrap}
}


/* PERSIAN_BRAND_LTR_FIX_V1
   Preserve English brand order inside Persian RTL pages.
*/

html[lang="fa-IR"] .brand {
    direction: ltr !important;
    flex-direction: row !important;
    unicode-bidi: isolate;
    text-align: left;
}

html[lang="fa-IR"] .brand .radar {
    direction: ltr;
    flex-shrink: 0;
}

html[lang="fa-IR"] .brand span,
html[lang="fa-IR"] .brand b {
    unicode-bidi: isolate;
}


/* PERSIAN_HOMEPAGE_FOOTER_V1
   Persian homepage footer only.
*/

html[lang="fa-IR"] body > footer {
    direction: rtl;
    display: grid;
    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(150px, .65fr)
        minmax(0, 1.25fr);
    column-gap: clamp(25px, 4vw, 70px);
    row-gap: 26px;
    align-items: start;
    max-width: 1240px;
    padding: 42px 28px 30px;
    margin-inline: auto;
}

/* Brand ? right column */
html[lang="fa-IR"] body > footer > div:first-child {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    text-align: right;
}

html[lang="fa-IR"] body > footer .footbrand {
    direction: ltr;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin-bottom: 14px;
}

html[lang="fa-IR"] body > footer > div:first-child > p {
    font-size: 12px;
    line-height: 1.9;
    margin: 0;
    max-width: 350px;
}

/* Navigation ? middle column */
html[lang="fa-IR"] body > footer .footlinks {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    text-align: right;
}

html[lang="fa-IR"] body > footer .footlinks a {
    display: block;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
}

/* Payments ? left column */
html[lang="fa-IR"] body > footer .footer-payments {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    text-align: right;
}

html[lang="fa-IR"] body > footer .footer-payments-title {
    margin-bottom: 14px;
    font-size: 13px;
}

html[lang="fa-IR"] body > footer .footer-payment-list {
    direction: ltr;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    width: 100%;
    justify-content: start;
}

html[lang="fa-IR"] body > footer .footer-payment-item {
    direction: ltr;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 7px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: nowrap;
}

html[lang="fa-IR"] body > footer .footer-payment-item svg {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
}

html[lang="fa-IR"] body > footer .footer-payment-item span {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

/* Legal links ? separate full-width row */
html[lang="fa-IR"] body > footer .footer-legal-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 26px;
    padding: 22px 0 0;
    margin: 0;
    border-top: 1px solid rgba(140, 185, 155, .15);
}

html[lang="fa-IR"] body > footer .footer-legal-links a {
    font-size: 11px;
    line-height: 1.7;
}

/* Risk disclosure */
html[lang="fa-IR"] body > footer > .legal {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
    max-width: 940px;
    margin: 0 auto;
    font-size: 11px;
    line-height: 2;
}

/* Mobile and tablet */
@media (max-width: 850px) {
    html[lang="fa-IR"] body > footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
        padding: 32px 20px;
    }

    html[lang="fa-IR"] body > footer > div:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    html[lang="fa-IR"] body > footer .footlinks,
    html[lang="fa-IR"] body > footer .footer-payments {
        grid-column: auto;
        grid-row: auto;
    }

    html[lang="fa-IR"] body > footer .footer-legal-links,
    html[lang="fa-IR"] body > footer > .legal {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 560px) {
    html[lang="fa-IR"] body > footer {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 28px 18px;
    }

    html[lang="fa-IR"] body > footer > div:first-child,
    html[lang="fa-IR"] body > footer .footlinks,
    html[lang="fa-IR"] body > footer .footer-payments,
    html[lang="fa-IR"] body > footer .footer-legal-links,
    html[lang="fa-IR"] body > footer > .legal {
        grid-column: 1;
        grid-row: auto;
    }

    html[lang="fa-IR"] body > footer .footer-payment-list {
        grid-template-columns: repeat(2, minmax(0, 150px)) !important;
    }
}

/* PERSIAN_ACADEMY_MOBILE_REFINEMENT_719
   Academy presentation only. Preserve lesson content and links.
*/
@media (max-width:700px) {
    html[lang="fa-IR"] .learn-main .learn-hero {
        padding:38px 16px 38px;
    }

    html[lang="fa-IR"] .learn-main .learn-hero h1 {
        font-size:clamp(29px,7.5vw,36px);
        line-height:1.5;
        letter-spacing:normal;
    }

    html[lang="fa-IR"] .learn-main .learn-hub-section {
        padding-top:46px;
        padding-bottom:56px;
    }

    html[lang="fa-IR"] .learn-main .learn-category-number {
        color:#8ba999;
        font-size:30px;
        line-height:1.3;
        opacity:.85;
    }

    html[lang="fa-IR"] .learn-main .learn-topic-list {
        gap:8px;
        margin-top:20px;
    }

    html[lang="fa-IR"] .learn-main .learn-topic-list span {
        font-size:12px;
        line-height:1.7;
        padding:7px 11px;
        border-color:#294333;
        color:#b4c9bc;
        overflow-wrap:anywhere;
    }
}


/* STEP1104_PERSIAN_MOBILE_DEMO_SCROLL
   Keep the six-column market preview readable on Persian mobile.
   Scroll the preview itself; do not widen the page.
*/
@media (max-width: 700px) {
  html[lang="fa-IR"] .screener-launch-v2 .screener-demo-table {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  html[lang="fa-IR"] .screener-launch-v2 .demo-row {
    min-width: 620px;
    box-sizing: border-box;
  }
}
