/* ============================================================================
   VEZZO — system wizualny
   Warm ink + paper, jeden akcent eukaliptusowy, Bricolage duże,
   ścięty róg jako sygnatura. Editorial / premium resale.
   ============================================================================ */

:root {
  --ink: #14110c;
  --ink-2: #221c14;
  --ink-soft: #6a6357;
  --ink-faint: #a49b8b;
  --paper: #f7f3ea;
  --paper-2: #efe8da;
  --surface: #fffdf8;
  --line: #ded4bf;
  --line-2: #e9e1cf;
  --on-ink: rgba(247, 243, 234, 0.72);
  --on-ink-soft: rgba(247, 243, 234, 0.5);
  --hair-ink: rgba(247, 243, 234, 0.14);

  --accent: #3f8f70;
  --accent-deep: #2b6450;
  --accent-soft: #e3efe8;
  --accent-bright: #a2d6bf;

  --gold: #b58731;
  --gold-soft: #f4ead2;
  --danger: #a53c28;
  --danger-soft: #f6e4de;

  --notch: 16px;
  --notch-sm: 10px;
  --clip: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  --clip-sm: polygon(0 0, 100% 0, 100% calc(100% - var(--notch-sm)), calc(100% - var(--notch-sm)) 100%, 0 100%);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 18px; --s5: 28px;
  --s6: 44px; --s7: 68px; --s8: 104px; --s9: 148px;

  --sh1: 0 1px 2px rgba(20, 14, 8, .06);
  --sh2: 0 14px 30px -16px rgba(20, 14, 8, .22);
  --sh3: 0 34px 70px -26px rgba(20, 14, 8, .34);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .24s;

  --hdr-h: 72px;
  --wrap: 1280px;

  --f-disp: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
/* atrybut hidden zawsze chowa — bez tego reguły z `display:` (np. .btn, .pkmt) go nadpisują */
[hidden] { display: none !important; }
/* bez strzałek góra/dół na polach liczbowych — w całej witrynie */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; font-family: var(--f-body); font-size: 15.5px; line-height: 1.55;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-disp); letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* paski przewijania: zostawiamy natywne, auto-chowające się paski przeglądarki
   (bez wymuszania zawsze-widocznego toru); w Firefoksie tylko cieńsze */
* { scrollbar-width: thin; }

/* tylko poziomy padding — pionowy zostawiamy sekcjom (inaczej mobilna reguła .container zerowałaby ich odstępy) */
.container { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.page-wrap { min-height: 40vh; padding-bottom: clamp(56px, 8vw, 104px); }
/* strony kończące się sekcją pełnej szerokości (własne tło) nie potrzebują odstępu nad stopką */
.page-wrap:has(> .trust:last-child, > .cta:last-child, > .how:last-child, > .hero:last-child) { padding-bottom: 0; }

/* full-bleed helper: sekcja szeroka na 100vw, treść dalej w .container */
.hero, .how, .trust, .cta, .ft { width: 100vw; margin-inline: calc(50% - 50vw); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--rd, 0s), transform .7s var(--ease) var(--rd, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ============================================================================
   NAGŁÓWEK
   ============================================================================ */
.hdr {
  position: sticky; top: 0; z-index: 50; background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hdr.is-stuck { border-color: var(--line); box-shadow: var(--sh2); background: var(--surface); }
.hdr.is-hidden { transform: translateY(-100%); }

.hdr-main {
  position: relative;
  height: var(--hdr-h); display: flex; align-items: center; gap: var(--s5);
}
.hdr-logo { display: flex; align-items: center; gap: 9px; font-family: var(--f-disp); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; flex-shrink: 0; }
.hdr-logo-mark { width: 30px; height: 30px; border-radius: 50%; }

/* nawigacja trybów: Kategorie (trigger) + Licytacje / Swipe (zakładki) */
.hdr-cat { flex: 1; display: flex; align-items: center; gap: 7px; }

.hdr-cat-btn {
  display: inline-flex; align-items: center; gap: 8px; border: none;
  padding: 9px 15px 9px 13px; border-radius: 10px; background: var(--ink); color: var(--paper);
  font: 800 13px var(--f-body); letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 3px 10px -3px rgba(20, 14, 8, .3);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform .12s var(--ease);
}
.hdr-cat-btn:hover { background: var(--ink-2); box-shadow: 0 6px 16px -4px rgba(20, 14, 8, .4); }
.hdr-cat-btn:active { transform: scale(.97); }
.hdr-cat-btn.is-open { background: var(--accent); box-shadow: 0 6px 16px -4px rgba(63, 143, 112, .5); }
.hdr-cat-btn .caret { opacity: .65; transition: transform var(--dur) var(--ease); }
.hdr-cat-btn.is-open .caret { transform: rotate(180deg); }

.hdr-mode-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 10px;
  font: 700 12.5px var(--f-body); color: var(--ink-soft); white-space: nowrap;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), transform .12s var(--ease);
}
.hdr-mode-link svg { opacity: .8; transition: opacity var(--dur) var(--ease); }
.hdr-mode-link:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }
.hdr-mode-link:hover svg { opacity: 1; }
.hdr-mode-link:active { transform: scale(.96); }
.hdr-mode-link.is-active { color: var(--paper); background: var(--ink); box-shadow: none; }
.hdr-mode-link.is-active svg { opacity: 1; }

.hdr-mode-auction svg { color: var(--gold); opacity: 1; }
.hdr-mode-auction:hover { color: #7d5b16; box-shadow: inset 0 0 0 1.5px var(--gold); background: var(--gold-soft); }
.hdr-mode-auction.is-active { background: var(--gold); color: #fff; box-shadow: 0 4px 12px -3px rgba(181, 135, 49, .5); }
.hdr-mode-auction.is-active svg { color: #fff; }

/* pełnoszerokość panelu kategorii */
.catpanel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 45;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh3);
  animation: catdrop .2s var(--ease);
}
@keyframes catdrop { from { opacity: 0; transform: translateY(-8px); } }
.catpanel-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(20, 14, 8, .28); }
.catpanel-inner { display: grid; grid-template-columns: 232px 1fr; gap: 0; min-height: 320px; max-height: min(70vh, 620px); }
.catpanel-l1 { border-right: 1px solid var(--line-2); padding: var(--s4) 0; display: flex; flex-direction: column; }
.catpanel-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left;
  padding: 11px 20px 11px 4px; border: none; background: none; cursor: pointer;
  font: 700 14.5px var(--f-body); color: var(--ink-soft); transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.catpanel-tab svg { opacity: 0; transition: opacity var(--dur) var(--ease); }
.catpanel-tab:hover, .catpanel-tab.active { color: var(--ink); }
.catpanel-tab.active { background: var(--paper-2); font-weight: 800; }
.catpanel-tab.active svg { opacity: 1; color: var(--accent-deep); }
.catpanel-viewall { margin-top: auto; padding: var(--s4) 4px 4px; font: 800 13px var(--f-body); color: var(--accent-deep); }
.catpanel-viewall:hover { text-decoration: underline; }
.catpanel-body { padding: var(--s5) var(--s5); overflow-y: auto; }
.catpanel-group { display: none; column-count: 3; column-gap: var(--s5); }
.catpanel-group.active { display: block; }
.catpanel-col { break-inside: avoid; margin-bottom: var(--s5); }
.catpanel-l2 { display: block; font-family: var(--f-disp); font-weight: 800; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: var(--s2); }
.catpanel-l2:hover { color: var(--accent-deep); }
.catpanel-l3 { display: block; font-size: 13.5px; color: var(--ink-soft); padding: 4px 0; transition: color var(--dur) var(--ease); }
.catpanel-l3:hover { color: var(--accent-deep); }

.hdr-actions { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }
.hdr-icon {
  position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: none; background: none; color: var(--ink); cursor: pointer; border-radius: 4px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.hdr-icon:hover { background: var(--paper-2); color: var(--accent-deep); }
.hdr-badge {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; background: var(--accent);
  color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.hdr-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.hdr-sell { margin-left: var(--s2); }

.hdr-account { position: relative; }
.hdr-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh3); clip-path: var(--clip-sm); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); padding: var(--s2) 0;
}
.hdr-account.open .hdr-menu { opacity: 1; visibility: visible; transform: none; }
.hdr-menu-name { font-family: var(--f-disp); font-weight: 800; font-size: 14px; padding: 6px 18px 8px; margin: 0; }
.hdr-menu a, .hdr-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--ink);
  border: none; background: none; font-family: var(--f-body); cursor: pointer;
}
.hdr-menu a:hover, .hdr-menu button:hover { background: var(--accent-soft); color: var(--accent-deep); }
.hdr-menu-div { border-top: 1px solid var(--line-2); margin: var(--s2) 0; }
.hdr-menu form button { color: var(--danger); }

.hdr-burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; }
.hdr-burger span { width: 20px; height: 2px; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }

/* rozwijana wyszukiwarka */
.hdr-search {
  overflow: hidden; max-height: 0; border-top: 1px solid transparent;
  transition: max-height .35s var(--ease), border-color var(--dur) var(--ease), padding var(--dur) var(--ease);
  background: var(--surface);
}
.hdr-search.open { max-height: 120px; border-color: var(--line); padding: var(--s3) 0; }
/* border zwykły, nie clip-path (na Windows przy skalowaniu 125/150% clip-path + box-shadow
   zostawiał włosowate przebłyski na rogach); overflow: hidden dokleja skrajne segmenty
   idealnie do zaokrąglonych rogów — bez skrawków tła */
.search-form { display: flex; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.search-form:focus-within { border-color: var(--accent); }
.search-type-dropdown { position: relative; flex-shrink: 0; }
.search-type-btn { height: 100%; padding: 12px 15px; border: none; border-right: 1px solid var(--line-2); border-radius: 8.5px 0 0 8.5px; background: var(--paper-2); font: 700 13px var(--f-body); color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.search-type-btn .caret { color: var(--ink-soft); }
/* menu przeniesione JS-em do <body> i pozycjonowane fixed — nic go nie ucina (overflow rodzica) */
.search-type-menu {
  position: fixed; min-width: 150px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh2); z-index: 90; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); border-radius: 8px; overflow: hidden;
}
.search-type-menu.open { opacity: 1; visibility: visible; transform: none; }
.search-type-menu button { display: block; width: 100%; text-align: left; padding: 11px 15px; border: none; background: none; font: 500 14px var(--f-body); color: var(--ink); cursor: pointer; }
.search-type-menu button[hidden] { display: none; }
.search-type-menu button:hover { background: var(--accent-soft); color: var(--accent-deep); }
/* font-size min. 16px — poniżej tego mobilne przeglądarki (Safari/Chrome) łapią focus i dociskają zoom całej strony,
   przez co pasek wygląda jakby "wystawał" poza ekran po obu stronach */
.search-form input[type=text] { flex: 1; padding: 13px 16px; border: none; outline: none; background: transparent; font: 500 16px var(--f-body); color: var(--ink); min-width: 0; }
.search-form input::placeholder { color: var(--ink-faint); }
.search-camera-btn { display: flex; align-items: center; padding: 0 14px; border: none; border-left: 1px solid var(--line-2); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.search-camera-btn:hover { color: var(--accent-deep); background: var(--accent-soft); }
.search-form button[type=submit] { padding: 13px 26px; border: none; border-radius: 0 8.5px 8.5px 0; background: var(--accent); color: #fff; font: 800 14px var(--f-body); cursor: pointer; transition: background var(--dur) var(--ease); }
.search-form button[type=submit]:hover { background: var(--accent-deep); }

/* szuflada */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; z-index: 1; background: rgba(20, 14, 8, .5); opacity: 0; transition: opacity .3s var(--ease); }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0; z-index: 2; width: min(340px, 86vw); background: var(--surface);
  transform: translateX(-100%); transition: transform .35s var(--ease); display: flex; flex-direction: column;
  padding: var(--s4); overflow-y: auto;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.drawer-close { border: none; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); width: 40px; height: 40px; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-all { padding: 14px 4px; font-family: var(--f-disp); font-weight: 800; font-size: 18px; border-bottom: 1px solid var(--line-2); }
.drawer-all.drawer-mode { font-size: 14.5px; font-weight: 700; padding: 11px 4px; color: var(--ink-soft); border-bottom: 1px solid var(--line-2); }
.drawer-all.drawer-mode-auction { color: var(--gold); }
.drawer-cat { border-bottom: 1px solid var(--line-2); }
.drawer-cat > summary { padding: 14px 4px; font-family: var(--f-disp); font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.drawer-cat > summary::-webkit-details-marker { display: none; }
.drawer-cat > summary::after { content: "+"; font-family: var(--f-body); font-weight: 400; color: var(--ink-soft); }
.drawer-cat[open] > summary::after { content: "–"; }
.drawer-cat-body { padding: 0 0 var(--s3) 10px; }
.drawer-sub > summary { padding: 9px 4px; font-size: 14.5px; font-weight: 600; cursor: pointer; list-style: none; }
.drawer-sub > summary::-webkit-details-marker { display: none; }
.drawer-sub > summary a { color: var(--ink); }
.drawer-sub > div { padding: 0 0 var(--s2) 12px; display: flex; flex-direction: column; }
.drawer-sub > div a { padding: 6px 4px; font-size: 13.5px; color: var(--ink-soft); }
.drawer-foot { margin-top: var(--s4); padding-top: var(--s4); display: grid; gap: var(--s2); }

/* ============================================================================
   PRZYCISKI
   ============================================================================ */
.btn {
  --_n: var(--notch-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font: 800 14px var(--f-body); letter-spacing: -0.01em; cursor: pointer; border: none;
  background: var(--ink); color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--_n)), calc(100% - var(--_n)) 100%, 0 100%);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--sh2); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn-lg { padding: 16px 32px; font-size: 15px; --_n: var(--notch); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-secondary:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
/* hover: wypełnienie akcentem — czytelne na jasnym i ciemnym tle (currentColor jako tło znikało) */
.btn-ghost:hover { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-link { background: none; border: none; color: var(--accent-deep); font: 700 14px var(--f-body); cursor: pointer; padding: 0; text-underline-offset: 3px; }
.btn-link:hover { text-decoration: underline; }

/* ============================================================================
   HERO
   ============================================================================ */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 640px); align-content: center; min-height: min(72vh, 640px); padding: clamp(48px, 7vw, 92px) 0; }
.hero-copy { max-width: 100%; }
.hero-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-bright); margin: 0 0 var(--s4); }
.hero-title { font-family: var(--f-disp); font-weight: 800; font-size: clamp(42px, 7vw, 88px); line-height: .96; letter-spacing: -0.045em; margin: 0 0 var(--s4); color: var(--paper); }
.hero-dot { color: var(--accent-bright); }
.hero-sub { font-size: clamp(15px, 1.5vw, 17px); color: var(--on-ink); max-width: 44ch; margin: 0 0 var(--s5); line-height: 1.6; }
.hero-sub strong { color: var(--paper); }
.hero-cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s6); }
.hero-cta .btn { background: var(--accent); color: #fff; }
.hero-cta .btn:hover { background: var(--paper); color: var(--ink); }
.hero-cta .btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--hair-ink); }
.hero-cta .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent-bright); color: var(--accent-bright); background: transparent; }
.hero-stats { display: flex; gap: var(--s6); }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stat { font-family: var(--f-disp); font-weight: 800; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; color: var(--paper); }
.hero-stats small { font-size: 12px; color: var(--on-ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* jedno duże zdjęcie, pełna wysokość herо, dobiega do prawej krawędzi ekranu */
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: clamp(360px, 44%, 760px); z-index: 1; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 40%;
  background: linear-gradient(90deg, var(--ink), rgba(20, 14, 8, 0)); z-index: 2;
}
.hero-media::after {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 22px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 0 100%); z-index: 3;
}
.hero-chip {
  position: absolute; left: var(--s5); top: var(--s5); z-index: 4; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(20, 14, 8, .55); backdrop-filter: blur(6px); color: var(--paper);
  font: 700 12px var(--f-body); letter-spacing: .01em; padding: 8px 13px; clip-path: var(--clip-sm);
}
.hero-mark { position: absolute; left: -34px; bottom: 26px; width: 96px; aspect-ratio: 1; z-index: 5; background: var(--ink); border-radius: 50%; padding: 6px; }
.hero-mark canvas { width: 100%; height: 100%; }
.hero-mark-fallback { position: absolute; inset: 24%; object-fit: contain; opacity: .95; }

