/* Domain sale – light, trust-focused theme with automatic dark mode */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-soft: #eff6ff;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --err: #dc2626;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px -12px rgba(30, 64, 175, .22);
  --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2e;
    --surface-2: #17223a;
    --text: #e8edf7;
    --text-2: #c3cbe0;
    --muted: #8b97b3;
    --line: #22304d;
    --brand: #4f8bff;
    --brand-2: #3b74f0;
    --brand-soft: rgba(79, 139, 255, .12);
    --ok: #34d399;
    --ok-soft: rgba(52, 211, 153, .12);
    --err: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.err { color: var(--err); }
.ic { width: 18px; height: 18px; flex: none; }
.ic.big { width: 44px; height: 44px; }

/* ---------- header / footer ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1140px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--brand), #06b6d4); }
.logo .ic { width: 20px; height: 20px; }
.top-r { display: flex; align-items: center; gap: 10px; }
.secure-pill { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; }
.secure-pill .ic { width: 14px; height: 14px; }
.langs { display: flex; gap: 2px; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.langs a { color: var(--muted); font-size: .75rem; font-weight: 600; padding: 4px 8px; border-radius: 7px; }
.langs a:hover { text-decoration: none; color: var(--text); }
.langs a.on { color: var(--text); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 64px; }
.foot-in { max-width: 1140px; margin: 0 auto; padding: 24px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--muted); }
.foot-brand { display: flex; gap: 10px; align-items: baseline; }
.foot-brand b { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.foot-links .ic { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(900px 400px at 0% 0%, var(--brand-soft), transparent 70%),
    radial-gradient(700px 360px at 100% 0%, color-mix(in srgb, #06b6d4 10%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "main buy" "info buy"; grid-template-rows: auto 1fr; gap: 0 40px; align-items: start; }
.hero-main { grid-area: main; }
.hero-grid > .buy { grid-area: buy; }
.hero-info { grid-area: info; }
.hero-grid.single { grid-template-columns: 1fr; grid-template-areas: "main"; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.hero-grid.single .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "main" "buy" "info"; grid-template-rows: auto; gap: 24px; }
  .buy { position: static; }
  .facts { margin-top: 0; }
}
@media (max-width: 420px) { .secure-pill { display: none; } }
.brand span:last-child { white-space: nowrap; }
.badge-sale { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.badge-sale.muted { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }
.domain { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; word-break: break-word; margin-bottom: 16px; }
.domain .tld { color: var(--brand); }
.lead { font-size: 1.125rem; color: var(--text-2); max-width: 560px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 2px 0 0; font-weight: 700; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:last-child { grid-column: span 2; } }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item b { display: block; font-size: .95rem; }
.trust-item p { margin: 2px 0 0; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.trust-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; color: var(--brand); background: var(--brand-soft); }
.trust-ic .ic { width: 20px; height: 20px; }

/* ---------- buy card ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.buy { position: sticky; top: 84px; padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); margin: 0; }
.pc-head { display: flex; flex-direction: column; padding: 24px 24px 18px; background: linear-gradient(180deg, var(--brand-soft), transparent); border-bottom: 1px solid var(--line); }
.pc-label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pc-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.pc-price.sm { font-size: 1.8rem; }
.pc-sub { font-size: .9rem; color: var(--muted); }
.pc-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 24px; font-size: .8rem; color: var(--text-2); border-bottom: 1px solid var(--line); }
.pc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pc-meta .ic { width: 15px; height: 15px; color: var(--ok); }
.offer { padding: 20px 24px 22px; }
.thanks { padding: 32px 24px; text-align: center; color: var(--ok); }
.thanks h2 { color: var(--text); margin-top: 10px; }
.thanks p { color: var(--text-2); }

/* ---------- form ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .hint { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 120px; gap: 12px; }
@media (max-width: 560px) { .row, .row3 { grid-template-columns: 1fr; } }
.amount-input { position: relative; }
.amount-input input { font-size: 1.35rem; font-weight: 700; padding-right: 64px; }
.amount-input b { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font: inherit; font-weight: 700; color: #fff; border: 0; border-radius: 12px; padding: 14px 20px; cursor: pointer;
  background: var(--brand); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--brand) 60%, transparent);
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:hover { background: var(--brand-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn.sm { width: auto; padding: 8px 14px; font-size: .9rem; box-shadow: none; }
.form-msg { min-height: 1.2em; margin: 10px 0 0; font-size: .9rem; }
.form-msg.err { color: var(--err); }
.secure-note { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.secure-note .ic { width: 15px; height: 15px; margin-top: 2px; color: var(--ok); }

/* ---------- sections ---------- */
.sec-title { font-size: 1.6rem; font-weight: 800; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; margin: 24px 0 48px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding: 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.steps b { display: block; font-size: 1.05rem; margin: 10px 0 4px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.faq { max-width: 800px; margin-bottom: 48px; }
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--text-2); }
.more { margin-bottom: 24px; }
.link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- domain grid / portfolio ---------- */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.dcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 44px 18px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .15s, box-shadow .15s, border-color .15s; }
.dcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); text-decoration: none; }
.dname { font-weight: 700; font-size: 1.05rem; word-break: break-word; }
.dname em { font-style: normal; color: var(--brand); }
.dprice { color: var(--muted); font-size: .9rem; }
.dgo { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); transition: color .15s, transform .15s; }
.dcard:hover .dgo { color: var(--brand); transform: translate(3px, -50%); }
.hero-pf { padding-bottom: 28px; }
.pf-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.hero-pf .lead { margin: 0 auto 24px; }
.search { position: relative; max-width: 520px; margin: 0 auto 16px; }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding: 14px 16px 14px 46px; border-radius: 14px; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: .85rem; font-weight: 600; }
.chip:hover { text-decoration: none; border-color: var(--brand); }
.chip.on { color: #fff; background: var(--brand); border-color: var(--brand); }
.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 900px) { .trust-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-row { grid-template-columns: 1fr; } }

