/* ==========================================================
   Agent Nekretnine — admin tema (preko Pico.css)
   ========================================================== */
:root {
    --accent: #2563eb;
    --bg: #f4f6fa;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e5e9f0;
    --text: #0f172a;
    --muted: #64748b;
    --side-bg: #0c0d12;
    --side-text: #cbd5e1;
    --side-active: rgba(255, 255, 255, .1);
    --ok: #16a34a;  --ok-bg: #dcfce7;
    --warn: #d97706; --warn-bg: #fef3c7;
    --bad: #dc2626; --bad-bg: #fee2e2;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .04);
    --radius: .85rem;
    --side-w: 211px;

    --pico-font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --pico-border-radius: .6rem;
    --pico-primary: var(--accent);
    --pico-primary-background: var(--accent);
    --pico-primary-border: var(--accent);
    --pico-primary-hover: var(--accent);
    --pico-primary-hover-background: color-mix(in srgb, var(--accent) 85%, #000);
    --pico-primary-hover-border: color-mix(in srgb, var(--accent) 85%, #000);
    --pico-primary-underline: transparent;
    --pico-primary-focus: color-mix(in srgb, var(--accent) 30%, transparent);
    --pico-primary-inverse: #fff;
    --pico-background-color: var(--bg);
    --pico-color: var(--text);
    --pico-muted-color: var(--muted);
    --pico-muted-border-color: var(--border);
    --pico-card-background-color: var(--surface);
    --pico-card-sectioning-background-color: var(--surface-2);
    --pico-card-box-shadow: var(--shadow);
    --pico-form-element-background-color: var(--surface);
    --pico-form-element-border-color: var(--border);
    --pico-form-element-color: var(--text);
    --pico-form-element-active-border-color: var(--accent);
    --pico-form-element-focus-color: var(--accent);
    --pico-form-element-spacing-vertical: .6rem;
    --pico-form-element-spacing-horizontal: .85rem;
    --pico-spacing: 1rem;
    --pico-table-border-color: var(--border);
    --pico-typography-spacing-vertical: 1rem;
}
:root[data-theme="dark"] {
    --bg: #0b1120;
    --surface: #131c2f;
    --surface-2: #182339;
    --border: #243049;
    --text: #e6ebf5;
    --muted: #93a1b8;
    --side-bg: #0a0f1d;
    --ok: #4ade80;  --ok-bg: rgba(74, 222, 128, .14);
    --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, .14);
    --bad: #f87171; --bad-bg: rgba(248, 113, 113, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --pico-background-color: var(--bg);
    --pico-color: var(--text);
    --pico-h1-color: var(--text); --pico-h2-color: var(--text); --pico-h3-color: var(--text); --pico-h4-color: var(--text);
    --pico-form-element-background-color: #0f172a;
}
body { background: var(--bg); color: var(--text); margin: 0; }
h1 { font-size: 1.6rem; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
a { text-decoration: none; }
a:not([role="button"]):hover { text-decoration: underline; }
.icon { flex: none; vertical-align: middle; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side-bg); color: var(--side-text);
    display: flex; flex-direction: column; padding: 1.1rem .8rem; z-index: 50; transition: transform .2s;
}
.brand { display: flex; align-items: center; gap: .7rem; padding: .3rem .6rem 1.2rem; color: #fff; }
.brand:hover { text-decoration: none !important; }
.brand-mark { width: 31px; height: 31px; border-radius: .6rem; background: var(--accent); display: grid; place-items: center; color: #fff; flex: none; }
.brand-logo { width: 31px; height: 31px; border-radius: .6rem; object-fit: contain; background: #fff; padding: 2px; flex: none; }
.brand-name { font-weight: 700; line-height: 1.2; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; }
.side-nav { display: flex; flex-direction: column; gap: .2rem; }
.side-nav a {
    display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: .6rem;
    color: var(--side-text); font-weight: 500; font-size: .94rem;
}
.side-nav a:hover { background: var(--side-active); color: #fff; text-decoration: none !important; }
.side-nav a.active { background: rgba(255, 255, 255, .1); color: #fff; }
.side-nav a.active svg { color: var(--accent-soft, #8ab4ff); }
.nav-label { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 700; color: #6b7280; padding: 1rem .8rem .4rem; }
.nav-label:first-child { padding-top: .2rem; }
.count { margin-left: auto; background: #f43f5e; color: #fff; font-size: .72rem; border-radius: 84px; padding: .08rem .5rem; font-weight: 700; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .1); padding: .9rem .4rem 0; display: flex; flex-direction: column; gap: .7rem; }
.me { display: flex; align-items: center; gap: .65rem; }
.me-avatar { width: 31px; height: 31px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; font-weight: 700; }
.me-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.me-text strong { color: #fff; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text small { color: #94a3b8; font-size: .75rem; }
.side-foot form { margin: 0; }
.ghost-btn {
    width: 100%; margin: 0; display: flex; align-items: center; gap: .6rem; justify-content: flex-start;
    background: transparent !important; border: 0 !important; color: var(--side-text) !important; padding: .5rem .6rem; font-weight: 500; box-shadow: none !important;
}
.ghost-btn:hover { background: var(--side-active) !important; color: #fff !important; }

.main-col { margin-left: var(--side-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: .75rem 1.6rem;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.page-title { margin: 0; font-size: 1.1rem; font-weight: 650; display: none; margin-right: auto; }
.top-search {
    margin: 0; display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: 84px; padding: 0 1rem; color: var(--muted); width: min(357px, 50vw); margin-right: auto;
}
.top-search input { border: 0 !important; box-shadow: none !important; background: transparent !important; margin: 0; padding: .5rem 0; height: auto; }
.icon-btn {
    width: 34px; height: 34px; padding: 0; margin: 0; display: grid; place-items: center; border-radius: 50%;
    background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; box-shadow: none !important;
}
.icon-btn:hover { background: var(--surface-2) !important; }
#themeBtn .i-sun { display: none; }
[data-theme="dark"] #themeBtn .i-sun { display: inline; }
[data-theme="dark"] #themeBtn .i-moon { display: none; }
.only-mobile { display: none; }
.content { padding: 1.6rem 2rem 2.4rem; width: 100%; box-sizing: border-box; margin: 0; max-width: none; }
.scrim { display: none; }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .nav-open .sidebar { transform: none; box-shadow: 0 0 34px rgba(0, 0, 0, .4); }
    .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 40; }
    .main-col { margin-left: 0; }
    .only-mobile { display: grid; }
    .topbar { padding: .6rem 1rem; }
    .top-search { display: none; }
    .page-title { display: block; }
    .content { padding: 1rem; }
}

/* ---------- Opšte komponente ---------- */
article, .panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.3rem; margin: 0 0 1.2rem;
}
article > h3:first-child, .panel > h3:first-child { margin-top: 0; }
hgroup { margin-bottom: 1.2rem; }
hgroup p { color: var(--muted); margin: 0; }
button, [role="button"] { font-weight: 600; font-size: .92rem; }
button.small { padding: .25rem .7rem; font-size: .82rem; margin: 0; }
form.inline { display: inline; margin: 0; }
form.inline button { margin: 0; padding: .3rem .8rem; }
label.check { align-self: end; }
.table-wrap { overflow-x: auto; }
table { margin: 0; }
th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
tbody tr:hover { background: var(--surface-2); }
.actions { white-space: nowrap; }
.actions form { margin: 0 0 0 .3rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.thumb-logo { max-height: 48px; vertical-align: middle; }
.url-cell { max-width: 238px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.muted { opacity: .55; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; align-items: center; }
.btn-row > * { margin: 0; }
.error { color: var(--bad); }

/* Poruke (toast) */
.flash {
    position: fixed; top: 1rem; right: 1rem; z-index: 100; max-width: min(357px, calc(100vw - 2rem)); margin: 0;
    padding: .85rem 1.1rem; border-radius: .7rem; font-weight: 500; box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
    border: 1px solid transparent; cursor: pointer; animation: slidein .25s ease; transition: opacity .3s, transform .3s;
}
.flash.hide { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.flash-ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.flash-error { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
@keyframes slidein { from { opacity: 0; transform: translateY(-10px); } }

/* Tabovi (podešavanja) */
.tabs ul { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; margin: 0 0 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: .8rem; }
.tabs li { padding: 0; list-style: none; }
.tabs a { display: block; padding: .45rem 1rem; border-radius: .55rem; color: var(--muted); font-weight: 600; font-size: .9rem; }
.tabs a[aria-current="page"] { background: var(--accent); color: #fff; }
.tabs a:hover { text-decoration: none; }

/* Značke */
.badge { position: absolute; top: .55rem; padding: .18rem .6rem; border-radius: 84px; font-size: .72rem; font-weight: 700; color: #fff; }
.badge-new { left: .55rem; background: #16a34a; }
.badge-status { right: .55rem; background: #475569; }
.st-zanimljivo { background: #d97706; }
.st-poslato { background: #16a34a; }
.st-odbaceno { background: #94a3b8; }
.pill { display: inline-block; padding: .15rem .65rem; border-radius: 84px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.pill-novo { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border-color: transparent; }
.pill-zanimljivo { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill-poslato { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill-odbaceno { background: var(--surface-2); color: var(--muted); }
.pill-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }

/* ---------- Oglasi ---------- */
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: 1.3rem; box-shadow: var(--shadow); }
.filters summary { font-weight: 600; margin: 0; }
.filters[open] summary { margin-bottom: 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.card {
    display: block; text-decoration: none !important; color: inherit; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 23, 42, .12); }
.card-img { position: relative; aspect-ratio: 10 / 7; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--muted); }
.card-body { padding: .9rem 1.1rem 1.1rem; }
.card-body h3 { font-size: .98rem; margin: .25rem 0 .5rem; line-height: 1.35; font-weight: 600; }
.price { font-size: 1.3rem; font-weight: 750; letter-spacing: -.01em; }
.price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.price.big { font-size: 1.9rem; margin-bottom: .6rem; }
.meta { margin: 0 0 .25rem; font-size: .88rem; color: var(--muted); }
.small-meta { font-size: .78rem; }
.pager { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin: 1.6rem 0 0; }
.pager a { margin: 0; padding: .35rem .85rem; min-width: 2.4rem; }

/* ---------- Forma ponude ---------- */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.pick { position: relative; cursor: pointer; margin: 0; }
.pick img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .5rem; display: block; }
.pick input { position: absolute; top: .4rem; left: .4rem; margin: 0; }

/* ---------- Detalj ---------- */
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(255px, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } }
.gallery-main img { width: 100%; border-radius: var(--radius); display: block; }
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin: .7rem 0 1.2rem; }
.gallery-thumbs img { width: 78px; height: 56px; object-fit: cover; border-radius: .5rem; cursor: pointer; border: 2px solid transparent; opacity: .8; }
.gallery-thumbs img:hover, .gallery-thumbs img.on { opacity: 1; border-color: var(--accent); }
.desc { white-space: normal; }
.detail table th { font-weight: 500; width: 45%; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.detail aside [role="button"] { display: block; width: 100%; text-align: center; margin-top: .6rem; }
.down { color: var(--ok); font-weight: 600; }
.up { color: var(--bad); font-weight: 600; }

/* ---------- Login ---------- */
body.bare { background: radial-gradient(1020px 510px at 20% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent), var(--bg); }
.bare-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-box { width: 100%; max-width: 340px; padding: 2rem; margin: 0; }
.login-box h2 { margin-bottom: 1.2rem; }
.login-box button { width: 100%; }

/* ---------- Pregled ---------- */
:root { --accent-soft: #8ab4ff; }
.dark-btn { background: #0c0d12 !important; border-color: #0c0d12 !important; color: #fff !important; }
[data-theme="dark"] .dark-btn { background: var(--accent) !important; border-color: var(--accent) !important; }
.welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.welcome h1 { margin: 0 0 .2rem; font-size: 1.7rem; }
.welcome .meta { margin: 0; }
.welcome .btn-row { margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(162px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat { border-radius: var(--radius); padding: 1.1rem 1.2rem; border: 1px solid transparent; background: var(--tint); }
.tone-peach { --tint: #fdeee3; --ink: #c2410c; }
.tone-mint  { --tint: #e7f5ea; --ink: #15803d; }
.tone-blue  { --tint: #e6eefc; --ink: #1d4ed8; }
.tone-green { --tint: #e3f3ee; --ink: #0f766e; }
.tone-pink  { --tint: #f9e8ec; --ink: #be185d; }
[data-theme="dark"] .tone-peach { --tint: rgba(251, 146, 60, .12); --ink: #fdba74; }
[data-theme="dark"] .tone-mint  { --tint: rgba(74, 222, 128, .10); --ink: #86efac; }
[data-theme="dark"] .tone-blue  { --tint: rgba(96, 165, 250, .12); --ink: #93c5fd; }
[data-theme="dark"] .tone-green { --tint: rgba(45, 212, 191, .10); --ink: #5eead4; }
[data-theme="dark"] .tone-pink  { --tint: rgba(244, 114, 182, .12); --ink: #f9a8d4; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--text); opacity: .75; font-size: .88rem; }
.stat-top i { color: var(--ink); display: grid; }
.stat-val { font-size: 2rem; font-weight: 750; letter-spacing: -.02em; margin: .5rem 0 .8rem; color: var(--text); }
.stat-foot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .8rem; }
.trend { display: inline-block; padding: .12rem .55rem; border-radius: 84px; font-weight: 700; background: var(--surface); }
.trend.good { color: var(--ok); } .trend.bad { color: var(--bad); } .trend.flat { color: var(--muted); }
.trend-note { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.2rem; margin-bottom: 1.2rem; align-items: start; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-2 > .panel, .stack > .panel { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 1.2rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.panel-head h3 { margin: 0; font-size: 1.05rem; }
.mini-btn { font-size: .8rem; font-weight: 600; padding: .3rem .8rem; border: 1px solid var(--border); border-radius: .5rem; color: var(--accent); background: var(--surface); }
.mini-btn:hover { background: var(--surface-2); text-decoration: none !important; }
.legend { display: flex; gap: 1rem; align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.d1 { background: var(--accent); } .d2 { background: #22c55e; }

.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 3 4; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.chart .l1 { stroke: var(--accent); } .chart .l2 { stroke: #22c55e; }
.chart .pt { stroke: var(--surface); stroke-width: 2; }
.chart .p1 { fill: var(--accent); } .chart .p2 { fill: #22c55e; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--border); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.row-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.row-main a, .row-main strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main small { color: var(--muted); font-size: .8rem; }
.chip { padding: .2rem .6rem; border-radius: 84px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.chip.good { background: var(--ok-bg); color: var(--ok); }

table.plain th { border-bottom: 1px solid var(--border); background: transparent; }
table.plain td { border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .9rem; }
table.plain tbody tr:last-child td { border-bottom: 0; }
.cell-prop { display: flex; align-items: center; gap: .7rem; color: var(--text); font-weight: 600; }
.cell-prop img, .cell-prop .ph { width: 41px; height: 32px; border-radius: .45rem; object-fit: cover; background: var(--surface-2); flex: none; }
.new-dot { font-size: .65rem; background: #16a34a; color: #fff; padding: .1rem .4rem; border-radius: 84px; vertical-align: middle; }

.top-search input[type="search"] { padding: .55rem 0 !important; padding-inline-start: 0 !important; background-image: none !important; border-radius: 0; width: 100%; }
.top-search svg { flex: none; }
.top-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
main.content, .main-col > main { padding-block: 1.6rem; }

/* Pico stilizuje <header> u <article>; ovde ne želimo traku */
article > header.panel-head { background: transparent; border: 0; margin: 0 0 1rem; padding: 0; }
.trend.flat { background: transparent; padding-left: 0; }
.grid-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 900px) { .grid-eq { grid-template-columns: 1fr; } }
.grid-eq > .panel { margin: 0; }
table.plain td { white-space: nowrap; } table.plain td:first-child { white-space: normal; }

/* Prekidač prikaza */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: .7rem; padding: .25rem; gap: .2rem; }
.seg a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: .5rem; color: var(--muted); font-weight: 600; font-size: .88rem; }
.seg a.on { background: var(--text); color: var(--surface); }
.seg a:hover { text-decoration: none !important; }

/* Detalj: lightbox i grafik cene */
.gallery-main { display: block; cursor: zoom-in; }
.gallery-main img { aspect-ratio: 16 / 10; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 10, 16, .88); display: grid; place-items: center; padding: 2rem; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: .6rem; }
.lb-x { position: absolute; top: 1rem; right: 1rem; width: 37px; height: 37px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15) !important; border: 0 !important; color: #fff !important; }
.spark { margin-bottom: .6rem; }

/* Forme */
label.switch { display: flex; align-items: center; gap: .6rem; font-weight: 600; margin-bottom: 1rem; }
label.switch input { margin: 0; }
input[type="checkbox"]:checked, input[type="radio"]:checked { accent-color: var(--accent); }
.pick { border-radius: .6rem; padding: 3px; border: 2px solid transparent; }
.pick:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pick input { top: .7rem; left: .7rem; }
article h3 small { color: var(--muted); font-weight: 500; }
fieldset[role="group"] { margin-bottom: 0; }

/* Zvonce i obaveštenja */
.bell { position: relative; }
.bell-count { position: absolute; top: -.2rem; right: -.2rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .25rem; border-radius: 84px;
    background: #f43f5e; color: #fff; font-size: .68rem; font-weight: 700; line-height: 1.1rem; text-align: center; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { display: flex; gap: .8rem; align-items: center; padding: .65rem .2rem; border-bottom: 1px solid var(--border); }
.notes li:last-child { border-bottom: 0; }
.notes li.unread { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.notes .note-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.notes .note-body a { font-weight: 600; }
.notes .note-time { white-space: nowrap; color: var(--muted); }

/* Izvori oglasa i oglašivač */
.sources { width: 100%; }
.sources td, .sources th { vertical-align: top; }
.contact dd { margin: 0 0 .5rem; }
.contact dt { color: var(--muted); font-size: .8rem; }
.badge-src { left: .55rem; bottom: .55rem; top: auto; background: #0f766e; }
.muted-text { color: var(--muted); }
.badge-credit { right: .55rem; bottom: .55rem; top: auto; background: #facc15; color: #111; }
.meta.addr { font-weight: 600; margin: 0; }

/* Starost oglasa: NOVO (zeleno, do 24 h), pre N dana (crveno), preko 31 dan (sivo) */
.badge-old { left: .55rem; background: #dc2626; }
.badge-stale { left: .55rem; background: #6b7280; }
.age { display: inline-block; font-size: .68rem; font-weight: 700; color: #fff; padding: .12rem .5rem; border-radius: 99px; vertical-align: middle; white-space: nowrap; }
.age-new { background: #16a34a; }
.age-old { background: #dc2626; }
.age-stale { background: #6b7280; }
.card-stale { opacity: .72; filter: grayscale(.75); }
.card-stale:hover { opacity: 1; filter: none; }
tr.row-stale td { color: var(--muted); }
.seg.seg-green a { color: #16a34a; font-weight: 700; }
.seg.seg-green a.on { background: #16a34a; color: #fff; }