/* marquee */
.marq { position: relative; z-index: 4; border-top: 1px solid var(--hair-ink); overflow: hidden; background: var(--ink); }
.marq-track { display: flex; align-items: center; gap: var(--s4); width: max-content; padding: 14px 0; animation: marq 70s linear infinite; user-select: none; will-change: transform; }
.marq:hover .marq-track { animation-play-state: paused; }
.marq-track span { font-family: var(--f-disp); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--on-ink); white-space: nowrap; }
.marq-track i { width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); flex-shrink: 0; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ============================================================================
   SEKCJE STRONY GŁÓWNEJ — wspólne
   ============================================================================ */
.hp { padding: clamp(52px, 7vw, 96px) 0; }
.hp-head { display: flex; align-items: baseline; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }
.hp-num { font-family: var(--f-disp); font-weight: 800; font-size: 15px; letter-spacing: .12em; color: var(--accent-deep); }
.hp-head-dark .hp-num { color: var(--accent-bright); }
.hp-h2 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(28px, 4.4vw, 46px); letter-spacing: -0.035em; flex: 1; }
.hp-link { font-weight: 700; font-size: 14px; color: var(--accent-deep); white-space: nowrap; }
.hp-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================================
   SIATKA OGŁOSZEŃ + KARTA PRODUKTU — wszystkie karty identycznego rozmiaru
   ============================================================================ */
.item-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));   /* zawsze 5 w rzędzie (ostatni rząd może mieć mniej) */
  grid-auto-rows: 1fr;                 /* każdy wiersz tej samej wysokości */
  gap: var(--s5) var(--s4);
  margin-bottom: var(--s8);
}
@media (max-width: 1180px) { .item-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.item-grid > * { min-width: 0; }        /* pozwala kartom kurczyć się równo */
.pc-body > * { min-width: 0; max-width: 100%; }
.inf-sentinel { height: 1px; }
.item-grid { position: relative; }
.item-grid.is-loading-more::after {
  content: ""; position: absolute; left: 50%; bottom: calc(var(--s5) * -1); width: 22px; height: 22px; margin-left: -11px;
  border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .item-grid.is-loading-more::after { animation: none; } }

/* "Pokaż więcej" pod siatką na stronie głównej */
#rail-grid { margin-bottom: var(--s5); }
#rail-grid .pc.is-rowfill { display: none; }   /* chowa nadmiar z niepełnego ostatniego rzędu, póki jest przycisk */
.rail-more { display: flex; justify-content: center; margin-bottom: var(--s6); }
.rail-more .btn[disabled] { opacity: .6; cursor: default; }

.pc {
  position: relative; display: flex; flex-direction: column; height: 100%; min-width: 0;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pc:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 18px 34px -20px rgba(20, 14, 8, .32); z-index: 5; }
.pc:focus-within { z-index: 6; }

.pc-media { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px 12px 0 0; background: var(--paper-2); flex-shrink: 0; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.pc:hover .pc-media img { transform: scale(1.04); }
.pc-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 12px; letter-spacing: .04em; background: repeating-linear-gradient(-45deg, transparent 0 9px, rgba(20,14,8,.03) 9px 10px), var(--paper-2); }

.pc-flag { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(255, 255, 255, .94); backdrop-filter: blur(4px); color: #9a6b1c; font: 800 9.5px var(--f-body); text-transform: uppercase; letter-spacing: .07em; padding: 4px 8px; border-radius: 5px; box-shadow: 0 1px 4px rgba(20, 14, 8, .12); }
.pc-soldtag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(20, 14, 8, .82); color: var(--paper); font: 800 12px var(--f-body); text-transform: uppercase; letter-spacing: .12em; padding: 8px 16px; border-radius: 6px; }
.pc-sold .pc-media img { opacity: .4; }

.pc-fav {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 32px; height: 32px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(4px); color: var(--ink-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(20, 14, 8, .12);
  transition: transform .15s var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pc-fav:hover { color: var(--danger); transform: scale(1.08); }
.pc-fav.is-fav { color: #fff; background: var(--danger); }
.pc-fav.is-fav svg path { fill: currentColor; }
.pc-fav.pop { animation: favpop .4s var(--ease); }
@keyframes favpop { 40% { transform: scale(1.28); } 70% { transform: scale(.94); } }

.pc-body { display: flex; flex-direction: column; flex: 1; padding: 11px 12px 13px; gap: 2px; }
.pc-kicker { font: 700 9.5px var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.pc-title-link { display: block; }
.pc-price-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc-price { font-family: var(--f-disp); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; color: var(--ink); }
.pc-price-total { color: var(--accent-deep); }
.pc-price-base { font: 600 11.5px var(--f-body); color: var(--ink-faint); white-space: nowrap; }
.pc-price-base[hidden] { display: none; }

/* „i" — wyjaśnienie, że w cenie jest prowizja na utrzymanie serwisu */
.pc-info {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid currentColor; color: var(--ink-faint);
  font: 700 9.5px var(--f-body); font-style: normal; line-height: 1;
  cursor: help; user-select: none;
  transition: color var(--dur) var(--ease);
}
.pc-info:hover, .pc-info:focus-visible { color: var(--accent-deep); outline: none; }
.pc-info-pop {
  position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  width: 208px; padding: 9px 11px; text-align: left;
  background: var(--ink); color: var(--paper);
  font: 500 11.5px/1.45 var(--f-body); letter-spacing: 0; text-transform: none;
  border-radius: 8px; box-shadow: var(--sh2);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .14s var(--ease);
  z-index: 25;
}
.pc-info-pop::after {
  content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom-color: var(--ink);
}
.pc-info:hover .pc-info-pop,
.pc-info:focus .pc-info-pop,
.pc-info:focus-within .pc-info-pop { opacity: 1; visibility: visible; }
.pc-title { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; }
.pc-attr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-faint); }
.pc-likes { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; line-height: 1; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pc-likes svg { display: block; flex-shrink: 0; color: var(--ink-faint); transform: translateY(-0.5px); }
.pc-seller { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; }
.pc-seller img, .pc-seller-ph { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pc-seller-ph { background: var(--accent-soft); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; font: 800 9px var(--f-body); }
.pc-seller > span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
.pc-seller:hover > span:first-of-type { color: var(--accent-deep); }

/* ============================================================================
   JAK DZIAŁA ESCROW
   ============================================================================ */
.how { background: var(--ink); color: var(--paper); position: relative; }
.how::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 46px; background: var(--paper); clip-path: polygon(0 0, 100% 0, 0 100%); }
.how-inner { padding: clamp(56px, 8vw, 108px) 0 clamp(48px, 7vw, 92px); }
.hp-head-dark .hp-h2 { color: var(--paper); }
.how-lede { font-size: clamp(15px, 1.6vw, 18px); color: var(--on-ink); max-width: 56ch; margin: calc(var(--s6) * -0.6) 0 var(--s6); line-height: 1.65; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.how-step { border-top: 2px solid var(--hair-ink); padding-top: var(--s4); }
.how-step-n { font-family: var(--f-disp); font-weight: 800; font-size: clamp(38px, 5vw, 60px); color: var(--accent-bright); line-height: 1; letter-spacing: -0.04em; display: block; margin-bottom: var(--s3); }
.how-step h3 { font-size: clamp(17px, 2vw, 22px); color: var(--paper); margin: 0 0 var(--s2); }
.how-step p { font-size: 14px; color: var(--on-ink); margin: 0; line-height: 1.6; }
.how-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--hair-ink); font-size: 13px; color: var(--on-ink-soft); }
.how-foot .btn-ghost { color: var(--paper); }

/* ============================================================================
   SPOTLIGHT
   ============================================================================ */
.spot { padding: 0 24px clamp(52px, 7vw, 96px); }
.spot-banner { position: relative; display: block; overflow: hidden; clip-path: var(--clip); min-height: 340px; }
.spot-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.spot-banner:hover img { transform: scale(1.04); }
.spot-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,14,8,.78) 30%, rgba(20,14,8,.15)); }
.spot-text { position: relative; z-index: 2; padding: clamp(32px, 5vw, 64px); color: var(--paper); max-width: 30ch; }
.spot-eyebrow { font: 800 12px var(--f-body); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-bright); margin: 0 0 var(--s3); }
.spot-text h2 { font-size: clamp(26px, 3.6vw, 42px); letter-spacing: -0.035em; margin: 0 0 var(--s4); color: var(--paper); }
.spot-text .btn-ghost { color: var(--paper); }

/* ============================================================================
   SPRZEDAWCY TYGODNIA — mini podium wg liczby sprzedaży
   ============================================================================ */
.podium-lede { text-align: center; color: var(--ink-soft); font-size: 14px; margin: calc(var(--s6) * -0.5) 0 var(--s6); }
.podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: var(--s3); align-items: end; max-width: 760px; margin: 0 auto; }
.pod { display: flex; flex-direction: column; align-items: center; }
.pod-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--clip);
  padding: var(--s4) var(--s3) var(--s4); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pod-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--ink), var(--sh2); }
.pod-1 .pod-card { box-shadow: inset 0 0 0 1.5px var(--gold); }
.pod-medal {
  font: 800 11px var(--f-body); letter-spacing: .06em; padding: 4px 10px; margin-bottom: var(--s3);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); color: #fff;
}
.pod-1 .pod-medal { background: var(--gold); color: var(--ink); }
.pod-2 .pod-medal { background: #9a978c; }
.pod-3 .pod-medal { background: #a9764b; }
.pod-av { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pod-1 .pod-av { width: 84px; height: 84px; box-shadow: 0 0 0 3px var(--gold); }
.pod-av-ph { background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-disp); font-weight: 800; font-size: 22px; }
.pod-1 .pod-av-ph { font-size: 30px; }
.pod-name { font-family: var(--f-disp); font-weight: 800; font-size: 15px; margin: var(--s3) 0 0; word-break: break-word; }
.pod-1 .pod-name { font-size: 17px; }
.pod-sold { font-size: 13px; color: var(--ink-soft); margin: var(--s2) 0 0; }
.pod-sold b { font-family: var(--f-disp); font-weight: 800; font-size: 17px; color: var(--ink); }
.pod-1 .pod-sold b { font-size: 20px; color: var(--accent-deep); }
.pod-step {
  width: 88%; background: var(--ink); color: rgba(247,243,234,.14); margin-top: var(--s2);
  display: flex; align-items: flex-start; justify-content: center; padding-top: var(--s2);
  font-family: var(--f-disp); font-weight: 800; font-size: 34px; line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(100% - 12px) 100%, 12px 100%, 0 100%);
}
.pod-1 .pod-step { height: 118px; background: var(--accent-deep); color: rgba(247,243,234,.22); }
.pod-2 .pod-step { height: 82px; }
.pod-3 .pod-step { height: 58px; }
.chip-company { display: inline-block; background: var(--accent); color: #fff; font: 800 9px var(--f-body); text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; margin-top: var(--s2); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }

/* ============================================================================
   ZAUFANIE + CTA
   ============================================================================ */
.trust { background: var(--paper-2); }
.trust-inner { padding: clamp(40px, 5vw, 64px) 0; }
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.trust-bar > div { border-left: 2px solid var(--accent); padding-left: var(--s3); }
.trust-bar b { font-family: var(--f-disp); font-weight: 800; font-size: 16px; display: block; margin-bottom: 3px; }
.trust-bar span { font-size: 13px; color: var(--ink-soft); }

.cta { background: var(--accent); color: var(--ink); text-align: center; }
.cta-inner { padding: clamp(56px, 8vw, 104px) 0; }
.cta h2 { font-size: clamp(30px, 5vw, 56px); letter-spacing: -0.04em; line-height: .98; margin: 0 0 var(--s3); }
.cta p { font-size: 16px; color: rgba(20,14,8,.7); margin: 0 0 var(--s5); }
.cta .btn { background: var(--ink); color: var(--paper); }
.cta .btn:hover { background: var(--paper); color: var(--ink); }

/* ============================================================================
   STOPKA
   ============================================================================ */
.ft { background: var(--ink); color: var(--on-ink); padding: clamp(52px, 7vw, 88px) 0 var(--s4); position: relative; overflow: hidden; border-top: 1px solid var(--hair-ink); }
.ft-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: var(--s6); }
.ft-brand { max-width: 32ch; }
.ft-brand .hdr-logo { color: var(--paper); margin-bottom: var(--s3); }
.ft-brand p { margin: 0 0 var(--s4); line-height: 1.6; font-size: 13.5px; }
.ft-social { display: flex; gap: var(--s2); }
.ft-social a { width: 38px; height: 38px; border: 1px solid var(--hair-ink); display: flex; align-items: center; justify-content: center; color: var(--on-ink); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.ft-social a:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
.ft-col h4 { font-family: var(--f-disp); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--paper); margin: 0 0 var(--s3); }
.ft-col a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--on-ink); transition: color var(--dur) var(--ease); }
.ft-col a:hover { color: var(--accent-bright); }
.ft-word { font-family: var(--f-disp); font-weight: 800; font-size: clamp(70px, 20vw, 260px); line-height: .8; letter-spacing: -0.05em; color: rgba(247,243,234,.05); margin: var(--s6) 0 calc(var(--s5) * -1); transform: skewX(-6deg); user-select: none; pointer-events: none; }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); flex-wrap: wrap; font-size: 12px; color: var(--on-ink-soft); position: relative; z-index: 2; }
.ft-legal { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.ft-legal a { color: var(--on-ink); transition: color var(--dur) var(--ease); }
.ft-legal a:hover { color: var(--accent-bright); }

.to-top { position: fixed; right: 24px; bottom: 90px; z-index: 40; width: 42px; height: 42px; border: none; background: var(--ink); color: var(--paper); cursor: pointer; box-shadow: var(--sh3); clip-path: var(--clip-sm); display: flex; align-items: center; justify-content: center; transition: transform var(--dur) var(--ease); }
.to-top:hover { transform: translateY(-3px); }

/* ============================================================================
   PRZEGLĄDANIE / TYTUŁY / STANY
   ============================================================================ */
.browse-head { padding-top: var(--s6); margin-bottom: var(--s6); }
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin-bottom: var(--s3); }
.crumbs a { color: var(--ink-soft); transition: color var(--dur) var(--ease); }
.crumbs a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.crumbs-sep { color: var(--ink-faint); }
.crumbs-current { color: var(--ink); font-weight: 700; }
.subcats { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); }
.subcat {
  display: inline-flex; align-items: center; padding: 8px 15px; font: 600 13.5px var(--f-body); color: var(--ink);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--clip-sm);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), transform .12s var(--ease);
}
.subcat:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }

.page-title { font-family: var(--f-disp); font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.035em; line-height: 1.02; margin: var(--s6) 0 var(--s2); }