/* ---------- admin ---------- */
.admin main.wrap { padding-top: 28px; padding-bottom: 48px; }
.admin .chips { justify-content: flex-start; margin-bottom: 16px; }
.narrow { max-width: 420px; margin: 40px auto; }
.anav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-weight: 600; font-size: .9rem; }
.anav a { color: var(--text-2); }
.anav form { margin: 0; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.linkbtn.err { color: var(--err); }
.headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.flash { padding: 12px 16px; border-radius: 12px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); margin-bottom: 16px; }
.table-wrap { overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; background: var(--surface-2); }
.tbl .msg { max-width: 280px; white-space: pre-wrap; word-break: break-word; }
.tbl tr.st-new td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.inline { display: flex; flex-wrap: wrap; gap: 6px; min-width: 220px; }
.inline select, .inline input { padding: 6px 8px; font-size: .85rem; width: auto; flex: 1; }
.badge { font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); }
.b-listed { color: var(--ok); border-color: var(--ok); }
.b-sold { color: var(--err); border-color: var(--err); }
.b-off { color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.check input { width: auto; }
.danger { margin-top: -8px; }

/* ---------- contact ---------- */
.narrow-wrap { max-width: 720px; }
.contact-card { padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); margin-top: 8px; }
.contact-card .offer { padding: 24px; }
.ask-link { margin: 10px 0 0; font-size: .85rem; }
.ask-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ask-link .ic { width: 15px; height: 15px; }
select { min-height: 48px; }
.domain-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.domain-chip .ic { width: 17px; height: 17px; }
.field > div + * { margin-top: 0; }

/* ---------- purchase type, extras, admin stats ---------- */
.ptype { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.ptype-opt { flex: 1 1 auto; position: relative; }
.ptype-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ptype-opt span { display: block; text-align: center; padding: 8px 10px; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.ptype-opt input:checked + span { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ptype-opt input:focus-visible + span { outline: 2px solid var(--brand); }
.amount-input input[readonly] { background: var(--surface-2); }
.pc-extras { display: flex; flex-direction: column; gap: 4px; padding: 12px 24px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--text-2); }
.pc-extras span { display: inline-flex; align-items: center; gap: 6px; }
.pc-extras .ic { width: 15px; height: 15px; color: var(--brand); }
.cf-turnstile { margin: 4px 0 14px; }
.counter { margin-top: 6px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr; } }
.kpi { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 18px; }
.kpi span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.kpi b { font-size: 1.8rem; }
.kpi small { color: var(--muted); }
.spark rect { fill: var(--brand); opacity: .75; }
[hidden] { display: none !important; }
