/*
    eAukcije redesign components (2026-10-15).

    Built from tokens.css and the handover's design system
    (3-design-system/components). New class names throughout, so nothing
    here fights the older rules in eaukcije.css and refresh.css; a screen is
    redesigned by moving its markup onto these classes, and the old rules it
    no longer uses are deleted with it.

    Loaded last (base.html.twig). Values come from tokens; a literal colour
    here is a bug unless a comment says why.
*/

/* ═══════════════════════════════════════════════════════════════════════
   Shared primitives
   ═══════════════════════════════════════════════════════════════════════ */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Focus: 2 px blue-700 with a 2 px offset; peach-200 on navy (README §Pristupačnost). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--blue-700);
    outline-offset: 2px;
}
:where(.on-navy) :where(a, button, input, select, summary):focus-visible {
    outline-color: var(--peach-200);
}

/* Prices: tabular figures, never wrapped. `|money` already puts a
   non-breaking space before €. */
.amount, .lotcard__amount { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Gumb ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-height: 48px; padding: 0 var(--space-5);
    border: 1px solid transparent; border-radius: var(--radius-md);
    font: 700 15px/1.2 var(--font-sans);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}
.btn:hover { text-decoration: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn--lg { min-height: 52px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary, .btn--primary:visited { background: var(--orange-600) !important; color: #fff !important; }
.btn--primary:hover { background: #A93C10 !important; }   /* orange-600, 12 % darker: tokens carry no hover shade */
.btn--dark, .btn--dark:visited { background: var(--navy-900) !important; color: #fff !important; }
.btn--dark:hover { background: var(--navy-800) !important; }
.btn--blue, .btn--blue:visited { background: var(--surface) !important; color: var(--blue-700) !important; border-color: var(--blue-700) !important; }
.btn--blue:hover { background: var(--blue-100) !important; }
.btn--secondary, .btn--secondary:visited { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border-strong) !important; }
.btn--secondary:hover { border-color: var(--ink-2) !important; }
.btn--link, .btn--link:visited { background: none !important; color: var(--blue-700) !important; border-color: transparent !important; padding: 0 var(--space-2); min-height: 44px; }
.btn--link:hover { text-decoration: underline; }
.btn--ghost-navy, .btn--ghost-navy:visited { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.35) !important; }
.btn--ghost-navy:hover { border-color: #fff !important; }

/* ── StatusChip ───────────────────────────────────────────────────────── */
.chip {
    display: inline-flex; align-items: center; gap: var(--space-1);
    height: 24px; padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    font: 700 12px/1 var(--font-sans);
    white-space: nowrap;
}
.chip--info    { background: var(--blue-100);  color: var(--blue-700); }
.chip--success { background: var(--green-100); color: var(--green-700); }
.chip--warning { background: var(--amber-100); color: var(--amber-800); }
.chip--neutral { background: #EEF1F5;          color: var(--ink-2); }   /* the README's neutral chip ground */
.chip--danger  { background: var(--red-100);   color: var(--red-700); }

/* ── BadgeVremena ─────────────────────────────────────────────────────── */
.tbadge {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 10px;
    border-radius: 8px;
    font: 700 13px/1 var(--font-sans);
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tbadge time { color: inherit; }
.tbadge--normal, .tbadge--approaching, .tbadge--ended {
    background: rgba(255,255,255,.95); color: var(--ink); box-shadow: var(--shadow-float);
}
.tbadge--ended { color: var(--muted); }
.tbadge--soon     { background: var(--navy-900) !important; color: #fff !important; }
.tbadge--critical { background: var(--red-700) !important;  color: #fff !important; }
.tbadge__dot { display: none; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.tbadge--critical .tbadge__dot { display: inline-block; animation: tbadge-pulse 1.4s ease-in-out infinite; }
@keyframes tbadge-pulse { 50% { opacity: .25; } }

/* ── PlaceholderFotografije ───────────────────────────────────────────── */
.tone { display: flex; align-items: center; justify-content: center; }
.tone--sand  { background: var(--tone-sand);  color: var(--tone-sand-ink); }
.tone--slate { background: var(--tone-slate); color: var(--tone-slate-ink); }
.tone--rose  { background: var(--tone-rose);  color: var(--tone-rose-ink); }
.tone--sky   { background: var(--tone-sky);   color: var(--tone-sky-ink); }
.tone--teal  { background: var(--tone-teal);  color: var(--tone-teal-ink); }
.tone__icon { width: 30%; height: auto; aspect-ratio: 1; }

/* ── Avatar ───────────────────────────────────────────────────────────── */
.avatar {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 999px;
    background: var(--blue-100); color: var(--blue-700);
    font: 800 12px/1 var(--font-sans);
}

/* ── Prati ────────────────────────────────────────────────────────────── */
.watchbtn {
    display: flex; align-items: center; justify-content: center;
    width: var(--touch-target); height: var(--touch-target);
    padding: 0; border: 0; background: transparent; cursor: pointer;
    color: var(--ink);
}
.watchbtn__disc {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 999px;
    background: rgba(255,255,255,.95); box-shadow: var(--shadow-float);
}
.watchbtn svg { width: 18px; height: 18px; fill: none; }
.watchbtn.is-watching { color: var(--orange-600) !important; }
.watchbtn.is-watching svg { fill: currentColor; }
.watchbtn.is-watching .watchbtn__disc { animation: pop var(--duration-base) var(--ease-spring); }
@keyframes pop { 0% { transform: scale(.8); } 100% { transform: scale(1); } }

/* ═══════════════════════════════════════════════════════════════════════
   KarticaPredmeta
   ═══════════════════════════════════════════════════════════════════════ */

.lotcard {
    position: relative;
    display: flex; flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.lotcard:hover, .lotcard:focus-within { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.lotcard--critical, .lotcard:has(.tbadge--critical) { border-color: #EDB1AB; }   /* red-700 at ~35 %, the prototype's critical edge */

.lotcard__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
/* Over the placeholder's icon, which shows until the photograph paints. */
.lotcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lotcard__media .tbadge { position: absolute; left: 10px; top: 10px; z-index: 2; }
.lotcard__watch { position: absolute; right: 6px; top: 6px; z-index: 3; margin: 0; }
.lotcard__photos {
    position: absolute; right: 10px; bottom: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 4px;
    height: 24px; padding: 0 8px; border-radius: var(--radius-sm);
    background: rgba(11,37,64,.8); color: #fff;
    font: 700 12px/1 var(--font-sans);
}

.lotcard__body {
    flex: 1;
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 14px 12px;
}
.lotcard__title {
    margin: 0;
    font: 700 15px/1.35 var(--font-sans); letter-spacing: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lotcard__title a, .lotcard__title a:visited { color: var(--ink); text-decoration: none; }
.lotcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the whole card is the link */
.lotcard:hover .lotcard__title a { color: var(--blue-700); }
.lotcard__meta { margin: 4px 0 0; font: 600 13px/1.4 var(--font-sans); color: var(--muted); }

.lotcard__pricerow { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-2); }
.lotcard__price { margin: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lotcard__pricelabel { font: 600 12px/1.3 var(--font-sans); color: var(--muted); }
.lotcard__amount { font: 800 22px/1.15 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.lotcard__bids { padding-bottom: 3px; font: 600 13px/1.3 var(--font-sans); color: var(--muted); white-space: nowrap; }

.lotcard__chips { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.lotcard__seller {
    position: relative; z-index: 2;            /* above the stretched title link */
    margin-top: auto; padding-top: 10px; min-height: calc(var(--touch-target) + 10px);
    border-top: 1px solid #EEF1F5;              /* the prototype's hairline, lighter than --border */
    display: flex; align-items: center; gap: var(--space-2);
    font: 600 13px/1.3 var(--font-sans); color: var(--muted);
    text-decoration: none;
}
.lotcard__seller:visited { color: var(--muted); }
.lotcard__sellername { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.lotcard__seller:hover .lotcard__sellername { color: var(--blue-700); text-decoration: underline; }
.lotcard__rating { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.lotcard__rating svg { fill: #C98A00; }   /* the prototype's star gold; no token, decoration only */
.lotcard__rating b { color: var(--ink-2); font-weight: 700; }
.lotcard__rating--new { color: var(--muted); }

/* Card grids: five across on wide screens, the compact card two across on a phone. */
.cardgrid, .cardgrid--five { display: grid; gap: var(--space-6); grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .cardgrid, .cardgrid--five { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); } }
@media (max-width: 1000px) { .cardgrid, .cardgrid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .cardgrid, .cardgrid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } }

/* The compact card (README: mobile grid, and the home rail since MOBILE-FIXES
   B3). No condition, chips or seller. */
@media (max-width: 600px) {
    :is(.cardgrid, .railrow--scroll) .lotcard__meta,
    :is(.cardgrid, .railrow--scroll) .lotcard__chips,
    :is(.cardgrid, .railrow--scroll) .lotcard__seller { display: none; }
    :is(.cardgrid, .railrow--scroll) .lotcard__body { padding: 10px 10px 12px; gap: 6px; }
    :is(.cardgrid, .railrow--scroll) .lotcard__title { font-size: 13px; line-height: 1.3; }
    :is(.cardgrid, .railrow--scroll) .lotcard__pricerow { flex-direction: column; align-items: flex-start; gap: 0; }
    :is(.cardgrid, .railrow--scroll) .lotcard__amount { font-size: 18px; }
    :is(.cardgrid, .railrow--scroll) .lotcard__bids { font-size: 12px; padding: 0; }
    :is(.cardgrid, .railrow--scroll) .tbadge { left: 8px; top: 8px; height: 24px; padding: 0 8px; font-size: 12px; }
    :is(.cardgrid, .railrow--scroll) .lotcard__photos { right: 8px; bottom: 8px; height: 22px; padding: 0 6px; }
    :is(.cardgrid, .railrow--scroll) .lotcard__watch { right: 2px; top: 2px; }
}

/* A horizontal rail of full cards (home on a phone, the rails under a lot).
   16 px at both ends: the trailing ::after, because a scroller's right
   padding is ignored by several browsers (README §Rubovi na mobileu). */
.cardrail {
    display: flex; gap: var(--space-3);
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--space-4)); padding: 2px var(--space-4) var(--space-2);
    scrollbar-width: none;
}
.cardrail::-webkit-scrollbar { display: none; }
.cardrail > .lotcard { flex: 0 0 auto; width: 62vw; max-width: 260px; scroll-snap-align: start; scroll-margin-left: var(--space-4); }
.cardrail::after { content: ""; flex: 0 0 var(--space-1); }

@media (prefers-reduced-motion: reduce) {
    .lotcard, .lotcard:hover { transition: none; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Masthead and footer (Main.dc.html)
   Navy frame; a white search field with a blue "Traži" inside it; the one
   orange action is "Prodaj predmet". Selectors start at `body` so they
   outrank refresh.css's `.masthead …` without !important.
   ═══════════════════════════════════════════════════════════════════════ */

body .masthead { background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08); }
body .masthead__inner { max-width: var(--content-max); min-height: 76px; gap: var(--space-6); padding: 0 var(--space-6); }
body .masthead .brand a { color: #fff; font: 800 24px/1 var(--font-sans); letter-spacing: -0.02em; }
body .masthead .brand__tag { display: none; }

body .masthead .searchbar {
    position: relative;
    height: var(--input-height); padding: 2px 2px 2px 42px;   /* 44 px inside: field and Traži meet the touch target */
    background: var(--surface); border: 2px solid var(--surface);
    border-radius: var(--radius-md); box-shadow: none;
}
body .masthead .searchbar:focus-within { background: var(--surface); border-color: var(--peach-200); box-shadow: none; }
.searchbar__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
body .masthead .searchbar__input { color: var(--ink); font: 500 15px/1.2 var(--font-sans); }
body .masthead .searchbar__input::placeholder { color: var(--muted); }
body .masthead .searchbar__scope { color: var(--ink-2); }
body .masthead .searchbar__scope option { color: var(--ink); }
body .masthead .searchbar__input { align-self: stretch; height: auto; }
body .masthead .searchbar__submit {
    height: var(--touch-target); padding: 0 var(--space-4);
    border-radius: var(--radius-sm);
    background: var(--blue-700); color: #fff;
    font: 700 15px/1 var(--font-sans);
}
body .masthead .searchbar__submit:hover { background: var(--navy-800); }

body .masthead .usernav { gap: var(--space-5); font: 600 15px/1 var(--font-sans); }
body .masthead .usernav > a, body .masthead .usernav > a:visited { color: #fff; }
body .masthead .usernav > a:hover { color: var(--peach-200); text-decoration: none; }
body .masthead .usernav__sep { display: none; }
body .masthead .btn-sell, body .masthead .btn-sell:visited {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-5);
    border-radius: var(--radius-pill);
    background: var(--orange-600); color: #fff !important;
    font: 700 15px/1 var(--font-sans);
}
body .masthead .btn-sell:hover { background: #A93C10; }
/* One orange per screen (README): when the page has its own orange action
   (Licitiraj, Kupi odmah), "Prodaj predmet" steps back to the outlined style. */
body:has(.shell .btn--primary) .masthead .btn-sell { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
body:has(.shell .btn--primary) .masthead .btn-sell:hover { background: transparent; box-shadow: inset 0 0 0 1px #fff; }
body .masthead .usermenu__trigger { color: #fff; }
body .masthead :focus-visible { outline-color: var(--peach-200); }

@media (max-width: 900px) {
    body .masthead__inner { padding: var(--space-3) var(--space-4); gap: var(--space-3) var(--space-4); min-height: 0; }
    body .masthead .usernav__help { display: none; }
}
@media (max-width: 700px) {
    body .masthead .brand a { font-size: 20px; }
    body .masthead .usernav { gap: var(--space-4); flex-wrap: nowrap; }
    body .masthead .usernav__lang { display: none; }
    body .masthead .btn-sell { min-height: var(--touch-target); padding: 0 var(--space-4); font-size: 14px; }
    /* Two rows: logo + bell, avatar, "Prodaj"; then search (was three, 193 px). */
    body .masthead__inner { padding-block: var(--space-2) var(--space-3); row-gap: var(--space-2); }
    body .masthead .usernav { gap: var(--space-3); }    body .masthead .btn-sell__long { display: none; }
    body .masthead .btn-sell__short { display: inline; }
}
.btn-sell__short { display: none; }
/* Account menu on a phone: hung from the header, not the avatar, so it keeps
   16 px from both screen edges (it opened at x -29 on a 360 px screen). */
@media (max-width: 479px) {
    body .masthead { position: relative; }
    body .masthead .usermenu { position: static; }
    body .masthead .usermenu__panel { left: var(--space-4); right: var(--space-4); top: calc(100% + var(--space-2)); min-width: 0; }
}

/* Footer: navy, links in a row (two columns on a phone). */
body .sitefoot { margin-top: var(--space-12); padding-block: 0; background: var(--navy-900); color: var(--peach-200); border: 0; }
body .sitefoot ul {
    max-width: var(--content-max); margin: 0 auto; padding: var(--space-6) var(--space-6) var(--space-2);
    display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5);
    list-style: none;
}
body .sitefoot a, body .sitefoot a:visited { color: #D6DEE8; font: 500 13px/1.6 var(--font-sans); text-decoration: none; }
body .sitefoot a:hover { color: #fff; text-decoration: underline; }
body .sitefoot p { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6) var(--space-6); color: #AEBACB; font: 500 13px/1.6 var(--font-sans); }
body .sitefoot :focus-visible { outline-color: var(--peach-200); }
.sitefoot__lang { display: none; }
@media (max-width: 700px) {
    /* Links flow on as few lines as fit (owner, 2026-10-18: two columns of
       44 px rows took a third of the screen). 32 px targets, above WCAG 2.2's
       24 px minimum, with the row gap keeping neighbours apart. */
    body .sitefoot ul { padding: var(--space-5) var(--space-4) var(--space-2); gap: var(--space-1) var(--space-4); }
    body .sitefoot ul a { min-height: 32px; margin-block: 0; }
    body .sitefoot p { padding: var(--space-2) var(--space-4) var(--space-5); }
    .sitefoot__lang { display: list-item; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Homepage (Main.dc.html, Mobile.dc.html)
   ═══════════════════════════════════════════════════════════════════════ */

.hero { background: var(--navy-900); color: #fff; }
.hero__inner {
    max-width: var(--content-max); margin: 0 auto;
    padding: var(--space-12) var(--space-6);
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-8); align-items: end;
}
.hero__title { margin: 0; color: #fff; font: 800 44px/48px var(--font-sans); letter-spacing: -0.02em; }
.hero__lead { margin: var(--space-4) 0 0; max-width: 34em; color: #D6DEE8; font: 500 18px/1.5 var(--font-sans); }
.hero__actions { margin: var(--space-8) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__how { margin: var(--space-4) 0 0; font: 600 15px/1.4 var(--font-sans); }
.hero__how a { color: #D6DEE8; text-decoration: underline; text-underline-offset: 3px; }
.hero__how a:hover { color: #fff; }
.hero__trust { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.hero__trust li {
    display: flex; flex-direction: column; gap: var(--space-1);
    padding: var(--space-4); border-radius: var(--radius-md);
    background: var(--navy-800);
}
.hero__trust svg { width: 20px; height: 20px; margin-bottom: var(--space-2); color: var(--peach-200); }
.hero__trust b { font: 700 15px/1.3 var(--font-sans); color: #fff; }
.hero__trust span { font: 500 13px/1.45 var(--font-sans); color: #AEBACB; }

.tileband { background: var(--surface); border-bottom: 1px solid var(--border); }
.cattiles { max-width: var(--content-max); margin: 0 auto; padding: var(--space-5) var(--space-6); }
.cattiles__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: var(--space-3); }
.cattile, .cattile:visited {
    height: 100%; min-height: 128px;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: var(--space-2);
    padding: var(--space-4) var(--space-2);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    color: var(--ink); text-align: center; text-decoration: none;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.cattile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-hover); text-decoration: none; }
.cattile__disc { width: 52px; height: 52px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center; }
.cattile__disc .icon { width: 22px; height: 22px; }
.cattile__name { font: 700 14px/1.3 var(--font-sans); }
.cattile--empty { opacity: .6; }
.cattile--all, .cattile--all:visited { border-style: dashed; border-color: var(--border-strong); color: var(--blue-700); }
.cattile--all .cattile__disc { background: var(--blue-100); color: var(--blue-700); }

.homerails { display: flex; flex-direction: column; gap: var(--space-12); padding-top: var(--space-12); }
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.rail__title { margin: 0; font: 800 28px/34px var(--font-sans); letter-spacing: -0.02em; color: var(--ink); }
.rail__sub { margin: var(--space-1) 0 0; font: 500 15px/1.4 var(--font-sans); color: var(--muted); }
.rail__sub--short, .rail__more--short { display: none; }
.rail__more, .rail__more:visited { flex: none; display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-700); font: 700 15px/1 var(--font-sans); white-space: nowrap; }
.rail__empty { margin: 0; color: var(--muted); }

.railrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 1200px) { .railrow { gap: var(--space-4); } }
@media (max-width: 1000px) {
    .railrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .railrow > .lotcard:nth-child(n+4) { display: none; }
}

.upcoming { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.upcoming__row {
    display: flex; align-items: center; gap: var(--space-4);
    padding: var(--space-3); padding-right: var(--space-4);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.upcoming__thumb { flex: none; width: 72px; height: 72px; border-radius: var(--radius-md); overflow: hidden; }
.upcoming__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upcoming__thumb .tone__icon { width: 45%; }
.upcoming__text { flex: 1; min-width: 0; }
.upcoming__title, .upcoming__title:visited { display: block; color: var(--ink); font: 700 15px/1.35 var(--font-sans); }
/* The clamp sits on an inner span: the link itself is a 44 px tap target, and
   padding on a clamped box would show the top of a third line. */
.upcoming__titletext { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-width: 0; overflow-wrap: anywhere; }
.upcoming__line { margin: 2px 0 0; font: 500 13px/1.45 var(--font-sans); color: var(--muted); }
.upcoming__line b { color: var(--ink); }
.upcoming__form { margin: 0; flex: none; }
.upcoming__remind { flex: none; min-height: 44px; padding: 0 var(--space-4); font-size: 14px; }
.upcoming__remind.is-watching { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }
/* On: a tick instead of the bell, "✓ Podsjetnik" (MOBILE-FIXES B7). */
.upcoming__remind.is-watching svg { display: none; }
.upcoming__remind.is-watching::before { content: "✓"; font-weight: 800; }

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; padding: var(--space-6) var(--space-4) var(--space-8); align-items: start; }
    .hero__trust { display: none; }
    .upcoming { grid-template-columns: minmax(0, 1fr); }
}

/* Phone: the category tiles become a row of discs that scrolls; the
   ending rail scrolls sideways with full cards; "Novo" is the compact grid. */
@media (max-width: 700px) {
    .hero__title { font-size: 28px; line-height: 34px; }
    .hero__lead { margin-top: var(--space-2); font-size: 15px; }
    .hero__actions { margin-top: var(--space-5); display: grid; grid-template-columns: 1fr 1fr; }
    .hero__actions .btn { padding: 0 var(--space-3); }
    .hero__copy { min-width: 0; }

    .cattiles { padding: var(--space-4) 0; }
    .cattiles__list {
        display: flex; gap: var(--space-2);
        overflow-x: auto; scrollbar-width: none;
        padding: 0 var(--space-4);
    }
    .cattiles__list::-webkit-scrollbar { display: none; }
    .cattiles__list::after { content: ""; flex: 0 0 var(--space-2); }
    .cattiles__list > li { flex: 0 0 auto; }
    .cattile, .cattile:visited { min-height: 0; min-width: 72px; max-width: 104px; padding: 0 var(--space-1); border: 0; background: none; gap: var(--space-2); }
    .cattile:hover { box-shadow: none; }
    .cattile--all .cattile__disc { border: 1px dashed var(--border-strong); }
    .cattile__name { font-size: 12px; line-height: 1.25; }

    .homerails { gap: var(--space-8); padding-top: var(--space-6); }
    .rail__head { margin-bottom: var(--space-3); }
    .rail__title { font-size: 22px; line-height: 28px; }
    .rail__sub { font-size: 13px; }
    .rail__sub--long, .rail__more--long { display: none; }
    .rail__sub--short, .rail__more--short { display: inline; }

    .railrow--scroll {
        display: flex; gap: var(--space-3);
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin: 0 calc(-1 * var(--space-4)); padding: 2px 0 var(--space-2) var(--space-4);   /* end gutter: the ::after spacer + gap, not padding (both counted = 32 px) */
    }
    .railrow--scroll::-webkit-scrollbar { display: none; }
    .railrow--scroll::after { content: ""; flex: 0 0 var(--space-1); }
    .railrow--scroll > .lotcard { flex: 0 0 auto; width: 66vw; max-width: 270px; scroll-snap-align: start; scroll-margin-left: var(--space-4); }
    .railrow--scroll > .lotcard:nth-child(n+4) { display: flex; }
    .railrow--scroll .lotcard__meta, .railrow--scroll .lotcard__chips { display: none; }
    .railrow--scroll .lotcard__seller { border-top: 0; padding-top: 0; min-height: var(--touch-target); }

    /* Compact cards, sized so two whole cards and part of a third show. */
    @media (max-width: 600px) {
        .railrow--scroll > .lotcard { width: clamp(150px, calc((100vw - var(--space-4) - 2 * var(--space-3)) / 2.3), 160px); }
    }

    .railrow.cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .railrow.cardgrid > .lotcard:nth-child(n+5) { display: none; }
    .railrow.cardgrid > .lotcard:nth-child(4) { display: flex; }

    .upcoming__row { gap: var(--space-3); }
    .upcoming__thumb { width: 56px; height: 56px; }
    .upcoming__line--price { display: none; }
    .upcoming__remind { padding: 0 var(--space-3); gap: var(--space-1); font-size: 13px; }
}

/* Every sideways scroller is a containing block, so the absolutely
   positioned screen-reader labels inside it stay inside it. Without this
   they escape to <html> and widen the whole page on a phone. */
.cattiles__list, .railrow--scroll, .cardrail, .cattile { position: relative; }

/* ═══════════════════════════════════════════════════════════════════════
   Lot page (Oglas.dc.html, PanelStanja.dc.html, OglasMobile.dc.html)
   `body .listing …` outranks the older layers without !important.
   ═══════════════════════════════════════════════════════════════════════ */

body .listing { grid-template-columns: minmax(0, 1fr) 354px; gap: var(--space-6) 40px; margin-top: var(--space-4); }
@media (min-width: 1024px) {
    /* Pins below the sticky masthead. */
    body .listing__buy { position: sticky; top: calc(var(--masthead-h) + var(--space-4)); }
}

/* Live connection notice: a thin fixed bar over the top of the viewport, out of
   flow so it never moves the page. The offline bar (z-index 1000) covers it. */
body .connection-notice[data-state] {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    margin: 0; padding: var(--space-2) var(--space-4);
    border: 0; border-radius: 0;
    background: var(--navy-900); color: var(--surface);
    font: 600 13px/20px var(--font-sans); text-align: center;
    box-shadow: var(--shadow-float);
}
body .connection-notice[data-state="stale"] { font-weight: 800; }
/* A reconnect that lands within a second (tab return, hub timeout) never shows. */
body .connection-notice[data-state="reconnecting"] { animation: notice-in var(--duration-base) var(--ease-out) 1s backwards; }
@keyframes notice-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    body .connection-notice[data-state="reconnecting"] { animation-duration: 1ms; }
}

/* Breadcrumbs */
body .breadcrumbs { font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
body .breadcrumbs a { color: var(--ink-2); }

/* Panel shell */
body .listing .bidbox {
    position: static;
    display: flex; flex-direction: column; gap: var(--space-4);
    padding: var(--space-5);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: none;
}
body .listing .listinghead h1 { margin: 0; font: 800 26px/1.2 var(--font-sans); letter-spacing: -0.02em; color: var(--ink); }
body .listing .listinghead__meta { margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; gap: 0 2px; font: 500 13px/1.5 var(--font-sans); color: var(--muted); }
body .listing .listinghead__watch { flex-basis: 100%; }

body .listing .lotactions { display: flex; gap: var(--space-2); margin: 0; }
.btn--sm { min-height: var(--touch-target); padding: 0 var(--space-3); font-size: 14px; border-radius: var(--radius-md); }
body .listing .watchform { margin: 0; }
body .listing .watchform__button .heart { width: 16px; height: 16px; fill: none; }
/* The label darkened from orange-600 to clear 4.5:1 on white; the heart keeps the token. */
body .listing .watchform__button.is-watching { color: color-mix(in srgb, var(--orange-600) 90%, #000) !important; border-color: var(--orange-600) !important; }
body .listing .watchform__button.is-watching .heart { color: var(--orange-600); fill: currentColor; }
body .listing .share { position: relative; }
body .listing .share__toggle { list-style: none; cursor: pointer; }
body .listing .share__toggle::-webkit-details-marker { display: none; }
body .listing .share__icon { width: 16px; height: 16px; }

/* BadgeVremena, large: the countdown box */
body .listing .clockbox {
    margin: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3);
    flex-wrap: wrap;
    padding: var(--space-3) var(--space-4);
    background: var(--ground) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-md); color: var(--ink) !important;
}
body .listing .clockbox__label { flex-basis: 100%; margin-bottom: -6px; font: 700 12px/1.3 var(--font-sans); color: var(--ink-2) !important; }
body .listing .clock--big { font: 800 22px/1.15 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink) !important; white-space: nowrap; }
body .listing .clockbox__absolute { font: 600 12px/1.35 var(--font-sans); color: var(--ink-2) !important; text-align: right; white-space: nowrap; }
body .listing .clockbox:has(.clock--critical) { background: var(--red-100) !important; border-color: #F3B8B2 !important; }
body .listing .clockbox:has(.clock--critical) .clockbox__label,
body .listing .clockbox:has(.clock--critical) .clock--big,
body .listing .clockbox:has(.clock--critical) .clockbox__absolute { color: var(--red-700) !important; }
body .listing .clockbox--upcoming { background: var(--blue-100) !important; border-color: #CFDDEC !important; }
body .listing .clockbox--ended .clock--big { color: var(--ink-2); }
body .listing .bidbox__snipe, body .listing .extnote { margin: var(--space-2) 0 0; font: 500 13px/1.5 var(--font-sans); color: var(--muted); }
body .listing .extnote--live { color: var(--ink-2); }
body .listing .extnote__count { display: inline-flex; margin-right: var(--space-2); padding: 2px 6px; border-radius: var(--radius-sm); background: var(--navy-900); color: #fff; font-weight: 700; font-size: 12px; }

/* Price */
body .listing .bidbox__price { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; border: 0; background: none; }
body .listing .bidbox__label { font: 600 13px/1.4 var(--font-sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
body .listing .bigprice { font: 800 36px/40px var(--font-sans); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
body .listing .bigprice.is-updated, body .listing .bigprice.flash { animation: price-bump var(--duration-feedback) var(--ease-out); }
@keyframes price-bump { 0% { color: var(--orange-600); transform: translateY(-2px); } 100% { color: var(--ink); transform: none; } }
body .listing .bidbox__sub { margin: var(--space-1) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font: 700 13px/1.4 var(--font-sans); }
body .listing .bidcount a, body .listing .bidcount a:visited { color: var(--blue-700); }
body .listing .bidcount--none { color: var(--muted); }
body .listing .bidbox__fixed, body .listing .bidbox__notstarted { color: var(--blue-700); }

/* The viewer's status */
.pstatus { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid transparent; }
.pstatus__title { margin: 0; font: 800 15px/1.35 var(--font-sans); }
.pstatus__body { margin: 2px 0 0; font: 500 13px/1.5 var(--font-sans); }
.pstatus--success { background: var(--green-100); border-color: #BFE3CC; color: var(--green-700); }
.pstatus--warning { background: var(--amber-100); border-color: #F3DDB4; color: var(--amber-800); }
.pstatus--danger  { background: var(--red-100); border-color: #F3B8B2; color: var(--red-700); }
.pstatus--none { display: none; }
.pstatus--neutral { background: var(--ground); border-color: var(--border); color: var(--ink-2); }
.pstatus--neutral .pstatus__title { color: var(--ink); }
.pstatus--big { padding: var(--space-4); }
.bidpanel__actions { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }

/* The form */
body .listing .bidbox__form { display: flex; flex-direction: column; gap: var(--space-3); }
body .listing .bidform { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); margin: 0; }
body .listing .bidform > * { grid-column: auto; }
body .listing .bidform__label { font: 700 13px/1.4 var(--font-sans); color: var(--ink); }
body .listing .field--amount { position: relative; margin: 0; }
body .listing .bidform__amount {
    width: 100%; height: var(--input-height); padding: 0 40px 0 var(--space-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--surface); color: var(--ink);
    font: 600 18px/1 var(--font-sans); font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
body .listing .bidform__amount::-webkit-inner-spin-button, body .listing .bidform__amount::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body .listing .bidform__amount:focus { outline: 2px solid var(--blue-700); outline-offset: 0; border-color: var(--blue-700); }
body .listing .bidform__amount:user-invalid { border-color: var(--red-700); outline-color: var(--red-700); }
body .listing .bidform__currency { position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%); font: 700 16px/1 var(--font-sans); color: var(--ink-2); }
body .listing .bidform__hint { margin: 0; font: 500 13px/1.45 var(--font-sans); color: var(--muted); }
body .listing .bidbox__nextmin { display: inline; font: inherit; color: inherit; }
body .listing .quickbid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-1) 0 var(--space-2); }
body .listing .quickbid[hidden] { display: none; }
body .listing .quickbid__amount {
    min-height: 44px; padding: 0 var(--space-2);
    border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface);
    color: var(--ink); font: 700 14px/1 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer;
}
body .listing .quickbid__amount:hover { border-color: var(--ink-2); }
body .listing .quickbid__amount.is-selected { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }
body .listing .btn--bid { margin: 0; }
body .listing .bidform__note, body .listing .binbuy__note { margin: 0; font: 500 13px/1.45 var(--font-sans); color: var(--muted); }

.bidconfirm { padding: var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--ground); }
.bidconfirm[hidden] { display: none; }
.bidconfirm__title { margin: 0; font: 800 15px/1.35 var(--font-sans); color: var(--ink); }
.bidconfirm__body { margin: var(--space-1) 0 var(--space-3); font: 500 14px/1.5 var(--font-sans); color: var(--ink-2); }
.bidconfirm__actions { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); }

.pdivider { margin: var(--space-1) 0; display: flex; align-items: center; gap: var(--space-3); font: 600 12px/1 var(--font-sans); color: var(--muted); }
.pdivider::before, .pdivider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
body .listing .binbuy { margin: 0; }
body .listing .bidbox__closed { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--ground); font: 500 14px/1.5 var(--font-sans); color: var(--ink-2); }

/* Outcome after a bid (role="status") */
body .listing .outcome-slot:empty { display: none; }
body .listing .outcome { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid; }
body .listing .outcome--ok { background: var(--green-100); border-color: #BFE3CC; color: var(--green-700); }
body .listing .outcome--no { background: var(--amber-100); border-color: #F3DDB4; color: var(--amber-800); }
body .listing .outcome__headline { margin: 0; font: 800 15px/1.35 var(--font-sans); }
body .listing .outcome__detail { margin: 2px 0 0; font: 500 13px/1.5 var(--font-sans); }
body .listing .outcome__facts { display: none; }

/* Foot of the panel */
body .listing .bidpanel__foot { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border); }
body .listing .bidhelp summary { display: flex; align-items: center; gap: var(--space-2); min-height: var(--touch-target); cursor: pointer; list-style: none; font: 700 14px/1.3 var(--font-sans); color: var(--blue-700); }
body .listing .bidhelp summary::-webkit-details-marker { display: none; }
body .listing .bidhelp summary::before { content: "›"; font-size: 18px; transition: transform var(--duration-fast); }
body .listing .bidhelp[open] summary::before { transform: rotate(90deg); }
body .listing .bidhelp ul { margin: var(--space-2) 0; padding-left: var(--space-5); font: 500 13px/1.55 var(--font-sans); color: var(--ink-2); }
/* One copy per width (MOBILE-FIXES B10): in the panel on a wide screen, in the
   bid sheet under "Licitiraj" on a phone. */
body .listing .bidsheet .bidhelp { display: none; }
@media (max-width: 700px) {
    body .listing .bidsheet .bidhelp { display: block; margin-top: var(--space-2); }
    body .listing .bidpanel__foot .bidhelp { display: none; }
}
body .listing .bidhelp a { font: 700 13px/1.4 var(--font-sans); }
body .listing .bidbox__ship { margin: 0; display: flex; flex-wrap: wrap; gap: 0 4px; align-items: baseline; font: 500 13px/1.5 var(--font-sans); color: var(--ink-2); }
body .listing .bidbox__ship svg { flex: none; align-self: center; margin-right: var(--space-1); color: var(--muted); }
body .listing .bidbox__ship strong { color: var(--ink); }

/* Sheet parts, inert on a desktop */
.bidsheet__head, .bidsheet__summary, .bidbar, .bidsheet__backdrop { display: none; }
.bidsheet__body { display: flex; flex-direction: column; gap: var(--space-4); }

/* Seller card and report link */
body .listing .sellerbox { margin-top: var(--space-4); }
body .listing .reportlink, body .listing .reportlink:visited { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; margin-top: var(--space-2); font: 500 13px/1 var(--font-sans); color: var(--ink-2); }

/* Gallery frame */
body .listing .gallery__stage { border-radius: var(--radius-lg); overflow: hidden; }
/* The placeholder under every slide: tone ground from .tone, the icon centred, the photo on top. */
body .listing .gallery__slide a { position: relative; display: flex; align-items: center; justify-content: center; color: inherit; }
body .listing .gallery__slide .tone__icon { width: 18%; max-width: 96px; }
body .listing .gallery__slide img { position: absolute; inset: 0; }
body .listing .gallery--none .tone__icon { width: 64px; }
body .listing .gallery__thumbs img, body .listing .gallery__thumbs a { border-radius: var(--radius-md); }

/* Description card and facts */
body .listing .listing__desc .panel, body .listing .listing__tabs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: none; }
/* The tabs card's inset (2026-10-20): it had a border and no padding, so the
   strip, the bid table and the note all touched its edge. */
body .listing .listing__tabs { padding: var(--space-6); }
@media (max-width: 700px) { body .listing .listing__tabs { padding: var(--space-4); } }
body .listing .listing__desc-heading { font: 800 22px/28px var(--font-sans); letter-spacing: -0.01em; }
/* Same inset as the tab panel beside it, so the two cards' text lines up. */
body .listing .listing__desc .panel__body { padding-left: var(--space-6); padding-right: var(--space-6); }
@media (max-width: 700px) { body .listing .listing__desc .panel__body { padding-left: var(--space-4); padding-right: var(--space-4); } }
body .listing .prose { font: 500 15px/1.65 var(--font-sans); color: var(--ink-2); }
body .listing .factlist--quiet { border-top: 1px solid var(--border); padding-top: var(--space-4); margin-top: var(--space-5); }
body .listing .factlist--quiet dt { font: 600 12px/1.3 var(--font-sans); color: var(--muted); }
body .listing .factlist--quiet dd { font: 700 14px/1.4 var(--font-sans); color: var(--ink); }
body .listing .bidlog__row--winning { background: var(--green-100); }

/* Phone: the panel's form becomes a bottom sheet behind a sticky bar. */
@media (max-width: 700px) {
    body .listing { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
    body .listing .bidbox { padding: 0; border: 0; background: none; gap: var(--space-3); }
    body .listing .listinghead h1 { font-size: 22px; line-height: 28px; }
    body .listing .lotactions { display: none; }
    body .listing .bidbox__clock { order: 3; }
    body .listing .bidbox__price { order: 2; padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
    body .listing .bidbox__snipe { display: none; }
    body .listing .bidpanel__foot { order: 4; border-top: 0; padding-top: 0; }

    /* Without scripting the sheet stays inline and the bar's link jumps to it. */
    html:not(.js) .bidsheet__head, html:not(.js) .bidsheet__summary { display: none; }
    html.js .bidsheet {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        max-height: 86vh; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
        padding: var(--space-2) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom));
        background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        box-shadow: var(--shadow-sheet);
        transform: translateY(105%); visibility: hidden;
        transition: transform 220ms var(--ease-out), visibility 0s linear 220ms;
    }
    html.js .bidsheet.is-open { transform: none; visibility: visible; transition: transform var(--duration-slow) var(--ease-out), visibility 0s; }
    .bidsheet__head { display: grid; grid-template-columns: 1fr 44px; align-items: center; padding-top: var(--space-3); margin-bottom: var(--space-3); }
    .bidsheet__grip { position: absolute; top: var(--space-2); left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 999px; background: var(--border-strong); }
    .bidsheet__title { margin: 0; font: 800 22px/28px var(--font-sans); }
    .bidsheet__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
    .bidsheet__summary { display: flex; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--ground); }
    .bidsheet__summary > span { display: flex; flex-direction: column; gap: 2px; }
    .bidsheet__summary small { font: 600 13px/1.3 var(--font-sans); color: var(--ink-2); }
    .bidsheet__summary b { font: 800 20px/1.2 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .bidsheet__ends { align-items: flex-end; text-align: right; }
    .bidsheet__ends b { color: var(--ink); }
    body .listing:has(.clock--critical) .bidsheet__ends b { color: var(--red-700); }
    .bidsheet__backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(11,37,64,.45); }

    .bidbar {
        display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
        background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(11,37,64,.08);
    }
    .bidbar__price { margin: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .bidbar__price b { font: 800 20px/1.15 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .bidbar__price > span { font: 600 12px/1.3 var(--font-sans); color: var(--muted); white-space: nowrap; }
    body .listing:has(.clock--critical) .bidbar__price > span { color: var(--red-700); }
    .bidbar .btn { flex: none; padding: 0 var(--space-6); }
    body:has(.bidbar) .sitefoot { padding-bottom: 88px; }
    html.has-sheet { overflow: hidden; }
}

/* Seller card under the bid panel */
.sellercard { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.sellercard__head { display: flex; align-items: center; gap: var(--space-3); }
.avatar--lg { width: 44px; height: 44px; font-size: 14px; }
.sellercard__who { min-width: 0; }
.sellercard__name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font: 800 16px/1.3 var(--font-sans); }
.sellercard__name a, .sellercard__name a:visited { color: var(--ink); }
.sellercard__meta { margin: 2px 0 0; font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
.sellercard__none { margin: 0; font: 500 13px/1.5 var(--font-sans); color: var(--muted); }
.sellercard__score { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font: 500 13px/1.4 var(--font-sans); color: var(--ink-2); }
.sellercard__score b { font: 800 16px/1 var(--font-sans); color: var(--ink); }
.sellercard__bar { margin: 0; display: flex; gap: 3px; height: 6px; }
.sellercard__bar span { border-radius: 999px; min-width: 0; flex-basis: 0; }
.sellercard__bar--pos { background: var(--green-600); }
.sellercard__bar--neu { background: var(--border-strong); }
.sellercard__bar--neg { background: var(--orange-600); }
.sellercard__counts { margin: 0; font: 500 12px/1.4 var(--font-sans); color: var(--muted); }
.sellercard__level summary { cursor: pointer; font: 600 13px/1.5 var(--font-sans); color: var(--blue-700); }
.sellercard__level .sellerlevel { color: var(--ink); font-weight: 700; }
.sellercard__level ul, .sellercard__level p { font: 500 13px/1.5 var(--font-sans); color: var(--ink-2); }
.sellercard__actions { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
body .listing .clockbox--ended { background: var(--ground) !important; border-color: var(--border) !important; color: var(--ink) !important; }
body .listing .clockbox--ended .clockbox__label, body .listing .clockbox--ended .clockbox__absolute { color: var(--ink-2) !important; }
body .listing .clockbox--ended .clock--big { color: var(--ink-2) !important; }
.sellercard__level summary { list-style: none; }
.sellercard__level summary::-webkit-details-marker { display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   Category page (Kategorija.dc.html, KategorijaMobile.dc.html)
   ═══════════════════════════════════════════════════════════════════════ */

.catnav { position: relative; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.catnav__inner { max-width: var(--content-max); margin: 0 auto; padding: var(--space-3) var(--space-6); display: flex; align-items: center; gap: var(--space-3); }
.catmenu { flex: none; }
.catmenu__toggle {
    display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: 44px; padding: 0 var(--space-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--surface); color: var(--ink); font: 700 15px/1 var(--font-sans);
    cursor: pointer; list-style: none;
}
.catmenu__toggle::-webkit-details-marker { display: none; }
.catmenu[open] .catmenu__toggle { background: var(--blue-100); border-color: var(--blue-700); }
.catmenu[open] .catmenu__chev { transform: rotate(180deg); }
.catmenu__panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px -18px rgba(11,37,64,.35);
}
.catmenu__grid {
    max-width: var(--content-max); margin: 0 auto; padding: var(--space-6) var(--space-6) var(--space-2);
    list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--space-8);
}
.catmenu__root, .catmenu__root:visited { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); font: 800 15px/1.3 var(--font-sans); }
.catmenu__disc { width: 32px; height: 32px; border-radius: 999px; }
.catmenu__disc .icon { width: 16px; height: 16px; }
.catmenu__children { margin: var(--space-2) 0 0; padding: 0 0 0 44px; list-style: none; }
.catmenu__children a, .catmenu__children a:visited { display: inline-flex; min-height: 32px; align-items: center; color: var(--ink-2); font: 500 14px/1.3 var(--font-sans); }
.catmenu__children a:hover, .catmenu__root:hover { color: var(--blue-700); }
.catmenu__all { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6) var(--space-5); text-align: right; font: 700 14px/1 var(--font-sans); }

.catnav__chips { margin: 0; padding: 0 0 0 var(--space-3); list-style: none; display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; position: relative; border-left: 1px solid var(--border); }
.catnav__chips::-webkit-scrollbar { display: none; }
.catnav__chips > li { flex: 0 0 auto; }
/* Right-edge fade: the row's last item, pinned to the right edge while more
   chips follow; at the end it sits after the last chip and fades nothing. */
.catnav__chips::after {
    content: ""; position: sticky; right: 0; flex: 0 0 var(--space-12);
    margin-left: calc(-1 * var(--space-2));
    background: linear-gradient(to right, transparent, var(--surface));
    pointer-events: none;
}
.catchip, .catchip:visited {
    display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: 44px; padding: 0 var(--space-4);
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--ink); font: 700 15px/1 var(--font-sans); white-space: nowrap;
}
.catchip .icon { width: 16px; height: 16px; }
.catchip:hover { border-color: var(--border-strong); text-decoration: none; }
.catchip.is-current { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }

.cathead { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-3) 0 var(--space-5); }
.cathead__disc { flex: none; width: 64px; height: 64px; border-radius: 999px; }
.cathead__disc .icon { width: 28px; height: 28px; }
.cathead__title { margin: 0; font: 800 36px/40px var(--font-sans); letter-spacing: -0.02em; }
.cathead__sub { margin: var(--space-1) 0 0; font: 500 15px/1.4 var(--font-sans); color: var(--muted); }

.catpills { margin-bottom: var(--space-6); }
.catpills__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); position: relative; }
.catpill, .catpill:visited {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface);
    color: var(--ink); font: 700 15px/1 var(--font-sans); white-space: nowrap;
}
.catpill__n { color: var(--muted); font-weight: 600; }
.catpill.is-current { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }
.catpill--empty { opacity: .6; }

.catlayout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.catfilters {
    display: flex; flex-direction: column; gap: var(--space-4);
    padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.catfilters__head { display: flex; align-items: center; justify-content: space-between; }
.catfilters__title { margin: 0; font: 800 18px/1.3 var(--font-sans); }
.catfilters__close, .catfilters__head .bidsheet__grip { display: none; }
.catfilters__group { margin: 0; padding: 0 0 var(--space-4); border: 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.catfilters__group:last-of-type { border-bottom: 0; padding-bottom: 0; }
.catfilters__group legend { padding: 0; margin-bottom: var(--space-2); font: 700 13px/1.3 var(--font-sans); color: var(--ink); }
.fopt { display: flex; align-items: center; gap: var(--space-3); min-height: var(--touch-target); font: 500 15px/1.3 var(--font-sans); color: var(--ink); cursor: pointer; }
.fopt input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue-700); }
.catfilters__foot { display: flex; gap: var(--space-2); }
html.js .catfilters__foot { display: none; }   /* applies on change; the button is for no-script */

.catviews { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); border-bottom: 1px solid var(--border); }
.catviews__tabs { margin: 0; padding: 0; list-style: none; display: flex; gap: var(--space-6); overflow-x: auto; scrollbar-width: none; position: relative; }
.catviews__tabs::-webkit-scrollbar { display: none; }
.catviews__tabs > li { flex: 0 0 auto; }
.catview, .catview:visited { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: var(--touch-target); padding: 0 0 2px; border-bottom: 2px solid transparent; color: var(--ink-2); font: 700 15px/1 var(--font-sans); white-space: nowrap; }
.catview:hover { color: var(--ink); text-decoration: none; }
.catview.is-current { color: var(--ink) !important; border-bottom-color: var(--blue-700) !important; }
.catviews__count { flex: none; margin: 0 0 var(--space-3); font: 700 13px/1 var(--font-sans); color: var(--ink-2); }
.catviews__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: var(--space-3) 0 var(--space-4); }
.catviews__filters { display: none; }
.catviews__note { margin: 0; font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
.catlayout__results .cardgrid--five { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 1200px) { .catlayout__results .cardgrid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 900px) {
    .catlayout { grid-template-columns: minmax(0, 1fr); }
    .catviews__filters { display: inline-flex; }
    .catviews__bar { justify-content: flex-start; flex-wrap: wrap; }
    .catviews__count { display: none; }
    .catlayout__filters { position: static; }
    html.js .catfilters {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        max-height: 86vh; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
        padding: var(--space-2) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
        border: 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-sheet);
        transform: translateY(105%); visibility: hidden;
        transition: transform 220ms var(--ease-out), visibility 0s linear 220ms;
    }
    html.js .catfilters.is-open { transform: none; visibility: visible; transition: transform var(--duration-slow) var(--ease-out), visibility 0s; }
    html.js .catfilters__head { padding-top: var(--space-3); }
    html.js .catfilters__close, html.js .catfilters__head .bidsheet__grip { display: flex; }
    html.js .catfilters__head .bidsheet__grip { display: block; position: absolute; top: var(--space-2); left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 999px; background: var(--border-strong); }
    .catfilters__group { flex-direction: row; flex-wrap: wrap; gap: var(--space-2); border-bottom: 0; padding-bottom: 0; }
    .catfilters__group legend { width: 100%; }
    .fopt { position: relative; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); font-weight: 700; }
    .fopt input { position: absolute; opacity: 0; pointer-events: none; }
    .fopt:has(input:checked) { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }
    .fopt:has(input:checked)::before { content: "✓"; font-weight: 800; }
    .fopt:has(input:focus-visible) { outline: 2px solid var(--blue-700); outline-offset: 2px; }
    .fopt--all { display: none; }
    html.js .catfilters__foot { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border); }
    .catfilters__foot .btn { min-height: 52px; }
    .bidsheet__backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(11,37,64,.45); }
}

@media (max-width: 700px) {
    .catnav__inner { padding: var(--space-2) 0 var(--space-2) var(--space-4); }
    .catmenu { display: none; }
    .catnav__chips { padding: 0; border-left: 0; }
    .catnav__chips::after { flex-basis: var(--space-4); }   /* the README's 16 px end gap */
    .catchip, .catchip:visited { min-height: var(--touch-target); padding: 0 var(--space-3); font-size: 14px; }
    .cathead__disc { width: 52px; height: 52px; }
    .cathead__title { font-size: 28px; line-height: 34px; }
    .cathead__sub { font-size: 13px; }
    .catpills__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); }
    .catpills__list::-webkit-scrollbar { display: none; }
    .catpills__list::after { content: ""; flex: 0 0 var(--space-1); }
    .catpills__list > li { flex: 0 0 auto; }
    .catpill, .catpill:visited { min-height: var(--touch-target); font-size: 14px; }
    .catviews__tabs { gap: var(--space-5); margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); }
    .catviews__tabs::after { content: ""; flex: 0 0 var(--space-1); }
    .catlayout__results .cardgrid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
}

/* Category controls on a phone (MOBILE-FIXES B4): Filteri and "Sortiraj: …"
   in one row; the view tabs and the explanation line give their room to the
   first lots. The sort options open as a bottom sheet. */
.catsort { display: none; }
@media (max-width: 700px) {
    .catviews, .catviews__note { display: none; }
    .catviews__bar { flex-wrap: nowrap; margin-top: 0; }
    .catviews__filters { flex: none; }
    .catsort { display: block; min-width: 0; }
    .catsort__toggle { display: flex; align-items: center; gap: var(--space-1); max-width: 100%; list-style: none; cursor: pointer; }
    .catsort__toggle::-webkit-details-marker { display: none; }
    .catsort__toggle b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .catsort__toggle svg { flex: none; }
    .catsort[open] > .catsort__toggle::before { content: ""; position: fixed; inset: 0; z-index: 59; background: rgba(11,37,64,.45); cursor: default; }
    .catsort__sheet {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        padding: var(--space-6) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
        background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-sheet);
        animation: catsort-in var(--duration-slow) var(--ease-out);
    }
    .catsort__sheet .catfilters__title { margin: 0 0 var(--space-3); }
    .catsort__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-1); }
    .catsort__opt, .catsort__opt:visited { display: flex; align-items: center; gap: var(--space-2); min-height: var(--touch-target); padding: 0 var(--space-3); border-radius: var(--radius-md); color: var(--ink); font: 600 15px/1.2 var(--font-sans); }
    .catsort__opt.is-current { background: var(--blue-100); color: var(--blue-700); font-weight: 800; }
    .catsort__opt.is-current::before { content: "✓"; }
}
@keyframes catsort-in { from { transform: translateY(100%); } }
@media (max-width: 700px) {
    .catlayout { gap: 0; }
    .catpills { margin-bottom: var(--space-4); }
    body .masthead .searchbar__scope { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Search (Pretraga.dc.html)
   ═══════════════════════════════════════════════════════════════════════ */
.searchhead { margin: var(--space-6) 0 var(--space-5); }
.searchhead__title { margin: 0; font: 800 32px/38px var(--font-sans); letter-spacing: -0.02em; }
.searchhead__sub { margin: var(--space-1) 0 0; font: 500 15px/1.4 var(--font-sans); color: var(--muted); }
.searchcats { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.searchcats__label { flex: none; font: 700 13px/1 var(--font-sans); color: var(--ink-2); }
.searchcats .catpill { min-height: var(--touch-target); font-size: 14px; }
.searchviews { margin-bottom: var(--space-4); }
.searchfilters { margin-bottom: var(--space-4); }
.searchfilters > summary { list-style: none; cursor: pointer; }
.searchfilters > summary::-webkit-details-marker { display: none; }
.searchfilters__body { margin-top: var(--space-3); padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.searchfilters__head { display: none; }
.lotcard__title mark { background: var(--amber-100); color: inherit; padding: 0 2px; border-radius: 3px; }
.searchempty { padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.searchempty__title { margin: 0 0 var(--space-2); font: 800 20px/1.3 var(--font-sans); }
.searchempty p, .searchempty li { font: 500 15px/1.6 var(--font-sans); color: var(--ink-2); }
.searchempty a { font-weight: 700; }
.searchpopular { margin-top: var(--space-8); }
.searchpopular .railrow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) {
    .searchhead__title { font-size: 24px; line-height: 30px; }
    .searchcats { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
    .searchcats .catpills__list { width: calc(100% + 2 * var(--space-4)); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); }
    .searchcats .catpills__list > li { flex: 0 0 auto; }
    .searchcats .catpills__list::after { content: ""; flex: 0 0 var(--space-1); }
    .searchpopular .railrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.searchempty ul { margin: var(--space-2) 0 0; padding-left: var(--space-5); list-style: disc; }

/* ═══════════════════════════════════════════════════════════════════════
   Member area (MojeAukcije.dc.html, MojeAukcijeMobile.dc.html)
   ═══════════════════════════════════════════════════════════════════════ */
body .account__title { font: 800 36px/40px var(--font-sans); letter-spacing: -0.02em; }
body .account__layout { grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-8); }

/* The rail itself lives in r-account-buy.css ("B + profil", 2026-10-16). */

.account__sectionhead { margin-bottom: var(--space-4); }
.account__sectiontitle { margin: 0; font: 800 24px/30px var(--font-sans); letter-spacing: -0.01em; }
.account__sectionlead { margin: var(--space-1) 0 0; font: 500 15px/1.4 var(--font-sans); color: var(--muted); }

.accurgent {
    display: flex; align-items: center; gap: var(--space-3);
    margin-bottom: var(--space-5); padding: var(--space-4) var(--space-5);
    background: var(--amber-100); border: 1px solid #F3DDB4; border-radius: var(--radius-lg); color: var(--amber-800);
}
.accurgent svg { flex: none; }
.accurgent p { flex: 1; margin: 0; font: 500 14px/1.5 var(--font-sans); color: var(--ink); }
.accurgent b { color: var(--amber-800); }

/* The list rows as cards: thumb and title, the facts in a row, the action on the right. */
body .account .accpanel { background: none; border: 0; box-shadow: none; padding: 0; }
body .account .acctable__scroll { overflow: visible; }
body .account .acctable--cards, body .account .acctable--cards tbody { display: block; width: 100%; border: 0; }
body .account .acctable--cards thead { display: none; }
body .account .acctable--cards tbody { display: flex; flex-direction: column; gap: var(--space-3); }
body .account .acctable--cards tr {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5);
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
body .account .acctable--cards td { display: block; padding: 0; border: 0; background: none; text-align: left; }
body .account .acctable--cards td.acctable__lot { flex: 1 1 280px; min-width: 0; }
body .account .acctable--cards td.acctable__meta[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font: 600 12px/1.2 var(--font-sans); color: var(--muted); text-transform: none; letter-spacing: 0;
}
body .account .acctable--cards td.acctable__meta { font: 700 14px/1.3 var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; }
body .account .acctable--cards td.acctable__action { margin-left: auto; }
body .account .acclot { display: flex; align-items: center; gap: var(--space-3); }
body .account .acclot__thumb { flex: none; width: 72px; height: 72px; border-radius: var(--radius-md); overflow: hidden; background: var(--tone-slate); }
body .account .acclot__thumb img { width: 100%; height: 100%; object-fit: cover; }
body .account .acclot__title, body .account .acclot__title:visited { color: var(--ink); font: 700 15px/1.35 var(--font-sans); }
body .account .acclot__id { font: 500 12px/1.3 var(--font-sans); color: var(--muted); }
body .account .accbadge { border-radius: var(--radius-sm); font: 700 12px/1 var(--font-sans); padding: 6px 8px; }
body .account .accbtn, body .account .accbtn:visited { border-radius: var(--radius-md); font-family: var(--font-sans); font-weight: 700; }
body .account .accclock { font: 800 15px/1.2 var(--font-sans); font-variant-numeric: tabular-nums; }
body .account .clock--critical { color: var(--red-700); }

/* The leading / outbid tallies on the bids tab */
body .account .accsummary__stat { border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: none; }

@media (max-width: 767px) {
    body .account__layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    body .account__title { font-size: 28px; line-height: 34px; }
    .accurgent { flex-wrap: wrap; }
    .accurgent .btn { width: 100%; }
}
@media (max-width: 700px) {
    body .account .acctable--cards tr { padding: var(--space-3); gap: var(--space-2) var(--space-4); }
    body .account .acclot__thumb { width: 56px; height: 56px; }
    body .account .acctable--cards td.acctable__action { flex: 1 1 100%; margin-left: 0; }
    body .account .acctable--cards td.acctable__action .accbtn { width: 100%; justify-content: center; }
}
@media (max-width: 900px) {
    body .account .accsummary { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
    body .account .accsummary__stat { padding: var(--space-3); flex-direction: column; align-items: flex-start; gap: 2px; font-size: 13px; }
    body .account .accsummary__stat b { font-size: 22px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Seller profile (Prodavac.dc.html)
   ═══════════════════════════════════════════════════════════════════════ */
.sellerhead { margin: var(--space-4) 0 var(--space-8); padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.sellerhead__top { display: flex; align-items: center; gap: var(--space-5); }
.avatar--xl { width: 88px; height: 88px; font-size: 28px; }
.sellerhead__name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font: 800 32px/38px var(--font-sans); letter-spacing: -0.02em; }
.sellerhead__meta { margin: var(--space-2) 0 0; font: 500 15px/1.4 var(--font-sans); color: var(--muted); }
.sellerstats { margin: var(--space-6) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.sellerstats > div { padding: var(--space-4); border-radius: var(--radius-md); background: var(--ground); }
.sellerstats dt { font: 600 13px/1.3 var(--font-sans); color: var(--ink-2); }
.sellerstats dd { margin: var(--space-2) 0 0; font: 800 24px/1.2 var(--font-sans); color: var(--ink); }
.sellerstats dd small { font: 600 13px/1 var(--font-sans); color: var(--muted); }
.sellerstats__level { font-size: 18px !important; }

body .sellertabs { display: flex; gap: var(--space-6); border-bottom: 1px solid var(--border); margin-bottom: var(--space-5); }
body .sellertabs a, body .sellertabs a:visited { display: inline-flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; color: var(--ink-2); font: 700 16px/1 var(--font-sans); }

.ratings { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.ratings__summary { padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ratings__big { margin: 0; font: 800 44px/48px var(--font-sans); }
.ratings__sub { margin: var(--space-1) 0 var(--space-4); font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
.ratings__row { margin: 0 0 var(--space-2); display: grid; grid-template-columns: 90px 1fr 28px; align-items: center; gap: var(--space-2); font: 700 13px/1 var(--font-sans); }
.ratings__row b { text-align: right; }
.ratings__bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.ratings__fill { display: block; height: 100%; border-radius: 999px; }
.ratings__fill--pos { background: var(--green-600); }
.ratings__fill--neu { background: var(--muted); }
.ratings__fill--neg { background: var(--orange-600); }
.ratings__how { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.ratings__howtitle { margin: 0 0 var(--space-1); font: 800 14px/1.3 var(--font-sans); }
.ratings__how p:last-child { margin: 0; font: 500 13px/1.55 var(--font-sans); color: var(--ink-2); }
.ratings__filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.ratings__filter .catpill { cursor: pointer; }
.ratings__filter input { position: absolute; opacity: 0; pointer-events: none; }
.ratings__filter .catpill:has(input:checked) { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }
.ratings__filter .catpill:has(input:focus-visible) { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.ratings__list:has(input[value="positive"]:checked) .fback:not(.fback--positive),
.ratings__list:has(input[value="neutral"]:checked) .fback:not(.fback--neutral),
.ratings__list:has(input[value="negative"]:checked) .fback:not(.fback--negative) { display: none; }
body .ratings .fbacklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
body .ratings .fback { padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
body .ratings .fback__head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font: 500 13px/1.3 var(--font-sans); color: var(--muted); }
body .ratings .fback--positive .fback__tone { background: var(--green-100); color: var(--green-700); }
body .ratings .fback--neutral .fback__tone { background: #EEF1F5; color: var(--ink-2); }
body .ratings .fback--negative .fback__tone { background: var(--red-100); color: var(--red-700); }
body .ratings .fback__body { margin: var(--space-2) 0 0; font: 500 15px/1.55 var(--font-sans); color: var(--ink); }
body .ratings .fback__reply { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--ground); }
body .ratings .fback__replyhead { margin: 0 0 2px; font: 800 13px/1.3 var(--font-sans); }
body .ratings .fback__reply p:last-child { margin: 0; font: 500 13px/1.5 var(--font-sans); color: var(--ink-2); }

@media (max-width: 900px) {
    .sellerstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ratings { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .sellerhead { padding: var(--space-4); }
    .avatar--xl { width: 56px; height: 56px; font-size: 18px; }
    .sellerhead__name { font-size: 24px; line-height: 30px; }
    .sellerstats dd { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Sign in and registration (Prijava.dc.html)
   ═══════════════════════════════════════════════════════════════════════ */
.authpage { display: grid; grid-template-columns: 420px minmax(0, 560px); justify-content: center; gap: var(--space-8); align-items: start; margin: var(--space-8) auto; }
.authpage--wide { grid-template-columns: 380px minmax(0, 760px); }
.authaside { padding: var(--space-6); border-radius: var(--radius-xl); background: var(--navy-900); color: #fff; }
.authaside__kicker { margin: 0 0 var(--space-2); font: 800 13px/1.3 var(--font-sans); color: var(--peach-200); }
.authaside__back { margin: 0 0 var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid rgba(255,255,255,.12); font: 500 15px/1.55 var(--font-sans); color: #D6DEE8; }
.authaside__title { margin: 0 0 var(--space-3); font: 800 14px/1.3 var(--font-sans); }
.authaside__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.authaside__list li { position: relative; padding-left: 28px; font: 500 15px/1.5 var(--font-sans); color: #D6DEE8; }
.authaside__list li::before { content: "✓"; position: absolute; left: 4px; color: #7FD3A3; font-weight: 800; }

.authcard { padding: var(--space-8); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.authcard__title { margin: 0 0 var(--space-5); font: 800 28px/34px var(--font-sans); letter-spacing: -0.02em; }
.authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); padding: var(--space-1); margin-bottom: var(--space-5); border-radius: var(--radius-md); background: var(--ground); }
.authtabs__tab, .authtabs__tab:visited { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--radius-sm); color: var(--ink-2); font: 700 15px/1 var(--font-sans); }
.authtabs__tab:hover { text-decoration: none; color: var(--ink); }
.authtabs__tab.is-current { background: var(--surface) !important; color: var(--ink) !important; box-shadow: var(--shadow-float); }
.authform { display: flex; flex-direction: column; gap: var(--space-4); }
.authform label { display: block; margin-bottom: var(--space-2); font: 700 13px/1.3 var(--font-sans); color: var(--ink); }
.authform input[type="email"], .authform input[type="password"], .authform input[type="text"] {
    width: 100%; height: var(--input-height); padding: 0 var(--space-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface);
    font: 500 16px/1 var(--font-sans); color: var(--ink);
}
.authform input:focus { outline: 2px solid var(--blue-700); outline-offset: 0; border-color: var(--blue-700); }
.authform__labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.authform__forgot, .authform__forgot:visited { font: 700 13px/1.3 var(--font-sans); color: var(--blue-700); }
.authcard__alt, body .regcard__foot { margin: var(--space-4) 0 0; text-align: center; font: 500 14px/1.4 var(--font-sans); color: var(--muted); }
.authcard__alt a { font-weight: 700; }

/* "Nastavi s Googleom" and the "ili" rule between it and the form (2026-10-29). */
.authsocial + .authsocial { margin-top: var(--space-2); }
.authsocial__logo { flex: none; }
.authsep { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0; color: var(--muted); font: 500 13px/1 var(--font-sans); }
.authsep::before, .authsep::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.regpage__social { max-width: 420px; margin: 0 0 var(--space-4); }
.regpage__socialok { margin: 0 0 var(--space-4); }
/* The address Google verified: shown, fixed, plainly not a field to type in. */
.accform input[type="email"][readonly] { background: #EEF1F5; color: var(--ink-2); border-color: var(--border); cursor: default; }   /* the neutral chip ground */
body .authpage .regpage { max-width: none; margin: 0; padding: var(--space-8); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); }
body .authpage .regpage .pagehead { font: 800 28px/34px var(--font-sans); letter-spacing: -0.02em; }
body .authpage .regcard { padding: 0; border: 0; box-shadow: none; }

@media (max-width: 1000px) {
    .authpage, .authpage--wide { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: var(--space-4) auto; gap: var(--space-4); }
    .authaside { order: 2; }
}
@media (max-width: 700px) {
    .authcard, body .authpage .regpage { padding: var(--space-5); border-radius: var(--radius-lg); }
    .authcard__title { font-size: 24px; line-height: 30px; }
    .authaside { padding: var(--space-5); border-radius: var(--radius-lg); }
}

/* ═══════════════════════════════════════════════════════════════════════
   Sell wizard (Prodaj.dc.html)
   ═══════════════════════════════════════════════════════════════════════ */
body .sell__title { font: 800 36px/40px var(--font-sans); letter-spacing: -0.02em; }
body .sell__lede { font: 500 15px/1.5 var(--font-sans); color: var(--muted); }

body .sellsteps ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-6) 0; padding: 0; list-style: none; counter-reset: none; }
body .sellstep { border-top: 4px solid var(--border); padding-top: var(--space-3); background: none; border-radius: 0; }
body .sellstep--done { border-top-color: var(--green-600); }
body .sellstep--current { border-top-color: var(--navy-900); }
body .sellstep > a, body .sellstep > button, body .sellstep > span { display: flex; align-items: center; gap: var(--space-2); min-height: 32px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--ink-2); font: 700 14px/1.2 var(--font-sans); text-decoration: none; }
/* A step that saves before it goes is a submit button (2026-10-25); it fills the cell like the link. */
body .sellstep > button { width: 100%; margin: 0; cursor: pointer; text-align: left; }
body .sellstep--current > span { color: var(--ink); }
body .sellstep__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); font: 800 12px/1 var(--font-sans); }
body .sellstep--done .sellstep__n { background: var(--green-600); border-color: var(--green-600); color: #fff; }
body .sellstep--current .sellstep__n { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
body .sellstep--locked > span { opacity: .6; }

.sell__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-8); align-items: start; }
body .sell { max-width: none; }
body .sell .sellactions { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }

.sellaside { position: sticky; top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.sellaside__label { margin: 0; font: 700 13px/1.3 var(--font-sans); color: var(--ink-2); }
.lotcard--preview { pointer-events: none; }
.lotcard--preview:hover { transform: none; box-shadow: none; }
.lotcard--preview .tbadge { position: absolute; left: 10px; top: 10px; }

.quality { padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.quality__head { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font: 800 15px/1.3 var(--font-sans); }
.quality__verdict { font-size: 13px; }
.quality__verdict--great { color: var(--green-700); }
.quality__verdict--good { color: var(--blue-700); }
.quality__verdict--more { color: var(--amber-800); }
.quality__bar { margin: var(--space-3) 0; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.quality__bar span { display: block; height: 100%; border-radius: 999px; background: var(--green-600); transition: width var(--duration-base) var(--ease-out); }
.quality__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.quality__item { display: flex; align-items: center; gap: var(--space-2); font: 500 13px/1.3 var(--font-sans); color: var(--ink-2); }
.quality__mark { flex: none; width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid var(--border-strong); }
.quality__item.is-ok { color: var(--ink); }
.quality__item.is-ok .quality__mark { border-color: var(--green-600); background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

@media (max-width: 1000px) {
    .sell__layout { grid-template-columns: minmax(0, 1fr); }
    .sellaside { position: static; order: -1; display: none; }
}
@media (max-width: 700px) {
    body .sell__title { font-size: 28px; line-height: 34px; }
    body .sellsteps ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-1); }
    body .sellstep__label { display: none; }
    body .sellstep--current .sellstep__label { display: inline; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Kako licitirati (KakoLicitirati.dc.html)
   ═══════════════════════════════════════════════════════════════════════ */
.hero__inner--single { display: block; padding-bottom: var(--space-8); }
.hero--guide .hero__title { margin: 0; font-size: 40px; line-height: 44px; }
.guidechips { margin: var(--space-6) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.guidechips a, .guidechips a:visited { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--navy-800); color: #fff; font: 700 13px/1 var(--font-sans); }
.guidechips a:hover { background: var(--blue-700); text-decoration: none; }
.guide { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-8) 0; }
.guide__section { scroll-margin-top: var(--space-4); }
.guide__h2 { margin: 0 0 var(--space-4); font: 800 28px/34px var(--font-sans); letter-spacing: -0.02em; }
.guide__lead { margin: 0; font: 500 15px/1.6 var(--font-sans); color: var(--ink-2); }
.guidesteps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.guidesteps__item, .guidecards__item { padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.guidesteps__n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--navy-900); color: #fff; font: 800 14px/1 var(--font-sans); }
.guidesteps h3, .guidecards h3 { margin: var(--space-3) 0 var(--space-1); font: 800 17px/1.3 var(--font-sans); }
.guidesteps p, .guidecards p { margin: 0; font: 500 14px/1.55 var(--font-sans); color: var(--ink-2); }

.guidesim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.guidesim__range { display: block; margin-top: var(--space-5); }
.guidesim__rangehead { display: flex; justify-content: space-between; font: 700 14px/1.3 var(--font-sans); }
.guidesim__range input { width: 100%; margin-top: var(--space-2); accent-color: var(--blue-700); }
.guidesim__first { margin: var(--space-5) 0 0; padding: 0; border: 0; display: flex; gap: var(--space-2); flex-wrap: wrap; }
.guidesim__first legend { width: 100%; margin-bottom: var(--space-2); font: 700 14px/1.3 var(--font-sans); }
.guidesim__first input { position: absolute; opacity: 0; pointer-events: none; }
.guidesim__first .catpill { cursor: pointer; }
.guidesim__first .catpill:has(input:checked) { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }
.guidesim__first .catpill:has(input:focus-visible) { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.guidesim__result { align-self: start; padding: var(--space-5); border-radius: var(--radius-md); background: var(--ground); }
.guidesim__who { margin: 0; font: 800 14px/1.3 var(--font-sans); }
.guidesim__who[data-lead="you"] { color: var(--green-700); }
.guidesim__who[data-lead="other"] { color: var(--amber-800); }
.guidesim__price { margin: var(--space-1) 0 var(--space-3); font: 800 36px/40px var(--font-sans); }
.guidesim__pay, .guidesim__why { margin: 0 0 var(--space-2); font: 500 14px/1.55 var(--font-sans); color: var(--ink-2); }

.guidesplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.guidetable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.guidetable th { padding: var(--space-3) var(--space-4); background: var(--ground); text-align: left; font: 700 13px/1.3 var(--font-sans); color: var(--ink-2); }
.guidetable th:last-child, .guidetable td:last-child { text-align: right; }
.guidetable td { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); font: 500 14px/1.3 var(--font-sans); }

.guidesnipe { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--navy-900); color: #fff; }
.guidesnipe .guide__h2 { color: #fff; }
.guidesnipe p { margin: 0; max-width: 46em; font: 500 15px/1.6 var(--font-sans); color: #D6DEE8; }

.guidecards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.guidecards__item--note { background: var(--amber-100); border-color: #F3DDB4; }
.guidecards__kicker { margin: 0 !important; font: 800 12px/1.3 var(--font-sans) !important; color: var(--blue-700) !important; }
.guidecards--steps h3 { margin-top: var(--space-1); }

.guidefaq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.guidefaq details + details { border-top: 1px solid var(--border); }
.guidefaq summary { display: flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-5); cursor: pointer; list-style: none; font: 700 15px/1.3 var(--font-sans); }
.guidefaq summary::-webkit-details-marker { display: none; }
.guidefaq summary::before { content: "›"; font-size: 20px; color: var(--blue-700); transition: transform var(--duration-fast); }
.guidefaq details[open] summary::before { transform: rotate(90deg); }
.guidefaq p { margin: 0; padding: 0 var(--space-5) var(--space-4) 40px; font: 500 14px/1.6 var(--font-sans); color: var(--ink-2); }

.guidecta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.guidecta__title { margin: 0 0 var(--space-1); font: 800 20px/1.3 var(--font-sans); }
.guidecta p { margin: 0; font: 500 14px/1.5 var(--font-sans); color: var(--muted); }
.guidecta__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.guide__seealso { margin: 0; text-align: center; }

@media (max-width: 900px) {
    .guidesteps, .guidesim, .guidesplit { grid-template-columns: minmax(0, 1fr); }
    .guidecards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guidecta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
    .hero--guide .hero__title { font-size: 30px; line-height: 36px; }
    .guidecards { grid-template-columns: minmax(0, 1fr); }
    .guide { gap: var(--space-8); }
    .guide__h2 { font-size: 22px; line-height: 28px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Messages (Poruke.dc.html)
   ═══════════════════════════════════════════════════════════════════════ */
body .account .msgthread { padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
body .account .msgthread__nav { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--border); }
body .account .msgthread__head { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
body .account .msgthread__subject { margin: var(--space-1) 0; font: 800 18px/1.3 var(--font-sans); }
body .account .msgthread__subject a, body .account .msgthread__subject a:visited { color: var(--ink); }
body .account .msgthread__with { margin: 0; font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
body .account .msglist { margin: 0; padding: var(--space-5); list-style: none; display: flex; flex-direction: column; gap: var(--space-4); background: var(--ground); }
body .account .msg { display: block; max-width: 72%; padding: 0; border: 0; background: none; }
body .account .msg__mark { display: none; }
body .account .msg__body { padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm); background: var(--surface); font: 500 15px/1.5 var(--font-sans); color: var(--ink); }
body .account .msg__meta { order: 2; margin: var(--space-1) 0 0; display: flex; gap: var(--space-2); font: 500 12px/1.3 var(--font-sans); color: var(--muted); }
body .account .msg { display: flex; flex-direction: column; }
body .account .msg .msg__meta { order: 2; }
body .account .msg--mine { align-self: flex-end; align-items: flex-end; }
body .account .msg--mine .msg__body { background: var(--blue-700); border-color: var(--blue-700); color: #fff; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg); }
body .account .msg--mine .msg__body a { color: #fff; }
body .account .msgthread__reply { padding: var(--space-4) var(--space-5) var(--space-5); border-top: 1px solid var(--border); }
body .account .msgthread__reply .accpanel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.msgquick { margin: 0 0 var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.msgquick__chip { min-height: 36px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-pill); background: var(--blue-100); color: var(--ink); font: 700 13px/1 var(--font-sans); cursor: pointer; }
.msgquick__chip:hover { background: #D7E5F3; }
body .account .msgform__body { min-height: 72px; border-radius: var(--radius-md); font: 500 15px/1.5 var(--font-sans); }
.msgsafety { margin: var(--space-3) 0 0; font: 500 12px/1.4 var(--font-sans); color: var(--muted); }
@media (max-width: 700px) {
    body .account .msg { max-width: 88%; }
    body .account .msglist { padding: var(--space-4); }
}
body .account .msglist, body .account .msgform, body .account .msgform__body, body .account .msgthread__reply .accform__field { max-width: none; }

/* The seller's invitation in a short rail (Main--malo-oglasa) */
.sellcta {
    display: flex; flex-direction: column; justify-content: center; gap: var(--space-2);
    min-height: 100%; padding: var(--space-6); border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface);
}
.sellcta__plus { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); }
.sellcta__title { margin: var(--space-2) 0 0; font: 800 18px/1.3 var(--font-sans); }
.sellcta__body { margin: 0 0 var(--space-2); font: 500 13px/1.5 var(--font-sans); color: var(--muted); }
.sellcta .btn { align-self: flex-start; }
.railrow--scroll > .sellcta { flex: 0 0 auto; width: 66vw; max-width: 270px; }

/* ═══════════════════════════════════════════════════════════════════════
   Phone app bar (OglasMobile, KategorijaMobile, PretragaMobile …)
   ═══════════════════════════════════════════════════════════════════════ */
.appbar { display: none; }
@media (max-width: 700px) {
    body.has-appbar .masthead { display: none; }
    body.has-appbar .breadcrumbs { display: none; }
    .appbar {
        position: sticky; top: 0; z-index: 30;
        display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
        min-height: 56px; padding: 0 var(--space-2) 0 var(--space-1);
        background: var(--navy-900); color: #fff;
    }
    .appbar__back, .appbar__back:visited { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; min-width: 44px; padding: 0 var(--space-2); color: #fff; font: 700 16px/1 var(--font-sans); }
    .appbar__label { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .appbar__actions { display: flex; align-items: center; }
    .appbar__actions form { margin: 0; }
    .appbar__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: #fff; cursor: pointer; }
    .appbar__icon svg { fill: none; }
    .appbar__icon.is-watching svg { fill: currentColor; color: var(--peach-200); }
    .appbar__icon.is-done { color: #7FD3A3; }
    .appbar--search { padding: var(--space-2) var(--space-3) var(--space-2) var(--space-1); }
    .appbar__field { flex: 1; min-width: 0; height: 44px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 600 16px/1 var(--font-sans); }
}
.searchsort { display: none; }
@media (max-width: 700px) {
    .searchviews { display: none; }
    .searchsort { display: block; margin-bottom: var(--space-3); }
    .searchsort summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; list-style: none; cursor: pointer; font: 500 14px/1.3 var(--font-sans); color: var(--ink-2); }
    .searchsort summary::-webkit-details-marker { display: none; }
    .searchsort summary b { color: var(--ink); }
    .searchsort__change { color: var(--blue-700); font-weight: 700; }
    .searchsort ul { margin: 0 0 var(--space-3); padding: var(--space-2); list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
    .searchsort a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); color: var(--ink); font: 600 15px/1 var(--font-sans); }
    .searchsort a[aria-current] { color: var(--blue-700); font-weight: 800; }
    .searchhead { margin: var(--space-4) 0 var(--space-3); }
    .searchcats__label { display: none; }
}
body .listing .bidform__amount.is-invalid { border-color: var(--red-700); outline: 2px solid var(--red-700); outline-offset: 0; }
.bidform__error { margin: 0; font: 600 13px/1.45 var(--font-sans); color: var(--red-700); }
.bidform__error[hidden], .bidneterror[hidden] { display: none; }
.bidneterror .btn { margin-top: var(--space-3); }
.btn--danger, .btn--danger:visited { background: var(--red-700) !important; color: #fff !important; }
body .listing .bidbox__reservenote { margin: var(--space-2) 0 0; font: 500 13px/1.5 var(--font-sans); color: var(--muted); }
body .listing .bidbox__unsold { align-self: flex-start; }

/* Bid history on a phone (MOBILE-FIXES B6): each bid is two lines, bidder and
   amount, then type and time; no sideways scroll. The column headers stay for
   screen readers only, and go entirely when there is no bid. */
@media (max-width: 599px) {
    body .listing .bidlog thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    body .listing .bidlog:has(.bidlog__empty) thead,
    body .listing .tablescroll:has(.bidlog__empty) + .bidlog__note { display: none; }
    body .listing .bidlog tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-3); align-items: baseline; padding: var(--space-3); border-bottom: 1px solid var(--border); }
    body .listing .bidlog tbody tr:last-child { border-bottom: 0; }
    body .listing .bidlog tbody :is(th, td) { display: block; padding: 0; border: 0; background: none; }
    body .listing .bidlog .bidlog__seq { display: none; }
    body .listing .bidlog .col-price { text-align: right; font-weight: 700; }
    body .listing .bidlog :is(.bidlog__src, .col-ends) { font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
    body .listing .bidlog .col-ends { text-align: right; white-space: nowrap; }
    body .listing .bidlog .bidlog__empty { grid-column: 1 / -1; padding: var(--space-4) 0 !important; }
    body .listing .bidlog__row--winning { background: none; }
    body .listing .bidlog .badge--lead { display: inline-flex; align-items: center; height: 24px; margin-left: var(--space-1); padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: var(--green-100); color: var(--green-700); font: 700 12px/1 var(--font-sans); }
    body .listing .tablescroll--capped { max-height: 334px; }   /* five whole rows: 66 px each, 69 with the Vodi chip */
}
body .listing .bidbox__unsoldprice { display: block; margin-top: var(--space-2); }
body .listing .extnote__chip { display: inline-flex; align-items: center; height: 22px; margin-right: var(--space-2); padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--navy-900); color: #fff; font: 700 12px/1 var(--font-sans); white-space: nowrap; }

/* Lot page on a phone (OglasMobile--bez-bottom-sheeta): full-width gallery
   with dots and a counter, the price and countdown in one card, a compact
   seller row. */
.gallery__count, .gallery__dots, .gallery__backdrop { display: none; }
@media (max-width: 700px) {
    body .listing { margin-top: 0; }
    /* No "notice" row: the notice is fixed over the viewport whenever it shows,
       so the row was always empty and its gap left 16px between bar and photo. */
    body .listing { grid-template-areas: "media" "buy" "desc" "tabs"; }
    body .listing > .connection-notice { grid-area: media; }
    body .listing__media { margin: 0 calc(-1 * var(--space-4)); }
    body .listing .gallery { position: relative; border: 0; border-radius: 0; background: none; padding: 0; box-shadow: none; }
    /* Square, the photo whole (`contain`) over a blurred copy of itself. This
       lifts the 34vh cap eaukcije.css puts on the stage below 1000 px: on a
       phone the photo is what collectors come for (MOBILE-FIXES B2). */
    body .listing .gallery__stage { border-radius: 0; aspect-ratio: 1 / 1; max-height: none; }
    body .listing .gallery__backdrop { display: block; object-fit: cover; filter: blur(24px); transform: scale(1.15); }
    body .listing .gallery__thumbs { display: none; }
    .gallery__count { display: block; position: absolute; right: var(--space-3); bottom: var(--space-3); margin: 0; padding: 4px 8px; border-radius: var(--radius-sm); background: rgba(11,37,64,.8); color: #fff; font: 700 12px/1 var(--font-sans); }
    .gallery__dots { display: flex; justify-content: center; gap: 6px; position: absolute; left: 0; right: 0; bottom: var(--space-3); margin: 0; }
    .gallery__dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(11,37,64,.15); }
    .gallery__dot.is-current { width: 18px; background: var(--navy-900); }

    body .listing .bidbox { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0; }
    body .listing .bidbox > * { grid-column: 1 / -1; }
    body .listing .bidbox { grid-auto-flow: row dense; }
    body .listing .listinghead { order: 1; }
    body .listing .bidbox__price { order: 2; grid-column: 1; border-right: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
    body .listing .bidbox__clock { order: 2; grid-column: 2; display: flex; align-items: center; padding: var(--space-3) var(--space-3) var(--space-3) 0; background: var(--surface); border: 1px solid var(--border); border-left: 0; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
    body .listing .bidbox__clock .clockbox { flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; padding: var(--space-3); }
    body .listing .bidbox__clock .clockbox__label { flex-basis: auto; margin: 0; }
    body .listing .bidbox__clock .clock--big { font-size: 20px; }
    body .listing .bidbox__clock .extnote, body .listing .bidbox__clock .bidbox__snipe { display: none; }
    body .listing .bidpanel__foot, body .listing .bidsheet, body .listing .bidbar, body .listing .bidsheet__backdrop { order: 3; }
    body .listing .pstatus, body .listing .bidpanel__actions, body .listing .remindform, body .listing .bidform__note { order: 3; }

    body .listing .sellercard { padding: var(--space-4); }
    body .listing .sellercard .sellercard__score, body .listing .sellercard .sellercard__bar, body .listing .sellercard .sellercard__counts, body .listing .sellercard .sellercard__level, body .listing .sellercard .sellercard__actions { display: none; }
}
@media (max-width: 700px) {
    body .listing .bidbox__price, body .listing .bidbox__clock { margin: 0 !important; align-self: stretch; }
    body .listing .bidbox__clock .clockbox { border: 0 !important; }
    body .listing .bidbox__clock .clockbox:not(:has(.clock--critical)) { background: var(--ground) !important; }
}
/* Ended lot on a phone: the status box ("Završila … (Zagreb)") goes under the
   price, full width; beside it, it pushed the price under itself. */
@media (max-width: 479px) {
    body .listing .bidbox:has(.clockbox--ended) .bidbox__price { order: 1; grid-column: 1 / -1; border-right: 1px solid var(--border); border-radius: var(--radius-lg); }
    body .listing .bidbox__clock:has(.clockbox--ended) { grid-column: 1 / -1; padding: var(--space-3); border-left: 1px solid var(--border); border-radius: var(--radius-lg); }
    body .listing .bidbox__clock .clockbox--ended { flex: 1; align-items: flex-start; text-align: left; }
    body .listing .bidbox__clock .clockbox--ended .clockbox__absolute { text-align: left; white-space: normal; }
}

/* Ponudi cijenu (PonudiCijenu.dc.html) */
body .listing .bidbox__clock--fixed { display: none; }
body .listing .bidbox__fixedline { font: 500 13px/1.45 var(--font-sans); color: var(--muted); }
body .listing .offerbox { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: var(--space-4) 0 0; border: 0; border-top: 1px solid var(--border); background: none; }
.offerbox__head { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.offerbox__head b { font: 800 15px/1.3 var(--font-sans); }
.offerbox__head span { font: 600 12px/1.3 var(--font-sans); color: var(--ink-2); white-space: nowrap; }
.pstatus--info { background: var(--blue-100); border-color: #CFDDEC; color: var(--ink); }
.pstatus--info .pstatus__title { color: var(--ink); }
.offerbar { margin: var(--space-3) 0 0; display: flex; align-items: center; gap: var(--space-3); font: 700 12px/1 var(--font-sans); white-space: nowrap; }
.offerbar__track { flex: 1; height: 4px; border-radius: 999px; background: rgba(15,76,129,.15); overflow: hidden; }
.offerbar__fill { display: block; height: 100%; border-radius: 999px; background: var(--blue-700); }
body .listing .offeractions { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-start; }
body .listing .offeractions form { margin: 0; }
.offernew > summary { list-style: none; cursor: pointer; }
.offernew > summary::-webkit-details-marker { display: none; }
.offernew[open] > summary { display: none; }
.offernew .offerform { display: flex; flex-direction: column; gap: var(--space-2); }
body .listing .bidbox__ship { display: block; }
body .listing .bidbox__ship svg { display: inline-block; vertical-align: -3px; margin-right: var(--space-1); }

/* Kontakt (and the legal pages' draft notice) on a phone: the notice, the form and the identity cards each had
   their own inset (14, 18, 20 px); one 16 px gutter lines their text up. */
@media (max-width: 700px) {
    body main .alert,
    body .contactgrid .form,
    body .contactgrid .idcard { padding-left: var(--space-4); padding-right: var(--space-4); }
}

/* ═══════════════════════════════════════════════════════════════════════
   Touch targets (README "Pristupačnost"): every clickable element at least
   44 × 44 px. Text links inside a line get the height as padding taken back
   by a negative margin, so the target grows and the layout does not move.
   ═══════════════════════════════════════════════════════════════════════ */
body .masthead .brand a,
body .masthead :where(.usernav > a),   /* :where keeps the phone rules that hide them winning */
body .sitefoot a,
body .breadcrumbs a,
.upcoming__title, .notices__item a, .sellercard__name a, .accempty a,
.sellerstatus__help > summary {
    display: inline-flex; align-items: center; min-height: var(--touch-target);
}
body .masthead :where(.usernav > a) { min-width: var(--touch-target); justify-content: center; }
body .sitefoot li, body .breadcrumbs li { display: flex; align-items: center; }
body .sitefoot a, body .breadcrumbs a { margin-block: -10px; }
body .masthead .usermenu__trigger { min-height: var(--touch-target); }
body .masthead .usermenu__gear { min-width: var(--touch-target); min-height: var(--touch-target); }
body .masthead .usermenu__link, body .masthead .usermenu form button { display: flex; align-items: center; min-height: var(--touch-target); }
body .breadcrumbs a { min-width: var(--touch-target); justify-content: center; }
body .searchbar__scope { min-height: var(--touch-target); }
body .sellstep > a, body .sellstep > button { min-height: var(--touch-target); }

/* "Registrirajte se besplatno" does not share a row with "Pregledaj aukcije"
   below ~460px: one button per row there, full width (2026-11-01).
   Last in the file: it must come after the 700px block, which sets two columns. */
@media (max-width: 460px) {
    .hero__actions { grid-template-columns: minmax(0, 1fr); }
}
