:root {
  --bg: #0b0c10;
  --bg2: #121319;
  --panel: #171920;
  --line: #262833;
  --text: #ecedf2;
  --muted: #8b8e9c;
  --red: #e30613;
  --red-soft: rgba(227, 6, 19, .14);
  --bih: #ff3b47;
  --reg: #ffb020;
  --sv: #2fc6ff;
  --ok: #26d07c;
  --radius: 10px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --cond: 'Barlow Condensed', 'Inter', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- buttons / inputs ---------- */
.btn { border: 1px solid var(--line); background: var(--panel); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: #3a3d4b; background: #1d2029; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.ok { border-color: var(--ok); color: var(--ok); }
input:not([type=checkbox]), select, textarea { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--red); }
.chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); user-select: none; }
.chk input { accent-color: var(--red); }
.hint { color: var(--muted); margin: 0; }

/* ---------- brand ---------- */
.brand-title { font: 800 30px/1 var(--cond); letter-spacing: .04em; }
.brand-title span { color: var(--red); }
.brand-title.sm { font-size: 24px; }
.brand-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- login ---------- */
.login-body { display: grid; place-items: center; min-height: 100vh; overflow: hidden; padding: 16px;
  background: radial-gradient(ellipse at 50% 40%, #1a0b0e 0%, var(--bg) 60%); }
.login-card { position: relative; z-index: 2; width: 100%; max-width: 400px; background: rgba(23, 25, 32, .88); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.brand-lg { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-card form { display: grid; gap: 16px; }
.login-card label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.login-card input { padding: 12px 14px; font-size: 15px; }
.login-card .btn { padding: 12px; font-size: 15px; margin-top: 4px; }
.err { color: #ff6b74; min-height: 18px; font-size: 13px; }
.login-foot { margin-top: 22px; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.login-radar { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: .55; }
.login-radar .ring { position: absolute; border: 1px solid rgba(227, 6, 19, .25); border-radius: 50%; }
.r1 { width: 300px; height: 300px; } .r2 { width: 600px; height: 600px; } .r3 { width: 900px; height: 900px; } .r4 { width: 1200px; height: 1200px; }
.login-radar .sweep { position: absolute; width: 1200px; height: 1200px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(227,6,19,.35), rgba(227,6,19,0) 60deg, transparent 360deg); animation: spin 6s linear infinite; }
.login-radar .blip { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: blip 6s infinite; }
.b1 { transform: translate(180px, -120px); } .b2 { transform: translate(-260px, 90px); animation-delay: 2s !important; } .b3 { transform: translate(60px, 300px); animation-delay: 4s !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blip { 0%, 100% { opacity: 0; } 5% { opacity: 1; } 40% { opacity: 0; } }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(38,208,124,.6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(38,208,124,.6); } 70% { box-shadow: 0 0 0 8px rgba(38,208,124,0); } 100% { box-shadow: 0 0 0 0 rgba(38,208,124,0); } }
.live.off .live-dot { background: var(--reg); animation: none; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; height: 100vh; }
.side { background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.side nav { flex: 1; overflow-y: auto; padding: 4px 10px; }
.nav-h { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; padding: 16px 10px 6px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: #c9cbd4; font-weight: 500; }
.side nav a:hover { background: #1a1c24; color: #fff; }
.side nav a.on { background: var(--red-soft); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.ic { font-style: normal; width: 16px; text-align: center; color: var(--muted); }
.ic.red { color: var(--red); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.soc { background: #c084fc; }
.dot.bih { background: var(--bih); } .dot.reg { background: var(--reg); } .dot.sv { background: var(--sv); }
.badge { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; min-width: 20px; text-align: center; }
.badge:empty { display: none; }
.side-foot { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.foot-btns { display: flex; gap: 4px; flex: none; }
.who { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.top h1 { margin: 0; font: 700 24px/1 var(--cond); letter-spacing: .02em; text-transform: uppercase; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--ok); }
.live.off { color: var(--reg); }
.clock { font: 600 18px var(--cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.menu { display: none; }

.ticker { display: flex; align-items: center; border-bottom: 1px solid var(--line); background: #0f1015; height: 36px; overflow: hidden; }
.tk-label { flex: none; background: var(--red); color: #fff; font: 700 14px var(--cond); letter-spacing: .08em; height: 100%; display: flex; align-items: center; padding: 0 14px; }
.tk-track { flex: 1; overflow: hidden; white-space: nowrap; position: relative; height: 100%; display: flex; align-items: center; }
.tk-run { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.tk-run a { text-decoration: none; margin-right: 46px; color: #d4d6de; flex: none; }
.tk-run a:hover { color: #fff; }
.tk-run a b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.tk-run a b.imp { color: var(--red); }
@keyframes tick { to { transform: translateX(-100%); } }
.unlock { background: #2a1f08; color: var(--reg); text-align: center; padding: 8px; font-weight: 600; cursor: pointer; border-bottom: 1px solid #4a370e; }

.view { flex: 1; overflow-y: auto; padding: 20px 22px 40px; min-height: 0; }
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; max-width: 420px; }
.count { color: var(--muted); margin-left: auto; font-size: 13px; }
.more { text-align: center; margin-top: 20px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-left: auto; }
.seg button { background: transparent; border: 0; padding: 7px 14px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--red); color: #fff; }

/* ---------- news list ---------- */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.n { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: start; padding: 12px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); border-left: 3px solid var(--line); }
.n.bih { border-left-color: var(--bih); } .n.reg { border-left-color: var(--reg); } .n.sv { border-left-color: var(--sv); }
.n.imp { background: linear-gradient(90deg, rgba(227,6,19,.12), var(--panel) 40%); }
.n.fresh { animation: fresh 3s ease-out; }
@keyframes fresh { 0% { background: rgba(227,6,19,.45); transform: translateX(-6px); } 100% { } }
.n-time { font: 700 20px/1 var(--cond); font-variant-numeric: tabular-nums; }
.n-ago { color: var(--muted); font-size: 11px; margin-top: 4px; }
.n-title { font-weight: 600; font-size: 15px; text-decoration: none; display: block; }
.n-title:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.n-sum { color: var(--muted); font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: #22252f; color: #c9cbd4; }
.chip.from { background: transparent; border: 1px solid var(--line); }
.chip.place { color: #fff; cursor: pointer; }
.chip.hot { background: var(--red); color: #fff; letter-spacing: .05em; }
.n-img { width: 112px; height: 72px; object-fit: cover; border-radius: 6px; background: #22252f; }
.news.compact .n { grid-template-columns: 46px 1fr; padding: 9px 10px; gap: 10px; cursor: pointer; }
.news.compact .n-time { font-size: 16px; }
.news.compact .n-title { font-size: 13px; }
.news.compact .n-img, .news.compact .n-sum { display: none; }
.empty { color: var(--muted); text-align: center; padding: 50px 0; }

/* ---------- marketing ---------- */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.mk { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.mk.fresh { animation: freshCard 4s ease-out; }
@keyframes freshCard { 0% { box-shadow: 0 0 0 3px var(--red); } 100% { box-shadow: 0 0 0 0 transparent; } }
.mk-img { position: relative; background: #0e0e11; aspect-ratio: 1; display: grid; place-items: center; }
.mk-img.story { aspect-ratio: 9/16; max-height: 560px; }
.mk-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mk-img .spin { position: absolute; color: var(--muted); font-size: 13px; }
.mk-new { position: absolute; top: 40px; right: 10px; background: var(--red); color: #fff; font: 700 13px var(--cond); padding: 3px 9px; border-radius: 4px; letter-spacing: .08em; }
.mk-body { padding: 14px; display: grid; gap: 10px; }
.mk-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.mk-meta .kick { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mk-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.mk textarea { width: 100%; min-height: 120px; resize: vertical; font-size: 13px; line-height: 1.45; }
.mk-link { display: flex; gap: 6px; }
.mk-link input { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.mk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- map ---------- */
.map-view { display: grid; grid-template-columns: 1fr 340px; padding: 0; overflow: hidden; }
.map-wrap { position: relative; min-height: 0; }
#bmap { position: absolute; inset: 0; background: #16181d; }
/* dok se sličica ne učita: srednja siva između kopna i mora, da se kockice ne vide */
#map { position: absolute; inset: 0; background: #17191e; }
#map .leaflet-tile-container img, #map .leaflet-tile { background: transparent; }
#map .leaflet-tile { transition: none; }
.map-feed { border-left: 1px solid var(--line); overflow-y: auto; background: var(--bg2); padding: 0 10px 20px; }
.map-feed-h { position: sticky; top: 0; background: var(--bg2); padding: 14px 4px 10px; font: 700 16px var(--cond); text-transform: uppercase; letter-spacing: .06em; z-index: 1; }
.map-ctl { position: absolute; top: 12px; left: 56px; z-index: 500; display: flex; gap: 14px; align-items: center; background: rgba(18,19,25,.92);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; flex-wrap: wrap; }
.map-ctl .chk { color: #ddd; }
.map-ctl select { padding: 4px 8px; }
.map-flash { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 600; max-width: min(640px, 90%); background: rgba(18,19,25,.96);
  border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 12px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: up .35s ease-out; }
.map-flash b { display: block; font-size: 15px; margin-top: 4px; }
.map-flash small { color: var(--muted); }
@keyframes up { from { transform: translate(-50%, 20px); opacity: 0; } }
.ping { position: relative; }
.ping i { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.ping.new i::before, .ping.new i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; animation: ring 1.6s ease-out infinite; }
.ping.new i::after { animation-delay: .8s; }
.ping.imp i { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(6); opacity: 0; } }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #171920; color: var(--text); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 12px 14px; font: 13px/1.4 var(--font); }
.leaflet-popup-content a.t { font-weight: 700; font-size: 14px; text-decoration: none; display: block; margin: 4px 0; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-control-attribution { background: rgba(0,0,0,.5) !important; color: #777 !important; }
.leaflet-control-attribution a { color: #999 !important; }

/* ---------- tables / cards ---------- */
.src-wrap { overflow-x: auto; }
.src { width: 100%; border-collapse: collapse; font-size: 13px; }
.src th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.src td { padding: 8px 10px; border-bottom: 1px solid #1d1f27; white-space: nowrap; }
.st-ok { color: var(--ok); font-weight: 600; } .st-err { color: #ff6b74; font-weight: 600; } .st-wait { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.card h3 { margin: 0; font: 700 20px var(--cond); text-transform: uppercase; letter-spacing: .03em; }
.form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form input { flex: 1; min-width: 140px; }
.form input[type=checkbox], .form input[type=number] { flex: none; min-width: 0; }
.form.tg input:not([type=checkbox]):not([type=number]) { width: 100%; min-width: 0; }
.msg { font-size: 13px; color: var(--muted); }
.snd-rows { display: grid; gap: 8px; }
.snd-row { display: flex; align-items: center; gap: 10px; }
.snd-row .chk { flex: 1; color: var(--text); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 80px); background: #fff; color: #111; padding: 10px 18px; border-radius: 8px;
  font-weight: 600; opacity: 0; transition: .25s; z-index: 2000; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }


/* ---------- prevod / praćenje / trend u listi ---------- */
.n-orig { color: var(--muted); font-size: 12px; margin-top: 3px; font-style: italic; }
.chip.fix { border: 0; cursor: pointer; background: #22252f; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; }
.chip.fix:hover { color: #fff; }
.chip.xl8 { background: #1c2a3a; color: #8fc9ff; }
.chip.avaz { background: #16a34a; color: #fff; font-weight: 700; padding: 3px 10px; box-shadow: 0 0 0 1px #22c55e, 0 0 12px rgba(34,197,94,.35); }
.chip.noavaz { background: #2a2c36; color: var(--muted); }
.n.avazhas { background: linear-gradient(90deg, rgba(34,197,94,.16), var(--panel) 45%); border-color: rgba(34,197,94,.45); box-shadow: inset 4px 0 0 #22c55e; }
.tr.avazhas { background: linear-gradient(90deg, rgba(34,197,94,.14), var(--panel) 45%); border-color: rgba(34,197,94,.45); }
.chip.watch { background: #3b2a00; color: #ffcf5c; }
.chip.trend { background: #3a1416; color: #ff8a90; }
.n.watch { box-shadow: inset 0 0 0 1px rgba(255, 207, 92, .55); }

/* ---------- pregled ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; display: block; }
.tile:hover { border-color: #3a3d4b; }
.tile .k { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tile .v { font: 700 34px/1.1 var(--cond); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .s { color: var(--muted); font-size: 12px; }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.span2 { grid-column: span 2; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.more-l { color: var(--muted); font-size: 13px; text-decoration: none; }
.more-l:hover { color: #fff; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { position: relative; height: 220px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid { stroke: #24262f; stroke-width: 1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:hover { fill: rgba(255,255,255,.04); }
.tip { position: absolute; pointer-events: none; background: #0f1015; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); white-space: nowrap; z-index: 5; }
.tip b { display: block; margin-bottom: 4px; }
.tip span { display: flex; align-items: center; gap: 6px; color: #c9cbd4; }
.tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.tbl summary { color: var(--muted); cursor: pointer; font-size: 12px; }
.tbl table { margin-top: 8px; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mini li { display: flex; gap: 10px; align-items: baseline; padding: 7px 4px; border-bottom: 1px solid #1d1f27; min-width: 0; }
.mini li:last-child { border-bottom: 0; }
.mini .t { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; flex: none; width: 38px; }
.mini a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.mini a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.mini .n2 { flex: none; font: 700 15px var(--cond); color: #ff8a90; }
.mini .bar { flex: none; height: 6px; border-radius: 3px; background: var(--red); opacity: .7; }
.mini .place-row { cursor: pointer; }
.mini .empty { color: var(--muted); font-size: 13px; padding: 14px 0; border: 0; }

/* ---------- trending ---------- */
.tr-list { display: grid; gap: 12px; }
.tr { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 70px 1fr 120px; gap: 16px; align-items: start; }
.tr.fresh { animation: freshCard 4s ease-out; }
.tr-n { text-align: center; background: var(--red-soft); border-radius: 10px; padding: 8px 0; }
.tr-n b { display: block; font: 800 32px/1 var(--cond); color: #ff6b74; }
.tr-n small { color: var(--muted); font-size: 11px; }
.tr-t { font-weight: 700; font-size: 16px; }
.tr-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tr img { width: 120px; height: 76px; object-fit: cover; border-radius: 8px; }
.tr details { margin-top: 8px; }
.tr summary { color: var(--muted); font-size: 12px; cursor: pointer; }
.tr details ol { margin: 8px 0 0; padding-left: 18px; color: #c9cbd4; font-size: 13px; display: grid; gap: 4px; }
.tr details a { text-decoration: none; }
.tr details a:hover { text-decoration: underline; }

/* ---------- praćenje ---------- */
.watch-card { margin-bottom: 20px; }
.terms { display: flex; flex-wrap: wrap; gap: 8px; }
.term { display: inline-flex; align-items: center; gap: 8px; background: #3b2a00; color: #ffcf5c; border-radius: 20px; padding: 5px 6px 5px 12px; font-weight: 600; }
.term button { border: 0; background: rgba(0,0,0,.3); color: inherit; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
.sec-h { font: 700 18px var(--cond); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }

/* ---------- marketing: uređivanje + AI ---------- */
.mk-img.fb, .mk-img.tv { aspect-ratio: 16/9; }
.mk-img.ig { aspect-ratio: 4/5; }
.mk-actions.four { grid-template-columns: 1fr 1fr; }
.mk-linkform { display: flex; gap: 8px; flex: 1; min-width: 280px; }
.mk-linkform input { flex: 1; min-width: 0; }
.mk-actions.three { grid-template-columns: 1fr 1fr 1fr; }
.mk-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-edit, .mk-ai { display: grid; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mk-edit textarea { min-height: 70px; font-weight: 600; }
.mk-edit .row, .mk-ai .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mk-ai .tabs { display: flex; gap: 4px; }
.mk-ai .tabs button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-weight: 600; font-size: 12px; }
.mk-ai .tabs button.on { background: var(--red); border-color: var(--red); color: #fff; }
.mk-ai textarea { min-height: 110px; }
.sugg { display: grid; gap: 6px; }
.sugg button { text-align: left; background: #1d2029; border: 1px dashed #3a3d4b; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.sugg button:hover { border-color: var(--red); }
.loading { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.loading::before { content: ''; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
.trend-flash { position: fixed; top: 70px; right: 22px; z-index: 1500; max-width: 380px; background: #1a0d0f; border: 1px solid #5a1a1f; border-left: 4px solid var(--red);
  border-radius: 10px; padding: 12px 14px; box-shadow: 0 20px 50px rgba(0,0,0,.6); cursor: pointer; animation: slidein .3s ease-out; }
.trend-flash small { color: #ff8a90; font-weight: 700; letter-spacing: .04em; }
.trend-flash b { display: block; margin-top: 4px; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.form.tg { display: grid; gap: 10px; }
.tg-opts { display: flex; flex-wrap: wrap; gap: 14px; }
.tg-opts .chk { color: var(--text); }
.ai-ready { position: absolute; top: 10px; right: 10px; background: rgba(14,14,17,.85); color: #c9b8ff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.sys-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #1d1f27; color: var(--text); }
.sys-row span:first-child { color: var(--muted); }

@media (max-width: 900px) {
  .ov-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .tr { grid-template-columns: 56px 1fr; }
  .tr img { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- društvene mreže ---------- */
.n.soc { border-left-color: #c084fc; }
.chip.plat { color: #fff; font-weight: 700; }
.plat-youtube { background: #e11d2b; } .plat-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.plat-facebook { background: #1877f2; } .plat-tiktok { background: #111; box-shadow: inset 0 0 0 1px #25f4ee; }
.plat-telegram { background: #229ed9; } .plat-x { background: #000; box-shadow: inset 0 0 0 1px #555; }
.soc-mgr { margin-bottom: 18px; }
#socGrp { flex-wrap: wrap; }
.soc-form { display: grid; grid-template-columns: 1fr 160px; gap: 8px; }
.soc-form textarea { grid-column: 1 / -1; min-height: 84px; font-size: 13px; }
.soc-form button { grid-column: 1 / -1; justify-self: start; }
.soc-persons { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.person { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.person-h { display: flex; align-items: center; gap: 8px; }
.person-h b { flex: 1; }
.acc { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.acc .h { flex: 1; color: #c9cbd4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc .st { font-size: 11px; }
.x-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.x-btn:hover { color: #ff6b74; }

/* ---------- imenik ---------- */
.dir-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12px; margin: -6px 0 14px; }
.dir-meta b { color: var(--text); }
.dir-import { margin-bottom: 14px; }
.dir-import summary { cursor: pointer; }
.dir-import-body { display: grid; gap: 10px; margin-top: 10px; }
.dir-import .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dir-toolbar select { max-width: 190px; }
.dir-table td { white-space: normal; vertical-align: top; }
.dir-table tr.click { cursor: pointer; }
.dir-table tr.click:hover td { background: #1b1d25; }
.pchip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 10px; margin: 1px 2px; background: #22252f; color: var(--muted); }
.pchip.potvrđen { background: #0f3a24; color: #4ee39a; }
.pchip.kandidat { background: #2a2c36; color: #c9cbd4; }
.pchip.odbačen, .pchip.neslužben { background: #3a1416; color: #ff8a90; text-decoration: line-through; }
.pchip.nedostupan { background: #3b2a00; color: #ffcf5c; }
.tbadge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 4px; background: #22252f; color: #c9cbd4; }
.tbadge.stranka { background: #1c2a3a; color: #8fc9ff; } .tbadge.grupa { background: #2a1c3a; color: #d6a8ff; } .tbadge.organizacija { background: #2a2a1c; color: #e3dc8f; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 3000; display: grid; place-items: center; padding: 16px; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: min(1000px, 100%); max-height: 92vh; overflow-y: auto; padding: 20px; display: grid; gap: 14px; }
.modal-h { display: flex; align-items: flex-start; gap: 12px; }
.modal-h h2 { margin: 0; font: 700 24px var(--cond); flex: 1; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.dir-grid label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.dir-grid input, .dir-grid select { width: 100%; }
.cats { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.prof-table td { white-space: normal; font-size: 12px; }
.prof-table select { padding: 3px 6px; font-size: 12px; }
.src-list { font-size: 12px; color: var(--muted); display: grid; gap: 4px; max-height: 220px; overflow-y: auto; }
.src-list a { color: #8fc9ff; }
.dup { background: #3a1416; border: 1px solid #5a1a1f; border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.prog-table td { padding: 4px 8px; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 1000; transform: translateX(-100%); transition: .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
  .menu { display: inline-block; }
  .top { padding: 10px 16px; }
  .top h1 { font-size: 20px; }
  .clock { display: none; }
  .view { padding: 16px 16px 40px; }
  .n { grid-template-columns: 50px 1fr; }
  .n-img { display: none; }
  .map-view { grid-template-columns: 1fr; grid-template-rows: 1fr 38%; }
  .map-feed { border-left: 0; border-top: 1px solid var(--line); }
  .map-ctl { left: 10px; right: 10px; top: 10px; }
  .mk-grid, .cards { grid-template-columns: 1fr; }
  .mk-linkform { flex-direction: column; }
  .soc-form { grid-template-columns: 1fr; }
  .dir-table th:nth-child(4), .dir-table td:nth-child(4), .dir-table th:nth-child(5), .dir-table td:nth-child(5) { display: none; }
}

/* vlastita mapa: natpisi gradova i država */
.mlab-w { background: none; border: 0; }
.mlab { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 11px/1 Inter, system-ui, sans-serif; color: #a9afbb; text-shadow: 0 0 3px #111, 0 0 2px #111; transform: translate(-4px, -50%); }
.mlab i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #8c93a1; margin-right: 4px; vertical-align: middle; }
.mlab.big { font-size: 12.5px; font-weight: 600; color: #d3d7df; }
.mlab-c { position: absolute; left: 0; top: 0; white-space: nowrap; font: 600 10.5px/1 Inter, system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #6c7280; transform: translate(-50%, -50%); }

/* Mapa BiH */
.mlab.sm { font-size: 10px; color: #8d93a0; }
.bm-ctl .bm-legend { display: flex; gap: 6px; font-size: 15px; }
.bm-ev { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #15171c; border: 2px solid var(--c); box-shadow: 0 0 10px var(--c); position: relative; }
.bm-ev span { font-size: 15px; line-height: 1; }
.bm-ev.imp { transform: scale(1.2); }
.bm-ev.new::before, .bm-ev.new::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--c); animation: ring 1.6s ease-out infinite; }
.bm-ev.new::after { animation-delay: .8s; }
.bm-li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.bm-li:hover { background: #1b1e26; }
.bm-li .tm { font: 700 13px var(--cond); color: var(--muted); }
.bm-li b { font-size: 13.5px; line-height: 1.35; display: block; }
.bm-li.fresh { background: #2a1416; }
.bm-src { display: inline-block; padding: 2px 6px; border-radius: 10px; background: rgba(20,22,28,.9); border: 1px solid #3b82f6; color: #cfe0ff; font: 700 11px/1.2 Inter, system-ui, sans-serif; white-space: nowrap; box-shadow: 0 0 6px rgba(59,130,246,.5); }
.bm-src.warn { border-color: #f59e0b; }
.bm-src-row { padding: 5px 0; border-top: 1px solid #2a2d36; font-size: 12.5px; }
.bm-src-row .muted { color: #8a8f99; font-size: 11px; }

/* traka lokalnih izvora iznad Mape BiH */
.bm-wrap { display: flex; flex-direction: column; }
.bm-wrap #bmap { position: relative; inset: auto; flex: 1; }
.bm-strip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg2); border-bottom: 1px solid var(--line); min-height: 52px; }
.bm-strip-h { font: 700 13px var(--cond); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; color: var(--muted); }
.bm-strip-h span { color: var(--text, #fff); }
.bm-strip-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.bm-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 14px; border: 1px solid #343846; background: #1a1d24; color: #dfe3ea; font: 600 12px Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.bm-chip small { color: #8b91a0; font-weight: 500; margin-left: 2px; }
.bm-chip i { width: 7px; height: 7px; border-radius: 50%; background: #3fbf6a; }
.bm-chip i.off { background: #e5484d; }
.bm-chip.k-sluzba { border-color: #2f5cb8; }
.bm-chip.k-fb { border-color: #7a5b16; border-style: dashed; }
.bm-chip.sel { background: #2a1416; border-color: var(--bih, #e5484d); }
.bm-chip.ping { animation: chipPing 2.4s ease-out; }
@keyframes chipPing { 0% { background: #e5484d; color: #fff; box-shadow: 0 0 14px #e5484d; } 100% { background: #1a1d24; box-shadow: none; } }
.bm-wrap .map-ctl { top: 64px; flex-wrap: wrap; }

/* traka ne smije širiti mapu i gurati spisak vijesti van ekrana */
#v-bihmapa.map-view { grid-template-columns: minmax(0, 1fr) 340px; }
.bm-wrap { min-width: 0; overflow: hidden; }
.bm-strip { min-width: 0; max-width: 100%; }
.bm-strip-in { min-width: 0; flex: 1; }
@media (max-width: 900px) { #v-bihmapa.map-view { grid-template-columns: minmax(0, 1fr); } }
.bm-li:not(.ev) b { font-weight: 600; color: #cfd3db; }
.bm-li.ev { border-left: 3px solid var(--bih, #e5484d); }
.bm-li.avazhas { background: linear-gradient(90deg, rgba(34,197,94,.16), transparent 60%); box-shadow: inset 4px 0 0 #22c55e; }
.bm-ev.avz { box-shadow: 0 0 0 3px #22c55e, 0 0 12px #22c55e; }
.bm-ev .avz-b { position: absolute; right: -6px; top: -6px; width: 15px; height: 15px; border-radius: 50%; background: #16a34a; color: #fff; font: 800 10px/15px Inter, sans-serif; text-align: center; }
.bm-li:not(.avazhas) { box-shadow: inset 4px 0 0 rgba(229,72,77,.55); }
.bm-li.ev:not(.avazhas) { box-shadow: inset 4px 0 0 #e5484d; }
.bm-li .chip.noavaz { background: #b91c1c; color: #fff; font-weight: 700; padding: 3px 9px; box-shadow: 0 0 0 1px #ef4444; }

/* Studio */
.mk-tabs { margin: 0 0 14px; }
.st-list { display: grid; gap: 14px; max-width: 980px; }
.st-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.st-card.pend { opacity: .85; }
.st-card p { line-height: 1.55; margin: 8px 0; }
.st-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-h .x-btn { margin-left: auto; }
.st-kick { color: var(--bih, #e5484d); font: 700 13px var(--cond); text-transform: uppercase; letter-spacing: .05em; margin-top: 10px; }
.st-title { font-size: 20px; margin: 4px 0 6px; }
.st-lead { font-weight: 600; }
.st-alt { font-size: 13px; color: var(--muted); margin: 6px 0; }
.st-err { color: #ff8080; }
.st-prog { height: 6px; background: #23262f; border-radius: 3px; margin: 10px 0; overflow: hidden; }
.st-prog i { display: block; height: 100%; background: linear-gradient(90deg, #e5484d, #f59e0b); transition: width .6s; }
.st-pts { padding-left: 0; list-style: none; }
.st-pts li { margin: 6px 0; line-height: 1.45; }
.st-t { display: inline-block; min-width: 52px; font: 700 12px var(--cond); color: #7aa2ff; }
.st-quotes blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid #f59e0b; background: #1b1d24; border-radius: 6px; }
.st-trans { white-space: pre-wrap; max-height: 420px; overflow: auto; background: #12141a; padding: 12px; border-radius: 8px; font-size: 12.5px; }
.st-vidform select { padding: 6px 8px; }
.chip.st-btn { cursor: pointer; background: #1f2a44; color: #cfe0ff; border: 1px solid #3b5998; }
.chip.st-btn:hover { background: #2b3b63; }

/* zauzimanje priča */
.chip.claim { cursor: pointer; background: #23262f; color: #cfd3db; border: 1px solid #3a3e4a; }
.chip.claim:hover { background: #2d313c; }
.chip.claim.mine { background: #1e3a8a; color: #fff; border-color: #3b82f6; }
.chip.claim.taken { cursor: default; background: #7c2d12; color: #fff; border-color: #f97316; font-weight: 700; }
.st-article { margin-top: 14px; padding: 14px 16px; border: 1px solid #2f5cb8; border-radius: 10px; background: #141a28; }
.st-article.pend { opacity: .8; }
.st-art-h { font: 700 13px var(--cond); text-transform: uppercase; letter-spacing: .05em; color: #9ec0ff; }
.btn.st-edit { background: #1e3a8a; border-color: #3b82f6; color: #fff; font-weight: 700; }
.bm-chip.k-nereg { border-color: #a16207; border-style: dashed; }
.chip.nereg { background: #422006; color: #fcd34d; border: 1px dashed #a16207; }

/* ugrađeni Avaz generator */
.mk-img img:not([src]) { visibility: hidden; }
.gen-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.65); display: grid; place-items: center; padding: 18px; }
.gen-box { width: min(1500px, 100%); height: min(980px, 100%); background: #eef0f4; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.gen-h { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #15171c; color: #fff; }
.gen-h .hint { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gen-box iframe { flex: 1; border: 0; width: 100%; background: #eef0f4; }
.mk-actions.four { grid-template-columns: repeat(3, 1fr) !important; }
.mk-actions.four .btn { font-size: 12px; padding: 7px 4px; }
.mk-dl-h { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: 4px; }
.btn.mk-dl { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.15; padding: 7px 4px; }
.btn.mk-dl b { font-size: 12.5px; }
.btn.mk-dl small { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.mk-img .ai-ready { right: auto !important; left: 10px !important; }
.mk-img .mk-new { right: auto !important; left: 10px !important; top: 40px !important; }
.act-list { display: grid; gap: 4px; }
.act-user { margin: 10px 0 2px; font-size: 15px; }
.act-row { display: grid; grid-template-columns: 14px 170px 1fr 170px 80px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; background: #191b22; font-size: 13px; }
.act-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a3e4a; }
.act-dot.on { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.act-dot.idle { background: #a1a1aa; }
@media (max-width: 800px) { .act-row { grid-template-columns: 14px 1fr; } }

/* AI novinar: izvještaj */
.jr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.jr-box { background: #191b22; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.jr-box small { color: var(--muted); }
.jr-bar { height: 7px; background: #2a2d36; border-radius: 4px; overflow: hidden; }
.jr-bar i { display: block; height: 100%; }
.jr-warn { margin: 6px 0; padding: 8px 12px 8px 26px; background: #2a1a0e; border: 1px solid #7c4a12; border-radius: 8px; color: #fcd9a8; font-size: 13px; }
.chip.warnc { background: #78350f; color: #fff; }
.st-src { font-size: 13px; color: #9ec0ff; border-top: 1px solid var(--line); padding-top: 8px; }
.jr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.jr-cols h4 { margin: 10px 0 6px; }
.jr-cols p, .jr-cols li { font-size: 13px; line-height: 1.45; margin: 3px 0; }
.jr-orig { max-height: 520px; overflow: auto; background: #12141a; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; color: #cfd3db; }
@media (max-width: 900px) { .jr, .jr-cols { grid-template-columns: 1fr; } }
.jr-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip.okc { background: #14532d; color: #bbf7d0; }
.test-banner { background: #7c2d12; border: 2px solid #f97316; color: #fff; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 15px; }
.mk-pan { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(2, 30px); gap: 3px; opacity: 0; transition: opacity .15s; background: rgba(10,10,14,.75); padding: 4px; border-radius: 8px; }
.mk-img:hover .mk-pan, .mk-pan:focus-within { opacity: 1; }
.mk-pan button { width: 30px; height: 28px; border: 0; border-radius: 6px; background: #2a2d36; color: #fff; font-size: 13px; cursor: pointer; }
.mk-pan button:hover { background: #e5484d; }
@media (hover: none) { .mk-pan { opacity: 1; } }

/* Analitika */
.an-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { background: var(--panel); border: 0; border-right: 1px solid var(--line); color: var(--muted); padding: 7px 12px; cursor: pointer; font-weight: 600; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--red-soft); color: var(--text); }
.an-k { color: var(--muted); font-size: 12px; }
.an-bars { display: grid; gap: 4px; }
.an-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; align-items: center; gap: 10px; padding: 3px 4px; border-radius: 6px; }
.an-row:hover { background: rgba(255,255,255,.03); }
.an-row .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.an-row .nm small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.an-row .an-tr { height: 14px; position: relative; }
.an-row .an-b { height: 14px; border-radius: 0 4px 4px 0; background: #5b6070; min-width: 2px; }
.an-row.me .an-b { background: var(--red); }
.an-row.me .nm { color: #ff8a90; }
.an-row .v { font: 700 17px var(--cond); font-variant-numeric: tabular-nums; text-align: right; }
.an-row .v small { font: 500 11px var(--font); color: var(--muted); margin-left: 3px; }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dt { stroke: var(--bg2); stroke-width: 2; }
.tbl-wrap { overflow-x: auto; }
.tbl-wrap table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl-wrap tr.me td { color: #ff8a90; font-weight: 700; }
@media (max-width: 700px) { .an-row { grid-template-columns: 96px minmax(0, 1fr) 52px; } }
.legend { flex-wrap: wrap; }
.an-row .nm small.q-full, .an-row .nm small.q-rss { color: var(--ok); }
.an-row .nm small.q-gaps { color: var(--reg); }
.tbl-wrap th.today, .tbl-wrap td.today { background: rgba(255,255,255,.04); }
.person-cat { display: flex; gap: 6px; }
.person-cat select { flex: 1; padding: 5px 8px; font-size: 12px; }
.soc-pf { margin: 6px 0; }

/* Video vijest iz svemira */
.nv-sec { margin-top: 18px; }
.nv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.nv-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; }
.nv-card video { width: 100%; max-height: 420px; background: #000; display: block; }
.nv-ph { aspect-ratio: 9/16; max-height: 300px; display: grid; place-items: center; color: var(--muted); background: #0c0d12; }
.nv-b { padding: 10px; display: grid; gap: 6px; }
.nv-dlg { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 20px; width: min(560px, calc(100vw - 32px)); }
.nv-dlg::backdrop { background: rgba(0,0,0,.6); }
.nv-dlg form { display: grid; gap: 10px; }
.nv-dlg h3 { margin: 0; font: 700 22px var(--cond); }
.nv-dlg label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.nv-dlg textarea { resize: vertical; }
.nv-fmt { display: flex; gap: 14px; flex-wrap: wrap; }

/* Šta rade urednici */
.work-list { display: grid; gap: 10px; }
.work-row { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.work-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.work-now { margin-left: auto; font-size: 13px; }
.work-stats { font-size: 13px; color: #c9cbd4; }
.work-row details summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.chip.avazmaybe { background: #a16207; color: #fff; font-weight: 700; padding: 3px 10px; box-shadow: 0 0 0 1px #facc15, 0 0 10px rgba(250,204,21,.3); cursor: help; }

/* Rang web */
.rw-help p { margin: 0 0 6px; line-height: 1.5; }
.rw td { vertical-align: middle; }
.rw .rw-n { font: 700 18px var(--cond); font-variant-numeric: tabular-nums; }
.rw-up { color: var(--ok); font-weight: 700; }
.rw-down { color: #ff5a64; font-weight: 700; }
.tbl-wrap table.rw tr.me td { color: #ff8a90; }

.nv-outro { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; display: grid; gap: 8px; }
.nv-outro-row { display: flex; gap: 10px; flex-wrap: wrap; }
.nv-oc { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }

/* veliki uređivač video vijesti */
.nv-dlg.nv-big { width: min(1180px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 18px 20px; }
.nv-head { display: flex; align-items: center; gap: 12px; }
.nv-head h3 { margin: 0; }
.nv-head .x-btn { margin-left: auto; }
.nv-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 10px; }
.nv-col { display: grid; gap: 10px; align-content: start; }
.nv-row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.nv-block { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.nv-map { height: 430px; border-radius: 8px; overflow: hidden; background: #0b0c10; }
.nv-loc { position: relative; }
.nv-loc input { width: 100%; }
.nv-locres { position: absolute; left: 0; right: 0; top: 100%; z-index: 1000; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; max-height: 240px; overflow: auto; }
.nv-locres:empty { display: none; }
.nv-locres div { padding: 7px 10px; cursor: pointer; }
.nv-locres div:hover { background: var(--red-soft); }
.nv-img { display: flex; gap: 10px; align-items: center; }
.nv-img img { width: 150px; height: 90px; object-fit: cover; border-radius: 6px; background: #0b0c10; }
.nv-img img:not([src]), .nv-img img[src=""] { visibility: hidden; }
.nv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 280px; overflow: auto; margin-top: 8px; }
.nv-grid button { padding: 0; border: 2px solid transparent; border-radius: 6px; background: #0b0c10; cursor: pointer; text-align: left; color: var(--text); }
.nv-grid button:hover { border-color: var(--red); }
.nv-grid img { width: 100%; height: 72px; object-fit: cover; border-radius: 4px 4px 0 0; display: block; }
.nv-grid small { display: block; padding: 3px 5px; font-size: 11px; line-height: 1.25; max-height: 2.6em; overflow: hidden; }
.nv-foot { margin-top: 14px; }
@media (max-width: 900px) { .nv-cols { grid-template-columns: 1fr; } .nv-map { height: 300px; } }

.nv-coord{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}.nv-coord input{flex:1;min-width:180px}
.chip.nv-btn.nv-hot{cursor:pointer;background:#c4161c;color:#fff;border:1px solid #ff4d4f;font-weight:700}.chip.nv-btn.nv-hot:hover{background:#e3262c}
.rw-cx{font-weight:600;white-space:nowrap}.rw-cx.b1000{color:#26d07c}.rw-cx.b5000{color:#9be15d}.rw-cx.b10000{color:#ffc93c}.rw-cx.b50000{color:#ff9f43}
.st-news{margin:10px 0;padding:10px 12px;border:1px solid #3b5998;border-radius:10px;background:#141c30}.st-news-i{margin-top:8px}
.jr-review{border-color:#d4a72c!important}.jr-final{margin:8px 0;font-size:13px}.jr-final summary{cursor:pointer;color:#26d07c}.jr-final ul{margin:4px 0 8px 18px}
.vp-nav{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.vp-nav b{min-width:140px;text-align:center}
.vp-h{margin:18px 0 8px}.vp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px}
.vp-it{display:flex;gap:10px;padding:10px;border:1px solid var(--line,#2a2f3a);border-radius:10px;background:rgba(255,255,255,.02)}
.vp-it.bih{border-color:#3b82f6}.vp-it img,.vp-noimg{width:84px;height:84px;object-fit:cover;border-radius:8px;flex:none;background:#1b2130;display:flex;align-items:center;justify-content:center;font-size:28px}
.vp-it p{margin:4px 0;line-height:1.4}.vp-y{font-weight:700;font-size:18px}.vp-act{display:flex;gap:8px;align-items:center}
.vp-post{border:1px solid #3b5998;border-radius:10px;padding:10px 12px;background:#141c30;margin:6px 0 4px}.vp-post pre{white-space:pre-wrap;font-family:inherit;margin:8px 0}
@media (max-width:600px){.vp-grid{grid-template-columns:1fr}}
#spMap{position:absolute;inset:0;background:#17191e}
.sp-list{overflow:auto;background:var(--bg2,#11151c);border-left:1px solid var(--line,#2a2f3a);font-size:13px;min-height:0}
.sp-ctl{flex-wrap:wrap;max-width:560px;gap:8px 14px}.sp-days{display:flex;gap:4px;margin-bottom:6px}.sp-sports{display:flex;gap:4px;flex-wrap:wrap}
.sp-g{border-bottom:1px solid var(--line,#2a2f3a)}.sp-gh{padding:8px 10px 4px;font-weight:700;font-size:12px;opacity:.85}
.sp-it{display:flex;gap:6px;align-items:center;padding:5px 10px;cursor:pointer}.sp-it:hover{background:rgba(255,255,255,.05)}.sp-it .sp-t{flex:1}
.sp-it.uzivo{background:rgba(229,72,77,.08)}.sp-live{color:#ff5a64;font-weight:700;white-space:nowrap}.sp-time{color:#7aa2ff;white-space:nowrap}
.sp-pin{display:flex;align-items:center;gap:2px;background:#1b2130;border:2px solid #7aa2ff;border-radius:18px;padding:2px 6px 2px 3px;color:#fff;font-size:12px;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.5);width:max-content}
.sp-pin span{font-size:16px}.sp-pin.kraj{border-color:#6b7280;opacity:.85}.sp-pin.uzivo{border-color:#ff3b47;animation:spPulse 1.6s infinite}.sp-pin.bih{border-width:3px}
.sp-pin.ping{animation:spPing .7s 6;background:#ff3b47}.sp-pop{font-size:15px;margin:4px 0}
@keyframes spPulse{0%{box-shadow:0 0 0 0 rgba(255,59,71,.7)}70%{box-shadow:0 0 0 12px rgba(255,59,71,0)}100%{box-shadow:0 0 0 0 rgba(255,59,71,0)}}
@keyframes spPing{50%{transform:scale(1.35)}}
@media (max-width:800px){.sp-list{border-left:0}}
.sp-pin.vijest{border-color:#a78bfa;border-style:dashed;opacity:.9;padding:1px 4px}.sp-pin.vijest span{font-size:13px}
.sp-det{margin-top:6px}.sp-ev{margin:6px 0;font-size:12px;max-height:180px;overflow:auto}.sp-ev div{padding:1px 0}.sp-st{width:100%;font-size:12px;border-collapse:collapse;margin-top:4px}.sp-st td,.sp-st th{text-align:center;padding:1px 4px}.sp-st th{font-size:11px}
.sp-days{flex-wrap:wrap}
.sp-bell{background:none;border:0;cursor:pointer;font-size:14px;padding:0 2px;opacity:.55}.sp-bell.on{opacity:1}.sp-it.fol{box-shadow:inset 3px 0 0 #facc15}
.vp-hol{margin:10px 0;padding:8px 12px;border-radius:10px;background:rgba(250,204,21,.08);border:1px solid rgba(250,204,21,.35);line-height:1.5}
.sp-news{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;width:100%}.sp-srcs{width:100%}.sp-srcs summary{cursor:pointer;color:#7aa2ff}#spSrcList{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;max-height:220px;overflow:auto;margin-top:4px;font-size:12px}.sp-srcs-a{display:flex;gap:4px;margin-top:4px}
.sp-left{display:flex;flex-direction:column;min-height:0;min-width:0}.sp-left .map-wrap{flex:1 1 58%;min-height:260px}
.sp-trend{flex:0 0 42%;overflow:auto;border-top:1px solid var(--line,#2a2f3a);background:var(--bg2,#11151c)}
.sp-trend-h{position:sticky;top:0;z-index:2;background:var(--bg2,#11151c);padding:8px 12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line,#2a2f3a)}.sp-trend-hrs{margin-left:auto;display:flex;gap:4px}
.spt-row{display:flex;gap:10px;padding:8px 12px;border-bottom:1px solid var(--line,#2a2f3a)}.spt-rank{font-size:20px;font-weight:800;min-width:26px;color:#f59e0b}
.spt-row img,.spt-noimg{width:96px;height:62px;object-fit:cover;border-radius:6px;flex:none;background:#1b2130;display:flex;align-items:center;justify-content:center;font-size:22px}
.spt-body{flex:1;min-width:0}.spt-t{font-weight:600;line-height:1.35}.spt-meta{font-size:12px;margin:4px 0;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.spt-n{color:#f59e0b}.spt-src{font-size:12px;padding:2px 0}
.vp-ago{font-size:12px;font-weight:500;color:#9aa3b2;margin-left:4px}.vp-jub{background:#7c2d12!important;color:#fde68a!important}.vp-it.jub{border-color:#f59e0b;box-shadow:0 0 0 1px rgba(245,158,11,.4)}.vp-more summary{cursor:pointer;color:#7aa2ff;font-size:12px}.vp-more p{font-size:13px;color:#c9cfdb;margin:4px 0}
.cmp-sum{background:rgba(227,6,19,.08);border:1px solid rgba(227,6,19,.35);border-radius:10px;padding:10px 14px;margin-bottom:12px}.cmp-sum p{margin:6px 0 0;line-height:1.5}
.cmp-wrap{overflow:auto}.cmp th{text-align:left;white-space:nowrap}.cmp td{text-align:center;vertical-align:top}.cmp td.cmp-avaz{background:rgba(227,6,19,.07)}.cmp td.cmp-best{font-weight:800;color:#26d07c}
.cmp-chart{width:100%;max-width:760px;height:auto;background:rgba(255,255,255,.02);border-radius:8px}.cmp-leg{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin:4px 0 10px}.cmp-leg i{display:inline-block;width:12px;height:4px;margin-right:5px;vertical-align:middle;border-radius:2px}
.cmp-pt{margin:8px 0;padding:8px 12px;border-left:3px solid var(--line,#2a2f3a)}.cmp-pt p{margin:4px 0;line-height:1.5}.cmp-rec li{margin:4px 0;line-height:1.45}.cmp-miss{margin:6px 0}.cmp-miss li{margin:3px 0}
.cmp-daily{border:1px solid var(--line,#2a2f3a);border-radius:10px;padding:10px 14px;margin-bottom:14px;background:rgba(255,255,255,.02)}.cmp-daily h4{margin:0 0 8px}
.cmp-days{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:8px}.cmp-day-h{font-size:15px;margin:4px 0}.cmp-verd{font-weight:800}.cmp-verd.ok{color:#26d07c}.cmp-verd.bad{color:#ff5a64}.cmp-ver li{margin:4px 0;line-height:1.45;list-style:none}.cmp-ver{padding-left:4px}
.an-regsw{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.an-regbtn{display:inline-flex;align-items:center;gap:6px;cursor:pointer}.an-regbtn input{margin:0}#anRegCard[hidden]{display:none!important}
.sp-list{display:flex;flex-direction:column}.sp-search{position:sticky;top:0;z-index:3;background:var(--bg2,#11151c);padding:8px;border-bottom:1px solid var(--line,#2a2f3a)}.sp-search input{width:100%}#spList{overflow:auto;flex:1}

/* ---------- admin: izvori, VPS, sistem ---------- */
.src-url { font-size: 11px; color: var(--muted); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.src-off, .vps-row.src-off { opacity: .45; }
.src-act { white-space: nowrap; } .src-act .btn { margin-right: 4px; }
.src-box { width: min(760px, 100%); }
.src-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.src-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
.src-form .wide { grid-column: 1 / -1; }
.src-ll { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.src-chk { display: flex; flex-wrap: wrap; gap: 14px; }
.src-test ol.mini { margin: 6px 0 0; font-size: 12px; }
.pend-bar { position: fixed; right: 18px; bottom: 18px; z-index: 2500; display: flex; align-items: center; gap: 14px; max-width: min(720px, calc(100vw - 36px));
  background: #2a1f05; border: 1px solid #a16207; color: #fde68a; padding: 10px 12px 10px 16px; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.pend-bar b { color: #fff; font-weight: 600; }
.wide-card { grid-column: 1 / -1; }
.sub-h { margin: 6px 0 0; font: 700 15px var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.vps-list { display: grid; gap: 8px; }
.vps-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; background: var(--bg2); }
.vps-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vps-act { display: flex; gap: 6px; flex-wrap: wrap; }
.vps-form { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr 90px 1.4fr auto; gap: 8px; }
@media (max-width: 900px) { .vps-form, .src-form { grid-template-columns: 1fr; } }
.vps-log { background: #0f1015; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 0; max-height: 260px; overflow: auto; }
.vps-log.ok { border-color: var(--ok); } .vps-log.bad { border-color: #ff6b74; }
.cfg-form { display: grid; gap: 12px; }
.cfg-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
