/* Backorder Platform storefront page (docs/storefront.md). Same-origin assets only. */
@font-face { font-family: "IRANSans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/IRANSansWeb.woff") format("woff"); }
@font-face { font-family: "IRANSans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/IRANSansWeb_Medium.woff") format("woff"); }
@font-face { font-family: "IRANSans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/IRANSansWeb_Bold.woff") format("woff"); }

/*
 * Light canvas, navy ink, one saffron action. Colour roles:
 * --ink: text and brand surfaces (header mark, footer, active chips);
 * --saffron: the primary action only (submit, buy, mobile bar);
 * --teal: links and focus only; --ok / --warn / --err: states only.
 */
:root {
  --ink: #13233f;
  --ink-2: #2b3d5e;
  --slate: #536079;
  --mute: #7a869c;
  --saffron: #f0a90f;
  --saffron-hover: #d99600;
  --saffron-ink: #1d1500;
  --teal: #0b6f78;
  --canvas: #f5f6f8;
  --paper: #ffffff;
  --line: #e2e6ed;
  --line-2: #cdd4df;
  --ok: #157347;
  --ok-bg: #e7f4ec;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
  --err: #b42318;
  --err-bg: #fdecea;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(19, 35, 63, .05), 0 8px 24px rgba(19, 35, 63, .07);
  --shadow-lg: 0 2px 4px rgba(19, 35, 63, .05), 0 20px 48px rgba(19, 35, 63, .12);
  --font: "IRANSans", Tahoma, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.85; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--slate); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 30; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }

