/* ============================================================
   AfterWorn — aw.css (redesign)
   Plain hand-written CSS. No build step. Ships byte-for-byte.
   Two themes: dark (default) and [data-theme="light"].
   Two registers:
     — editorial (Instrument Serif / Instrument Sans)
     — documentary "receipt" (Spline Sans Mono) for money,
       verification and order state. The trust voice.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --orchid:        #C2185B;
  --orchid-hover:  #D81B60;
  --orchid-deep:   #8E1244;
  --orchid-bright: #E23B7C;
  --blush:         #E8A0BC;
  /* Gold — RESERVED for verified / premium status. Nothing else. */
  --gold:      #FFB300;
  --gold-deep: #D99614;
  --gold-pale: #FFD54F;
  --gold-text: #FFC94D;          /* gold usable as text on this theme */

  /* Surfaces — dark default */
  --surface-0: #0F0F11;
  --surface-1: #17171B;
  --surface-2: #1F1F25;
  --surface-3: #26262E;
  --hairline:  #2A2A32;
  --border-strong: #3A3A44;

  /* Text */
  --text-1: #F5F5F7;
  --text-2: #A8A8B3;
  --text-3: #6E6E7A;
  --text-on-orchid: #FFFFFF;

  /* Semantic */
  --success: #4FAF7E;
  --danger:  #E25555;
  --warning: #E8A94F;
  --success-dim: rgba(79,175,126,0.14);
  --danger-dim:  rgba(226,85,85,0.14);
  --warning-dim: rgba(232,169,79,0.14);
  --orchid-dim:  rgba(194,24,91,0.14);
  --gold-dim:    rgba(255,179,0,0.12);

  /* Type */
  /* Playfair Display — původní display font. Designérka navrhovala Instrument
     Serif, ale Jakub chtěl zpět Playfair (vč. loga). Token je jediné místo:
     přepíná logo, h1–h3, receipt-brand, modal-title i dlaždice kategorií. */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui:      'Instrument Sans', system-ui, sans-serif;
  --font-mono:    'Spline Sans Mono', ui-monospace, monospace;
  --leading-display: 1.08;
  --leading-body:    1.65;
  --tracking-caps:   0.18em;

  /* Shape / motion */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(0,0,0,0.4);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;

  --aw-maxw: 1240px;

  /* Receipt register (new) */
  --receipt-rule: 1px dashed var(--border-strong);
  --focus-ring: 2px solid var(--orchid-bright);

  color-scheme: dark;
}

[data-theme="light"] {
  --surface-0: #FAF7F4;
  --surface-1: #FFFFFF;
  --surface-2: #F3EEE8;
  --surface-3: #EAE4DC;
  --hairline:  #E4DDD4;
  --border-strong: #C7BEB3;

  --text-1: #1C1B1F;
  --text-2: #5D5B66;
  --text-3: #8B8894;

  --gold-text: #B07908;          /* gold as text needs ink on paper */
  --success: #2E8B5F;
  --danger:  #C43B3B;
  --warning: #B07C2E;

  --shadow-card: 0 10px 30px rgba(40,25,10,0.10);
  --receipt-rule: 1px dashed var(--border-strong);

  color-scheme: light;
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
/* scroll-padding-top: cíle kotev (#main, /faq#otazka) by jinak skončily pod
   přilepenou hlavičkou. Hodnota ~ výška lišty + rezerva. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: var(--leading-body);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
:where(a) { color: var(--blush); text-decoration: none; }
:where(a:hover) { color: var(--orchid-bright); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="light"] :where(a) { color: var(--orchid); }
[data-theme="light"] :where(a:hover) { color: var(--orchid-hover); }

:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: var(--leading-display); margin: 0 0 0.4em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--blush); }
[data-theme="light"] :is(h1,h2,h3) em { color: var(--orchid); }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow .no { font-family: var(--font-mono); color: var(--orchid-bright); font-weight: 400; }

.mono, .price, .ordercode { font-family: var(--font-mono); }
.price { font-size: 1.05em; letter-spacing: 0.01em; font-weight: 500; }
.ordercode {
  letter-spacing: 0.08em;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 0.9em;
  white-space: nowrap;
}

.container { max-width: var(--aw-maxw); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- 3. Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.28em; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: 600 0.95rem/1.2 var(--font-ui);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  position: relative;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orchid); color: var(--text-on-orchid); }
.btn-primary:hover { background: var(--orchid-hover); color: var(--text-on-orchid); }
.btn-ghost { background: transparent; color: var(--text-1); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-2); color: var(--text-1); background: var(--surface-2); }
.btn-quiet { background: var(--surface-2); color: var(--text-1); border-color: var(--hairline); }
.btn-quiet:hover { background: var(--surface-3); color: var(--text-1); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-dim); color: var(--danger); }
.btn-sm { min-height: 34px; padding: 5px 14px; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: aw-spin 700ms linear infinite;
}
.btn-ghost.is-loading::after, .btn-quiet.is-loading::after { border-color: var(--border-strong); border-top-color: var(--text-1); }
@keyframes aw-spin { to { transform: rotate(360deg); } }

/* ---------- 5. Forms ---------- */
.field { display: block; margin-bottom: 18px; max-width: 480px; }
.field-label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field-label .opt { color: var(--text-3); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: 400 0.95rem/1.4 var(--font-ui);
  color: var(--text-1); background: var(--surface-1);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline-offset: 0; }
.input-mono { font-family: var(--font-mono); letter-spacing: 0.06em; }
.field-help { font-size: 0.8rem; color: var(--text-3); margin-top: 5px; }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--danger); }
.field-error { display: flex; gap: 6px; align-items: baseline; font-size: 0.8rem; color: var(--danger); margin-top: 5px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; max-width: 480px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--orchid); flex: none; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.switch .track {
  width: 44px; height: 24px; border-radius: var(--radius-pill);
  background: var(--surface-3); border: 1px solid var(--border-strong);
  position: relative; flex: none; transition: background var(--dur-base) var(--ease-out);
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--text-2); transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.switch input:checked + .track { background: var(--orchid); border-color: var(--orchid); }
.switch input:checked + .track::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .track { outline: var(--focus-ring); outline-offset: 2px; }

