/* سنفینو — رابط کاربری (RTL، Vazirmatn) */
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #0b2a3c; --ink-2: #163f57; --text: #1b2733; --muted: #5d6b78; --line: #e3e7eb; --bg: #f5f7f8; --card: #fff;
  --brand: #0d7a6c; --brand-2: #0a6257; --gold: #f2b544; --gold-ink: #6b4a00; --red: #b3261e; --green: #1e7b45;
  --r: 14px; --shadow: 0 1px 2px rgba(11,42,60,.06), 0 8px 24px -12px rgba(11,42,60,.18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.75 Vazirmatn, Tahoma, sans-serif; color: var(--text); background: var(--bg); font-feature-settings: "ss01"; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.4; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: 1.7rem; font-weight: 800; } h2 { font-size: 1.25rem; font-weight: 800; } h3 { font-size: 1.05rem; font-weight: 700; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin: 40px auto; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

/* سربرگ */
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; } .brand:hover { text-decoration: none; }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.brand__mark svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.brand b { display: block; font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; } .brand small { display: block; font-size: .72rem; color: #b8cad6; margin-top: -4px; }
.top__nav { display: flex; align-items: center; gap: 18px; } .top__nav > a:not(.btn) { color: #d6e2ea; font-size: .92rem; }
@media (max-width: 640px) { .top__nav > a:not(.btn) { display: none; } .brand small { display: none; } }
.notice { background: #fff6dd; color: var(--gold-ink); font-size: .9rem; padding: 8px 0; border-bottom: 1px solid #f3e1a8; }

/* دکمه‌ها و فرم */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font: 700 .95rem/1 Vazirmatn, Tahoma, sans-serif; padding: 12px 18px; cursor: pointer; transition: background .15s, transform .1s; text-decoration: none !important; }
.btn:hover { background: var(--brand-2); } .btn:active { transform: translateY(1px); } .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); } .btn--ghost:hover { background: #eef2f4; }
.top .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); } .top .btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--sm { padding: 8px 12px; font-size: .85rem; } .btn--lg { padding: 15px 22px; font-size: 1.02rem; } .btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.fld { display: block; margin-bottom: 12px; } .fld > span { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=tel], input[type=search], input[type=number], input[type=password], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,122,108,.15); }
input.code { font-size: 1.4rem; letter-spacing: .4em; text-align: center; }
.flashes { margin-top: 16px; } .flash { padding: 10px 14px; border-radius: 10px; background: #eaf3fb; color: #12456b; margin-bottom: 10px; font-size: .92rem; }
.flash--ok { background: #e7f5ec; color: var(--green); } .flash--err { background: #fdecea; color: var(--red); }

/* صفحهٔ اصلی */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1d5a73 0%, transparent 60%), linear-gradient(180deg, var(--ink) 0%, #0f3348 100%); color: #e8f0f5; padding: 48px 0 0; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-bottom: 40px; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--gold); background: rgba(242,181,68,.12); padding: 4px 10px; border-radius: 99px; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__copy p { color: #bcd0dc; font-size: 1.02rem; max-width: 34em; }
.finder { background: #fff; color: var(--text); border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); position: relative; }
.finder__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld--trade { position: relative; }
.suggest { position: absolute; inset-inline: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 20; max-height: 280px; overflow: auto; }
.suggest li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.suggest li:hover, .suggest li.is-on { background: #eef6f4; } .suggest small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
.chip { font: inherit; font-size: .82rem; border: 1px solid var(--line); background: #f7f9fa; color: var(--ink-2); padding: 4px 10px; border-radius: 99px; cursor: pointer; }
.chip:hover, .chip.is-on { border-color: var(--brand); color: var(--brand); background: #eef6f4; }
.finder__hint { font-size: .8rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.1); }
.stats div { padding: 18px 8px; text-align: center; } .stats div + div { border-inline-start: 1px solid rgba(255,255,255,.1); }
.stats b { display: block; font-size: 1.5rem; font-weight: 900; color: #fff; } .stats span { font-size: .8rem; color: #9fb7c5; }
@media (max-width: 860px) { .hero__in { grid-template-columns: 1fr; gap: 24px; } .stats { grid-template-columns: repeat(2, 1fr); } .stats div:nth-child(3) { border-inline-start: 0; } }
@media (max-width: 520px) { .finder__row { grid-template-columns: 1fr; gap: 0; } .finder { padding: 16px; } }
.sec { padding: 56px 0; } .sec--alt { background: #fff; border-block: 1px solid var(--line); }
.sec__title { font-size: 1.5rem; font-weight: 900; margin-bottom: 20px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps article { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--gold); font-weight: 900; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; } .lead { font-size: 1.05rem; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; } .ticks li { padding: 6px 28px 6px 0; position: relative; }
.ticks li::before { content: ""; position: absolute; right: 0; top: 13px; width: 16px; height: 9px; border: solid var(--brand); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.sample { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.sample__row { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: .88rem; align-items: center; }
.sample__row:first-child { box-shadow: inset 3px 0 0 var(--gold); } .sample p { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 520px) { .sample__row { grid-template-columns: 1fr 1fr; } }

/* نتایج */
.rhead { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0 14px; }
.crumbs { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .crumbs > * + *::before { content: "‹"; margin-inline-end: 6px; color: #b5c0c8; }
.rhead__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.rhead__sum { color: var(--muted); margin: 0; font-size: .92rem; } .rhead__sum b { color: var(--ink); }
.buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.buy__price { display: flex; flex-direction: column; font-weight: 900; font-size: 1.25rem; color: var(--ink); line-height: 1.3; } .buy__price small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.pending { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #fff7e3; color: var(--gold-ink); font-size: .9rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pending--new { background: #e9f4f1; color: var(--brand-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(242,181,68,.6); animation: ping 1.6s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(242,181,68,0); } 100% { box-shadow: 0 0 0 0 rgba(242,181,68,0); } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.filters input, .filters select { width: auto; flex: 1 1 150px; padding: 8px 10px; font-size: .9rem; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; margin-inline-start: auto; }
.seg a { padding: 7px 14px; font-size: .88rem; color: var(--muted); } .seg a.is-on { background: var(--ink); color: #fff; } .seg a:hover { text-decoration: none; }
.results { padding: 20px 0 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 12px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card--free { border-color: #f0d79a; box-shadow: inset 0 3px 0 var(--gold), var(--shadow); } .card--dim { opacity: .72; }
.card header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.card__name { font-weight: 800; color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
.card__meta { color: var(--muted); font-size: .85rem; margin: 2px 0 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.trust { font-size: .75rem; color: var(--green); background: #e7f5ec; border-radius: 99px; padding: 1px 8px; }
.badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.bdg { font-size: .7rem; font-weight: 700; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.bdg--free { background: #fff1cf; color: var(--gold-ink); } .bdg--new { background: var(--brand); color: #fff; } .bdg--own { background: #e3eef8; color: #12456b; } .bdg--warn { background: #fdecea; color: var(--red); }
.card__f { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; flex: 1; }
.card__f li { display: flex; align-items: center; gap: 8px; font-size: .9rem; min-width: 0; }
.card__f li > span, .card__f li > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__f svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__f .is-masked { color: #8a96a1; } .card__f .is-masked svg { stroke: #a9b4bd; }
.card footer { display: flex; align-items: center; gap: 14px; border-top: 1px dashed var(--line); padding-top: 8px; font-size: .85rem; }
.card footer .lnk:last-child { margin-inline-start: auto; }
.q { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.q i { width: 44px; height: 6px; border-radius: 9px; background: #e8edf0; position: relative; overflow: hidden; }
.q i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--q); background: linear-gradient(90deg, var(--gold), var(--brand)); border-radius: 9px; }
[dir=rtl] .q i::after { inset: 0 0 0 auto; }
.empty { background: #fff; border: 1px dashed #c8d2d9; border-radius: var(--r); padding: 36px; text-align: center; }
.pager { display: flex; justify-content: center; gap: 16px; align-items: center; margin-top: 24px; }
.pager a { padding: 8px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.map { height: 560px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background: #e8eef1; } .map--sm { height: 260px; margin-bottom: 10px; }

/* جزئیات */
.detail { padding: 22px 0 48px; } .detail__grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .detail__grid { grid-template-columns: 1fr; } }
.kv { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 14px 0 20px; font-size: .9rem; }
.kv th, .kv td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; } .kv thead th { background: #f4f7f8; color: var(--muted); font-size: .78rem; }
.kv tbody th { color: var(--ink); white-space: nowrap; } .kv .is-masked td:nth-child(2) { color: #8a96a1; } .kv .is-alt { background: #fbfcfc; }
@media (max-width: 640px) { .kv thead { display: none; } .kv tr { display: grid; grid-template-columns: 1fr 1fr; } .kv th, .kv td { border: 0; padding: 6px 12px; } .kv tbody tr { border-bottom: 1px solid var(--line); } }
.st { font-weight: 700; } .st--active { color: var(--green); } .st--maybe_inactive { color: var(--gold-ink); } .st--closed { color: var(--red); }
.hours { list-style: none; padding: 0; margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.hours li { display: flex; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; } .hours li:last-child { border: 0; }
.srcs { padding-inline-start: 20px; }
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 14px 0; }
.report summary { cursor: pointer; font-weight: 700; color: var(--red); } .report form { margin-top: 10px; }

/* پنل‌ها */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.acc__head { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 14px; }
.acc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; } @media (max-width: 860px) { .acc { grid-template-columns: 1fr; } }
.big { font-size: 1.6rem; font-weight: 900; color: var(--ink); margin: 0; }
.exp { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.exp small { display: block; color: var(--muted); font-size: .8rem; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 12px; } .tbl td, .tbl th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: start; }
.invoice dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 16px 0; } .invoice dt { color: var(--muted); } .invoice dd { margin: 0; font-weight: 700; }
.prose { line-height: 2; } .prose li { margin-bottom: 8px; }
.resend { margin-top: 10px; display: flex; gap: 8px; }

/* پاورقی */
.foot { background: var(--ink); color: #b8cad6; padding: 32px 0; font-size: .88rem; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; } .foot b { color: #fff; } .foot p { margin: 4px 0 0; }
.foot nav { display: flex; flex-direction: column; gap: 4px; } .foot a { color: #d6e2ea; }
.foot__credit { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; font-size: .8rem; }
@media (max-width: 640px) { .foot__in { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
