/* طرح رویا | هدر شیشه‌ای و مگا منو — سراسری (کلاس trwd-hdr روی همه صفحات، trwd-glass فقط صفحات طراحی جدید) */
body.trwd-glass{background:#0A0A0B}
body.trwd-glass #content>.ast-container,body.trwd-glass .site-content>.ast-container{max-width:none;padding:0;display:block}
body.trwd-glass #primary{margin:0;padding:0;width:100%}

/* هدر ثابت و شناور روی محتوا */
body.trwd-hdr .elementor-location-header{position:fixed!important;top:0;left:0;right:0;z-index:999;isolation:isolate}
body.trwd-hdr.admin-bar .elementor-location-header{top:32px}
@media (max-width:782px){body.trwd-hdr.admin-bar .elementor-location-header{top:46px}}
body.trwd-hdr .elementor-location-header .elementor-sticky__spacer{display:none!important}
body.trwd-hdr .elementor-location-header .elementor-section,
body.trwd-hdr .elementor-location-header .e-con{background:transparent!important;background-image:none!important;position:relative!important;top:auto!important;left:auto!important;width:100%!important;margin-top:0!important;box-shadow:none!important;border-color:transparent!important}

/* لایه شیشه‌ای دودی که بعد از اسکرول از بالا پایین می‌آید */
body.trwd-hdr .elementor-location-header::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(16,16,18,.58);-webkit-backdrop-filter:blur(18px) saturate(1.6);backdrop-filter:blur(18px) saturate(1.6);border-bottom:1px solid rgba(255,255,255,.09);box-shadow:0 12px 40px -18px rgba(0,0,0,.7);transform:translateY(-102%);transition:transform .65s cubic-bezier(.2,.75,.2,1)}
body.trwd-hdr.trwd-scrolled .elementor-location-header::before{transform:none}

/* حذف فاصله‌ی اضافه‌ی بالای هدر: اسپیسرهای المنتور و پدینگ نوار بالایی */
body.trwd-hdr .elementor-location-header .elementor-element-d9c3efa .elementor-widget-spacer{display:none!important}
body.trwd-hdr .elementor-location-header .elementor-element-d9c3efa>.elementor-container{padding-block:7px!important}
body.trwd-hdr .elementor-location-header .elementor-element-d9c3efa,
body.trwd-hdr .elementor-location-header .elementor-element-f4dfb91{padding-top:0!important;padding-bottom:0!important}
body.trwd-hdr .elementor-location-header .elementor-element-f4dfb91>.elementor-container>.elementor-column>.elementor-widget-wrap{padding-block:6px!important}

/* نوار بالایی (تلفن/ایمیل) بعد از اسکرول جمع می‌شود */
body.trwd-hdr .elementor-location-header .elementor-element-d9c3efa{max-height:200px;overflow:hidden;transition:max-height .55s cubic-bezier(.2,.75,.2,1),opacity .35s}
body.trwd-hdr.trwd-scrolled .elementor-location-header .elementor-element-d9c3efa{max-height:0;opacity:0}