/* ---------- 6. Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font: 600 0.72rem/1 var(--font-ui);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 9px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline); background: var(--surface-2); color: var(--text-2);
  white-space: nowrap;
}
.badge .icon { width: 13px; height: 13px; }
.badge-verified { border-color: var(--gold-deep); color: var(--gold-text); background: var(--gold-dim); }
.badge-wear { background: var(--gold); border-color: var(--gold); color: #201500; }
.badge-premium { border-color: var(--gold-deep); color: var(--gold-text); background: transparent; }
.badge-level { font-family: var(--font-mono); text-transform: none; letter-spacing: 0.04em; }
.badge-success { border-color: transparent; background: var(--success-dim); color: var(--success); }
.badge-danger { border-color: transparent; background: var(--danger-dim); color: var(--danger); }
.badge-warning { border-color: transparent; background: var(--warning-dim); color: var(--warning); }
.badge-orchid { border-color: transparent; background: var(--orchid-dim); color: var(--orchid-bright); }
[data-theme="light"] .badge-orchid { color: var(--orchid); }

/* ---------- 7. Trust Score ---------- */
.trust { display: inline-flex; align-items: baseline; gap: 10px; }
.trust-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; }
.trust-num small { font-size: 0.8rem; color: var(--text-3); font-weight: 400; }
.trust-bar { display: flex; gap: 3px; align-self: center; }
.trust-bar i { width: 10px; height: 14px; background: var(--surface-3); border-radius: 2px; }
.trust-bar i.on { background: var(--success); }
.trust.is-low .trust-bar i.on { background: var(--warning); }
.trust-label { font-size: 0.75rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-3); }

/* ---------- 8. Cards ---------- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

/* Listing card. Count-free by default; .lcard-stats is an optional slot. */
.lcard { display: block; width: 100%; max-width: 260px; color: inherit; overflow: hidden; transition: border-color var(--dur-fast) var(--ease-out); }
.lcard:hover { text-decoration: none; color: inherit; border-color: var(--border-strong); }
.lcard-media { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcard-texture {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% 10%, var(--orchid-dim), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(127,127,140,0.06) 10px 11px);
}
.lcard-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 16px; color: var(--text-2); font-size: 0.82rem;
}
.lcard-lock .icon { width: 26px; height: 26px; color: var(--text-3); }
.lcard-flag { position: absolute; top: 10px; left: 10px; }
.lcard-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.lcard-title { font-size: 0.95rem; font-weight: 600; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lcard-meta { font-size: 0.8rem; color: var(--text-3); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lcard-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lcard-stats { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); display: flex; gap: 12px; }
.lcard.is-sold .lcard-media::after {
  content: ""; position: absolute; inset: 0; background: color-mix(in oklab, var(--surface-0) 55%, transparent);
}
.lcard.is-sold .lcard-title, .lcard.is-sold .price { color: var(--text-3); }

/* Seller card */
.scard { padding: 16px; display: grid; grid-template-columns: 52px 1fr; gap: 12px 14px; max-width: 360px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-3); border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--text-2);
  overflow: hidden; flex: none;
}
.avatar-sm { width: 36px; height: 36px; font-size: 0.95rem; }
.scard-name { display: flex; align-items: center; gap: 8px; font-weight: 600; flex-wrap: wrap; }
.scard-sub { font-size: 0.82rem; color: var(--text-3); }
.scard-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--hairline); padding-top: 12px; flex-wrap: wrap; }