/* ---- site header -------------------------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { background: var(--canvas); color: var(--ink); }
.site-nav a[aria-current] { color: var(--ink); font-weight: 700; background: var(--canvas); }
.site-nav .nav-talk { border: 1px solid var(--line-2); }
@media (max-width: 640px) {
  .site-head .wrap { min-height: 56px; }
  .brand-text { display: none; }
  .site-nav a { padding: 0 10px; font-size: 14px; }
}

/* ---- buttons and forms -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.btn-primary { background: var(--saffron); color: var(--saffron-ink); width: 100%; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-primary:hover { background: var(--saffron-hover); color: var(--saffron-ink); }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper);
  font: inherit; font-size: 16px; color: var(--ink);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input[dir="ltr"] { text-align: right; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 111, 120, .18); }
.field input[readonly] { background: var(--canvas); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .hint { margin: 6px 0 0; font-size: 14px; color: var(--slate); line-height: 1.7; }
/* the typed amount read back in words, so a missing or extra zero is seen at once */
.field .hint.in-words { font-size: 15px; font-weight: 600; color: var(--ink); }
.toman { color: #c62828; font-weight: 700; }
.field .error { margin: 6px 0 0; font-size: 14px; color: var(--err); font-weight: 600; }
.hp { position: absolute; inset-inline-start: -9999px; }
.notice { border-radius: 10px; padding: 14px 16px; background: var(--ok-bg); color: #0f5132; font-weight: 600; margin: 0; }
.notice.err { background: var(--err-bg); color: var(--err); margin-bottom: 16px; }

/* ---- cards ---------------------------------------------------------------------------------------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.panel h2, .sec-title { margin: 0 0 14px; font-size: 20px; line-height: 1.5; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 500; font-size: 15px; white-space: nowrap; }

/* ---- the sale page: one grid, the offer card beside everything ------------------------------------ */
.sale { display: grid; gap: 24px; padding-block: 32px 64px; }
.sale > * { min-width: 0; }
@media (min-width: 980px) {
  .sale { grid-template-columns: minmax(0, 1fr) 384px; gap: 28px 40px; align-items: start; }
  .sale .aside { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 88px; }
  .sale .intro { grid-column: 1; grid-row: 1; }
  .sale .trust-row { grid-column: 1; grid-row: 2; }
  .sale .main { grid-column: 1; grid-row: 3; }
}
.main { display: grid; gap: 20px; }

/* the name, shown as the address a visitor would type */
.intro { padding-top: 8px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--slate); font-size: 15px; font-weight: 500; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.address {
  display: flex; align-items: center; gap: 12px; direction: ltr;
  width: fit-content; max-width: 100%; padding: 12px 26px 12px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.address .icon { width: 24px; height: 24px; color: var(--ok); stroke-width: 2.2; }
.address .scheme { color: var(--mute); font-size: clamp(18px, 2.6vw, 28px); font-weight: 500; }
.address h1, .address .host { margin: 0; font-size: clamp(32px, 6vw, 64px); line-height: 1.12; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.say { margin: 22px 0 0; font-size: 17px; color: var(--slate); }
.say strong { color: var(--ink); font-size: 21px; }
.meaning { margin: 6px 0 0; color: var(--ink-2); max-width: 62ch; }
.meaning.alt { color: var(--warn); }
.headline { margin: 20px 0 0; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.55; font-weight: 700; max-width: 36ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags a, .tags span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; text-decoration: none; }
.tags a:hover { border-color: var(--ink); color: var(--ink); }
.state-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 14px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: 14px; }
.state-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state-badge.is-sold { background: var(--ok-bg); color: var(--ok); }
.bundle-line { margin: 16px 0 0; padding: 12px 16px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r); max-width: 64ch; }

/* the promises a buyer looks for before typing a number */
.trust-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.trust-row li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; line-height: 1.7; color: var(--slate); }
.trust-row strong { display: block; color: var(--ink); font-size: 15px; }
.trust-row .icon { color: var(--ok); margin-top: 3px; }

/* ---- offer card --------------------------------------------------------------------------------- */
.offer { border: 0; box-shadow: var(--shadow-lg); padding: 26px; }
.offer .price-label { margin: 0; color: var(--slate); font-size: 14px; font-weight: 500; }
.offer .price { margin: 0 0 4px; font-size: 32px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; }
.offer .price-note { margin: 0 0 18px; color: var(--slate); font-size: 14px; line-height: 1.75; }
.kind { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 16px; padding: 4px; border: 0; background: var(--canvas); border-radius: 12px; }
.kind label { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--slate); }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind label:has(input:checked) { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(19, 35, 63, .14); }
.kind label:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.min-offer { margin: 6px 0 4px; font-size: 15px; color: var(--ink); }
.min-offer strong { color: #c62828; }
.trust { display: flex; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--slate); line-height: 1.7; }
.trust .icon { color: var(--ok); width: 18px; height: 18px; margin-top: 2px; }
/* talking to us instead of typing a number */
.talk { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.talk-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.talk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.talk a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.talk a:hover { border-color: var(--teal); color: var(--ink); }
.talk .icon { color: var(--teal); }
.talk small { display: block; font-size: 12px; color: var(--slate); line-height: 1.3; }
.talk .ltr { font-weight: 700; line-height: 1.4; text-align: start; }
.talk-hours { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; font-size: 13px; color: var(--slate); }
.talk-hours .icon { width: 16px; height: 16px; }

/* ---- uses ------------------------------------------------------------------------------------- */
.uses { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .uses { grid-template-columns: 1fr 1fr; } }
.uses li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--canvas); border-radius: var(--r); }
.uses .icon { color: var(--ok); margin-top: 4px; }
.not-for { margin: 18px 0 0; padding: 14px 16px; border-inline-start: 3px solid var(--line-2); color: var(--slate); }
.not-for strong { color: var(--ink); }
.brand-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: #5c3d00; }