/* strony statyczne (regulamin, pomoc, prywatność…) */
.page { max-width: 760px; margin: 0 auto var(--s8); }
.page-draft { background: var(--gold-soft); color: #7d5b16; border-left: 3px solid var(--gold); padding: 12px 16px; font-size: 13.5px; line-height: 1.6; margin: var(--s3) 0 var(--s5); clip-path: var(--clip-sm); }
.page-draft a { color: inherit; font-weight: 800; text-decoration: underline; }
.prose { color: var(--ink); line-height: 1.7; font-size: 15px; }
.prose h2 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(19px, 2.6vw, 24px); letter-spacing: -0.02em; margin: var(--s6) 0 var(--s3); scroll-margin-top: calc(var(--hdr-h) + 20px); }
.prose h2:first-child { margin-top: var(--s3); }
.prose p { margin: 0 0 var(--s3); }
.prose ul, .prose ol { margin: 0 0 var(--s3); padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose code { background: var(--paper-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.prose-table { width: 100%; border-collapse: collapse; margin: var(--s3) 0 var(--s4); font-size: 12.5px; display: block; overflow-x: auto; }
.prose-table th, .prose-table td { border: 1px solid var(--line-2); padding: 7px 10px; text-align: left; vertical-align: top; }
.prose-table th { background: var(--paper-2); font-weight: 700; white-space: nowrap; }
.browse-head .page-title { margin: var(--s2) 0; }
.browse-count { font-size: 13px; color: var(--ink-soft); margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.browse-sub { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 0; }
.page-header-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--s4); margin-bottom: var(--s5); }
.page-header-row .page-title { margin: 0; }
.section-title { font-family: var(--f-disp); font-weight: 800; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.025em; margin: var(--s7) 0 var(--s4); }

.empty-state { text-align: center; color: var(--ink-soft); padding: var(--s7) var(--s4); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--clip); margin: var(--s4) 0 var(--s7); }
.empty-state::before { content: "V"; display: block; font-family: var(--f-disp); font-weight: 800; font-size: 48px; color: var(--paper-2); line-height: 1; margin-bottom: var(--s3); transform: skewX(-9deg); }
.empty-state a { color: var(--accent-deep); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================================
   WYNIKI: UŻYTKOWNICY
   ============================================================================ */
.user-results { display: flex; flex-direction: column; gap: var(--s3); margin: var(--s6) 0 var(--s8); }
.user-result-card { display: flex; align-items: center; gap: var(--s4); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); padding: 16px 20px; clip-path: var(--clip-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.user-result-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--accent), var(--sh2); }
.avatar-large { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-family: var(--f-disp); font-weight: 800; font-size: 26px; }
.user-result-name { font-family: var(--f-disp); font-weight: 800; font-size: 16px; margin: 0 0 2px; }
.user-result-bio { font-size: 13px; color: var(--ink-soft); margin: 0 0 2px; }
.user-result-meta { font-size: 12px; color: var(--ink-faint); margin: 0; }

/* ============================================================================
   FORMULARZE
   ============================================================================ */
.auth-box, .form-box { max-width: 460px; margin: var(--s7) auto; background: var(--surface); padding: 40px; box-shadow: var(--sh2), inset 0 0 0 1px var(--line-2); clip-path: var(--clip); }
.auth-box-wide { max-width: 620px; }
.auth-box h1, .form-box h1 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 var(--s5); }
.auth-form label { display: block; margin-bottom: var(--s4); font: 700 12px var(--f-body); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.auth-form input, .auth-form textarea, .auth-form select { width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; font: 500 15px var(--f-body); background: var(--paper); color: var(--ink); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.auth-form input:focus, .auth-form textarea:focus, .auth-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-alt { text-align: center; margin-top: var(--s5); font-size: 14px; color: var(--ink-soft); }
.auth-alt a { color: var(--accent-deep); font-weight: 800; }
.form-errors { background: var(--danger-soft); color: var(--danger); padding: 14px 18px; border-left: 3px solid var(--danger); margin-bottom: var(--s4); font-size: 14px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.current-image-preview { width: 110px; height: 110px; object-fit: cover; border-radius: 5px; margin: var(--s2) 0; }
.hint-text { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 var(--s4); line-height: 1.6; }
.hint-inline { font-size: 11.5px; color: var(--ink-faint); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form-section-title { font-family: var(--f-disp); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; margin: var(--s6) 0 var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line-2); }
.form-section-title:first-of-type { margin-top: var(--s5); }
.optional-tag { font-weight: 500; color: var(--ink-faint); font-size: 12px; text-transform: none; letter-spacing: 0; }
.cat-picker { border: none; padding: 0; margin: 0 0 var(--s4); }
.cat-picker legend { font: 700 12px var(--f-body); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 7px; padding: 0; }
.cat-picker-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cat-picker-row select { width: 100%; min-width: 0; padding: 12px 12px; border: 1px solid var(--line); border-radius: 8px; font: 500 14px var(--f-body); background-color: var(--paper); color: var(--ink); text-overflow: ellipsis; }
.cat-picker-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cat-picker-hint { font-size: 12.5px; color: var(--ink-soft); margin: 7px 0 0; }
@media (max-width: 560px) { .cat-picker-row { grid-template-columns: 1fr; } }

.account-type-toggle { display: flex; box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--clip-sm); overflow: hidden; margin-bottom: var(--s3); }
.account-type-toggle input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.account-type-toggle .account-type-option { flex: 1; text-align: center; padding: 13px 12px; font: 700 14px var(--f-body); color: var(--ink-soft); cursor: pointer; background: var(--paper-2); margin: 0; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.account-type-option:hover { color: var(--ink); }
.account-type-toggle input[type=radio]:checked + .account-type-option { background: var(--ink); color: var(--paper); }
.account-type-line { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 var(--s4); padding: 10px 12px; background: var(--paper-2); border-radius: 8px; }
.account-type-line strong { color: var(--ink); }
.account-type-line .hint-inline { display: inline; }
.oauth-buttons { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s5); }
.btn-oauth { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 14px var(--f-body); color: var(--ink); background: var(--surface); clip-path: var(--clip-sm); transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), transform .12s var(--ease); }
.btn-oauth:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-soft); transform: translateY(-1px); }
.oauth-icon { width: 18px; height: 18px; flex-shrink: 0; }
.oauth-divider { display: flex; align-items: center; text-align: center; color: var(--ink-faint); font: 600 12px var(--f-body); text-transform: uppercase; letter-spacing: .08em; margin: var(--s2) 0 var(--s5); }
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--line); }
.oauth-divider span { padding: 0 var(--s3); }

/* ============================================================================
   PROFIL — nagłówek redakcyjny: wyśrodkowany, duża typografia, bez ramek
   ============================================================================ */
.pf {
  text-align: center;
  max-width: 660px;
  margin: clamp(var(--s4), 5vw, var(--s6)) auto var(--s6);
  padding-bottom: clamp(var(--s5), 5vw, var(--s7));
  border-bottom: 1px solid var(--line);
}

.pf-avatar {
  display: block; margin: 0 auto var(--s4);
  width: clamp(108px, 14vw, 148px); height: clamp(108px, 14vw, 148px);
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-2), 0 14px 34px -14px rgba(20, 14, 8, .28);
}
.pf-avatar-ph {
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font: 800 clamp(40px, 5vw, 54px) var(--f-disp); line-height: 1;
}

.pf-name {
  font-family: var(--f-disp); font-weight: 800;
  font-size: clamp(32px, 6.4vw, 58px); letter-spacing: -0.045em;
  line-height: .96; margin: 0; color: var(--ink); word-break: break-word;
}

.pf-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: var(--s3); }
.pf-company { font: 700 11.5px var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.pf-badge {
  font: 800 10px var(--f-body); text-transform: uppercase; letter-spacing: .07em;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.pf-badge-promo { background: var(--gold-soft); color: #7d5b16; }
.pf-badge-plus { background: var(--ink); color: var(--paper); }

.pf-rating { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: var(--s3); font-size: 14px; color: var(--ink-soft); }
.pf-stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; }
.pf-stars-off { color: var(--line); }
.pf-rating b { font-family: var(--f-disp); font-weight: 800; color: var(--ink); font-size: 15px; }
.pf-rating-none { color: var(--ink-faint); }
.pf-since { color: var(--ink-faint); }
@media (max-width: 460px) { .pf-since { display: none; } }

.pf-bio { margin: var(--s4) auto 0; max-width: 46ch; color: var(--ink-soft); line-height: 1.65; font-size: 15px; }

.pf-stats {
  display: flex; justify-content: center; align-items: stretch;
  margin: var(--s5) 0 0;
}
.pf-stats > * {
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  padding: 2px clamp(var(--s3), 4vw, var(--s6));
  border-left: 1px solid var(--line-2);
  color: inherit;
}
.pf-stats > *:first-child { border-left: none; }
.pf-stats a { transition: color var(--dur) var(--ease); }
.pf-stats a:hover dd { color: var(--accent-deep); }
.pf-stats a:hover dt { color: var(--accent-deep); }
.pf-stats dd {
  margin: 0; font-family: var(--f-disp); font-weight: 800;
  font-size: clamp(20px, 2.8vw, 27px); letter-spacing: -0.03em;
  color: var(--ink); line-height: 1; text-transform: capitalize;
}
.pf-stats dt { font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint); }

.pf-actions { display: flex; justify-content: center; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.pf-actions:empty { display: none; }
.pf-actions form { display: inline; margin: 0; }
.pf-actions .btn-link { font-weight: 700; color: var(--ink-faint); font-size: 13px; }
.pf-actions .btn-link:hover { color: var(--danger); }

.pf + .section-title { margin-top: clamp(var(--s5), 5vw, var(--s6)); }

.pf-following { position: relative; }
.pf-following:hover::after {
  content: 'Przestań obserwować'; position: absolute; left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: var(--paper); font: 600 11px var(--f-body);
  padding: 4px 8px; border-radius: 5px; pointer-events: none;
}

/* listy obserwujących */
.follow-tabs { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin: var(--s3) 0 var(--s5); }
.follow-tabs > a {
  font: 700 13px var(--f-body); color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.follow-tabs > a span { color: var(--ink-faint); font-weight: 800; margin-left: 4px; }
.follow-tabs > a:hover { box-shadow: inset 0 0 0 1px var(--ink-soft); color: var(--ink); }
.follow-tabs > a.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }
.follow-tabs > a.is-active span { color: var(--on-ink-soft); }
.follow-tabs-back { margin-left: auto; box-shadow: none !important; color: var(--accent-deep) !important; }

@media (max-width: 460px) {
  .pf-stats > * { flex: 1; padding: 2px var(--s2); }
  .pf-stats dd { font-size: 19px; }
  .pf-stats dt { font-size: 9.5px; letter-spacing: .05em; }
}

/* ============================================================================
   USTAWIENIA / EDYCJA PROFILU — spójne, jasne panele (bez ścięć)
   ============================================================================ */
.settings-intro { max-width: 60ch; margin: var(--s2) 0 var(--s6); color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.settings-intro a { color: var(--accent-deep); font-weight: 700; }

.settings-section { margin-bottom: var(--s6); }
.settings-section + .settings-section { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-2); }
.settings-section-h {
  font-family: var(--f-disp); font-weight: 800; font-size: 13px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-faint); margin: 0 0 var(--s4);
}

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s4); margin: 0 0 var(--s4); }
.settings-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--sh1);
  padding: clamp(22px, 3vw, 32px);
}
.settings-card h2 {
  font-family: var(--f-disp); font-weight: 800;
  font-size: 19px; letter-spacing: -0.02em; margin: 0 0 var(--s4); color: var(--ink);
}
.settings-card-wide { grid-column: 1 / -1; }
.settings-card > .hint-text:first-of-type { margin-top: -6px; }

/* pola formularzy w panelach — łagodniejsze rogi, wyraźny fokus */
.settings-card .auth-form label { font: 700 11px var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.settings-card .auth-form input,
.settings-card .auth-form textarea,
.settings-card .auth-form select { border-radius: 10px; border-color: var(--line); }
.settings-card .auth-form input:disabled { background: var(--paper-2); color: var(--ink-faint); cursor: not-allowed; }
.settings-card .form-section-title { text-transform: none; letter-spacing: -0.01em; font-size: 15px; }
.settings-card .btn-primary { margin-top: var(--s2); }

.account-type-toggle { border-radius: 10px; clip-path: none; }
.account-type-toggle .account-type-option:first-of-type { border-radius: 10px 0 0 10px; }

/* blok zdjęcia profilowego */
.pfa-block {
  display: flex; align-items: center; gap: var(--s4);
  padding-bottom: var(--s5); margin-bottom: var(--s5);
  border-bottom: 1px solid var(--line-2);
}
.pfa-avatar {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line-2), 0 12px 26px -14px rgba(20, 14, 8, .3);
}
.pfa-avatar-ph {
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 800 34px var(--f-disp); line-height: 1;
}
.pfa-side { min-width: 0; }
.auth-form label.pfa-file {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  width: auto; margin: 0; padding: 9px 15px; border-radius: 9px;
  font: 700 13px var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.auth-form label.pfa-file:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); background: var(--paper); }
.pfa-file input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pfa-hint { margin: 8px 0 0; font-size: 12px; color: var(--ink-faint); line-height: 1.5; }
.pfa-hint b { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-weight: 700; }

.pfa-actions { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s2); }
.pfa-actions .btn-link { color: var(--ink-faint); font-weight: 700; font-size: 13px; }

.settings-foot { margin-top: var(--s5); }
.settings-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-deep); font-weight: 700; font-size: 14px; }
.settings-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 460px) {
  .pfa-block { flex-direction: column; text-align: center; align-items: center; }
}

/* ============================================================================
   SZCZEGÓŁY PRZEDMIOTU
   ============================================================================ */
.item-detail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); margin: var(--s6) 0 var(--s8); align-items: start; }
.item-detail-image img, .item-detail-image .no-image { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; clip-path: var(--clip); box-shadow: inset 0 0 0 1px var(--line-2); }
.gallery-main { display: block; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gallery-thumb { width: 64px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 7px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); opacity: .62; transition: opacity .15s var(--ease); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; clip-path: none; box-shadow: none; }
.gallery-thumb:hover { opacity: .85; }
.gallery-thumb.is-active { opacity: 1; box-shadow: inset 0 0 0 2px var(--accent); }

/* --- formularz: siatka miniatur zdjęć --- */
.photo-slots { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--s2) 0 var(--s4); }
.photo-slot-group { display: contents; }
.photo-thumb { position: relative; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); display: block; text-transform: none; letter-spacing: 0; margin: 0; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb-x {
  position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(20,14,8,.72); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; transition: background var(--dur) var(--ease);
}
.photo-thumb-x:hover { background: var(--danger); }
.photo-thumb-main { position: absolute; left: 4px; top: 4px; background: var(--accent); color: #fff; font: 800 8.5px var(--f-body); text-transform: uppercase; letter-spacing: .05em; padding: 2px 5px; border-radius: 3px; }

/* puste kafelki dodawania zdjęć — ten sam rozmiar co miniatury, pierwszy oznaczony plakietką */
.photo-slot-empty {
  position: relative; width: 96px; height: 96px; border-radius: 8px; border: 1.5px dashed var(--line); background: var(--paper);
  color: var(--ink-faint); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.photo-slot-empty:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.photo-slot-empty.is-primary { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }

/* --- powiadomienia --- */
/* ---- POWIADOMIENIA ---- */
.ntf { max-width: 640px; margin: var(--s5) auto var(--s8); }
.ntf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--s5); flex-wrap: wrap; }
.ntf-head-t { display: flex; align-items: baseline; gap: 10px; }
.ntf-head h1 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(24px, 4vw, 30px); letter-spacing: -0.02em; margin: 0; }
.ntf-count { background: var(--accent); color: #fff; font: 800 11px var(--f-body); padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.ntf-clear {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink-soft); font: 700 12px var(--f-body); padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.ntf-clear:hover { color: var(--danger); border-color: var(--danger); background: #f6e5e0; }

.ntf-day { font: 800 10.5px var(--f-body); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin: var(--s4) 0 8px; }
.ntf-list { display: flex; flex-direction: column; gap: 8px; }
.ntf-list > .ntf-day:first-child { margin-top: 0; }

.ntf-card {
  display: flex; align-items: center; gap: 13px; padding: 13px 14px; position: relative;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), border-color .14s var(--ease);
}
a.ntf-card:hover { transform: translateY(-1px); box-shadow: var(--sh2); border-color: var(--line); }
a.ntf-card:hover .ntf-go { transform: translateX(2px); color: var(--ink-soft); }
.ntf-card.is-unread { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--ntf-c); }

.ntf-ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ntf-bg); color: var(--ntf-c);
}
.ntf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ntf-text { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.ntf-card.is-unread .ntf-text { font-weight: 600; color: var(--ink); }
.ntf-time { font-size: 11.5px; color: var(--ink-faint); }
.ntf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ntf-c); flex-shrink: 0; }
.ntf-go { color: var(--ink-faint); flex-shrink: 0; transition: transform .14s var(--ease), color .14s var(--ease); }

