[hidden] { display: none !important; }
/* اجزای حساب کاربری، ورود، پرداخت و فاکتور (برگرفته از سایت قبلی، هماهنگ با رنگ‌های طراحی تازه).
   همه زیر کلاس .fmx هستند تا با سبک‌های صفحه تداخل نکنند. */
.fmx { --surface: var(--panel); --paper: var(--bg); --sunk: var(--bg-2); --ink-2: var(--ink-dim); --muted: var(--ink-faint);
  --line-2: var(--line-strong); --forest: var(--green-glow); --forest-2: var(--green-glow); --narenj: #e0531f; --narenj-2: #c4431a;
  --great: var(--st-text-ok); --over: var(--st-text-bad); --r: 16px; --charcoal: #1c241e; font-family: var(--font); }
.fmx .muted, .fmx.muted {color: var(--muted);}
.fmx .small, .fmx.small {font-size: 12.5px;}
.fmx .btn, .fmx.btn {display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; font-weight: 700; font-size: 14.5px; transition: transform .15s var(--ease), background .2s, color .2s, box-shadow .2s; white-space: nowrap;}
.fmx .btn:active, .fmx.btn:active {transform: scale(.97);}
.fmx .btn svg, .fmx.btn svg {width: 18px; height: 18px; flex: none;}
.fmx .btn--ink, .fmx.btn--ink {background: var(--ink); color: var(--paper);}
@media (hover: hover){.fmx .btn--ink:hover, .fmx.btn--ink:hover {background: var(--forest); color: var(--on-dark);}}
.fmx .btn--hot, .fmx.btn--hot {background: var(--narenj); color: #fff; box-shadow: 0 8px 22px -10px var(--narenj);}
@media (hover: hover){.fmx .btn--hot:hover, .fmx.btn--hot:hover {background: var(--narenj-2);}}
.fmx .btn--line, .fmx.btn--line {border: 1.5px solid var(--line-2); background: var(--surface);}
@media (hover: hover){.fmx .btn--line:hover, .fmx.btn--line:hover {border-color: var(--ink);}}
.fmx .btn--ghost, .fmx.btn--ghost {color: var(--ink-2);}
@media (hover: hover){.fmx .btn--ghost:hover, .fmx.btn--ghost:hover {background: var(--sunk); color: var(--ink);}}
.fmx .btn--block, .fmx.btn--block {width: 100%;}
.fmx .btn--sm, .fmx.btn--sm {min-height: 36px; padding: 0 14px; font-size: 13px;}
.fmx .btn--lg, .fmx.btn--lg {min-height: 54px; padding: 0 28px; font-size: 16px;}
.fmx .icon-btn, .fmx.icon-btn {width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); position: relative; transition: background .2s;}
@media (hover: hover){.fmx .icon-btn:hover, .fmx.icon-btn:hover {background: var(--sunk); color: var(--ink);}}
.fmx .icon-btn svg, .fmx.icon-btn svg {width: 21px; height: 21px;}
.fmx .field, .fmx.field {display: grid; gap: 6px;}
.fmx .field > span, .fmx.field > span {font-size: 13px; font-weight: 700; color: var(--ink-2);}
.fmx .input, .fmx.input, .fmx .select, .fmx.select, .fmx .textarea, .fmx.textarea {width: 100%; min-height: 46px; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 10px 14px; outline: none; transition: border-color .2s, box-shadow .2s;}
.fmx .textarea, .fmx.textarea {min-height: 96px; resize: vertical;}
.fmx .input:focus, .fmx.input:focus, .fmx .select:focus, .fmx.select:focus, .fmx .textarea:focus, .fmx.textarea:focus {border-color: var(--forest); box-shadow: 0 0 0 4px color-mix(in srgb, var(--forest) 12%, transparent);}
.fmx .input--ltr, .fmx.input--ltr {direction: ltr; text-align: right;}
@keyframes pop{ from { opacity: 0; transform: translateY(-4px); } }
dialog.fmx.dlg {border: 0; padding: 0; background: var(--surface); color: var(--ink); border-radius: var(--r-xl); width: min(560px, calc(100% - 24px)); max-height: 92vh; max-height: 92dvh; box-shadow: var(--shadow-3);}
dialog.fmx.dlg--wide {width: min(1100px, calc(100% - 24px));}
dialog.fmx.dlg::backdrop {background: rgba(8,14,12,.6); backdrop-filter: blur(4px);}
dialog.fmx.dlg[open] {animation: pop .25s var(--ease);}
.fmx .dlg__body, .fmx.dlg__body {padding: 26px; max-height: 92vh; max-height: 92dvh; overflow-y: auto;}
.fmx .dlg__head, .fmx.dlg__head {display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px;}
.fmx .dlg__head h2, .fmx.dlg__head h2 {font-size: 22px;}
.fmx .form-grid, .fmx.form-grid {display: grid; gap: 12px;}
.fmx .form-grid .row2, .fmx.form-grid .row2 {display: grid; grid-template-columns: 1fr 1fr; gap: 10px;}
.fmx .account, .fmx.account {display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px;}
.fmx .account div, .fmx.account div {display: grid; gap: 2px;}
.fmx .account b, .fmx.account b {font-size: 17px;}
.fmx .ok-text, .fmx.ok-text {color: var(--great);}
.fmx .note-ok, .fmx.note-ok, .fmx .note-bad, .fmx.note-bad {padding: 14px 18px; border-radius: var(--r); margin-bottom: 18px; font-weight: 700;}
.fmx .note-ok, .fmx.note-ok {background: color-mix(in srgb, var(--great) 12%, var(--surface)); color: var(--great);}
.fmx .note-bad, .fmx.note-bad {background: color-mix(in srgb, var(--over) 10%, var(--surface)); color: var(--over);}
.fmx .pay-steps, .fmx.pay-steps {margin: 0 0 16px; padding-inline-start: 20px; display: grid; gap: 12px; font-size: 14px;}
.fmx .pay-steps li span, .fmx.pay-steps li span {display: block; color: var(--ink-2);}
.fmx .pay-amt, .fmx.pay-amt {display: inline-block; margin-top: 4px; font-size: 26px; font-weight: 900; background: linear-gradient(transparent 60%, var(--gold-hl) 60%);}
.fmx .pay-amt small, .fmx.pay-amt small {font-size: 13px; font-weight: 600;}
.fmx .pay-card, .fmx.pay-card {display: inline-flex; gap: 8px; align-items: center; margin-top: 4px; padding: 8px 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); font-size: 18px; font-weight: 800; letter-spacing: .04em;}
.fmx .pay-holder, .fmx.pay-holder {display: block; margin-top: 6px; font-size: 14px;}
.fmx .otpch, .fmx.otpch {display: grid; grid-template-columns: 1fr 1fr; gap: 8px;}
.fmx .otpch__opt, .fmx.otpch__opt, .fmx .paym__opt, .fmx.paym__opt {display: flex; align-items: center; gap: 10px; text-align: start; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface, #fff); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .2s, background .2s;}
.fmx .otpch__opt svg, .fmx.otpch__opt svg, .fmx .paym__opt > i svg, .fmx.paym__opt > i svg {width: 22px; height: 22px; flex: none;}
.fmx .otpch__opt span, .fmx.otpch__opt span, .fmx .paym__opt span, .fmx.paym__opt span {display: grid; gap: 2px; flex: 1; font-weight: 800; font-size: 13.5px;}
.fmx .otpch__opt small, .fmx.otpch__opt small, .fmx .paym__opt small, .fmx.paym__opt small {font-weight: 500; font-size: 11.5px; color: var(--muted);}
.fmx .otpch__opt.is-on, .fmx.otpch__opt.is-on, .fmx .paym__opt:not(.is-off):hover, .fmx.paym__opt:not(.is-off):hover {border-color: var(--forest, #2c6a55); background: color-mix(in srgb, var(--forest, #2c6a55) 7%, var(--surface, #fff));}
.fmx .otpch__opt.is-off, .fmx.otpch__opt.is-off, .fmx .paym__opt.is-off, .fmx.paym__opt.is-off {opacity: .55; cursor: not-allowed;}
.fmx .paym, .fmx.paym {display: grid; gap: 10px;}
.fmx .paym__opt > i, .fmx.paym__opt > i {display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sunk);}
.fmx .paym__opt em, .fmx.paym__opt em {font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--sunk); color: var(--muted);}
.fmx .paywait, .fmx.paywait {display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted);}
.fmx .paywait i, .fmx.paywait i {width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--forest, #2c6a55); border-top-color: transparent; animation: spin 1s linear infinite;}
@keyframes spin{ to { transform: rotate(360deg); } }
.fmx .invoice, .fmx.invoice {max-width: 620px; margin: 10px auto; padding: 30px; border-radius: 28px; background: var(--surface, #fff); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); text-align: center;}
.fmx .invoice.is-ok, .fmx.invoice.is-ok {border-color: color-mix(in srgb, var(--forest, #2c6a55) 45%, var(--line));}
.fmx .invoice__badge, .fmx.invoice__badge {width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--muted);}
.fmx .invoice.is-ok .invoice__badge, .fmx.invoice.is-ok .invoice__badge {background: color-mix(in srgb, #2fbf71 16%, transparent); color: #1f9d5a;}
.fmx .invoice h1, .fmx.invoice h1 {font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; margin-bottom: 8px;}
.fmx .invoice__rows, .fmx.invoice__rows {margin: 22px 0; text-align: start; border-top: 1px dashed var(--line);}
.fmx .invoice__rows div, .fmx.invoice__rows div {display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line);}
.fmx .invoice__rows dt, .fmx.invoice__rows dt {color: var(--muted);}
.fmx .invoice__rows dd, .fmx.invoice__rows dd {margin: 0; font-weight: 700;}
.fmx .invoice__act, .fmx.invoice__act {display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;}
@media print{.fmx .top, .fmx.top, .fmx .dock, .fmx.dock, .fmx .ai-fab, .fmx.ai-fab, .fmx footer, .fmx .invoice__act, .fmx.invoice__act {display: none !important;}
.fmx .invoice, .fmx.invoice {box-shadow: none; border: 1px solid #999;}}
@media (max-width: 420px){.fmx .otpch, .fmx.otpch {grid-template-columns: 1fr;}
.fmx .invoice, .fmx.invoice {padding: 20px 16px;}}
.fmx .paym__opt > svg, .fmx.paym__opt > svg {width: 18px; height: 18px; flex: none;}
.fmx .dq-btn, .fmx.dq-btn {display: flex; align-items: center; gap: 8px; width: 100%; margin: 8px 0; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--forest, #2c6a55) 55%, var(--line)); background: color-mix(in srgb, var(--forest, #2c6a55) 6%, transparent); color: var(--ink); font: 700 13px Vazirmatn, Tahoma, sans-serif; cursor: pointer; text-align: start;}
.fmx .cb__opt--free, .fmx.cb__opt--free {color: var(--forest, #2c6a55); font-weight: 800; border-top: 1px dashed var(--line);}
.fmx .col.is-rural i, .fmx.col.is-rural i {filter: hue-rotate(-35deg) saturate(.7);}
.fmx .col.is-rural span, .fmx.col.is-rural span {font-style: italic;}
.fmx .rp, .fmx.rp {max-width: 400px; margin: 10px auto 0; display: grid; justify-items: center;}
.fmx .rp__printer, .fmx.rp__printer {position: relative; z-index: 2; width: 100%; padding: 14px 14px 16px; border-radius: 26px; background: linear-gradient(180deg, #2c2d2b, #1c1d1b);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 50px -30px rgba(0,0,0,.6); color: #f1ede6;}
.fmx .rp__top, .fmx.rp__top {display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;}
.fmx .rp__logo, .fmx.rp__logo {width: 30px; height: 30px;}
.fmx .rp__home, .fmx.rp__home {display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; background: #3a3b38; color: #f1ede6; font-size: 12.5px; font-weight: 700; box-shadow: 0 2px 0 #111;}
.fmx .rp__panel, .fmx.rp__panel {padding: 14px 16px; border-radius: 16px; background: #141513; border: 1px solid rgba(255,255,255,.06);}
.fmx .rp__row, .fmx.rp__row {display: flex; justify-content: space-between; gap: 12px;}
.fmx .rp__row b, .fmx.rp__row b {display: block; font-size: 15px;}
.fmx .rp__row small, .fmx.rp__row small {color: rgba(241,237,230,.6); font-size: 12px;}
.fmx .rp__total, .fmx.rp__total {text-align: left;}
.fmx .rp__total b, .fmx.rp__total b {font-size: 18px; font-variant-numeric: tabular-nums;}
.fmx .rp__total i, .fmx.rp__total i {font-style: normal; font-size: 11px; color: rgba(241,237,230,.6);}
.fmx .rp__status, .fmx.rp__status {display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: rgba(241,237,230,.85);}
.fmx .rp__dot, .fmx.rp__dot {width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c9a24f; border-top-color: transparent; animation: spin .9s linear infinite; flex: none;}
.fmx .rp[data-stage="complete"] .rp__dot, .fmx.rp[data-stage="complete"] .rp__dot {border: 0; animation: none; background: #2fbf71 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat;}
.fmx .rp[data-stage="idle"] .rp__dot, .fmx.rp[data-stage="idle"] .rp__dot {animation: none; border-color: #8a877f;}
.fmx .rp__slot, .fmx.rp__slot {position: absolute; left: 16px; right: 16px; bottom: 7px; height: 6px; border-radius: 6px; background: #050505; box-shadow: 0 1px 0 rgba(255,255,255,.06);}
.fmx .rp__feed, .fmx.rp__feed {position: relative; z-index: 1; width: 82%; margin-top: -9px; overflow: hidden; padding-bottom: 12px;}
.fmx .rp__paper, .fmx.rp__paper {position: relative; padding: 26px 20px 18px; background: #fdfcf8; color: #1a1a18; box-shadow: 0 18px 30px -18px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.04);
  font-variant-numeric: tabular-nums; font-size: 12.5px; transform: translateY(-101%); background-image: linear-gradient(180deg, rgba(0,0,0,.06), transparent 18px);}
.fmx .rp__paper::after, .fmx.rp__paper::after {content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: linear-gradient(135deg, #fdfcf8 50%, transparent 50%) 0 0 / 12px 8px repeat-x, linear-gradient(225deg, #fdfcf8 50%, transparent 50%) 0 0 / 12px 8px repeat-x;}
.fmx .rp[data-stage="printing"] .rp__paper, .fmx.rp[data-stage="printing"] .rp__paper {animation: rpFeed 3.1s cubic-bezier(.45,.05,.3,1) forwards;}
.fmx .rp[data-stage="complete"] .rp__paper, .fmx.rp[data-stage="complete"] .rp__paper {transform: none;}
@keyframes rpFeed{ 0% { transform: translateY(-101%); } 18% { transform: translateY(-82%); } 26% { transform: translateY(-82%); } 46% { transform: translateY(-55%); } 54% { transform: translateY(-55%); } 74% { transform: translateY(-26%); } 82% { transform: translateY(-26%); } 100% { transform: none; } }
.fmx .rp__plogo, .fmx.rp__plogo {display: block; width: 38px; height: 38px; margin: 0 auto 6px;}
.fmx .rp__brand, .fmx.rp__brand {text-align: center; font-weight: 900; font-size: 15px; margin: 0;}
.fmx .rp__brand small, .fmx.rp__brand small {display: block; font-weight: 500; font-size: 11px; color: #77746c; letter-spacing: .5px;}
.fmx .rp__paper hr, .fmx.rp__paper hr {border: 0; border-top: 1px dashed #b9b4a8; margin: 12px 0;}
.fmx .rp__line, .fmx.rp__line {display: flex; justify-content: space-between; gap: 10px; padding: 3px 0;}
.fmx .rp__line span:first-child, .fmx.rp__line span:first-child {color: #66635b;}
.fmx .rp__sub, .fmx.rp__sub {font-size: 11px; color: #77746c;}
.fmx .rp__sum b:last-child, .fmx.rp__sum b:last-child {font-size: 18px;}
.fmx .rp__sum small, .fmx.rp__sum small {font-size: 10px;}
.fmx .rp__until, .fmx.rp__until {margin-top: 6px; padding-top: 8px; border-top: 1px dashed #b9b4a8;}
.fmx .rp__bar, .fmx.rp__bar {display: block; width: 70%; height: 38px; margin: 16px auto 6px; fill: #1a1a18;}
.fmx .rp__thanks, .fmx.rp__thanks {text-align: center; font-size: 11.5px; color: #66635b; margin: 0;}
.fmx .rp__note, .fmx.rp__note {text-align: center; margin: 14px 0; font-size: 13px;}
.fmx .rp[data-stage="idle"] .rp__feed, .fmx.rp[data-stage="idle"] .rp__feed {display: none;}
@media (prefers-reduced-motion: reduce){.fmx .rp__paper, .fmx.rp__paper {transform: none !important; animation: none !important;}}
@media print{.fmx .rp__printer, .fmx.rp__printer, .fmx .rp__note, .fmx.rp__note {display: none !important;}
.fmx .rp__feed, .fmx.rp__feed {width: 100%; overflow: visible;}
.fmx .rp__paper, .fmx.rp__paper {transform: none !important; box-shadow: none;}}
.fmx .rp[data-stage="processing"] .rp__feed, .fmx.rp[data-stage="processing"] .rp__feed {height: 0; padding: 0;}
.fmx .rp[data-stage="printing"] .rp__feed, .fmx.rp[data-stage="printing"] .rp__feed {animation: rpGrow 3.1s cubic-bezier(.45,.05,.3,1) forwards;}
@keyframes rpGrow{ 0% { height: 0; } 18% { height: calc(var(--H) * .18); } 26% { height: calc(var(--H) * .18); } 46% { height: calc(var(--H) * .45); } 54% { height: calc(var(--H) * .45); }
  74% { height: calc(var(--H) * .74); } 82% { height: calc(var(--H) * .74); } 100% { height: calc(var(--H) + 12px); } }
.fmx .authtabs, .fmx.authtabs {display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--sunk); margin-bottom: 16px;}
.fmx .authtabs button, .fmx.authtabs button {padding: 9px 6px; border-radius: 11px; border: 0; background: transparent; font: 800 13.5px Vazirmatn, Tahoma, sans-serif; color: var(--muted); cursor: pointer;}
.fmx .authtabs button.is-on, .fmx.authtabs button.is-on {background: var(--surface, #fff); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08);}
.fmx .auth-links a, .fmx.auth-links a {text-decoration: underline; text-underline-offset: 3px;}
.fmx .profile, .fmx.profile {margin-top:18px;max-width:760px}
.fmx .profile h3, .fmx.profile h3 {margin-bottom:10px}
.fmx .row4[hidden], .fmx.row4[hidden] {display:none}
.fmx .dlg--auth, .fmx.dlg--auth {width: min(400px, calc(100vw - 24px));}
.fmx .dlg--auth .dlg__body, .fmx.dlg--auth .dlg__body {padding: 20px 22px 18px; overflow: visible; max-height: none;}
.fmx .auth, .fmx.auth {display: grid; gap: 14px;}
.fmx .auth__head, .fmx.auth__head {display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;}
.fmx .auth__title, .fmx.auth__title {display: block; font-size: 19px; font-weight: 900; line-height: 1.3;}
.fmx .auth__sub, .fmx.auth__sub {display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; min-height: 1.2em;}
.fmx .auth__seg, .fmx.auth__seg {display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--sunk); border: 1px solid var(--line);}
.fmx .auth__seg[hidden], .fmx.auth__seg[hidden] {display: none;}
.fmx .auth__seg button, .fmx.auth__seg button {font: inherit; font-size: 14px; font-weight: 800; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; transition: background .2s var(--ease), color .2s;}
.fmx .auth__seg button.is-on, .fmx.auth__seg button.is-on {background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1);}
.fmx .auth__form, .fmx.auth__form, .fmx .auth__code form, .fmx.auth__code form {display: grid; gap: 10px;}
.fmx .af, .fmx.af {display: grid; gap: 5px;}
.fmx .af__lbl, .fmx.af__lbl {font-size: 12.5px; font-weight: 800; color: var(--ink-2);}
.fmx .af__box, .fmx.af__box {position: relative; display: block;}
.fmx .af__in, .fmx.af__in {width: 100%; height: 44px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s; text-align: left;}
.fmx .af__in::placeholder, .fmx.af__in::placeholder {color: var(--muted); opacity: .7;}
.fmx .af__in:focus, .fmx.af__in:focus {border-color: var(--forest-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--forest-2) 14%, transparent);}
.fmx .af__box:has(.af__eye) .af__in, .fmx.af__box:has(.af__eye) .af__in {padding-left: 46px;}
.fmx .af__eye, .fmx.af__eye {position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer;}
.fmx .af__eye:hover, .fmx.af__eye:hover, .fmx .af__eye[aria-pressed="true"], .fmx.af__eye[aria-pressed="true"] {color: var(--ink); background: var(--sunk);}
.fmx .af__eye svg, .fmx.af__eye svg {width: 19px; height: 19px;}
.fmx .af.is-bad .af__in, .fmx.af.is-bad .af__in {border-color: var(--over);}
.fmx .af.is-ok .af__in, .fmx.af.is-ok .af__in {border-color: var(--great);}
.fmx .af__code, .fmx.af__code {height: 52px; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .55em; padding-left: .55em; font-variant-numeric: tabular-nums;}
.fmx .shake, .fmx.shake {animation: afShake .36s;}
@keyframes afShake{ 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.fmx .pwr, .fmx.pwr {display: flex; flex-wrap: wrap; gap: 6px;}
.fmx .pwr__i, .fmx.pwr__i {display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px 4px 9px; border-radius: 999px; color: var(--muted); background: var(--sunk); border: 1px solid var(--line); transition: color .2s, background .2s, border-color .2s;}
.fmx .pwr__i::before, .fmx.pwr__i::before {content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; transition: .2s;}
.fmx .pwr__i.is-ok, .fmx.pwr__i.is-ok {color: var(--great); background: color-mix(in srgb, var(--great) 12%, var(--surface)); border-color: color-mix(in srgb, var(--great) 40%, transparent);}
.fmx .pwr__i.is-ok::before, .fmx.pwr__i.is-ok::before {width: 12px; height: 12px; opacity: 1; background: var(--great) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/9px no-repeat;}
.fmx .auth__err, .fmx.auth__err {min-height: 0; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--over);}
.fmx .auth__err:empty, .fmx.auth__err:empty {display: none;}
.fmx .auth__err.is-ok, .fmx.auth__err.is-ok {color: var(--great);}
.fmx .auth__go, .fmx.auth__go {width: 100%; height: 46px; font-size: 15.5px; border-radius: 12px;}
.fmx .auth__links, .fmx.auth__links {display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 700;}
.fmx .auth__links a, .fmx.auth__links a {color: var(--forest-2);}
.fmx .auth__back, .fmx.auth__back {display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); justify-self: start;}
.fmx .auth__back svg, .fmx.auth__back svg {width: 14px; height: 14px; transform: scaleX(-1);}
.fmx .auth__fine, .fmx.auth__fine {margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7;}
.fmx .auth__code, .fmx.auth__code {display: grid; gap: 12px;}
.fmx .auth__ctitle, .fmx.auth__ctitle {font-size: 15px;}
.fmx .auth__ch, .fmx.auth__ch {display: grid; grid-template-columns: 1fr 1fr; gap: 8px;}
.fmx .auth__ch button, .fmx.auth__ch button {position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; font: inherit; font-size: 14px; font-weight: 800; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer;}
.fmx .auth__ch button svg, .fmx.auth__ch button svg {width: 18px; height: 18px;}
.fmx .auth__ch button.is-on, .fmx.auth__ch button.is-on {border-color: var(--forest-2); background: color-mix(in srgb, var(--forest-2) 9%, var(--surface));}
.fmx .auth__ch button.is-off, .fmx.auth__ch button.is-off {color: var(--muted); border-style: dashed; cursor: not-allowed;}
.fmx .auth__ch em, .fmx.auth__ch em {font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--sunk); color: var(--muted);}
.fmx .auth__note, .fmx.auth__note {display: grid; gap: 8px; font-size: 13px; line-height: 1.7; padding: 10px 12px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line);}
.fmx .auth__note:empty, .fmx.auth__note:empty {display: none;}
.fmx .auth__note > svg, .fmx.auth__note > svg {width: 16px; height: 16px; vertical-align: -3px; margin-left: 4px; color: var(--great);}
.fmx .auth__steps, .fmx.auth__steps {margin: 0; padding-right: 18px; display: grid; gap: 2px;}
.fmx .auth__bale, .fmx.auth__bale {display: grid; grid-template-columns: 1fr 1fr; gap: 8px;}
.fmx .auth__bale .btn, .fmx.auth__bale .btn {height: 40px; font-size: 13.5px; justify-content: center;}
.fmx .auth__cmd, .fmx.auth__cmd {cursor: copy; padding: 1px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; word-break: break-all;}
.fmx .auth__dev b, .fmx.auth__dev b {font-size: 16px; letter-spacing: .2em;}
.fmx .auth__timers, .fmx.auth__timers {display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); min-height: 20px;}
.fmx .linkbtn, .fmx.linkbtn {font: inherit; font-size: 12.5px; font-weight: 800; color: var(--forest-2); background: none; border: 0; padding: 4px 0; cursor: pointer; justify-self: start;}
.fmx .linkbtn:disabled, .fmx.linkbtn:disabled {color: var(--muted); cursor: default;}
.fmx .linkbtn.is-hot, .fmx.linkbtn.is-hot {color: var(--narenj);}
@media (max-height: 700px){.fmx .dlg--auth .dlg__body, .fmx.dlg--auth .dlg__body {padding: 14px 18px;}
.fmx .auth, .fmx.auth {gap: 10px;}
.fmx .af__in, .fmx.af__in {height: 40px;}
.fmx .auth__go, .fmx.auth__go {height: 42px;}}
.fmx .auth__steps, .fmx.auth__steps {list-style: persian;}
.fmx .amenu, .fmx.amenu {position: fixed; z-index: 120; width: 270px; padding: 8px; border-radius: 18px; background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(0,0,0,.35); display: grid; gap: 2px; animation: amenuIn .18s ease-out;}
@keyframes amenuIn{ from { opacity: 0; transform: translateY(-6px); } }
.fmx .amenu__head, .fmx.amenu__head {display: grid; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px;}
.fmx .amenu__head b, .fmx.amenu__head b {font-size: 14px; text-align: right;}
.fmx .amenu__head span, .fmx.amenu__head span {font-size: 12px; color: var(--muted);}
.fmx .amenu__head span.ok-text, .fmx.amenu__head span.ok-text {color: var(--forest-2, #2e6a54);}
.fmx .amenu > a, .fmx.amenu > a, .fmx .amenu > button, .fmx.amenu > button {display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 700; text-align: start; text-decoration: none; cursor: pointer;}
.fmx .amenu > a:hover, .fmx.amenu > a:hover, .fmx .amenu > button:hover, .fmx.amenu > button:hover, .fmx .amenu > a:focus-visible, .fmx.amenu > a:focus-visible, .fmx .amenu > button:focus-visible, .fmx.amenu > button:focus-visible {background: var(--sunk, rgba(0,0,0,.05));}
.fmx .amenu svg, .fmx.amenu svg {width: 18px; height: 18px; flex: none;}
.fmx .amenu .amenu__sub, .fmx.amenu .amenu__sub {background: var(--narenj, #f2541b); color: #fff; margin-bottom: 4px;}
.fmx .amenu .amenu__sub:hover, .fmx.amenu .amenu__sub:hover, .fmx .amenu .amenu__sub:focus-visible, .fmx.amenu .amenu__sub:focus-visible {background: var(--narenj-2, #d8430d);}
.fmx .amenu__sub span, .fmx.amenu__sub span {display: grid; gap: 1px;}
.fmx .amenu__sub small, .fmx.amenu__sub small {font-size: 11.5px; font-weight: 500; opacity: .9;}
.fmx .subp, .fmx.subp {display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;}
.fmx .subp__opt, .fmx.subp__opt {display: grid; gap: 6px; text-align: start; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface, #fff); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, background .2s;}
.fmx .subp__opt span, .fmx.subp__opt span {display: grid; gap: 2px;}
.fmx .subp__opt b, .fmx.subp__opt b {font-size: 15px;}
.fmx .subp__opt small, .fmx.subp__opt small {font-size: 12px; color: var(--muted); font-weight: 500;}
.fmx .subp__opt em, .fmx.subp__opt em {font-style: normal; font-weight: 900; font-size: 18px;}
.fmx .subp__opt.is-on, .fmx.subp__opt.is-on {border-color: var(--narenj, #f2541b); background: color-mix(in srgb, var(--narenj, #f2541b) 8%, var(--surface, #fff)); box-shadow: inset 0 0 0 1px var(--narenj, #f2541b);}
.fmx .subp__h, .fmx.subp__h {font-size: 14px; margin: 16px 0 8px;}

/* ---------- صفحهٔ حساب من ---------- */
.acct-main { min-height: 70vh; padding: calc(var(--nav-h) + 34px) 16px 60px; }
.acct { max-width: 860px; margin: 0 auto; color: var(--ink); }
.acct__loading { padding: 80px 0; text-align: center; color: var(--ink-faint); }
.acct .wrap { max-width: 860px; margin: 0 auto; }
.acct .sec-head { margin-bottom: 20px; }
.acct .sec-head h2, .acct h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.4; }
.acct .kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 700; color: var(--gold-text); }
.acct .kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); opacity: .7; }
.acct .account { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.acct .account span.muted { color: var(--ink-faint); }
.acct .tool { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 12px; }
.acct .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .acct .row2 { grid-template-columns: 1fr; } .acct .account { flex-direction: column; align-items: stretch; } }
.acct .empty { text-align: center; padding: 48px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; display: grid; gap: 12px; justify-items: center; }
.acct .empty h3 { font-size: 1.3rem; }
.acct .empty p { color: var(--ink-dim); }
.acct .skeleton { border-radius: 22px; background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.acct .subcta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 18px 0; padding: 18px 22px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 16%, var(--panel)), var(--panel)); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); }
.acct .subcta b { display: block; font-size: 1.05rem; } .acct .subcta small { color: var(--ink-dim); }

/* دکمهٔ حساب در سربرگ و پیوند تیکت */
.nav__cta#accountBtn { gap: .45rem; white-space: nowrap; }
.nav__cta#accountBtn svg { width: 18px; height: 18px; flex: none; }
.nav__links .nav__ticket { color: var(--gold-text); }
@media (max-width: 720px) { .nav__cta#accountBtn { padding: .6rem .8rem; } .nav__cta#accountBtn span { display: none; } }

/* پنجره‌ها در طراحی تازه */
dialog.fmx.dlg { border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.fm-toast { z-index: 2147483000; }
/* روی موبایل هم دکمهٔ حساب دیده می‌شود (فقط آیکن) */
@media (max-width: 1100px) { .nav__cta#accountBtn { display: inline-flex !important; } }
/* پنجره وسط صفحه (بازنشانی margin در سبک پایه، مرکزیت پیش‌فرض dialog را از بین می‌برد) */
dialog.fmx.dlg { margin: auto; position: fixed; inset: 0; max-width: calc(100vw - 24px); height: fit-content; }
dialog.fmx.dlg--auth { width: min(400px, calc(100vw - 24px)); }
.fmx.amenu { z-index: 2147482000; }
.link-gold { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.pmissing { text-align: center; padding: 80px 16px; display: grid; gap: 14px; justify-items: center; }
/* متن «دربارهٔ بازار» برای خزنده‌ها و خوانندگان، پیش از پانویس */
.seo-text { padding: 56px 16px; background: var(--bg-2); border-top: 1px solid var(--line); color: var(--ink-dim); font-size: .95rem; line-height: 2; }
.seo-text .wrap { max-width: 980px; margin: 0 auto; }
.seo-text h1, .seo-text h2, .seo-text h3 { color: var(--ink); font-size: 1.15rem; margin: 1.2em 0 .4em; line-height: 1.6; }
.seo-text a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.seo-text ul { padding-inline-start: 1.2em; } .seo-text details { margin: .4em 0; } .seo-text summary { cursor: pointer; color: var(--ink); font-weight: 700; }

/* ---------- قیمت از دید آسمان: کره و نقشهٔ زنده ---------- */
.skylive { max-width: 1240px; margin: 0 auto 40px; padding: 0 16px; }
.skylive__frame { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-3);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.55); height: min(86vh, 860px); min-height: 560px; }
.skylive__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.skylive__hint { max-width: 820px; margin: 14px auto 0; text-align: center; color: var(--ink-dim); font-size: .9rem; line-height: 1.9; }
@media (max-width: 760px) { .skylive { padding: 0 10px; } .skylive__frame { height: 78vh; min-height: 480px; border-radius: 20px; } }
.sky-filterbar .section-title { margin-bottom: 18px; }

/* ---------- نورافکن فرصت‌ها بالای ساختمان‌های صفحهٔ اول ---------- */
.hspots { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hspot { position: absolute; pointer-events: auto; display: flex; align-items: center; gap: .55rem; max-width: min(300px, 80vw);
  padding: .38rem .45rem .38rem .7rem; border-radius: 999px; text-decoration: none;
  background: rgba(10, 18, 14, .78); color: #f7f4ec; border: 1px solid rgba(247, 244, 236, .22);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; translate: 0 14px; scale: .96; transition: opacity .6s var(--ease), translate .7s var(--ease), scale .7s var(--ease), border-color .3s, box-shadow .3s; }
.hspot.is-on { opacity: 1; translate: 0 0; scale: 1; }
.hspot.is-out { opacity: 0; translate: 0 -10px; }
.hspot:hover { border-color: var(--gold); box-shadow: 0 18px 46px -12px rgba(213, 166, 38, .55); }
.hspot__img { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid rgba(255,255,255,.35); background: #12231b; }
.hspot__img img { width: 100%; height: 100%; object-fit: cover; }
.hspot__txt { display: grid; min-width: 0; line-height: 1.45; }
.hspot__txt b { font-size: .8rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hspot__txt small { font-size: .68rem; color: #ecd07c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hspot__score { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 900; font-size: .8rem;
  background: var(--st-gold); color: #191307; }
.hspot[data-status="ok"] .hspot__score { background: var(--st-ok); color: #fff; }
.hspot[data-status="mid"] .hspot__score { background: var(--st-mid); color: #191307; }
.hspot__beam { position: absolute; top: 100%; right: 50%; width: 2px; height: 46px; translate: 50% 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--gold), transparent); opacity: .8; }
.hspot__beam::after { content: ""; position: absolute; bottom: -4px; right: 50%; translate: 50% 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
[data-theme="light"] .hspot { background: rgba(255, 253, 248, .92); color: #1c241e; border-color: rgba(28, 36, 30, .14); box-shadow: 0 16px 40px -16px rgba(60, 70, 60, .45); }
[data-theme="light"] .hspot__txt small { color: #8a6a14; }
[data-theme="light"] .hspot__img { border-color: #fff; }
@media (max-width: 760px) { .hspot { max-width: 86vw; } .hspot__beam { height: 30px; } }

/* ---------- صفحهٔ اول در تم روشن: آسمان سحرگاهی گرم و شهر سنگی با پنجره‌های روشن ---------- */
[data-theme="light"] {
  --sky-far-a: #eadbc4; --sky-far-b: #d9c4a4;
  --sky-near-a: #c9a77c; --sky-near-b: #8a6a45;
  --win: #ffcf73; --win-glow: rgba(255, 196, 92, .75);
  --hero-ink: #1f2a22; --hero-em: #a8780c;
}
[data-theme="light"] .hero__stage {
  background:
    radial-gradient(60% 50% at 12% 22%, rgba(255, 196, 140, .55), transparent 70%),
    radial-gradient(70% 60% at 88% 10%, rgba(178, 214, 236, .55), transparent 72%),
    linear-gradient(180deg, #f7dcc0 0%, #f6e9d8 36%, #eef1ec 64%, var(--bg) 100%);
}
[data-theme="light"] .hero__title { color: #1f2a22; }
[data-theme="light"] .hero__line.is-accent em { background: linear-gradient(90deg, #b8860b, #e0a526 55%, #c4791a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
[data-theme="light"] .hero__underline { color: #e0a526; }
[data-theme="light"] .hero__lead { background: rgba(255, 253, 248, .82); color: #1f2a22; border: 1px solid rgba(184, 134, 11, .45); box-shadow: 0 12px 30px -16px rgba(140, 100, 30, .45); text-shadow: none; }
[data-theme="light"] .hero__sub { background: rgba(255, 253, 248, .7); border-color: rgba(184, 134, 11, .22); box-shadow: 0 18px 40px -26px rgba(90, 70, 40, .45); backdrop-filter: blur(8px); }
[data-theme="light"] .hero__cloud { background: rgba(255, 250, 244, .9); box-shadow: 0 14px 40px rgba(200, 150, 110, .18); }
[data-theme="light"] .hero__stats { background: rgba(255, 253, 248, .78); border-color: rgba(184, 134, 11, .25); box-shadow: 0 18px 44px -24px rgba(90, 70, 40, .45); }
[data-theme="light"] .hero__stat b { color: #8a6a14; }
[data-theme="light"] .hero__skyline--near svg path:first-of-type { stroke: rgba(255, 236, 200, .8); }
/* متن سئو: جمع‌شده، با یک کلیک باز می‌شود */
.seo-text { padding: 28px 16px; }
.seo-fold { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 0; }
.seo-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; font-weight: 800; color: var(--ink); }
.seo-fold > summary::-webkit-details-marker { display: none; }
.seo-fold > summary small { font-weight: 600; font-size: .8rem; color: var(--gold-text); }
.seo-fold > summary::after { content: "+"; font-size: 1.3rem; color: var(--gold-text); }
.seo-fold[open] > summary::after { content: "–"; }
.seo-fold__body { padding: 0 22px 22px; border-top: 1px solid var(--line); }

/* ---------- صفحهٔ ملک: حکم، نقشه ---------- */
.pverdict { margin: 14px 0 6px; padding: 12px 16px; border-radius: 16px; font-weight: 700; line-height: 1.9; font-size: .95rem;
  background: color-mix(in srgb, var(--st-mid) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--st-mid) 35%, transparent); color: var(--ink); }
.pverdict[data-status="gold"] { background: color-mix(in srgb, var(--st-gold) 12%, var(--panel)); border-color: color-mix(in srgb, var(--st-gold) 45%, transparent); }
.pverdict[data-status="ok"] { background: color-mix(in srgb, var(--st-ok) 10%, var(--panel)); border-color: color-mix(in srgb, var(--st-ok) 40%, transparent); }
.pverdict[data-status="warm"], .pverdict[data-status="bad"] { background: color-mix(in srgb, var(--st-bad) 9%, var(--panel)); border-color: color-mix(in srgb, var(--st-bad) 35%, transparent); }
.pmapbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pmapbox h3 { margin-bottom: 10px; font-size: 1.05rem; }
.pmap { height: 300px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.pmapbox__note { margin-top: 10px; font-size: .82rem; color: var(--ink-faint); }
[data-theme="dark"] .pmap .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.5); }

/* تم تاریک: نوشتهٔ کادرها روشن؛ انتخاب‌شده‌ها سبز فسفری */
[data-theme="dark"] { --neon: #c8ff3e; }
[data-theme="dark"] .searchbar__field select, [data-theme="dark"] .searchbar__field input, [data-theme="dark"] .fmx input, [data-theme="dark"] .fmx select { color: #f1eee6; }
[data-theme="dark"] .searchbar__field.is-set { border-color: var(--neon); box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon) 40%, transparent), 0 0 18px color-mix(in srgb, var(--neon) 18%, transparent); }
[data-theme="dark"] .searchbar__field.is-set select, [data-theme="dark"] .searchbar__field.is-set label, [data-theme="dark"] .searchbar__field.is-set span { color: var(--neon); }
[data-theme="dark"] .searchbar__field:focus-within { border-color: var(--neon); }
[data-theme="dark"] .subp__opt.is-on, [data-theme="dark"] .auth__seg button.is-on, [data-theme="dark"] [data-ch].is-on, [data-theme="dark"] .thumbs button.is-on {
  color: var(--neon) !important; border-color: var(--neon) !important; box-shadow: 0 0 14px color-mix(in srgb, var(--neon) 22%, transparent);
}
.sky-filterbar { padding-top: 28px; padding-bottom: 22px; }
.sky-filterbar__hint { text-align: center; color: var(--ink-soft, #b9b4a8); margin: -6px auto 18px; max-width: 560px; font-size: .95rem; }
.sky-filterbar .skymap__stats { margin-bottom: 0; }

/* گالری املاک: کارت‌های کوچک‌تر و بیشتر؛ با موس، عکس‌های دیگر ملک می‌چرخند */
.masonry-wrap .masonry { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.masonry-wrap .masonry__col { display: grid; gap: 1rem; }
.masonry-wrap .ncard { clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }
.masonry-wrap .ncard.is-offset { margin-top: 2rem; }
.masonry-wrap .ncard__media { aspect-ratio: 4/3.6; }
.masonry-wrap .ncard__body { padding: .65rem .75rem .8rem; }
.masonry-wrap .ncard__body > b { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.masonry-wrap .ncard__meta small { font-size: .7rem; }
.masonry-wrap .ncard__price { font-size: .84rem; margin-top: .3rem; }
.masonry-wrap .ncard:hover .ncard__media img { opacity: 1; transform: scale(1.04); }
.masonry-wrap .ncard__swap { opacity: .9; top: .5rem; bottom: auto; left: .5rem; font-size: .62rem; padding: .12rem .5rem; }
.ncard__dots { position: absolute; bottom: .45rem; inset-inline: 0; display: flex; justify-content: center; gap: 4px; z-index: 2; opacity: 0; transition: opacity .3s; }
.ncard:hover .ncard__dots { opacity: 1; }
.ncard__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .3s, transform .3s; }
.ncard__dots i.is-on { background: #c8ff3e; transform: scale(1.3); }
@media (max-width: 1100px) { .masonry-wrap .masonry { grid-template-columns: repeat(4, 1fr); } .masonry-wrap .masonry__col:nth-child(5) { display: none; } }
@media (max-width: 860px) { .masonry-wrap .masonry { grid-template-columns: repeat(3, 1fr); } .masonry-wrap .masonry__col:nth-child(3) { display: grid; } .masonry-wrap .masonry__col:nth-child(n+4) { display: none; } }
@media (max-width: 560px) { .masonry-wrap .masonry { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .masonry-wrap .masonry__col { gap: .6rem; } .masonry-wrap .masonry__col:nth-child(n+3) { display: none; } }

/* فیلتر پیشرفتهٔ صفحهٔ اصلی */
.advf__bar { display: flex; justify-content: center; margin-top: 14px; }
.advf__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .25s, color .25s, box-shadow .25s; }
.advf__toggle svg { width: 18px; height: 18px; }
.advf__toggle i { font-style: normal; transition: transform .3s; opacity: .7; }
.advf__toggle.is-open i { transform: rotate(180deg); }
.advf__toggle:hover, .advf__toggle.is-open { border-color: var(--gold); }
.advf__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #14110a; font-size: .78rem; display: inline-grid; place-items: center; }
.advf { max-width: 1080px; margin: 14px auto 0; padding: 20px 22px 16px; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px); text-align: right; }
.advf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px 22px; }
.advf__g--wide { grid-column: 1 / -1; }
.advf__h { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-faint); margin-bottom: 8px; }
.advf__h small { font-weight: 500; opacity: .8; }
.advf__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.advf__chips + .advf__chips { margin-top: 8px; }
.advf__chips button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .86rem; cursor: pointer; transition: all .2s; }
.advf__chips button:hover { border-color: var(--ink-faint); }
.advf__chips button.is-on { border-color: var(--gold); color: var(--gold-text, var(--gold)); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.advf__range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.advf__range + .advf__range { margin-top: 8px; }
.advf__range input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .9rem; outline: none; }
.advf__range input:focus { border-color: var(--gold); }
.advf__foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.advf__clear { background: none; border: 0; color: var(--ink-faint); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.advf__done { padding: 10px 22px; border-radius: 999px; border: 0; background: var(--gold); color: #14110a; font: inherit; font-weight: 800; cursor: pointer; }
[data-theme="dark"] .advf__chips button, [data-theme="dark"] .advf__range input { color: #f1eee6; }
[data-theme="dark"] .advf__chips button.is-on { color: var(--neon); border-color: var(--neon); background: color-mix(in srgb, var(--neon) 12%, transparent); text-shadow: 0 0 10px color-mix(in srgb, var(--neon) 40%, transparent); }
[data-theme="dark"] .advf__range input:focus, [data-theme="dark"] .advf__toggle.is-open { border-color: var(--neon); }
[data-theme="dark"] .advf__count { background: var(--neon); }
.hscroll__empty { padding: 30px 20px; color: var(--ink-faint); }
.hscroll.is-static .hscroll__track { overflow-x: auto; }
@media (max-width: 560px) { .advf { padding: 16px 14px 12px; border-radius: 18px; } .advf__grid { grid-template-columns: 1fr; } }

/* منوی تمام‌صفحه: نوشته‌های کوچک‌تر */
.menu__txt { font-size: clamp(1.02rem, 1.5vw, 1.3rem) !important; font-weight: 700; line-height: 1.6; }
.menu__link { padding: .55rem 0 !important; }
.menu__arrow { width: 20px; height: 20px; }
.menu__link--hot .menu__txt { color: var(--gold-text, var(--gold)); }

/* برچسب حکم روی کارت‌ها */
.lbadge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; line-height: 1.4; white-space: nowrap; color: #14110a; background: #d9dbe0; box-shadow: 0 4px 14px -6px rgba(0,0,0,.5); }
.lbadge--gold { background: linear-gradient(135deg, #ffe08a, #e2a91d); color: #2a1d00; box-shadow: 0 0 14px rgba(245,197,66,.45); }
.lbadge--good { background: #22c55e; color: #04210f; }
.lbadge--fair { background: #b08453; color: #1d1206; }
.lbadge--high, .lbadge--over { background: #ef4444; color: #fff; }
.ncard__badge, .hcard__badge { position: absolute; top: .5rem; right: .5rem; z-index: 3; }
.ncard__media .ncard__swap { top: auto; bottom: .5rem; }
.hcard { position: relative; }
.dcard .dcard__tag.lbadge { position: absolute; }
.hspot__txt .lbadge { align-self: flex-start; margin-bottom: 3px; font-size: .62rem; padding: 2px 7px; }

/* دکمه‌های قلب و اشتراک روی کارت‌ها */
.cacts { position: absolute; top: .45rem; left: .45rem; z-index: 4; display: flex; gap: 5px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.ncard:hover .cacts, .hcard:hover .cacts, .dcard:hover .cacts, .cacts:focus-within, .cacts:has(.is-on) { opacity: 1; transform: none; }
@media (hover: none) { .cacts { opacity: 1; transform: none; } }
.cact { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(10,14,12,.55); backdrop-filter: blur(6px); display: grid; place-items: center; cursor: pointer; color: #fff; padding: 0; transition: transform .2s, background .2s; }
.cact:hover { transform: scale(1.1); }
.cact svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cact--fav.is-on { background: rgba(255,255,255,.92); color: #e11d48; border-color: #fff; }
.cact--fav.is-on svg { fill: #e11d48; stroke: #e11d48; animation: favPop .35s ease; }
@keyframes favPop { 50% { transform: scale(1.35); } }

/* سربرگ: علاقه‌مندی‌ها و اشتراک‌گذاری */
.nav__extra { display: inline-flex; gap: 8px; }
.nav__extra svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__fav { position: relative; display: grid; place-items: center; }
.nav__fav b { position: absolute; top: -4px; left: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #e11d48; color: #fff; font-size: .62rem; display: grid; place-items: center; }
@media (max-width: 560px) { .nav__extra #navShare { display: none; } }

/* انتخاب چند شهر */
.cpick__btn { display: block; width: 100%; text-align: right; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpick__btn small { font-size: .72rem; opacity: .7; font-weight: 600; }
.cpick { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: min(440px, 92vw); max-height: 60vh; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); text-align: right; }
.cpick__q { width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; outline: none; }
.cpick__hint { margin: 0; font-size: .74rem; color: var(--ink-faint); }
.cpick__list { overflow: auto; display: grid; gap: 10px; padding-left: 2px; }
.cpick__g > b { display: block; font-size: .76rem; color: var(--ink-faint); margin-bottom: 6px; }
.cpick__g > div { display: flex; flex-wrap: wrap; gap: 6px; }
.cpick__g button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .84rem; cursor: pointer; }
.cpick__g button small { opacity: .55; font-size: .7rem; }
.cpick__g button i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; background: var(--gold); color: #14110a; }
.cpick__g button.is-on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.cpick__foot { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
.cpick__clear { background: none; border: 0; color: var(--ink-faint); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.cpick__ok { padding: 7px 18px; border-radius: 999px; border: 0; background: var(--gold); color: #14110a; font: inherit; font-weight: 800; cursor: pointer; }
[data-theme="dark"] .cpick__g button, [data-theme="dark"] .cpick__btn { color: #f1eee6; }
[data-theme="dark"] .cpick__g button.is-on, [data-theme="dark"] .searchbar__field.is-set .cpick__btn { color: var(--neon); border-color: var(--neon); }
[data-theme="dark"] .cpick__g button i, [data-theme="dark"] .cpick__ok { background: var(--neon); }
.searchbar__field.is-open { z-index: 61; }

/* نتیجهٔ چند شهر: هر شهر یک بخش */
.cgroups { max-width: 1220px; margin: 0 auto; padding: 0 1.25rem; display: grid; gap: 34px; }
.cgroup__h { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; margin: 0 0 14px; }
.cgroup__h i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #14110a; font-size: .85rem; }
[data-theme="dark"] .cgroup__h i { background: var(--neon); }
.cgroup__h small { font-size: .78rem; font-weight: 600; color: var(--ink-faint); }
.cgroup__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.cgroup__grid .ncard { clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }
.cgroup__grid .ncard__media { aspect-ratio: 4/3.4; }
.cgroup__grid .ncard__body { padding: .65rem .75rem .8rem; }
.cgroup__grid .ncard__body > b { font-size: .86rem; }
.hcard--head { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; min-width: 180px; border: 1px dashed var(--line); border-radius: 18px; background: color-mix(in srgb, var(--gold) 8%, transparent); }
.hcard--head span { font-size: .85rem; color: var(--ink-faint); }
.hcard--head b { font-size: 1.5rem; font-weight: 900; }
@media (max-width: 560px) { .cgroup__grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }

/* ═══ تم روشن: پس‌زمینهٔ عکس قبلی سایت به‌صورت مات، خورشید واقعی ═══ */
[data-theme="light"] .hero__stage { isolation: isolate; background: #eef1ee; }
[data-theme="light"] .hero__stage::before {
  content: ""; position: absolute; inset: -30px; z-index: -2;
  background: url("/assets/img/scene/house-1280.webp") center 62% / cover no-repeat;
  filter: blur(7px) saturate(.9) brightness(1.06);
  transform: scale(1.04);
}
/* لایهٔ شیری مات روی عکس: متن خوانا می‌ماند و آسمان روشن صبح حس می‌شود */
[data-theme="light"] .hero__stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% 24%, rgba(255, 252, 235, .75), transparent 70%),
    linear-gradient(180deg, rgba(236, 244, 250, .72) 0%, rgba(246, 243, 236, .62) 45%, rgba(246, 243, 236, .78) 78%, var(--bg) 100%);
  backdrop-filter: blur(2px);
}
[data-theme="light"] .hero__topo { opacity: .06; }
[data-theme="light"] .blob { opacity: .35; }
[data-theme="light"] .hero__skyline--far { opacity: .55; }

/* خورشید واقعی روز: هستهٔ سفیدِ خیره‌کننده، تیرگی ملایم لبه، هالهٔ گرم و پرتوهای محو */
[data-theme="light"] .hero__sun-core {
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0%, #fffef6 38%, #fff6cf 66%, #ffe691 86%, #ffd25a 96%, #f7bb3c 100%);
  box-shadow:
    0 0 28px 10px rgba(255, 255, 240, .95),
    0 0 90px 40px rgba(255, 240, 190, .75),
    0 0 220px 110px rgba(255, 220, 140, .35),
    inset 0 0 26px rgba(255, 196, 80, .35);
  animation: sunGlow 7s ease-in-out infinite;
}
[data-theme="light"] .hero__sun-core::before {
  inset: -60%;
  background: radial-gradient(circle, rgba(255, 252, 230, .7) 0%, rgba(255, 238, 180, .28) 30%, rgba(255, 228, 160, .08) 52%, transparent 68%);
}
[data-theme="light"] .hero__sun-core::after {
  display: block; inset: -120%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 250, 225, .16) 0deg 2.5deg, transparent 2.5deg 11deg);
  -webkit-mask-image: radial-gradient(circle, transparent 22%, #000 26%, transparent 60%);
  mask-image: radial-gradient(circle, transparent 22%, #000 26%, transparent 60%);
}
@keyframes sunGlow { 50% { filter: brightness(1.05); transform: scale(1.02); } }

/* ماه واقعی (تم تاریک): خاکستری خنثی، دریاهای ماه در جای واقعی، بافت سطح و تیرگی لبه */
[data-theme="dark"] .hero__sun-core {
  background:
    /* دهانهٔ تیکو و پرتوهایش (پایین) */
    radial-gradient(3% 3% at 44% 84%, rgba(255, 255, 250, .85) 0%, rgba(255, 255, 250, .2) 60%, transparent 100%),
    radial-gradient(14% 10% at 44% 82%, rgba(250, 248, 240, .22) 0%, transparent 100%),
    /* دهانهٔ کوپرنیک */
    radial-gradient(3.4% 3.4% at 36% 46%, rgba(255, 255, 248, .7) 0%, rgba(120, 116, 108, .35) 55%, transparent 100%),
    /* دریاها: باران‌ها، آرامش، سکون، بحران، طوفان‌ها */
    radial-gradient(17% 15% at 38% 30%, rgba(96, 94, 90, .55) 0%, rgba(110, 108, 103, .3) 60%, transparent 100%),
    radial-gradient(11% 10% at 58% 30%, rgba(98, 96, 92, .5) 0%, transparent 100%),
    radial-gradient(13% 12% at 64% 46%, rgba(98, 96, 92, .5) 0%, transparent 100%),
    radial-gradient(7% 6% at 82% 36%, rgba(92, 90, 86, .55) 0%, transparent 100%),
    radial-gradient(18% 28% at 22% 52%, rgba(108, 106, 101, .42) 0%, transparent 100%),
    radial-gradient(10% 9% at 60% 62%, rgba(104, 102, 97, .4) 0%, transparent 100%),
    radial-gradient(9% 8% at 34% 66%, rgba(106, 104, 99, .35) 0%, transparent 100%),
    /* بدنه: خاکستری روشن با تیرگی لبه */
    radial-gradient(circle at 46% 44%, #f3f1ec 0%, #e3e0d8 40%, #cfcbc2 66%, #b3aea4 86%, #8e897f 100%);
  box-shadow:
    0 0 40px 10px rgba(236, 232, 220, .28),
    0 0 150px 60px rgba(210, 214, 220, .12),
    inset -10px -12px 40px rgba(40, 38, 34, .45),
    inset 6px 6px 22px rgba(255, 255, 250, .35);
  animation: none;
}
/* بافت ریز سطح ماه (نویز) */
[data-theme="dark"] .hero__sun-core::after {
  display: block; inset: 0; border-radius: 50%; mask-image: none; -webkit-mask-image: none; animation: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .34 0 0 0 0 .32 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E") center / 100% 100%;
  mix-blend-mode: multiply; opacity: .55;
}
[data-theme="dark"] .hero__sun-core::before {
  background: radial-gradient(circle, rgba(232, 230, 222, .2) 0%, rgba(210, 210, 205, .08) 45%, transparent 66%);
}

/* تم روشن: ساختمان‌های خاکستری (دور روشن، نزدیک تیره)، پنجره‌های گرم ملایم */
[data-theme="light"] {
  --sky-far-a: #d3d8dc; --sky-far-b: #b4bcc2;
  --sky-near-a: #7d868d; --sky-near-b: #3f474d;
  --win: #ffe2a3; --win-glow: rgba(255, 214, 140, .55);
}
[data-theme="light"] .hero__skyline--far { opacity: .7; }
[data-theme="light"] .hero__skyline--near svg path:first-of-type { stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
[data-theme="light"] .hero__skyline--near { filter: drop-shadow(0 -10px 30px rgba(40, 50, 58, .18)); }
/* سربرگ شیشه‌ای و کارت‌های شفاف‌تر در تم روشن */
[data-theme="light"] .nav.is-scrolled { background: rgba(248, 249, 247, .78); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 10px 30px -18px rgba(40, 50, 58, .35); }
[data-theme="light"] .hero__stats { background: rgba(255, 255, 255, .7); border-color: rgba(63, 71, 77, .18); backdrop-filter: blur(10px); }
[data-theme="light"] .hero__stat b { color: #3f474d; }
[data-theme="light"] .hero__lead { border-color: rgba(63, 71, 77, .25); }

/* ورودی «قیمت از دید آسمان»: کرهٔ زمین واقعی که دور محور خودش (افقی) می‌چرخد */
.gglobe { position: relative; width: min(340px, 78vw); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(160, 200, 255, .18), 0 0 70px -6px rgba(110, 170, 255, .55), 0 0 160px -20px rgba(80, 140, 230, .45); }
.gglobe__map { position: absolute; inset: 0; background: 0 50% / 200% 100% repeat-x; animation: gglobeSpin 40s linear infinite; }
.gglobe.is-in .gglobe__map { background-image: url("/assets/vendor/globe/earth-night-1024.webp"); }
[data-theme="light"] .gglobe.is-in .gglobe__map { background-image: url("/assets/vendor/globe/earth-day-1024.webp"); }
@keyframes gglobeSpin { to { background-position-x: -200%; } }
/* سایه‌روشن کروی: نور از بالا-چپ، شب در لبهٔ راست، و جو آبی لبه */
.gglobe__shade { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .06) 30%, transparent 52%),
    radial-gradient(circle at 50% 50%, transparent 56%, rgba(0, 10, 30, .55) 82%, rgba(0, 5, 20, .9) 100%);
  box-shadow: inset 0 0 28px 6px rgba(120, 180, 255, .45), inset -40px -20px 70px rgba(0, 0, 0, .55); }
[data-theme="light"] .gglobe__shade { background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .1) 30%, transparent 52%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(20, 50, 90, .35) 84%, rgba(10, 30, 60, .7) 100%);
  box-shadow: inset 0 0 26px 6px rgba(140, 200, 255, .55), inset -36px -18px 60px rgba(10, 30, 60, .35); }
[data-theme="light"] .gglobe { box-shadow: 0 0 0 1px rgba(80, 130, 190, .2), 0 30px 70px -24px rgba(40, 80, 140, .5), 0 0 90px -20px rgba(110, 170, 255, .5); }
/* نقطه‌های چشمک‌زن بازار ایران روی کره */
.gglobe__pins b { position: absolute; left: var(--x); top: var(--y); width: 7px; height: 7px; border-radius: 50%; background: #c8ff3e; box-shadow: 0 0 10px #c8ff3e; animation: gpin 2.2s ease-in-out infinite; }
.gglobe__pins b:nth-child(2) { animation-delay: .7s; }
.gglobe__pins b:nth-child(3) { animation-delay: 1.4s; }
[data-theme="light"] .gglobe__pins b { background: #e0a526; box-shadow: 0 0 10px #e0a526; }
@keyframes gpin { 50% { transform: scale(1.8); opacity: .4; } }
.lite .gglobe__map { animation-duration: 90s; }
@media (prefers-reduced-motion: reduce) { .gglobe__map, .gglobe__pins b { animation: none; } }
.linkbtn{background:none;border:0;padding:0;color:var(--gold-text,#c8a03a);text-decoration:underline;cursor:pointer;font:inherit}
[data-theme="dark"] .gglobe__map { filter: brightness(1.9) contrast(1.1) saturate(1.3); }

/* خط آسمان بازطراحی‌شده: لبهٔ روشن هر ساختمان برای عمق، پنجره‌های سبک (بدون فیلتر سایه که اسکرول را سنگین می‌کرد) */
.sky-edge rect { fill: rgba(255, 255, 255, .07); }
[data-theme="light"] .sky-edge rect { fill: rgba(255, 255, 255, .22); }
.win-lights rect { filter: none; opacity: .82; animation: none; }
.win-lights rect:nth-child(7n) { animation: winTwinkle 5s ease-in-out infinite; }
.win-lights rect:nth-child(11n) { animation: winTwinkle 6.5s ease-in-out 1.8s infinite; }
[data-theme="light"] .win-lights rect { opacity: .55; }
.lite .win-lights rect { animation: none !important; }

/* روانی اسکرول: افکت‌هایی که هر فریم دوباره نقاشی می‌شدند با معادل سبک (transform/opacity) جایگزین شدند */
@keyframes sunGlow { 50% { transform: scale(1.02); } }
[data-theme="light"] .hero__stage::before { will-change: transform; }
[data-theme="light"] .hero__stage::after { backdrop-filter: none; }
[data-theme="light"] .hero__stats { backdrop-filter: none; background: rgba(255, 255, 255, .82); }
.hero__sun, .hero__skyline, .hero__cloud { will-change: transform; }
.blob { will-change: transform; }
@media (max-width: 860px) { .blob { animation: none; } .hero__sun-core::after { animation: none; } }
/* در صفحهٔ اول با هر اسکرول، لایه‌ها جابه‌جا می‌شوند و «تار کردن پشت‌زمینه» هر فریم از نو محاسبه می‌شد (عامل اصلی لگ)؛
   زمینهٔ نیمه‌شفاف همان خوانایی را بدون هزینه می‌دهد */
.hero__content::before, .hero__eyebrow, .hero__lead, .hero__sub, .hero__stats, .hero__tag, .hspot, .hero .btn--ghost, .hero .btn--sky { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.hero__eyebrow { background: rgba(11, 18, 14, .62); }
[data-theme="light"] .hero__eyebrow { background: rgba(255, 255, 255, .86); }
.hero .btn--sky, .hero .btn--ghost { background: rgba(11, 18, 14, .45); }
[data-theme="light"] .hero .btn--sky, [data-theme="light"] .hero .btn--ghost { background: rgba(255, 255, 255, .72); }
/* عکس پس‌زمینهٔ تم روشن از پیش مات شده (۶ کیلوبایت)؛ دیگر فیلتر تار کردن زنده لازم نیست */
[data-theme="light"] .hero__stage::before { background-image: url("/assets/img/scene/house-soft.webp"); filter: saturate(.9) brightness(1.06); inset: 0; transform: none; }
/* هاله‌ها خودشان گرادیان نرم‌اند؛ فیلتر blur(70px) روی سه دایرهٔ بزرگ متحرک پرهزینه‌ترین بخش صفحه بود */
.blob { filter: none; opacity: .55; }
.hero__topo { will-change: transform; contain: strict; }
[data-theme="light"] .hero__skyline--near { filter: none; }
[data-theme="light"] .hero__stage::before { filter: none; opacity: .92; }

/* ویترین فرصت‌های طلایی (رایانه): عنوان و کارت‌های بادبزنی در یک صفحه */
@media (min-width: 861px) {
  .golden { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + .6rem) 0 .8rem; }
  .golden__head { margin-bottom: .2rem; }
  .golden__head .section-title { font-size: clamp(2rem, 3.2vw, 2.9rem); }
  .golden__head .section-sub { font-size: .92rem; margin-top: .35rem; }
  .deck__pinwrap { height: auto; padding-top: 0; }
  .deck__stage { flex: none; height: min(56vh, 480px); max-height: none; }
  .dcard { width: clamp(176px, 15.5vw, 228px); }
  .deck__hint { padding: .6rem 0 0; }
}

/* ═════════════ نمای گوشی (فقط زیر ۸۶۰ پیکسل؛ رایانه دست نمی‌خورد) ═════════════ */
@media (max-width: 860px) {
  /* ویترین: بدون فضای خالی صفحه‌ای؛ ردیف کارت‌ها با کشیدن افقی */
  .golden { padding: 3.2rem 0 1.4rem; }
  .golden__head .section-title { font-size: clamp(1.55rem, 6.4vw, 2.1rem); line-height: 1.45; }
  .golden__head .section-sub { font-size: .88rem; }
  .deck__pinwrap { height: auto; padding-top: .6rem; }
  .deck__stage { max-height: none; }
  .deck__stage.is-row .dcard { flex: 0 0 min(72%, 280px); width: auto; aspect-ratio: 3/4; transform: none !important; }
  .deck__hint { display: none; }
  .dcard__info b { font-size: .92rem; }
  .dcard .cacts { opacity: 1; transform: none; }

  /* طبقه‌ها: بدون پین؛ همهٔ پنل‌ها زیر هم */
  .floors.is-static .floors__pin { height: auto; overflow: visible; padding: 3rem 0 2rem; display: block; }
  .floors.is-static .floors__body { display: flex; flex-direction: column; gap: 1.2rem; }
  .floors.is-static .floors__visual { order: 0; max-width: 420px; margin: 0 auto; width: 100%; }
  .floors.is-static .floors__cursor, .floors.is-static .floors__cursor-label, .floors.is-static .floors__rail { display: none !important; }
  .floors.is-static .floors__panels { display: flex; flex-direction: column; gap: 1rem; min-height: 0 !important; }
  .floors.is-static .fpanel { visibility: visible; opacity: 1; padding: 1.1rem 1.1rem; transform: none !important; }
  .floors.is-static .fpanel__head, .floors.is-static .fpanel__col { opacity: 1 !important; visibility: visible !important; transform: none !important; }

  /* شکارهای بازار: سرتیتر روی هم نیفتد؛ کشیدن افقی طبیعی */
  .hscroll { margin-top: 3rem; }
  .hscroll__head { flex-direction: column; align-items: flex-start; gap: .3rem; padding: 0 1.25rem; }
  .hscroll__pin { height: auto !important; }
  .hscroll__track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding: 1rem 1.25rem; scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .hscroll__track .hcard { scroll-snap-align: center; }
}
@media (max-width: 560px) {
  /* سربرگ: نام سایت یک خط، بدون زیرنویس؛ دکمه‌ها جمع‌وجور */
  .nav__inner { gap: .5rem; padding: 0 .75rem; }
  .nav__txt small { display: none; }
  .nav__txt b { font-size: .95rem; white-space: nowrap; }
  .nav__iconbtn { width: 38px; height: 38px; }
  .nav__extra { gap: 5px; }
  #accountLabel { display: none; }

  /* بخش اول: ماه/خورشید کوچک‌تر و دور از متن */
  .hero__sun { width: 92px !important; left: 10% !important; top: 9% !important; }
  .hero__title { font-size: clamp(1.7rem, 8.4vw, 2.3rem); }
  .hero__lead { font-size: .95rem; padding: .55rem 1rem; }
  .hero__sub { font-size: .86rem; line-height: 1.9; }

  /* گالری دوستونه: متن خوانا، بدون شکستن نامرتب */
  .masonry-wrap .ncard__body { padding: .55rem .6rem .7rem; }
  .masonry-wrap .ncard__body > b, .cgroup__grid .ncard__body > b { font-size: .8rem; line-height: 1.6; }
  .ncard__meta { flex-direction: column; gap: .15rem; }
  .ncard__meta small { font-size: .68rem; line-height: 1.6; }
  .ncard__price { font-size: .8rem; }
  .lbadge { font-size: .62rem; padding: 2px 7px; }
  .cact { width: 28px; height: 28px; }

  /* فیلتر صفحهٔ اول: سه کادر زیر هم، تمام‌عرض */
  .searchbar { flex-direction: column; align-items: stretch; gap: .5rem; padding: .6rem; }
  .searchbar__arrow { display: none; }
  .searchbar__field { width: 100%; }
  .cpick { width: calc(100vw - 32px); right: 0; }
  .advf { padding: 14px 12px 10px; }
  .advf__chips button { padding: 6px 11px; font-size: .8rem; }

  /* بخش‌ها: عنوان‌ها اندازهٔ گوشی */
  .section-title { font-size: clamp(1.45rem, 6.2vw, 1.9rem); line-height: 1.5; }
  .section-sub { font-size: .88rem; }
}
@media (max-width: 560px) {
  .searchbar__field { flex: none; min-width: 0; padding: .4rem .8rem; }
  .hero__sun { width: 78px !important; left: 7% !important; top: 6% !important; opacity: .9; }
  .foot { padding-top: 3rem; }
  .foot__grid { grid-template-columns: 1fr 1fr !important; gap: 1.6rem 1rem; padding: 2rem 1.25rem; }
  .foot__grid > :first-child { grid-column: 1 / -1; }
  .totop { top: auto !important; bottom: 1rem; right: .9rem; transform: none !important; width: 42px; height: 42px; }
  .hscroll__title { font-size: 1rem; }
}
@media (max-width: 560px) { .hero__sun { width: 66px !important; left: 5% !important; top: 10% !important; } }
@media (max-width: 560px) {
  .skymap__stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .skymap__stats > div { min-width: 0; padding: .7rem .5rem; }
  .skycards { display: grid !important; grid-template-columns: 1fr 1fr; gap: .6rem; padding-inline: 1rem; }
  .skycard { padding: .7rem .75rem; min-width: 0; }
  .skycard b { font-size: .88rem; }
  .skylive__frame { height: 72vh; min-height: 440px; }
}

/* ═══ گوشی، دور دوم: بادبزن ویترین، برج طبقه‌ها با انیمیشن، بخش اول زیر نوار ═══ */
@media (max-width: 860px) {
  /* ویترین: عنوان و بادبزن در یک صفحه */
  .golden { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + .4rem) 0 .6rem; }
  .golden__head { margin-bottom: .2rem; }
  .golden__head .eyebrow { display: none; }
  .golden__head .section-sub { font-size: .8rem; line-height: 1.8; margin-top: .2rem; }
  .deck__stage:not(.is-row) { height: min(52svh, 360px); flex: none; }
  .deck__stage:not(.is-row) .dcard { width: min(42vw, 176px); }
  .dcard__score { transform: scale(.85); }
  .dcard__tag.lbadge { font-size: .58rem; }

  /* طبقه‌ها: ثابت با اسکرول، چیدمان فشرده */
  .floors.is-mob .floors__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; padding: calc(var(--nav-h) + .3rem) 0 .5rem; overflow: hidden; }
  .floors.is-mob .floors__head { margin-bottom: .4rem; }
  .floors.is-mob .floors__head .eyebrow, .floors.is-mob .floors__head .section-sub { display: none; }
  .floors.is-mob .floors__head .section-title { font-size: 1.15rem; }
  .floors.is-mob .floors__body { display: flex; flex-direction: column; gap: .55rem; padding: 0 .9rem; flex: 1; min-height: 0; }
  .floors.is-mob .floors__visual { order: 0; width: min(88vw, 420px); max-width: none; margin: 0 auto; flex: none; }
  .floors.is-mob .floors__aspect { display: none; }
  .floors.is-mob .floors__panels { order: 1; display: grid; flex: 1; min-height: 0; }
  .floors.is-mob .fpanel { padding: .75rem .85rem; overflow: hidden; }
  .floors.is-mob .fpanel__head { margin-bottom: .45rem; }
  .floors.is-mob .fpanel__head h3 { font-size: 1rem; }
  .floors.is-mob .fpanel__head p { font-size: .74rem; line-height: 1.7; }
  .floors.is-mob .fpanel__cols { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .floors.is-mob .fpanel__col { padding: .5rem .6rem; }
  .floors.is-mob .fpanel__col b { font-size: .76rem; }
  .floors.is-mob .fpanel__col li { font-size: .7rem; line-height: 1.7; }
  .floors.is-mob .floors__cursor-label { font-size: .66rem; padding: .12rem .6rem; }
}
/* دکمه‌های طبقه برای دستگاه‌های بدون انیمیشن */
.floors__tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: .6rem; }
.floors__tabs button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: .78rem; cursor: pointer; }
.floors__tabs button.is-on { border-color: var(--gold); color: var(--gold-text, var(--gold)); }
[data-theme="dark"] .floors__tabs button.is-on { border-color: var(--neon); color: var(--neon); }

@media (max-width: 560px) {
  /* بخش اول: متن زیر نوار بالا (با در نظر گرفتن ناچ آیفون) */
  .hero__content { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + .8rem); align-self: start; }
  .hero__eyebrow { font-size: .7rem; padding: .25rem .8rem; margin-bottom: .8rem; }
}
@media (max-width: 560px) and (max-height: 760px) { .hero__eyebrow { display: none; } .hero__sub { display: none; } }

/* فیلتر گوشی: جمع‌وجور؛ استان و شهر کنار هم، محله زیرشان */
.cpick-field { position: relative; }
.cpick-field > span { font-size: inherit; }
@media (max-width: 560px) {
  .searchbar { display: grid !important; grid-template-columns: 1fr 1fr; gap: .45rem; padding: .5rem; }
  .searchbar__field { padding: .3rem .65rem; border-radius: 12px; }
  .searchbar__field > span { font-size: .66rem; }
  .searchbar__field select, .cpick__btn { font-size: .88rem !important; }
  .searchbar > .searchbar__field.is-district { grid-column: 1 / -1; }
  .searchbar__reset { grid-column: 1 / -1; justify-self: center; }
  .cpick { right: auto; left: 0; width: calc(100vw - 32px); max-height: 56vh; }
  .homefilter { padding-top: 1.4rem; }
  .advf__bar { margin-top: .6rem; }
  .advf__toggle { padding: 8px 16px; font-size: .9rem; }
}
.cpick__btn { padding-left: 22px !important; background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%); background-position: 6px calc(50% - 1px), 11px calc(50% - 1px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

/* گوشی، دور سوم: چرخ‌فلک ویترین، فاصلهٔ کمتر بین بخش‌ها، نقطه‌های عکس همیشه پیدا */
@media (max-width: 860px) {
  .golden { justify-content: flex-start; padding-top: calc(var(--nav-h) + 1rem); }
  .deck__stage:not(.is-row) { height: min(56svh, 420px); margin-top: .6rem; }
  .deck__stage:not(.is-row) .dcard { width: min(60vw, 236px); }
  .gallery { padding-top: 2.2rem; }
  .gallery__head { margin-bottom: 1.2rem; }
  .problem { padding: 2.6rem 0 2.2rem; }
  .skygateway { padding: 2.4rem 1rem; }
  .assistant { padding: 2.8rem 1rem; }
  .trust { padding: 3rem 0; }
  .hscroll { margin-top: 2rem; }
  .hscroll__pin { padding: 1.2rem 0 !important; }
  .masonry__all { margin-top: 1rem; }
  .homefilter { padding-bottom: .4rem; }
  .homefilter__status { margin-top: .6rem; }
}
@media (hover: none) { .ncard__dots { opacity: 1; } .ncard__swap { opacity: .9; } }
@media (max-width: 860px) {
  .golden { min-height: 0; padding-bottom: 1rem; }
  .deck__stage:not(.is-row) { height: calc(min(60vw, 236px) * 1.38 + 40px); }
}

/* ═══ فاصلهٔ استاندارد بین بخش‌ها (رایانه و گوشی): نه خیلی زیاد، نه خیلی کم ═══ */
:root { --sec-y: 3rem; }
@media (max-width: 860px) { :root { --sec-y: 1.75rem; } }
.homefilter { padding-top: var(--sec-y); padding-bottom: calc(var(--sec-y) * .5); }
.gallery { padding-top: var(--sec-y); }
.gallery__head { margin-bottom: calc(var(--sec-y) * .6); }
.masonry__all { margin-top: calc(var(--sec-y) * .6); }
.hscroll { margin-top: var(--sec-y); }
.hscroll__pin { padding-block: calc(var(--sec-y) * .5) !important; }
.problem { padding: var(--sec-y) 0; }
.skygateway { padding: var(--sec-y) 1.25rem; }
.assistant { padding: var(--sec-y) 1.25rem; }
.trust { padding: var(--sec-y) 0; }
.foot { padding-top: calc(var(--sec-y) * 1.4); }
.cgroups { gap: var(--sec-y); }
/* ویترین در رایانه: ارتفاع به اندازهٔ محتوا (بدون فضای خالی بالا و پایین)، همچنان عنوان و بادبزن در یک صفحه */
@media (min-width: 861px) {
  .golden { min-height: 0; justify-content: flex-start; padding-bottom: var(--sec-y); }
}
@media (max-width: 860px) {
  .golden { padding-bottom: var(--sec-y); }
  .gallery { padding-top: var(--sec-y); }
}
@media (min-width: 861px) { .gallery__head { margin-bottom: calc(var(--sec-y) + 76px); } }
@media (min-width: 861px) {
  .deck__stage { height: min(50vh, 430px); }
  .golden { padding-bottom: calc(var(--sec-y) * .4); }
  .deck__hint { padding-top: .2rem; }
}

/* شکارهای بازار بدون پین (گوشی و دستگاه ضعیف): نوار باید از عرض صفحه پهن‌تر باشد تا با انگشت کشیده شود */
.hscroll.is-free .hscroll__track { width: auto; max-width: 100%; overflow-x: auto; overflow-y: hidden; transform: none !important;
  touch-action: pan-x pan-y; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll.is-free .hscroll__track::-webkit-scrollbar { display: none; }
.hscroll.is-free .hcard { scroll-snap-align: center; }
@media (max-width: 860px) {
  .hscroll__track { width: auto; max-width: 100%; touch-action: pan-x pan-y; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .hscroll__track .hcard { width: min(78vw, 320px); }
}

/* نورافکن فرصت‌ها در گوشی: کارت کوچک و چندتایی (برچسب حذف، رنگ دایرهٔ امتیاز همان رده را نشان می‌دهد) */
.hspots.is-mini .hspot { max-width: 38vw; gap: .35rem; padding: .22rem .26rem .22rem .5rem; }
.hspots.is-mini .hspot__img { width: 26px; height: 26px; border-width: 1.5px; }
.hspots.is-mini .hspot__score { width: 26px; height: 26px; font-size: .68rem; }
.hspots.is-mini .hspot__txt { line-height: 1.35; }
.hspots.is-mini .hspot__txt b { font-size: .68rem; }
.hspots.is-mini .hspot__txt small { font-size: .58rem; }
.hspots.is-mini .hspot__txt .lbadge { display: none; }
.hspots.is-mini .hspot__beam { height: 18px; }

/* اینترو: نام سایت زیر خانه (نه روی آن) در همهٔ اندازه‌ها */
.intro { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.intro__brand { position: relative; margin-top: 1.1rem; }

/* شب: چند ستارهٔ چشمک‌زن کنار ماه (فقط تم تیره) */
.hero__stars { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
[data-theme="dark"] .hero__stars { display: block; }
.hero__stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fdf8e6;
  box-shadow: 0 0 6px 1px rgba(253, 248, 230, .55); opacity: .85; animation: fmTwinkle 3.6s ease-in-out var(--d) infinite; }
.hero__stars i:nth-child(3n) { box-shadow: 0 0 9px 2px rgba(253, 248, 230, .6); }
@keyframes fmTwinkle { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .25; transform: scale(.6); } }
@media (max-width: 860px) { .hero__stars i { animation-duration: 4.4s; } }
@media (prefers-reduced-motion: reduce) { .hero__stars i { animation: none; } }

/* محدودیت بدون اشتراک: کارت‌های مات بقیهٔ نتیجه‌ها، شکارهای قفل، خط قیمت منصفانه */
.lockteaser { position: relative; margin: 1.4rem auto 0; max-width: 1100px; border-radius: 22px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, var(--gold) 12%); }
.lockteaser__ghosts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; padding: 1rem; filter: blur(6px); opacity: .55; }
.lockteaser__ghosts i { display: block; aspect-ratio: 4/3; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 40%, transparent), color-mix(in srgb, var(--ink) 18%, transparent)); }
.lockteaser__body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; text-align: center; padding: 1rem 1.2rem; }
.lockteaser__ico { font-size: 1.7rem; line-height: 1; }
.lockteaser__body b { font-size: 1.05rem; font-weight: 900; }
.lockteaser__body small { color: var(--ink-faint); font-size: .8rem; max-width: 34rem; line-height: 1.8; }
.lockteaser__body .btn { margin-top: .3rem; }
.cgroup .lockteaser { margin-top: 1rem; }
@media (max-width: 560px) {
  .lockteaser__ghosts { grid-template-columns: repeat(2, 1fr); }
  .lockteaser__body small { font-size: .72rem; }
}
.hcard.is-locked { position: relative; }
.hcard.is-locked img { filter: blur(9px) saturate(.7); transform: scale(1.04); }
.hcard__lock { position: absolute; inset: 0; bottom: auto; aspect-ratio: 16/10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; z-index: 2; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hcard__lock i { font-style: normal; font-size: 1.6rem; }
.hcard__lock b { font-size: .95rem !important; }
.hcard__lock .btn { text-shadow: none; padding: .5rem 1rem; font-size: .8rem; }
.ncard__lock { display: block; margin-top: .3rem; font-size: .72rem; color: var(--ink-faint); }
.ncard__lock i { font-style: normal; color: var(--gold); font-weight: 700; }

/* پنجرهٔ انتخاب شهر باز است: دکمهٔ دستیار و «بالا» پنهان تا دکمهٔ تأیید زیرشان نرود */
body.cpick-open .chat-fab, body.cpick-open .totop { opacity: 0; pointer-events: none; }
/* مشترک فعال: قفل‌ها پنهان */
html.is-sub .ncard__lock, html.is-sub .lockteaser { display: none !important; }
/* گوشی کوتاه: جملهٔ زیر پرسش هم بماند (کوچک‌تر) */
@media (max-width: 560px) and (max-height: 760px) {
  .hero__sub { display: block !important; font-size: .78rem !important; line-height: 1.8 !important; padding: .6rem .85rem !important; }
}

/* برچسب «دیده‌ای» روی کارت ملک‌هایی که قبلاً باز شده‌اند — پس‌زمینهٔ توپر تا روی عکس‌های روشن هم خوانا بماند */
.seen-tag { position: absolute; z-index: 4; top: 2.55rem; right: .5rem; padding: 3px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700;
  background: #18231d; color: #ffffff; border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 2px 8px rgba(0, 0, 0, .38); pointer-events: none; }
.seen-tag::before { content: "👁 "; font-size: .62rem; }
.seen-tag[hidden] { display: none !important; }

/* اینترو: خورشید پشت سقف خانه (کمی بیرون‌زده از بالای سقف)، نه کنار آن */
.intro__stage { position: relative; display: grid; place-items: center; }
.intro__stage .intro__sun-track { position: absolute; left: 63%; top: 14%; width: 0; height: 0; transform: none; z-index: 0; }
.intro__stage .intro__sun { width: calc(clamp(220px, 34vw, 330px) * .52); left: 0; top: 0; transform: none;
  margin-left: calc(clamp(220px, 34vw, 330px) * -.26); margin-top: calc(clamp(220px, 34vw, 330px) * -.26); }
.intro__stage .intro__build { position: relative; z-index: 1; }
.intro__build .ib-bg { fill: var(--bg); stroke: none; }

/* «مشاهدهٔ فرصت‌ها» به فیلترها می‌رود؛ زیر سربرگ ثابت نرود */
#homefilter { scroll-margin-top: calc(var(--nav-h, 64px) + 12px); }

/* صفحهٔ بارگذاری: انیمیشن با CSS، از لحظهٔ رسیدن HTML (بی‌نیاز از اسکریپت‌های ته صفحه)؛ تا بار کامل صفحه می‌ماند */
@keyframes fmSunRise { from { transform: translateY(46vh); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fmSunGlow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.16) drop-shadow(0 0 26px rgba(255, 120, 50, .55)); } }
@keyframes fmDraw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes fmFill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fmUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fmBar { 0% { width: 0; } 60% { width: 72%; } 100% { width: 92%; } }
.intro__stage .intro__sun { animation: fmSunRise 1.7s cubic-bezier(.2, .7, .2, 1) both, fmSunGlow 2.4s ease-in-out 1.7s infinite; }
.intro__build .ib-s { stroke-dasharray: 400; stroke-dashoffset: 400; animation: fmDraw 1.2s ease-in-out both; }
.intro__build .ib-s[data-s="roof"] { animation-delay: .25s; }
.intro__build .ib-s[data-s="body"] { animation-delay: .37s; }
.intro__build .ib-s[data-s="win1"] { animation-delay: .49s; }
.intro__build .ib-s[data-s="win2"] { animation-delay: .61s; }
.intro__build .ib-s[data-s="win3"] { animation-delay: .73s; }
.intro__build .ib-f { transform-box: fill-box; transform-origin: 50% 100%; animation: fmFill .5s cubic-bezier(.2, .8, .2, 1) both; }
.intro__build .ib-f[data-f="f1"] { animation-delay: .9s; }
.intro__build .ib-f[data-f="f2"] { animation-delay: 1.12s; }
.intro__build .ib-f[data-f="f3"] { animation-delay: 1.34s; }
.intro__brand { animation: fmUp .7s cubic-bezier(.2, .8, .2, 1) 1.3s both; }
.intro__bar i { animation: fmBar 6s cubic-bezier(.3, .6, .3, 1) .2s both; }
.intro.is-loaded .intro__bar i { animation: none; width: 100% !important; transition: width .25s ease-out; }
.intro__wait { position: absolute; bottom: calc(18% - 1.9rem); left: 50%; transform: translateX(-50%); font-size: .78rem; color: var(--ink-faint);
  opacity: 0; animation: fmUp .6s ease 3s both; }
.intro.is-loaded .intro__wait { display: none; }
html.intro-fast .intro * { animation-duration: .45s !important; animation-delay: 0s !important; }
html.intro-fast .intro .intro__bar i { animation-duration: 3s !important; }
html.intro-fast .intro .intro__wait { animation-delay: 1.2s !important; }
html.intro-fast .intro .intro__skip { display: none; }
@media (prefers-reduced-motion: reduce) { .intro * { animation-duration: .01s !important; animation-delay: 0s !important; } }
html.intro-fast .intro .intro__stage .intro__sun { animation: fmSunRise .45s cubic-bezier(.2,.7,.2,1) both, fmSunGlow 2.4s ease-in-out .45s infinite !important; }

/* صفحهٔ بارگذاری: خانهٔ پهن‌تر (خطوط بلندتر)، نام خواناتر، و در تم شب ماه به‌جای خورشید */
@keyframes fmDraw2 { from { stroke-dashoffset: 800; } to { stroke-dashoffset: 0; } }
.intro__build .ib-s { stroke-dasharray: 800; stroke-dashoffset: 800; animation-name: fmDraw2; }
.intro__word { font-size: clamp(2.1rem, 6.2vw, 3rem) !important; letter-spacing: -.01em; }
.intro__brand small { display: block; margin-top: .35rem; font-size: clamp(.9rem, 2.6vw, 1.02rem) !important; color: color-mix(in srgb, var(--ink) 78%, transparent) !important; }
@keyframes fmMoonGlow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.08) drop-shadow(0 0 22px rgba(235, 232, 218, .45)); } }
[data-theme="dark"] .intro__stage .intro__sun {
  background:
    radial-gradient(circle at 30% 38%, rgba(120, 118, 108, .35) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 58%, rgba(120, 118, 108, .3) 0 12%, transparent 13%),
    radial-gradient(circle at 55% 26%, rgba(120, 118, 108, .25) 0 6%, transparent 7%),
    radial-gradient(circle at 38% 34%, #fbfaf3, #dcd9ce 55%, #a8a59b);
  box-shadow: 0 0 70px 16px rgba(232, 230, 216, .22), 0 0 180px 70px rgba(232, 230, 216, .07);
  animation: fmSunRise 1.7s cubic-bezier(.2, .7, .2, 1) both, fmMoonGlow 3s ease-in-out 1.7s infinite; }
html.intro-fast[data-theme="dark"] .intro .intro__stage .intro__sun { animation: fmSunRise .45s cubic-bezier(.2,.7,.2,1) both, fmMoonGlow 3s ease-in-out .45s infinite !important; }

/* نورافکن: کارت از پنجرهٔ خانه بیرون می‌آید (پنجره چشمک، پرتو از پنجره، بزرگ شدن از نقطهٔ پنجره) */
.hspot { transform-origin: var(--bx, 50%) calc(100% + var(--beam, 46px)); translate: 0 0; scale: .1; opacity: 0;
  transition: opacity .3s ease, scale .8s cubic-bezier(.2, 1.3, .35, 1), border-color .3s, box-shadow .3s; will-change: scale, opacity; }
.hspot.is-on { scale: 1; opacity: 1; translate: 0 0; }
.hspot.is-out { scale: .1; opacity: 0; translate: 0 0; transition: opacity .35s ease .25s, scale .6s cubic-bezier(.6, 0, .85, .45); }
.hspot__beam { right: auto; left: var(--bx, 50%); translate: -50% 0; height: var(--beam, 46px); transform-origin: 50% 100%;
  background: linear-gradient(to top, color-mix(in srgb, var(--gold) 95%, #fff), color-mix(in srgb, var(--gold) 40%, transparent)); }
.hspot__beam::after { right: auto; left: 50%; translate: -50% 0; width: 7px; height: 7px; }
.hspot.is-on .hspot__beam::after { animation: hsPing 1.5s ease-out .5s infinite; }
@keyframes hsPing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 75%, transparent), 0 0 14px var(--gold); }
  100% { box-shadow: 0 0 0 12px transparent, 0 0 14px var(--gold); } }
.win-lights rect.is-calling { opacity: 1 !important; fill: #ffe7a0; animation: winCall .42s ease-in-out 3 !important; }
@keyframes winCall { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .hspot { scale: 1; transition: opacity .4s; } .hspot.is-out { scale: 1; } }
.hspots.is-mini .hspot__beam { height: var(--beam, 18px); }

/* نورافکن نسخهٔ ۲: کارت به اندازهٔ یک نقطه از دل پنجره بیرون می‌پرد و تا جای خودش پرواز می‌کند؛
   بعد از رسیدن، پرتو از کارت تا پنجره کشیده می‌شود؛ هنگام رفتن به همان پنجره برمی‌گردد */
.hspot { transform-origin: 50% 50%; translate: var(--fx, 0) var(--fy, 40px); scale: .06; opacity: 0;
  transition: translate .95s cubic-bezier(.18, .9, .25, 1.08), scale .95s cubic-bezier(.18, .9, .25, 1.12), opacity .18s linear, border-color .3s, box-shadow .3s; }
.hspot.is-on { translate: 0 0; scale: 1; opacity: 1; box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent), 0 18px 46px -14px rgba(0, 0, 0, .55), 0 0 26px -6px color-mix(in srgb, var(--gold) 60%, transparent); }
.hspot.is-out { translate: var(--fx, 0) var(--fy, 40px); scale: .06; opacity: 0;
  transition: translate .7s cubic-bezier(.6, 0, .8, .4), scale .7s cubic-bezier(.6, 0, .8, .4), opacity .25s linear .5s; }
.hspot .hspot__beam { scale: 1 0; transition: scale .4s ease-out; }
.hspot.is-on .hspot__beam { scale: 1 1; transition: scale .45s cubic-bezier(.3, .8, .3, 1) .75s; }
.hspot.is-out .hspot__beam { scale: 1 0; transition: scale .2s ease-in; }
.hspot.is-on .hspot__beam::after { animation: hsPing 1.4s ease-out 1.1s infinite; }
.win-lights rect.is-calling { filter: drop-shadow(0 0 6px #ffd56a) drop-shadow(0 0 14px rgba(255, 200, 80, .8)); }
@media (prefers-reduced-motion: reduce) { .hspot, .hspot.is-out { translate: 0 0; scale: 1; transition: opacity .4s; } .hspot .hspot__beam { scale: 1 1; } }

/* رادار کاهش قیمت */
.hscroll__head { gap: 1rem; }
.hscroll__more { flex: none; align-self: flex-end; font-weight: 800; font-size: .88rem; color: var(--gold); text-decoration: none; border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); border-radius: 999px; padding: .4rem .9rem; }
.hscroll__more:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.hcard__drop { position: absolute; top: .55rem; left: .55rem; z-index: 3; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 900; color: #fff; background: #d6452f; box-shadow: 0 6px 16px -6px rgba(214, 69, 47, .8); }
.hcard .cacts { top: 2.3rem; }
.hcard__prices { display: flex; align-items: baseline; gap: .55rem; margin-top: .25rem; flex-wrap: wrap; }
.hcard__prices s { color: #d6452f; font-size: .82rem; text-decoration-thickness: 2px; opacity: .9; }
.hcard__prices b { font-size: 1rem !important; color: var(--gold); }
.hcard__when { display: block; color: var(--ink-faint); font-size: .74rem; margin-top: .15rem; }
.hcard.is-locked .hcard__drop { z-index: 3; }
/* دکمهٔ «تازه ارزان‌شده‌ها» در صفحهٔ اول */
.btn--drop { background: linear-gradient(135deg, #ef6a4c, #d6452f); color: #fff; box-shadow: 0 8px 30px -10px rgba(214, 69, 47, .65); }
.btn--drop:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(214, 69, 47, .75); }
@media (max-width: 560px) {
  .hero__cta { display: grid !important; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .hero__cta .btn--sky { grid-column: 1 / -1; }
  .hero__cta .btn--gold, .hero__cta .btn--drop { padding-inline: .6rem !important; font-size: .86rem !important; }
  .hscroll__head { flex-direction: row !important; align-items: flex-end !important; justify-content: space-between; }
  .hscroll__more { font-size: .76rem; padding: .3rem .7rem; }
}
#drops { scroll-margin-top: calc(var(--nav-h, 64px) + 8px); }

/* «چرا ارزان‌تر است؟» روی کارت */
.why { display: block; margin-top: .3rem; font-size: .72rem; line-height: 1.7; color: var(--ink-faint); }
.why b { color: var(--ink); font-weight: 800; }
.why bdi { color: #d6452f; font-weight: 700; }
.why__warn { display: block; font-style: normal; color: #c98a12; font-weight: 700; }
.dcard .why { font-size: .66rem; margin-top: .15rem; }
.dcard .why__warn { display: none; }

/* آیکون‌های متحرک دکمه‌های صفحهٔ اول: شعلهٔ لرزان، ستارهٔ چشمک‌زن، کرهٔ چرخان (فقط transform/opacity، سبک) */
.hero__cta .btn { gap: .5rem; }
.bico { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; flex: none; }
.bico svg { width: 100%; height: 100%; overflow: visible; }
.bico--flame .f1 { fill: #ffd27a; transform-origin: 50% 90%; animation: flameA 1.1s ease-in-out infinite alternate; }
.bico--flame .f2 { fill: #fff3c4; transform-origin: 50% 100%; animation: flameB .7s ease-in-out infinite alternate; }
@keyframes flameA { 0% { transform: scale(1, 1) rotate(-3deg); opacity: .9; } 50% { transform: scale(.93, 1.08) rotate(2deg); } 100% { transform: scale(1.05, .95) rotate(4deg); opacity: 1; } }
@keyframes flameB { 0% { transform: scale(.9, 1.1) translateY(1px); } 100% { transform: scale(1.08, .9) translateY(-1px); } }
.bico--star .s1 { fill: #6b4a00; transform-origin: 50% 50%; animation: starA 2.4s ease-in-out infinite; }
.bico--star .s2 { fill: #fff6d2; transform-origin: 79% 21%; animation: starB 1.6s ease-in-out infinite; }
@keyframes starA { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(18deg); } }
@keyframes starB { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1.15); opacity: 1; } }
.bico--globe .g1 { transform-origin: 50% 50%; animation: globeA 2.6s linear infinite; }
.bico--globe .g2 { transform-origin: 50% 50%; animation: globeA 2.6s linear -1.3s infinite; }
@keyframes globeA { 0% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.05); opacity: .4; } 100% { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bico * { animation: none !important; } }


/* پیشنهاد نصب روی صفحهٔ گوشی */
.ihint { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1100; display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 18px;
  background: var(--panel, #0f1c15); color: var(--ink); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); box-shadow: 0 20px 50px -18px rgba(0,0,0,.6);
  transform: translateY(130%); transition: transform .45s cubic-bezier(.2, .9, .3, 1); }
.ihint.is-on { transform: none; }
.ihint img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.ihint b { display: block; font-size: .9rem; font-weight: 900; }
.ihint small { display: block; font-size: .72rem; color: var(--ink-faint); line-height: 1.7; }
.ihint__acts { display: grid; gap: .3rem; justify-items: center; flex: none; }
.ihint__acts .btn { padding: .45rem 1.1rem; font-size: .82rem; }
.ihint__later { background: none; border: 0; color: var(--ink-faint); font: inherit; font-size: .74rem; cursor: pointer; }

/* خورشید روز صفحهٔ اول: کمی متمایل به نارنجی و قرمزِ گرم (نه زرد مطلق) */
[data-theme="light"] .hero__sun-core {
  background: radial-gradient(circle at 50% 50%, #fffaf0 0%, #ffe9c4 34%, #ffc98a 60%, #ffa45c 82%, #f2783c 95%, #e0612c 100%);
  box-shadow:
    0 0 28px 10px rgba(255, 236, 214, .9),
    0 0 90px 40px rgba(255, 186, 130, .6),
    0 0 220px 110px rgba(255, 150, 90, .28),
    inset 0 0 26px rgba(230, 100, 45, .35);
}
[data-theme="light"] .hero__sun-core::before { background: radial-gradient(circle, rgba(255, 228, 200, .65) 0%, rgba(255, 190, 140, .26) 30%, rgba(255, 160, 110, .08) 52%, transparent 68%); }
[data-theme="light"] .hero__sun-core::after { background: repeating-conic-gradient(from 0deg, rgba(255, 220, 190, .16) 0deg 2.5deg, transparent 2.5deg 11deg); }

/* دکمهٔ «خبرم کن» و پنجرهٔ هشدارها */
.alertbtn { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin: .7rem auto 0; padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); color: var(--ink); font: inherit; font-weight: 800; font-size: .9rem; }
.alertbtn small { font-weight: 500; color: var(--ink-faint); font-size: .74rem; }
.alertbtn__bell { display: inline-block; transform-origin: 50% 10%; animation: bellRing 3.2s ease-in-out infinite; }
@keyframes bellRing { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(16deg); } 78% { transform: rotate(-14deg); } 82% { transform: rotate(10deg); } 86% { transform: rotate(-6deg); } 90% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .alertbtn__bell { animation: none; } }
.alrt__p { margin: 0; font-size: .82rem; color: var(--ink-faint); line-height: 1.9; }
.alrt__ok { margin: 0; font-weight: 800; color: var(--gold); }
.alrt__h { font-size: .86rem; margin-top: .3rem; }
.alrt__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.alrt__list li { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; }
.alrt__list button { background: none; border: 0; color: #d6452f; font: inherit; font-weight: 700; cursor: pointer; }
.alrt__link { text-align: center; }


/* ویترین: امتیاز زیر دکمه‌های قلب و اشتراک (پنهان نشود) و «چرا ارزان‌تر؟» روی زمینهٔ تیرهٔ کارت خوانا (نام عامل + درصد) */
.dcard__score { top: 50px; }
.dcard .why { color: rgba(255,255,255,.86); text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.dcard .why b { color: #fff; }
.dcard .why bdi { color: #ff9b85; }
/* خبرم کن: انتخاب کانال (بله فعال و پیش‌فرض، پیامک به‌زودی) */
.alrt__ch { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.alrt__c { display: flex; gap: .55rem; align-items: center; text-align: right; padding: .6rem .7rem; border-radius: 14px; border: 1.5px solid var(--line); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.alrt__c i { font-style: normal; font-size: 1.25rem; }
.alrt__c span { display: grid; gap: .1rem; min-width: 0; }
.alrt__c b { font-size: .86rem; }
.alrt__c small { font-size: .7rem; line-height: 1.6; color: var(--ink-faint); overflow-wrap: anywhere; }
.alrt__c.is-on { border-color: #2fbf71; background: rgba(47,191,113,.1); box-shadow: 0 0 0 3px rgba(47,191,113,.12); }
.alrt__c.is-on b::after { content: " ✓"; color: #2fbf71; }
.alrt__c.is-off { opacity: .55; }
.alrt__test { justify-self: start; background: none; border: 0; padding: .2rem 0; color: var(--gold); font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 420px) { .alrt__ch { grid-template-columns: 1fr; } }
/* بار دوم به بعد در همین نشست (و برگشت به صفحهٔ اول): صفحهٔ بارگذاری اصلاً نمی‌آید */
html.intro-fast .intro { display: none !important; }
/* ===== فیلتر پیشرفته: پنجرهٔ جمع‌وجور با اسکرول داخلی ===== */
.advf__toggle { gap: 9px; padding: 9px 18px 9px 14px; font-size: .92rem; }
.advf__toggle svg { width: 20px; height: 20px; padding: 3px; border-radius: 8px; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); box-sizing: content-box; }
[data-theme="dark"] .advf__toggle svg { color: var(--neon); background: color-mix(in srgb, var(--neon) 14%, transparent); }
.advf__top { display: none; }
.advf__bd { position: fixed; inset: 0; z-index: 1190; background: rgba(4,10,7,.55); backdrop-filter: blur(3px); }
.advf__bd[hidden] { display: none; }
.advf.is-sheet { position: fixed; z-index: 1200; inset: auto 0 0 0; margin: 0 auto; width: min(720px, 100%); max-height: min(84vh, 760px); display: flex; flex-direction: column;
  padding: 0; border-radius: 22px 22px 0 0; background: var(--panel); box-shadow: 0 -18px 60px rgba(0,0,0,.35); animation: advUp .28s cubic-bezier(.16,1,.3,1); }
@media (min-width: 861px) { .advf.is-sheet { inset: 50% auto auto 50%; transform: translate(-50%, -50%); border-radius: 22px; animation: advIn .22s ease-out; } }
@keyframes advUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes advIn { from { opacity: 0; } }
.advf.is-sheet .advf__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; border-bottom: 1px solid var(--line); flex: none; }
.advf.is-sheet .advf__top b { font-size: 1rem; }
.advf__x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.advf.is-sheet .advf__grid { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px 18px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.advf.is-sheet .advf__g--wide, .advf.is-sheet .advf__g--price { grid-column: 1 / -1; }
.advf.is-sheet .advf__h { font-size: .78rem; margin-bottom: 6px; }
.advf.is-sheet .advf__chips { gap: 6px; }
.advf.is-sheet .advf__chips button { padding: 5px 11px; font-size: .8rem; }
.advf.is-sheet .advf__range input { padding: 8px 10px; font-size: .85rem; border-radius: 10px; }
.advf.is-sheet .advf__foot { flex: none; margin: 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) { .advf.is-sheet .advf__grid { grid-template-columns: 1fr; } }
body.adv-open .chatfab, body.adv-open #chatFab, body.adv-open .totop { visibility: hidden; }
/* فهرست شهرها: اسکرول فقط داخل خودش */
.cpick, .cpick__list { overscroll-behavior: contain; }
/* ===== ماشین‌حساب قیمت منصفانه ===== */
.est { max-width: 1040px; margin: 36px auto 20px; padding: 0 16px; }
.est__card { padding: 24px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, #20976A 16%, transparent), transparent 60%), color-mix(in srgb, var(--panel) 94%, transparent); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.est__head { text-align: center; margin-bottom: 18px; }
.est__badge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #20976A; color: #fff; font-size: .74rem; font-weight: 800; }
.est__head h3 { margin: 10px 0 6px; font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
.est__head p { margin: 0 auto; max-width: 620px; font-size: .86rem; line-height: 1.9; color: var(--ink-faint); }
.est__form { display: grid; gap: 14px; }
.est__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.est__row--loc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.est__f { display: grid; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-faint); min-width: 0; }
.est__f[hidden] { display: none; }
.est__f select, .est__f input { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 700; outline: none; min-width: 0; }
.est__f select:focus, .est__f input:focus { border-color: var(--gold); }
[data-theme="dark"] .est__f select option { background: #12201a; color: #f1eee6; }
.est__kinds, .est__opts { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.est__kinds button, .est__opts button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .84rem; cursor: pointer; transition: all .2s; }
.est__kinds button.is-on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); font-weight: 800; }
.est__opts button.is-on { border-color: #20976A; background: rgba(32,151,106,.14); font-weight: 800; }
.est__opts button[hidden] { display: none; }
.est__go { justify-self: center; min-width: 240px; height: 48px; padding: 0 26px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #e9c45a, #c9952c); color: #16120a; font: inherit; font-weight: 900; font-size: .95rem; cursor: pointer; box-shadow: 0 8px 22px rgba(201,149,44,.3); }
.est__go:disabled { opacity: .6; cursor: progress; }
.est__res { margin-top: 18px; padding: 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, #20976A 40%, transparent); background: color-mix(in srgb, #20976A 7%, transparent); }
.est__out { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: stretch; }
.est__big { display: grid; gap: 4px; place-content: center; text-align: center; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, rgba(32,151,106,.22), rgba(32,151,106,.06)); border: 1px solid rgba(32,151,106,.45); }
.est__big span { font-size: .8rem; color: var(--ink-faint); }
.est__big b { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 900; color: #20976A; }
[data-theme="dark"] .est__big b { color: #5fd3a0; }
.est__big small { font-size: .78rem; color: var(--ink-faint); }
.est__facts { display: grid; gap: 8px; }
.est__facts div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.est__facts span { font-size: .76rem; color: var(--ink-faint); } .est__facts b { font-size: .98rem; }
.est__fx { margin-top: 12px; } .est__fx > b { font-size: .82rem; }
.est__fx ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.est__fx li { display: inline-flex; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; }
.est__fx li.up b { color: #20976A; } .est__fx li.down b { color: #CF4751; }
.est__note { margin: 12px 0 0; font-size: .76rem; line-height: 1.9; color: var(--ink-faint); }
.est__link { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--gold); }
.est__err { margin: 0; color: #CF4751; font-weight: 700; }
.est__wait { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.est__wait i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(127,127,127,.3); border-top-color: var(--gold); animation: estSpin .8s linear infinite; }
@keyframes estSpin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .est__card { padding: 18px 14px; } .est__row--loc { grid-template-columns: 1fr; } .est__out { grid-template-columns: 1fr; } .est__go { width: 100%; } }
.alrt__ch--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .alrt__ch--3 { grid-template-columns: 1fr; } }
/* ===== مجلهٔ فرصت ملک (صفحهٔ اول) ===== */
.mag { padding: 56px 16px 40px; }
.mag__in { max-width: 1120px; margin: 0 auto; }
.mag__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.mag__head .section-title { margin: 4px 0 0; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.mag__all { font-weight: 800; color: var(--gold); }
.mag__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mag__card { display: grid; gap: 8px; align-content: start; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 90%, transparent); color: var(--ink); text-decoration: none; transition: transform .25s, border-color .25s; }
.mag__card:hover { transform: translateY(-3px); border-color: var(--gold); }
.mag__card b { font-size: 1rem; line-height: 1.7; }
.mag__card span { font-size: .84rem; line-height: 1.9; color: var(--ink-faint); }
.mag__card i { font-style: normal; font-size: .82rem; font-weight: 800; color: var(--gold); }
.mag__guides { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mag__guides a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; color: var(--ink); text-decoration: none; }
.mag__guides a:hover { border-color: var(--gold); }
/* «دیده‌ای» پررنگ و واضح: نشان چشم روی کارت‌هایی که قبلاً باز کرده‌اید */
.seen-tag { top: 2.6rem; right: .5rem; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 9px; font-size: .72rem; font-weight: 800;
  background: rgba(10, 16, 13, .9) !important; color: #fff !important; border: 1px solid rgba(233, 185, 73, .9) !important; opacity: 1 !important; filter: none !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45); backdrop-filter: blur(4px); }
.seen-tag::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  color: #e9b949; }
.seen-tag { color: #fff !important; z-index: 7 !important; }
.seen-tag::before { background: #e9b949; }
/* ===== ویدیوی معرفی صفحهٔ اول ===== */
.vid { padding: 64px 16px; }
.vid__in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 32px; align-items: center; }
.vid__txt .section-title { margin: 6px 0 10px; }
.vid__txt .section-sub { margin: 0; line-height: 2; }
.vid__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.vid__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background: radial-gradient(120% 120% at 70% 20%, color-mix(in srgb, #20976A 28%, transparent), transparent 60%), #0b1510; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.vid__frame iframe, .vid__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.vid__soon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: #f1eee6; }
.vid__soon i { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 28px; background: rgba(233,185,73,.9); color: #16120a; box-shadow: 0 0 0 10px rgba(233,185,73,.15); }
.vid__soon b { font-size: 1rem; }
@media (max-width: 860px) { .vid { padding: 44px 14px; } .vid__in { grid-template-columns: 1fr; gap: 18px; } .vid__frame { border-radius: 16px; } .vid__txt { text-align: center; } .vid__acts { justify-content: center; } }
/* ===== صفحهٔ مقالهٔ تعاملی (آسانسور ارزش) ===== */
.art-page { padding-top: 96px; }
.art { max-width: 860px; margin: 0 auto; padding: 0 18px; line-height: 2.1; }
.art__crumbs { font-size: .82rem; color: var(--ink-faint); margin-bottom: 10px; } .art__crumbs a { color: inherit; }
.art__h { font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.6; margin: 0 0 12px; }
.art__lead { font-size: 1rem; color: var(--ink-faint); }
.art h2 { font-size: 1.25rem; margin: 30px 0 10px; }
.art ul { padding-inline-start: 22px; } .art li { margin: 6px 0; }
.art__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 40px; }
.vid__box { display: grid; gap: 10px; min-width: 0; }
.vid__fs { justify-self: end; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: transparent; color: inherit; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; cursor: pointer; }
.vid__fs:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.vid__frame:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; }
@media (max-width: 860px) { .vid__fs { justify-self: center; } }

/* ویدیوی موشن مقاله (پیوند آپارات یا یوتیوب از پنل) */
.art-video { margin: 22px auto 26px; max-width: 880px; }
.art-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid rgba(213,166,38,.35); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.art-video__frame iframe, .art-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.art-video figcaption { margin-top: 8px; font-size: .85rem; opacity: .7; text-align: center; }

/* «خبرم کن»: وضعیت اتصال کانال و برچسب کانال هر هشدار */
.alrt__st { display: grid; gap: .15rem; padding: .7rem .85rem; border-radius: 14px; border: 1.5px dashed var(--line); font-weight: 800; font-size: .9rem; }
.alrt__st small { font-weight: 500; font-size: .76rem; color: var(--ink-faint); line-height: 1.8; }
.alrt__st.is-ok { border-style: solid; border-color: #2fbf71; background: rgba(47,191,113,.1); color: #1f9a58; }
.alrt__tag { font-style: normal; font-size: .72rem; font-weight: 800; padding: .1rem .45rem; margin-inline-end: .45rem; border-radius: 999px; background: rgba(127,127,127,.12); white-space: nowrap; }
@media (max-width: 420px) { .alrt__ch { grid-template-columns: 1fr 1fr; } }

/* «خبرم کن»: وضعیت کلی، مرحله‌ها و هشدار چشمک‌زن وقتی هنوز هشداری ثبت نشده */
.alrt__banner { display: grid; gap: .2rem; padding: .75rem .9rem; border-radius: 14px; font-weight: 900; font-size: .92rem; }
.alrt__banner small { font-weight: 600; font-size: .78rem; line-height: 1.8; }
.alrt__banner.is-ok { background: rgba(47,191,113,.12); border: 1.5px solid #2fbf71; color: #1f9a58; }
.alrt__banner.is-warn { background: rgba(232,150,30,.13); border: 1.5px solid #e8961e; color: #b86e05; animation: alrtBlink 1.6s ease-in-out infinite; }
@keyframes alrtBlink { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,150,30,.0); } 50% { box-shadow: 0 0 0 5px rgba(232,150,30,.28); } }
.alrt__trial { margin: 0; font-size: .8rem; font-weight: 700; color: var(--gold); }
.alrt__step { display: grid; gap: .15rem; padding: .6rem .8rem; border-radius: 12px; border: 1.5px solid var(--line); font-size: .82rem; }
.alrt__step b { font-size: .86rem; }
.alrt__step span { color: var(--ink-faint); line-height: 1.8; }
.alrt__step.is-done { border-color: #2fbf71; }
.alrt__step.is-done b::after { content: " ✓"; color: #2fbf71; }
.alrt__step.is-todo { border-color: #e8961e; background: rgba(232,150,30,.08); animation: alrtBlink 1.6s ease-in-out infinite; }
.alrt__step.is-todo span { color: inherit; font-weight: 700; }
.alrt__step.is-wait { opacity: .6; border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .alrt__banner.is-warn, .alrt__step.is-todo { animation: none; } }

/* «خبرم کن» ساده: یک جملهٔ اصلی، یک دکمهٔ اصلی */
.alrt__lead { margin: 0; font-size: .98rem; font-weight: 800; line-height: 2; }
.alrt__blink { color: #b86e05; padding: .7rem .85rem; border-radius: 14px; background: rgba(232,150,30,.12); border: 1.5px solid #e8961e; animation: alrtBlink 1.6s ease-in-out infinite; }
.alrt__go { min-height: 52px; font-size: 1rem; animation: alrtBlink 1.6s ease-in-out infinite; }
.alrt__seg { display: flex; gap: .4rem; }
.alrt__seg button { flex: 1; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.alrt__seg button.is-on { border-color: #2fbf71; background: rgba(47,191,113,.12); }
@media (prefers-reduced-motion: reduce) { .alrt__blink, .alrt__go { animation: none; } }
.alrt__list li > span { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; }
.alrt__list .alrt__tag { margin: 0; }
.vid__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; width: 100%; border: 0; cursor: pointer; color: #f1eee6; font: inherit; background: radial-gradient(circle at 50% 45%, #1d3328, #0b1510); }
.vid__play i { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 28px; background: rgba(233,185,73,.9); color: #16120a; box-shadow: 0 0 0 10px rgba(233,185,73,.15); transition: transform .25s; }
.vid__play b { font-size: 1rem; }
.vid__play:hover i { transform: scale(1.08); }