/* رنگ متن‌ها روی زمینه تیره */
body.trwd-hdr .elementor-location-header,
body.trwd-hdr .elementor-location-header .elementor-heading-title,
body.trwd-hdr .elementor-location-header h1,body.trwd-hdr .elementor-location-header h2,body.trwd-hdr .elementor-location-header h3,
body.trwd-hdr .elementor-location-header h4,body.trwd-hdr .elementor-location-header h5,body.trwd-hdr .elementor-location-header h6,
body.trwd-hdr .elementor-location-header .elementor-icon-box-title,body.trwd-hdr .elementor-location-header .elementor-icon-box-title a,
body.trwd-hdr .elementor-location-header .elementor-icon-box-description,
body.trwd-hdr .elementor-location-header .elementor-shortcode,body.trwd-hdr .elementor-location-header .elementor-shortcode a,
body.trwd-hdr .elementor-location-header .elementor-widget-text-editor{color:#F4F4F5!important}
body.trwd-hdr .elementor-location-header .elementor-icon,
body.trwd-hdr .elementor-location-header .elementor-icon-box-icon .elementor-icon{color:#F4F4F5!important;fill:#F4F4F5!important;border-color:rgba(255,255,255,.25)!important}
body.trwd-hdr .elementor-location-header .elementor-icon svg,body.trwd-hdr .elementor-location-header .elementor-icon svg *{fill:currentColor!important}
body.trwd-hdr .elementor-location-header .elementor-nav-menu--main .elementor-item{color:#D4D4D8!important;transition:color .3s}
body.trwd-hdr .elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
body.trwd-hdr .elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active{color:#FFFFFF!important}
body.trwd-hdr .elementor-location-header .elementor-nav-menu--main .elementor-item:before,
body.trwd-hdr .elementor-location-header .elementor-nav-menu--main .elementor-item:after{background-color:#FFFFFF!important;border-color:#FFFFFF!important}
/* زیرمنوها */
body.trwd-hdr .elementor-location-header .elementor-nav-menu--main .sub-menu{background:rgba(16,16,18,.92)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.09)!important;border-radius:14px!important;overflow:hidden;box-shadow:0 20px 50px -20px rgba(0,0,0,.8)!important}
body.trwd-hdr .elementor-location-header .elementor-nav-menu--main .elementor-sub-item{color:#D4D4D8!important;background:transparent!important}
body.trwd-hdr .elementor-location-header .elementor-nav-menu--main .elementor-sub-item:hover{color:#FFFFFF!important;background:rgba(255,255,255,.07)!important}

/* ================= نشانگر شناور منو ================= */
body.trwd-hdr .elementor-location-header .elementor-nav-menu--main ul.elementor-nav-menu{position:relative}
body.trwd-hdr .trwd-has-pill .elementor-nav-menu--main>ul>li{position:relative;z-index:1}
body.trwd-hdr .trwd-has-pill .elementor-nav-menu--main .elementor-item:before,
body.trwd-hdr .trwd-has-pill .elementor-nav-menu--main .elementor-item:after{opacity:0!important}
.trwd-npill{position:absolute;left:0;top:0;z-index:0;width:var(--pw,0);height:var(--ph,0);transform:translate3d(var(--px,0),var(--py,0),0);border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 24px -12px rgba(0,0,0,.8);opacity:0;pointer-events:none;transition:transform .22s cubic-bezier(.3,.7,.2,1),width .22s cubic-bezier(.3,.7,.2,1),height .22s cubic-bezier(.3,.7,.2,1),opacity .2s}
.trwd-npill.is-on{opacity:1}
.trwd-npill.no-anim{transition:opacity .2s!important}
/* تا قبل از اجرای جاوااسکریپت (لایت‌اسپید آن را تا اولین حرکت موس عقب می‌اندازد) همان کپسول با CSS ساده نشان داده شود تا هاور بی‌درنگ باشد */
@media (min-width:1025px){body.trwd-hdr .elementor-location-header:not(.trwd-has-pill) .elementor-nav-menu--main ul.elementor-nav-menu>li>a{border-radius:999px;transition:background .2s,box-shadow .2s,color .2s}
body.trwd-hdr .elementor-location-header:not(.trwd-has-pill) .elementor-nav-menu--main ul.elementor-nav-menu>li>a:hover,body.trwd-hdr .elementor-location-header:not(.trwd-has-pill) .elementor-nav-menu--main ul.elementor-nav-menu>li>a.elementor-item-active{background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04));box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}}
body.trwd-hdr .trwd-has-mega .elementor-nav-menu--main .trwd-mega-li>ul.sub-menu{display:none!important}
body.trwd-hdr .trwd-has-mega .trwd-mega-li>a .sub-arrow{transform:none!important}
/* فقط خود آیکن می‌چرخد؛ چرخاندن کل جعبه (با فاصله‌ی نامتقارن) فلش را کنار متن پرت می‌کرد */
body.trwd-hdr .elementor-nav-menu .sub-arrow i,body.trwd-hdr .elementor-nav-menu .sub-arrow svg{display:inline-block;transition:transform .35s cubic-bezier(.2,.75,.2,1)}
body.trwd-hdr .trwd-has-mega .trwd-mega-li.is-open>a .sub-arrow i,body.trwd-hdr .trwd-has-mega .trwd-mega-li.is-open>a .sub-arrow svg{transform:rotate(180deg)}
body.trwd-hdr .trwd-has-mega .trwd-mega-li.is-open>a{color:#fff!important}
body.trwd-hdr.trwd-mega-open .elementor-location-header::before{transform:none}

/* ================= مگا منو ================= */
.trwd-mega{--g:rgba(255,255,255,.1);position:absolute;top:calc(100% + 10px);left:50%;z-index:5;width:min(1140px,calc(100vw - 48px));transform:translate3d(-50%,-14px,0) scale(.985);transform-origin:50% 0;opacity:0;visibility:hidden;pointer-events:none;font-family:Vazir,Tahoma,sans-serif;direction:rtl;transition:opacity .35s cubic-bezier(.2,.75,.2,1),transform .55s cubic-bezier(.2,.75,.2,1),visibility 0s .55s}
.trwd-mega::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.trwd-mega.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translate3d(-50%,0,0) scale(1);transition:opacity .35s cubic-bezier(.2,.75,.2,1),transform .55s cubic-bezier(.2,.75,.2,1),visibility 0s}
.trwd-mega .tm-in{position:relative;display:grid;grid-template-columns:1.45fr 1fr;gap:22px;padding:22px;border-radius:28px;background:linear-gradient(160deg,rgba(28,28,32,.97),rgba(12,12,14,.985));border:1px solid rgba(255,255,255,.1);box-shadow:0 40px 90px -30px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.08);overflow:hidden;isolation:isolate}
.trwd-mega .tm-in::after{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(120deg,rgba(34,211,238,.5),rgba(167,139,250,.35) 30%,transparent 55%,rgba(244,114,182,.35) 85%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.55;pointer-events:none}
.trwd-mega .tm-spot{position:absolute;left:0;top:0;width:1040px;height:1040px;margin:-520px 0 0 -520px;z-index:-1;border-radius:50%;background:radial-gradient(circle closest-side,rgba(255,255,255,.075),transparent 60%);transform:translate3d(70%,0,0);will-change:transform;pointer-events:none}
.trwd-mega .tm-grain{position:absolute;inset:0;z-index:-1;opacity:.5;background-image:radial-gradient(rgba(255,255,255,.07) 1px,transparent 1px);background-size:18px 18px;-webkit-mask:linear-gradient(180deg,#000,transparent 75%);mask:linear-gradient(180deg,#000,transparent 75%);pointer-events:none}
.trwd-mega .tm-head{display:flex;flex-direction:column;gap:4px;padding:6px 6px 16px}
.trwd-mega .tm-kicker{font-size:12px;font-weight:700;color:#71717A;letter-spacing:.02em}
.trwd-mega .tm-head b{font-size:22px;font-weight:900;color:#F4F4F5;line-height:1.5}
.trwd-mega .tm-head b span{background:linear-gradient(90deg,#fff,#A1A1AA);-webkit-background-clip:text;background-clip:text;color:transparent}
.trwd-mega .tm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.trwd-mega .tm-item{--x:50%;--y:50%;position:relative;display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.028);border:1px solid rgba(255,255,255,.07);color:#E4E4E7!important;text-decoration:none!important;overflow:hidden;isolation:isolate;opacity:0;transform:translateY(12px);transition:opacity .45s cubic-bezier(.2,.75,.2,1),transform .55s cubic-bezier(.2,.75,.2,1),border-color .35s,background .35s}
.trwd-mega.is-open .tm-item{opacity:1;transform:none;transition-delay:calc(.06s + var(--i) * .05s),calc(.06s + var(--i) * .05s),0s,0s}
.trwd-mega .tm-item::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(220px circle at var(--x) var(--y),color-mix(in srgb,var(--ac) 22%,transparent),transparent 65%);opacity:0;transition:opacity .35s}
.trwd-mega .tm-item:hover,.trwd-mega .tm-item:focus-visible{border-color:color-mix(in srgb,var(--ac) 45%,transparent);background:rgba(255,255,255,.05);outline:none}
.trwd-mega .tm-item:hover::before,.trwd-mega .tm-item:focus-visible::before{opacity:1}
.trwd-mega .tm-item.is-lead{grid-column:1/-1;padding:18px 20px}
.trwd-mega .tm-ic{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:var(--ac);background:color-mix(in srgb,var(--ac) 12%,transparent);border:1px solid color-mix(in srgb,var(--ac) 28%,transparent);box-shadow:0 0 0 0 color-mix(in srgb,var(--ac) 30%,transparent);transition:transform .5s cubic-bezier(.2,.75,.2,1),box-shadow .5s}
.trwd-mega .tm-item.is-lead .tm-ic{width:58px;height:58px;border-radius:17px}
.trwd-mega .tm-ic svg{width:24px;height:24px}
.trwd-mega .tm-ic svg *{stroke-dasharray:80;stroke-dashoffset:0}
.trwd-mega .tm-item:hover .tm-ic{transform:rotate(-6deg) scale(1.06);box-shadow:0 10px 30px -8px color-mix(in srgb,var(--ac) 60%,transparent)}
.trwd-mega .tm-item:hover .tm-ic svg *{animation:tmDraw 1s cubic-bezier(.6,0,.2,1)}
@keyframes tmDraw{0%{stroke-dashoffset:80}100%{stroke-dashoffset:0}}
.trwd-mega .tm-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.trwd-mega .tm-tx b{display:flex;align-items:center;gap:8px;font-size:15.5px;font-weight:800;color:#F4F4F5}
.trwd-mega .tm-item.is-lead .tm-tx b{font-size:18px}
.trwd-mega .tm-tx b small{font-size:11px;font-weight:800;color:#06222A;background:var(--ac);padding:2px 9px;border-radius:999px}
.trwd-mega .tm-tx em{font-style:normal;font-size:12.5px;color:#A1A1AA;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.trwd-mega .tm-go{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#A1A1AA;border:1px solid rgba(255,255,255,.1);transition:transform .45s cubic-bezier(.2,.75,.2,1),background .3s,color .3s,border-color .3s}
.trwd-mega .tm-go svg{width:16px;height:16px}
.trwd-mega .tm-item:hover .tm-go{background:var(--ac);border-color:transparent;color:#0A0A0B;transform:translateX(-4px) rotate(-45deg)}
.trwd-mega .tm-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:14px 18px;border-radius:18px;background:linear-gradient(100deg,rgba(255,255,255,.1),rgba(255,255,255,.02));border:1px dashed rgba(255,255,255,.16);color:#A1A1AA!important;text-decoration:none!important;font-size:13.5px;opacity:0;transform:translateY(10px);transition:opacity .45s .32s,transform .55s .32s cubic-bezier(.2,.75,.2,1),border-color .3s,background .3s}
.trwd-mega.is-open .tm-cta{opacity:1;transform:none}
.trwd-mega .tm-cta b{display:inline-flex;align-items:center;gap:8px;color:#0A0A0B;background:#fff;padding:8px 16px;border-radius:999px;font-size:13.5px;font-weight:800;transition:transform .35s cubic-bezier(.2,.75,.2,1)}
.trwd-mega .tm-cta b svg{width:16px;height:16px}
.trwd-mega .tm-cta:hover{border-style:solid;border-color:rgba(255,255,255,.3)}
.trwd-mega .tm-cta:hover b{transform:translateX(-4px)}
/* ستون نمونه کارها */
.trwd-mega .tm-side{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:22px;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.06);opacity:0;transform:translateX(-16px);transition:opacity .5s .12s,transform .7s .12s cubic-bezier(.2,.75,.2,1)}
.trwd-mega.is-open .tm-side{opacity:1;transform:none}
.trwd-mega .tm-side-head{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:800;color:#D4D4D8}
.trwd-mega .tm-side-head a{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:#A1A1AA!important;text-decoration:none!important;transition:color .3s}
.trwd-mega .tm-side-head a:hover{color:#fff!important}
.trwd-mega .tm-side-head svg{width:14px;height:14px}
.trwd-mega .tm-prev{position:relative;display:block;border-radius:14px;overflow:hidden;background:#141417;border:1px solid rgba(255,255,255,.1);box-shadow:0 24px 50px -24px #000}
.trwd-mega .tm-bar{display:flex;gap:5px;align-items:center;height:22px;padding:0 10px;background:#1C1C20;border-bottom:1px solid rgba(255,255,255,.06)}
.trwd-mega .tm-bar i{width:7px;height:7px;border-radius:50%;background:#3F3F46}
.trwd-mega .tm-bar i:first-child{background:#EF4444}.trwd-mega .tm-bar i:nth-child(2){background:#F59E0B}.trwd-mega .tm-bar i:nth-child(3){background:#22C55E}
/* پیش‌نمایش: قاب ثابت ۱۶:۱۰؛ عکس‌های عمودی کامل و بدون برش (پشتشان همان عکس محو)، تصویر سایت با نوار مرورگر و اسکرول آرام */
.trwd-mega .tm-prev{aspect-ratio:16/10}
.trwd-mega .tm-bar{position:absolute;top:0;left:0;right:0;z-index:3;transition:opacity .45s,transform .45s cubic-bezier(.2,.75,.2,1)}
.trwd-mega .tm-prev:not(.is-web) .tm-bar{opacity:0;transform:translateY(-100%)}
.trwd-mega .tm-shots{position:absolute;inset:0;display:block;overflow:hidden;background:#111114}
.trwd-mega .tm-shot{position:absolute;inset:0;display:block;overflow:hidden;isolation:isolate;opacity:0;transform:scale(1.04);transition:opacity .8s cubic-bezier(.2,.75,.2,1),transform 1.2s cubic-bezier(.2,.75,.2,1)}
.trwd-mega .tm-shot.is-on{opacity:1;transform:none}
.trwd-mega .tm-shot img{position:absolute;display:block;max-width:none;margin:0;border-radius:0}
.trwd-mega .tm-shot .tm-sbg{inset:-24px;z-index:-1;width:calc(100% + 48px);height:calc(100% + 48px);object-fit:cover;object-position:50% 50%;filter:blur(20px) saturate(1.2) brightness(.45);transform:translateZ(0)}
.trwd-mega .tm-shot .tm-sfg{inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 50%;filter:drop-shadow(0 10px 24px rgba(0,0,0,.5))}
.trwd-mega .tm-shot.is-web{top:22px}
.trwd-mega .tm-shot.is-web .tm-sfg{object-fit:cover;object-position:50% 0;filter:none;transition:object-position 6s ease-in-out}
.trwd-mega .tm-prev:hover .tm-shot.is-web.is-on .tm-sfg{object-position:50% 100%}



.trwd-mega .tm-list{display:flex;flex-direction:column;gap:6px}
.trwd-mega .tm-row{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:12px;color:#D4D4D8!important;text-decoration:none!important;border:1px solid transparent;transition:background .3s,border-color .3s}
.trwd-mega .tm-row.is-on,.trwd-mega .tm-row:hover{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.08)}
.trwd-mega .tm-thumb{flex:none;width:58px;height:36px;border-radius:7px;overflow:hidden;background:#1A1A1E;border:1px solid rgba(255,255,255,.08)}
.trwd-mega .tm-thumb img{width:100%;height:100%;object-fit:cover;object-position:top}
.trwd-mega .tm-rtx{flex:1;min-width:0;display:flex;flex-direction:column}
.trwd-mega .tm-rtx b{font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trwd-mega .tm-rtx small{font-size:11.5px;color:#71717A}
.trwd-mega .tm-side-head .tm-mix{font-style:normal;font-size:11.5px;font-weight:700;color:#71717A;padding:3px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.08)}

.trwd-mega .tm-thumb:not(.is-web) img{object-position:50% 50%}
.trwd-mega .tm-lab{position:absolute;right:10px;bottom:10px;z-index:2;display:inline-flex;align-items:center;gap:7px;padding:5px 11px;border-radius:999px;background:rgba(10,10,11,.72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.12);font-size:11.5px;color:#F4F4F5;pointer-events:none}
.trwd-mega .tm-lab i,.trwd-mega .tm-dot{width:7px;height:7px;border-radius:50%;background:var(--ac,#fff);box-shadow:0 0 10px var(--ac,#fff);flex:none;display:inline-block}
.trwd-mega .tm-lab b{font-weight:800;transition:opacity .3s}
.trwd-mega .tm-rtx small{display:inline-flex;align-items:center;gap:6px}
.trwd-mega .tm-badge{flex:none;font-style:normal;font-size:10.5px;font-weight:800;padding:3px 9px;border-radius:999px;background:rgba(82,82,91,.6);color:#E4E4E7}
.trwd-mega .tm-badge.new{background:linear-gradient(135deg,#86EFAC,#5EEAD4);color:#06210F}
.trwd-mega .tm-badge.old{background:linear-gradient(135deg,#FDE68A,#FBBF24);color:#2B1A00}
/* پرده‌ی تیره‌ی پشت منو */
.trwd-mega-dim{position:fixed;left:0;right:0;bottom:0;top:0;z-index:998;background:rgba(5,5,6,.62);opacity:0;visibility:hidden;transition:opacity .4s,visibility 0s .4s}
.trwd-mega-dim.is-on{opacity:1;visibility:visible;transition:opacity .4s,visibility 0s}
@media (max-width:1024px){.trwd-mega,.trwd-mega-dim,.trwd-npill{display:none!important}}
@media (max-width:1180px){.trwd-mega .tm-in{grid-template-columns:1.3fr 1fr}}
@media (prefers-reduced-motion:reduce){.trwd-mega,.trwd-mega *,.trwd-npill{transition:none!important;animation:none!important}}

/* ================= صفحات عادی سایت ================= */
/* ارتفاع پیش‌فرض هدر تا قبل از اجرای جاوااسکریپت (لایت‌اسپید اجرای JS را تا اولین تعامل عقب می‌اندازد) */
:root{--hdr0:105px;--hdr:105px}
@media (max-width:1024px){:root{--hdr0:67px;--hdr:67px}}
body.trwd-hdr:not(.trwd-glass):has(.elementor-location-header){padding-top:var(--hdr0)}
/* صفحات قدیمی هم هدر شیشه‌ای دارند: نیمه‌شفاف با بلور، تا محتوای زیرش پیدا باشد */
body.trwd-hdr:not(.trwd-glass) .elementor-location-header::before{transform:none;background:rgba(14,14,16,.74)}
/* دکمه‌ی حساب کاربری (دسکتاپ): همان کپسول فوتر، انتهای سمت چپ ردیف منو با ۲۰px فاصله از لبه
   مارک‌آپ کپسول سمت سرور ساخته می‌شود (trwd-site.php) تا هیچ پرشی بین نسخه‌ی قدیم و جدید دیده نشود */
@media (min-width:1025px){
.elementor-location-header .elementor-element-37164e8{display:none!important}
.elementor-location-header .elementor-element-faedf04{flex:1 1 auto!important;width:auto!important;max-width:none!important}
.elementor-location-header .elementor-element-8c6e28b{flex:0 0 auto!important;width:auto!important;max-width:none!important;display:flex!important;align-items:center}
.elementor-location-header .elementor-element-8c6e28b>.elementor-widget-wrap{padding:0 0 0 20px!important;display:flex!important;align-items:center;align-content:center}
.elementor-location-header .elementor-element-8c6e28b .elementor-widget{width:auto!important;margin:0!important}
}
.elementor-location-header .elementor-widget-shortcode .digits-login-modal.trf-acc{display:inline-flex!important;align-items:center;gap:9px;margin:0;padding:5px 7px 5px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.02));color:#F4F4F5!important;font-family:Vazir,Tahoma,sans-serif!important;font-size:13px!important;font-weight:700!important;line-height:1.4!important;white-space:nowrap;cursor:pointer;position:relative;overflow:hidden;isolation:isolate;transition:border-color .35s,color .35s,transform .4s cubic-bezier(.2,.75,.2,1),box-shadow .35s}
.elementor-location-header .trf-acc *{font-family:Vazir,Tahoma,sans-serif!important}
.elementor-location-header .trf-acc::before{content:"";position:absolute;inset:0;z-index:-1;background:#fff;transform:translateX(101%);transition:transform .5s cubic-bezier(.2,.75,.2,1)}
.elementor-location-header .trf-acc>span{color:inherit!important}
.elementor-location-header .trf-acc-ic{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1);flex:none;position:relative;transition:background .35s}
.elementor-location-header .trf-acc-ic svg{width:15px;height:15px}
.elementor-location-header .trf-acc-go{width:15px;height:15px;display:grid;place-items:center;opacity:.55;transition:transform .4s cubic-bezier(.2,.75,.2,1),opacity .35s}
.elementor-location-header .trf-acc-go svg{width:15px;height:15px}
.elementor-location-header .elementor-widget-shortcode .digits-login-modal.trf-acc:hover,.elementor-location-header .elementor-widget-shortcode .digits-login-modal.trf-acc:focus-visible{color:#0A0A0B!important;border-color:#fff;transform:translateY(-1px);box-shadow:0 10px 30px -10px rgba(255,255,255,.35);outline:none}
.elementor-location-header .trf-acc:hover::before,.elementor-location-header .trf-acc:focus-visible::before{transform:none}
.elementor-location-header .trf-acc:hover .trf-acc-ic{background:rgba(10,10,11,.08)}
.elementor-location-header .trf-acc:hover .trf-acc-go{opacity:1;transform:translateX(-4px)}
.elementor-location-header .trf-acc.is-user .trf-acc-ic::after{content:"";position:absolute;right:-1px;bottom:-1px;width:8px;height:8px;border-radius:50%;background:#22C55E;box-shadow:0 0 0 2px #0A0A0B;animation:trhPulse 4.8s infinite}
@keyframes trhPulse{0%{box-shadow:0 0 0 2px #0A0A0B,0 0 0 2px rgba(34,197,94,.6)}30%{box-shadow:0 0 0 2px #0A0A0B,0 0 0 7px rgba(34,197,94,0)}31%,100%{box-shadow:0 0 0 2px #0A0A0B,0 0 0 2px rgba(34,197,94,0)}}
.elementor-location-header .trf-acc.is-guest{border-color:transparent;background:linear-gradient(#141416,#141416) padding-box,conic-gradient(from var(--trha,0deg),rgba(255,255,255,.1),#fff,rgba(255,255,255,.1) 30%,rgba(255,255,255,.1)) border-box;animation:trhSpin 6s linear infinite}
.elementor-location-header .trf-acc.is-guest:hover{background:linear-gradient(#141416,#141416) padding-box,#fff border-box}
@property --trha{syntax:"<angle>";initial-value:0deg;inherits:false}
@keyframes trhSpin{0%{--trha:0deg}45%,100%{--trha:360deg}}
@media (prefers-reduced-motion:reduce){.elementor-location-header .trf-acc,.elementor-location-header .trf-acc-ic::after{animation:none!important}}

/* ===== سبک‌سازی رندر (عملکرد) ===== */
/* وقتی مگا منو باز است، صفحه‌ی زیر پرده‌ی تیره ثابت می‌ماند تا منو روان باز و جابه‌جا شود */
body.trwd-mega-open main *,body.trwd-mega-open .elementor-location-footer *,body.trwd-mega-open .elementor-location-header .elementor-widget-shortcode *{animation-play-state:paused!important}

/* ---------- کارت خدمات + زیرمجموعه‌ها ---------- */
.trwd-mega .tm-cell{position:relative;display:flex;flex-direction:column;border-radius:18px;background:rgba(255,255,255,.028);border:1px solid rgba(255,255,255,.07);opacity:0;transform:translateY(12px);transition:opacity .45s cubic-bezier(.2,.75,.2,1),transform .55s cubic-bezier(.2,.75,.2,1),border-color .35s,background .35s}
.trwd-mega.is-open .tm-cell{opacity:1;transform:none;transition-delay:calc(.06s + var(--i) * .05s),calc(.06s + var(--i) * .05s),0s,0s}
.trwd-mega .tm-cell.is-lead{grid-column:1/-1}
.trwd-mega .tm-cell:hover,.trwd-mega .tm-cell:focus-within{border-color:color-mix(in srgb,var(--ac) 45%,transparent);background:rgba(255,255,255,.05)}
.trwd-mega .tm-cell .tm-item{flex:1;border:0;background:transparent!important;opacity:1;transform:none}
.trwd-mega .tm-cell.has-subs .tm-item{flex:none;padding-bottom:10px}
.trwd-mega .tm-subs{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 14px;margin-top:auto}
.trwd-mega .tm-subs a{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.6;color:#C4C4CC!important;text-decoration:none!important;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);opacity:0;transform:translateY(6px);transition:opacity .4s,transform .45s cubic-bezier(.2,.75,.2,1),background .25s,border-color .25s,color .25s}
.trwd-mega.is-open .tm-subs a{opacity:1;transform:none;transition-delay:calc(.18s + var(--i) * .05s + var(--j) * .03s),calc(.18s + var(--i) * .05s + var(--j) * .03s),0s,0s,0s}
.trwd-mega .tm-subs a small{font-size:10.5px;font-weight:800;color:#71717A;transition:color .25s}
.trwd-mega .tm-subs a:hover,.trwd-mega .tm-subs a:focus-visible{color:#0A0A0B!important;background:var(--ac);border-color:transparent;outline:none}
.trwd-mega .tm-subs a:hover small,.trwd-mega .tm-subs a:focus-visible small{color:rgba(10,10,11,.6)}