.ntf-tone-accent { --ntf-c: var(--accent-deep); --ntf-bg: var(--accent-soft); }
.ntf-tone-gold   { --ntf-c: var(--gold);        --ntf-bg: var(--gold-soft); }
.ntf-tone-danger { --ntf-c: var(--danger);      --ntf-bg: #f6e5e0; }
.ntf-tone-ink    { --ntf-c: var(--ink-2);       --ntf-bg: var(--paper-2); }
.ntf-card.ntf-tone-ink.is-unread { --ntf-c: var(--ink); }

.ntf-empty { text-align: center; padding: var(--s7) var(--s4); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ntf-empty-ic {
  width: 62px; height: 62px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.ntf-empty-h { font: 700 18px var(--f-disp); letter-spacing: -.01em; margin: 0; }
.ntf-empty-s { font-size: 13.5px; color: var(--ink-soft); max-width: 340px; margin: 0 0 10px; line-height: 1.5; }

@media (max-width: 480px) {
  .ntf-card { padding: 12px; gap: 11px; }
  .ntf-go { display: none; }
}
@media (prefers-reduced-motion: reduce) { a.ntf-card:hover { transform: none; } }

/* --- blokada / spór --- */
.pf-blocked-note { font-size: 13px; color: var(--ink-soft); max-width: 40ch; margin: 0 0 6px; }
.ledger-dispute { font-size: 12.5px; color: #9a3b16; background: rgba(181,80,40,.08); padding: 8px 10px; border-radius: 7px; margin: 6px 0 0; }

/* --- negocjacje ceny --- */
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.buy-row .buy-now { flex: 1 1 auto; }
.buy-row .btn { white-space: nowrap; }
.buy-row form { display: flex; }
.buy-row form .btn { width: 100%; }
@media (max-width: 430px) {
  .buy-row { flex-wrap: wrap; }
  .buy-row .buy-now { flex-basis: 100%; }
  .buy-row > .btn-offer, .buy-row > form { flex: 1 1 auto; }
}
.btn-offer { display: inline-flex; align-items: center; gap: 7px; }
.btn-offer svg { opacity: .8; }
.btn-offer.is-open { background: var(--ink); color: var(--paper); }

.offer-panel {
  margin-top: 12px; padding: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  border-radius: 14px;
  animation: offerIn .18s var(--ease);
}
@keyframes offerIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.offer-panel-h { font: 800 11px var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin: 0 0 10px; }
.offer-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.offer-chip {
  border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px;
  padding: 6px 11px; font: 700 11.5px var(--f-body); color: var(--ink-soft); cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.offer-chip:hover { border-color: var(--accent); color: var(--ink); }
.offer-chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.offer-input-row { display: flex; gap: 8px; align-items: stretch; }
.offer-input { position: relative; flex: 1; min-width: 0; }
.offer-input input {
  width: 100%; font: 800 19px var(--f-disp); letter-spacing: -0.02em;
  padding: 12px 42px 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px;
  background: var(--paper); color: var(--ink);
}
.offer-input input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.offer-input input::-webkit-outer-spin-button, .offer-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.offer-input input { -moz-appearance: textfield; appearance: textfield; }
.offer-input::after {
  content: 'zł'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font: 700 15px var(--f-body); color: var(--ink-faint); pointer-events: none;
}
.offer-input-row .btn { flex-shrink: 0; }
.offer-panel .hint-text { margin: 10px 0 0; }
.offer-inline { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 0; display: flex; align-items: center; gap: 7px; }
.offer-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; box-shadow: 0 0 0 3px var(--gold-soft); }
.offer-inline a { color: var(--accent-deep); font-weight: 700; }
.offer-box { margin-top: var(--s3); }
.offer-state { font-size: 14px; margin: 0 0 8px; }
.offer-state-ok { color: var(--accent-deep); }
.offer-state-ok a { text-decoration: underline; }
.offer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.offer-counter { margin-top: 6px; }
.offer-counter summary { cursor: pointer; font: 700 12.5px var(--f-body); color: var(--accent-deep); }
.offer-form { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.offer-form input[type=number] { width: 130px; font: 400 15px var(--f-body); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.checkout-neg-tag { font: 700 10px var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--accent-deep); background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; }
.checkout-item-price s { color: var(--ink-faint); font-weight: 400; }

.offer-section { margin: 0 0 var(--s7); }
.offer-card { display: flex; gap: 14px; padding: var(--s4) 0; border-bottom: 1px solid var(--line-2); }
.offer-thumb { width: 72px; height: 72px; border-radius: 9px; overflow: hidden; flex-shrink: 0; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; color: var(--ink-faint); }
.offer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-card-body { min-width: 0; flex: 1; }
.offer-card-title { font-family: var(--f-disp); font-weight: 700; font-size: 16px; color: var(--ink); }
.offer-card-meta { font-size: 12.5px; color: var(--ink-soft); margin: 3px 0 8px; }
.offer-history { margin: 0 0 8px; }
.offer-history summary { cursor: pointer; font-size: 12px; color: var(--ink-faint); }
.offer-history ol { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.offer-h-status { color: var(--ink-faint); }

.item-detail-info { padding-top: var(--s2); position: sticky; top: calc(var(--hdr-h) + 24px); }
.item-detail-info h1 { font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 var(--s3); }
.item-detail-price { font-family: var(--f-disp); font-weight: 800; font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -0.03em; color: var(--ink); display: block; margin-bottom: var(--s4); }
.item-detail-meta { margin-bottom: var(--s4); }
.item-detail-meta span { display: inline-block; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); padding: 6px 13px; font: 600 12.5px var(--f-body); margin: 0 var(--s2) var(--s2) 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%); }
.item-detail-desc { color: var(--ink); line-height: 1.7; margin: var(--s4) 0; white-space: pre-wrap; }
.detail-like { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s4); }
.detail-like-btn { width: 40px; height: 40px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform .15s var(--ease); }
.detail-like-btn:hover { border-color: var(--danger); color: var(--danger); transform: scale(1.06); }
.detail-like-btn.is-fav { background: var(--danger); border-color: var(--danger); color: #fff; }
.detail-like-btn.is-fav svg path { fill: currentColor; }
.detail-like-count { font-size: 14px; color: var(--ink-soft); }
.detail-like-count b { font-family: var(--f-disp); color: var(--ink); }

.buyer-price { background: var(--accent-soft); border: 1px solid var(--accent-bright); border-radius: 10px; padding: 14px 16px; margin: var(--s4) 0 var(--s3); }
.buyer-price-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-soft); padding: 3px 0; }
.buyer-price-total { color: var(--ink); font-weight: 800; border-top: 1px solid var(--accent-bright); margin-top: 5px; padding-top: 8px; }
.buyer-price-total span:last-child { font-family: var(--f-disp); font-size: 18px; letter-spacing: -0.02em; }
.buyer-price-note { font-size: 12.5px; color: var(--accent-deep); margin: 9px 0 0; line-height: 1.5; }
.buyer-price-note s { color: var(--ink-faint); }

.seller-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 10px 16px; font: 600 14px var(--f-body); margin: var(--s3) 0 var(--s5); clip-path: var(--clip-sm); }
.avatar-mini { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.item-actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.sold-badge { background: var(--danger-soft); color: var(--danger); padding: 12px 18px; font-weight: 700; display: inline-block; border-left: 3px solid var(--danger); }
.no-image { display: flex; align-items: center; justify-content: center; color: var(--ink-faint); background: var(--paper-2); font-size: 13px; }

/* ============================================================================
   ZAKUPY / SPRZEDAŻE — zestawienie (spokojny, typograficzny rejestr)
   ============================================================================ */
.ledger { margin: var(--s5) 0 0; }
.ledger-month {
  font: 800 11px var(--f-body); text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-faint); margin: var(--s6) 0 4px;
}
.ledger-month:first-child { margin-top: 0; }

.ledger-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: var(--s4); align-items: start;
  padding: var(--s4) 2px;
  border-top: 1px solid var(--line-2);
}
.ledger-row:last-of-type { border-bottom: 1px solid var(--line-2); }

.ledger-thumb {
  width: 52px; height: 52px; border-radius: 9px; overflow: hidden;
  background: var(--paper-2); display: block; flex-shrink: 0;
}
.ledger-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ledger-thumb .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font: 800 17px var(--f-disp); color: var(--ink-faint);
}

.ledger-info { min-width: 0; padding-top: 2px; }
.ledger-title {
  font-family: var(--f-disp); font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
  color: var(--ink); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ledger-title:hover { color: var(--accent-deep); }
.ledger-meta { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; }
.ledger-meta a { color: var(--ink-soft); font-weight: 600; }
.ledger-meta a:hover { color: var(--accent-deep); }
.ledger-status-wait { color: #a9791f; }
.ledger-status-done { color: var(--accent-deep); }
.ledger-stars { color: var(--gold); letter-spacing: .5px; }

.ledger-ship {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px;
  margin: 5px 0 0; font-size: 12px; color: var(--ink-soft);
}
.ledger-ship svg { color: var(--ink-faint); flex-shrink: 0; }
.ledger-ship a { color: var(--accent-deep); font-weight: 700; }
.ledger-ship a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ledger-ship-muted { color: var(--ink-faint); }

/* oś czasu przesyłki */
details.ledger-track { margin-top: 6px; }
details.ledger-track > summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font: 600 12px var(--f-body); color: var(--ink-soft);
}
details.ledger-track > summary::-webkit-details-marker { display: none; }
details.ledger-track > summary svg { color: var(--ink-faint); }
details.ledger-track > summary:hover { color: var(--ink); }
details.ledger-track[open] > summary { margin-bottom: var(--s2); color: var(--ink); font-weight: 700; }

.track { list-style: none; margin: 0 0 0 2px; padding: 0; }
.track li {
  position: relative; padding: 0 0 12px 20px;
  font: 500 12px var(--f-body); color: var(--ink-faint); line-height: 1.35;
}
.track li:last-child { padding-bottom: 0; }
.track li::before {
  content: ''; position: absolute; left: 0; top: 2px;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface);
}
.track li::after {
  content: ''; position: absolute; left: 4px; top: 13px; bottom: 0;
  width: 2px; background: var(--line-2);
}
.track li:last-child::after { display: none; }
.track li.done { color: var(--ink-soft); }
.track li.done::before { border-color: var(--accent); background: var(--accent); }
.track li.done::after { background: var(--accent-bright); }
.track li.current { color: var(--ink); font-weight: 700; }
.track li.current::before { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.track-date { display: block; margin-top: 1px; font-weight: 400; font-size: 11px; color: var(--ink-faint); }

.track-foot { margin: var(--s2) 0 0; font-size: 11.5px; color: var(--ink-faint); }
.track-foot b { color: var(--ink-soft); font-weight: 700; }
.track-foot a { color: var(--accent-deep); font-weight: 700; }
.track-foot a:hover { text-decoration: underline; text-underline-offset: 2px; }

.ledger-amount {
  font-family: var(--f-disp); font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
  color: var(--ink); white-space: nowrap; text-align: right; padding-top: 2px;
}
.ledger-amount small {
  display: block; margin-top: 2px;
  font: 500 10.5px var(--f-body); letter-spacing: 0; color: var(--ink-faint);
}

.ledger-action { margin-top: 9px; }
.ledger-action form { margin: 0; }
.ledger-action .review-form { max-width: 300px; margin-top: var(--s2); }

details.ledger-action > summary {
  cursor: pointer; display: inline-block; list-style: none;
  font: 700 12.5px var(--f-body); color: var(--accent-deep);
}
details.ledger-action > summary::-webkit-details-marker { display: none; }
details.order-review > summary::before { content: '★  '; }
details.ledger-ship-form > summary::before { content: '📦  '; }
details.ledger-action > summary:hover { text-decoration: underline; text-underline-offset: 2px; }
details.ledger-action[open] > summary { margin-bottom: var(--s2); }

.ship-form { display: grid; gap: var(--s2); max-width: 320px; }
.ship-form label { display: block; font: 700 11px var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.ship-form select, .ship-form input {
  width: 100%; margin-top: 6px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px;
  font: 500 14px var(--f-body); background: var(--paper); color: var(--ink);
}
.ship-form select:focus, .ship-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ship-form .btn { justify-self: start; margin-top: 2px; }

@media (max-width: 420px) {
  .ledger-row { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s3); }
  .ledger-thumb { width: 44px; height: 44px; }
  .ledger-amount { grid-column: 1 / -1; text-align: left; padding-top: 0; margin-top: 6px; font-size: 14px; }
  .ledger-amount small { display: inline; margin: 0 0 0 8px; }
}

/* ============================================================================
   MOJE PRZEDMIOTY — kafelki + menu „⋮" właściciela
   ============================================================================ */
.mine-item { position: relative; display: flex; flex-direction: column; }
.mine-item > .pc { flex: 1; }
.mine-item .pc-fav { display: none; }              /* nie „lubi się" własnych ofert */

.pc-menu { position: absolute; top: 8px; right: 8px; z-index: 4; }
.pc-menu-btn {
  width: 32px; height: 32px; border: none; cursor: pointer; border-radius: 50%;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(20, 14, 8, .14);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pc-menu-btn:hover { color: var(--ink); background: #fff; }
.pc-menu-list {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 176px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--sh2); padding: 5px;
  display: flex; flex-direction: column;
}
.pc-menu-list[hidden] { display: none; }
.pc-menu-list form { margin: 0; }
.pc-menu-list a,
.pc-menu-list button {
  display: block; width: 100%; text-align: left;
  padding: 9px 11px; border: none; background: none; cursor: pointer;
  font: 600 13px var(--f-body); color: var(--ink); border-radius: 8px;
  transition: background var(--dur) var(--ease);
}
.pc-menu-list a:hover,
.pc-menu-list button:hover { background: var(--paper-2); }
.pc-menu-danger { color: var(--danger); }

/* ============================================================================
   TABELE
   ============================================================================ */
.item-table { width: 100%; border-collapse: collapse; background: var(--surface); margin-bottom: var(--s8); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--clip-sm); overflow: hidden; }
.item-table th, .item-table td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 14px; vertical-align: middle; }
.item-table th { font: 800 11px var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); background: var(--paper-2); }
.item-table tr:last-child td { border-bottom: none; }
.item-table tbody tr { transition: background var(--dur) var(--ease); }
.item-table tbody tr:hover { background: var(--paper); }
.thumb { width: 48px; height: 48px; border-radius: 5px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--paper-2); font-size: 10px; color: var(--ink-faint); }
.status-badge { padding: 5px 12px; font: 800 11px var(--f-body); text-transform: uppercase; letter-spacing: .05em; display: inline-block; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.status-available { background: var(--accent-soft); color: var(--accent-deep); }
.status-pending { background: var(--gold-soft); color: #7d5b16; }
.status-sold { background: var(--paper-2); color: var(--ink-soft); }
.table-actions { display: flex; gap: var(--s3); align-items: center; }
.table-actions form { display: inline; }

/* ============================================================================
   PORTFEL
   ============================================================================ */
.wallet-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); margin: var(--s5) 0; }
.wallet-balance-card { background: var(--ink); color: var(--paper); border-top: 3px solid var(--accent); padding: 26px; clip-path: var(--clip); }
.wallet-balance-card-pending { border-top-color: var(--gold); }
.wallet-balance-label { font: 700 11px var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--on-ink-soft); margin: 0 0 var(--s2); }
.wallet-balance-amount { font-family: var(--f-disp); font-weight: 800; font-size: 38px; letter-spacing: -0.03em; color: var(--paper); margin: 0; }
.wallet-amount-negative { color: #e8917d; }

/* ============================================================================
   FLASH / BANERY
   ============================================================================ */
.flash { margin: var(--s4) 0; padding: 13px 18px; font: 500 14px var(--f-body); clip-path: var(--clip-sm); border-left: 3px solid currentColor; }
.flash-success { background: var(--accent-soft); color: var(--accent-deep); }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-warning { background: var(--gold-soft); color: #7d5b16; }
.flash a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.dev-mode-banner { background: var(--accent-soft); border: 1px dashed var(--accent); color: var(--accent-deep); padding: 14px 18px; border-radius: 5px; font-size: 13px; margin-bottom: var(--s4); line-height: 1.6; }
.dev-mode-banner code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.resend-form { text-align: center; margin: var(--s4) 0 0; }
.resend-form button[disabled] { color: var(--ink-faint); cursor: not-allowed; }

/* ============================================================================
   404
   ============================================================================ */
.notfound { text-align: center; padding: var(--s7) 0 var(--s8); max-width: 480px; margin: 0 auto; }
.notfound-mark { position: relative; width: 200px; aspect-ratio: 1; margin: 0 auto var(--s3); }
.notfound-mark canvas { width: 100%; height: 100%; }
.notfound-mark-fallback { position: absolute; inset: 20%; object-fit: contain; opacity: .9; }
.notfound-code { font-family: var(--f-disp); font-weight: 800; font-size: 14px; letter-spacing: .3em; color: var(--accent-deep); margin: 0 0 var(--s2); }
.notfound-title { font-family: var(--f-disp); font-weight: 800; font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -0.03em; margin: 0 0 var(--s3); }
.notfound-sub { color: var(--ink-soft); margin: 0 0 var(--s5); }

/* ============================================================================
   PROMOWANIE
   ============================================================================ */
.pc-promoted { border-color: var(--gold); }
.pc-promoted:hover { border-color: var(--gold); box-shadow: 0 18px 34px -20px rgba(181, 135, 49, .4); }
.status-promoted { background: var(--gold-soft); color: #7d5b16; margin-left: 6px; }
.promo-badge-inline { font: 800 13px var(--f-body); color: #7d5b16; background: var(--gold-soft); padding: 8px 14px; clip-path: var(--clip-sm); display: inline-block; margin: 0 0 var(--s3); }
.promo-badge-mini { font: 800 10px var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: #7d5b16; background: var(--gold-soft); padding: 3px 8px; border-radius: 3px; }

.promo-lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-soft); max-width: 60ch; margin: 0 0 var(--s6); line-height: 1.6; }
.promo-lead strong { color: var(--accent-deep); }
.promo-desc { color: var(--ink-soft); max-width: 62ch; margin: 0 0 var(--s4); line-height: 1.6; }
.promo-section { margin: 0 0 var(--s8); }
.promo-section .section-title { margin-top: 0; }

.promo-pkg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); margin: var(--s4) 0; }
.promo-pkg {
  position: relative; display: flex; flex-direction: column; gap: 4px; text-align: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--clip-sm);
  padding: var(--s4) var(--s3); cursor: default;
}
.promo-pkg-choice { cursor: pointer; transition: box-shadow var(--dur) var(--ease); }
.promo-pkg-choice input { position: absolute; opacity: 0; }
.promo-pkg-choice:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.promo-pkg-choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.promo-pkg-days { font: 800 13px var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.promo-pkg-price { font-family: var(--f-disp); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); }
.promo-pkg-vinted { font-size: 12px; color: var(--ink-faint); text-decoration: line-through; }
.promo-pkg-note { font-size: 11.5px; color: var(--ink-faint); }

