/* ═══════════════════════════════════════════
   ILIDŽA INFO — main.css
   ═══════════════════════════════════════════ */

/* ── RESET & TOKENS ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --pri:     #f47216;
  --pri-d:   #d4601a;
  --pri-l:   #fff4ed;
  --bg:      #f4f4f4;
  --surface: #ffffff;
  --dark:    #1a1a1a;
  --g900:    #222222;
  --g800:    #333333;
  --g700:    #4a4a4a;
  --g600:    #6b6b6b;
  --g500:    #888888;
  --g400:    #aaaaaa;
  --g300:    #cccccc;
  --g200:    #e2e2e2;
  --g100:    #f0f0f0;
  --g50:     #f8f8f8;
  --font:    'Poppins', sans-serif;
  --serif:   'Poppins', sans-serif;
  --radius:  8px;
  --shadow:  0 1px 6px rgba(0,0,0,.08);
  --shadow-lg: 0 6px 24px rgba(0,0,0,.12);
  /* category colors */
  --c-nov:   #f47216;
  --c-spt:   #0891b2;
  --c-biz:   #059669;
  --c-zan:   #db2777;
  --c-pos:   #d97706;
  --c-crn:   #374151;
  /* footer */
  --footer-bg: #1a1a2e;
  /* nav height mobile */
  --nav-h: 62px;
}

[data-theme="dark"] {
  --bg:      #181818;
  --surface: #1e1e1e;
  --dark:    #f0f0f0;
  --g900:    #eeeeee;
  --g800:    #d8d8d8;
  --g700:    #bbbbbb;
  --g600:    #999999;
  --g500:    #777777;
  --g400:    #555555;
  --g300:    #444444;
  --g200:    #333333;
  --g100:    #2a2a2a;
  --g50:     #222222;
  --shadow:  0 1px 6px rgba(0,0,0,.35);
  --shadow-lg: 0 6px 24px rgba(0,0,0,.45);
  --footer-bg: #0e0e1a;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: var(--font); }

/* ── TOPBAR ──────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--g200);
  padding: 6px 0;
  transition: background .25s;
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--g600);
}
.topbar-date { display: flex; align-items: center; gap: 6px; }
.topbar-date svg { width: 13px; height: 13px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-weather { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--g800); }
.topbar-weather svg { width: 14px; height: 14px; }
/* Dark mode toggle */
.dark-toggle { display: flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.dark-toggle svg { width: 14px; height: 14px; color: var(--g600); }
.toggle-track {
  width: 38px; height: 20px; background: var(--g300);
  border-radius: 10px; position: relative; transition: background .3s; flex-shrink: 0;
}
.toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; background: #fff;
  border-radius: 50%; transition: transform .3s; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.toggle-label { font-size: 12px; color: var(--g600); }
[data-theme="dark"] .toggle-track { background: var(--pri); }
[data-theme="dark"] .toggle-track::after { transform: translateX(18px); }
/* Social links */
.social-links { display: flex; gap: 6px; }
.social-links a {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--g100); display: flex; align-items: center;
  justify-content: center; transition: all .2s; color: var(--g600);
}
.social-links a svg { width: 13px; height: 13px; }
.social-links a:hover { background: var(--pri); color: #fff; }

/* ── HEADER ──────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--pri);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 14px rgba(0,0,0,.09);
  transition: background .25s;
}
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.header-top {
  display: flex; justify-content: space-between;
  align-items: center; padding: 10px 0 8px; gap: 16px;
}
.logo-link { cursor: pointer; flex-shrink: 0; display: block; }
.logo-link img { height: 55px; width: auto; }
.header-ad {
  flex: 1; max-width: 580px; height: 72px;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  border: 1px dashed var(--g300); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; font-size: 11px; color: var(--g500); gap: 2px;
}
.header-ad strong { font-size: 14px; color: var(--g600); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* Search */
.search-box {
  display: flex; align-items: center; gap: 6px;
  background: var(--g100); border-radius: 20px; padding: 7px 14px;
  border: 1.5px solid transparent; transition: all .2s;
}
.search-box:focus-within { border-color: var(--pri); background: var(--surface); }
.search-box input {
  border: none; background: transparent; font-size: 13px;
  color: var(--dark); outline: none; width: 160px;
}
.search-box button { border: none; background: transparent; cursor: pointer; display: flex; color: var(--g500); }
.search-box button svg { width: 16px; height: 16px; }
/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px; border: none; background: transparent;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: all .3s;
}
/* Desktop nav */
.main-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 9px 14px; font-size: 12px; font-weight: 600; color: var(--g700);
  border-bottom: 3px solid transparent; transition: all .2s;
  white-space: nowrap; text-transform: uppercase; letter-spacing: .4px;
}
.main-nav a:hover, .main-nav a.active { color: var(--pri); border-bottom-color: var(--pri); }
.main-nav .nav-send {
  margin-left: auto; background: var(--pri) !important;
  color: #fff !important; border-radius: 4px 4px 0 0; border-bottom: none !important;
}
.main-nav .nav-send:hover { background: var(--pri-d) !important; }

/* ── MOBILE DRAWER ───────────────────────── */
.m-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 400;
}
.m-overlay.open { display: block; }
.m-drawer {
  position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
  background: var(--surface); z-index: 500;
  transform: translateX(100%); transition: transform .28s ease;
  overflow-y: auto; display: flex; flex-direction: column;
}
.m-drawer.open { transform: translateX(0); }
.m-drawer-head {
  padding: 18px 20px; border-bottom: 1px solid var(--g200);
  display: flex; justify-content: space-between; align-items: center;
}
.m-drawer-head img { height: 34px; }
.m-close {
  width: 32px; height: 32px; border: none; background: var(--g100);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.m-close svg { width: 16px; height: 16px; color: var(--g600); }
.m-nav a {
  display: flex; align-items: center; gap: 12px; padding: 13px 20px;
  font-size: 14px; font-weight: 600; color: var(--dark);
  border-bottom: 1px solid var(--g100); transition: all .2s;
}
.m-nav a svg { width: 18px; height: 18px; color: var(--g500); flex-shrink: 0; }
.m-nav a:hover { background: var(--g50); color: var(--pri); padding-left: 26px; }
.m-nav a:hover svg { color: var(--pri); }
.m-nav .m-send {
  background: var(--pri); color: #fff !important;
  margin: 16px; border-radius: 8px; padding: 14px 20px;
}
.m-nav .m-send svg { color: #fff; }
.m-nav .m-send:hover { background: var(--pri-d); padding-left: 20px; }

/* ── BOTTOM NAV ──────────────────────────── */
.bot-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav-h); background: var(--surface);
  border-top: 1px solid var(--g200); z-index: 300;
  box-shadow: 0 -2px 12px rgba(0,0,0,.1); transition: background .25s;
}
.bot-nav-inner { display: flex; height: 100%; align-items: stretch; }
.bni {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; cursor: pointer; border: none;
  background: transparent; padding: 6px 2px 4px; color: var(--g400);
  transition: color .2s; min-width: 0;
}
.bni svg { width: 22px; height: 22px; flex-shrink: 0; }
.bni span { font-size: 9px; font-weight: 600; white-space: nowrap; }
.bni.active, .bni:active { color: var(--pri); }
.bni-logo-btn {
  flex: 0 0 72px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer;
  border: none; background: transparent; gap: 1px; padding: 4px;
}
.bni-logo-circle {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--g200);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.14);
  margin-bottom: 2px; transition: transform .15s;
}
.bni-logo-circle img { width: 42px; height: 42px; object-fit: contain; }
.bni-logo-btn:active .bni-logo-circle { transform: scale(.93); }
.bni-logo-btn span { font-size: 8.5px; font-weight: 700; color: var(--pri); }