/* ---- the domain's record ------------------------------------------------------------------------ */
.deed { padding: 0; overflow: hidden; }
.deed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 28px; background: var(--ink); color: #fff; }
.deed-head h2 { margin: 0; font-size: 18px; color: #fff; }
.deed-head .ltr { color: #c9d3e3; font-size: 15px; font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; }
.facts div { padding: 16px 28px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.facts dt { color: var(--slate); font-size: 13px; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }

/* ---- steps ------------------------------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.steps li { counter-increment: step; position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before {
  content: counter(step, persian);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.steps strong { display: block; margin-bottom: 2px; }
.steps .muted { font-size: 15px; line-height: 1.75; }

/* ---- faq --------------------------------------------------------------------------------------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--slate); transition: transform 200ms ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0 0 16px; color: var(--slate); }

/* ---- related ----------------------------------------------------------------------------------- */
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.related li a { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); min-height: 44px; }
.related li a:hover { border-color: var(--ink); }
.related .name { font-weight: 700; text-align: end; }
.related .tag { color: var(--slate); font-size: 14px; }
.all-link { margin: 16px 0 0; }
.all-link .btn { width: 100%; }

/* ---- page head (lists, buyer pages) -------------------------------------------------------------- */
.page-head { padding-block: 40px 8px; }
.page-head .lead { margin: 0 0 6px; color: var(--slate); font-size: 15px; font-weight: 500; }
.list-title { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.3; font-weight: 700; }
.page-head .sub { margin: 8px 0 0; color: var(--slate); max-width: 60ch; }
.page-head .address { margin-top: 4px; padding: 8px 22px 8px 14px; box-shadow: none; }
.page-head .address .host { font-size: clamp(24px, 4vw, 36px); }
.page-head .address .icon { width: 20px; height: 20px; }
.page-head .meaning { margin-top: 10px; }
.page-head .state-badge { margin-top: 12px; }

/* ---- all-domains page ------------------------------------------------------------------------ */
.list-page { padding-bottom: 56px; display: grid; gap: 20px; }
.list-page > *, .filters { min-width: 0; }
.filters { padding: 20px 24px; }
.search { position: relative; }
.search .icon { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--slate); width: 22px; height: 22px; }
.search input {
  width: 100%; min-height: 56px; padding-block: 10px; padding-inline: 50px 16px;
  border: 1px solid var(--line-2); border-radius: 12px; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper);
}
.search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 111, 120, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 640px) {
  /* one swipeable row on phones so the results stay near the top */
  .chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; background: var(--paper);
}
.chip span { color: var(--mute); font-size: 13px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on span { color: #c9d3e3; }
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result-count { margin: 0; color: var(--slate); font-size: 14px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.cards a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 20px 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); color: var(--ink); text-decoration: none; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.cards a:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.cards .name { font-size: 21px; font-weight: 700; line-height: 1.4; text-align: end; overflow-wrap: anywhere; }
.cards .say { color: var(--slate); font-size: 15px; }
.cards .cat { color: var(--teal); font-size: 13px; font-weight: 500; }
.cards .line { color: var(--slate); font-size: 14px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards .flags { display: flex; flex-wrap: wrap; gap: 6px; }
.cards .brand-flag, .cards .bundle-flag, .cards .state-flag { font-size: 12px; border-radius: 999px; padding: 0 10px; }
.cards .brand-flag { color: var(--warn); background: var(--warn-bg); }
.cards .bundle-flag { color: var(--ink); background: #e3eef0; }
.cards .state-flag { color: var(--warn); background: var(--warn-bg); }
.cards .tag { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: auto -20px 0; padding: 12px 20px; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.cards .tag::after { content: "←"; color: var(--mute); font-weight: 400; }
.cards a:hover .tag::after { color: var(--ink); }
.empty { margin: 0; padding: 28px; text-align: center; color: var(--slate); background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }

/* the two lists of the site: for sale and sold */
.tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 10px 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--slate); font-weight: 500; text-decoration: none; }
.tab span { display: inline-block; margin-inline-start: 4px; padding: 0 8px; border-radius: 999px; background: var(--canvas); font-size: 13px; }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.tab.is-on span { background: var(--ink); color: #fff; }
.filters .tabs:last-child { margin-bottom: 0; }

/* ---- site footer --------------------------------------------------------------------------------- */
.site-foot { margin-top: 24px; background: var(--ink); color: #c9d3e3; padding-block: 40px 32px; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); gap: 48px; } }
.foot-brand .brand { color: #fff; }
.foot-brand .brand-mark { background: #fff; color: var(--ink); }
.foot-brand p { margin: 12px 0 0; font-size: 15px; max-width: 42ch; }
.foot-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.foot-title { margin: 0 0 12px; color: #fff; font-weight: 700; font-size: 16px; }
.foot-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.foot-contacts a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; text-decoration: none; }
.foot-contacts a:hover { border-color: var(--saffron); color: #fff; }
.foot-contacts .icon { color: var(--saffron); }
.foot-contacts small { display: block; color: #a9b6cb; font-size: 12px; line-height: 1.3; }
.foot-contacts .ltr { font-weight: 700; line-height: 1.4; text-align: start; }
.foot-hours { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; font-size: 14px; }
.foot-hours .icon { width: 16px; height: 16px; }
.foot-note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #a9b6cb; }

/* ---- mobile action bar ---------------------------------------------------------------------------- */
.foot-space { height: 80px; }
@media (min-width: 980px) { .foot-space { display: none; } }
.bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(19, 35, 63, .08);
  transition: transform 200ms ease;
}
.bar .bar-price { flex: 1; min-width: 0; font-weight: 700; line-height: 1.3; }
.bar .bar-price small { display: block; font-weight: 500; color: var(--slate); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.bar .btn-primary { width: auto; }
.bar.is-hidden { transform: translateY(110%); }
@media (min-width: 980px) { .bar { display: none; } }

@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .panel { padding: 20px; }
  .offer { padding: 20px; }
  .deed-head, .facts div { padding-inline: 20px; }
  .address { padding: 10px 18px 10px 12px; gap: 8px; }
  .address .icon { width: 20px; height: 20px; }
  .address .scheme { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- buyer pages: the code, the conversation and the deal ------------------------------------------ */
.verify-wrap { max-width: 560px; }
.verify-wrap:not(.page-head) { padding-block: 8px 56px; }
.verify h2 { margin: 0 0 8px; font-size: 21px; }
.verify-form { display: grid; gap: 14px; margin: 18px 0 10px; }
.verify-form input { font-size: 26px; letter-spacing: .3em; text-align: center; }
.verify-resend { margin: 0 0 8px; }
.verify-resend button[disabled] { opacity: .55; cursor: default; }
.verify .hint { margin: 8px 0 0; font-size: 14px; color: var(--slate); }
.save-box { border: 1px solid #f1d58c; background: #fffaf0; border-radius: var(--r-lg); padding: 18px 20px; }
.save-box h2 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.save-box p { margin: 0 0 8px; }
.save-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; overflow-wrap: anywhere; }
.save-link .btn { min-height: 40px; }
.chat-layout { padding-block: 8px 56px; display: grid; gap: 20px; }
.chat-layout > * { min-width: 0; }
@media (min-width: 980px) {
  .chat-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; }
  .chat-side { position: sticky; top: 88px; }
}
.chat-main { display: grid; gap: 16px; }
.chat-side { display: grid; gap: 16px; }
.chat-side .panel { padding: 22px; }
.chat-side .talk { margin: 0; padding: 0; border: 0; }
.thread { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; white-space: pre-line; }
.msg p { margin: 0; }
.msg a.msg-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.msg a.msg-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.msg .who { display: block; font-size: 12px; color: var(--slate); margin-bottom: 2px; }
.msg.in { justify-self: start; background: #e6f1f2; border-start-start-radius: 4px; }
.msg.out { justify-self: end; background: var(--ink); color: #fff; border-start-end-radius: 4px; }
.msg.out .who { color: #c9d3e3; }
.msg.note { justify-self: center; background: var(--canvas); color: var(--slate); font-size: 15px; }
.msg.event { justify-self: center; max-width: 100%; background: transparent; color: var(--slate); font-size: 14px; text-align: center; border: 1px dashed var(--line-2); }
.chat-form { padding-top: 18px; border-top: 1px solid var(--line); }
.chat-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.chat-form textarea { width: 100%; min-height: 96px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; margin-bottom: 12px; }
.chat-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 111, 120, .18); }
.msg-img { display: block; margin-top: 8px; }
.msg-img img { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; background: #fff; }
.msg-file { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 14px; overflow-wrap: anywhere; }
.msg-file .icon { width: 16px; height: 16px; flex: none; }
.msg.out a.msg-file { color: #fff; }
.chat-form .chat-attach { display: flex; gap: 8px; align-items: center; margin-top: 4px; font-weight: 600; font-size: 15px; }
.chat-form .chat-attach .icon { width: 18px; height: 18px; color: var(--teal); }
.chat-form input[type="file"] { width: 100%; margin-top: 6px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--canvas); font: inherit; font-size: 15px; }
.chat-form .hint { margin: 6px 0 12px; font-size: 14px; color: var(--slate); }

/* the sale in progress: where it stands, what was agreed and how to pay */
.deal h2 { margin: 0 0 16px; font-size: 18px; }
.deal-steps { list-style: none; counter-reset: deal; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.deal-steps li { counter-increment: deal; border-top: 4px solid var(--line); padding-top: 8px; font-size: 13px; line-height: 1.6; color: var(--slate); }
.deal-steps li::before { content: counter(deal, persian) ". "; }
.deal-steps li.is-done { border-color: var(--ok); color: var(--ok); font-weight: 600; }
.deal-steps li.is-now { border-color: var(--saffron); color: var(--ink); font-weight: 700; }
.chat-side .deal-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
.deal-amount { margin: 0 0 12px; font-size: 16px; }
.deal-pay { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.deal-label { margin: 0 0 4px; font-size: 13px; color: var(--slate); }
.deal .pre { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.deal-next { margin: 0; color: var(--slate); }
@media (max-width: 520px) { .deal-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.deal-files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.deal-files li { display: flex; gap: 8px; align-items: start; color: var(--ok); }
.deal-files .icon { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.deal-files span { color: var(--ink); overflow-wrap: anywhere; }
.deal-upload { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.deal-upload label { font-weight: 600; }
.deal-upload input[type="file"] { width: 100%; padding: 10px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--canvas); font: inherit; font-size: 15px; }
.deal-upload .hint { margin: 0; font-size: 14px; color: var(--slate); }
.deal-identity { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.deal-form-link { margin: 12px 0 0; }
.deal .deal-amount:last-child { margin-bottom: 0; }
/* the buyer's next step, under the last message of the conversation */
.deal-next-box { margin: 0 0 20px; padding: 20px; border: 2px solid var(--saffron); border-radius: var(--r-lg); background: #fffaf0; scroll-margin-top: 88px; }
.deal-next-box h2 { margin: 0 0 12px; font-size: 18px; }
.deal-next-box .deal-identity, .deal-next-box .deal-upload { border-top: 0; padding-top: 0; }
/* what is done and what is left, on the buyer's page */
.deal-progress { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.deal-progress li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; color: var(--slate); }
.deal-progress .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--ok); stroke-width: 3; }
.deal-progress i { width: 16px; height: 16px; margin: 5px 2px 0; border: 2px solid var(--line-2); border-radius: 50%; }
.deal-progress small { font-size: 12px; white-space: nowrap; }
.deal-progress .is-done { color: var(--ink); }
.deal-progress .is-done small { color: var(--slate); }
.deal-progress .is-now { color: var(--ink); font-weight: 700; }
.deal-progress .is-now i { border-color: var(--saffron); background: var(--warn-bg); }
.deal-progress .is-now small { color: var(--warn); font-weight: 600; }

/* ---- the printable transfer form ----------------------------------------------------------------- */
.tf { max-width: 820px; margin: 0 auto; padding: 32px 16px 56px; }
.tf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.tf-actions .btn { width: auto; }
.tf-sheet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 40px; }
.tf-sheet header { text-align: center; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 24px; }
.tf-sheet h1 { margin: 0 0 8px; font-size: 24px; }
.tf-meta { margin: 0; color: var(--slate); font-size: 15px; }
.tf-domain { font-size: 20px; margin: 0 0 24px; }
.tf-party { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 0 0 16px; }
.tf-party h2 { margin: 0 0 12px; font-size: 17px; }
.tf-party dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tf-party dt { color: var(--slate); font-size: 14px; }
.tf-party dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tf-text { margin: 16px 0; text-align: justify; line-height: 2; }
.tf-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.tf-signs > div { border: 1px dashed #9aa5b8; border-radius: 10px; min-height: 170px; padding: 12px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.tf-signs p { margin: 0; font-size: 15px; }
.tf-date { color: var(--slate); }
@media (max-width: 520px) { .tf-sheet { padding: 20px; } .tf-signs { grid-template-columns: 1fr; } }
@media print {
  body { background: #fff; }
  .site-head, .site-foot, .skip { display: none; }
  .tf { max-width: none; padding: 0; }
  .tf-actions, .foot-space { display: none; }
  .tf-sheet { border: 0; border-radius: 0; padding: 0; }
  .tf-party, .tf-signs > div { break-inside: avoid; }
}

/* ---- a sold domain: the name alone ----------------------------------------------------------------- */
.plain { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 24px; text-align: center; color: var(--slate); }
.plain p { margin: 0; font-size: 16px; }

/* ---- the sold-domains page and published reviews ------------------------------------------------- */
.cards .card-static { display: grid; gap: 6px; height: 100%; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); }
.cards .card-static .state-flag { justify-self: start; }
.cards .card-static .state-flag.is-done { color: #0f5132; background: var(--ok-bg); }
.sold-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.sold-cards .card-static { align-content: start; gap: 10px; padding: 24px 26px; }
.sold-cards .name { font-size: 24px; }
.sold-cards .state-flag { font-size: 14px; padding: 2px 12px; }
.sold-cards .cat { font-size: 15px; }
.sold-review { margin: 12px 0 0; padding: 18px 20px; border-radius: 14px; background: #fffaf0; border: 1px solid #f4e2b8; }
.sold-review-h { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--warn); }
.sold-review-stars { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 0; font-size: 15px; color: var(--slate); white-space: nowrap; }
.sold-review-stars .stars { font-size: 18px; }
.sold-review blockquote { margin: 14px 0 0; padding-inline-start: 14px; border-inline-start: 3px solid var(--saffron); font-size: 17px; line-height: 1.9; color: var(--ink); white-space: pre-line; overflow-wrap: break-word; }
.sold-review .review-by { margin-top: 12px; font-size: 14px; }
.list-links { margin: 16px 0 0; font-size: 15px; }
.list-links span { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; background: var(--canvas); color: var(--slate); font-size: 13px; }
.rate { border: 0; margin: 0 0 16px; padding: 0; }
.rate legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.rate-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rate label { position: relative; display: block; cursor: pointer; height: 100%; }
.rate input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rate label span { display: grid; justify-items: center; align-content: start; gap: 2px; height: 100%; min-height: 56px; padding: 8px 2px; text-align: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); font-weight: 700; font-size: 18px; }
.rate label small { font-weight: 400; font-size: 12px; line-height: 1.4; color: var(--slate); }
.rate input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.rate input:checked + span small { color: #c9d3e3; }
.rate input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.stars { color: var(--saffron); letter-spacing: 2px; white-space: nowrap; }
.stars .off { color: var(--line-2); }
.review-text { margin: 12px 0 0; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.review { height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.review .pre { margin: 8px 0; white-space: pre-line; overflow-wrap: anywhere; }
.review-by { margin: 8px 0 0; font-size: 14px; color: var(--slate); }

/* the optional name and note, folded so the offer card fits beside the page */
.more { margin: 0 0 14px; }
.more summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--teal); font-size: 15px; font-weight: 600; }
.more summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; font-size: 14px; line-height: 1; }
.more[open] summary::before { content: "−"; }
.more[open] summary { margin-bottom: 8px; }
@media (max-width: 979px) { .chat-side { order: -1; } }
/* on a phone the offer card follows the name; the promises come after it */
@media (max-width: 979px) {
  .sale .trust-row { order: 2; }
  .sale .main { order: 3; }
  .trust-row li { padding: 10px 14px; }
}
.chat-form .btn { width: 100%; }
.related .say { font-size: 14px; color: var(--slate); }
