/* صفحه اول: اولویت با نرخ‌ها و مسیرهای سریع است */
.modern-home-hero{display:block;padding-top:0;padding-bottom:18px}.modern-home-copy{display:none}.home-secondary-market{display:none}.home-quick-actions{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #dfe8ea;border-bottom:1px solid #dfe8ea}.home-quick-actions a{display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center;padding:12px 16px;border-left:1px solid #e5edef;color:#294650;text-decoration:none}.home-quick-actions a:first-child{border-right:1px solid #e5edef}.home-quick-actions a:last-child{border-left:0}.home-quick-actions a:hover{background:#f1faf7}.home-quick-actions span{grid-row:span 2;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e8f7f2;color:#0b8f72;font-size:16px;font-weight:900}.home-quick-actions strong{font-size:11px}.home-quick-actions small{color:#8b999d;font-size:9px}.modern-home>.modern-home-section{padding-top:30px}
@media(max-width:650px){.home-quick-actions{grid-template-columns:1fr 1fr}.home-quick-actions a{border-bottom:1px solid #e5edef}.home-quick-actions a:nth-child(2){border-left:0}.home-quick-actions a:nth-child(3),.home-quick-actions a:nth-child(4){border-bottom:0}.modern-home-hero{padding-bottom:12px}}

/* نوار خوش‌آمد و سیگنال‌های سریع؛ هویت بصری زنده‌تر بدون کارت‌های سنگین */
.home-welcome-strip{position:relative;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr) auto;align-items:center;gap:28px;min-height:126px;margin-top:4px;padding:22px 28px;overflow:hidden;border-top:1px solid #c9e8dd;border-bottom:1px solid #c9e8dd;background:linear-gradient(100deg,#effaf6 0%,#fffdf5 52%,#fff8e6 100%)}
.home-welcome-strip::before,.home-welcome-strip::after{position:absolute;content:"";pointer-events:none;border-radius:50%;filter:blur(1px)}.home-welcome-strip::before{width:230px;height:230px;right:-85px;top:-120px;background:#f6ce672d}.home-welcome-strip::after{width:170px;height:170px;left:28%;bottom:-130px;background:#39b99b20}
.home-welcome-copy,.home-welcome-signals,.home-welcome-action{position:relative;z-index:1}.home-welcome-kicker{display:inline-flex;align-items:center;gap:6px;color:#0b8f72;font-size:9px;font-weight:950;letter-spacing:.04em}.home-welcome-kicker i{width:7px;height:7px;border-radius:50%;background:#18a783;box-shadow:0 0 0 5px #18a78318}.home-welcome-copy h1{margin:7px 0 4px;color:#173e4d;font-size:22px;letter-spacing:-.04em}.home-welcome-copy p{margin:0;color:#70858b;font-size:11px}.home-welcome-signals{display:flex;align-items:center;justify-content:center;gap:0}.home-welcome-signals span{display:grid;gap:4px;min-width:92px;padding:0 16px;border-left:1px solid #d5e8e3;text-align:center}.home-welcome-signals span:first-child{border-left:0}.home-welcome-signals b{color:#164a55;font-size:18px;line-height:1}.home-welcome-signals small{color:#819296;font-size:8px;white-space:nowrap}.home-welcome-action{display:inline-flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid #0b8f72;border-radius:9px;background:#0b8f72;color:#fff;font-size:10px;font-weight:900;text-decoration:none;white-space:nowrap;box-shadow:0 8px 18px #0b8f7226;transition:transform .2s,box-shadow .2s}.home-welcome-action:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0b8f7235}.home-welcome-action span{font-size:15px;line-height:1}
.home-quick-actions{position:relative;background:#fff}.home-quick-actions a{transition:background .2s,color .2s}.home-quick-actions a:hover{color:#08745f}.home-quick-actions a:nth-child(2) span{background:#fff5d9;color:#b47c13}.home-quick-actions a:nth-child(3) span{background:#edf2ff;color:#526eb3}.home-quick-actions a:nth-child(4) span{background:#f6edff;color:#8a58a6}.home-quick-actions strong{letter-spacing:-.02em}
@media(max-width:900px){.home-welcome-strip{grid-template-columns:1fr auto;gap:18px}.home-welcome-signals{grid-column:1/-1;justify-content:flex-start;order:3}.home-welcome-action{grid-column:2;grid-row:1;align-self:end}}
@media(max-width:650px){.home-welcome-strip{grid-template-columns:1fr;gap:16px;margin-top:0;padding:20px 15px}.home-welcome-copy h1{font-size:19px}.home-welcome-signals{grid-column:auto;justify-content:space-between}.home-welcome-signals span{min-width:0;flex:1;padding:0 8px}.home-welcome-signals b{font-size:15px}.home-welcome-action{grid-column:auto;grid-row:auto;justify-content:center}.home-quick-actions{margin-top:0}.home-quick-actions a{padding:11px 10px}}

/* ویترین ابزارها؛ یک مسیر شاخص و یک ریل سریع به جای سه کارت هم‌شکل */
.home-tools-showcase{padding-top:48px}.home-tools-showcase .modern-section-heading{margin-bottom:19px}.home-tools-showcase .modern-section-heading h2{letter-spacing:-.04em}.home-tools-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.9fr);gap:12px}.home-tools-layout .modern-tool-card{border-radius:16px}.home-tool-featured{position:relative;display:flex;align-items:center;gap:20px;min-height:210px;padding:27px 30px;overflow:hidden;border:0!important;background:linear-gradient(120deg,#0d3f52 0%,#087b6b 67%,#20a681 100%)!important;color:#fff!important;box-shadow:0 16px 30px #0d5d5526}.home-tool-featured::before{position:absolute;content:"";width:310px;height:310px;right:-120px;top:-110px;border:1px solid #ffffff2c;border-radius:50%;box-shadow:0 0 0 22px #ffffff0d,0 0 0 44px #ffffff08}.home-tool-featured-glow{position:absolute;width:140px;height:140px;right:50px;bottom:-100px;border-radius:50%;background:#f4cb6128;filter:blur(2px)}.home-tool-featured .modern-tool-icon{position:relative;z-index:1;flex:0 0 70px;width:70px;height:70px;border:1px solid #f9d87875;border-radius:20px;background:#f6cc6330;color:#ffe28f;font-size:34px;box-shadow:0 10px 25px #061d2a35}.home-tool-featured-copy{position:relative;z-index:1;min-width:0}.home-tool-label{display:block;margin-bottom:6px;color:#0b8f72;font-size:9px;font-weight:950}.home-tool-featured .home-tool-label{color:#bff3e6}.home-tool-featured h3{margin:0 0 8px;font-size:22px;letter-spacing:-.04em}.home-tool-featured p{max-width:510px;margin:0;color:#d1eee8;font-size:11px;line-height:2}.home-tool-cta{display:inline-flex;align-items:center;gap:9px;margin-top:16px;padding:8px 11px;border-radius:7px;background:#fff;color:#08745f;font-size:10px;font-weight:950}.home-tool-cta b{font-size:15px;line-height:0}.home-tool-featured-mark{position:absolute;left:24px;bottom:14px;color:#ffffff30;font-size:43px;font-weight:950;line-height:1}.home-tool-rail{display:grid;grid-template-rows:repeat(3,1fr);gap:8px}.home-tool-compact{display:flex;align-items:center;gap:12px;min-height:0;padding:12px 15px;border-color:#dfe9ec;background:#fff}.home-tool-compact:hover{border-color:#aad8cb;background:#fbfffd}.home-tool-compact .modern-tool-icon{width:38px;height:38px;border-radius:11px;font-size:18px}.home-tool-compact>div{min-width:0;flex:1}.home-tool-compact h3{margin:0 0 2px;font-size:13px}.home-tool-compact p{margin:0;color:#9aa7ac;font-size:10px}.home-tool-compact>b{color:#0b8f72;font-size:16px}.home-tool-more{background:linear-gradient(100deg,#fffdf6,#f8fbf9);border-color:#e9dfc2}.home-tool-more .modern-tool-icon.purple{background:#f4ecff;color:#8a5ab0}
@media(max-width:800px){.home-tools-layout{grid-template-columns:1fr}.home-tool-featured{min-height:190px}.home-tool-rail{grid-template-columns:repeat(3,1fr);grid-template-rows:none}.home-tool-compact{display:grid;justify-items:center;align-content:center;gap:7px;padding:13px 8px;text-align:center}.home-tool-compact>div{width:100%}.home-tool-compact h3{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-tool-compact p{font-size:9px}.home-tool-compact>b{display:none}}
@media(max-width:560px){.home-tools-showcase{padding-top:36px}.home-tools-showcase .modern-section-heading>a{display:none}.home-tool-featured{align-items:flex-start;gap:14px;min-height:220px;padding:23px 17px}.home-tool-featured .modern-tool-icon{flex-basis:53px;width:53px;height:53px;border-radius:15px;font-size:25px}.home-tool-featured h3{font-size:18px}.home-tool-featured p{font-size:10px}.home-tool-featured-mark{font-size:32px;left:13px}.home-tool-rail{gap:6px}.home-tool-compact{padding:11px 5px}.home-tool-compact .modern-tool-icon{width:32px;height:32px;font-size:15px}.home-tool-compact h3{font-size:10px}}


/* ریتم بصری نیمه پایین صفحه اول */
.modern-home-section.site-container:has(.modern-article-grid),.modern-home-section.site-container:has(.home-recommendations),.modern-home-section.site-container:has(.home-favorites){position:relative}.modern-home-section.site-container:has(.modern-article-grid)::before,.modern-home-section.site-container:has(.home-recommendations)::before,.modern-home-section.site-container:has(.home-favorites)::before{position:absolute;content:"";right:-24px;top:38px;width:5px;height:28px;border-radius:5px;background:linear-gradient(#f0c759,#0b8f72)}.modern-article-grid{grid-template-columns:1.35fr 1fr 1fr;gap:0;border-top:1px solid #dfe9ec;border-bottom:1px solid #dfe9ec;background:#fff}.modern-article-card{position:relative;min-height:218px;padding:23px 21px;border:0;border-left:1px solid #e5edef;border-radius:0;background:transparent;overflow:hidden;transition:background .2s}.modern-article-card:first-child{padding-right:25px;background:linear-gradient(145deg,#f1faf7,#fff)}.modern-article-card:last-child{border-left:0}.modern-article-card::before{position:absolute;content:"";right:0;top:0;width:100%;height:3px;background:#dcebe7;transform:scaleX(0);transform-origin:right;transition:transform .25s}.modern-article-card:hover{background:#f5fbf9}.modern-article-card:hover::before{transform:scaleX(1);background:#0b8f72}.modern-article-card:first-child::after{position:absolute;content:"01";left:17px;bottom:8px;color:#0b8f7218;font-size:42px;font-weight:950;line-height:1}.modern-article-card:first-child h3{font-size:20px;max-width:470px}.modern-article-card>span{display:inline-flex;padding:4px 8px;border-radius:999px;background:#e4f6f0;color:#08745f;font-size:9px;font-weight:900}.modern-article-card h3{line-height:1.7}.modern-article-card p{font-size:11px}.modern-article-card .modern-text-link{position:relative;z-index:1}
.home-recommendations{padding-top:50px}.home-recommendation-heading,.home-favorites-heading{padding-bottom:14px;border-bottom:1px solid #dfe9ec}.home-recommendation-heading h2,.home-favorites-heading h2{letter-spacing:-.04em}.home-recommendation-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid #dfe9ec;background:#fff}.home-recommendation-card{min-height:108px;padding:16px;border:0;border-left:1px solid #e5edef;border-radius:0;box-shadow:none;background:transparent}.home-recommendation-card:last-child{border-left:0}.home-recommendation-card:hover{transform:none;border-color:#e5edef;background:#f5fbf9;box-shadow:none}.home-recommendation-icon{transition:transform .2s}.home-recommendation-card:hover .home-recommendation-icon{transform:rotate(-8deg) scale(1.08)}
.home-favorites{padding-bottom:10px}.home-favorites-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.home-favorite-card{min-height:102px;border-radius:11px;box-shadow:none;transition:transform .2s,background .2s}.home-favorite-card:hover{transform:translateY(-2px);background:#fff9e7;box-shadow:none}.home-favorites-empty{border-radius:11px;background:linear-gradient(100deg,#fffdf5,#f4faf8)}
@media(max-width:900px){.modern-article-grid{grid-template-columns:1fr 1fr}.modern-article-card:first-child{grid-column:1/-1;border-bottom:1px solid #e5edef}.modern-article-card:nth-child(2){padding-right:0}.modern-article-card:last-child{border-left:0}.home-recommendation-grid,.home-favorites-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-recommendation-card:nth-child(2){border-left:0}.home-recommendation-card:nth-child(-n+2){border-bottom:1px solid #e5edef}.home-recommendation-card:nth-child(3),.home-recommendation-card:nth-child(4){border-top:0}}
@media(max-width:600px){.modern-home-section.site-container:has(.modern-article-grid)::before,.modern-home-section.site-container:has(.home-recommendations)::before,.modern-home-section.site-container:has(.home-favorites)::before{right:-8px}.modern-article-grid{grid-template-columns:1fr}.modern-article-card,.modern-article-card:first-child,.modern-article-card:last-child{min-height:0;padding:18px 0;border-left:0;border-bottom:1px solid #e5edef}.modern-article-card:last-child{border-bottom:0}.modern-article-card:first-child{grid-column:auto}.modern-article-card:first-child h3{font-size:18px}.home-recommendation-grid,.home-favorites-grid{grid-template-columns:1fr}.home-recommendation-card,.home-recommendation-card:nth-child(2),.home-recommendation-card:nth-child(3),.home-recommendation-card:nth-child(4){border-left:0;border-bottom:1px solid #e5edef}.home-recommendation-card:last-child{border-bottom:0}}

/* Market-portal header: compact quote desk above the fold. */
.modern-home-hero{gap:0!important;padding:0!important}
.modern-home-copy{display:none!important}
.modern-market-overview{padding:0!important;border:1px solid #dfe8ea!important;border-radius:10px!important;background:#fff!important;box-shadow:0 8px 22px rgba(27,63,75,.06)!important;overflow:hidden}
.modern-market-overview .home-market-promo,.modern-market-overview .home-market-lead,.modern-market-overview .home-market-pulse{display:none!important}
.modern-market-overview-head{display:flex!important;align-items:center!important;padding:10px 14px!important;margin:0!important;border-bottom:1px solid #e8eef0!important;background:#fbfdfd}
.modern-market-overview-head h2{margin:2px 0 0!important;font-size:16px!important}
.modern-market-overview-kicker{font-size:8px!important;color:#087b6b!important}
.modern-market-overview-grid{grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:0!important;padding:0!important}
.modern-market-overview-card{min-height:74px!important;padding:9px 8px!important;border:0!important;border-left:1px solid #e8eef0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
.modern-market-overview-card:hover{transform:none!important;background:#f7fbfa!important;box-shadow:none!important}
.modern-market-card-title{margin-top:4px!important;font-size:9px!important}
.modern-market-overview-card strong{font-size:13px!important}
.modern-market-overview-card strong small{font-size:7px!important}
.modern-market-card-caption{font-size:7px!important}
.modern-market-overview-filters{padding:8px 12px!important;margin:0!important;border-top:1px solid #edf1f2!important;overflow-x:auto}
.modern-market-overview-filters button{padding:5px 9px!important;font-size:9px!important;white-space:nowrap}
.home-market-panels{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;padding:0!important;border-top:1px solid #e8eef0!important}
.home-market-panel{border:0!important;border-left:1px solid #e8eef0!important;border-radius:0!important}
.home-market-panel-head{padding:9px 11px 7px!important;background:#fbfdfd!important}
.home-market-panel-head h3{font-size:12px!important}
.home-market-panel-row{padding:8px 10px!important;gap:6px!important}
.home-market-panel-row b{font-size:10px!important}
.home-market-panel-row strong{font-size:10px!important}
.modern-market-overview-footer{display:none!important}
.ad-slot-home-hero{margin-top:7px!important;margin-bottom:7px!important}
.modern-home>.market-ticker{margin-top:8px!important}
@media(max-width:1100px){.modern-market-overview-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.modern-market-overview-card:nth-child(5n){border-left:0}.home-market-panels{grid-template-columns:repeat(2,minmax(0,1fr))!important}.home-market-panel:last-child{grid-column:1/-1}}
@media(max-width:650px){.modern-market-overview-head{padding:9px 10px!important}.modern-market-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.modern-market-overview-card{min-height:70px!important;border-bottom:1px solid #edf1f2!important}.modern-market-overview-card:nth-child(odd){border-left:1px solid #e8eef0!important}.modern-market-overview-card:nth-child(even){border-left:0!important}.home-market-panels{grid-template-columns:1fr!important}.home-market-panel:last-child{grid-column:auto}}
/* خوشه تبلیغاتی بالای صفحه: چند جایگاه کوچک، بدون بنر سنگین */
.homepage-ad-cluster{display:block;margin:8px auto 10px}
.homepage-ad-cluster .ad-slot{height:auto;margin:0;min-height:0;border:0;background:transparent;overflow:visible}
.homepage-ad-lead .ad-slot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,220px));justify-content:center;align-items:stretch;gap:10px;width:100%;min-height:0;padding:0}
.homepage-ad-lead .ad-slot-media{min-height:74px;max-height:84px;aspect-ratio:3 / 1;border:1px solid #e3ecec;border-radius:9px;background:#fff;box-shadow:0 4px 12px #17324d0a}
.homepage-ad-lead .ad-slot > .ad-slot-media{width:min(100%,220px);min-height:74px;margin-inline:auto}
.homepage-ad-lead .ad-slot-live img{object-fit:cover}
@media(max-width:650px){.homepage-ad-lead .ad-slot-grid{grid-template-columns:repeat(auto-fit,minmax(0,190px));gap:8px}.homepage-ad-lead .ad-slot-media{min-height:66px;max-height:76px}}
@media(max-width:420px){.homepage-ad-lead .ad-slot-grid{grid-template-columns:minmax(0,260px)}.homepage-ad-lead .ad-slot-media{min-height:68px}}
