/* ==========================================================================
   File: /home/build/pyd_app/assets/app.css
   PitchYourDomain — one stylesheet for every page and every site.
   Mobile-first; dark theme; licence-plate visuals.
   ========================================================================== */

:root {
  --bg: #0b0e14;
  --surface: #141922;
  --surface-2: #1a2030;
  --line: #1f2633;
  --line-2: #2b3446;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --dim: #6b7487;
  --cream: #f4f1ea;
  --ink: #16181d;
  --ok: #6ee7a8;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --site-accent: #2563eb;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: #8ab4ff; text-decoration: none; }
a:hover { color: #c3d6ff; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; padding-top: 48px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ta-r { text-align: right; }
.pre-line { white-space: pre-line; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.eyebrow { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.hide-sm { display: none; }
.show-sm { display: inline-flex; }
@media (min-width: 760px) { .hide-sm { display: inline; } .show-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s ease, opacity .2s ease; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; color: var(--bg); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--muted); color: var(--text); }
.btn--accent { background: var(--c, var(--site-accent)); color: #fff; }
.btn--accent:hover { filter: brightness(1.12); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn.is-busy::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linklike { background: none; border: 0; padding: 0; color: #8ab4ff; cursor: pointer; font: inherit; }
.linklike:hover { color: #c3d6ff; }
.inline-form { display: inline; margin: 0; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.round-btn:hover { background: var(--surface-2); }
.pill-btn { height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pill-btn--solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill-btn--solid.is-saved { background: #e11d48; border-color: #e11d48; color: #fff; }
.icon-btn { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); }
.dashed-btn { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px dashed #3a465c; background: transparent; color: #c9ced8; cursor: pointer; font-weight: 500; }
.dashed-btn:hover { border-color: var(--muted); }

/* ---------- Top bar & footer ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(11, 14, 20, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__plate { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 26px; border-radius: 5px; border: 2px solid var(--site-accent); background: var(--cream); color: var(--ink); font: 800 13px/1 var(--display); letter-spacing: .04em; }
.brand__name { font: 700 22px/1 var(--display); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { color: var(--muted); font-size: 14px; padding: 12px 10px; border-radius: 8px; }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link--strong { color: var(--text); font-weight: 700; letter-spacing: .08em; }
.nav__link, .nav .btn { white-space: nowrap; }
@media (max-width: 520px) { .brand__name { font-size: 18px; } .nav__link { padding: 12px 6px; font-size: 12px; } .nav__link--strong { letter-spacing: .04em; } .nav .btn { padding: 0 12px; } }
@media (max-width: 420px) { .topbar .brand__name { display: none; } }
@media (max-width: 480px) { .deck__controls { gap: 8px; } .round-btn { width: 44px; height: 44px; } .pill-btn { height: 44px; padding: 0 16px; } }

.footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0 20px; color: var(--muted); font-size: 14px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer__brand p { margin-top: 10px; }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; margin-left: auto; text-align: right; }
.footer__links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer__links a, .footer__links .linklike { color: var(--muted); font-size: 14px; }
.footer__links a:hover, .footer__links .linklike:hover { color: var(--text); }
.footer__legal { margin-top: 24px; color: var(--dim); font-size: 13px; }
.powered { color: var(--muted); }
.powered strong { color: var(--text); }

/* ---------- Licence plate ---------- */
.plate { position: relative; aspect-ratio: 2 / 1; width: 100%; background: var(--cream); border: 4px solid var(--c); border-radius: 14px; box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 6px rgba(0, 0, 0, .14); display: flex; flex-direction: column; overflow: hidden; container-type: inline-size; color: var(--ink); user-select: none; }
.plate--lg { border-width: 5px; border-radius: 18px; box-shadow: inset 0 0 0 5px var(--cream), inset 0 0 0 7px rgba(0, 0, 0, .14), 0 24px 60px rgba(0, 0, 0, .55); }
.plate--sm { border-width: 3px; border-radius: 10px; box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 4px rgba(0, 0, 0, .14); }
.plate__band { background: var(--c); color: #fff; display: flex; justify-content: space-between; padding: 1.4cqi 5cqi; font: 700 3.4cqi/1.15 var(--display); letter-spacing: .22em; }
.plate__name { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 5cqi; font-family: var(--display); font-weight: 800; font-size: var(--fs, 13cqi); line-height: 1; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.plate__tld { color: var(--c); }
.plate--fs-l { --fs: 14cqi; }
.plate--fs-m { --fs: 10.5cqi; }
.plate--fs-s { --fs: 8cqi; }
.plate--fs-xs { --fs: 6cqi; }
.plate__foot { display: flex; justify-content: space-between; padding: 0 5cqi 2.6cqi; font: 700 3.6cqi/1 var(--display); letter-spacing: .12em; color: #4b5563; }
.plate__bolt { position: absolute; top: 24%; width: 2cqi; height: 2cqi; border-radius: 50%; background: #b9b4a8; box-shadow: inset 0 -1px 1px rgba(0, 0, 0, .25); }
.plate__bolt--l { left: 2.4cqi; }
.plate__bolt--r { right: 2.4cqi; }
.plate--sold { filter: grayscale(.35); }
.plate__stamp { position: absolute; right: 4cqi; bottom: 4cqi; transform: rotate(-8deg); border: .7cqi solid #b91c1c; color: #b91c1c; border-radius: 1cqi; padding: 0 2cqi; font: 800 6cqi/1.3 var(--display); letter-spacing: .14em; background: rgba(244, 241, 234, .88); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 48px; padding-bottom: 8px; }
.hero__title { margin-bottom: 12px; }
.hero__sub { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 20px; }
.hero__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Swipe deck ---------- */
.deck { padding-top: 32px; padding-bottom: 8px; scroll-margin-top: 72px; }
.deck__stage { position: relative; outline: none; }
.deck__close { display: none; }
.swipe-card { display: none; gap: 32px; align-items: center; }
.swipe-card.is-active { display: grid; animation: card-in .35s ease both; }
@media (min-width: 900px) { .swipe-card.is-active { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.swipe-card.is-leaving-left { display: grid; animation: leave-left .28s ease forwards; }
.swipe-card.is-leaving-right { display: grid; animation: leave-right .28s ease forwards; }
@keyframes leave-left { to { opacity: 0; transform: translateX(-60px) rotate(-4deg); } }
@keyframes leave-right { to { opacity: 0; transform: translateX(60px) rotate(4deg); } }
.swipe-card__plate { position: relative; padding: 16px 8px 0; touch-action: pan-y; cursor: grab; }
.swipe-card__plate:active { cursor: grabbing; }
.swipe-card__plate .plate { transition: transform .25s ease; will-change: transform; }
.swipe-card__plate.is-dragging .plate { transition: none; }
.stack-shadow, .stack-shadow::after { position: absolute; border-radius: 18px; }
.stack-shadow { left: 34px; right: 34px; top: 0; bottom: 26px; background: #1a2030; transform: rotate(-3deg); }
.stack-shadow::after { content: ''; left: -14px; right: -14px; top: 8px; bottom: -12px; background: #222a3b; transform: rotate(5deg); }
.swipe-card__info { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.swipe-card__price { font: 800 44px/1 var(--display); margin: 0; }
.swipe-card__pitch { color: #c9ced8; margin: 0; }
.swipe-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.swipe-card__actions .btn { flex: 1 1 auto; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 0; font-weight: 500; }
.owner { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; flex-wrap: wrap; }
.owner strong { display: block; }
.deck__controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.deck__count { min-width: 64px; text-align: center; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.deck__extra { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; font-size: 14px; }
.hint { color: var(--dim); }

/* Full-screen vertical swipe (phones) */
.deck.is-full .deck__stage { position: fixed; inset: 0; z-index: 120; background: var(--bg); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; }
.deck.is-full .swipe-card { display: flex !important; flex-direction: column; justify-content: center; align-items: stretch; gap: 14px; min-height: 100vh; min-height: 100dvh; padding: 56px 16px 24px; scroll-snap-align: start; scroll-snap-stop: always; animation: none; }
.deck.is-full .swipe-card__info { padding: 18px; gap: 12px; }
.deck.is-full .swipe-card__price { font-size: 34px; }
.deck.is-full .swipe-card__pitch { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.deck.is-full .stack-shadow { display: none; }
.deck.is-full .deck__close { display: inline-flex; position: fixed; top: 12px; right: 12px; z-index: 130; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20, 25, 34, .9); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
body.no-scroll { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-top: 48px; scroll-margin-top: 72px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; font-size: 13px; }

/* Recently sold strip */
.sold-strip { list-style: none; margin: 0; padding: 0 0 8px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; }
.sold-card { flex: none; width: 220px; scroll-snap-align: start; }
.sold-card a { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; color: var(--text); }
.sold-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; }
.sold-card__row .muted { font-size: 12px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 16px; height: 48px; }
.search i { color: var(--muted); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 15px; height: 100%; }
.search:focus-within { border-color: #8ab4ff; }
.select { position: relative; display: inline-flex; }
.select select { appearance: none; -webkit-appearance: none; height: 48px; padding: 0 40px 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; cursor: pointer; }
.select::after { content: '\f078'; font: var(--fa-font-solid); font-size: 11px; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.select--sm select { height: 40px; font-size: 14px; }
.ext-pills { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; }
.ext-pill { height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface); font: 700 15px/1 var(--display); letter-spacing: .04em; cursor: pointer; }
.ext-pill.is-on { border-color: var(--c, var(--text)); background: var(--c, var(--text)); color: #fff; }
.ext-pill[data-ext=""].is-on { color: var(--bg); }

/* Grid of plates */
.grid-count { color: var(--muted); font-size: 14px; margin: 10px 0 14px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 360px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 479px) { .card__link { padding: 10px; gap: 10px; } .card__more { display: none; } .pricetag { font-size: 14px; } }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card__link { display: flex; flex-direction: column; gap: 12px; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--text); transition: transform .2s ease, border-color .2s ease; }
.card__link:hover { color: var(--text); transform: translateY(-4px); border-color: var(--line-2); }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pricetag { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 12px 0 18px; background: var(--cream); color: var(--ink); font: 800 16px/1 var(--display); letter-spacing: .03em; border-radius: 4px 8px 8px 4px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.pricetag::before { content: ''; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--bg); transform: translateY(-50%); }
.card__more { color: #8ab4ff; font-size: 13px; font-weight: 500; }
.card__cats { display: flex; gap: 6px; }
.cat-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager__btn { min-width: 44px; height: 44px; padding: 0 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.pager__btn:hover { color: var(--text); border-color: var(--line-2); }
.pager__btn.is-current { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.pager__btn.is-disabled { opacity: .35; pointer-events: none; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty i { font-size: 28px; margin-bottom: 10px; display: block; }
.empty--big { padding: 64px 16px; }
.empty--big i { font-size: 40px; }
[data-grid].is-loading { opacity: .5; transition: opacity .2s; }

/* Social icons */
.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: transform .15s; }
.socials a:hover { transform: scale(1.1); color: #fff; }

/* ---------- Domain detail ---------- */
.detail { padding-top: 20px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-size: 9px; }
.crumbs span { color: var(--text); }
.detail__head { text-align: center; padding: 24px 0 8px; }
.detail__plate { max-width: 520px; margin: 0 auto 24px; }
.detail__title { font-size: clamp(30px, 6vw, 48px); word-break: break-all; display: inline-flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.detail__ext { font-size: 20px; color: var(--muted); }
.detail__tagline { font-style: italic; color: #c9ced8; font-size: 17px; }
.tiles { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 20px; min-width: 130px; }
.tile strong { font: 800 22px/1.1 var(--display); letter-spacing: .02em; }
.tile--accent { background: color-mix(in srgb, var(--c) 30%, var(--surface)); border-color: var(--c); }
.tile--accent strong { font-size: 28px; }
.tile--sold { border-color: #b91c1c; }
.banner { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; margin: 20px 0; font-size: 14px; }
.banner--ok { background: #0f2a1e; border-color: #1f6b48; color: #b7f0d2; }
.info-grid { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .info-card--wide { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.info-card h2 { font: 700 17px/1.2 var(--body); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card__big { font-size: 18px; font-weight: 700; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.chip i { color: var(--muted); margin-right: 4px; }
.contact { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 24px; scroll-margin-top: 80px; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding: 32px; } }
.detail__foot { display: flex; gap: 10px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 14px; font-weight: 500; }
.opt { color: var(--dim); font-weight: 400; font-size: 12px; margin-left: 4px; }
.field input:not([type=checkbox]), .field textarea, .money { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; font-size: 16px; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field input:not([type=checkbox]) { height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .money:focus-within { outline: none; border-color: #8ab4ff; box-shadow: 0 0 0 3px rgba(138, 180, 255, .18); }
.field input[readonly] { color: var(--muted); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.money { display: flex; align-items: center; padding-left: 14px; height: 48px; }
.money > span { color: var(--muted); font-weight: 700; }
.field .money input { border: 0; background: transparent; height: 46px; box-shadow: none; padding: 0 12px 0 8px; }
.field input[type=date] { color-scheme: dark; }
.field-msg { margin: 0; font-size: 13px; color: var(--dim); min-height: 1em; }
.field-msg--right { text-align: right; }
.field.is-invalid input:not([type=checkbox]), .field.is-invalid textarea, .field.is-invalid .money { border-color: #b45309; }
.field.is-invalid .field-msg { color: var(--warn); }
.field.is-valid input:not([type=checkbox]), .field.is-valid .money { border-color: #1f6b48; }
.field.is-valid .field-msg { color: var(--ok); }
.field.is-invalid { animation: shake .3s ease; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--text); }
.check:has(input:disabled) { color: var(--dim); cursor: default; }

.panel { border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 0; background: var(--surface); min-width: 0; }
.panel > legend { padding: 0 8px; font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.panel--center { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: stretch; padding: 32px 24px; }
.panel--center .form { text-align: left; }
.req-tag { font-weight: 500; letter-spacing: .06em; color: var(--dim); text-transform: none; margin-left: 4px; }
.big-icon { width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%; background: var(--surface-2); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; }
.big-icon--warn { color: var(--warn); }

/* Submit page */
.submit-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; }
.submit-form { flex: 999 1 560px; min-width: 0; gap: 24px; }
.form-head h1 { margin-bottom: 6px; }
.preview { flex: 1 1 340px; min-width: 0; }
.preview__sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.preview__owner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 58px; }
.preview__socials { display: flex; gap: 6px; flex-wrap: wrap; }
.preview__socials span { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
[data-preview-plate] .plate { transition: border-color .3s; }
[data-preview-plate] .plate__band { transition: background .3s; }
.social-inputs { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.social-input { display: flex; align-items: center; gap: 10px; }
.social-input input { flex: 1; min-width: 0; }
.social-badge { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--c, var(--line-2)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; transition: background .25s; }
.social-badge.is-new { animation: pop .3s ease; }
.cat-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-opt { position: relative; cursor: pointer; }
.cat-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cat-opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-size: 14px; transition: all .15s; }
.cat-opt span i { color: var(--muted); }
.cat-opt input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.cat-opt input:checked + span i { color: var(--bg); }
.cat-opt input:focus-visible + span { outline: 2px solid #8ab4ff; outline-offset: 2px; }
.cat-opt input:disabled + span { opacity: .4; cursor: not-allowed; }
.whois-status { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin: 0 0 16px; min-height: 22px; }
.whois-status.is-found { color: var(--ok); }
.whois-status.is-missing { color: var(--warn); }
.whois-status .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.submit-row p { margin: 0; }
.field.is-autofilled input { background: #0f2a1e; }

/* ---------- Account ---------- */
.account { padding-top: 32px; }
.account__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.account__head h1 { margin-bottom: 4px; }
.account__head p { margin: 0; }
.stat-chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.stat-chips li { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.stat-chips strong { color: var(--text); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap; }
.tab.is-on { color: var(--text); border-bottom-color: var(--text); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .btn { margin-left: auto; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg__btn { height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; }
.seg__btn.is-on { background: var(--text); border-color: var(--text); color: var(--bg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 14px 12px; font-weight: 700; }
.table td { border-top: 1px solid var(--line); padding: 14px 12px; vertical-align: top; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.mini-plate { display: inline-flex; align-items: stretch; border: 2px solid var(--c); border-radius: 6px; background: var(--cream); overflow: hidden; color: var(--ink); font: 800 17px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.mini-plate:hover { color: var(--ink); }
.mini-plate__bar { width: 8px; background: var(--c); }
.mini-plate > span:last-child { padding: 6px 12px; }
.mini-plate b { color: var(--c); }
.status { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
.status--live { background: #0f2a1e; color: var(--ok); }
.status--pending { background: #2b2410; color: var(--warn); }
.status--sold { background: var(--line-2); color: #c9ced8; }
.actions { white-space: nowrap; }
.act { background: none; border: 0; color: #c9ced8; cursor: pointer; font-weight: 500; padding: 10px 8px; font-size: 14px; }
.act:hover { color: var(--text); }
.act--muted { color: var(--muted); }
.act--danger { color: var(--muted); }
.act--danger:hover { color: var(--danger); }
.offers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.offer.is-new { border-color: #3b5bdb; }
.offer__top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.offer__amount { font: 800 24px/1 var(--display); white-space: nowrap; }
.offer__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- Modal (native <dialog>) ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 32px); width: 460px; }
.modal::backdrop { background: rgba(5, 7, 12, .7); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal__box { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px 24px 22px; margin: 0; }
.modal:has(.modal__box--wide) { width: 640px; }
.modal__x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.modal__x:hover { color: var(--text); }
.modal__icon { font-size: 30px; margin-bottom: 8px; }
.modal__icon:empty { display: none; }
.modal__title { font-size: 28px; padding-right: 32px; }
.modal__body { color: #c9ced8; }
.modal__body p:last-child { margin-bottom: 0; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.modal-plate { max-width: 300px; margin: 6px 0 16px; }
.saved-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.saved-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--text); color: var(--bg); border-radius: 12px; padding: 12px 16px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: toast-in .25s ease; pointer-events: auto; display: flex; gap: 10px; align-items: center; }
.toast--error { background: #7f1d1d; color: #fff; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: all .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
