/* aukcijelive.rs — boje i stil po dizajnu (tamna tema, narandžasti akcenat) */
:root {
  --bg: #0E1116;
  --bg-deep: #0B0D11;
  --card: #161A21;
  --card-2: #1A1F27;
  --card-3: #1F252E;
  --line: #262C36;
  --line-2: #39404C;
  --text: #F3F4F6;
  --text-2: #C9CED6;
  --muted: #B4BAC4;
  --faint: #8A919C;
  --accent: #FF6A2B;
  --accent-soft: #2A1A14;
  --accent-text: #FFB08F;
  --link: #FF7A45;
  --ok: #3FB984;
  --live: #D7261E;
  --danger: #F2A39C;
  --danger-line: #6B2A26;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: #FFA07A; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.display { font-family: var(--display); font-weight: 700; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.ok { color: var(--ok); }
.accent-text { color: var(--accent-text); }
.eyebrow { font-size: 13px; color: var(--accent-text); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wide { max-width: 1440px; margin: 0 auto; padding: 24px 28px; }
@media (max-width: 640px) { .wrap { padding-left: 16px; padding-right: 16px; } .wide { padding: 16px; } }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 20px; }
.logo:hover { color: var(--text); }
.logo em { font-style: normal; color: var(--accent); }
.logo .mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.logo.sm { font-size: 18px; }

/* dugmad */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; min-height: 44px; transition: filter .15s, background .15s; }
.btn-primary { background: var(--accent); color: var(--bg); font-weight: 700; }
.btn-primary:hover { color: var(--bg); filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { color: var(--text); background: var(--card-2); }
.btn-soft { background: #2A313C; color: var(--text); border: 0; }
.btn-danger { background: transparent; border-color: var(--danger-line); color: var(--danger); }
.btn-ok { background: var(--ok); color: var(--bg-deep); font-weight: 700; border: 0; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 8px; min-height: 36px; }
.btn-md { padding: 12px 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { background: var(--line-2); color: var(--muted); border-color: var(--line-2); filter: none; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 14px; min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }

.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; background: var(--live); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-badge::before { animation: none; } }

.card { padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card h2 { font-size: 16px; font-weight: 600; }

/* forme */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 15px; min-height: 44px; }
.input::placeholder { color: #6B7280; }
textarea.input { min-height: 80px; resize: vertical; }
.form-error { padding: 10px 14px; border-radius: 10px; background: #2A1514; border: 1px solid var(--danger-line); color: var(--danger); font-size: 14px; }
.form-ok { padding: 10px 14px; border-radius: 10px; background: #12261D; border: 1px solid #1E5A40; color: var(--ok); font-size: 14px; }

/* gornja traka */
.site-header { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 15px; }
.site-nav a { color: var(--text-2); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-actions { display: flex; gap: 10px; align-items: center; }
.site-actions .btn { padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.menu-btn { display: none; }
@media (min-width: 761px) {
  .site-header { flex-wrap: nowrap; }
  .site-nav { margin-left: auto; margin-right: 8px; }
}
/* telefon: linkovi idu u meni sa tri crtice, ostaje samo prijava */
@media (max-width: 760px) {
  .site-header { position: relative; padding-top: 14px; padding-bottom: 14px; flex-wrap: nowrap; }
  .site-actions .btn { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--text); padding: 8px 16px; }
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
  .menu-btn .m-close, .menu-open .menu-btn .m-open { display: none; }
  .menu-open .menu-btn .m-close { display: inline; }
  .site-nav { display: none; position: absolute; z-index: 30; top: 100%; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 0; padding: 6px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card-2); box-shadow: 0 14px 40px #0008; }
  .menu-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 14px; font-size: 17px; color: var(--text); border-radius: 10px; }
  .site-nav a + a { border-top: 1px solid var(--line); }
  .site-nav a:active { background: var(--accent-soft); }
}
.bar { padding: 14px 28px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.bar-group { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
@media (max-width: 640px) { .bar { padding: 12px 16px; } }

/* početna */
.hero { padding-top: 48px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero > * { flex: 1 1 440px; min-width: 0; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 64px); line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; }
.hero .lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 540px; }
.next-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.next-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-media { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #6B7280; }
.hero-media .live-badge { position: absolute; top: 16px; left: 16px; }
.hero-bid { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 16px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.hero-bid .price { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--text); }
.hero-bid .fake-btn { padding: 12px 18px; border-radius: 10px; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 15px; }
.section { padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.section h2 { font-family: var(--display); font-size: 36px; font-weight: 700; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.a-card { display: flex; flex-direction: column; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .15s; }
.a-card:hover { color: var(--text); border-color: var(--line-2); }
.a-card .img { aspect-ratio: 16 / 10; background: var(--card-3); display: flex; align-items: center; justify-content: center; color: #6B7280; font-size: 14px; position: relative; }
.a-card .img .live-badge { position: absolute; top: 12px; left: 12px; }
.a-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.a-card .when { font-size: 13px; color: var(--accent-text); font-weight: 600; }
.a-card .title { font-family: var(--display); font-size: 21px; font-weight: 600; }
.empty { padding: 32px; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--faint); text-align: center; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--accent); }
.step .t { font-size: 18px; font-weight: 600; }
.step .d { font-size: 15px; line-height: 1.55; color: var(--muted); }
.sell { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.sell > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sell p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--faint); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--faint); }

/* prijava / registracija */
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px 64px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { font-family: var(--display); font-size: 30px; }
@media (max-width: 480px) { .auth-card { padding: 22px; } }

/* aukcija uživo */
.live-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.live-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.live-side { flex: 1 1 340px; max-width: 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* Na telefonu i uskom ekranu: video, pa odmah dugme za licitiranje, pa ostalo. */
@media (max-width: 999px) {
  .live-layout { flex-direction: column; align-items: stretch; gap: 16px; }
  .live-main, .live-side { display: contents; }
  .live-layout .video { order: 1; }
  .live-layout .bid-box { order: 2; }
  .live-layout .lot-info { order: 3; }
  .live-layout #result { order: 3; }
  .live-layout .card { order: 4; }
  .live-layout #upcoming-box { order: 5; }
  .lot-info h1 { font-size: 26px; }
  .big-price { font-size: 40px; }
}
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #6B7280; font-size: 15px; text-align: center; padding: 16px; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video .sound-btn { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 10px 14px; border-radius: 10px; border: 0; background: var(--accent); color: var(--bg-deep); font-weight: 700; font-size: 14px; }
.video .live-badge, .video .latency { z-index: 1; }
.video .live-badge { position: absolute; top: 16px; left: 16px; }
.video .latency { position: absolute; top: 16px; right: 16px; padding: 6px 10px; border-radius: 6px; background: var(--bg); color: var(--muted); font-size: 12px; }
.lot-info { display: flex; flex-direction: column; gap: 6px; }
.lot-info h1 { font-family: var(--display); font-size: 32px; font-weight: 700; }
.lot-info p { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 760px; white-space: pre-line; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.next-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.next-item .thumb { width: 52px; height: 52px; border-radius: 8px; background: var(--card-3); flex-shrink: 0; }
.next-item .t { font-size: 14px; font-weight: 600; }

.bid-box { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.bid-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.timer { padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer.hot { color: var(--accent); }
.big-price { font-family: var(--display); font-size: 48px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.big-price small { font-size: 20px; color: var(--faint); }
.bid-btn { padding: 18px; border-radius: 12px; border: 0; background: var(--accent); color: var(--bg); font-size: 18px; font-weight: 700; min-height: 60px; transition: transform .08s, filter .15s; }
.bid-btn:hover:not(:disabled) { filter: brightness(1.08); }
.bid-btn:active:not(:disabled) { transform: scale(.985); }
.bid-btn:disabled { background: var(--line-2); color: var(--muted); }
.bid-btn.leading:disabled { background: #12261D; color: var(--ok); }
.flash { animation: flash .6s; }
@keyframes flash { from { color: var(--accent); } }
.list-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid #222832; }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; }
.chat-msg { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.chat-msg .who { font-size: 12px; color: var(--faint); }
.chat-msg.host .who { color: var(--accent-text); }
.chat-msg.mine .who { color: var(--ok); }
.chat-msg .text { line-height: 1.45; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 8px; }
.chat-form .input { flex: 1; min-width: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 50; }
.toast.err { border-color: var(--danger-line); color: var(--danger); }
.result { padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.result.sold { background: #12261D; color: var(--ok); }
.result.unsold { background: #2A1514; color: var(--danger); }
.conn { font-size: 13px; color: var(--danger); }

/* panel aukcionara */
.panel-body { background: var(--bg-deep); }
.panel-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.lots-nav { flex: 1 1 260px; max-width: 320px; min-width: 0; padding: 16px; border-radius: 16px; background: #14181E; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.panel-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panel-side { flex: 1 1 280px; max-width: 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1000px) { .lots-nav, .panel-side { max-width: none; } }
.lot-row { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; border: 1px solid transparent; width: 100%; background: transparent; text-align: left; }
.lot-row.live { background: var(--accent-soft); border-color: #5A3322; }
.lot-row .n { width: 26px; font-size: 13px; color: var(--faint); }
.lot-row .t { font-size: 14px; font-weight: 600; }
.lot-row .s { font-size: 12px; color: var(--faint); }
.lot-row .s.sold { color: var(--ok); }
.lot-row .s.unsold, .lot-row .s.cancelled { color: var(--danger); }
.lot-row .s.live { color: var(--accent-text); }
.p-card { padding: 24px; border-radius: 16px; background: #14181E; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.p-sub { padding: 20px 24px; border-radius: 16px; background: #14181E; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.p-sub h2 { font-size: 16px; font-weight: 600; }
.timer-box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 12px; background: var(--card-2); }
.timer-big { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.req { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--card-2); }
.toggle { display: flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: transparent; color: var(--text); font-size: 14px; }
.toggle .track { width: 40px; height: 22px; border-radius: 999px; background: var(--line-2); display: flex; align-items: center; padding: 2px; transition: background .15s; }
.toggle .knob { width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle[aria-pressed="true"] .track { background: var(--ok); }
.toggle[aria-pressed="true"] .knob { transform: translateX(18px); }

/* administracija */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-weight: 500; background: var(--card); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
code.code { font-family: ui-monospace, Menlo, monospace; font-size: 15px; padding: 2px 6px; border-radius: 6px; background: var(--card-2); }

/* slike predmeta u administraciji */
.lot-main-row td { border-bottom: 0 !important; }
.lot-img-row td { padding-top: 0 !important; }
.img-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.img-tile { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--card-3); }
.img-tile.main { border-color: var(--accent); }
.img-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-badge { position: absolute; left: 4px; top: 4px; padding: 2px 6px; border-radius: 4px; background: var(--accent); color: var(--bg-deep); font-size: 10px; font-weight: 700; }
.img-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: 2px; padding: 3px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.img-actions button { width: 26px; height: 26px; border: 0; border-radius: 6px; background: rgba(14,17,22,.85); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.img-actions button.del { color: #FF8A80; }
.img-add { width: 84px; height: 84px; border-radius: 10px; border: 1px dashed var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); cursor: pointer; }
.img-add:hover { border-color: var(--accent); color: var(--text); }

/* galerija na strani aukcije */
.gallery { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.gallery-main { position: relative; border-radius: 14px; overflow: hidden; background: var(--card-2); border: 1px solid var(--line); aspect-ratio: 4 / 3; max-height: 240px; cursor: zoom-in; padding: 0; width: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-main .zoom-hint { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 6px; background: rgba(14,17,22,.8); color: #fff; font-size: 12px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.gallery-thumbs button { flex: 0 0 52px; height: 52px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--card-3); cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.next-item .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.a-card .img img, .hero-media img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* uvećana slika preko cele strane */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,7,10,.94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; touch-action: pan-y pinch-zoom; }
.lightbox button { position: absolute; border: 0; border-radius: 999px; width: 48px; height: 48px; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }
button.next-item { color: inherit; font: inherit; text-align: left; width: 100%; cursor: zoom-in; }
button.next-item:hover { border-color: var(--line-2); }

/* meni aukcionara */
.admin-nav { border-bottom: 1px solid var(--line); background: var(--bg-deep); position: sticky; top: 0; z-index: 20; }
.admin-nav-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 28px 6px; flex-wrap: wrap; }
.admin-nav-links { display: flex; gap: 4px; padding: 4px 22px 0; overflow-x: auto; scrollbar-width: none; }
.admin-nav-links a { padding: 10px 12px 12px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.admin-nav-links a:hover { color: var(--text); }
.admin-nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.live-link { background: var(--live); color: #fff; border: 0; font-weight: 700; }
.live-link:hover { color: #fff; filter: brightness(1.1); }
@media (max-width: 640px) { .admin-nav-top { padding: 10px 16px 4px; } .admin-nav-links { padding: 2px 10px 0; } }

/* kontrolna tabla */
.dash { display: flex; flex-direction: column; gap: 20px; }
.dash-hello { font-family: var(--display); font-size: 28px; font-weight: 700; }
.dash-next { padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.dash-next.is-live { border-color: var(--live); }
.dash-next h2 { font-family: var(--display); font-size: 26px; font-weight: 700; }
.dash-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.dash-actions .btn { justify-content: center; text-align: center; }
.checklist { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.checklist .ok-i { color: var(--ok); font-weight: 700; }
.checklist .no-i { color: var(--faint); font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; min-height: 112px; }
.tile:hover { color: var(--text); border-color: var(--accent); }
.tile .ti { font-size: 26px; line-height: 1; }
.tile .tt { font-size: 17px; font-weight: 600; }
.tile .td { font-size: 13px; color: var(--muted); line-height: 1.45; }
.edit-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--accent); }
.flash-target { animation: flashT 1.6s ease-out; }
@keyframes flashT { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.p-sub, .add-lot, .edit-box, .dash-next { scroll-margin-top: 130px; }

/* završni ekran aukcije */
.end-card { border-color: var(--accent); gap: 16px; }
.end-wins { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--card-2); }
.end-next { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--accent); background: var(--accent-soft); }
.end-next .btn { align-self: flex-start; }
.end-home { border: 2px solid var(--accent); background: var(--accent-soft); }
.live-layout #end { order: 2; }