/* ---------- 9. Receipt (the trust register) ---------- */
.receipt {
  font-family: var(--font-mono);
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 420px;
  box-shadow: var(--shadow-card);
  font-size: 0.85rem;
}
.receipt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: var(--receipt-rule); }
.receipt-brand { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-1); }
.receipt-status { color: var(--success); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.receipt-rows { display: grid; gap: 8px; padding: 14px 0; border-bottom: var(--receipt-rule); }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; }
.receipt-row dt { color: var(--text-3); margin: 0; }
.receipt-row dd { margin: 0; text-align: right; color: var(--text-1); }
.receipt-foot { padding-top: 12px; color: var(--text-3); font-size: 0.75rem; line-height: 1.6; overflow-wrap: anywhere; }

/* ---------- 10. Status timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 480px; }
.timeline li { position: relative; padding: 0 0 22px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 9px; top: 22px; bottom: 0;
  width: 2px; background: var(--hairline);
}
.timeline li:last-child::before { display: none; }
.tl-dot {
  position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid var(--border-strong);
  background: var(--surface-1);
  display: flex; align-items: center; justify-content: center;
}
.timeline .is-done .tl-dot { background: var(--success); border-color: var(--success); }
.timeline .is-done .tl-dot::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }
.timeline .is-now .tl-dot { border-color: var(--orchid-bright); }
.timeline .is-now .tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orchid-bright); }
.tl-title { font-weight: 600; font-size: 0.95rem; }
.timeline .is-now .tl-title { color: var(--orchid-bright); }
[data-theme="light"] .timeline .is-now .tl-title { color: var(--orchid); }
.tl-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.tl-body { font-size: 0.85rem; color: var(--text-2); margin-top: 2px; }

/* ---------- 11. Navigation ---------- */
/* Lišta je full-bleed (pozadí + spodní linka jdou od kraje ke kraji), ale její
   OBSAH sedí ve stejném 1240px sloupci jako zbytek stránky — jinak logo a
   tlačítka lepí na okraje obrazovky a nesrovnají se s obsahem pod nimi.
   Sticky: banner nad ní odscrolluje (přečte se jednou), lišta zůstane.
   z-index 50 = nad obsahem, ale pod cookie sheetem (90) a age gate (100). */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-0);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
/* Stín se objeví, až se lišta reálně "odlepí" — jinak působí jako chyba. */
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28); }
[data-theme="light"] .site-header.is-stuck { box-shadow: 0 6px 20px rgba(40, 25, 10, 0.10); }
.header-inner {
  max-width: var(--aw-maxw); margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 20px;
}
/* Logo — Playfair 600 jako na původním webu (nový design měl 400, což je pro
   značku moc tenké). Hover: slovo přejde do magenty, tečka do světlejší blush —
   dvoutónový přechod, ne jen "něco se rozsvítí". Přechod dědí z globálního `a`. */
.logo {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  color: var(--text-1); white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.logo .dot { color: var(--orchid-bright); transition: color var(--dur-fast) var(--ease-out); }
.logo:hover { color: var(--orchid-bright); text-decoration: none; }
.logo:hover .dot { color: var(--blush); }
[data-theme="light"] .logo:hover { color: var(--orchid); }
[data-theme="light"] .logo:hover .dot { color: var(--orchid-bright); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-2); font-size: 0.9rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--text-1); background: var(--surface-2); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text-1); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: transparent; border: 1px solid transparent; color: var(--text-2); cursor: pointer;
}
.iconbtn:hover { color: var(--text-1); background: var(--surface-2); }