.promo-form { margin-top: var(--s4); }
.promo-actions { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s4); }

.promo-choose-label { font-weight: 700; margin: var(--s5) 0 var(--s2); }
.promo-item-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.promo-item-list a { display: flex; align-items: center; gap: var(--s3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--clip-sm); padding: 10px 14px; transition: box-shadow var(--dur) var(--ease); }
.promo-item-list a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.promo-item-list img, .promo-item-noimg { width: 44px; height: 44px; border-radius: 5px; object-fit: cover; flex-shrink: 0; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--ink-faint); }
.promo-item-title { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-item-go { font-weight: 800; color: var(--accent-deep); white-space: nowrap; }

.promo-target { display: flex; gap: var(--s4); align-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--clip); padding: var(--s4); margin: var(--s4) 0 var(--s5); }
.promo-target img, .promo-item-noimg-lg { width: 88px; height: 88px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.promo-item-noimg-lg { width: 88px; height: 88px; font-size: 24px; }
.promo-target-title { font-family: var(--f-disp); font-weight: 800; font-size: 18px; margin: 0 0 4px; }
.promo-target-price { font-family: var(--f-disp); font-weight: 800; font-size: 22px; color: var(--ink); margin: 0; }

/* ============================================================================
   VEZZO+
   ============================================================================ */
.vp-badge {
  display: inline-block; vertical-align: middle;
  background: var(--accent-deep); color: #fff;
  font: 800 9.5px var(--f-body); letter-spacing: .04em; text-transform: none;
  padding: 3px 8px; border-radius: 5px; white-space: nowrap;
}
.pod-card .vp-badge { margin-top: 6px; }
.vp-badge-lg { font-size: 14px; padding: 6px 14px; border-radius: 8px; }
.vp-link { color: var(--accent-deep); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.vp-hero { margin: var(--s6) 0 var(--s7); }
.vp-hero .page-title { margin: var(--s3) 0 var(--s3); }
.vp-lead { font-size: clamp(15px, 1.7vw, 18px); color: var(--ink-soft); max-width: 60ch; line-height: 1.6; margin: 0 0 var(--s4); }
.vp-lead strong { color: var(--ink); }
.vp-section { margin: 0 0 var(--s8); }
.vp-section .section-title { margin-top: 0; }
.vp-ways { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.vp-way { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: var(--s5); position: relative; }
.vp-way-n { position: absolute; top: var(--s4); right: var(--s4); font-family: var(--f-disp); font-weight: 800; font-size: 34px; color: var(--paper-2); line-height: 1; }
.vp-way h3 { font-size: 18px; margin: 0 0 var(--s2); }
.vp-way p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 var(--s3); }
.vp-way p strong { color: var(--ink); }
.vp-way-meta { font-size: 12.5px; color: var(--ink-faint); }
.vp-way .promo-form { margin-top: var(--s3); }
@media (max-width: 760px) { .vp-ways { grid-template-columns: 1fr; } }

/* --- lista korzyści (Vezzo+ / VIP) --- */
.vp-perks { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s3); max-width: 62ch; }
.vp-perks li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.vp-perks li strong { color: var(--ink); }
.vp-perks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232b6450' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.vp-upsell { border-top: 1px solid var(--line); padding-top: var(--s6); }

/* --- Vezzo VIP: odznaka + akcenty --- */
.vp-badge-vip { background: linear-gradient(105deg, var(--ink), #3a2f22); color: var(--gold, #e9c877); box-shadow: inset 0 0 0 1px rgba(181,135,49,.4); }
.pf-badge-vip { background: linear-gradient(105deg, var(--ink), #3a2f22); color: #e9c877; box-shadow: inset 0 0 0 1px rgba(181,135,49,.45); }

/* --- baner profilu (VIP) --- */
.pf-banner {
  width: 100vw; margin-inline: calc(50% - 50vw);
  height: clamp(150px, 24vw, 280px);
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.pf-has-banner { margin-top: var(--s5); }
.pf-has-banner .pf-avatar { margin-top: calc(-1 * clamp(54px, 8vw, 82px)); position: relative; }

/* --- edycja profilu: baner --- */
.pfa-banner-row { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.pfa-label { font: 700 11.5px var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.pfa-vip-tag { display: inline-block; margin-left: 6px; background: linear-gradient(105deg, var(--ink), #3a2f22); color: #e9c877; font-size: 9px; letter-spacing: .05em; padding: 2px 6px; border-radius: 4px; vertical-align: middle; }
.pfa-banner-preview {
  height: 120px; border-radius: 10px; background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; place-items: center; color: var(--ink-faint); font-size: 13px;
}
.pfa-banner-preview.is-empty { background: var(--paper-2); }
.pfa-check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft); }
.pfa-locked { color: var(--ink-faint); }
.pfa-locked a { color: var(--accent-deep); font-weight: 700; text-decoration: underline; }

/* --- karta produktu: „bez opłaty serwisowej" --- */
.pc-nofee { font: 700 10.5px var(--f-body); color: var(--accent-deep); white-space: nowrap; }

/* --- szczegóły przedmiotu: brak prowizji --- */
.buyer-price-nofee { color: var(--ink-soft); }
.buyer-price-nofee strong { color: var(--accent-deep); }

/* --- szczegóły przedmiotu: dostawa --- */
.detail-ship { margin: var(--s4) 0; }
.detail-ship-h { font: 700 11px var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.detail-ship ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.detail-ship li { font-size: 13.5px; color: var(--ink-soft); }
.detail-ship li strong { color: var(--ink); }

/* ============================================================================
   CHECKOUT (wybór dostawy + adres + podsumowanie)
   ============================================================================ */
.checkout { display: grid; grid-template-columns: 1fr 320px; gap: var(--s6); align-items: start; margin-bottom: var(--s7); }
.checkout-main { display: grid; gap: var(--s5); min-width: 0; }
.checkout-item { display: flex; gap: var(--s4); align-items: center; }
.checkout-item img, .checkout-noimg { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line-2); flex-shrink: 0; }
.checkout-noimg { display: grid; place-items: center; background: var(--paper-2); color: var(--ink-faint); }
.checkout-item-title { font-family: var(--f-disp); font-weight: 700; font-size: 17px; margin: 0; }
.checkout-item-price { margin: 3px 0 0; color: var(--ink-soft); }
.checkout-block h2 { font-family: var(--f-disp); font-size: 18px; margin: 0 0 var(--s3); }
.ship-country { display: grid; gap: 5px; margin: 0 0 var(--s3); font: 600 12px var(--f-body); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.ship-country select { font: 400 15px var(--f-body); padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.ship-opts { display: grid; gap: 8px; }
.ship-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.ship-opt.is-active { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.ship-opt input { width: auto; margin: 0; }
.ship-opt-name { flex: 1; font-size: 14px; }
.ship-opt-cost { font-weight: 800; font-size: 13.5px; }
.ship-address { display: grid; gap: var(--s3); margin-top: var(--s4); }
.ship-address[hidden] { display: none; }
#ship-paczkomat-hint[hidden] { display: none; }
.ship-address label { display: grid; gap: 5px; font: 600 12px var(--f-body); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.ship-address input { font: 400 15px var(--f-body); padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); }
.checkout-summary { position: sticky; top: 90px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 14px; padding: var(--s5); display: grid; gap: 10px; }
.checkout-summary h2 { font-family: var(--f-disp); font-size: 16px; margin: 0 0 4px; }
.checkout-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.checkout-row-free span:last-child { color: var(--accent-deep); font-weight: 700; }
.checkout-total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-family: var(--f-disp); font-weight: 800; font-size: 18px; color: var(--ink); }
.checkout-summary .btn { margin-top: 6px; }
.ledger-ship-to { font-size: 12.5px; color: var(--ink-soft); margin: 4px 0 0; }
.ledger-ship-addr { color: var(--ink-faint); }
.ledger-ship-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
@media (max-width: 820px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

/* ============================================================================
   WIADOMOŚCI / OPINIE / MODERACJA / COOKIE
   ============================================================================ */
.checkbox-line { display: flex; align-items: flex-start; gap: 9px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-soft); margin: var(--s3) 0 var(--s4); }
.checkbox-line input { margin-top: 3px; width: auto; }
.checkbox-line a { color: var(--accent-deep); font-weight: 700; }

.seller-rating { margin-left: auto; font-weight: 800; color: var(--gold); white-space: nowrap; }
.seller-rating small { color: var(--ink-faint); font-weight: 500; }
.detail-secondary-actions { display: flex; align-items: center; gap: var(--s4); margin: var(--s3) 0 var(--s4); flex-wrap: wrap; }

.review-drop summary { cursor: pointer; }
.review-form { display: grid; gap: var(--s2); margin-top: var(--s2); max-width: 320px; }
.review-form select, .review-form textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: 500 13px var(--f-body); background: var(--paper); }

.reviews { display: grid; gap: var(--s3); margin: var(--s4) 0 var(--s8); }
.review { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--clip-sm); padding: var(--s4); }
.review-head { font-size: 13px; color: var(--ink-soft); }
.review-stars { color: var(--gold); letter-spacing: 1px; }
.review-stars-off { color: var(--line); }
.review-comment { margin: var(--s2) 0 4px; color: var(--ink); line-height: 1.6; }
.review-item { font-size: 12px; color: var(--ink-faint); margin: 0; }

.msg-app {
  display: grid; grid-template-columns: 300px 1fr;
  height: min(68vh, 620px); margin: 0 0 var(--s8);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
}
/* pozwól kolumnom kurczyć się do wysokości siatki — inaczej wątek „rozpycha"
   panel, wiadomości nie dają się przewijać, a pasek pisania wypada poza kadr */
.msg-app > * { min-width: 0; min-height: 0; }
.msg-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.msg-av-ph { background: var(--accent-soft); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; font: 800 15px var(--f-body); }
.msg-av-sm { width: 32px; height: 32px; font-size: 13px; }

/* --- lista rozmów --- */
.msg-side { display: flex; flex-direction: column; border-right: 1px solid var(--line-2); min-width: 0; background: var(--paper); }
.msg-side-head { font: 800 12px var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding: 16px 18px 10px; }
.msg-side-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; }
.msg-conv { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; transition: background var(--dur) var(--ease); }
.msg-conv:hover { background: var(--paper-2); }
.msg-conv.is-active { background: var(--accent-soft); }
.msg-conv-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.msg-conv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.msg-conv-name { font-weight: 700; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-conv-top time { font-size: 11px; color: var(--ink-faint); flex-shrink: 0; }
.msg-conv-last { font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-conv-last.is-unread { color: var(--ink); font-weight: 600; }
.msg-unread { flex-shrink: 0; background: var(--accent); color: #fff; font: 800 10px var(--f-body); min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* --- wątek --- */
.msg-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.msg-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3); color: var(--ink-faint); }
.msg-placeholder p { margin: 0; font-size: 14px; }
.msg-main-head { flex-shrink: 0; display: flex; align-items: center; gap: 11px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.msg-back { display: none; font-size: 26px; line-height: 1; color: var(--ink-soft); width: 28px; }
.msg-main-name { font-family: var(--f-disp); font-weight: 800; font-size: 15px; color: var(--ink); }
.msg-main-link { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--accent-deep); }
.msg-main-link:hover { text-decoration: underline; }

.msg-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s4) var(--s5); display: flex; flex-direction: column; gap: 3px; background:
  radial-gradient(circle at 1px 1px, rgba(20,14,8,.035) 1px, transparent 0) 0 0 / 22px 22px, var(--paper); }
/* obszary przewijania bywają fokusowalne w Chrome — nie chcemy zielonej
   obwódki wokół listy przy przewijaniu (otoczkę pola pisania zostawiamy) */
.msg-scroll:focus, .msg-scroll:focus-visible,
.msg-side-list:focus, .msg-side-list:focus-visible { outline: none; }

/* bez widocznego paska przewijania — scroll działa kółkiem i strzałkami */
.msg-scroll, .msg-side-list { scrollbar-width: none; -ms-overflow-style: none; }
.msg-scroll::-webkit-scrollbar, .msg-side-list::-webkit-scrollbar { width: 0; height: 0; display: none; }

.msg-daysep { text-align: center; margin: var(--s3) 0 var(--s2); }
.msg-daysep span { font-size: 11px; font-weight: 700; color: var(--ink-faint); background: var(--paper-2); padding: 3px 12px; border-radius: 20px; }
.msg-row { display: flex; flex-direction: column; max-width: 78%; margin-bottom: 2px; }
.msg-row.mine { align-self: flex-end; align-items: flex-end; }
.msg-row.theirs { align-self: flex-start; align-items: flex-start; }
.msg-bubble { padding: 9px 13px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.msg-text { white-space: pre-wrap; }
.msg-row.theirs .msg-bubble { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); border-radius: 4px 14px 14px 14px; }
.msg-row.mine .msg-bubble { background: var(--ink); color: var(--paper); border-radius: 14px 14px 4px 14px; }
.msg-bubble.has-img { padding: 4px; overflow: hidden; }
.msg-bubble.has-img .msg-text { display: block; padding: 5px 9px 6px; }
.msg-img { display: block; max-width: 240px; width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; }
.msg-time { font-size: 10.5px; color: var(--ink-faint); margin: 3px 4px 0; }

/* tłumaczenie wiadomości */
.msg-tr { align-self: flex-start; margin: 3px 2px 0; padding: 2px 4px; background: none; border: none; font: inherit; font-size: 11.5px; color: var(--accent-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.msg-tr:hover { color: var(--ink); }
.msg-tr:disabled { color: var(--ink-faint); cursor: default; text-decoration: none; }
.msg-trbox { align-self: flex-start; max-width: 100%; margin: 3px 0 1px; padding: 8px 12px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 4px 12px 12px 12px; font-size: 14px; line-height: 1.5; color: var(--ink); display: grid; gap: 3px; }
.msg-trbox-tag { font-size: 10.5px; letter-spacing: .02em; color: var(--ink-faint); text-transform: none; }
.msg-trbox-body { word-break: break-word; }

/* --- karta negocjacji w wątku --- */
.msg-offer {
  align-self: center; max-width: 85%; width: 340px; margin: 8px 0;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  border-radius: 14px; padding: 13px 15px;
}
.msg-offer-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.msg-offer-tag { font: 800 10px var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-deep); }
.msg-offer-item { font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.msg-offer-amount { font-size: 14px; margin: 0 0 8px; color: var(--ink); }
.msg-offer-amount strong { font-family: var(--f-disp); font-size: 17px; letter-spacing: -0.02em; }
.msg-offer-was { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }
.msg-offer-status { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }
.msg-offer-status.ok { color: var(--accent-deep); font-weight: 700; }
.msg-offer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.msg-offer-actions form { display: inline-flex; }
.msg-offer-actions .btn { white-space: nowrap; }
.msg-offer .msg-time { text-align: right; margin-top: 8px; }
.msg-offer.is-dead { opacity: .6; }
.msg-offer.is-dead .msg-offer-amount strong { text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* --- pasek „Zaproponuj cenę" nad polem wpisywania --- */
.msg-neg-bar { flex-shrink: 0; padding: 8px 12px; border-top: 1px solid var(--line-2); background: var(--paper); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.msg-neg-bar [data-propose-toggle].is-open { background: var(--ink); color: var(--paper); }
.msg-neg-form { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; margin-top: 2px; }
.msg-neg-form[hidden] { display: none; }
.msg-neg-label { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.msg-neg-form input { flex: 1; min-width: 80px; font: 700 15px var(--f-body); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); -moz-appearance: textfield; appearance: textfield; }
.msg-neg-form input::-webkit-outer-spin-button, .msg-neg-form input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.msg-neg-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.msg-compose { flex-shrink: 0; padding: 10px 12px 12px; border-top: 1px solid var(--line-2); background: var(--surface); }
.msg-compose-row { display: flex; align-items: flex-end; gap: 6px; }
.msg-compose textarea { flex: 1; min-width: 0; padding: 9px 13px; border: 1px solid var(--line); border-radius: 20px; font: 500 14px var(--f-body); background: var(--paper); resize: none; max-height: 140px; line-height: 1.4; }
.msg-compose textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.msg-attach { flex-shrink: 0; width: 38px; height: 38px; padding: 0; border: none; background: transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-soft); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.msg-attach:hover { background: var(--paper-2); color: var(--accent-deep); }
.msg-send { flex-shrink: 0; width: 40px; height: 40px; border: none; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--dur) var(--ease); }
.msg-send:hover { background: var(--accent-deep); }
.msg-preview { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px 8px; }
.msg-preview[hidden] { display: none; }
.msg-thumb { position: relative; display: inline-block; }
.msg-thumb img { display: block; width: 74px; height: 74px; border-radius: 10px; border: 1px solid var(--line-2); object-fit: cover; }
.msg-thumb-x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: none; background: var(--ink); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* zdjęcia w dymku — jedno duże, kilka w siatce */
.msg-imgs { display: grid; gap: 3px; }
.msg-imgs.multi { grid-template-columns: 1fr 1fr; }
.msg-imgs.multi .msg-img { width: 118px; height: 118px; object-fit: cover; }

.msg-empty { color: var(--ink-soft); font-size: 13.5px; text-align: center; padding: var(--s5) var(--s4); line-height: 1.6; }
.msg-empty span { color: var(--ink-faint); font-size: 12.5px; }

@media (max-width: 760px) {
  .msg-app { grid-template-columns: 1fr; height: min(74vh, 640px); }
  .msg-app .msg-side { display: flex; }
  .msg-app .msg-main { display: none; }
  .msg-app.has-thread .msg-side { display: none; }
  .msg-app.has-thread .msg-main { display: flex; }
  .msg-back { display: block; }
}

/* pole „Napisz wiadomość…" — bez widocznego paska przewijania w środku;
   tekst przewija się kółkiem i strzałkami */
.msg-compose textarea { scrollbar-width: none; -ms-overflow-style: none; }
.msg-compose textarea::-webkit-scrollbar { width: 0; height: 0; display: none; }

.danger-zone summary { cursor: pointer; font-weight: 700; color: var(--danger); margin-top: var(--s3); }
.danger-zone[open] summary { margin-bottom: var(--s3); }

.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 760px; margin: 0 auto;
  background: var(--ink); color: var(--on-ink); box-shadow: var(--sh3); clip-path: var(--clip-sm);
  padding: 16px 18px; display: grid; gap: var(--s3);
}
.cookie-bar-main { display: flex; align-items: center; gap: var(--s4) var(--s5); flex-wrap: wrap; }
.cookie-bar p { margin: 0; font-size: 12.5px; flex: 1; min-width: 220px; line-height: 1.55; }
.cookie-bar p strong { color: var(--paper); }
.cookie-bar a { color: var(--accent-bright); text-decoration: underline; }
.cookie-actions { display: flex; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap; flex-shrink: 0; }
.cookie-actions .btn { background: var(--paper); color: var(--ink); }
.cookie-actions .btn-secondary { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--hair-ink); }
.cookie-actions .btn-link { color: var(--accent-bright); }
.cookie-panel { border-top: 1px solid var(--hair-ink); padding-top: var(--s3); display: grid; gap: var(--s2); }
.cookie-panel[hidden] { display: none; }
.cookie-bar[hidden] { display: none; }
.cookie-cat { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--on-ink); }
.cookie-cat input { margin-top: 2px; flex-shrink: 0; }
.cookie-cat strong { color: var(--paper); }
.cookie-cat em { color: var(--on-ink-soft); font-style: normal; }
.cookie-panel .btn { justify-self: start; background: var(--paper); color: var(--ink); margin-top: 4px; }

/* ============================================================================
   RESPONSYWNOŚĆ
   ============================================================================ */
@media (max-width: 1080px) {
  .ft-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 980px) {
  .hdr-cat { display: none; }
  .hdr-burger { display: flex; }
  .hdr-main { gap: var(--s3); }
  .hdr-logo { margin-right: auto; }
  .catpanel, .catpanel-scrim { display: none !important; }
}
@media (max-width: 960px) {
  .hero { display: flex; flex-direction: column; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: clamp(32px, 6vw, 56px) 0 clamp(40px, 6vw, 64px); }
  .hero-media { order: -1; position: relative; width: 100%; height: clamp(240px, 42vw, 360px); }
  .hero-media::before { width: 100%; height: 45%; inset: auto 0 0 0; background: linear-gradient(0deg, var(--ink), rgba(20,14,8,0)); }
  .hero-media::after { display: none; }
  .hero-mark { left: auto; right: 22px; bottom: -30px; width: 84px; }
  .how-steps { grid-template-columns: 1fr; gap: var(--s5); }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .item-detail { grid-template-columns: 1fr; gap: var(--s5); }
  .item-detail-info { position: static; }
}
@media (max-width: 760px) {
  /* stała siatka 2 kolumn na telefonie — jak w aplikacjach marketplace */
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
}
@media (max-width: 620px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .hero-stats { gap: var(--s4); flex-wrap: wrap; }
  .trust-bar, .ft-grid { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .podium { gap: 6px; }
  .pod-card { padding: var(--s3) 6px; }
  .pod-av { width: 44px; height: 44px; }
  .pod-1 .pod-av { width: 58px; height: 58px; }
  .pod-name { font-size: 12.5px; }
  .pod-1 .pod-name { font-size: 13.5px; }
  .pod-medal { font-size: 10px; padding: 3px 7px; }
  .pod-1 .pod-step { height: 84px; }
  .pod-2 .pod-step { height: 58px; }
  .pod-3 .pod-step { height: 42px; }
  .pod-step { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .pf-head { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: var(--s4); }
  .pf-namerow, .pf-rating, .pf-stats, .pf-actions { justify-content: center; }
  .pf-bio { text-align: center; }
  .hdr-sell { display: none; }
  .item-grid { gap: var(--s4) 10px; }
  .pc-body { padding: 10px 11px 11px; }
  .pc-title, .pc-seller { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .pc:hover, .seller:hover, .btn:hover, .user-result-card:hover { transform: none; }
  .catpanel { animation: none; }
  /* pasek kategorii przewija się dalej — powoli, jednostajnie, bez migotania */
  .marq-track { animation: marq 90s linear infinite !important; animation-iteration-count: infinite !important; }
}

/* ============================================================================
   OSIĄGNIĘCIA + LICYTACJE + SWIPE + „DLA CIEBIE"
   ============================================================================ */

/* --- osiągnięcia: medal — okrągła plakietka trofeum, reużywana na profilu i na /osiagniecia --- */
.medal { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; width: 92px; flex-shrink: 0; }
.medal-ring {
  position: relative; width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.medal.is-unlocked .medal-ring {
  background: radial-gradient(circle at 32% 28%, var(--gold-soft), var(--surface) 72%);
  box-shadow: 0 0 0 2px var(--gold), 0 7px 18px -4px rgba(181, 135, 49, .45), inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.medal.is-locked .medal-ring {
  background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line-2); filter: grayscale(1); opacity: .5;
}
.medal-name { font-size: 11.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.medal.is-locked .medal-name { color: var(--ink-faint); font-weight: 600; }

/* rangi odznak: Brąz / Srebro / Złoto / Platyna */
.medal.rank-1 .medal-ring { background: radial-gradient(circle at 32% 28%, #e8c6a0, var(--surface) 72%); box-shadow: 0 0 0 2px #b87333, 0 7px 18px -4px rgba(184, 115, 51, .4), inset 0 0 0 1px rgba(255,255,255,.5); }
.medal.rank-2 .medal-ring { background: radial-gradient(circle at 32% 28%, #e7e9ee, var(--surface) 72%); box-shadow: 0 0 0 2px #a7adbb, 0 7px 18px -4px rgba(120, 128, 145, .38), inset 0 0 0 1px rgba(255,255,255,.5); }
.medal.rank-3 .medal-ring { background: radial-gradient(circle at 32% 28%, var(--gold-soft), var(--surface) 72%); box-shadow: 0 0 0 2px var(--gold), 0 7px 18px -4px rgba(181, 135, 49, .45), inset 0 0 0 1px rgba(255,255,255,.5); }
.medal.rank-4 .medal-ring { background: radial-gradient(circle at 32% 28%, #dff1f4, var(--surface) 72%); box-shadow: 0 0 0 2px #7fc6d1, 0 7px 20px -4px rgba(80, 170, 185, .45), inset 0 0 0 1px rgba(255,255,255,.6); }
.medal-rank { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.medal-rank.rank-1 { color: #8a531f; background: #f0dcc4; }
.medal-rank.rank-2 { color: #5c6270; background: #e6e8ee; }
.medal-rank.rank-3 { color: #7a5a1c; background: var(--gold-soft); }
.medal-rank.rank-4 { color: #2b7683; background: #d7eef2; }

.ach-mini { height: 5px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 5px 0 2px; }
.ach-mini span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: 999px; }
.ach-ladder { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; }
.ach-tier { font-size: 10.5px; color: var(--ink-faint); white-space: nowrap; }
.ach-tier em { font-style: normal; font-weight: 700; color: var(--ink-soft); }
.ach-tier.is-got { color: var(--gold); }
.ach-tier.is-got em { color: var(--gold); }

.ach-head { margin-bottom: var(--s6); }
.ach-progress { margin: 4px 0 8px; color: var(--ink-soft); font-size: 14px; }
.ach-bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; max-width: 360px; }
.ach-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: 999px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ach-card {
  display: flex; gap: 14px; align-items: center; padding: 16px; clip-path: var(--clip-sm);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
}
.ach-card.is-on { box-shadow: inset 0 0 0 1px var(--gold-soft), 0 4px 14px -6px rgba(181, 135, 49, .3); }
.ach-card .medal { width: auto; }
.ach-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.ach-name { font-weight: 700; font-size: 14px; }
.ach-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.ach-when { font-size: 11px; color: var(--gold); font-weight: 700; margin-top: 3px; }
.ach-when.ach-locked { color: var(--ink-faint); font-weight: 500; }

/* --- odznaki na profilu (tylko już zdobyte) --- */
.pf-badges { margin: var(--s5) 0; }
.pf-badges-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pf-badges-head .section-title { margin: 0; }
.pf-badges-link { font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.medal-row { display: flex; flex-wrap: wrap; gap: 16px 10px; margin-top: 14px; }

/* --- licytacje: karta na ogłoszeniu --- */
.pc-auction { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: var(--gold); color: #fff; font: 800 9.5px var(--f-body); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 5px; box-shadow: 0 1px 4px rgba(20, 14, 8, .18); }
.au-box { margin: var(--s4) 0; padding: 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; gap: 12px; }
.au-status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.au-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); flex-shrink: 0; }
.au-dot-live { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.au-dot-win { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.au-figures { display: flex; gap: 22px; flex-wrap: wrap; }
.au-fig-k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.au-fig-v { display: block; font-family: var(--f-disp); font-size: 19px; letter-spacing: -0.02em; }
.au-bid { display: flex; gap: 8px; align-items: stretch; }
.au-bid .offer-input { flex: 1; }
.au-bid-error { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; color: var(--danger); }
.au-bid-error[hidden] { display: none; }
.au-note { margin: 0; font-size: 12.5px; line-height: 1.5; }
.au-note-ok { color: var(--accent-deep); font-weight: 700; }
.au-note-warn { color: var(--gold); font-weight: 700; }

/* ============================================================================
   WYSTAWIANIE PRZEDMIOTU — /items/new, /items/:id/edit
   ============================================================================ */
.listing-form { max-width: 620px; margin: var(--s5) auto var(--s8); }
.lf-head { margin-bottom: var(--s5); }
.lf-head h1 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; margin: 0 0 6px; }
.lf-head p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

.lf-body { display: grid; gap: var(--s4); }
.lf-section {
  background: var(--surface); box-shadow: var(--sh2), inset 0 0 0 1px var(--line-2);
  clip-path: var(--clip); padding: var(--s5) var(--s5) calc(var(--s5) - 4px);
  display: grid; gap: var(--s3);
}
.lf-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.lf-section-head h2 { font-family: var(--f-disp); font-size: 17px; letter-spacing: -0.01em; margin: 0; }
.lf-section-head span { font-size: 11.5px; color: var(--ink-faint); font-weight: 600; }

.lf-field { display: block; font: 700 11px var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); border: none; padding: 0; margin: 0; }
.lf-field-label { font: 700 11px var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 8px; padding: 0; }
.lf-field > input, .lf-field > textarea, .lf-field > select, .lf-field .cat-picker-row select {
  width: 100%; margin-top: 8px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 500 15px var(--f-body); background-color: var(--paper); color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.lf-field > textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.lf-field > input:focus, .lf-field > textarea:focus, .lf-field > select:focus, .lf-field .cat-picker-row select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background-color: var(--surface);
}
.lf-field > input::placeholder, .lf-field > textarea::placeholder { color: var(--ink-faint); }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.lf-hint { display: block; font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.5; text-transform: none; letter-spacing: normal; font-weight: 500; }
.lf-hint strong { font-weight: 800; color: var(--ink-2); }

/* ============ PŁYWAJĄCY ASYSTENT (prawy dolny róg) ============ */
.asst { position: fixed; right: 20px; bottom: 20px; z-index: 55; }
.asst-fab {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #4aa07f 0%, var(--accent) 55%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 28px -6px rgba(43, 100, 80, .6), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.asst-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -6px rgba(43, 100, 80, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.asst-fab:active { transform: scale(.94); }
.asst.is-open .asst-fab { background: var(--ink); }
.asst-ico-close { display: none; }
.asst.is-open .asst-ico-open { display: none; }
.asst.is-open .asst-ico-close { display: block; }

.asst-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 36px));
  height: min(468px, calc(100vh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: 18px;
  box-shadow: 0 24px 60px -12px rgba(20, 14, 8, .4), 0 0 0 1px var(--line-2);
  transform-origin: bottom right;
  animation: asst-in .22s var(--ease);
}
@keyframes asst-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.asst-panel[hidden] { display: none; }

.asst-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px;
  background: var(--ink); color: var(--paper); flex-shrink: 0;
}
.asst-title { font: 800 13.5px var(--f-body); letter-spacing: .01em; margin-right: auto; }
.asst-spark { color: var(--accent-bright); }
.asst-full, .asst-x {
  width: 30px; height: 30px; border: none; background: rgba(255, 255, 255, .1); color: var(--paper);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 20px; line-height: 1; text-decoration: none; transition: background .15s var(--ease);
}
.asst-full:hover, .asst-x:hover { background: rgba(255, 255, 255, .22); }

.asst-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; background: var(--paper); }
.asst-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.asst-bot { align-self: flex-start; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2); border-bottom-left-radius: 5px; }
.asst-me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.asst-typing { opacity: .5; letter-spacing: .1em; }
.asst-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.asst-chip {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2);
  font: 600 12px var(--f-body); padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.asst-chip:hover { border-color: var(--accent); color: var(--accent-deep); }

.asst-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-2); background: var(--surface); flex-shrink: 0; }
.asst-form input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font: 500 14px var(--f-body); background: var(--paper); color: var(--ink);
}
.asst-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.asst-send {
  width: 40px; height: 40px; flex-shrink: 0; border: none; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
}
.asst-send:hover { background: var(--accent-deep); }
.asst-guest { padding: 16px; text-align: center; border-top: 1px solid var(--line-2); background: var(--surface); flex-shrink: 0; }
.asst-guest p { margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 480px) {
  .asst { right: 14px; bottom: 14px; }
  .asst-panel { width: calc(100vw - 24px); height: min(70vh, 460px); }
  .to-top { bottom: 82px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) { .asst-panel { animation: none; } }

/* jednolita strzałka dla wszystkich list rozwijanych w formularzu */
.lf-field > select, .lf-field .cat-picker-row select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236a6357' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  text-overflow: ellipsis;
}
.lf-field > select:focus, .lf-field .cat-picker-row select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232b6450' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lf-field .cat-picker-row select { background-position: right 9px center; padding-right: 28px; }

/* segmentowany przełącznik cena stała / licytacja */
.lf-segment { border: none; padding: 0; margin: 0; }
.lf-segment > label { display: inline-block; }
.lf-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lf-segment legend { grid-column: 1 / -1; }
.lf-segment label {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px;
  border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer;
  font: 700 13.5px var(--f-body); color: var(--ink-soft); text-transform: none; letter-spacing: 0;
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lf-segment label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.lf-segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.lf-auction { display: grid; gap: var(--s3); padding: var(--s4); border-radius: 12px; background: var(--gold-soft); }
.lf-auction[hidden], .lf-field[data-price-fixed][hidden] { display: none; }

.lf-check { display: flex; align-items: flex-start; gap: 10px; font: 500 13.5px var(--f-body); color: var(--ink); text-transform: none; letter-spacing: 0; line-height: 1.5; cursor: pointer; }
.lf-check input { width: auto; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); width: 17px; height: 17px; }

.lf-submit { position: sticky; bottom: 14px; z-index: 5; }
.lf-submit .btn { box-shadow: var(--sh2); }

@media (max-width: 520px) {
  .lf-row { grid-template-columns: 1fr; }
  .lf-section { padding: var(--s4); }
}

/* ============================================================================
   SWIPE — editorial deck
   ============================================================================ */
.swipe-wrap { max-width: 400px; margin: 0 auto var(--s7); text-align: center; }
.swipe-top { margin-bottom: var(--s4); }
.swipe-top h1 { margin: 0; font-size: clamp(32px, 9vw, 44px); letter-spacing: -0.035em; }
.swipe-top h1::after { content: "."; color: var(--accent); }
.swipe-sub-h { color: var(--ink-soft); font-size: 13px; margin: 6px 0 0; }
.swipe-legend { display: flex; justify-content: center; gap: 8px; margin-top: var(--s3); }
.swipe-legend span { font: 800 10.5px var(--f-body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-faint); }
.swipe-legend .is-no { color: #b8492f; box-shadow: inset 0 0 0 1.5px #e9c3b9; }
.swipe-legend .is-yes { color: var(--accent-deep); box-shadow: inset 0 0 0 1.5px var(--accent); }

.swipe-guard { background: var(--surface); box-shadow: var(--sh2), inset 0 0 0 1px var(--line-2); clip-path: var(--clip); padding: var(--s6) var(--s5); }
.swipe-guard-ico { width: 56px; height: 56px; margin: 0 auto var(--s3); border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; }
.swipe-guard p { margin: 0 0 var(--s4); color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.swipe-guard-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.swipe-deck { position: relative; width: 100%; height: min(62vh, 520px); perspective: 1400px; }
.swipe-deck::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 116%; height: 78%; transform: translate(-50%, -50%);
  z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-soft) 0%, rgba(227, 239, 232, 0) 72%); opacity: .8; filter: blur(8px);
}
.swipe-loading, .swipe-empty {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: var(--s3);
  align-items: center; justify-content: center; color: var(--ink-faint); font-size: 14px; padding: 24px; text-align: center; line-height: 1.55;
}
.swipe-loading[hidden], .swipe-empty[hidden], .swipe-actions[hidden] { display: none; }
.swipe-loading::before {
  content: ""; width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent); animation: swipe-spin .8s linear infinite;
}
@keyframes swipe-spin { to { transform: rotate(360deg); } }
.swipe-empty-ico {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; font: 800 24px var(--f-body);
}

/* karta */
.swipe-card {
  position: absolute; inset: 0; z-index: 2; overflow: hidden;
  border-radius: 24px; clip-path: var(--clip);
  background: var(--ink) center/cover no-repeat;
  box-shadow: var(--sh3), inset 0 0 0 1px rgba(255, 255, 255, .06);
  display: flex; flex-direction: column; justify-content: flex-end;
  user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: grab; will-change: transform;
}
.swipe-card:active { cursor: grabbing; }
.swipe-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 9, 5, .92) 0%, rgba(12, 9, 5, .55) 24%, rgba(12, 9, 5, .05) 46%, transparent 60%);
  transition: opacity .25s var(--ease);
}
.swipe-card:not(:last-child) { filter: brightness(.72) saturate(.88); }
.swipe-card:not(:last-child)::after { opacity: .3; }
.swipe-card:not(:last-child) .swipe-info, .swipe-card:not(:last-child) .swipe-stamp { opacity: 0; }
/* podświetlenie krawędzi w czasie przeciągania */
.swipe-card.is-dragging-like { box-shadow: var(--sh3), inset 0 0 0 3px var(--accent-bright); }
.swipe-card.is-dragging-nope { box-shadow: var(--sh3), inset 0 0 0 3px #ff6b57; }

.swipe-enter { animation: swipe-enter .34s var(--ease); }
@keyframes swipe-enter { from { opacity: 0; transform: translateY(24px) scale(.94); } }

.swipe-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--on-ink-soft); font-size: 13px; background: var(--ink-2); }

.swipe-stamp {
  position: absolute; top: 28px; z-index: 3; opacity: 0; pointer-events: none;
  font: 900 24px var(--f-body); letter-spacing: .07em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 12px; border: 3.5px solid currentColor;
  background: rgba(12, 9, 5, .35); backdrop-filter: blur(3px);
}
.swipe-stamp-like { right: 24px; color: var(--accent-bright); transform: rotate(10deg); text-shadow: 0 0 20px currentColor; }
.swipe-stamp-nope { left: 24px; color: #ff6b57; transform: rotate(-10deg); text-shadow: 0 0 20px currentColor; }

.swipe-burst {
  position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
  color: var(--accent); pointer-events: none; opacity: 0; filter: drop-shadow(0 4px 16px rgba(63, 143, 112, .5));
}
.swipe-burst.go { animation: swipe-burst .6s var(--ease); }
@keyframes swipe-burst {
  0% { opacity: 0; transform: scale(.3); }
  35% { opacity: .95; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.7); }
}

.swipe-info { position: relative; z-index: 2; padding: 22px 22px 24px; text-align: left; color: #fff; display: grid; gap: 4px; text-shadow: 0 1px 10px rgba(12, 9, 5, .5); }
.swipe-kicker { font: 800 10px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: .82; }
.swipe-title { font-family: var(--f-disp); font-weight: 700; font-size: 21px; line-height: 1.14; letter-spacing: -0.02em; }
.swipe-price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.swipe-price { font-family: var(--f-disp); font-size: 24px; letter-spacing: -0.02em; }
.swipe-nofee { font-size: 10px; font-weight: 800; color: var(--accent-bright); text-transform: uppercase; letter-spacing: .06em; }
.swipe-sub { font-size: 12.5px; color: rgba(255, 255, 255, .74); margin-top: 3px; }

@media (prefers-reduced-motion: reduce) {
  .swipe-enter { animation: none; }
  .swipe-burst.go { animation: none; }
}

/* ---- dolny dok akcji: ciemna, elektronowa listwa ---- */
.swipe-actions {
  display: flex; align-items: center; gap: 8px;
  width: fit-content; max-width: 100%; margin: var(--s5) auto 0; padding: 7px 8px;
  background: linear-gradient(180deg, #1c1710 0%, var(--ink) 100%);
  border-radius: 999px;
  box-shadow:
    0 22px 44px -14px rgba(12, 9, 5, .55),
    0 4px 12px -2px rgba(12, 9, 5, .35),
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
  animation: swipe-dock-in .4s var(--ease);
}
@keyframes swipe-dock-in { from { opacity: 0; transform: translateY(14px); } }

.swipe-dock-icons { display: flex; align-items: center; gap: 4px; }
.swipe-dock-sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .13); flex-shrink: 0; margin: 0 3px; }

.swipe-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .05); color: rgba(247, 243, 234, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: background .16s var(--ease), color .16s var(--ease), transform .12s var(--ease), box-shadow .16s var(--ease);
}
.swipe-btn:hover { background: rgba(255, 255, 255, .13); color: #fff; transform: translateY(-1px); }
.swipe-btn:active { transform: scale(.86); }
.swipe-btn[data-act="fav"]:hover {
  background: rgba(63, 143, 112, .28); color: var(--accent-bright);
  box-shadow: inset 0 0 0 1px rgba(162, 214, 191, .3), 0 0 16px -2px rgba(63, 143, 112, .5);
}
.swipe-btn.is-favd { background: var(--accent); color: #fff; }
.swipe-btn.is-favd svg { fill: currentColor; stroke: currentColor; }
.swipe-btn-skip:hover { background: rgba(211, 90, 74, .28); color: #ffb4a8; box-shadow: inset 0 0 0 1px rgba(211, 90, 74, .35); }

.swipe-buy {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 15px 0 16px;
  border-radius: 999px; white-space: nowrap; flex-shrink: 0;
  background: linear-gradient(180deg, #4aa07f 0%, var(--accent) 55%, var(--accent-deep) 100%);
  color: #fff; font: 800 13px var(--f-body); letter-spacing: .01em;
  box-shadow:
    0 8px 20px -4px rgba(63, 143, 112, .65),
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -1px 0 rgba(0, 0, 0, .12);
  transition: transform .14s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease);
}
.swipe-buy .swipe-buy-arrow { transition: transform .18s var(--ease); opacity: .9; }
.swipe-buy:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 28px -4px rgba(63, 143, 112, .8), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12);
}
.swipe-buy:hover .swipe-buy-arrow { transform: translateX(3px); }
.swipe-buy:active { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) { .swipe-actions { animation: none; } }

.hp-head-link { font-size: 13px; font-weight: 700; color: var(--accent-deep); margin-left: auto; }

/* ============ NOWE: zapisane wyszukiwania, feed, statystyki, polecenia, asystent, rezerwacja ============ */

/* --- „Zapisz to wyszukiwanie" (nad wynikami) --- */
.save-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: var(--s3); }
.save-search-label {
  font: 500 14px var(--f-body); padding: 8px 12px; border: 1.5px solid var(--line);
  border-radius: 9px; background: var(--surface); min-width: 200px; flex: 1 1 200px; max-width: 320px;
}
.save-search-label:focus { outline: none; border-color: var(--accent); }
.save-search-btn { display: inline-flex; align-items: center; gap: 6px; }
.save-search-list { font-size: 12.5px; font-weight: 700; color: var(--accent-deep); }

/* --- lista zapisanych wyszukiwań --- */
.ss-list { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: 10px; }
.ss-item {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px;
}
.ss-main { display: grid; gap: 3px; min-width: 0; }
.ss-label { font: 700 15px var(--f-disp); color: var(--ink); letter-spacing: -.01em; }
.ss-crit { font-size: 12.5px; color: var(--ink-soft); }
.ss-counts { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.ss-fresh {
  display: inline-block; margin-left: 6px; background: var(--accent-soft); color: var(--accent-deep);
  font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 999px;
}
.ss-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ss-toggle {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--paper);
  color: var(--ink-soft); font: 700 12px var(--f-body); padding: 7px 11px; border-radius: 999px; cursor: pointer;
}
.ss-toggle.is-on { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.ss-del { color: var(--danger); font-size: 13px; }

/* --- statystyki ogłoszenia --- */
.stats-lead { display: flex; gap: 14px; align-items: center; margin-bottom: var(--s4); }
.stats-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.stats-title { font: 700 17px var(--f-disp); color: var(--ink); letter-spacing: -.02em; }
.stats-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px;
  display: grid; gap: 2px; text-align: left;
}
.stat-n { font: 800 24px var(--f-disp); color: var(--ink); letter-spacing: -.02em; }
.stat-k { font-size: 12px; color: var(--ink-soft); }
.stats-block { margin-top: var(--s6); }
.stats-block h2 { font: 700 17px var(--f-disp); margin-bottom: var(--s3); letter-spacing: -.02em; }
.stats-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 10px 4px 0;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
}
.stats-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 4px; position: relative; }
.stats-bar { width: 100%; max-width: 26px; min-height: 3px; background: linear-gradient(180deg, var(--accent-bright), var(--accent)); border-radius: 4px 4px 0 0; }
.stats-bar-x { font-size: 9px; color: var(--ink-faint); }
.stats-bar-v { position: absolute; top: -2px; font-size: 10px; font-weight: 700; color: var(--ink-soft); }
.stats-price-hint { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-bottom: var(--s3); }

/* --- poleć znajomego --- */
.ref-hero { display: grid; gap: 14px; margin: var(--s4) 0 var(--s5); }
.ref-code-box, .ref-link-box {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.ref-code-k { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 800; width: 100%; }
.ref-code { font: 800 26px var(--f-disp); letter-spacing: .12em; color: var(--accent-deep); }
.ref-link-input { flex: 1 1 220px; min-width: 0; font: 500 13px var(--f-body); padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--paper); }
.ref-stats { margin-bottom: var(--s5); }
.ref-list { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: 8px; }
.ref-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; }
.ref-av, .ref-av-ph { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-deep); font: 800 14px var(--f-disp); }
.ref-name { font-weight: 700; font-size: 14px; }
.ref-badge { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-soft); background: var(--paper-2); padding: 4px 10px; border-radius: 999px; }
.ref-badge-ok { color: var(--accent-deep); background: var(--accent-soft); }
.ref-h { font: 700 20px var(--f-disp); margin: var(--s5) 0 var(--s3); letter-spacing: -.02em; }

/* --- asystent AI --- */
.ai-wrap { max-width: 720px; margin: 0 auto; }
.ai-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ai-mode { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); background: var(--gold-soft); padding: 2px 7px; border-radius: 6px; }
.ai-chat {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 18px; margin: var(--s4) 0 var(--s3); min-height: 300px; max-height: 60vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.ai-msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.ai-msg-me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.ai-msg-bot { align-self: flex-start; background: var(--paper-2); color: var(--ink-2); border-bottom-left-radius: 5px; }
.ai-intro { max-width: 100%; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ai-chip {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2);
  font: 600 13px var(--f-body); padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.ai-chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.ai-typing { opacity: .55; letter-spacing: .12em; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; }
.ai-form textarea {
  flex: 1; resize: none; font: 500 15px var(--f-body); padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); max-height: 140px;
}
.ai-form textarea:focus { outline: none; border-color: var(--accent); }
.ai-send {
  width: 46px; height: 46px; flex-shrink: 0; border: none; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
}
.ai-send:hover { background: var(--accent-deep); }
.ai-disclaimer { font-size: 11.5px; color: var(--ink-faint); margin-top: 10px; }

/* --- rezerwacja na stronie przedmiotu --- */
.reserve-box { margin-top: var(--s3); padding: 14px; background: var(--paper-2); border-radius: 12px; }
.reserve-current { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.reserve-label { display: block; font: 800 11px var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 7px; }
.reserve-row { display: flex; gap: 8px; }
.reserve-row input { flex: 1; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; font: 500 14px var(--f-body); background: var(--surface); }
.reserve-row input:focus { outline: none; border-color: var(--accent); }
.reserve-mine {
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; font-size: 14px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: var(--s3);
}
.pc-reserved { background: var(--gold) !important; color: #fff !important; }

/* --- udostępnienie ogłoszenia w czacie --- */
.msg-share-bar { padding: 8px 12px 0; }
.msg-share-panel { margin-top: 8px; background: var(--paper-2); border-radius: 12px; padding: 12px; }
.msg-share-panel-h { font: 800 11px var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 8px; }
.msg-share-mine { display: grid; gap: 6px; max-height: 190px; overflow-y: auto; margin-bottom: 10px; }
.msg-share-pick {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 10px; font: inherit;
}
.msg-share-pick:hover { border-color: var(--accent); }
.msg-share-pick img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.msg-share-pick span:not(.msg-share-pick-price) { flex: 1; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-share-pick-price { font-size: 12px; font-weight: 700; color: var(--accent-deep); flex-shrink: 0; }
.msg-share-paste { display: flex; gap: 8px; }
.msg-share-paste input { flex: 1; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 9px; font: 500 13px var(--f-body); background: var(--surface); }
.msg-share-paste input:focus { outline: none; border-color: var(--accent); }

/* karta udostępnionego ogłoszenia w wątku */
.msg-share {
  display: flex; gap: 10px; align-items: center; max-width: 320px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; overflow: hidden;
}
.msg-row.mine .msg-share { margin-left: auto; }
.msg-share.is-gone { opacity: .6; }
.msg-share-img { width: 60px; height: 60px; object-fit: cover; border-radius: 9px; flex-shrink: 0; }
.msg-share-noimg { display: flex; align-items: center; justify-content: center; background: var(--paper-2); font-size: 9px; color: var(--ink-faint); text-align: center; }
.msg-share-body { display: grid; gap: 2px; min-width: 0; }
.msg-share-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.msg-share-title { font: 700 14px var(--f-disp); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-share-price { font-size: 13px; font-weight: 700; color: var(--accent-deep); }

@media (max-width: 560px) {
  .ss-item { flex-direction: column; align-items: stretch; }
  .ss-actions { justify-content: space-between; }
  .ai-msg { max-width: 90%; }
}

/* --- przycisk „Podpowiedz z AI" w formularzu wystawiania --- */
.lf-section-head { flex-wrap: wrap; }
.lf-ai-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--accent-deep);
  font: 800 12px var(--f-body); padding: 6px 11px; border-radius: 999px; cursor: pointer;
  transition: background .15s var(--ease);
}
.lf-ai-btn span { font: inherit; color: inherit; text-transform: none; letter-spacing: 0; }
.lf-ai-btn:hover:not(:disabled) { background: var(--accent-bright); }
.lf-ai-btn:disabled { opacity: .6; cursor: default; }
.lf-ai-note {
  font-size: 13px; line-height: 1.45; color: var(--accent-deep);
  background: var(--accent-soft); border-radius: 8px; padding: 9px 12px; margin: -2px 0 2px;
}
.lf-ai-note.is-err { color: var(--danger); background: #f7e6e1; }
.lf-ai-note[hidden] { display: none; }
.lf-field[data-size-field][hidden] { display: none; }

/* ============================================================================
   TRYB CIEMNY  —  data-theme ustawia inline skrypt w <head> (light|dark),
   wybór usera: localStorage 'vezzo:theme' = light | dark | (brak = system)
   ============================================================================ */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ece6da;
  --ink-2: #f7f2e8;
  --ink-soft: #a89d8b;
  --ink-faint: #7b7264;
  --paper: #14110d;
  --paper-2: #201b15;
  --surface: #272019;
  --line: #423a30;
  --line-2: #352d25;
  --accent: #57a98a;
  --accent-deep: #8ad0b4;
  --accent-soft: #1c2c26;
  --accent-bright: #b6e0cd;
  --gold: #d6a552;
  --gold-soft: #2b2214;
  --danger: #e17d66;
  --danger-soft: #33201b;
  --sh1: 0 1px 2px rgba(0, 0, 0, .5);
  --sh2: 0 14px 30px -16px rgba(0, 0, 0, .66);
  --sh3: 0 34px 70px -26px rgba(0, 0, 0, .78);
}

/* poprawki dla elementów, które w jasnym motywie są celowo „atramentowe" (ciemne)
   — po odwróceniu tokenów muszą pozostać ciemne, a ich tekst jasny */
:root[data-theme="dark"] :is(.hero, .how, .marq, .ft, .wallet-balance-card, .cta .btn:not(.btn-ghost), .cookie-bar) { background-color: #100d0b; }
:root[data-theme="dark"] .cookie-bar strong { color: #f4efe4; }
:root[data-theme="dark"] .cookie-actions .btn-secondary { color: #f4efe4; }
:root[data-theme="dark"] :is(.hero, .how) { color: var(--on-ink); }
:root[data-theme="dark"] :is(.hero, .how, .cta, .spot-text, .wallet-balance-card, .ft) :is(h1, h2, h3, h4, strong, b, .hero-title, .hero-sub strong, .hero-stat, .hp-h2, .wallet-balance-amount, .ft-brand .hdr-logo) { color: #f4efe4; }
:root[data-theme="dark"] :is(.hero, .how, .spot) .btn-ghost { color: #f4efe4; box-shadow: inset 0 0 0 1.5px rgba(247, 243, 234, .22); }
:root[data-theme="dark"] .spot-text, :root[data-theme="dark"] .spot-text h2 { color: #f4efe4; }
:root[data-theme="dark"] .cta .btn:not(.btn-ghost) { color: #f4efe4; }
:root[data-theme="dark"] .hero-media::before { background: linear-gradient(90deg, #100d0b, rgba(16, 13, 11, 0)); }
:root[data-theme="dark"] .hero-media::after { background: #100d0b; }
:root[data-theme="dark"] .hp-head-dark .hp-h2 { color: #f4efe4; }
:root[data-theme="dark"] .ft-word { color: rgba(247, 243, 234, .06); }
/* zdjęcia i tła obrazkowe zostawiamy bez zmian; delikatnie przygaszamy jasne miniatury */
:root[data-theme="dark"] .pc-media img, :root[data-theme="dark"] .gallery-main { filter: brightness(.92); }

/* ---- segmentowy przełącznik motywu (ustawienia + inne miejsca) ---- */
.theme-seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 12px; }
.theme-seg button {
  display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer;
  background: transparent; color: var(--ink-soft); font: 700 13px var(--f-body);
  padding: 8px 14px; border-radius: 9px; transition: background .15s var(--ease), color .15s var(--ease);
}
.theme-seg button:hover { color: var(--ink); }
.theme-seg button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--sh1); }

.ft-theme {
  background: none; border: none; cursor: pointer; color: inherit; font: inherit;
  opacity: .85; text-decoration: none;
}
.ft-theme:hover { opacity: 1; text-decoration: underline; }

/* mniej animacji (ustawienie usera — obok systemowego prefers-reduced-motion) */
:root[data-motion="reduced"] *,
:root[data-motion="reduced"] *::before,
:root[data-motion="reduced"] *::after {
  animation-duration: .001ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  transition-delay: 0ms !important;
}
:root[data-motion="reduced"] html { scroll-behavior: auto !important; }

/* gęstsza siatka ogłoszeń */
:root[data-density="compact"] .item-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
@media (max-width: 1180px) { :root[data-density="compact"] .item-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px)  { :root[data-density="compact"] .item-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px)  { :root[data-density="compact"] .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
:root[data-density="compact"] .pc-body { padding: 8px 9px 10px; gap: 1px; }
:root[data-density="compact"] .pc-price { font-size: 14px; }
:root[data-density="compact"] .pc-title, :root[data-density="compact"] .pc-seller { font-size: 11.5px; }
:root[data-density="compact"] .pc-kicker { font-size: 8.5px; }

/* ---- wiersze ustawień platformy ---- */
.pset-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line-2);
}
.settings-card > .pset-row:first-of-type { border-top: none; padding-top: 6px; }
.pset-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pset-label > span { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.pset-label > small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.pset-toggle { cursor: pointer; }

/* przełącznik (checkbox → switch) */
.pset-switch {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; cursor: pointer;
  width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative;
  transition: background .18s var(--ease); margin: 0;
}
.pset-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--surface); box-shadow: var(--sh1);
  transition: transform .18s var(--ease);
}
.pset-switch:checked { background: var(--accent); }
.pset-switch:checked::after { transform: translateX(18px); }
.pset-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pset-static { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.pset-static:first-of-type { border-top: none; }
.pset-static > span { color: var(--ink-soft); }
.pset-static > strong { color: var(--ink); }

form.settings-card .btn-primary { margin-top: var(--s3); align-self: flex-start; }
form.settings-card { display: flex; flex-direction: column; }

@media (max-width: 480px) {
  .pset-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .pset-row .theme-seg { align-self: flex-start; }
  .pset-toggle { flex-direction: row; align-items: center; }
}

/* ---- ukryte przedmioty ---- */
.hidden-list { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 8px; }
.hidden-item { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--paper-2); border-radius: 10px; padding: 8px 12px; }
.hidden-item-main { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; color: inherit; flex: 1; }
.hidden-item-main img, .hidden-item-noimg { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink-faint); }
.hidden-item-txt { display: grid; gap: 1px; min-width: 0; }
.hidden-item-title { font-weight: 600; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden-item-sub { font-size: 12px; color: var(--ink-soft); }

.detail-hidden-note { font-size: 12.5px; color: var(--ink-soft); background: var(--paper-2); border-radius: 8px; padding: 8px 12px; margin: 8px 0 0; line-height: 1.5; }
.detail-hidden-note a { color: var(--accent-deep); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
}

/* ---- mapa paczkomatów InPost (checkout) ---- */
.pkmt { margin: var(--s3) 0 var(--s2); display: grid; gap: 10px; }
.pkmt[hidden] { display: none; }
.pkmt-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.pkmt-bar #pkmt-search { flex: 1 1 180px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); font: inherit; }
.pkmt-bar .btn-sm { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.pkmt-status { margin: 0; font-size: 13px; color: var(--ink-soft); }
.pkmt-map { height: 300px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.pkmt-map .leaflet-container { height: 100%; width: 100%; font: inherit; background: var(--paper-2); }
.pkmt-pin { display: grid; place-items: center; }
.pkmt-pin span { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--paper), 0 1px 4px rgba(0, 0, 0, .35); display: block; }
.pkmt-pin.is-active span { background: var(--accent-deep); width: 19px; height: 19px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--accent-soft); }
.pkmt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.pkmt-list li > button { width: 100%; text-align: left; display: grid; gap: 2px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.pkmt-list li > button:hover { border-color: var(--accent); background: var(--paper-2); }
.pkmt-list li.is-active > button { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.pkmt-list li > button strong { font-size: 13.5px; }
.pkmt-list li > button span { font-size: 12px; color: var(--ink-soft); }
.pkmt-muted { color: var(--ink-faint); }
.pkmt-more { font-size: 12px; color: var(--ink-soft); padding: 6px 4px 2px; line-height: 1.45; }
.pkmt-selected { font-size: 13px; color: var(--ink); background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 9px; padding: 9px 12px; line-height: 1.5; }
.pkmt-selected-code { font-weight: 700; letter-spacing: .02em; }

@media (max-width: 480px) {
  .pkmt-map { height: 240px; }
  .pkmt-bar .btn-sm { flex: 1 1 auto; }
}

/* ---- instalacja aplikacji (PWA) ---- */
:root.is-standalone .ft-install { display: none; }

.appinst { max-width: 760px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s8); }
.appinst-hero { text-align: center; }
.appinst-icon { border-radius: 22px; box-shadow: var(--sh2); margin-bottom: var(--s3); }
.appinst-hero h1 { font-family: var(--f-disp); font-size: clamp(28px, 6vw, 40px); margin: 0 0 var(--s2); }
.appinst-lead { color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 46ch; margin: 0 auto var(--s5); }
.appinst-cta { min-height: 52px; display: grid; gap: 8px; justify-items: center; }
.appinst-cta [data-install][hidden] { display: none; }
.appinst-state { margin: 0; font-size: 13.5px; color: var(--ink-soft); max-width: 42ch; line-height: 1.55; }
.appinst-state[hidden] { display: none; }
.appinst-steps { display: grid; gap: var(--s3); margin: var(--s7) 0 var(--s5); }
@media (min-width: 720px) { .appinst-steps { grid-template-columns: 1fr 1fr; } .appinst-card[data-plat="desktop"] { grid-column: 1 / -1; } }
.appinst-card { border: 1px solid var(--line-2); border-radius: 14px; padding: var(--s4) var(--s4) var(--s3); background: var(--surface); }
.appinst-card.is-mine { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.appinst-card h2 { font-family: var(--f-disp); font-size: 16px; margin: 0 0 var(--s2); }
.appinst-card ol { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.appinst-card ol strong { color: var(--ink); }
.appinst-foot { text-align: center; font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; }

/* DAC7 — status raportowania na /wallet i /settings */
.dac7-status { border-radius: var(--r2, 10px); padding: 12px 14px; font-size: 13.5px; line-height: 1.55; border: 1px solid var(--line, #e4e0d8); background: var(--surface-2, #f6f4ef); }
.dac7-status p { margin: 0 0 6px; }
.dac7-status p:last-child { margin-bottom: 0; }
.dac7-status.is-warn { border-color: var(--gold, #c8951f); background: color-mix(in srgb, var(--gold, #c8951f) 12%, transparent); }
.dac7-status.is-ok { border-color: var(--accent-deep, #2f7d5b); background: color-mix(in srgb, var(--accent-deep, #2f7d5b) 10%, transparent); }
.dac7-status a { font-weight: 600; text-decoration: underline; }

/* Rachunek za usługi Vezzo */
.rachunek { max-width: 720px; margin: 0 auto; background: #fff; color: #1a1a1a; padding: 32px; border: 1px solid #e4e0d8; border-radius: 10px; }
.rachunek-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; border-bottom: 2px solid #1a1a1a; padding-bottom: 12px; margin-bottom: 20px; }
.rachunek-head h1 { font-size: 20px; margin: 0; flex: 1 1 auto; }
.rachunek-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.rachunek-parties h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #666; margin: 0 0 6px; }
.rachunek-parties p { margin: 2px 0; font-size: 13.5px; line-height: 1.5; }
.rachunek-note { color: #666; font-style: italic; margin-top: 6px !important; }
.rachunek-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rachunek-table th, .rachunek-table td { border: 1px solid #d8d4cc; padding: 8px 10px; text-align: left; }
.rachunek-table thead th { background: #f4f2ec; }
.rachunek-table tfoot td { background: #f4f2ec; text-align: right; }
.rachunek-foot { font-size: 12.5px; color: #666; margin-top: 20px; }
@media print {
  header, footer, .flash-container, [data-print] { display: none !important; }
  .rachunek { border: none; padding: 0; max-width: none; }
}

/* Nota konsumencka (zakup od firmy) na stronie przedmiotu */
.detail-consumer-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft, #5b554c); background: var(--surface-2, #f6f4ef); border: 1px solid var(--line, #e4e0d8); border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; }
.detail-consumer-note a { text-decoration: underline; }
