:root {
  --bg: #f6f4ee; --card: #ffffff; --text: #0f1f1a; --muted: #5f6f69; --line: #e4e0d4;
  --brand: #047857; --brand-2: #065f46; --brand-soft: #e3f4ec; --accent: #f5b301; --accent-ink: #2a1d00;
  --ink: #0b2a22; --price: #047857; --danger: #c0392b; --radius: 16px;
  --shadow: 0 1px 2px rgba(11,42,34,.05), 0 8px 24px rgba(11,42,34,.07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) { --bg: #0b1512; --card: #12201b; --text: #e8f0ec; --muted: #93a8a0; --line: #21342d; --brand: #34d399; --brand-2: #10b981; --brand-soft: #123128; --ink: #071510; --price: #6ee7b7; --shadow: none; }
}
:root[data-mode="dark"] { --bg: #0b1512; --card: #12201b; --text: #e8f0ec; --muted: #93a8a0; --line: #21342d; --brand: #34d399; --brand-2: #10b981; --brand-soft: #123128; --ink: #071510; --price: #6ee7b7; --shadow: none; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
h1 { font-size: 28px; margin: 18px 0 10px; line-height: 1.2; letter-spacing: -.4px; } h2 { font-size: 20px; margin: 24px 0 10px; letter-spacing: -.2px; } h3 { font-size: 15px; margin: 18px 0 8px; }

/* header: dark bar */
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; color: #fff; font-weight: 800; font-size: 24px; letter-spacing: 1.5px; }
.logo-box { color: #fff; }
.logo-box::before { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--accent); border-radius: 3px; transform: rotate(45deg); margin-right: 10px; vertical-align: 3px; }
.logo-tld { color: var(--accent); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav a:not(.btn), .link { color: rgba(255,255,255,.86); font-weight: 500; }
.nav a:not(.btn):hover, .link:hover { color: #fff; }
.inline { display: inline; margin: 0; }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.search { flex: 1; display: flex; max-width: 480px; min-width: 200px; }
.search input { margin: 0; border-radius: 999px 0 0 999px; border: 0; background: rgba(255,255,255,.1); color: #fff; padding-left: 16px; }
.search input::placeholder { color: rgba(255,255,255,.62); }
.search button { border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 0 999px 999px 0; padding: 0 18px; cursor: pointer; font-family: inherit; }
@media (max-width: 760px) { .search { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 10px; } }

.btn { display: inline-block; text-align: center; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.top .btn-primary, .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.top .btn-primary:hover, .btn-accent:hover { filter: brightness(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .btn-primary { color: #04130e; } }
:root[data-mode="dark"] .btn-primary { color: #04130e; }
.btn-danger { color: var(--danger); }
.full { width: 100%; margin-top: 8px; }

/* home hero */
.hero-band { background: radial-gradient(1200px 400px at 85% -10%, rgba(245,179,1,.25), transparent 60%), linear-gradient(160deg, var(--ink), #0f3d31 70%, #125240); color: #fff; padding: 46px 0 56px; }
.hero-band h1 { font-size: clamp(30px, 5vw, 50px); margin: 0 0 10px; letter-spacing: -1px; line-height: 1.08; }
.hero-band h1 span { color: var(--accent); }
.hero-band p { color: rgba(255,255,255,.72); margin: 0 0 22px; }
.big-search { display: flex; background: #fff; border-radius: 999px; padding: 6px; max-width: 820px; box-shadow: 0 10px 30px rgba(0,0,0,.25); gap: 6px; }
.big-search input, .big-search select { border: 0; background: transparent; margin: 0; color: #0f1f1a; font-size: 16px; }
.big-search input { flex: 1; padding-left: 16px; min-width: 0; }
.big-search select { width: 190px; border-left: 1px solid #e4e0d4; border-radius: 0; }
.big-search button { border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 800; border-radius: 999px; padding: 0 26px; cursor: pointer; }
@media (max-width: 640px) { .big-search { flex-wrap: wrap; border-radius: 18px; } .big-search input { flex-basis: 100%; padding: 10px 12px; } .big-search select { flex: 1; border-left: 0; } .big-search button { padding: 12px 20px; } }

.sec { margin-top: 30px; }
.sec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 10px; }
.cat { --h: 152; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: hsl(var(--h) 60% 95%); color: hsl(var(--h) 55% 20%); border: 1px solid hsl(var(--h) 45% 86%); font-weight: 700; transition: transform .12s, box-shadow .12s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-i { font-size: 24px; width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: hsl(var(--h) 65% 88%); border-radius: 12px; }
.cat-n { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.cat-n small { font-weight: 500; opacity: .7; font-size: 12px; }
.cat-go { opacity: .5; font-size: 18px; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .cat { background: hsl(var(--h) 30% 14%); color: hsl(var(--h) 60% 85%); border-color: hsl(var(--h) 25% 22%); } :root:not([data-mode="light"]) .cat-i { background: hsl(var(--h) 30% 20%); } }
:root[data-mode="dark"] .cat { background: hsl(var(--h) 30% 14%); color: hsl(var(--h) 60% 85%); border-color: hsl(var(--h) 25% 22%); }
:root[data-mode="dark"] .cat-i { background: hsl(var(--h) 30% 20%); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 34px 0 40px; padding: 22px 26px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.cta div { display: flex; flex-direction: column; } .cta b { font-size: 20px; } .cta span { color: rgba(255,255,255,.72); }

/* listing pages */
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 22px; align-items: start; margin: 12px 0 40px; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: sticky; top: 80px; }
@media (max-width: 860px) { .filters { position: static; } }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.check input { width: auto; margin: 0; }
.reset { display: block; text-align: center; margin-top: 10px; font-size: 13px; }
.crumbs { margin-top: 18px; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--text); font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.bar select { width: auto; margin: 0; border-radius: 999px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow); transition: transform .14s, box-shadow .14s; display: flex; flex-direction: column; border: 1px solid var(--line); }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,42,34,.14); }
.card.sold { opacity: .6; }
.thumb { position: relative; aspect-ratio: 4/3; background: var(--brand-soft); margin: 8px 8px 0; border-radius: 12px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { display: grid; place-items: center; height: 100%; font-size: 42px; }
.noimg.big { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--brand-soft); font-size: 64px; }
.price-tag { position: absolute; left: 10px; bottom: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.count { position: absolute; right: 10px; bottom: 10px; background: rgba(11,42,34,.75); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.badge-sold { position: absolute; left: 10px; top: 10px; background: var(--danger); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.card-b { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-t { font-weight: 700; line-height: 1.3; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.specs { font-size: 13px; color: var(--muted); }
.card-f { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.loc { background: var(--brand-soft); color: var(--brand); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.price { color: var(--price); font-weight: 800; font-size: 18px; }
.price.big { font-size: 30px; margin: 6px 0 12px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 16px; align-items: center; margin: 22px 0; }

/* ad page */
.detail { display: grid; grid-template-columns: 1fr 370px; gap: 24px; margin: 10px 0 40px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.main-img { width: 100%; aspect-ratio: 4/3; object-fit: contain; display: block; cursor: zoom-in; }
.gnav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); color: var(--ink); border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.gnav.prev { left: 12px; } .gnav.next { right: 12px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.thumbs img { width: 86px; height: 64px; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .55; border: 2px solid transparent; flex: none; }
.thumbs img.on { opacity: 1; border-color: var(--accent); }
.thumbs.edit .ti { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 500; }
.thumbs.edit img { opacity: 1; }
.desc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow-wrap: anywhere; }
.side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 80px; }
@media (max-width: 900px) { .side { position: static; } }
.side h1 { font-size: 22px; margin: 0; }
.spec { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.spec th, .spec td { text-align: left; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.spec th { color: var(--muted); font-weight: 500; width: 45%; }
.seller { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 10px; }
.owner { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 6px; }
.owner form { margin: 0; }

/* forms */
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 40px; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.previews img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.previews img:first-child { outline: 3px solid var(--accent); }
.alert { background: #fdecea; color: #8a1f14; border: 1px solid #f5c2bc; border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .alert { background: #3a1714; color: #f8b4ab; border-color: #5c231e; } }
:root[data-mode="dark"] .alert { background: #3a1714; color: #f8b4ab; border-color: #5c231e; }
.auth { max-width: 420px; margin: 34px auto 60px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.auth h1 { margin-top: 0; }
.choose { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 10px 0 40px; }
.choose-c { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.choose-h { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.choose-c a { padding: 7px 10px; border-radius: 10px; color: var(--text); }
.choose-c a:hover { background: var(--brand-soft); color: var(--brand); }
.foot { background: var(--ink); color: rgba(255,255,255,.62); padding: 22px 0 30px; font-size: 13px; margin-top: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.foot-links a { color: rgba(255,255,255,.86); font-weight: 600; }
.foot-links a:hover { color: #fff; }
.auth .check { align-items: flex-start; font-size: 14px; line-height: 1.4; margin: 4px 0 12px; }
.auth .check input { margin-top: 3px; flex: none; }
.legal { max-width: 760px; margin: 10px auto 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); line-height: 1.6; }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 18px; margin: 26px 0 6px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 3px 0; }
.legal-table td, .legal-table th { vertical-align: top; }
.legal-miss { background: #fff3cd; color: #7a5600; border-radius: 6px; padding: 0 5px; font-weight: 600; }
@media (max-width: 640px) { .legal { padding: 18px 16px; } }
@media (max-width: 640px) {
  .cats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat { padding: 10px; gap: 8px; font-size: 14px; }
  .cat-i { width: 38px; height: 38px; font-size: 20px; border-radius: 10px; }
  .cat-go { display: none; }
  .top-in { padding-bottom: 6px; }
}

/* ===== v2: header icons, theme, featured, messages, profile ===== */
.icon-btn { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 17px; }
.icon-btn:hover { background: rgba(255,255,255,.2); }
.icon-link { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 18px; }
.icon-link .lbl, .me .lbl { font-size: 14px; }
.dot { background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center; line-height: 16px; }
.icon-link .dot { position: absolute; top: -6px; left: 12px; }
.dot.soft { background: var(--accent); color: var(--accent-ink); }
.me { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; flex: none; }
.avatar.xl { width: 72px; height: 72px; font-size: 30px; }
@media (max-width: 900px) { .icon-link .lbl, .me .lbl { display: none; } .nav { gap: 12px; } }

.cat-strip { display: flex; gap: 6px; overflow-x: auto; padding: 16px 2px 6px; scrollbar-width: thin; }
.cat-strip a { --h: 152; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; text-align: center; color: var(--text); font-weight: 600; font-size: 13px; line-height: 1.2; }
.cat-strip .ci { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: hsl(var(--h) 60% 92%); border: 1px solid hsl(var(--h) 45% 84%); transition: transform .12s; }
.cat-strip a:hover .ci { transform: translateY(-3px) scale(1.04); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .cat-strip .ci { background: hsl(var(--h) 30% 18%); border-color: hsl(var(--h) 25% 26%); } }
:root[data-mode="dark"] .cat-strip .ci { background: hsl(var(--h) 30% 18%); border-color: hsl(var(--h) 25% 26%); }

.card.featured { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(245,179,1,.35), var(--shadow); }
.badge-star { position: absolute; left: 10px; top: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.featured-row .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pill-star { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.save-f { margin: 0 0 8px; }
.btn.saved { border-color: #ef4444; color: #ef4444; }
.seller-link { display: flex; gap: 10px; align-items: center; color: var(--text); margin: 6px 0 4px; padding: 8px; border-radius: 12px; }
.seller-link:hover { background: var(--brand-soft); }
.seller-link span:last-child { display: flex; flex-direction: column; } .seller-link small { color: var(--muted); }
.msg-f { margin: 8px 0 0; } .msg-f textarea { margin: 0; }

.profile-head { display: flex; gap: 16px; align-items: center; margin: 22px 0 18px; }
.profile-head h1 { margin: 0; }

.inbox { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.conv { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; color: var(--text); }
.conv:hover { border-color: var(--brand); }
.conv.unread { border-left: 4px solid var(--brand); }
.conv.unread .conv-m { color: var(--text); font-weight: 600; }
.conv-img img, .conv-img .noimg, .thread-ad img, .thread-ad .noimg { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); font-size: 22px; flex: none; }
.conv-b { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.conv-t { display: flex; justify-content: space-between; gap: 8px; }
.conv-l { font-size: 13px; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-m { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 700; }
.thread { max-width: 760px; margin: 10px 0 40px; }
.thread-h { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.thread-ad { display: flex; gap: 10px; align-items: center; color: var(--text); }
.thread-ad span:last-child { display: flex; flex-direction: column; } .thread-ad small { color: var(--price); font-weight: 700; }
.msgs { display: flex; flex-direction: column; gap: 10px; padding: 16px 4px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.bubble { background: var(--card); border: 1px solid var(--line); padding: 10px 14px; border-radius: 16px 16px 16px 4px; overflow-wrap: anywhere; }
.msg.me .bubble { background: var(--brand); color: #fff; border-color: var(--brand); border-radius: 16px 16px 4px 16px; }
.msg small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.reply { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 0; background: var(--bg); padding: 8px 0; }
.reply textarea { margin: 0; flex: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .msg.me .bubble { color: #04130e; } }
:root[data-mode="dark"] .msg.me .bubble, :root[data-mode="dark"] .btn-primary { color: #04130e; }

/* ⚙️ settings */
.icon-btn.gear { display: inline-grid; place-items: center; text-decoration: none; }
.settings { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; margin-bottom: 40px; }
@media (max-width: 800px) { .settings { grid-template-columns: 1fr; } }
.set-nav { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 80px; }
@media (max-width: 800px) { .set-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
.set-nav a { padding: 8px 12px; border-radius: 10px; color: var(--text); font-weight: 600; }
.set-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.set-nav a.danger { color: var(--danger); }
.set-body { display: flex; flex-direction: column; gap: 16px; }
.set-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.set-card h2 { margin-top: 0; }
.danger-zone { border-color: #f5c2bc; }
.ok { background: var(--brand-soft); color: var(--brand); border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-weight: 600; }
.about { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; }

/* settings page centred in the middle of the screen */
.set-page { max-width: 980px; margin: 0 auto; }
.set-page > h1 { text-align: center; margin: 26px 0 18px; }

/* home: mountain landscape behind the search */
.hero-band.hero-photo {
  background:
    linear-gradient(90deg, rgba(6,22,18,.72) 0%, rgba(6,22,18,.38) 45%, rgba(6,22,18,0) 100%),
    var(--hero-img) center 70% / cover no-repeat, #0b2a22;
  padding: 70px 0 90px; min-height: 380px;
}
.hero-band.hero-photo h1, .hero-band.hero-photo p { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero-band.hero-photo p { color: rgba(255,255,255,.9); }
@media (max-width: 640px) { .hero-band.hero-photo { padding: 40px 0 56px; min-height: 0; background: linear-gradient(180deg, rgba(6,22,18,.75), rgba(6,22,18,.45)), var(--hero-img) center bottom / cover no-repeat, #0b2a22; } }

/* gallery counter + full-screen viewer */
.g-count { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.65); color: #fff; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; pointer-events: none; }
.g-zoom { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 5px 10px; border-radius: 999px; cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.97); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lb-img { max-width: 92vw; max-height: calc(100vh - 170px); object-fit: contain; user-select: none; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; padding: 14px; }
.lb-count { color: #fff; font-weight: 800; font-size: 18px; background: rgba(255,255,255,.12); padding: 5px 16px; border-radius: 999px; }
.lb-x { position: absolute; right: 14px; top: 10px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: #fff; border: 0; width: 56px; height: 56px; border-radius: 50%; font-size: 34px; line-height: 1; cursor: pointer; }
.lb-nav[hidden] { display: none; }
.lb-nav:hover, .lb-x:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-strip { position: absolute; bottom: 0; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding: 12px; }
.lb-strip[hidden] { display: none; }
.lb-strip img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; opacity: .45; cursor: pointer; border: 2px solid transparent; flex: none; }
.lb-strip img.on { opacity: 1; border-color: var(--accent); }
@media (max-width: 640px) { .lb-nav { width: 44px; height: 44px; font-size: 28px; } .lb-prev { left: 6px; } .lb-next { right: 6px; } .lb-strip img { width: 60px; height: 44px; } .lb-img { max-height: calc(100vh - 140px); } }

/* ✉️ 📱 verification */
.verify-bar { background: #fef3c7; color: #78350f; border-bottom: 1px solid #fcd34d; padding: 9px 0; font-weight: 600; font-size: 14px; }
.verify-bar a { color: #92400e; text-decoration: underline; }
.verify .steps { display: flex; gap: 8px; margin-bottom: 6px; }
.verify .steps span { flex: 1; text-align: center; padding: 6px; border-radius: 999px; background: var(--bg); color: var(--muted); font-weight: 700; font-size: 13px; border: 1px solid var(--line); }
.verify .steps span.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.verify .steps span.done { background: var(--brand-soft); color: var(--brand); }
.code-in { font-size: 30px; letter-spacing: 12px; text-align: center; font-weight: 800; padding: 12px; }
.resend { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.test-note { background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 8px 12px; font-size: 13px; }

/* ⭐ paid featuring */
.feat-box { margin: 6px 0; }
.feat-box .pill-star { margin: 4px 0 2px; }
.pay .price-box { display: flex; flex-direction: column; align-items: center; background: var(--brand-soft); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.pay .price-box b { font-size: 34px; color: var(--price); }
.pay .ref { font-size: 18px; letter-spacing: 1px; }
.admin-t { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; font-size: 14px; }
.admin-t th, .admin-t td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-t tr.pending td { background: rgba(245,179,1,.10); }
.admin-t tr.cancelled td { opacity: .55; }
.admin-t .btn { padding: 6px 12px; }

/* 🪙 points */
.coins { display: inline-flex; align-items: center; gap: 6px; background: rgba(245,179,1,.16); border: 1px solid rgba(245,179,1,.45); color: #fde68a !important; padding: 5px 12px; border-radius: 999px; font-size: 15px; }
.coins b { color: #fff; }
.balance { display: flex; align-items: baseline; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--ink), #125240); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.balance b { font-size: 46px; color: var(--accent); line-height: 1; } .balance span, .balance small { color: #cfe3da; }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pkg { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--bg); }
.pkg b { font-size: 20px; } .pkg span { color: var(--price); font-weight: 800; font-size: 18px; } .pkg em { color: var(--brand); font-size: 12px; font-style: normal; font-weight: 700; }
.pend { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px dashed var(--line); }
.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
.hist td { padding: 7px 4px; border-bottom: 1px dashed var(--line); }
.hist td:last-child { text-align: right; font-weight: 800; white-space: nowrap; }
.hist .plus { color: var(--brand); } .hist .minus { color: var(--danger); }
.feat-f { display: flex; gap: 6px; margin: 6px 0 0; } .feat-f select { margin: 0; flex: 1; } .feat-f .btn { white-space: nowrap; }
.admin-pts { max-width: 640px; margin-bottom: 40px; }

/* many header items: hide the words next to the icons earlier so the header stays in one row */
@media (max-width: 1180px) { .icon-link .lbl, .me .lbl { display: none; } .nav { gap: 12px; } }

/* 💎 premium (above ⭐ featured) */
.card.premium { border: 2px solid #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.22), 0 10px 26px rgba(91,33,182,.18); }
.badge-prem { position: absolute; left: 10px; top: 10px; background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 10px rgba(124,58,237,.45); }
.premium-row { background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(192,38,211,.08)); border: 1px solid rgba(139,92,246,.30); border-radius: calc(var(--radius) + 6px); padding: 14px; }
.premium-row .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pill-prem { display: inline-block; background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 11px; border-radius: 999px; margin-bottom: 8px; }
.prem-box { border: 1px solid rgba(139,92,246,.4); background: rgba(139,92,246,.07); border-radius: 14px; padding: 10px; margin: 8px 0; }
.prem-h { font-weight: 800; color: #7c3aed; } .prem-h small { font-weight: 500; color: var(--muted); }
.prem-box .pill-prem { margin: 6px 0 0; }
.btn-prem { background: linear-gradient(135deg, #7c3aed, #c026d3); border: 0; color: #fff; white-space: nowrap; }
.btn-prem:hover { filter: brightness(1.08); }

/* 🛠 admin panel */
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.adm-tabs a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.adm-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.adm-search { display: flex; gap: 8px; margin-bottom: 8px; max-width: 640px; } .adm-search input[name=q] { margin: 0; flex: 1; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 10px; }
.stat { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); }
.stat b { font-size: 28px; color: var(--brand); } .stat span { color: var(--muted); font-size: 13px; }
.adm-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; display: block; }
.adm-act { white-space: nowrap; } .adm-act .btn { padding: 5px 10px; font-size: 13px; margin: 2px 0; }
.tag.red { background: var(--danger); color: #fff; }
.admin-note { background: #ede9fe; color: #3b0764; border: 1px solid #c4b5fd; border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; font-size: 13px; }
@media (max-width: 900px) { .admin-t { display: block; overflow-x: auto; } }

/* =====================================================================
   🏠 POČETNA – „digitalna čaršija“
   ===================================================================== */
:root { --display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif; --hx-bg: #f3efe4; --hx-dot: rgba(11,42,34,.09); --tile-l: 94%; --tile-b: 86%; --tile-ink: 22%; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) { --hx-bg: #0d1a16; --hx-dot: rgba(255,255,255,.06); --tile-l: 15%; --tile-b: 24%; --tile-ink: 86%; } }
:root[data-mode="dark"] { --hx-bg: #0d1a16; --hx-dot: rgba(255,255,255,.06); --tile-l: 15%; --tile-b: 24%; --tile-ink: 86%; }

.sec { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.6px; font-weight: 800; }
.sec-row { margin-top: 34px; }
.sec-row .sec { margin: 0 0 14px; }
.sec-more { font-weight: 700; white-space: nowrap; }
.btn-lg { padding: 14px 26px; font-size: 16px; font-weight: 800; }

/* hero */
.hx { position: relative; overflow: hidden; background: var(--hx-bg); background-image: radial-gradient(var(--hx-dot) 1.2px, transparent 1.3px); background-size: 22px 22px; color: var(--text); border-bottom: 1px solid var(--line); }
.hx-glow { position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), color-mix(in srgb, var(--brand) 20%, transparent) 45%, transparent 70%); filter: blur(10px); pointer-events: none; }
.hx-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 30px; align-items: center; padding-top: 54px; padding-bottom: 60px; }
.hx-kick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--brand); background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.hx-kick i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hx-title { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 7.2vw, 92px); line-height: .98; letter-spacing: -2.5px; margin: 18px 0 16px; }
.hx-title em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hx-title em::after { content: ""; position: absolute; left: 2%; right: 4%; bottom: .02em; height: .16em; background: var(--accent); border-radius: 99px; z-index: -1; transform: rotate(-1.2deg); }
.rot { display: inline-block; height: 1.04em; overflow: hidden; vertical-align: bottom; }
.rot-in { display: flex; flex-direction: column; animation: rot 18s cubic-bezier(.7,0,.2,1) infinite; }
.rot-in span { display: block; height: 1.04em; line-height: 1.04em; color: var(--accent-ink); background: var(--accent); padding: 0 .16em; border-radius: .14em; width: max-content; }
@keyframes rot {
  0%, 10% { transform: translateY(0); } 12.5%, 22.5% { transform: translateY(-1.04em); } 25%, 35% { transform: translateY(-2.08em); } 37.5%, 47.5% { transform: translateY(-3.12em); }
  50%, 60% { transform: translateY(-4.16em); } 62.5%, 72.5% { transform: translateY(-5.2em); } 75%, 85% { transform: translateY(-6.24em); } 87.5%, 97.5% { transform: translateY(-7.28em); } 100% { transform: translateY(-8.32em); }
}
.hx-sub { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 26px; }
.hx-search { display: flex; align-items: center; gap: 6px; background: var(--card); border: 2px solid var(--text); border-radius: 20px; padding: 6px; max-width: 640px; box-shadow: 6px 6px 0 var(--text); transition: box-shadow .15s, transform .15s; }
.hx-search:focus-within { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--brand); border-color: var(--brand); }
.hx-s-ic { font-size: 24px; padding-left: 10px; color: var(--muted); line-height: 1; }
.hx-search input, .hx-search select { border: 0; background: transparent; margin: 0; color: var(--text); font-size: 17px; box-shadow: none; outline: none; }
.hx-search input { flex: 1; min-width: 0; padding: 12px 6px; }
.hx-search select { width: 170px; border-left: 1px solid var(--line); border-radius: 0; font-size: 15px; }
.hx-search button { border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 800; font-size: 16px; border-radius: 14px; padding: 13px 26px; cursor: pointer; }
.hx-search button:hover { background: var(--brand-2); }
.hx-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; }
.hx-quick span { color: var(--muted); font-weight: 600; }
.hx-quick a { color: var(--text); background: var(--card); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-weight: 600; transition: border-color .12s, transform .12s; }
.hx-quick a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* hero – plutajuće tezge */
.hx-art { position: relative; height: 420px; }
.hx-tag { --h: 152; position: absolute; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 18px 14px 14px; min-width: 210px; border-radius: 20px; background: hsl(var(--h) 70% var(--tile-l)); color: hsl(var(--h) 55% var(--tile-ink)); border: 2px solid hsl(var(--h) 45% var(--tile-b)); box-shadow: 0 18px 40px -18px hsl(var(--h) 60% 25% / .45); animation: float 6s ease-in-out infinite; }
.hx-tag-i { grid-row: span 2; width: 56px; height: 56px; display: grid; place-items: center; font-size: 30px; border-radius: 16px; background: var(--card); }
.hx-tag b { font-family: var(--display); font-size: 19px; letter-spacing: -.3px; }
.hx-tag small { opacity: .75; font-weight: 600; }
.hx-tag-1 { top: 6%; left: 4%; --r: -6deg; }
.hx-tag-2 { top: 30%; right: 0; --r: 5deg; animation-delay: -1.5s; }
.hx-tag-3 { top: 56%; left: 0; --r: 3deg; animation-delay: -3s; }
.hx-tag-4 { bottom: 2%; right: 12%; --r: -4deg; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(var(--r)) translateY(-10px); } }
.hx-stamp { position: absolute; top: -4%; right: 6%; width: 128px; height: 128px; z-index: 2; }
.stamp { width: 100%; height: 100%; animation: spin 18s linear infinite; filter: drop-shadow(0 8px 16px rgba(0,0,0,.18)); }
.stamp-bg { fill: var(--accent); }
.stamp text { fill: var(--accent-ink); font: 800 11.5px var(--display, sans-serif); letter-spacing: 1.6px; }
.stamp .stamp-mid { font-size: 22px; letter-spacing: -.5px; }
.hx-stamp:hover .stamp { animation-duration: 4s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* živa traka */
.ticker { display: flex; align-items: stretch; background: var(--ink); color: rgba(255,255,255,.92); overflow: hidden; font-size: 14px; }
.tk-live { flex: none; display: flex; align-items: center; padding: 0 16px; background: var(--accent); color: var(--accent-ink); font-weight: 800; letter-spacing: .8px; font-size: 12px; z-index: 1; }
.tk-track { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tk-move { display: flex; align-items: center; gap: 18px; width: max-content; padding: 12px 0; animation: marquee var(--d, 40s) linear infinite; }
.ticker:hover .tk-move { animation-play-state: paused; }
.tk-move a, .tk-plain { display: inline-flex; align-items: baseline; gap: 8px; color: rgba(255,255,255,.92); white-space: nowrap; }
.tk-move a b { font-weight: 600; } .tk-move a span { color: var(--accent); font-weight: 800; } .tk-move a small { color: rgba(255,255,255,.55); }
.tk-move a:hover b { text-decoration: underline; }
.tk-move i { color: var(--accent); font-style: normal; opacity: .7; }
.tk-plain { font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* kategorije – tezge (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(118px, auto); gap: 12px; }
.tz { --h: 152; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 22px; overflow: hidden; background: hsl(var(--h) 70% var(--tile-l)); color: hsl(var(--h) 55% var(--tile-ink)); border: 1px solid hsl(var(--h) 45% var(--tile-b)); transition: transform .18s, box-shadow .18s; }
.tz:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 18px 34px -18px hsl(var(--h) 60% 25% / .5); }
.tz-i { font-size: 34px; line-height: 1; margin-bottom: auto; transition: transform .25s; }
.tz:hover .tz-i { transform: scale(1.15) rotate(-8deg); }
.tz-n { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.3px; line-height: 1.15; margin-top: 12px; }
.tz-t { font-size: 13px; opacity: .78; }
.tz-c { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; opacity: .85; margin-top: 8px; }
.tz-go { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--text); font-size: 14px; transition: transform .18s; }
.tz:hover .tz-go { transform: translateX(3px); }
.tz-big { grid-column: span 3; grid-row: span 2; padding: 22px; }
.tz-big .tz-i { font-size: 64px; position: absolute; right: 18px; top: 14px; font-size: 92px; opacity: .95; }
.tz-big .tz-n { font-size: clamp(26px, 3vw, 38px); margin-top: auto; max-width: 70%; }
.tz-big .tz-t { font-size: 15px; }
.tz-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tz-subs span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--card); color: var(--text); }
/* raspored: 2 velike tezge, 4 srednje (u redu), 4 male */
.bento { grid-template-columns: repeat(12, 1fr); }
.tz-big { grid-column: span 6; }
.tz:nth-of-type(n+3):nth-of-type(-n+6) { grid-column: span 6; grid-row: span 1; flex-direction: row; align-items: center; gap: 14px; }
.tz:nth-of-type(n+3):nth-of-type(-n+6) .tz-i { margin: 0; font-size: 40px; }
.tz:nth-of-type(n+3):nth-of-type(-n+6) .tz-n { margin: 0; }
.tz:nth-of-type(n+3):nth-of-type(-n+6) .tz-t { margin-left: 4px; }
.tz:nth-of-type(n+3):nth-of-type(-n+6) .tz-c { margin: 0 0 0 auto; gap: 10px; }
.tz:nth-of-type(n+7) { grid-column: span 3; }
@media (max-width: 1000px) { .tz:nth-of-type(n+3):nth-of-type(-n+6) .tz-t { display: none; } }

/* poziv na objavu */
.cta2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; align-items: center; margin: 44px 0 46px; padding: 34px; border-radius: 28px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta2::before { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%); }
.cta2 h2 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.02; letter-spacing: -1.2px; margin: 0 0 10px; }
.cta2 p { color: rgba(255,255,255,.72); margin: 0 0 20px; font-size: 17px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; }
.step-n { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--accent); display: block; line-height: 1; margin-bottom: 10px; }
.step b { font-size: 17px; } .step p { margin: 4px 0 0; color: rgba(255,255,255,.62); font-size: 14px; }

@media (max-width: 1000px) {
  .hx-in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 30px; }
  .hx-art { height: 190px; margin: 0 -16px; }
  .hx-tag { min-width: 0; padding: 10px 14px 10px 10px; }
  .hx-tag-i { width: 42px; height: 42px; font-size: 22px; }
  .hx-tag b { font-size: 15px; }
  .hx-tag-1 { top: 4%; left: 4%; } .hx-tag-2 { top: 8%; right: 30%; left: auto; } .hx-tag-3 { top: 52%; left: 12%; } .hx-tag-4 { bottom: 6%; right: 4%; }
  .hx-stamp { width: 96px; height: 96px; top: auto; bottom: 0; right: auto; left: 52%; }
  .cta2 { grid-template-columns: 1fr; padding: 26px 22px; }
}
@media (max-width: 640px) {
  .hx-title { letter-spacing: -1.5px; }
  .hx-sub { font-size: 16px; }
  .hx-search { flex-wrap: wrap; border-radius: 18px; box-shadow: 4px 4px 0 var(--text); }
  .hx-s-ic { display: none; }
  .hx-search input { flex-basis: 100%; padding: 10px 10px; }
  .hx-search select { flex: 1; border-left: 0; border-top: 1px solid var(--line); padding: 10px; }
  .hx-search button { padding: 12px 20px; }
  .hx-art { display: none; }
  .bento { grid-template-columns: 1fr 1fr !important; gap: 10px; grid-auto-rows: minmax(110px, auto); }
  .tz-big { grid-column: span 2 !important; grid-row: span 1; min-height: 170px; }
  .tz-big .tz-i { font-size: 64px; }
  .tz:not(.tz-big) { grid-column: span 1 !important; flex-direction: column !important; align-items: stretch !important; }
  .tz:not(.tz-big) .tz-i { margin-bottom: auto !important; font-size: 32px !important; }
  .tz:not(.tz-big) .tz-n { margin-top: 10px !important; }
  .tz:not(.tz-big) .tz-c { margin: 8px 0 0 !important; }
  .tz:not(.tz-big) .tz-t { display: block !important; margin: 0 !important; }
  .tz { padding: 14px; border-radius: 18px; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rot-in, .tk-move, .hx-tag, .stamp, .hx-kick i { animation: none !important; }
  .tk-track { overflow-x: auto; }
}

/* mobitel: oglasi po dva u redu */
@media (max-width: 640px) {
  .grid, .featured-row .grid, .premium-row .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid .card-b { padding: 10px; }
  .grid .card-t { font-size: 14px; line-height: 1.3; }
  .grid .card-f { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 12px; }
  .grid .specs { display: none; }
  .grid .price-tag { font-size: 13px; }
}

/* =====================================================================
   🎨 TEME – izbornik i boje (spisak tema je u lib/themes.js)
   ===================================================================== */
.theme-wrap { position: relative; }
.theme-pop { position: absolute; top: calc(100% + 10px); right: -8px; z-index: 50; width: 330px; max-width: calc(100vw - 24px); background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.35); padding: 14px; }
.theme-pop[hidden] { display: none; }
.theme-pop-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.theme-pop-h b { font-family: var(--display); font-size: 17px; }
.theme-auto { border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.theme-auto.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.theme-opt { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border: 2px solid transparent; border-radius: 14px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.theme-opt:hover { background: var(--brand-soft); }
.theme-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.sw { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--a); border: 1px solid rgba(128,128,128,.35); display: grid; place-items: center; position: relative; overflow: hidden; }
.sw::before { content: ""; position: absolute; inset: 50% 0 0 0; background: var(--b); }
.sw i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--a); }
@media (max-width: 760px) { .theme-pop { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; } }

/* --- svijetle teme --- */
:root[data-theme="jadran"]  { --bg: #eef5f8; --card: #fff; --text: #0c2230; --muted: #557080; --line: #d5e4ea; --brand: #0369a1; --brand-2: #075985; --brand-soft: #e0f0f9; --accent: #fb7185; --accent-ink: #3b0712; --ink: #0b2a3d; --price: #0369a1; --hx-bg: #e6f1f6; }
:root[data-theme="zalazak"] { --bg: #fff4ec; --card: #fff; --text: #2a130a; --muted: #7c5a4a; --line: #f1dccd; --brand: #c2410c; --brand-2: #9a3412; --brand-soft: #ffedd5; --accent: #f472b6; --accent-ink: #3b0626; --ink: #3a1408; --price: #c2410c; --hx-bg: #ffeedf; }
:root[data-theme="lavanda"] { --bg: #f5f3fb; --card: #fff; --text: #1e1530; --muted: #6b6280; --line: #e4def2; --brand: #7c3aed; --brand-2: #6d28d9; --brand-soft: #ede9fe; --accent: #34d399; --accent-ink: #052e1c; --ink: #24123f; --price: #7c3aed; --hx-bg: #efebfa; }
:root[data-theme="tresnja"] { --bg: #fdf2f5; --card: #fff; --text: #2b0f19; --muted: #7d5866; --line: #f4d9e1; --brand: #db2777; --brand-2: #be185d; --brand-soft: #fce7f3; --accent: #fbbf24; --accent-ink: #3a2400; --ink: #3b0a1e; --price: #be185d; --hx-bg: #fbe9ef; }
:root[data-theme="kafa"]    { --bg: #f4ede4; --card: #fffaf4; --text: #2b1d14; --muted: #7a6555; --line: #e6d8c7; --brand: #92400e; --brand-2: #78350f; --brand-soft: #f6e7d4; --accent: #f59e0b; --accent-ink: #2b1500; --ink: #2b1d14; --price: #92400e; --hx-bg: #efe5d8; }
:root[data-theme="papir"]   { --bg: #fafafa; --card: #fff; --text: #111; --muted: #666; --line: #e5e5e5; --brand: #111; --brand-2: #333; --brand-soft: #f0f0f0; --accent: #facc15; --accent-ink: #1a1400; --ink: #111; --price: #111; --hx-bg: #f2f2f2; }
/* --- tamne teme --- */
:root[data-theme="suma"]    { --bg: #0c1610; --card: #14231a; --text: #e6f2e8; --muted: #92ab98; --line: #223a2a; --brand: #84cc16; --brand-2: #65a30d; --brand-soft: #1c3315; --accent: #facc15; --accent-ink: #2a2100; --ink: #07100a; --price: #a3e635; --hx-bg: #0f1d14; }
:root[data-theme="ponoc"]   { --bg: #0a1020; --card: #121a2e; --text: #e6ecf8; --muted: #8e9ab5; --line: #222c45; --brand: #38bdf8; --brand-2: #0ea5e9; --brand-soft: #12263d; --accent: #a78bfa; --accent-ink: #160a33; --ink: #060a16; --price: #7dd3fc; --hx-bg: #0d1428; }
:root[data-theme="zar"]     { --bg: #141010; --card: #1e1716; --text: #f5e9e6; --muted: #b09a95; --line: #33272a; --brand: #fb923c; --brand-2: #f97316; --brand-soft: #3a1d10; --accent: #ef4444; --accent-ink: #fff; --ink: #0c0808; --price: #fdba74; --hx-bg: #1a1312; }
:root[data-theme="neon"]    { --bg: #0e0a1a; --card: #171127; --text: #f0e9ff; --muted: #a497c4; --line: #2a2142; --brand: #e879f9; --brand-2: #d946ef; --brand-soft: #2d1440; --accent: #22d3ee; --accent-ink: #042a33; --ink: #08051a; --price: #f0abfc; --hx-bg: #120c22; }
:root[data-theme="grafit"]  { --bg: #111; --card: #1b1b1b; --text: #ededed; --muted: #a0a0a0; --line: #2c2c2c; --brand: #fafafa; --brand-2: #d4d4d4; --brand-soft: #262626; --accent: #facc15; --accent-ink: #1a1400; --ink: #0a0a0a; --price: #fde047; --hx-bg: #141414; }
/* tekst na glavnoj boji u tamnim temama (svijetla dugmad) */
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .hx-search button { color: #04130e; } }
:root[data-mode="dark"] .hx-search button { color: #04130e; }

/* 🔑 zaboravljena lozinka · 🚩 prijava oglasa */
.forgot { text-align: right; margin: -4px 0 6px; font-size: 14px; }
.code-in { font-size: 22px; letter-spacing: 6px; font-weight: 700; text-align: center; }
.report { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.report summary { cursor: pointer; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--muted); list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report summary:hover { color: var(--danger); }
.report[open] summary { color: var(--danger); border-bottom: 1px solid var(--line); }
.report form { padding: 10px 14px 14px; }
.report .check { margin: 6px 0; font-size: 14px; font-weight: 500; }
.report textarea { width: 100%; }
.resend-btn { background: none; border: 0; padding: 0; margin-top: 12px; font: inherit; font-size: 14px; color: var(--brand); cursor: pointer; text-decoration: underline; }
.install-btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 3px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.install-btn[hidden] { display: none; }

/* 🛒 kupovina + kartice na profilu */
.btn-buy { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; }
.btn-buy:hover { filter: brightness(1.05); border-color: var(--accent); }
.buy-box { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--line); margin: 8px 0; }
.buy-box span { font-size: 14px; color: var(--muted); }
.buy-box.wait { background: color-mix(in srgb, var(--accent) 16%, var(--card)); }
.buy-box.done { background: var(--brand-soft); border-color: var(--brand); }
.buy-box form { margin-top: 6px; }
.thread .buy-box { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.thread .buy-box form { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--danger); text-decoration: underline; cursor: pointer; }
.buy-req { border: 2px solid var(--accent); border-radius: 16px; padding: 12px 14px; margin: 10px 0; background: var(--card); }
.buy-req-h { font-weight: 700; margin-bottom: 6px; }
.buy-req-r { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.buy-req-r form { grid-row: span 2; grid-column: 2; grid-row-start: 1; margin: 0; }
.buy-req-r small { grid-column: 1; }
.ptabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 22px 0 18px; overflow-x: auto; }
.ptabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.ptabs a b { font-size: 12px; background: var(--line); color: var(--text); border-radius: 999px; padding: 1px 8px; }
.ptabs a:hover { color: var(--text); }
.ptabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.ptabs a.on b { background: var(--brand); color: var(--card); }

/* ⭐ ocjene */
.stars { color: #f5a300; letter-spacing: 1px; }
.rating { display: inline-flex; align-items: baseline; gap: 4px; font-size: 14px; }
.rating.big { font-size: 16px; margin: 2px 0 4px; }
.rating.big .stars { font-size: 19px; }
.rating.none { color: var(--muted); font-size: 13px; }
.rating-link { color: var(--text); display: inline-block; }
.rating-link:hover b { text-decoration: underline; }
.review-box { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 10px 0; background: var(--card); }
.review-box form { display: flex; flex-direction: column; gap: 8px; }
.review-box textarea { width: 100%; margin: 0; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 32px; line-height: 1; color: var(--line); cursor: pointer; transition: transform .1s, color .1s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #f5a300; }
.star-pick label:hover { transform: scale(1.15); }
.star-pick input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.reviews { display: flex; flex-direction: column; gap: 10px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.review-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review-h .stars { font-size: 17px; }
.review-h a { color: var(--text); }
.review p { margin: 8px 0 4px; }
.thread .review-box { margin: 10px 0; }

/* 🔔 spašene pretrage */
.bar { flex-wrap: wrap; gap: 8px; }
.btn-alert { padding: 6px 14px; font-size: 14px; border-color: var(--brand); color: var(--brand); }
.btn-alert:hover { background: var(--brand-soft); }
.searches { display: flex; flex-direction: column; gap: 8px; }
.ss { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.ss a { flex: 1; display: flex; flex-direction: column; color: var(--text); }
.ss a:hover b { color: var(--brand); }

/* 📉 sniženo */
.price-tag.drop { background: #dc2626; color: #fff; }
.price-tag s { opacity: .75; font-weight: 600; font-size: .85em; margin-right: 2px; }
.badge-drop { position: absolute; top: 10px; right: 10px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.old-price { color: var(--muted); font-size: .6em; font-weight: 600; }
.drop-pill { display: inline-block; vertical-align: middle; background: #dc2626; color: #fff; font-size: 14px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

/* ⏳ isticanje */
.badge-exp { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 800; font-size: 15px; border-radius: inherit; }
.exp-box { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); margin: 8px 0; font-size: 14px; }
.exp-box.soon { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.exp-box.gone { border-color: #dc2626; background: color-mix(in srgb, #dc2626 10%, var(--card)); }
.exp-box span { color: var(--muted); }

/* 📤 dijeljenje + 📞 kontakt */
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.btn-viber { background: #7360f2; border-color: #7360f2; color: #fff; }
.btn-wa { background: #25d366; border-color: #25d366; color: #06301a; }
.btn-viber:hover, .btn-wa:hover { filter: brightness(1.05); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }
.sh { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sh:hover { border-color: var(--brand); }
.sh-wa { color: #128c4b; } .sh-viber { color: #7360f2; }
.sh[hidden] { display: none; }
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.12); }
  .callbar a { display: grid; place-items: center; height: 48px; border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none; }
  .cb-call { flex: 2; background: var(--brand); color: #fff; }
  .cb-viber { width: 52px; background: #7360f2; color: #fff; font-size: 22px !important; }
  .cb-wa { width: 52px; background: #25d366; font-size: 22px !important; }
  .cb-msg { flex: 1.4; background: var(--accent); color: var(--accent-ink); }
  body.has-callbar { padding-bottom: 78px; }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .cb-call { color: #04130e; } }
:root[data-mode="dark"] .cb-call { color: #04130e; }
.seller-link small .stars { display: inline; }
@media (max-width: 760px) {
  .top { position: static; }   /* na mobitelu zaglavlje ne zauzima ekran dok se skrola */
  .callbar a { flex: 1; font-size: 14px; padding: 0 6px; }
  .cb-call { flex: 1.3 !important; font-size: 16px !important; }
  .cb-viber, .cb-wa { width: auto; font-size: 14px !important; }
  .cb-wa { color: #06301a; }
}
.locked { padding: 10px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--text); font-size: 14px; font-weight: 600; margin: 8px 0; }

/* 🤝 partneri */
.pbadge { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #0b2a22, #047857); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 3px 9px; border-radius: 999px; width: max-content; }
.pbadge i { font-style: normal; font-weight: 600; letter-spacing: 0; opacity: .85; }
.pbadge.big { font-size: 13px; padding: 5px 12px; margin: 4px 0; }
.card.is-partner { border-color: #c9a227; box-shadow: 0 0 0 1px #c9a227, var(--shadow); }
.partner-line { font-size: 11px; font-weight: 800; letter-spacing: .4px; color: #8a6d00; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-note { font-family: "Outfit", sans-serif; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.partner-row .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pp-hero { text-align: center; padding: 30px 10px 10px; }
.pp-hero h1 { font-family: var(--display); font-size: clamp(30px, 5vw, 48px); letter-spacing: -1px; margin: 12px 0 6px; }
.pp-hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0 40px; align-items: start; }
.pp-benefits { display: grid; gap: 10px; }
.pp-b { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.pp-b b { font-size: 17px; } .pp-b span { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.warn { color: #b45309; font-weight: 700; }
@media (max-width: 760px) { .pp-grid { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .partner-line { color: #f0c94a; } }
:root[data-mode="dark"] .partner-line { color: #f0c94a; }

/* 🤝 poziv za partnere – upadljivo i pri ruci */
.biz-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(240,201,74,.55); color: #f0c94a !important; font-weight: 700 !important; }
.biz-link:hover { background: rgba(240,201,74,.12); }
.partner-cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; margin: 22px 0 6px; padding: 22px 26px; border-radius: 24px; color: #1f1600; text-decoration: none;
  background: linear-gradient(120deg, #f7d774 0%, #f0b429 45%, #d99a06 100%); box-shadow: 0 18px 40px -20px rgba(160,110,0,.7); }
.partner-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.pc-badge { flex: none; background: #0b2a22; color: #f0c94a; font-weight: 800; letter-spacing: 1px; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.pc-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pc-txt b { font-family: var(--display); font-size: clamp(19px, 2.4vw, 26px); letter-spacing: -.4px; line-height: 1.15; }
.pc-txt span { font-size: 14px; opacity: .85; }
.pc-go { flex: none; background: #0b2a22; color: #fff; font-weight: 800; padding: 12px 22px; border-radius: 999px; transition: transform .15s; }
.partner-cta:hover .pc-go { transform: translateX(4px); }
.side { display: flex; flex-direction: column; gap: 12px; }
.side-partner { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: #1f1600; background: linear-gradient(135deg, #f7d774, #f0b429); }
.side-partner b { font-size: 16px; margin-top: 6px; } .side-partner span:not(.pbadge) { font-size: 13px; opacity: .85; } .side-partner em { font-style: normal; font-weight: 800; margin-top: 4px; }
@media (max-width: 760px) {
  .partner-cta { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
  .pc-go { align-self: stretch; text-align: center; }
  .biz-link .lbl { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .partner-cta::after { animation: none; display: none; } }

/* 💰 ponude · 🔁 zamjena */
.offer { margin-top: 8px; border: 2px dashed var(--accent); border-radius: 16px; background: var(--card); }
.offer summary { cursor: pointer; list-style: none; padding: 12px 14px; font-weight: 800; text-align: center; }
.offer summary::-webkit-details-marker { display: none; }
.offer summary small { font-weight: 600; color: var(--muted); margin-left: 4px; }
.offer[open] summary { border-bottom: 1px dashed var(--line); }
.offer form { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.offer-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-chips .chip { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.offer-chips .chip:hover { border-color: var(--accent); }
.offer-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); margin: 8px 0; }
.offer-bar.wait { border-style: dashed; }
.offer-bar > div:first-child { display: flex; flex-direction: column; }
.offer-bar small { color: var(--muted); }
.offer-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.offer-act form { margin: 0; display: flex; gap: 4px; }
.offer-act .counter input { width: 110px; margin: 0; padding: 8px 10px; }
.offer-row { padding: 8px 0; border-top: 1px solid var(--line); }
.offer-row .offer-bar { margin: 6px 0 0; }
.swap-chip { display: inline-block; width: max-content; font-size: 11px; font-weight: 800; color: #6d28d9; background: #ede9fe; border-radius: 999px; padding: 2px 8px; }
.deal-opts { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.swap-for[hidden] { display: none; }
.scam-warn { max-width: 80%; margin: 4px 0 8px; padding: 10px 12px; border-radius: 12px; background: #fef3c7; color: #6b4600; border: 1px solid #f59e0b; font-size: 13px; line-height: 1.45; }
.scam-warn a { color: #6b4600; font-weight: 700; text-decoration: underline; }

/* ✅ kvačice (oprema / pogodnosti) */
.feats { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 14px; margin: 4px 0; background: var(--card); }
.feats legend { font-weight: 700; padding: 0 6px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.feat-opt { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; }
.feat-opt input { width: auto; margin: 0; }
.ffeat { border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; margin: 6px 0; }
.ffeat summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.ffeat .check { font-size: 13px; margin: 4px 0; }
.feat-show h3 { margin: 18px 0 8px; }
.feat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-chips span { background: var(--brand-soft); color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }

/* 📱 popravka: sadržaj oglasa nikad ne smije biti širi od ekrana */
.detail { grid-template-columns: minmax(0, 1fr) 370px; }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.detail > * { min-width: 0; }
.gallery, .thumbs { max-width: 100%; min-width: 0; }
.main-img { max-width: 100%; }
@media (max-width: 760px) {
  .main-img { max-height: 58vh; }                       /* slika ne zauzima cijeli ekran */
  .thumbs img { width: 64px; height: 48px; }
  .admin-t { display: block; overflow-x: auto; max-width: 100%; }   /* široke admin tabele se skroluju */
}

/* 📱 telefon: zbijeno zaglavlje, naslov i cijena odmah ispod slike, uredna donja traka */
.m-head { display: none; }
@media (max-width: 900px) {
  .m-head { display: block; margin: 14px 0 4px; }
  .m-head h1 { font-size: 22px; margin: 0 0 4px; line-height: 1.2; }
  .m-head .price.big { margin: 2px 0 4px; }
  aside.side > h1, aside.side > .price.big { display: none; }
}
@media (max-width: 760px) {
  .top-in { gap: 8px 10px; min-height: 0; padding-top: 8px; }
  .logo { font-size: 20px; }
  .nav { gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .nav::-webkit-scrollbar { display: none; }
  .nav > * { flex: none; }
  .nav .icon-btn, .nav .gear { width: 34px; height: 34px; font-size: 16px; }
  .nav .btn-primary { padding: 8px 12px; font-size: 14px; }
  .biz-link { padding: 6px 9px; } .biz-link .lbl { display: none; }
  .nav .me .avatar { width: 30px; height: 30px; font-size: 14px; }
  .nav form .link { font-size: 14px; }
  .search { margin-bottom: 8px; }
  .search input { padding-top: 9px; padding-bottom: 9px; }
  .callbar a { white-space: nowrap; font-size: 14px !important; gap: 4px; }
  .cb-call { font-size: 15px !important; }
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .feat-opt { font-size: 13px; }
}
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
  .nav form .link { font-size: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-grid; place-items: center; }
  .nav form .link::before { content: "🚪"; font-size: 16px; }
  .nav .btn-primary { order: -1; }                  /* „+ Objavi oglas“ uvijek prvo i vidljivo */
}
@media (max-width: 760px) { .nav form.inline { order: 20; } .nav .gear { order: 19; } }

/* ☰ meni na telefonu (na računaru se ne vidi) */
.m-bar, .m-only { display: none; }
@media (max-width: 760px) {
  .top { position: relative; }
  .top-in { flex-wrap: wrap; }
  .m-bar { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .m-post { padding: 8px 14px !important; font-size: 14px !important; }
  .m-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 18px; text-decoration: none; }
  .m-icon .dot { position: absolute; top: -4px; right: -4px; }
  .m-burger { width: 42px; height: 38px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0; }
  .m-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .m-burger.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .m-burger.on span:nth-child(2) { opacity: 0; }
  .m-burger.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .search { order: 5; flex-basis: 100%; }

  /* meni: zatvoren se ne vidi, otvoren je lista ispod zaglavlja */
  .nav { display: none !important; }
  .nav.open { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; z-index: 40; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 6px 12px 12px; background: var(--ink); box-shadow: 0 18px 30px rgba(0,0,0,.35); border-top: 1px solid rgba(255,255,255,.08); }
  .nav.open > * { order: 0 !important; }
  .nav.open > a, .nav.open > form, .nav.open > .theme-wrap > .icon-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 6px; border-radius: 10px; border-bottom: 1px solid rgba(255,255,255,.06); background: none; height: auto; font-size: 16px; color: rgba(255,255,255,.9); text-align: left; }
  .nav.open > a:active, .nav.open > .theme-wrap > .icon-btn:active { background: rgba(255,255,255,.08); }
  .nav.open .lbl, .nav.open .m-only { display: inline !important; font-size: 16px; font-weight: 600; }
  .nav.open .icon-link .dot { position: static; margin-left: auto; order: 2; }
  .nav.open .me .avatar { width: 28px; height: 28px; font-size: 14px; }
  .nav.open > .btn-primary, .nav.open > a[href="/poruke"] { display: none; }   /* već su gore u traci */
  .nav.open .biz-link { border: 0; color: #f0c94a !important; }
  .nav.open form { margin: 0; border-bottom: 0; }
  .nav.open form .link { font-size: 16px !important; width: auto; height: auto; background: none; display: inline; font-weight: 600; color: #fca5a5; }
  .nav.open form .link::before { content: "🚪 "; font-size: 16px; }
  .nav.open .theme-wrap { width: 100%; }
}
@media (max-width: 760px) { .nav.open > form { order: 30 !important; border-top: 1px solid rgba(255,255,255,.1); margin-top: 4px; padding-top: 6px; } }

/* 👤 slika profila · 🖼 naslovna fotografija (partneri) */
.avatar.has-img { padding: 0; overflow: hidden; background: var(--line); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl.has-img { box-shadow: 0 0 0 4px var(--bg); }
.p-cover { position: relative; margin: 10px 0 0; border-radius: 24px; overflow: hidden; aspect-ratio: 10 / 3; background: var(--brand-soft); }
.p-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.35)); pointer-events: none; }
.profile-head.on-cover { margin-top: -54px; padding-left: 24px; position: relative; z-index: 1; align-items: flex-end; }
.profile-head.on-cover .avatar.xl { width: 112px; height: 112px; font-size: 44px; box-shadow: 0 0 0 5px var(--bg); }
.profile-head.on-cover h1 { margin-top: 58px; }
.p-cover.small { aspect-ratio: 10 / 3; max-width: 520px; border-radius: 16px; margin: 0 0 8px; }
.p-cover.small::after { display: none; }
.p-cover.small.empty { display: grid; place-items: center; text-align: center; padding: 14px; color: var(--muted); font-size: 14px; border: 2px dashed var(--line); background: var(--card); }
.photo-set { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.photo-row { display: flex; align-items: center; gap: 16px; }
.photo-f { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.photo-f .btn { cursor: pointer; }
.thread-with { display: inline-flex; align-items: center; gap: 8px; }
.thread-with .avatar { width: 28px; height: 28px; font-size: 13px; }
.rev-who { display: inline-flex; align-items: center; gap: 6px; }
.rev-who .avatar { width: 24px; height: 24px; font-size: 12px; }
@media (max-width: 640px) {
  .p-cover { border-radius: 16px; aspect-ratio: 16 / 7; }
  .profile-head.on-cover { margin-top: -40px; padding-left: 12px; }
  .profile-head.on-cover .avatar.xl { width: 84px; height: 84px; font-size: 34px; }
  .profile-head.on-cover h1 { margin-top: 44px; font-size: 22px; }
}
.photo-f input[type="file"] { display: none !important; }
.photo-f .btn { display: inline-flex; align-items: center; gap: 6px; }

/* 📈 Admin → Posjete */
.vchart { position: relative; padding: 18px 0 0; }
.vchart-max { position: absolute; top: 0; left: 0; font-size: 12px; color: var(--muted); }
.vchart-bars { display: flex; align-items: flex-end; gap: 2px; height: 180px; border-bottom: 1px solid var(--line); }
.vbar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; outline: none; }
.vbar i { display: block; width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; }
.vbar:hover i, .vbar:focus i { filter: brightness(1.15); }
.vbar:hover::after, .vbar:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--text); color: var(--bg); font-size: 12px; padding: 5px 8px; border-radius: 8px; z-index: 5; pointer-events: none; }
.vbar:nth-child(-n+5):hover::after, .vbar:nth-child(-n+5):focus::after { left: 0; transform: none; }
.vbar:nth-last-child(-n+5):hover::after, .vbar:nth-last-child(-n+5):focus::after { left: auto; right: 0; transform: none; }
.vchart-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.vdetails { margin-top: 12px; } .vdetails summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.vt td.num, .vt th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vt td { word-break: break-word; }
.vsplit { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 8px 0 4px; } .vsplit i { display: block; height: 100%; background: var(--brand); }
.admin-t.vt { display: table; margin-bottom: 4px; table-layout: fixed; } .vt td.num, .vt th.num { width: 90px; }