/* Mobile bottom tab bar (console) */
.tabbar {
  display: flex; justify-content: space-around; gap: 2px;
  background: var(--surface-1); border-top: 1px solid var(--hairline);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  max-width: 430px;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 0; flex: 1 1 0; padding: 6px 6px; border-radius: var(--radius-sm);
  color: var(--text-3); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.02em;
  text-align: center;
}
.tabbar a span { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.tabbar a:hover { text-decoration: none; color: var(--text-2); }
.tabbar a[aria-current="page"] { color: var(--orchid-bright); }
[data-theme="light"] .tabbar a[aria-current="page"] { color: var(--orchid); }
.tabbar .icon { width: 22px; height: 22px; }

/* Console sidebar (desktop) */
.sidebar {
  width: 240px; padding: 16px 10px;
  background: var(--surface-1); border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 2px;
}
.sidebar-group { font-size: 0.68rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-3); padding: 14px 12px 6px; }
.sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 0.9rem; font-weight: 500;
}
.sidebar a:hover { color: var(--text-1); background: var(--surface-2); text-decoration: none; }
.sidebar a[aria-current="page"] { color: var(--text-1); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--orchid); }
.sidebar .count { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }

/* ---------- 12. Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hairline); overflow-x: auto; }
.tabs a, .tabs button {
  background: none; border: 0; cursor: pointer;
  padding: 10px 14px; font: 600 0.9rem var(--font-ui);
  color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap;
}
.tabs :is(a,button):hover { color: var(--text-1); text-decoration: none; }
.tabs :is(a,button)[aria-selected="true"], .tabs a[aria-current="page"] { color: var(--text-1); border-bottom-color: var(--orchid); }

/* ---------- 13. Pagination ---------- */
.pagination { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 10px;
  font-family: var(--font-mono); font-size: 0.85rem;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  color: var(--text-2);
}
.pagination a:hover { border-color: var(--border-strong); color: var(--text-1); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--surface-2); color: var(--text-1); border-color: var(--border-strong); }
.pagination .gap { border: 0; min-width: 20px; color: var(--text-3); }

/* ---------- 14. Modal / Toast ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(8,8,10,0.7);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--surface-1); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  width: 100%; max-width: 440px; padding: 24px;
}
.modal-title { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 8px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 12px 14px; max-width: 380px; font-size: 0.9rem;
}
.toast .icon { margin-top: 2px; }
.toast-success .icon { color: var(--success); }
.toast-danger .icon { color: var(--danger); }
.toast .close { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 2px; }

/* ---------- 15. Empty / error states ---------- */
.empty {
  border: 1px dashed var(--border-strong); border-radius: var(--radius-md);
  padding: 40px 24px; text-align: center; max-width: 560px;
  display: grid; gap: 10px; justify-items: center;
}
.empty .icon { width: 30px; height: 30px; color: var(--text-3); }
.empty h3 { margin: 0; }
.empty p { margin: 0; color: var(--text-2); max-width: 40ch; }
.empty .actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

.error-card {
  border: 1px solid var(--danger); background: var(--danger-dim);
  border-radius: var(--radius-md); padding: 14px 16px;
  display: flex; gap: 10px; align-items: flex-start; max-width: 560px; font-size: 0.92rem;
}
.error-card .icon { color: var(--danger); margin-top: 2px; }

/* ---------- 16. Skeletons ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-sm); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(127,127,140,0.12), transparent);
  animation: aw-shimmer 1.4s infinite;
}
@keyframes aw-shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }
.sk-line { height: 12px; margin: 8px 0; }
.sk-media { aspect-ratio: 4 / 5; border-radius: var(--radius-md); }

/* ---------- 17. Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.table th {
  text-align: left; font-size: 0.7rem; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--text-3); font-weight: 600;
  padding: 12px 14px; border-bottom: 1px solid var(--hairline); background: var(--surface-1);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-1); }
.table .num { text-align: right; font-family: var(--font-mono); }

/* ---------- 18. Utilities ---------- */
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
@media (min-width: 700px) { .grid-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.hairline-top { border-top: 1px solid var(--hairline); padding-top: 20px; }

/* ---------- 19. Page scaffolding (public site) ---------- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--surface-1); color: var(--text-1);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 14px; font-size: 0.85rem;
}
.skip-link:focus-visible { top: 12px; }

.banner {
  display: flex; gap: 10px; align-items: baseline; justify-content: center;
  padding: 9px 20px; font-size: 0.82rem; text-align: center;
  background: var(--surface-1); border-bottom: 1px solid var(--hairline);
  color: var(--text-2);
}
.banner strong { color: var(--text-1); }

.section { padding: 56px 0 8px; }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 640px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--text-2); }

/* Hero */
.hero { display: grid; gap: 40px; padding: 48px 0 24px; align-items: center; }
.hero-copy { display: grid; gap: 18px; justify-items: start; max-width: 560px; }
.hero-copy h1 { margin: 0; }
.hero-copy .lede { color: var(--text-2); font-size: 1.05rem; max-width: 46ch; margin: 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-3); padding: 0; margin: 6px 0 0; list-style: none; }
.hero-facts li { display: flex; gap: 6px; align-items: center; }
.hero-facts .icon { width: 15px; height: 15px; color: var(--text-3); }
.hero-proof { display: grid; gap: 10px; justify-items: start; }
.hero-proof-caption { font-size: 0.78rem; color: var(--text-3); max-width: 42ch; margin: 0; }
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding: 72px 0 40px; }
  .hero-proof { justify-self: end; }
}

