/* Esminak public site — dark only: black / slate gray / blue */
@font-face {
  font-family: "Vazirmatn";
  src: local("Vazirmatn"), url("/static/fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
:root {
  --bg: #06080e; --bg2: #0a0f1a; --card: #0e1524; --card2: #121b2e;
  --line: #1c2740; --line2: #2a3858;
  --text: #e7ecf6; --muted: #98a6bf; --dim: #66748f;
  --blue: #3b82f6; --blue2: #60a5fa; --blue3: #1e40af; --blue-ink: #0b1a3a;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --r: 14px; --r-sm: 10px;
  --font: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  --latin: ui-sans-serif, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7;
  background-image:
    linear-gradient(rgba(59,130,246,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.lang-en { font-family: var(--latin); line-height: 1.6; }
.glow {
  position: fixed; inset: -20vh -10vw auto; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.28), rgba(37,99,235,.06) 45%, transparent 70%);
}
a { color: var(--blue2); text-decoration: none; }
a:hover { color: #93c5fd; }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-bottom: 56px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* top bar */
.top { border-bottom: 1px solid var(--line); background: rgba(6,8,14,.72); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--blue3); stroke: var(--blue); stroke-width: 1.5; }
.brand-mark path { stroke: #dbeafe; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.top-nav { display: flex; gap: 6px; align-items: center; }
.top-nav a { color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: .92rem; }
.top-nav a:hover { color: var(--text); background: var(--card); }
.lang-switch { border: 1px solid var(--line2); }

/* hero + filters */
.hero { padding: 56px 0 28px; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4.6vw, 3rem); line-height: 1.25; margin: 0 0 10px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff, #b9c8e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px; max-width: 980px; margin: 0 auto; box-shadow: 0 20px 60px -30px rgba(37,99,235,.45); }
.search { position: relative; flex: 1 1 260px; }
.search svg { position: absolute; inset-inline-start: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 2; }
.search input { padding-inline-start: 40px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-sm);
  padding: 10px 12px; min-height: 44px; transition: border-color .15s, box-shadow .15s;
}
select { width: auto; flex: 0 1 auto; cursor: pointer; }
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.22); }
input[dir=ltr] { text-align: left; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  font: inherit; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #2563eb; color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--blue); color: #fff; }
.btn.wide { width: 100%; }

/* grid of domains */
.count { color: var(--dim); margin: 26px 0 12px; font-size: .92rem; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dcard { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, transform .15s, box-shadow .15s; }
.dcard:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: 0 16px 40px -24px rgba(59,130,246,.55); }
.dcard.featured { border-color: rgba(59,130,246,.45); }
.dcard-link { display: flex; flex-direction: column; gap: 10px; padding: 16px; color: var(--text); height: 100%; }
.dcard-link:hover { color: var(--text); }
.dcard-top { display: flex; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.dn { font-family: var(--latin); direction: ltr; unicode-bidi: isolate; text-align: left; font-weight: 800; letter-spacing: -.01em;
  font-size: 1.32rem; word-break: break-all; color: #fff; }
.dn.big { font-size: clamp(2rem, 6vw, 3.4rem); text-align: center; margin: 8px 0; }
.dn.huge { font-size: clamp(2.3rem, 9vw, 5.2rem); text-align: center; margin: 6px 0 12px; line-height: 1.1;
  background: linear-gradient(90deg, #fff 0%, #bfdbfe 50%, #60a5fa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dcard-meta { display: flex; gap: 6px; color: var(--dim); font-size: .85rem; }
.dcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 10px; }
.arrow { color: var(--dim); transition: color .15s, translate .15s; }
.dcard:hover .arrow { color: var(--blue2); }
.price { font-weight: 800; color: #fff; }
.price small { color: var(--muted); font-weight: 500; }
.price.offer { color: var(--blue2); }
.badge, .chip { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; line-height: 1.6; }
.badge.ok { background: rgba(52,211,153,.12); color: var(--ok); }
.badge.warn { background: rgba(251,191,36,.12); color: var(--warn); }
.badge.blue { background: rgba(59,130,246,.16); color: var(--blue2); }
.chip { background: var(--bg2); border: 1px solid var(--line2); color: var(--muted); font-weight: 500; }

.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 60px 16px; border: 1px dashed var(--line2); border-radius: var(--r); background: rgba(14,21,36,.5); }
.empty.big { margin-top: 60px; }
.empty .code { font-size: 4rem; font-weight: 900; color: var(--blue3); margin: 0; font-family: var(--latin); }

/* detail & landing */
.back { display: inline-block; margin: 22px 0 0; color: var(--muted); font-size: .92rem; }
.dhero, .lhero { text-align: center; padding: 36px 0 30px; }
.lhero { padding-top: 64px; }
.dhero-badges, .lhero-row { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.dhero-price { font-size: 1.4rem; margin-bottom: 8px; }
.lhero-row .price { font-size: 1.25rem; }
.eyebrow { display: inline-block; margin: 0; color: var(--blue2); font-weight: 700; letter-spacing: .02em; padding: 4px 14px;
  border: 1px solid rgba(59,130,246,.35); border-radius: 999px; background: rgba(59,130,246,.08); }
.lhero .lead { margin-top: 18px; }
.lhero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.facts { display: flex; gap: 12px; justify-content: center; margin: 18px 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 18px; }
.facts dt { color: var(--dim); font-size: .8rem; }
.facts dd { margin: 0; font-weight: 700; }
.two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card h2 { margin: 0 0 14px; font-size: 1.2rem; }
.side .more { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding: 14px; border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(30,64,175,.35), rgba(30,64,175,.1)); border: 1px solid rgba(59,130,246,.3); color: var(--text); font-weight: 700; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .9rem; color: var(--muted); }
.req { color: var(--bad); font-weight: 700; }
.field .err { color: var(--bad); font-size: .82rem; }
.field .hint { color: var(--dim); font-size: .82rem; min-height: 1em; }
.has-err input, .has-err textarea { border-color: rgba(248,113,113,.7); }
.captcha-row { display: flex; gap: 12px; align-items: flex-end; }
.captcha-img { border-radius: var(--r-sm); border: 1px solid var(--line2); flex: none; background: #111827; }
.captcha-row .field { flex: 1; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.alert { padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 4px; }
.alert.ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.35); color: #a7f3d0; }
.alert.bad { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.35); color: #fecaca; }
.note { color: var(--warn); font-size: .9rem; margin: 0 0 8px; }
.fine { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: .82rem; margin: 0; }
.fine svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }

/* contact */
.contact h3 { margin: 0 0 12px; font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-list a { display: grid; grid-template-columns: 22px auto 1fr; gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: var(--r-sm); background: var(--bg2); border: 1px solid var(--line); color: var(--text); }
.contact-list a:hover { border-color: var(--blue); }
.contact-list svg { width: 20px; height: 20px; stroke: var(--blue2); fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.contact-list .lbl { color: var(--muted); font-size: .88rem; }
.contact-list .val { justify-self: end; font-weight: 600; }

/* footer */
.foot { border-top: 1px solid var(--line); background: rgba(10,15,26,.85); padding: 28px 0; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.foot .contact-list { flex-direction: row; flex-wrap: wrap; }
.foot-note { color: var(--dim); font-size: .85rem; margin: 0; }

@media (max-width: 820px) {
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .filters select, .filters .btn { flex: 1 1 calc(50% - 10px); }
  .hero { padding-top: 36px; }
  .captcha-row { flex-direction: column; align-items: stretch; }
  .captcha-img { align-self: center; }
  .foot .contact-list { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 560px) { .top-nav a:not(.lang-switch) { display: none; } }