/* ── LAYOUT ──────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page-wrap {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 32px; padding: 28px 0;
}
.back-bar { padding: 10px 0; border-bottom: 1px solid var(--g200); margin-bottom: 20px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--g600);
  border: none; background: transparent; cursor: pointer; padding: 0;
  transition: color .2s;
}
.back-btn svg { width: 16px; height: 16px; }
.back-btn:hover { color: var(--pri); }

/* ── HERO GRID ───────────────────────────── */
.hero-section { padding: 22px 0 0; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 310px;
  grid-template-rows: 1fr 1fr; gap: 3px;
  background: var(--g200); border-radius: var(--radius); overflow: hidden;
  height: 460px;
}
.hero-main {
  position: relative; grid-row: 1/3; overflow: hidden;
  cursor: pointer; background: #000;
}
.hero-main img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  opacity: .75; transition: opacity .3s, transform .4s;
}
.hero-main:hover img { opacity: .6; transform: scale(1.03); }
.hero-main .hero-ph {
  width: 100%; height: 100%; min-height: 300px;
  background: linear-gradient(135deg, var(--pri), var(--pri-d));
  display: flex; align-items: center; justify-content: center;
}
.hero-main .hero-ph svg { width: 72px; height: 72px; color: rgba(255,255,255,.2); }
.hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 24px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 55%, transparent 100%);
}
.hero-overlay h2 {
  font-size: 22px; font-weight: 700; color: #fff;
  line-height: 1.35; margin: 8px 0 6px; font-family: var(--serif);
}
.hero-meta-row {
  font-size: 11.5px; color: rgba(255,255,255,.65);
  display: flex; align-items: center; gap: 6px;
}
.hero-meta-row svg { width: 12px; height: 12px; }
.hero-sub {
  background: var(--surface); padding: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-start;
  transition: background .2s; overflow: hidden;
}
.hero-sub:hover { background: var(--g50); }
.hero-sub-img { width: 100%; height: 126px; object-fit: cover; flex-shrink: 0; }
.hero-sub-text {
  padding: 8px 12px 10px; flex: 1;
  display: flex; flex-direction: column; gap: 4px;
  min-height: 0;
}
.hero-sub h3 {
  font-size: 13px; font-weight: 700; line-height: 1.38;
  color: var(--dark); transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex-shrink: 0;
}
.hero-sub:hover h3 { color: var(--pri); }
.hero-sub-meta {
  font-size: 11px; color: var(--g500);
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0; margin-top: auto; padding-top: 3px;
}
.hero-sub-meta svg { width: 11px; height: 11px; }

/* ── BADGE ───────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 2px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; color: #fff;
  white-space: nowrap; flex-shrink: 0;
}
.b-nov { background: var(--c-nov); }
.b-spt { background: var(--c-spt); }
.b-kul { background: #7c3aed; }
.b-biz { background: var(--c-biz); }
.b-zan { background: var(--c-zan); }
.b-pos { background: var(--c-pos); }
.b-crn { background: var(--c-crn); }

/* ── SECTION HEADER ──────────────────────── */
.sec-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--g200);
}
.sec-title {
  font-size: 15px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; display: flex; align-items: center; gap: 8px;
}
.sec-accent { width: 4px; height: 18px; background: var(--pri); border-radius: 2px; flex-shrink: 0; }
.sec-more { font-size: 11px; font-weight: 600; color: var(--pri); text-transform: uppercase; letter-spacing: .4px; }
.sec-more:hover { color: var(--pri-d); }

/* ── NEWS CARDS ──────────────────────────── */
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 28px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 28px; }

.ncard {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: box-shadow .2s, transform .2s;
}
.ncard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ncard-img { aspect-ratio: 16/9; overflow: hidden; background: var(--g200); }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ncard:hover .ncard-img img { transform: scale(1.05); }
.ncard-ph {
  width: 100%; height: 100%; min-height: 130px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pri), var(--pri-d));
}
.ncard-ph svg { width: 36px; height: 36px; color: rgba(255,255,255,.3); }
.ncard-body { padding: 14px; }
.ncard-body h3 {
  font-size: 13.5px; font-weight: 700; line-height: 1.4;
  color: var(--dark); margin: 7px 0 5px; transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ncard:hover h3 { color: var(--pri); }
.ncard-exc {
  font-size: 12px; color: var(--g600); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ncard-meta { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11px; color: var(--g500); }

/* ── LIST ITEMS ──────────────────────────── */
.nlist {
  display: flex; gap: 11px; padding: 11px 0;
  border-bottom: 1px solid var(--g100); cursor: pointer;
}
.nlist:last-child { border-bottom: none; }
.nlist:hover h4 { color: var(--pri); }
.nlist-thumb { width: 86px; height: 62px; border-radius: 5px; overflow: hidden; background: var(--g200); flex-shrink: 0; }
.nlist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nlist-thumb .ncard-ph { min-height: 62px; }
.nlist-thumb .ncard-ph svg { width: 22px; height: 22px; }
.nlist h4 { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--dark); margin: 3px 0 5px; transition: color .2s; }
.nlist-meta { font-size: 11px; color: var(--g500); }

/* ── FEATURED STRIP ──────────────────────── */
.fstrip {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 3px;
  background: var(--g200); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px;
}
.fstrip-item {
  background: var(--surface); padding: 18px; cursor: pointer;
  border-left: 4px solid transparent; transition: all .2s;
}
.fstrip-item:hover { background: var(--g50); }
.fstrip-item h4 {
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  margin: 7px 0 4px; color: var(--dark); transition: color .2s;
}
.fstrip-item:hover h4 { color: var(--pri); }

/* ── SIDEBAR ─────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.widget-head {
  padding: 11px 15px; border-bottom: 2px solid var(--pri);
  font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
  background: var(--g50); display: flex; align-items: center; gap: 7px;
}
.widget-head svg { width: 15px; height: 15px; color: var(--pri); }
.widget-body { padding: 12px 15px; }

/* AD BOXES */
.ad-box {
  background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
  border: 1.5px dashed #93c5fd; border-radius: 6px; padding: 14px;
  text-align: center; color: var(--g500); font-size: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.ad-size { font-size: 15px; font-weight: 700; color: var(--g600); }
.ad-lb { margin: 22px 0; }
.ad-lb .ad-box { height: 90px; }
.ad-ic { margin: 24px 0; }
.ad-ic .ad-box { height: 90px; }

/* Weather widget */
.weather-mini { text-align: center; padding: 18px; }
.weather-mini .temp { font-size: 40px; font-weight: 700; color: var(--pri); line-height: 1; }
.weather-mini .desc { font-size: 13px; color: var(--g600); margin: 4px 0; }
.weather-mini .loc { font-size: 10.5px; color: var(--g400); text-transform: uppercase; letter-spacing: 1px; }

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, #f47216, #d4601a);
  color: #fff; padding: 20px; border-radius: var(--radius); text-align: center;
}
.newsletter h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.newsletter p { font-size: 12px; opacity: .85; margin-bottom: 13px; }
.nl-form { display: flex; flex-direction: column; gap: 7px; }
.nl-inp { padding: 10px 13px; border-radius: 5px; border: none; font-size: 13px; width: 100%; }
.nl-btn {
  padding: 10px; background: #1a1a2e; color: #fff; border: none;
  border-radius: 5px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s;
}
.nl-btn:hover { background: #000; }

/* ── ARTICLE PAGE ────────────────────────── */
.art-hero { border-radius: var(--radius); overflow: hidden; background: #111; margin: 16px 0 8px; }
.art-hero img { width: 100%; height: auto; max-height: 540px; object-fit: contain; background: #111; display: block; }
.art-caption { font-size: 12px; color: var(--g500); text-align: center; margin-bottom: 18px; font-style: italic; }
.art-h1 { font-size: 28px; font-weight: 800; font-family: var(--font); line-height: 1.3; color: var(--dark); margin: 10px 0 8px; }
.art-sub { font-size: 17px; color: var(--g600); font-weight: 400; line-height: 1.55; margin-bottom: 14px; }
.art-meta-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 12.5px; color: var(--g500); padding: 12px 0;
  border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); margin-bottom: 22px;
}
.art-meta-item { display: flex; align-items: center; gap: 5px; }
.art-meta-item svg { width: 14px; height: 14px; color: var(--pri); }
.art-body { font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.85; color: var(--g800); }
.art-body p { margin-bottom: 1.1em; }
.art-body h2 { font-size: 21px; font-weight: 700; margin: 1.4em 0 .7em; font-family: var(--font); color: var(--dark); }
.art-body h3 { font-size: 17px; font-weight: 700; margin: 1.2em 0 .5em; font-family: var(--font); }
.art-body blockquote {
  border-left: 4px solid var(--pri); padding: 12px 20px;
  background: var(--g50); margin: 18px 0; font-style: italic;
  color: var(--g700); border-radius: 0 6px 6px 0;
}
.art-body ul, .art-body ol { margin: .8em 0 .8em 1.6em; }
.art-body li { margin-bottom: .4em; }
.art-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); margin: 20px 0; }
.art-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.art-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 7px; }
.art-tag { padding: 4px 12px; background: var(--g100); border-radius: 20px; font-size: 12px; color: var(--g600); font-weight: 500; cursor: pointer; transition: all .2s; }
.art-tag:hover { background: var(--pri); color: #fff; }
.share-row { display: flex; gap: 9px; margin-top: 22px; flex-wrap: wrap; }
.share-btn { padding: 9px 16px; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; border: none; display: flex; align-items: center; gap: 6px; transition: opacity .2s; }
.share-btn svg { width: 14px; height: 14px; }
.share-btn:hover { opacity: .88; }
.s-fb { background: #1877f2; color: #fff; }
.s-tw { background: #000; color: #fff; }
.s-wa { background: #25d366; color: #fff; }
.s-cp { background: var(--g700); color: #fff; }

/* ── COMMENTS ────────────────────────────── */
.comments-wrap { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--g200); }
.comments-wrap > h3 { font-size: 18px; font-weight: 700; margin-bottom: 22px; display: flex; align-items: center; gap: 9px; }
.comments-wrap > h3 svg { width: 20px; height: 20px; color: var(--pri); }
.c-disabled { text-align: center; padding: 28px; background: var(--g50); border-radius: var(--radius); color: var(--g500); font-size: 14px; border: 1.5px dashed var(--g300); }
.c-form { background: var(--surface); border: 1.5px solid var(--g200); border-radius: 10px; padding: 20px; margin-bottom: 28px; }
.c-form h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.c-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.c-inp {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--g200); border-radius: 6px;
  font-size: 13px; color: var(--dark); background: var(--surface);
  transition: border-color .2s; outline: none;
}
.c-inp:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(244,114,22,.08); }
textarea.c-inp { min-height: 90px; resize: vertical; margin-bottom: 12px; }
.captcha-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--g50); border: 1px solid var(--g200);
  border-radius: 6px; padding: 10px 14px; margin-bottom: 12px;
}
.captcha-row svg { width: 16px; height: 16px; color: var(--pri); flex-shrink: 0; }
.captcha-q { font-size: 13px; font-weight: 600; color: var(--g700); }
.captcha-inp { width: 68px; padding: 6px 10px; border: 1.5px solid var(--g300); border-radius: 4px; font-size: 14px; font-weight: 700; text-align: center; outline: none; }
.captcha-inp:focus { border-color: var(--pri); }
.c-submit { padding: 10px 22px; background: var(--pri); color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: background .2s; }
.c-submit:hover { background: var(--pri-d); }
.c-submit svg { width: 14px; height: 14px; flex-shrink: 0; }
.c-hint { font-size: 11px; color: var(--g400); margin-top: 8px; }
.c-list { display: flex; flex-direction: column; gap: 14px; }
.c-item { background: var(--surface); border: 1px solid var(--g200); border-radius: 10px; padding: 16px; transition: border-color .2s; }
.c-item:hover { border-color: var(--pri); }
.c-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.c-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--pri), var(--pri-d)); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0; }
.c-author { font-size: 13px; font-weight: 700; }
.c-date { font-size: 11px; color: var(--g500); }
.c-body { font-size: 14px; color: var(--g700); line-height: 1.6; margin-bottom: 10px; }
.c-actions { display: flex; align-items: center; gap: 14px; }
.like-btn { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--g500); border: 1.5px solid var(--g200); background: var(--g50); border-radius: 20px; padding: 4px 12px; cursor: pointer; transition: all .2s; }
.like-btn svg { width: 14px; height: 14px; }
.like-btn:hover, .like-btn.liked { background: #fff0e6; border-color: var(--pri); color: var(--pri); }
.c-count { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--g500); background: var(--g100); border-radius: 20px; padding: 3px 10px; }
.c-count svg { width: 12px; height: 12px; }
.c-empty { text-align: center; color: var(--g400); font-size: 13px; padding: 20px 0; }