/* How-it-works steps */
.steps { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface-1); padding: 20px; display: grid; gap: 8px; align-content: start; }
.steps .no { font-family: var(--font-mono); color: var(--orchid-bright); font-size: 0.8rem; }
[data-theme="light"] .steps .no { color: var(--orchid); }
.steps h3 { margin: 0; font-size: 1.35rem; }
.steps p { margin: 0; color: var(--text-2); font-size: 0.92rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Category grid */
.catgrid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); padding: 0; margin: 0; list-style: none; }
.catgrid a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  background: var(--surface-1); color: var(--text-1);
  padding: 16px 16px; font-family: var(--font-display); font-size: 1.15rem;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.catgrid a:hover { text-decoration: none; color: var(--text-1); border-color: var(--border-strong); background: var(--surface-2); }
.catgrid .icon { width: 16px; height: 16px; color: var(--text-3); flex: none; }
@media (min-width: 720px) { .catgrid { grid-template-columns: repeat(4, 1fr); } .catgrid a { padding: 20px 18px; font-size: 1.25rem; } }

/* Slow marquee rail */
.marquee { overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; padding: 4px 0; animation: aw-marquee 70s linear infinite; }
.marquee-set { display: flex; gap: 14px; padding-right: 14px; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee .lcard { width: 210px; flex: none; }
@keyframes aw-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
}

/* Breadcrumb */
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-3); padding: 14px 0 0; margin: 0; list-style: none; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb li + li::before { content: "·"; margin-right: 8px; color: var(--text-3); }

/* Category chip row */
.chiprow { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline); background: var(--surface-1);
  color: var(--text-2); font-size: 0.85rem; font-weight: 500; white-space: nowrap;
}
.chip:hover { text-decoration: none; color: var(--text-1); border-color: var(--border-strong); }
.chip[aria-current="page"] { color: var(--text-1); border-color: var(--orchid); background: var(--orchid-dim); }

/* Browse layout */
.browse { display: grid; gap: 28px; padding: 20px 0 8px; align-items: start; }
@media (min-width: 880px) { .browse { grid-template-columns: 260px 1fr; } }
.filters { border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface-1); }
.filters summary {
  list-style: none; cursor: pointer; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.9rem;
}
.filters summary::-webkit-details-marker { display: none; }
.filters summary .icon { width: 16px; height: 16px; color: var(--text-3); }
.filters summary::after { content: "＋"; margin-left: auto; color: var(--text-3); }
.filters[open] summary::after { content: "−"; }
.filters-body { padding: 4px 16px 16px; border-top: 1px solid var(--hairline); }
.filters-body .field { max-width: none; margin-bottom: 14px; }
.filters-actions { display: grid; gap: 8px; margin-top: 16px; }
.price-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--text-3); }

.browse-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.browse-head h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.6rem); }
.browse-count { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-3); }
.sortbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 10px 0 20px; font-size: 0.85rem; }
.sortbar .label { color: var(--text-3); margin-right: 6px; }
.sortbar a { color: var(--text-2); padding: 6px 10px; border-radius: var(--radius-sm); }
.sortbar a:hover { color: var(--text-1); background: var(--surface-2); text-decoration: none; }
.sortbar a[aria-current="page"] { color: var(--text-1); background: var(--surface-2); }

/* Listing detail */
.listing { display: grid; gap: 32px; padding: 20px 0 8px; align-items: start; }
@media (min-width: 880px) { .listing { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); } }
.gallery { display: grid; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 0; margin: 0; list-style: none; }
.thumbs li { position: relative; aspect-ratio: 1; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius-sm); overflow: hidden; }
.thumbs li[aria-current="true"] { border-color: var(--orchid); }
.attrs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; margin: 0; }
.attrs > div { border-top: 1px solid var(--hairline); padding-top: 10px; }
.attrs dt { font-size: 0.68rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.attrs dd { margin: 2px 0 0; font-size: 0.95rem; }
.buy-panel { padding: 20px; display: grid; gap: 14px; }
@media (min-width: 880px) { .buy-panel { position: sticky; top: 16px; } }
.buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-price .price { font-size: 1.7rem; }
.buy-price .ship { font-size: 0.82rem; color: var(--text-3); }
.escrow-note { display: flex; gap: 8px; align-items: flex-start; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); border-top: var(--receipt-rule); padding-top: 12px; line-height: 1.6; }
.escrow-note .icon { width: 15px; height: 15px; color: var(--success); margin-top: 2px; }

/* Auth */
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 40px 20px 64px; display: grid; gap: 20px; }
.auth-card { padding: 28px 24px; display: grid; gap: 4px; }
.auth-card h1, .auth-card h2 { margin: 0 0 4px; font-size: 1.7rem; }
.auth-sub { color: var(--text-2); font-size: 0.9rem; margin: 0 0 18px; }
.role-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.role-pick label {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 14px 16px; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.role-pick label:hover { background: var(--surface-2); }
.role-pick input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--orchid); grid-row: span 2; }
.role-pick input:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.role-pick .t { font-weight: 600; font-size: 0.95rem; }
.role-pick .d { font-size: 0.8rem; color: var(--text-3); grid-column: 2; }
.role-pick label:has(input:checked) { border-color: var(--orchid); background: var(--orchid-dim); }
.auth-alt { text-align: center; font-size: 0.85rem; color: var(--text-3); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 0.72rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; margin: 6px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--hairline); }

/* Console shell */
.console { display: grid; min-height: 100vh; grid-template-rows: auto 1fr; }
.console-body { display: grid; align-items: start; }
.console-main { padding: 20px 16px 110px; max-width: 760px; width: 100%; margin: 0 auto; min-width: 0; }
.console-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-width: none; }
@media (min-width: 880px) {
  .console-body { grid-template-columns: 240px 1fr; }
  .console-body > .sidebar { min-height: calc(100vh - 69px); }
  .console-main { padding: 32px 32px 120px; }
  .console-tabbar { display: none; }
}
@media (max-width: 879px) { .console-body > .sidebar { display: none; } }
.console-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.console-head h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.1rem); }

/* Form sections */
.formsec { border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface-1); padding: 20px 16px; margin-bottom: 16px; }
.formsec > legend, .formsec-head { display: flex; gap: 10px; align-items: baseline; font-weight: 600; font-size: 1rem; margin-bottom: 4px; padding: 0; }
.formsec-head .no { font-family: var(--font-mono); font-size: 0.75rem; color: var(--orchid-bright); }
[data-theme="light"] .formsec-head .no { color: var(--orchid); }
.formsec-sub { font-size: 0.82rem; color: var(--text-3); margin: 0 0 16px; }
.formsec .field { max-width: none; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* Photo upload */
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .upload-grid { grid-template-columns: repeat(5, 1fr); } }
.upload-slot {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--text-3); font-size: 0.68rem; cursor: pointer; text-align: center; padding: 6px;
}
.upload-slot:hover { border-color: var(--text-3); color: var(--text-2); }
.upload-slot.is-filled { border-style: solid; border-color: var(--hairline); overflow: hidden; }
.upload-slot .badge { position: absolute; top: 6px; left: 6px; }

/* Payout summary */
.payout {
  font-family: var(--font-mono); font-size: 0.82rem;
  border-top: var(--receipt-rule); margin-top: 6px; padding-top: 12px;
  display: grid; gap: 6px; color: var(--text-2);
}
.payout .rowline { display: flex; justify-content: space-between; gap: 14px; }
.payout .total { color: var(--text-1); font-weight: 600; }

/* Sticky form action bar */
.formbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface-1); border-top: 1px solid var(--hairline);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; justify-content: flex-end;
}
@media (min-width: 880px) { .formbar { left: 240px; } }
.formbar .status { margin-right: auto; align-self: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }

/* CTA band */
.cta-band {
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  background: var(--surface-1);
  padding: 32px 24px; display: grid; gap: 16px; justify-items: start;
}
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0; color: var(--text-2); max-width: 54ch; }
@media (min-width: 880px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 40px 36px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 72px; padding: 40px 0 32px; font-size: 0.85rem; color: var(--text-3); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: grid; gap: 10px; max-width: 300px; align-content: start; }
.footer-brand p { margin: 0; }
.footer-cols { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.footer-col h4 { font: 600 0.7rem var(--font-ui); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--text-1); }
.footer-legal { border-top: 1px solid var(--hairline); margin-top: 32px; padding-top: 18px; display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; font-size: 0.78rem; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1fr 2fr; } .footer-cols { grid-template-columns: repeat(3, 1fr); } }