/* ── FOOTER ──────────────────────────────── */
.site-footer { background: var(--footer-bg); color: #fff; }
[data-theme="dark"] .site-footer { background: #0a0a18; }
.ftr-grid {
  max-width: 1280px; margin: 0 auto; padding: 44px 24px 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
}
.ftr-brand p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.7; margin-top: 12px; }
.ftr-social { display: flex; gap: 9px; margin-top: 14px; }
.ftr-social a { width: 34px; height: 34px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.ftr-social a:hover { background: var(--pri); }
.ftr-social a svg { width: 15px; height: 15px; color: #fff; }
.ftr-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.ftr-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ftr-links a { font-size: 13px; color: rgba(255,255,255,.7); transition: color .2s; }
.ftr-links a:hover { color: #fff; }
.ftr-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 24px; max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.4);
}
.ftr-bottom a { color: rgba(255,255,255,.5); transition: color .2s; }
.ftr-bottom a:hover { color: #fff; }

/* ── ADMIN ───────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; background: #f0f0f0; }
.adm-aside { position: fixed; top: 0; left: 0; width: 240px; height: 100vh; background: #1a1a2e; overflow-y: auto; z-index: 300; }
.adm-logo { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.adm-logo img { height: 30px; filter: brightness(0) invert(1) sepia(1) saturate(4) hue-rotate(10deg); }
.adm-logo small { font-size: 11px; color: rgba(255,255,255,.35); display: block; margin-top: 3px; }
.adm-nav { padding: 10px 0; }
.adm-link { display: flex; align-items: center; gap: 9px; padding: 11px 20px; font-size: 13px; color: rgba(255,255,255,.65); cursor: pointer; transition: all .2s; border-left: 3px solid transparent; }
.adm-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.adm-link:hover, .adm-link.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--pri); }
.adm-main { margin-left: 240px; padding: 26px; min-height: 100vh; flex: 1; }
.adm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.adm-top h2 { font-size: 21px; font-weight: 700; }

/* buttons */
.btn { padding: 9px 17px; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn svg { width: 14px; height: 14px; }
.btn-p { background: var(--pri); color: #fff; }
.btn-p:hover { background: var(--pri-d); }
.btn-o { background: #fff; color: #4a4a4a; border: 1.5px solid #ccc; }
.btn-o:hover { border-color: var(--pri); color: var(--pri); }
.btn-d { background: #fee2e2; color: #b91c1c; }
.btn-d:hover { background: #b91c1c; color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 12px; }

.acard { background: #fff; border-radius: 8px; box-shadow: 0 1px 5px rgba(0,0,0,.06); padding: 22px; margin-bottom: 22px; }
.acard h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; padding-bottom: 11px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 7px; }
.acard h3 svg { width: 16px; height: 16px; color: var(--pri); }

.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 7px; padding: 18px; box-shadow: 0 1px 5px rgba(0,0,0,.06); border-left: 4px solid var(--pri); }
.stat-card.g { border-left-color: #22c55e; }
.stat-card.o { border-left-color: #f97316; }
.stat-card.r { border-left-color: #ef4444; }
.stat-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #888; }
.stat-val { font-size: 28px; font-weight: 800; line-height: 1.2; margin-top: 4px; }

.atable { width: 100%; border-collapse: collapse; font-size: 13px; }
.atable th { padding: 9px 13px; text-align: left; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #888; background: #f8f8f8; border-bottom: 1px solid #e5e5e5; }
.atable td { padding: 11px 13px; border-bottom: 1px solid #f0f0f0; color: #4a4a4a; vertical-align: middle; }
.atable tr:hover td { background: #fafafa; }
.sbadge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.s-pub { background: #dcfce7; color: #15803d; }
.s-dft { background: #fef9c3; color: #854d0e; }

.fgrp { margin-bottom: 16px; }
.flbl { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #4a4a4a; margin-bottom: 5px; }
.finp, .fsel, .ftxt { width: 100%; padding: 9px 13px; border: 1.5px solid #e5e5e5; border-radius: 5px; font-size: 14px; color: #1a1a1a; transition: border-color .2s; outline: none; background: #fff; }
.finp:focus, .fsel:focus, .ftxt:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(244,114,22,.08); }
.ftxt { resize: vertical; min-height: 110px; }
.fhint { font-size: 11px; color: #888; margin-top: 4px; }

.ed-tb { display: flex; flex-wrap: wrap; gap: 3px; padding: 7px; background: #f8f8f8; border: 1.5px solid #e5e5e5; border-bottom: none; border-radius: 5px 5px 0 0; }
.ed-btn { padding: 5px 9px; font-size: 12px; font-weight: 600; background: #fff; border: 1px solid #e5e5e5; border-radius: 3px; cursor: pointer; transition: all .15s; }
.ed-btn:hover { background: var(--pri); color: #fff; border-color: var(--pri); }
.ed-body { border: 1.5px solid #e5e5e5; border-top: none; border-radius: 0 0 5px 5px; min-height: 280px; padding: 15px; font-family: var(--font); font-weight: 300; font-size: 15px; line-height: 1.8; outline: none; background: #fff; color: #1a1a1a; }
.ed-body:focus { border-color: var(--pri); }

.upload-zone { border: 2px dashed #ccc; border-radius: 6px; padding: 22px; text-align: center; cursor: pointer; transition: all .2s; background: #fafafa; }
.upload-zone:hover { border-color: var(--pri); background: #fff4ed; }
.upload-zone svg { width: 32px; height: 32px; color: #aaa; margin: 0 auto 8px; }
.upload-zone p { font-size: 13px; color: #888; }
.upload-zone strong { color: var(--pri); }
.img-prev { width: 100%; height: 150px; object-fit: cover; border-radius: 5px; margin-top: 9px; display: none; }

.seo-panel { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 8px; padding: 18px; }
.seo-hd { color: #15803d; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; margin-bottom: 13px; }
.seo-hd svg { width: 17px; height: 17px; }
.seo-score-w { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.seo-circle { width: 50px; height: 50px; border-radius: 50%; border: 3px solid #22c55e; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #15803d; flex-shrink: 0; }
.seo-checks { display: flex; flex-direction: column; gap: 7px; }
.seo-chk { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; padding: 7px 9px; border-radius: 5px; background: #fff; border: 1px solid transparent; }
.seo-chk.good { border-color: #bbf7d0; }
.seo-chk.warn { border-color: #fde68a; }
.seo-chk.bad  { border-color: #fecaca; }
.seo-ico { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.seo-txt { line-height: 1.4; color: #4a4a4a; }
.seo-tip { font-size: 11px; color: #888; margin-top: 2px; }
.ai-btn { width: 100%; padding: 10px; background: linear-gradient(135deg,#f47216,#d4601a); color: #fff; border: none; border-radius: 5px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: opacity .2s; margin-top: 12px; }
.ai-btn svg { width: 15px; height: 15px; }
.ai-btn:hover { opacity: .9; }
.ai-resp { margin-top: 11px; padding: 11px; background: #fff; border-radius: 5px; font-size: 12px; line-height: 1.6; color: #4a4a4a; border: 1px solid #86efac; display: none; }
.ai-resp.on { display: block; }

.c-mod-item { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.c-mod-meta { font-size: 12px; color: #888; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.c-mod-body { font-size: 13px; color: #4a4a4a; padding: 8px 12px; background: #f8f8f8; border-radius: 5px; border-left: 3px solid var(--pri); margin-bottom: 8px; }
.c-mod-actions { display: flex; gap: 8px; }

/* Login page */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #1a1a2e; }
.login-box { background: #fff; border-radius: 10px; padding: 34px; width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.login-box h2 { font-size: 20px; font-weight: 700; margin: 10px 0 4px; }
.login-box p { font-size: 13px; color: #888; margin-bottom: 22px; }

/* Toast */
.toast-msg { position: fixed; bottom: 80px; right: 22px; background: #222; color: #fff; padding: 11px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.22); z-index: 9999; transform: translateY(80px); transition: transform .3s ease; max-width: 320px; }
.toast-msg.on { transform: translateY(0); }
.toast-msg.ok  { border-left: 4px solid #22c55e; }
.toast-msg.err { border-left: 4px solid #ef4444; }

/* ── WEATHER PAGE ────────────────────────── */
.wx-page { padding: 28px 0; }
.wx-hero { background: linear-gradient(135deg,#0f4c81 0%,#1a6fa8 50%,#f47216 100%); border-radius: 16px; padding: 36px; color: #fff; margin-bottom: 28px; position: relative; overflow: hidden; }
.wx-hero::before { content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; background: rgba(255,255,255,.06); border-radius: 50%; }
.wx-location { font-size: 13px; opacity: .8; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.wx-location svg { width: 14px; height: 14px; }
.wx-cur-row { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 16px; }
.wx-temp { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -3px; }
.wx-temp sup { font-size: 28px; font-weight: 400; opacity: .8; vertical-align: super; }
.wx-desc-col { padding-bottom: 8px; }
.wx-desc { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.wx-feels { font-size: 13px; opacity: .75; }
.wx-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.wx-stat { display: flex; align-items: center; gap: 7px; font-size: 13px; opacity: .9; background: rgba(255,255,255,.14); padding: 8px 14px; border-radius: 20px; backdrop-filter: blur(4px); }
.wx-stat svg { width: 15px; height: 15px; }
.wx-hourly-wrap { background: var(--surface); border-radius: 12px; padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow); }
.wx-hourly-wrap h3 { font-size: 15px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.wx-hourly-wrap h3 svg { width: 17px; height: 17px; color: var(--pri); }
.wx-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--g300) transparent; }
.wx-scroll::-webkit-scrollbar { height: 4px; }
.wx-scroll::-webkit-scrollbar-thumb { background: var(--g300); border-radius: 2px; }
.wx-hour { min-width: 70px; text-align: center; padding: 14px 8px; background: var(--g50); border-radius: 10px; border: 1.5px solid transparent; transition: all .2s; flex-shrink: 0; }
.wx-hour.now { background: var(--pri); color: #fff; border-color: var(--pri-d); }
.wx-hour:hover:not(.now) { background: var(--g100); border-color: var(--g200); }
.wx-h-time { font-size: 11px; font-weight: 600; color: var(--g500); margin-bottom: 8px; }
.wx-hour.now .wx-h-time { color: rgba(255,255,255,.8); }
.wx-h-ico { font-size: 22px; margin: 4px 0; }
.wx-h-temp { font-size: 16px; font-weight: 700; color: var(--dark); }
.wx-hour.now .wx-h-temp { color: #fff; }
.wx-h-rain { font-size: 10px; color: var(--c-spt); margin-top: 4px; font-weight: 500; }
.wx-hour.now .wx-h-rain { color: rgba(255,255,255,.8); }
.wx-daily-wrap { background: var(--surface); border-radius: 12px; padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow); }
.wx-daily-wrap h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.wx-daily-wrap h3 svg { width: 17px; height: 17px; color: var(--pri); }
.wx-day { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--g100); gap: 12px; }
.wx-day:last-child { border-bottom: none; }
.wx-day-name { font-size: 14px; font-weight: 600; width: 95px; flex-shrink: 0; }
.wx-day-ico { font-size: 24px; width: 36px; text-align: center; flex-shrink: 0; }
.wx-day-desc { font-size: 12px; color: var(--g600); flex: 1; }
.wx-day-rain { font-size: 12px; color: var(--c-spt); font-weight: 500; min-width: 54px; text-align: center; }
.wx-bar-wrap { flex: 1; max-width: 100px; height: 5px; background: var(--g200); border-radius: 3px; overflow: hidden; }
.wx-bar { height: 100%; background: linear-gradient(90deg, var(--c-spt), var(--pri)); border-radius: 3px; }
.wx-temps { display: flex; gap: 10px; align-items: center; }
.wx-max { font-size: 15px; font-weight: 700; }
.wx-min { font-size: 13px; color: var(--g500); }
.wx-details { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 22px; }
.wx-detail { background: var(--surface); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); text-align: center; }
.wx-detail svg { width: 28px; height: 28px; color: var(--pri); margin: 0 auto 8px; }
.wx-detail-val { font-size: 22px; font-weight: 700; color: var(--dark); }
.wx-detail-lbl { font-size: 11px; color: var(--g500); text-transform: uppercase; letter-spacing: .8px; margin-top: 3px; }
.wx-loading { text-align: center; padding: 60px 20px; color: var(--g500); }
.wx-loading svg { width: 48px; height: 48px; margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ── POŠALJI VIJEST ──────────────────────── */
.pv-page { padding: 32px 0; }
.pv-hero { background: linear-gradient(135deg,#1a1a2e 0%,#f47216 100%); border-radius: 16px; padding: 40px; color: #fff; margin-bottom: 32px; text-align: center; position: relative; overflow: hidden; }
.pv-hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; background: rgba(255,255,255,.05); border-radius: 50%; }
.pv-hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; position: relative; }
.pv-hero p { font-size: 15px; opacity: .85; position: relative; }
.pv-card { background: var(--surface); border-radius: 14px; padding: 32px; box-shadow: var(--shadow-lg); max-width: 720px; margin: 0 auto; }
.pv-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.pv-card h2 svg { width: 20px; height: 20px; color: var(--pri); }
.pv-card > p { font-size: 13px; color: var(--g600); margin-bottom: 24px; }
.pv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.pv-inp, .pv-sel, .pv-txt { width: 100%; padding: 11px 14px; border: 1.5px solid var(--g200); border-radius: 8px; font-size: 14px; color: var(--dark); background: var(--surface); transition: border-color .2s, box-shadow .2s; outline: none; }
.pv-inp:focus, .pv-sel:focus, .pv-txt:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(244,114,22,.1); }
.pv-txt { resize: vertical; min-height: 140px; }
.pv-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--g700); margin-bottom: 5px; }
.pv-captcha { display: flex; align-items: center; gap: 12px; background: var(--g50); border: 1.5px solid var(--g200); border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; }
.pv-captcha svg { width: 18px; height: 18px; color: var(--pri); flex-shrink: 0; }
.pv-captcha-q { font-size: 14px; font-weight: 600; color: var(--g700); }
.pv-captcha-inp { width: 72px; padding: 8px 10px; border: 1.5px solid var(--g300); border-radius: 6px; font-size: 15px; font-weight: 700; text-align: center; outline: none; }
.pv-captcha-inp:focus { border-color: var(--pri); }
.pv-captcha small { font-size: 11px; color: var(--g500); }
/* honeypot */
.pv-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.pv-submit { width: 100%; padding: 14px; background: var(--pri); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s; }
.pv-submit:hover { background: var(--pri-d); }
.pv-submit svg { width: 18px; height: 18px; }
.pv-submit:disabled { opacity: .7; cursor: not-allowed; }
.pv-note { font-size: 12px; color: var(--g500); text-align: center; margin-top: 16px; line-height: 1.6; }
.pv-note a { color: var(--pri); }
.pv-success { text-align: center; padding: 40px 20px; display: none; }
.pv-success svg { width: 56px; height: 56px; color: #22c55e; margin: 0 auto 16px; display: block; }
.pv-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pv-success p { font-size: 14px; color: var(--g600); margin-bottom: 24px; }
.pv-tips { background: var(--g50); border-radius: 12px; padding: 24px; margin-top: 24px; max-width: 720px; margin-left: auto; margin-right: auto; }
.pv-tips h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.pv-tips h3 svg { width: 16px; height: 16px; color: var(--pri); }
.pv-tip { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--g700); margin-bottom: 10px; }
.pv-tip-ico { width: 24px; height: 24px; background: var(--pri); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pv-tip-ico svg { width: 13px; height: 13px; color: #fff; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2,1fr); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .header-ad { display: none; }
  .wx-details { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .bot-nav { display: flex; }
  body { padding-bottom: var(--nav-h); }
  .toast-msg { bottom: calc(var(--nav-h) + 10px); }
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-main { grid-row: auto; min-height: 50vw; }
  .hero-overlay h2 { font-size: 16px; }
  .hero-overlay { padding: 18px 16px 14px; }
  .g4 { grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
  .g3 { grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
  .fstrip { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; gap: 20px; }
  .ftr-col:nth-child(3), .ftr-col:nth-child(4) { display: none; }
  .header-top { padding: 8px 0 6px; }
  .logo-link img { height: 38px; }
  .search-box input { width: 110px; }
  .art-h1 { font-size: 21px; }
  .art-body { font-size: 15px; }
  .pv-row { grid-template-columns: 1fr; }
  .pv-hero { padding: 28px 20px; }
  .pv-hero h1 { font-size: 22px; }
  .pv-card { padding: 22px 16px; }
  .wx-temp { font-size: 54px; }
  .wx-day-name { width: 80px; }
  .wx-bar-wrap { display: none; }
  .wx-details { grid-template-columns: repeat(2,1fr); }
  .adm-aside { transform: translateX(-100%); transition: transform .28s; }
  .adm-aside.open { transform: translateX(0); }
  .adm-main { margin-left: 0; padding: 14px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .c-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .g4, .g3 { grid-template-columns: 1fr; }
  .container { padding: 0 14px; }
  .hero-overlay h2 { font-size: 14px; }
  .hero-sub { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .wx-details { grid-template-columns: repeat(2,1fr); }
}

/* ═══════════════════════════════════════════
   MOBILE FIXES — viewport, zoom, bottom nav
   ═══════════════════════════════════════════ */

/* Prevent zoom on input focus (iOS) */
input, select, textarea { font-size: 16px !important; }
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}

/* Bottom nav — full redesign for mobile */
.bot-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--surface);
  border-top: 1px solid var(--g200);
  z-index: 400;
  box-shadow: 0 -3px 16px rgba(0,0,0,.12);
  padding-bottom: env(safe-area-inset-bottom);
}
.bot-nav-inner {
  display: flex; height: 100%; align-items: center;
  max-width: 480px; margin: 0 auto;
}
.bni {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; cursor: pointer; border: none;
  background: transparent; padding: 4px 0; color: var(--g400);
  transition: color .15s; min-width: 0; touch-action: manipulation;
}
.bni svg { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.8; }
.bni span { font-size: 9px; font-weight: 600; white-space: nowrap; }
.bni.active { color: var(--pri); }

.bni-logo-btn {
  flex: 0 0 68px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; border: none; background: transparent;
  padding: 0; position: relative; bottom: 10px;
  touch-action: manipulation;
}
.bni-logo-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--g200);
  box-shadow: 0 2px 12px rgba(0,0,0,.15), 0 0 0 3px var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: transform .15s;
}
.bni-logo-circle img { width: 40px; height: 40px; object-fit: contain; }
.bni-logo-btn:active .bni-logo-circle { transform: scale(.92); }
.bni-logo-btn span { font-size: 8px; font-weight: 700; color: var(--pri); margin-top: 2px; }

/* ═══════════════════════════════════════════
   FULL FOOTER (all pages)
   ═══════════════════════════════════════════ */
.full-footer { background: var(--footer-bg); color: #fff; margin-top: 0; }
[data-theme="dark"] .full-footer { background: #0a0a18; }

/* ═══════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════ */
.legal-page { max-width: 820px; margin: 0 auto; padding: 40px 24px; }
.legal-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; color: var(--dark); }
.legal-page .legal-meta { font-size: 13px; color: var(--g500); margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--g200); }
.legal-page h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; color: var(--dark); }
.legal-page p { font-size: 15px; line-height: 1.8; color: var(--g700); margin-bottom: 14px; }
.legal-page ul { margin: 10px 0 14px 22px; }
.legal-page li { font-size: 15px; line-height: 1.75; color: var(--g700); margin-bottom: 6px; }
.legal-page a { color: var(--pri); }
.legal-highlight { background: var(--g50); border-left: 4px solid var(--pri); border-radius: 0 8px 8px 0; padding: 14px 20px; margin: 16px 0; }
.legal-highlight p { margin: 0; font-size: 14px; }

/* ═══════════════════════════════════════════
   BANNER / OGLAS SLIDER SYSTEM
   ═══════════════════════════════════════════ */

/* Leaderboard horizontal banner (728×90 equivalent) */
.banner-leaderboard {
  width: 100%; overflow: hidden;
  border-radius: 10px; background: var(--surface);
  box-shadow: var(--shadow); position: relative; margin: 16px 0;
}
.banner-leaderboard .banner-track {
  display: flex; transition: transform .5s ease;
}
.banner-leaderboard .banner-slide {
  min-width: 100%;
  display: flex; align-items: stretch; justify-content: center;
  overflow: hidden; cursor: pointer; border-radius: 10px;
  min-height: 90px;
}
.banner-leaderboard .banner-slide img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
  min-height: 90px;
}
.banner-leaderboard .banner-slide .banner-placeholder {
  width: 100%; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 16px 28px; flex-wrap: wrap;
}

/* Sidebar banner (300×250 and 300×600) */
.banner-sidebar {
  width: 100%; overflow: hidden;
  border-radius: 8px; background: var(--surface);
  box-shadow: var(--shadow); position: relative; margin-bottom: 16px;
}
.banner-sidebar .banner-track {
  display: flex; transition: transform .5s ease;
}
.banner-sidebar .banner-slide {
  min-width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer; border-radius: 8px;
}
.banner-sidebar.rect .banner-slide { aspect-ratio: 5/2; }
.banner-sidebar.square .banner-slide { aspect-ratio: 1; }
.banner-sidebar.tall .banner-slide { aspect-ratio: 1/2; min-height: 200px; }
.banner-sidebar .banner-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.banner-slide .banner-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--pri), var(--pri-d));
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: #fff; gap: 8px; padding: 16px;
  text-align: center;
}
.banner-placeholder .bp-logo { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: rgba(255,255,255,.2); padding: 4px; flex-shrink: 0; }
.banner-placeholder .bp-name { font-size: 16px; font-weight: 700; white-space: nowrap; }
.banner-placeholder .bp-tagline { font-size: 12px; opacity: .85; max-width: 320px; }
.banner-placeholder .bp-cta { background: #fff; color: var(--pri); padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-top: 6px; }

/* Banner nav dots */
.banner-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.banner-sidebar .banner-placeholder {
  flex-direction: column; text-align: center; gap: 8px; padding: 20px 16px;
}
.banner-sidebar .banner-placeholder .bp-tagline { max-width: 200px; text-align: center; }
.banner-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .2s; }
.banner-dot.active { background: #fff; width: 18px; border-radius: 3px; }
.banner-prev, .banner-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 2;
}
.banner-prev:hover, .banner-next:hover { background: rgba(0,0,0,.7); }
.banner-prev { left: 8px; }
.banner-next { right: 8px; }
.banner-prev svg, .banner-next svg { width: 14px; height: 14px; }
.banner-label {
  position: absolute; top: 6px; right: 8px;
  font-size: 9px; background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.8); padding: 2px 6px;
  border-radius: 10px; letter-spacing: .5px;
  text-transform: uppercase; pointer-events: none;
}

/* ═══════════════════════════════════════════
   JOB BOARD
   ═══════════════════════════════════════════ */
.jobboard-page { padding: 28px 0; }
.jobboard-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #f47216 100%);
  border-radius: 16px; padding: 40px; color: #fff; margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden;
}
.jobboard-hero::before { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: rgba(255,255,255,.05); border-radius: 50%; }
.jobboard-hero-txt h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.jobboard-hero-txt p { font-size: 14px; opacity: .85; }
.jobboard-hero-stats { display: flex; gap: 20px; flex-shrink: 0; }
.jb-stat { text-align: center; }
.jb-stat-num { font-size: 28px; font-weight: 800; }
.jb-stat-lbl { font-size: 11px; opacity: .75; text-transform: uppercase; letter-spacing: .8px; }

.jobboard-filters {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px;
  background: var(--surface); padding: 16px; border-radius: 10px;
  box-shadow: var(--shadow);
}
.jb-filter-inp {
  flex: 1; min-width: 160px; padding: 9px 14px;
  border: 1.5px solid var(--g200); border-radius: 7px;
  font-size: 14px; color: var(--dark); background: var(--surface); outline: none;
}
.jb-filter-inp:focus { border-color: var(--pri); }
.jb-filter-btn {
  padding: 9px 18px; background: var(--pri); color: #fff;
  border: none; border-radius: 7px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .2s; white-space: nowrap;
}
.jb-filter-btn:hover { background: var(--pri-d); }

.jobs-grid { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: var(--surface); border-radius: 12px;
  border: 1.5px solid var(--g200); padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; transition: all .2s;
  box-shadow: var(--shadow);
}
.job-card:hover { border-color: var(--pri); box-shadow: 0 4px 20px rgba(244,114,22,.12); transform: translateY(-1px); }
.job-logo {
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--g100); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--g200);
}
.job-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.job-logo-ph { font-size: 22px; font-weight: 800; color: var(--pri); }
.job-info { flex: 1; min-width: 0; }
.job-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-company { font-size: 13px; color: var(--g600); margin-bottom: 6px; }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.job-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600; background: var(--g100); color: var(--g700);
}
.job-tag.remote { background: #dcfce7; color: #15803d; }
.job-tag.hybrid { background: #fef9c3; color: #854d0e; }
.job-tag.onsite { background: #eff6ff; color: #1d4ed8; }
.job-tag.full { background: var(--pri-l); color: var(--pri-d); }
.job-tag.part { background: #f5f3ff; color: #6d28d9; }
.job-tag svg { width: 10px; height: 10px; }
.job-date { font-size: 11px; color: var(--g500); white-space: nowrap; flex-shrink: 0; text-align: right; }
.job-date .jd-new { display: inline-block; background: var(--pri); color: #fff; padding: 2px 7px; border-radius: 10px; font-size: 10px; font-weight: 700; margin-bottom: 4px; }

/* Job modal */
.job-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.job-modal-overlay.open { display: flex; }
.job-modal {
  background: var(--surface); border-radius: 16px;
  width: 100%; max-width: 640px; max-height: 88vh;
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } }
.job-modal-head {
  padding: 24px 24px 0; display: flex;
  align-items: flex-start; gap: 16px; position: sticky; top: 0;
  background: var(--surface); padding-bottom: 16px;
  border-bottom: 1px solid var(--g200);
}
.job-modal-logo { width: 64px; height: 64px; border-radius: 12px; background: var(--g100); border: 1px solid var(--g200); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.job-modal-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.job-modal-title { flex: 1; }
.job-modal-title h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.job-modal-title .jmt-company { font-size: 14px; color: var(--g600); margin-bottom: 8px; }
.job-modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--g100); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.job-modal-close svg { width: 16px; height: 16px; color: var(--g600); }
.job-modal-body { padding: 20px 24px 24px; }
.job-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.job-detail-item { background: var(--g50); border-radius: 8px; padding: 12px; }
.job-detail-item .jdi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--g500); margin-bottom: 4px; }
.job-detail-item .jdi-val { font-size: 14px; font-weight: 600; color: var(--dark); }
.job-modal-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.job-modal-section p, .job-modal-section li { font-size: 14px; line-height: 1.75; color: var(--g700); }
.job-modal-section ul { margin: 8px 0 16px 18px; }
.job-modal-section li { margin-bottom: 4px; }
.job-apply-bar { background: var(--g50); border-top: 1px solid var(--g200); padding: 16px 24px; display: flex; align-items: center; gap: 12px; }
.job-apply-btn { flex: 1; padding: 12px; background: var(--pri); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.job-apply-btn:hover { background: var(--pri-d); }
.job-apply-btn svg { width: 17px; height: 17px; }
.job-save-btn { width: 44px; height: 44px; border-radius: 8px; border: 1.5px solid var(--g200); background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.job-save-btn:hover { border-color: var(--pri); color: var(--pri); }
.job-save-btn svg { width: 18px; height: 18px; }

/* No jobs state */
.jobs-empty { text-align: center; padding: 48px 20px; color: var(--g500); }
.jobs-empty svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--g300); display: block; }

/* Job board mobile */
@media (max-width: 600px) {
  .job-card { flex-wrap: wrap; gap: 12px; }
  .job-date { width: 100%; text-align: left; }
  .jobboard-hero { flex-direction: column; padding: 24px 20px; }
  .jobboard-hero-stats { width: 100%; justify-content: space-around; }
  .job-detail-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   ADMIN — BANNERS
   ═══════════════════════════════════════════ */
.banner-admin-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 8px; border: 1.5px solid #e5e5e5;
  background: #fff; margin-bottom: 10px;
}
.banner-admin-thumb {
  width: 80px; height: 50px; border-radius: 6px;
  background: #f0f0f0; border: 1px solid #e5e5e5;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.banner-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.banner-admin-info { flex: 1; }
.banner-admin-name { font-size: 14px; font-weight: 700; }
.banner-admin-meta { font-size: 12px; color: #888; margin-top: 2px; }
.banner-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.banner-toggle input { opacity: 0; width: 0; height: 0; }
.banner-toggle-track { position: absolute; inset: 0; background: #ccc; border-radius: 12px; cursor: pointer; transition: .3s; }
.banner-toggle-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .3s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.banner-toggle input:checked + .banner-toggle-track { background: var(--pri); }
.banner-toggle input:checked + .banner-toggle-track::after { transform: translateX(20px); }

/* ═══════════════════════════════════════════
   ADMIN — JOBS
   ═══════════════════════════════════════════ */
.job-admin-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 8px; border: 1.5px solid #e5e5e5;
  background: #fff; margin-bottom: 10px;
}
.job-admin-logo { width: 48px; height: 48px; border-radius: 8px; background: #f0f0f0; border: 1px solid #e5e5e5; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font-size: 18px; font-weight: 800; color: var(--pri); }
.job-admin-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

/* Mobile full footer */
@media (max-width: 768px) {
  .full-footer .ftr-col:nth-child(3),
  .full-footer .ftr-col:nth-child(4) { display: none; }
  .full-footer .ftr-grid { grid-template-columns: 1fr; gap: 20px; padding: 28px 18px 20px; }
  .jobboard-hero { padding: 22px 18px; }
  .jobboard-hero-txt h1 { font-size: 20px; }
}

/* ═══════════════════════════════════════════
   GALLERY — lightbox & grid
   ═══════════════════════════════════════════ */
.art-gallery {
  margin: 32px 0;
  border: 1.5px solid var(--g200); border-radius: 12px;
  overflow: hidden; background: var(--g100);
}
.art-gallery-title {
  font-size: 12px; font-weight: 700; color: var(--g600);
  text-transform: uppercase; letter-spacing: .8px;
  padding: 12px 16px; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border-bottom: 1.5px solid var(--g200);
}
.art-gallery-title svg { width: 15px; height: 15px; color: var(--pri); }
.gallery-grid {
  display: grid; gap: 3px; padding: 3px;
  grid-template-columns: repeat(3, 1fr);
}
.gallery-grid.g-1 { grid-template-columns: 1fr; }
.gallery-grid.g-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.g-4 { grid-template-columns: repeat(4, 1fr); }

/* 1 slika — šira */
.gallery-grid.g-1 .gallery-item { aspect-ratio: 16/9; border-radius: 8px; }
/* 2 slike — kvadrat */
.gallery-grid.g-2 .gallery-item { aspect-ratio: 1/1; }
/* 3+ slika — fiksna visina thumbnails */
.gallery-item {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 1/1; cursor: pointer; background: var(--g200);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease; display: block;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gal-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 8px;
  transition: background .2s;
}
.gallery-item:hover .gal-overlay { background: rgba(0,0,0,.35); }
.gallery-item .gal-overlay svg {
  width: 22px; height: 22px; color: #fff;
  opacity: 0; transform: scale(.7) translateY(4px); transition: all .2s;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.gallery-item:hover .gal-overlay svg { opacity: 1; transform: scale(1) translateY(0); }
.gallery-item .gal-more {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 800;
  letter-spacing: -1px;
  backdrop-filter: blur(2px);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.96);
  z-index: 2000; display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap {
  position: relative; flex: 1; width: 100%;
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
}
.lightbox-img-wrap img {
  max-width: 88vw; max-height: 72vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  user-select: none; transition: opacity .2s;
}
.lightbox-close {
  position: fixed; top: 14px; right: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s; z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: all .2s; z-index: 10;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-prev svg, .lightbox-next svg { width: 22px; height: 22px; }
/* Sakrij strelice ako je samo jedna slika */
.lightbox-prev[style*="none"], .lightbox-next[style*="none"] { display: none; }
.lightbox-info {
  text-align: center; margin-top: 12px; flex-shrink: 0;
}
.lightbox-counter {
  color: rgba(255,255,255,.55); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px;
}
.lightbox-caption {
  color: rgba(255,255,255,.8); font-size: 14px;
  max-width: 600px; margin: 0 auto;
}
/* Thumbnail strip */
.lightbox-thumbs {
  display: flex; gap: 5px; margin-top: 14px; flex-shrink: 0;
  max-width: min(80vw, 600px); overflow-x: auto; scrollbar-width: none;
  padding: 3px;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumb {
  width: 56px; height: 42px; border-radius: 5px; overflow: hidden;
  flex-shrink: 0; cursor: pointer; opacity: .45;
  border: 2px solid transparent; transition: all .2s;
}
.lightbox-thumb:hover { opacity: .75; }
.lightbox-thumb.active { opacity: 1; border-color: var(--pri); transform: scale(1.05); }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Admin gallery editor */
.gal-editor { border: 1.5px solid #e5e5e5; border-radius: 8px; overflow: hidden; }
.gal-editor-head {
  background: #f8f8f8; padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #e5e5e5;
}
.gal-editor-head h4 { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.gal-editor-head h4 svg { width: 14px; height: 14px; color: var(--pri); }
.gal-editor-body { padding: 14px; }
.gal-items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; min-height: 48px; }
.gal-item-thumb {
  width: 72px; height: 56px; border-radius: 5px; overflow: hidden;
  border: 1.5px solid #e5e5e5; position: relative; flex-shrink: 0;
}
.gal-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-item-thumb .gal-del {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; background: #ef4444; border: none;
  border-radius: 50%; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  line-height: 1;
}
/* Gallery action buttons (Upload + From Library) */
.gal-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.gal-upload-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px; background: var(--pri); color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: opacity .2s; white-space: nowrap;
}
.gal-upload-btn:hover { opacity: .85; }
.gal-upload-btn:disabled { opacity: .5; cursor: not-allowed; }
.gal-upload-btn.loading { opacity: .7; pointer-events: none; }
.gal-lib-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px; background: #fff; color: var(--pri);
  border: 1.5px solid var(--pri); border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .2s; white-space: nowrap;
}
.gal-lib-btn:hover { background: #fff4ed; }
.gal-url-sep { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: #bbb; font-size: 11px; }
.gal-url-sep::before, .gal-url-sep::after { content: ''; flex: 1; height: 1px; background: #e5e5e5; }
.gal-add-row { display: flex; gap: 8px; }
.gal-add-inp { flex: 1; padding: 8px 12px; border: 1.5px solid #e5e5e5; border-radius: 6px; font-size: 13px; outline: none; }
.gal-add-inp:focus { border-color: var(--pri); }
.gal-add-btn { padding: 8px 14px; background: #f0f0f0; color: #555; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gal-add-btn:hover { background: #e0e0e0; }

/* Mobile gallery */
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.g-4 { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ═══════════════════════════════════════════
   MEDIA LIBRARY
   ═══════════════════════════════════════════ */
.media-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 2000; display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.media-modal-overlay.open { display: flex; }
.media-modal {
  background: #fff; border-radius: 12px; width: 100%;
  max-width: 860px; max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  overflow: hidden;
}
.media-modal-head {
  padding: 16px 20px; border-bottom: 1px solid #e5e5e5;
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  background: #fff;
}
.media-modal-head h2 { font-size: 16px; font-weight: 700; flex: 1; }
.media-modal-tabs { display: flex; gap: 4px; }
.media-tab {
  padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
  color: #888; cursor: pointer; transition: all .15s; border: none; background: transparent;
}
.media-tab.active { background: var(--pri); color: #fff; }
.media-modal-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* Upload tab */
.media-upload-zone {
  margin: 20px; border: 2px dashed #ccc; border-radius: 10px;
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: all .2s; background: #fafafa;
}
.media-upload-zone:hover, .media-upload-zone.drag { border-color: var(--pri); background: #fff4ed; }
.media-upload-zone.uploading { border-color: var(--pri); background: #fff4ed; pointer-events: none; }
.media-upload-zone svg { width: 40px; height: 40px; color: #ccc; margin: 0 auto 12px; display: block; }
.media-upload-zone p { font-size: 14px; color: #888; margin-bottom: 4px; }
.media-upload-zone strong { color: var(--pri); }
.media-upload-zone small { font-size: 12px; color: #aaa; }
.media-upload-zone.uploading p { color: var(--pri); }
.media-upload-input { display: none; }
/* Upload progress bar */
.upload-progress {
  width: 100%; height: 4px; background: #e5e5e5; border-radius: 2px; margin-top: 12px; overflow: hidden;
}
.upload-progress-bar {
  height: 100%; background: var(--pri); border-radius: 2px;
  animation: upload-pulse 1.2s ease-in-out infinite;
}
@keyframes upload-pulse {
  0%   { width: 10%; opacity: 1; }
  50%  { width: 80%; opacity: .8; }
  100% { width: 95%; opacity: 1; }
}
.media-url-row { display: flex; gap: 10px; margin: 0 20px 16px; }
.media-url-inp {
  flex: 1; padding: 10px 14px; border: 1.5px solid #e5e5e5;
  border-radius: 8px; font-size: 13px; outline: none; font-family: var(--font);
}
.media-url-inp:focus { border-color: var(--pri); }
.media-url-btn {
  padding: 10px 18px; background: var(--pri); color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background .2s;
}
.media-url-btn:hover { background: var(--pri-d); }

/* Library tab */
.media-library-toolbar {
  padding: 12px 20px; border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.media-search {
  flex: 1; max-width: 240px; padding: 7px 12px;
  border: 1.5px solid #e5e5e5; border-radius: 6px; font-size: 13px;
  outline: none; font-family: var(--font);
}
.media-search:focus { border-color: var(--pri); }
.media-sort {
  padding: 7px 10px; border: 1.5px solid #e5e5e5; border-radius: 6px;
  font-size: 12px; outline: none; font-family: var(--font); cursor: pointer;
}
.media-count { font-size: 12px; color: #888; margin-left: auto; }
.media-grid {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  align-content: start;
  scrollbar-width: thin; scrollbar-color: #ccc transparent;
}
.media-grid::-webkit-scrollbar { width: 4px; }
.media-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.media-item {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  cursor: pointer; border: 2.5px solid transparent;
  transition: all .15s; position: relative; background: #f0f0f0;
}
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item:hover { border-color: var(--pri); transform: scale(1.02); }
.media-item.selected { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(244,114,22,.2); }
.media-item.selected::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(244,114,22,.15);
}
.media-item-check {
  position: absolute; top: 5px; right: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--pri); border: 2px solid #fff;
  display: none; align-items: center; justify-content: center;
  z-index: 2;
}
.media-item.selected .media-item-check { display: flex; }
.media-item-check svg { width: 10px; height: 10px; color: #fff; }
.media-item-del {
  position: absolute; bottom: 5px; right: 5px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(239,68,68,.9); border: none; cursor: pointer;
  display: none; align-items: center; justify-content: center; z-index: 2;
}
.media-item:hover .media-item-del { display: flex; }
.media-item-del svg { width: 11px; height: 11px; color: #fff; }
.media-empty {
  grid-column: 1/-1; text-align: center; padding: 40px;
  color: #aaa; font-size: 13px;
}
.media-empty svg { width: 36px; height: 36px; margin: 0 auto 10px; display: block; color: #ddd; }

/* Footer */
.media-modal-foot {
  padding: 14px 20px; border-top: 1px solid #e5e5e5;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; background: #fafafa;
}
.media-selected-info { font-size: 13px; color: #666; }
.media-selected-info strong { color: var(--dark); }
.media-foot-btns { display: flex; gap: 9px; }
.media-cancel { padding: 9px 16px; background: #fff; color: #666; border: 1.5px solid #e5e5e5; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; }
.media-confirm { padding: 9px 18px; background: var(--pri); color: #fff; border: none; border-radius: 7px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s; }
.media-confirm:hover { background: var(--pri-d); }
.media-confirm:disabled { opacity: .5; cursor: not-allowed; }

/* Image picker button (replaces URL inputs) */
.img-picker-wrap { position: relative; }
.img-picker-preview {
  width: 100%; border: 1.5px dashed #ccc; border-radius: 8px;
  overflow: hidden; transition: border-color .2s;
  min-height: 80px; display: flex; align-items: center; justify-content: center;
  background: #fafafa; position: relative;
}
.img-picker-preview img { width: 100%; height: 160px; object-fit: cover; display: block; }
.img-picker-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 16px; color: #aaa; text-align: center; width: 100%;
}
.img-picker-placeholder svg { width: 28px; height: 28px; color: #ccc; }
.img-picker-placeholder small { font-size: 11px; }
/* Two-button row inside naslovna slika placeholder */
.img-picker-opts {
  display: flex; gap: 8px; width: 100%; margin-top: 4px;
}
.img-opt-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 8px; border-radius: 8px; border: 1.5px solid #e5e5e5;
  background: #fff; cursor: pointer; transition: border-color .2s, background .2s;
  font-family: inherit;
}
.img-opt-btn:hover { border-color: var(--pri); background: #fff4ed; }
.img-opt-btn svg { width: 20px; height: 20px; color: var(--pri); flex-shrink: 0; }
.img-opt-btn span { font-size: 12px; font-weight: 700; color: #333; }
.img-opt-btn small { font-size: 10px; color: #888; }
.img-picker-clear {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.img-picker-clear svg { width: 12px; height: 12px; color: #fff; }
.img-picker-hint { font-size: 11px; color: #888; margin-top: 5px; }

/* Multi-pick for gallery */
.media-multi-badge {
  position: absolute; top: 5px; left: 5px;
  background: var(--pri); color: #fff; border-radius: 50%;
  width: 20px; height: 20px; display: none; align-items: center;
  justify-content: center; font-size: 10px; font-weight: 800; z-index: 2;
}
.media-item.selected .media-multi-badge { display: flex; }

@media (max-width: 680px) {
  .media-modal { max-height: 92vh; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  #searchInput::placeholder {
    color: transparent;
  }
}
@media (max-width: 768px) {
  .search-box {
    padding: 7px 7px;
  }
}