/* Mobile header behaviour — flex je na .header-inner, ne na .site-header. */
@media (max-width: 719px) {
  .header-inner { flex-wrap: wrap; row-gap: 4px; padding: 10px 20px; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  /* Skryj scrollbar u vodorovné navigace, ať nekrájí řádek. */
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav { scrollbar-width: none; }
}

/* ---------- 20. Console dashboards & misc pages ---------- */
.statgrid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .statgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-card { border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface-1); padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.stat-card .lbl { font-size: 0.68rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.stat-card .val { font-family: var(--font-mono); font-size: 1.35rem; overflow-wrap: anywhere; }
.stat-card .sub { font-size: 0.75rem; color: var(--text-3); }

/* Messages */
.msgs { display: grid; gap: 16px; align-items: start; }
@media (min-width: 880px) { .msgs { grid-template-columns: 320px 1fr; } }
.conv { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); color: inherit; align-items: center; }
.conv:last-child { border-bottom: 0; }
.conv:hover { background: var(--surface-2); text-decoration: none; color: inherit; }
.conv[aria-current="true"] { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--orchid); }
.conv .who { font-weight: 600; font-size: 0.9rem; display: flex; gap: 8px; align-items: center; }
.conv .last { font-size: 0.8rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; display: block; }
.conv .when { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); flex: none; }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; min-height: 320px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: var(--radius-md); font-size: 0.92rem; background: var(--surface-2); border: 1px solid var(--hairline); }
.bubble.me { align-self: flex-end; background: var(--orchid-dim); border-color: var(--orchid-deep); }
.bubble .when { display: block; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-3); margin-top: 4px; }
.voicenote { display: flex; align-items: center; gap: 10px; }
.voicenote .bars { display: flex; gap: 2px; align-items: center; height: 22px; }
.voicenote .bars i { width: 3px; border-radius: 2px; background: var(--text-2); }
.msg-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--hairline); }
.msg-note { font-size: 0.72rem; color: var(--text-3); text-align: center; padding: 4px 16px 12px; margin: 0; }

/* Swipe deck */
.swipe-stage { position: relative; max-width: 340px; margin: 0 auto; aspect-ratio: 3 / 4.4; }
.swipe-card { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); }
.swipe-card.back1 { transform: scale(0.95) translateY(16px); z-index: -1; opacity: 0.65; }
.swipe-card.back2 { transform: scale(0.9) translateY(32px); z-index: -2; opacity: 0.35; }
.swipe-actions { display: flex; justify-content: center; gap: 18px; margin-top: 20px; }
.swipe-actions .iconbtn { width: 56px; height: 56px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface-1); }
.swipe-actions .iconbtn:hover { border-color: var(--text-2); }

/* FAQ accordion */
.faq-item { border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface-1); margin-bottom: 10px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: var(--text-3); flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 18px 16px; color: var(--text-2); font-size: 0.95rem; max-width: 70ch; margin: 0; }

/* Long-form document */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc p, .doc li { color: var(--text-2); }
.doc .doc-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); margin-bottom: 32px; }

/* Seller storefront */
.profile-head { display: grid; gap: 16px; padding: 32px 0 8px; }
@media (min-width: 720px) { .profile-head { grid-template-columns: auto 1fr auto; align-items: center; } }
.profile-head .avatar { width: 84px; height: 84px; font-size: 2rem; }

/* Request card */
.req-card { padding: 16px; display: grid; gap: 8px; }
.req-card .req-title { font-weight: 600; margin: 0; }
.req-card .req-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-3); align-items: center; }

/* Error pages */
.errpage { min-height: 55vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 40px 20px; justify-items: center; }
.errpage .code { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-3); letter-spacing: 0.2em; }

/* Interrupts */
.gate { max-width: 420px; }
.cookiebar { background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 16px; display: grid; gap: 12px; max-width: 560px; }

/* ---------- 21. Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   INTEGRACE DO APLIKACE — dopsáno při zapojení do EJS.
   Designérka kreslila gate/cookiebar jako statické ukázky, takže jim
   chybí pozicování v reálné stránce. Nic z výše uvedeného nepřepisuje.
   ============================================================ */

/* Age gate — celoobrazovkový scrim (modal .gate uvnitř) */
.gate-scrim {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(6px);
}
[data-theme="light"] .gate-scrim { background: rgba(250, 247, 244, 0.96); }

/* Cookie sheet — spodní lišta přes celou šířku */
.cookiebar {
  position: fixed; z-index: 90;
  left: 20px; right: 20px; bottom: 20px;
  margin: 0 auto;
}

/* Panel předvoleb (necessary / analytics / marketing) */
.cookie-panel { border-top: var(--receipt-rule); padding-top: 12px; display: grid; gap: 10px; }
.cookie-panel[hidden] { display: none; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-row span { display: grid; gap: 2px; }
.cookie-row strong { font-size: 0.85rem; color: var(--text-1); }
.cookie-row small { font-size: 0.75rem; color: var(--text-3); line-height: 1.5; }
.cookie-row input[type="checkbox"] {
  width: 18px; height: 18px; flex: none; cursor: pointer; accent-color: var(--orchid);
}
.cookie-row input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.6; }

/* Jazykový přepínač v hlavičce */
.lang-select {
  font-family: var(--font-ui); font-size: 0.82rem;
  color: var(--text-2); background: transparent;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 6px 8px; cursor: pointer; max-width: 130px;
}
.lang-select:hover { color: var(--text-1); border-color: var(--border-strong); }
@media (max-width: 720px) { .lang-select { display: none; } }

/* Cover prodejce — archetyp ho neměl, ale profil ho umí nastavit (cover_path) */
.profile-cover {
  height: 180px; margin-top: 20px;
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  background: var(--surface-2) center / cover no-repeat;
}
@media (min-width: 720px) { .profile-cover { height: 220px; } }

/* Trust Score — rozpad na 7 komponent (spec 7.10: "transparentní rozpad na kliknutí") */
.tcomp { display: grid; gap: 12px; margin: 0; }
.tcomp-row { display: grid; gap: 5px; }
.tcomp-top { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.tcomp-top b { font-family: var(--font-mono); font-weight: 500; color: var(--text-2); }
.tcomp-bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.tcomp-bar i { display: block; height: 100%; background: var(--orchid); border-radius: 3px; }

/* Kalkulačky v /tools — vstupy vlevo, výsledná "účtenka" vpravo */
.calc-layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 880px) { .calc-layout { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); } }

/* Odhad ceny — rozpětí + vysvětlení, proč zrovna takové */
.pricerange { font-family: var(--font-mono); font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 500; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pricerange .sep { color: var(--text-3); }
.factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.factors li { display: flex; gap: 8px; font-size: 0.88rem; color: var(--text-2); }
.factors li::before { content: "—"; color: var(--orchid-bright); flex: none; }
[data-theme="light"] .factors li::before { color: var(--orchid); }

/* Chybová / potvrzovací hláška ve formulářích (login, reset hesla…) */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); font-size: 0.88rem; margin: 0 0 16px; }
.alert .icon { flex: none; margin-top: 2px; }
.alert-danger { background: var(--danger-dim); color: var(--danger); }
.alert-success { background: var(--success-dim); color: var(--success); }

/* ── Statické dokumenty (about, terms, privacy, safety, help, 2257…) ── */
.lead { font-size: 1.05rem; color: var(--text-2); max-width: 62ch; }
.doc .lead { margin-bottom: 8px; }
.doc-body { display: grid; gap: 4px; }
.doc-body section { scroll-margin-top: 84px; }
.doc-card { padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.doc-card h3 { margin: 0; font-size: 1.05rem; }
.doc-card p { margin: 0; color: var(--text-2); font-size: 0.9rem; }
.doc-rule { border: 0; border-top: 1px solid var(--gold-deep); margin: 32px 0; }
.doc-hero { display: grid; gap: 20px; align-items: center; padding-bottom: 8px; }
@media (min-width: 720px) { .doc-hero { grid-template-columns: 1fr auto; } }
.doc-seal {
  display: grid; place-items: center; gap: 2px;
  width: 108px; height: 108px; border-radius: 50%;
  border: 1px solid var(--gold-deep); background: var(--gold-dim); color: var(--gold-text);
  font-family: var(--font-display);
}
.doc-seal span { font-size: 1.8rem; line-height: 1; }
.doc-seal small { font-size: 0.6rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; font-family: var(--font-ui); }

/* Legenda Trust Score na /safety — barvy odpovídají pásmům ze specifikace */
.tschips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.tschip {
  font: 600 0.72rem/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid transparent;
}
.tschip.green  { background: var(--success-dim); color: var(--success); }
.tschip.yellow { background: var(--gold-dim);    color: var(--gold-text); }
.tschip.orange { background: var(--warning-dim); color: var(--warning); }
.tschip.red    { background: var(--danger-dim);  color: var(--danger); }

.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; }
