/* =====================================================================
   MERILO — dizajn sistem
   Manrope · petrol / tirkiz · light & dark · mobile-first
   ===================================================================== */

:root {
  --petrol-900: #0a3540;
  --petrol-800: #0c4150;
  --petrol-700: #0f4c5c;
  --petrol-600: #155e70;
  --teal-500: #19a7a0;
  --teal-400: #2cc3b9;
  --teal-100: #d9f3f1;
  --teal-50:  #eef9f8;

  --bg: #f5f7f7;
  --surface: #ffffff;
  --surface-2: #f0f4f4;
  --text: #13232a;
  --text-2: #4a5d63;
  --muted: #6b7c80;
  --line: #e1e7e8;
  --line-2: #cfd9db;

  --primary: var(--petrol-700);
  --primary-hover: var(--petrol-800);
  --on-primary: #ffffff;
  --accent: var(--teal-500);
  --accent-soft: var(--teal-50);
  --bar: #cdeeea;
  --bar-lead: #8fdcd4;

  --ok: #137a4b;    --ok-bg: #e6f5ee;
  --err: #b42318;   --err-bg: #fdecea;
  --info: #155e70;  --info-bg: #e7f2f4;
  --warn: #9a5b00;  --warn-bg: #fdf3e1;
  --sponsor: #7a4b00; --sponsor-bg: #fbefd9;

  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 48, .05), 0 1px 1px rgba(16, 40, 48, .03);
  --shadow-lg: 0 10px 30px rgba(16, 40, 48, .12);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --topbar-h: 60px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c171b;
  --surface: #12212a;
  --surface-2: #172a33;
  --text: #e6eef0;
  --text-2: #b4c4c8;
  --muted: #8ea1a6;
  --line: #213640;
  --line-2: #2d4651;
  --primary: #2cc3b9;
  --primary-hover: #49d3ca;
  --on-primary: #06262b;
  --accent: #2cc3b9;
  --accent-soft: #143238;
  --bar: #174047;
  --bar-lead: #1f6a6c;
  --ok: #4fd39a;    --ok-bg: #0f2e23;
  --err: #ff8a7d;   --err-bg: #3a1714;
  --info: #7fd5e3;  --info-bg: #11303a;
  --sponsor: #f2c27a; --sponsor-bg: #3a2a10;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c171b; --surface: #12212a; --surface-2: #172a33; --text: #e6eef0; --text-2: #b4c4c8; --muted: #8ea1a6;
    --line: #213640; --line-2: #2d4651; --primary: #2cc3b9; --primary-hover: #49d3ca; --on-primary: #06262b;
    --accent: #2cc3b9; --accent-soft: #143238; --bar: #174047; --bar-lead: #1f6a6c;
    --ok: #4fd39a; --ok-bg: #0f2e23; --err: #ff8a7d; --err-bg: #3a1714; --info: #7fd5e3; --info-bg: #11303a;
    --sponsor: #f2c27a; --sponsor-bg: #3a2a10; --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 10px 30px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
small { font-size: .82em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
[hidden] { display: none !important; }
.ic { flex-shrink: 0; vertical-align: -.15em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--text-2); }
.center { text-align: center; }
.hint { font-size: .85rem; color: var(--muted); margin: .4em 0 0; }
.note { font-size: .8rem; color: var(--muted); margin: .8em 0 0; line-height: 1.5; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
.wrap--xs { max-width: 460px; }
.main { flex: 1; padding: 20px 0 96px; }
@media (min-width: 900px) { .main { padding-bottom: 56px; } .wrap { padding: 0 24px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--soft { background: var(--accent-soft); color: var(--primary); }
.btn--soft:hover { background: var(--teal-100); color: var(--primary); }
:root[data-theme="dark"] .btn--soft:hover { background: #1b3d44; }
.btn--sm { padding: 8px 12px; font-size: .88rem; }
.btn--lg { padding: 14px 22px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.iconbtn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer;
}
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--primary); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { height: var(--topbar-h); display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; text-decoration: none !important; }
.mainnav { display: none; gap: 2px; }
.mainnav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; font-size: .93rem; text-decoration: none; }
.mainnav a:hover { background: var(--surface-2); color: var(--text); }
.mainnav a.is-active { color: var(--primary); background: var(--accent-soft); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.searchbox { display: none; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 10px; height: 38px; color: var(--muted); }
.searchbox input { border: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--text); width: 180px; outline: none; }
.only-mobile { display: inline-grid; }
.hide-xs { display: none; }
@media (min-width: 520px) { .hide-xs { display: inline; } }
@media (min-width: 900px) {
  .mainnav { display: flex; }
  .searchbox { display: flex; }
  .only-mobile { display: none; }
}
.avatarbtn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar--txt {
  display: inline-grid; place-items: center; font-weight: 800; font-size: .75em; color: #fff;
  background: hsl(var(--h, 190) 45% 38%); line-height: 1;
}
.avatarbtn .avatar--txt { font-size: .85rem; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px;
  display: none; z-index: 60;
}
.dropdown__menu--right { left: auto; right: 0; }
.dropdown.is-open .dropdown__menu { display: block; }
.dropdown__menu a, .dropdown__menu button {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 10px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; font-size: .93rem; text-align: left; cursor: pointer;
}
.dropdown__menu a:hover, .dropdown__menu button:hover { background: var(--surface-2); }
.dropdown__menu .ic { margin-top: 3px; color: var(--primary); }
.dropdown__menu small { display: block; color: var(--muted); font-size: .8rem; }
.dropdown__head { padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dropdown__head small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .dropdown__menu:not(.dropdown__menu--right) { left: auto; right: -60px; } }

/* Mobile tabbar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 0; }
.tabbar a.is-active { color: var(--primary); }
.tabbar__create { justify-content: center; }
.tabbar__create .ic { width: 44px; height: 44px; padding: 11px; background: var(--primary); color: var(--on-primary); border-radius: 50%; margin-top: -2px; }
@media (min-width: 900px) { .tabbar { display: none; } }

.netstatus { background: var(--warn-bg); color: var(--warn); text-align: center; font-size: .85rem; font-weight: 600; padding: 6px; }

/* ---------- Cards, chips, alerts ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; background: var(--accent-soft); color: var(--primary); text-decoration: none !important; white-space: nowrap;
  border: 1px solid transparent;
}
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--primary); color: var(--on-primary); }
.chip--muted { background: var(--surface-2); color: var(--muted); }
.chip--sponsor { background: var(--sponsor-bg); color: var(--sponsor); }
.status { font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--open { color: var(--ok); }
.status--closed { color: var(--muted); }
.alert { display: flex; gap: 8px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-sm); font-size: .93rem; font-weight: 600; margin-bottom: 16px; }
.alert .ic { margin-top: 3px; }
.alert--ok { background: var(--ok-bg); color: var(--ok); }
.alert--err { background: var(--err-bg); color: var(--err); }
.alert--info { background: var(--info-bg); color: var(--info); }

/* ---------- Hero ---------- */
.hero { padding: 12px 0 28px; }
.hero__in { display: grid; gap: 28px; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .6em; }
.hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.3rem); margin-bottom: .3em; letter-spacing: -.03em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 22px; }
.hero__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: .9rem; color: var(--text-2); font-weight: 600; }
.hero__steps strong { color: var(--accent); margin-right: 8px; font-size: .78rem; }
.hero__art { display: none; }
@media (min-width: 900px) {
  .hero { padding: 28px 0 40px; }
  .hero__in { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .hero__art { display: block; }
}
.mock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); transform: rotate(-1deg); }
.mock__tag { position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); padding: 3px 8px; border-radius: 999px; }
.mock__q { font-weight: 800; font-size: 1.1rem; margin: 0 60px 16px 0; }
.mock__foot { font-size: .8rem; color: var(--muted); margin-top: 14px; display: flex; gap: 6px; align-items: center; }

/* ---------- Sections & grids ---------- */
.section { margin: 28px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__head h2 { display: flex; gap: 8px; align-items: center; margin: 0; }
.section__head h2 .ic { color: var(--accent); }
.section__head a { font-size: .88rem; font-weight: 700; }
.section__title { margin: 28px 0 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.cols { display: grid; gap: 24px; }
@media (min-width: 1000px) { .cols { grid-template-columns: 1fr 330px; } }
.sidecol { display: flex; flex-direction: column; gap: 14px; }
.cols .sidecol { margin-top: 28px; }
@media (min-width: 1000px) { .cols .sidecol { margin-top: 62px; } }

.filterbar { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; align-items: center; }
.filterbar::-webkit-scrollbar { display: none; }
.pill {
  padding: 7px 13px; border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--text-2); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none !important;
}
.pill:hover { border-color: var(--line-2); color: var(--text); }
.pill.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pill--sm { padding: 5px 11px; font-size: .8rem; }
.sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; flex-shrink: 0; }
.filters { margin-bottom: 6px; }
.catscroll { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.catscroll::-webkit-scrollbar { display: none; }
.catgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .catgrid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .catgrid { grid-template-columns: repeat(5, 1fr); } }
.catlink { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; color: var(--text); font-size: .92rem; text-decoration: none !important; }
.catlink:hover { border-color: var(--accent); color: var(--primary); }

.pagehead { margin: 8px 0 18px; }
.pagehead h1 { margin-bottom: .2em; }
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 6px 6px 14px; margin-bottom: 14px; color: var(--muted); }
.searchbar input { flex: 1; border: 0; outline: none; background: transparent; font: inherit; color: var(--text); min-width: 0; }

.empty { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-2); }

/* ---------- Poll card ---------- */
.pcard { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pcard--sponsored { border-color: var(--sponsor-bg); }
.pcard__meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pcard__cc { margin-left: auto; font-size: .72rem; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.pcard__q { font-size: 1.06rem; font-weight: 800; margin: 0; line-height: 1.35; }
.pcard__q a { color: var(--text); text-decoration: none; }
.pcard__q a:hover { color: var(--primary); }
.pcard__opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: var(--text-2); }
.pcard__opts li { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pcard__opts .dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; }
.pcard__opts .more { color: var(--muted); font-size: .8rem; padding-left: 16px; }
.pcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); padding-top: 4px; }
.pcard__author { display: flex; gap: 6px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.pcard__stats { display: flex; gap: 10px; flex-shrink: 0; }
.pcard__stats span { display: inline-flex; gap: 4px; align-items: center; }

.prow { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none !important; }
.prow:first-of-type { border-top: 0; }
.prow__q { display: block; color: var(--text); font-weight: 700; font-size: .92rem; line-height: 1.35; }
.prow:hover .prow__q { color: var(--primary); }
.prow__meta { display: flex; gap: 10px; font-size: .76rem; color: var(--muted); margin-top: 4px; }
.prow__meta span { display: inline-flex; gap: 4px; align-items: center; }

.side { padding: 16px; }
.side h3 { display: flex; gap: 8px; align-items: center; font-size: .95rem; margin-bottom: 8px; }
.side h3 .ic { color: var(--accent); }
.side p { font-size: .9rem; color: var(--text-2); }
.side--accent { background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.side__more { display: inline-block; margin-top: 8px; font-size: .86rem; font-weight: 700; }
.author { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--text); text-decoration: none !important; }
.author small { display: block; color: var(--muted); }
.author:hover strong { color: var(--primary); }

/* ---------- Bars (results) ---------- */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden;
  border: 1px solid var(--line);
}
.bar__fill { position: absolute; inset: 0 auto 0 0; background: var(--bar); border-radius: inherit; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bar--lead .bar__fill { background: var(--bar-lead); }
.bar--mine { border-color: var(--accent); }
.bar__label, .bar__pct { position: relative; z-index: 1; }
.bar__label { font-weight: 700; display: flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.bar__label .ic { color: var(--primary); }
.bar__pct { font-weight: 800; white-space: nowrap; text-align: right; display: flex; flex-direction: column; line-height: 1.15; }
.bar__pct small { font-weight: 600; color: var(--muted); font-size: .72rem; }
.mock .bar { min-height: 40px; margin-bottom: 8px; }

/* ---------- Poll page ---------- */
.pollpage { display: grid; gap: 18px; }
@media (min-width: 1000px) { .pollpage { grid-template-columns: 1fr 330px; align-items: start; } }
.poll { padding: 20px; }
@media (min-width: 640px) { .poll { padding: 28px; } }
.poll__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.poll__q { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: .4em; overflow-wrap: anywhere; }
.poll__desc { color: var(--text-2); margin-bottom: 14px; overflow-wrap: anywhere; }
.poll__img { border-radius: var(--radius); margin: 6px 0 16px; max-height: 420px; width: 100%; object-fit: cover; }
.poll__by { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.poll__by a { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--text); }
.poll__by span { display: inline-flex; gap: 4px; align-items: center; }
.poll__owner { margin-top: 16px; }

.choices { display: grid; gap: 8px; margin: 8px 0 16px; }
.choices--yesno { grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); transition: border-color .12s, background .12s; }
.choice:hover { border-color: var(--accent); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box { width: 20px; height: 20px; border: 2px solid var(--line-2); border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; transition: all .12s; }
.choice input[type="checkbox"] + .choice__box { border-radius: 5px; }
.choice input:checked + .choice__box { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--surface); }
.choice input[type="checkbox"]:checked + .choice__box { box-shadow: none; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--accent-soft); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice__label { font-weight: 700; overflow-wrap: anywhere; }
.choices--yesno .choice { justify-content: center; padding: 18px; }

.results__you { display: flex; gap: 6px; align-items: center; color: var(--ok); font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.results__total { font-size: .85rem; color: var(--muted); margin: 12px 0; }
.results__hidden { text-align: center; padding: 28px 16px; background: var(--surface-2); border-radius: var(--radius); color: var(--text-2); }
.results__hidden .ic { color: var(--muted); margin-bottom: 6px; }
.breakdown { margin-top: 16px; padding: 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.breakdown h4 { font-size: .86rem; margin-bottom: 8px; }
.breakdown ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 16px; font-size: .86rem; }
.breakdown li { display: flex; justify-content: space-between; gap: 8px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .88rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* Share */
.share { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share__label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.share__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.sbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  cursor: pointer; font: inherit; font-size: .85rem; font-weight: 700; text-decoration: none !important; transition: all .12s;
}
.sbtn:hover { color: #fff; border-color: transparent; }
.sbtn--native:hover, .sbtn--copy:hover { background: var(--primary); color: var(--on-primary); }
.sbtn--facebook:hover { background: #1877f2; }
.sbtn--whatsapp:hover { background: #25d366; }
.sbtn--viber:hover { background: #7360f2; }
.sbtn--telegram:hover { background: #229ed9; }
.sbtn--x:hover { background: #111; }
.sbtn--reddit:hover { background: #ff4500; }

/* ---------- Forms ---------- */
.form { padding: 20px; }
@media (min-width: 640px) { .form { padding: 28px; } }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.field--inline { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; }
.field--inline label { font-weight: 600; font-size: .88rem; }
.field--inline select { width: auto; }
.opt { font-weight: 500; color: var(--muted); font-size: .85em; }
input[type="text"], input[type="email"], input[type="search"]:not(.searchbox input):not(.searchbar input), input[type="datetime-local"], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 12px; transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 48px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type="file"] { font: inherit; font-size: .9rem; color: var(--text-2); }
input[type="datetime-local"] { margin-top: 8px; }
.field__err { color: var(--err); font-size: .85rem; font-weight: 600; margin: 6px 0 0; }
.counter { display: block; text-align: right; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.row2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.segmented { display: flex; gap: 6px; flex-wrap: wrap; }
.segmented label { flex: 1; min-width: 110px; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 10px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem; color: var(--text-2); }
.segmented input:checked + span { border-color: var(--primary); background: var(--accent-soft); color: var(--primary); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.optlist { display: grid; gap: 8px; margin-bottom: 10px; }
.optrow { display: flex; gap: 6px; align-items: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 10px 0; cursor: pointer; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
details.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0 18px; padding: 4px 0; }
details.more summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--primary); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "− "; }
details.more[open] { padding-bottom: 10px; }
.prefixed { display: flex; align-items: stretch; }
.prefixed span { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); font-weight: 700; }
.prefixed input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }

/* Auth */
.authcard { padding: 28px 24px; margin-top: 12px; }
.authcard h1 { font-size: 1.5rem; }
.bigicon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--primary); margin-bottom: 14px; }
.bigicon--err { background: var(--err-bg); color: var(--err); }

/* Profile */
.profilehead { padding: 22px; display: grid; gap: 16px; align-items: center; grid-template-columns: auto 1fr; }
.profilehead h1 { font-size: 1.5rem; margin: 0; }
.profilehead p { margin: 4px 0 0; }
.stats { grid-column: 1 / -1; display: flex; gap: 24px; margin: 0; }
.stats dt { font-size: .78rem; color: var(--muted); }
.stats dd { margin: 0; font-weight: 800; font-size: 1.2rem; }
@media (min-width: 760px) { .profilehead { grid-template-columns: auto 1fr auto; } .stats { grid-column: auto; } }

/* Prose (legal) */
.prose { padding: 24px; }
@media (min-width: 640px) { .prose { padding: 40px; } }
.prose h2 { margin-top: 1.8em; font-size: 1.15rem; }
.prose h3 { margin-top: 1.2em; font-size: 1rem; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.soon, .errorpage { padding: 40px 24px; margin-top: 12px; }
.errorpage__code { font-size: 3.4rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: .2em; }

/* Pager */
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 26px 0 0; font-size: .9rem; color: var(--muted); }
.pager a { font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0 90px; font-size: .9rem; }
@media (min-width: 900px) { .footer { padding-bottom: 28px; } }
.footer__in { display: grid; gap: 18px; }
@media (min-width: 900px) { .footer__in { grid-template-columns: 1.4fr 1fr auto; align-items: start; } }
.footer__brand p { color: var(--muted); margin: 8px 0 0; max-width: 360px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__links a, .footer__links button { color: var(--text-2); font-weight: 600; font-size: .9rem; }
.footer__tools { display: flex; align-items: center; gap: 12px; }
.langswitch { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: .85rem; }
.langswitch a { color: var(--muted); }
.langswitch a.is-active { color: var(--primary); }
.footer__legal { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
[data-theme-toggle] .ic-dark { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .ic-dark { display: inline; }
:root[data-theme="dark"] [data-theme-toggle] .ic-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-theme-toggle] .ic-dark { display: inline; }
  :root:not([data-theme="light"]) [data-theme-toggle] .ic-light { display: none; }
}

/* ---------- Consent & toast ---------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 80; display: flex; justify-content: center; }
@media (min-width: 900px) { .consent { bottom: 20px; left: 20px; right: auto; max-width: 440px; } }
.consent__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px; width: 100%; }
.consent__box h2 { font-size: 1rem; margin-bottom: .3em; }
.consent__box p { font-size: .88rem; color: var(--text-2); margin-bottom: 12px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent__opts { display: grid; gap: 10px; margin-bottom: 14px; }
.switch { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: start; cursor: pointer; font-size: .88rem; }
.switch input { grid-row: span 2; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.switch span { display: none; }
.switch small { color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); z-index: 90;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: all .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-err { background: var(--err); color: #fff; }
@media (min-width: 900px) { .toast { bottom: 30px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Phase 3 — prognoze, rang-lista, admin
   ===================================================================== */
.pstatus { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pstatus::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pstatus--active { background: var(--ok-bg); color: var(--ok); }
.pstatus--closed, .pstatus--awaiting { background: var(--warn-bg); color: var(--warn); }
.pstatus--resolved { background: var(--info-bg); color: var(--info); }
.pstatus--cancelled, .pstatus--removed { background: var(--surface-2); color: var(--muted); }
.pstatus--disputed { background: var(--err-bg); color: var(--err); }

.prcard__question { font-size: .88rem; color: var(--text-2); margin: 0; line-height: 1.45; }
.prcard__outcome { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .86rem; background: var(--info-bg); color: var(--info); padding: 8px 10px; border-radius: var(--radius-sm); }
.prcard__outcome strong { color: var(--text); }

.pred__question { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 14px; overflow-wrap: anywhere; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 20px; }
.timeline__item { position: relative; padding: 10px 12px 10px 14px; background: var(--surface-2); border-radius: var(--radius-sm); border-left: 3px solid var(--line-2); min-width: 0; }
.timeline__item small { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.timeline__item strong { display: block; font-size: .88rem; }
.timeline__item.is-now { border-left-color: var(--accent); background: var(--accent-soft); }
.timeline__item.is-done { border-left-color: var(--line-2); opacity: .75; }
.timeline__left { display: block; font-size: .76rem; color: var(--primary); font-weight: 700; margin-top: 2px; }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

.outcome { padding: 16px; border-radius: var(--radius); background: var(--info-bg); margin-bottom: 18px; border: 1px solid transparent; }
.outcome small { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.outcome > strong { display: block; font-size: 1.35rem; font-weight: 800; margin: 2px 0; }
.outcome p { margin: 6px 0 0; display: flex; gap: 6px; align-items: center; font-weight: 700; }
.outcome--correct { background: var(--ok-bg); border-color: var(--ok); }
.outcome--correct p { color: var(--ok); }
.outcome--cancelled { background: var(--surface-2); }

.voteform__title { font-size: 1rem; margin-bottom: 10px; }
.numinput { display: flex; align-items: stretch; max-width: 360px; }
.numinput input { font-size: 1.3rem !important; font-weight: 800; padding: 12px 14px !important; }
.numinput span { display: grid; place-items: center; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 700; color: var(--text-2); }
.numinput input:not(:last-child) { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }
.voteform .numinput { margin-bottom: 6px; }
.voteform .numinput + .hint { margin-bottom: 16px; }

.crowd__title { font-size: .95rem; margin: 6px 0 10px; }
.numstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .numstats { grid-template-columns: repeat(4, 1fr); } }
.numstats div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.numstats small { display: block; font-size: .74rem; color: var(--muted); font-weight: 700; }
.numstats strong { font-size: 1rem; }
.bar--won { border-color: var(--ok); }
.bar--won .bar__label .ic { color: var(--ok); }

.subform { margin-top: 18px; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.subform label { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.subform label .ic { margin-top: 3px; color: var(--accent); }
.subform__row { display: flex; gap: 8px; }
.subform__row input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .subform__row { flex-direction: column; } }
.subnote { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--text-2); margin-top: 14px; }
.subnote .ic { color: var(--accent); }

.rules { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.rules h2 { font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.rules h2 .ic { color: var(--accent); }
.rules dl { margin: 0; display: grid; gap: 10px; }
.rules dt { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.rules dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: .93rem; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.history li { padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); overflow-wrap: anywhere; }

.pagehead--split { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.pagehead__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pagehead h1 .ic { color: var(--accent); vertical-align: -3px; }
.howto { padding: 20px; margin-top: 28px; }
.howto h2 { font-size: 1.05rem; }
.howto ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: .93rem; }
.howto strong { color: var(--text); }
.tabs { margin: 20px 0 14px; }

/* Rang-lista */
.mystats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); overflow: hidden; margin: 14px 0 18px; }
@media (min-width: 760px) { .mystats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.mystats > div { background: var(--surface); padding: 14px 16px; }
.mystats small { display: block; font-size: .74rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.mystats strong { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.mystats span { font-size: .78rem; color: var(--muted); }
.lbfilters { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.lbfilters select { width: auto; min-width: 170px; padding: 8px 10px; font-size: .9rem; }
.lbtable { overflow-x: auto; }
.lbtable table, .admintable table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lbtable th, .admintable th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.lbtable td, .admintable td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lbtable tr:last-child td, .admintable tr:last-child td { border-bottom: 0; }
.lbtable .num, .admintable .num { text-align: right; white-space: nowrap; }
.lbtable tr.is-me td { background: var(--accent-soft); }
.rank { font-weight: 800; width: 44px; color: var(--muted); }
.rank--1 { color: #c8930a; } .rank--2 { color: #8a9aa0; } .rank--3 { color: #b0683a; }
.lbuser { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none !important; }
.lbuser small { display: block; color: var(--muted); font-size: .76rem; }
.lbuser:hover strong { color: var(--primary); }

/* Admin */
.adminnav { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 14px; background: var(--petrol-900); color: #fff; border-radius: var(--radius); margin-bottom: 14px; font-size: .9rem; }
.adminnav__label { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; color: var(--teal-400); }
.adminnav a { color: #d9f3f1; font-weight: 700; }
.adminnav a.is-active { color: #ffffff; text-decoration: underline; }
.adminnav__soon { color: #8fb3b8 !important; font-size: .8rem; margin-left: auto; }
.admintable { padding: 18px; margin-bottom: 16px; overflow-x: auto; }
.admintable h2 { font-size: 1.05rem; }
.facts--wide { grid-template-columns: 1fr; gap: 2px 14px; }
.facts--wide dt { margin-top: 10px; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.facts--wide dd { text-align: left; font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 640px) { .facts--wide { grid-template-columns: 180px 1fr; gap: 10px 14px; } .facts--wide dt { margin-top: 0; } }
.form + .form, .row2 .form { margin-top: 14px; }
.form h2 { font-size: 1.05rem; }
.btn--danger { color: var(--err); border-color: var(--err); }
.btn--danger:hover { background: var(--err-bg); color: var(--err); }
.inline-form { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .92rem; }

/* =====================================================================
   Phase 4 — zajednica, komentari, reakcije, obaveštenja, nalog
   ===================================================================== */
.maincol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
form.inline { display: inline; }

/* Reakcije */
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.rx { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: .92rem; color: var(--text-2); cursor: pointer; text-decoration: none !important; transition: all .12s; }
.rx:hover { border-color: var(--accent); }
.rx.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--primary); font-weight: 700; }
.rx span:empty { display: none; }
.poll__report { margin-top: 14px; display: flex; justify-content: flex-end; }

/* Komentari */
.comments { padding: 20px; }
@media (min-width: 640px) { .comments { padding: 24px 28px; } }
.comments h2 { font-size: 1.1rem; display: flex; gap: 8px; align-items: baseline; }
.cform { margin-bottom: 20px; }
.cform__row { display: flex; gap: 10px; align-items: flex-start; }
.cform__row .avatar { margin-top: 6px; }
.cform__row textarea { min-height: 70px; }
.cform__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; padding-left: 42px; flex-wrap: wrap; }
.cform__foot .hint { margin: 0; }
.cform__replying { font-size: .85rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; padding-left: 42px; }
.cform--guest { margin: 0 0 16px; }
.cform .counter { display: none; }
.comments__list { display: flex; flex-direction: column; gap: 4px; }
.comments__empty { margin: 4px 0; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.comments__list > .comment:first-child { border-top: 0; }
.comment--reply { padding: 10px 0 0; border-top: 0; }
.comment.is-new { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }
.comment__main { flex: 1; min-width: 0; }
.comment__head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .88rem; }
.comment__head a { color: var(--text); }
.comment__head time { color: var(--muted); font-size: .8rem; }
.comment__body { margin: 4px 0 6px; font-size: .95rem; overflow-wrap: anywhere; line-height: 1.55; }
.comment__actions { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.comment__replies { margin-top: 2px; padding-left: 12px; border-left: 2px solid var(--line); }
.comment__replies:empty { display: none; }
.cbtn { background: none; border: 0; padding: 2px 0; font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted); cursor: pointer; list-style: none; }
.cbtn:hover { color: var(--primary); }
.cbtn.is-on { color: var(--primary); }
.cbtn.is-static { cursor: default; }
.cbtn span:empty { display: none; }

/* Prijava sadržaja */
.report { position: relative; display: inline-block; }
.report > summary { list-style: none; }
.report > summary::-webkit-details-marker { display: none; }
.report__form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.comment .report__form { left: 0; right: auto; }
.report__form .check { margin: 4px 0; font-size: .86rem; }
.report__form textarea { margin: 6px 0 10px; font-size: .88rem; min-height: 0; }
.profilehead__actions .report__form { right: 0; }

/* Zvonce */
.bell { position: relative; }
.bell__dot { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #d92d20; color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.notiflist { overflow: hidden; }
.notif { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.notif:first-child { border-top: 0; }
.notif:hover { background: var(--surface-2); }
.notif.is-unread { background: var(--accent-soft); }
.notif__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--primary); flex-shrink: 0; }
.notif__text { font-size: .93rem; line-height: 1.4; }
.notif__text small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }

/* Profil */
.profilehead__actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (min-width: 760px) { .profilehead__actions { grid-column: 2 / -1; } }

/* Nalog */
.avatarfield { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.avatarfield .check { margin: 8px 0 0; }
.form h2 { margin-top: 8px; }
.form h2 + .check { margin-top: 4px; }
.form > .check { margin-bottom: 14px; }
.blockrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.blockrow:first-of-type { border-top: 0; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.dellist { padding-left: 20px; color: var(--text-2); font-size: .93rem; }
.dellist li { margin-bottom: 4px; }
.btn--dangerfill { background: #b42318; color: #ffffff; }
.btn--dangerfill:hover { background: #912018; color: #ffffff; }

/* Zajednica */
.suggest { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.suggest .author { min-width: 0; }
.suggest .author strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ccard { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none !important; font-size: .9rem; }
.ccard:first-child { border-top: 0; }
.ccard__body { color: var(--text-2); }
.ccard:hover strong { color: var(--primary); }
.section__title .ic { color: var(--accent); vertical-align: -2px; }

/* =====================================================================
   Phase 5 — admin panel
   ===================================================================== */
.adminnav { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.adminnav::-webkit-scrollbar { display: none; }
.adminnav a { white-space: nowrap; }
.adminnav__badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #d92d20; color: #fff; font-size: .68rem; font-weight: 800; margin-left: 2px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin: 0 0 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.kpi strong { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1.2; margin-top: 2px; }
.kpi span { font-size: .78rem; color: var(--muted); }
.kpi--link a { display: block; color: inherit; text-decoration: none !important; margin: -14px -16px; padding: 14px 16px; border-radius: var(--radius); }
.kpi--link a:hover { background: var(--surface-2); }
.warn, .kpi strong.warn { color: #b54708; }
.err { color: var(--err); }
.chart { display: block; width: 100%; height: 110px; margin-top: 6px; }
.chart rect { fill: var(--accent); opacity: .85; }
.chart rect:hover { opacity: 1; fill: var(--primary); }
.chart__axis { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: 4px; }
.admsearch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.admsearch input[type="search"] { flex: 1; min-width: 200px; padding: 9px 12px; font: inherit; font-size: .92rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.admsearch select { width: auto; padding: 8px 10px; font-size: .9rem; }
.admintable td.wide { min-width: 260px; overflow-wrap: anywhere; }
.admintable td.actions { white-space: nowrap; text-align: right; }
.admintable td.actions form, .admintable td.actions .btn { margin: 2px 0 2px 4px; }
.admintable tr.is-muted td { opacity: .55; }
.admintable code, .admintable small code { font-size: .78rem; }
.ustatus { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.ustatus--active { background: var(--ok-bg); color: var(--ok); }
.ustatus--suspended { background: var(--err-bg); color: var(--err); }
.reportlist { display: grid; gap: 12px; margin-bottom: 16px; }
.reportcard { padding: 16px 18px; }
.reportcard header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; margin-bottom: 10px; }
.reportcard__content { margin: 0 0 10px; padding: 10px 14px; background: var(--surface-2); border-left: 3px solid var(--line-2); border-radius: var(--radius-sm); overflow-wrap: anywhere; font-size: .93rem; }
.reportcard__content.is-removed { opacity: .6; text-decoration: line-through; }
.reportcard__content footer { margin-top: 6px; font-size: .8rem; color: var(--muted); text-decoration: none; }
.reportcard__details { font-size: .88rem; color: var(--text-2); font-style: italic; }
.reportcard__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reportcard__actions input { flex: 1; min-width: 200px; padding: 8px 10px; font-size: .88rem; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 180px; padding: 8px 10px; font-size: .9rem; }
.inline-form label { font-weight: 700; font-size: .9rem; }
@media (min-width: 900px) { .adminnav { flex-wrap: wrap; overflow: visible; } }

/* =====================================================================
   v2 DIZAJN (Phase 6) — ljubičasta paleta, novi header/footer, početna
   Pravila iz ovog bloka nadjačavaju ranije definicije.
   ===================================================================== */
:root {
  --bg: #f7f7fc;
  --surface: #ffffff;
  --surface-2: #f3f3fa;
  --text: #10172d;
  --text-2: #39435f;
  --muted: #68718a;
  --line: #e8e9f4;
  --line-2: #d6d9ea;
  --primary: #5732df;
  --primary-hover: #4421c4;
  --on-primary: #ffffff;
  --accent: #6f4ef0;
  --accent-soft: #f1edff;
  --bar: #c9f0e6;
  --bar-lead: #8ad9c8;
  --mint: #24d5a9;
  --info: #4d2bc7; --info-bg: #f1edff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 3px 9px rgba(29, 32, 74, .05);
  --shadow-lg: 0 14px 36px rgba(29, 32, 74, .14);
  --wrap: 1280px;
  --topbar-h: 66px;
}
:root[data-theme="dark"] {
  --bg: #0d1020; --surface: #151a2e; --surface-2: #1b2139; --text: #eceefa; --text-2: #c1c6dc; --muted: #9097b2;
  --line: #262d48; --line-2: #343c5c; --primary: #a68bff; --primary-hover: #bba6ff; --on-primary: #14102b;
  --accent: #a68bff; --accent-soft: #241f45; --bar: #1d4a44; --bar-lead: #23746a; --info: #c4b4ff; --info-bg: #241f45;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1020; --surface: #151a2e; --surface-2: #1b2139; --text: #eceefa; --text-2: #c1c6dc; --muted: #9097b2;
    --line: #262d48; --line-2: #343c5c; --primary: #a68bff; --primary-hover: #bba6ff; --on-primary: #14102b;
    --accent: #a68bff; --accent-soft: #241f45; --bar: #1d4a44; --bar-lead: #23746a; --info: #c4b4ff; --info-bg: #241f45;
  }
}
body { font-size: 15px; }
.wrap { max-width: var(--wrap); }
.main { padding: 24px 0 56px; }
body.is-home .main { padding-top: 0; }

/* Dugmad (dizajn) */
.btn { border-radius: var(--radius-sm); font-weight: 800; }
.btn--outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--accent-soft); color: var(--primary); }
.btn--white { background: #ffffff; color: #11182e; position: relative; z-index: 1; }
.btn--white:hover { background: #eef0ff; color: #11182e; }
.btn .ic { flex-shrink: 0; }

/* Tagovi kategorija */
.tag { display: inline-flex; align-self: flex-start; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; text-decoration: none !important; }
.tag--purple { color: #4d2bc7; background: #eee8ff; }
.tag--orange { color: #9a4b12; background: #fff1df; }
.tag--pink { color: #b62d58; background: #ffeaf0; }
.tag--green { color: #176b4e; background: #e2f7ec; }
:root[data-theme="dark"] .tag--purple { color: #c9b8ff; background: #2a2350; }
:root[data-theme="dark"] .tag--orange { color: #ffc58f; background: #3a2a16; }
:root[data-theme="dark"] .tag--pink { color: #ffb0c8; background: #3e1d2a; }
:root[data-theme="dark"] .tag--green { color: #8de6bd; background: #15352a; }
.chip { background: var(--accent-soft); color: var(--primary); }

/* ---------- Header ---------- */
.topbar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
.topbar__in { height: var(--topbar-h); gap: 26px; }
.logo { font-size: 1.5rem; letter-spacing: -.04em; gap: 10px; }
.mainnav { display: none; gap: 26px; align-self: stretch; align-items: stretch; margin: 0 auto; }
.mainnav > a, .navtopics__btn {
  display: flex; align-items: center; gap: 5px; padding: 0 2px; border-radius: 0; background: none; border: 0;
  border-bottom: 2px solid transparent; font: inherit; font-size: .9rem; font-weight: 700; color: var(--text); cursor: pointer; text-decoration: none !important;
}
.mainnav > a:hover, .navtopics__btn:hover { background: none; color: var(--primary); }
.mainnav > a.is-active, .navtopics__btn.is-active { color: var(--text); background: none; border-bottom-color: var(--primary); }
.navtopics { display: flex; }
.navtopics__menu { min-width: 220px; max-height: 70vh; overflow-y: auto; top: calc(100% - 4px); }
.navtopics__menu a { padding: 9px 12px; font-weight: 600; }
.mainnav .only-drawer, .drawer-extra { display: none; }
.topbar__right { gap: 10px; }
.langdd__btn { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.langdd__btn:hover { border-color: var(--line-2); }
.langdd__menu { min-width: 170px; }
.langdd__menu a { justify-content: space-between; align-items: center; font-weight: 600; }
.langdd__menu a.is-active { color: var(--primary); }
.menutoggle { display: none; }
.hide-mobile { display: inline-grid; }
@media (min-width: 1000px) { .mainnav { display: flex; } }
@media (max-width: 999px) {
  .menutoggle { display: inline-grid; }
  .topbar__in { gap: 12px; }
  .mainnav {
    display: none; position: absolute; top: var(--topbar-h); left: 0; right: 0; z-index: 70;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(17, 17, 34, .12);
    max-height: calc(100vh - var(--topbar-h)); overflow-y: auto;
  }
  .mainnav.is-open { display: flex; }
  .mainnav > a, .navtopics__btn { height: 48px; border-bottom: 1px solid var(--line); gap: 12px; width: 100%; font-size: 1rem; }
  .mainnav > a.is-active { color: var(--primary); border-bottom-color: var(--line); }
  .mainnav .only-drawer { display: inline; color: var(--primary); }
  .navtopics { flex-direction: column; }
  .navtopics__btn .ic:last-child { margin-left: auto; }
  .navtopics__menu { position: static; box-shadow: none; border: 0; padding: 4px 0 8px 30px; min-width: 0; max-height: none; display: none; }
  .navtopics.is-open .navtopics__menu { display: grid; grid-template-columns: 1fr 1fr; }
  .drawer-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .drawer-extra a { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); font-weight: 700; font-size: .88rem; text-decoration: none !important; }
  .drawer-extra .ic { color: var(--primary); }
}
@media (max-width: 640px) {
  :root { --topbar-h: 60px; }
  .hide-mobile { display: none; }
  .logo { font-size: 1.3rem; }
  .logo img { width: 26px; height: 26px; }
  .topbar__right { gap: 6px; }
  .topbar__right .btn--sm { padding: 8px 10px; font-size: .8rem; }
  .langdd__btn { padding: 0 7px; }
  .langdd__btn .ic:last-child { display: none; }
}
@media (max-width: 400px) { .hide-xxs { display: none !important; } }
.tabbar { display: none !important; }

/* ---------- Hero ---------- */
.hero2 { background: linear-gradient(100deg, #f8f7ff, #efecff); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .hero2 { background: linear-gradient(100deg, #141833, #1b1840); }
.hero2__in { display: grid; grid-template-columns: 1fr; align-items: center; gap: 8px; }
.hero2__copy { padding: 34px 0 6px; }
.hero2 h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.2rem); letter-spacing: -.045em; line-height: 1.1; margin: 0 0 16px; }
.hero2 h1 em { font-style: normal; color: var(--primary); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.hero2 p { max-width: 520px; color: var(--text-2); font-size: 1.05rem; line-height: 1.65; margin: 0 0 22px; }
.hero2__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero2__art { display: flex; align-items: flex-end; justify-content: center; }
.hero2__art img { width: 100%; height: auto; max-height: 330px; object-fit: contain; object-position: bottom; }
@media (min-width: 900px) {
  .hero2__in { grid-template-columns: 1fr 1.05fr; gap: 32px; min-height: 340px; }
  .hero2__copy { padding: 44px 0; }
}
@media (max-width: 640px) {
  .hero2__cta .btn { flex: 1; padding: 13px 12px; font-size: .92rem; }
  .hero2 p { font-size: .98rem; }
  .hero2__art img { max-height: 220px; }
}

/* Brzi linkovi */
.quick { background: var(--surface); border-bottom: 1px solid var(--line); }
.quick__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 8px; padding: 16px 0; }
.quick__grid > a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; padding: 4px 6px; border-radius: var(--radius-sm); }
.quick__grid > a:hover { background: var(--accent-soft); }
.quick__grid .ic { color: var(--primary); flex-shrink: 0; }
.quick__grid b, .quick__grid small { display: block; }
.quick__grid b { font-size: .92rem; }
.quick__grid small { font-size: .76rem; color: var(--muted); margin-top: 2px; line-height: 1.35; }
@media (min-width: 900px) {
  .quick__grid { grid-template-columns: repeat(4, 1fr); gap: 0; padding: 18px 0; }
  .quick__grid > a { padding: 4px 20px; border-right: 1px solid var(--line); border-radius: 0; }
  .quick__grid > a:last-child { border-right: 0; }
}

/* Raspored početne */
.homegrid { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 26px; }
@media (min-width: 1000px) { .homegrid { grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; } }
.homegrid__main { min-width: 0; }
.homegrid__side { display: flex; flex-direction: column; gap: 16px; }
.hsection { margin-bottom: 26px; }
.hsection__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.hsection__title h2 { font-size: 1.3rem; letter-spacing: -.03em; margin: 0; }
.morelink { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: .8rem; font-weight: 800; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-decoration: none !important; white-space: nowrap; }
.morelink:hover { color: var(--primary-hover); }
.hempty { padding: 26px; text-align: center; color: var(--text-2); }

/* Istaknuta anketa */
.featured { padding: 12px; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .featured { grid-template-columns: 190px 1fr; gap: 20px; } }
.featured__visual { display: grid; place-items: center; min-height: 150px; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(150deg, #a98aff, #5732df 60%, #2fb5a0); text-decoration: none !important; }
.featured__visual img { width: 100%; height: 100%; object-fit: cover; }
.featured__mark { display: flex; align-items: flex-end; gap: 8px; height: 60px; }
.featured__mark i { width: 16px; border-radius: 5px 5px 0 0; background: rgba(255, 255, 255, .92); }
.featured__mark i:nth-child(1) { height: 26px; } .featured__mark i:nth-child(2) { height: 44px; } .featured__mark i:nth-child(3) { height: 60px; }
.featured__flag { font-size: 3.6rem; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .2)); }
.featured__body { display: flex; flex-direction: column; min-width: 0; padding: 4px 6px 4px 0; }
.featured__body h3 { font-size: 1.2rem; margin: 9px 0 10px; line-height: 1.3; }
.featured__body h3 a { color: var(--text); }
.featured__body h3 a:hover { color: var(--primary); text-decoration: none; }
.hres { display: grid; grid-template-columns: minmax(0, 170px) 1fr 44px; gap: 10px; align-items: center; font-size: .82rem; font-weight: 700; margin: 6px 0; }
.hres > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hres b { text-align: right; }
.hres__track { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.hres__fill { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #bcefe2, #8ad9c8); }
.hres__fill--1 { background: linear-gradient(90deg, #d7c9ff, #ad8aff); }
.hres__fill--2 { background: #dfe2ed; }
@media (max-width: 640px) {
  .hres { grid-template-columns: 1fr 44px; gap: 4px 8px; }
  .hres > span { grid-column: 1 / -1; white-space: normal; }
  .hres__track { height: 10px; }
}
.hopts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.hopts a { padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--text); text-decoration: none !important; }
.hopts a:hover { border-color: var(--primary); color: var(--primary); }
.hmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: auto; padding-top: 10px; color: var(--muted); font-size: .8rem; }
.hmeta > span { display: inline-flex; align-items: center; gap: 5px; }
.hmeta .btn { margin-left: auto; }

/* Mini kartice */
.three { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .three { grid-template-columns: repeat(3, 1fr); } }
.mini { position: relative; display: flex; flex-direction: column; padding: 14px; min-height: 140px; color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.mini:hover { border-color: #cbbdff; box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.mini h3 { font-size: .95rem; line-height: 1.45; margin: 10px 0 auto; font-weight: 800; }
.mini__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: .78rem; }
.mini__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.mini__meta > .ic { color: var(--primary); }
.mini__lines { display: grid; gap: 6px; margin-top: 12px; color: var(--muted); font-size: .78rem; }
.mini__lines span { display: inline-flex; align-items: center; gap: 5px; }
.mini--pred h3 { margin-right: 22px; }
.mini__corner { position: absolute; right: 14px; bottom: 14px; color: var(--primary); }

/* Sidebar početne */
.ask { display: flex; gap: 13px; padding: 18px 16px; border-radius: var(--radius); background: linear-gradient(120deg, #f3edff, #eeefff); }
:root[data-theme="dark"] .ask { background: linear-gradient(120deg, #231d47, #1d2045); }
.ask__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #a88aff; color: #fff; display: grid; place-items: center; }
.ask h2 { font-size: 1.05rem; margin: 2px 0 6px; }
.ask p { font-size: .86rem; line-height: 1.5; color: var(--text-2); margin: 0 0 12px; }
.topics { padding: 16px 17px; }
.topics h2 { font-size: 1.08rem; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.topics h2 .ic { color: #f26b3a; }
.topics > a:not(.morelink) { display: flex; align-items: center; gap: 12px; height: 46px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.topics > a:not(.morelink):hover b { color: var(--primary); }
.topics__dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); flex-shrink: 0; }
.topics b { font-size: .9rem; }
.topics small { margin-left: auto; font-size: .76rem; color: var(--muted); }
.topics .morelink { margin-top: 12px; }

/* Statistika */
.statsband { background: #e9faf6; border-top: 1px solid #cdeee5; border-bottom: 1px solid #cdeee5; margin-top: 8px; }
:root[data-theme="dark"] .statsband { background: #102a29; border-color: #18413c; }
.statsband__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 18px 0; }
.statsband__grid > div { display: flex; align-items: center; gap: 12px; }
.statsband__grid .ic { color: #1aa585; flex-shrink: 0; }
.statsband__grid b, .statsband__grid small { display: block; }
.statsband__grid b { font-size: 1.2rem; font-weight: 800; }
.statsband__grid small { font-size: .78rem; color: var(--text-2); }
@media (min-width: 900px) {
  .statsband__grid { grid-template-columns: repeat(4, 1fr); padding: 22px 0; gap: 0; }
  .statsband__grid > div { justify-content: center; border-right: 1px solid #a9ded3; }
  .statsband__grid > div:last-child { border-right: 0; }
}

/* Region */
.region2 { padding-top: 28px; }
.countries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .countries { grid-template-columns: repeat(5, 1fr); } }
.country { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 2px 10px; padding: 13px; color: var(--text); text-decoration: none !important; }
.country:hover { border-color: #cbbdff; }
.country__flag { grid-row: span 2; font-size: 1.6rem; line-height: 1; }
.country b { font-size: .9rem; }
.country small { font-size: .74rem; color: var(--muted); }
@media (max-width: 759px) { .countries .country:last-child:nth-child(odd) { grid-column: span 2; } }

/* CTA traka */
.ctaband { position: relative; overflow: hidden; margin: 28px 0 8px; padding: 24px 22px; border-radius: var(--radius); color: #fff; background: linear-gradient(105deg, #27245f, #263d78 60%, #168b8a); display: flex; flex-direction: column; gap: 16px; }
.ctaband h2 { font-size: 1.8rem; letter-spacing: -.04em; margin: 0 0 4px; }
.ctaband em { font-style: normal; color: #43dfbd; }
.ctaband p { margin: 0; font-size: .95rem; line-height: 1.55; color: #e5e8ff; max-width: 560px; }
.ctaband .btn { align-self: flex-start; }
.ctaband__bars { position: absolute; right: 28px; bottom: 0; display: flex; gap: 12px; align-items: flex-end; opacity: .3; }
.ctaband__bars i { width: 26px; height: 30px; background: #24d5a9; border-radius: 7px 7px 0 0; }
.ctaband__bars i:nth-child(2) { height: 56px; } .ctaband__bars i:nth-child(3) { height: 85px; }
@media (min-width: 760px) { .ctaband { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px 36px; } .ctaband .btn { align-self: center; margin-right: 110px; } }

/* ---------- Footer ---------- */
.footer { background: #10172d; color: #f4f5ff; border-top: 0; padding: 0; font-size: .88rem; }
.footer a { color: #c5cada; }
.footer a:hover { color: #ffffff; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; padding: 34px 0 26px; }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr .8fr .9fr 1fr 1.1fr; gap: 30px; } }
.footer__brand { grid-column: 1 / -1; padding-bottom: 18px; border-bottom: 1px solid #3a435b; }
@media (min-width: 1000px) { .footer__brand { grid-column: auto; padding: 0 20px 0 0; border-bottom: 0; border-right: 1px solid #3a435b; } }
.footer__brand p { color: #c5cada; margin: 10px 0 0; }
.footer__disclaimer { font-size: .78rem; color: #8f97b0 !important; }
.logo--light { color: #ffffff !important; }
.footer__col h3 { font-size: .85rem; color: #ffffff; margin: 2px 0 12px; }
.footer__col a, .footer__col .linkbtn { display: block; color: #c5cada; font-size: .84rem; margin-bottom: 9px; text-align: left; }
.footer__col .linkbtn:hover { color: #ffffff; }
.footer__col p { color: #c5cada; font-size: .84rem; line-height: 1.5; margin: 0 0 12px; }
.footer__col:last-child { grid-column: 1 / -1; }
@media (min-width: 1000px) { .footer__col:last-child { grid-column: auto; } }
.installbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #a3abc0; border-radius: var(--radius-sm); background: none; color: #ffffff; padding: 9px 14px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.installbtn:hover { background: rgba(255, 255, 255, .08); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid #3a435b; padding: 14px 0 18px; color: #c5cada; font-size: .8rem; margin-top: 0; }
.footer .langswitch { color: #c5cada; }
.footer .langswitch a { color: #c5cada; font-weight: 700; }
.footer .langswitch a.is-active { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.footer .iconbtn { color: #c5cada; }
.footer .iconbtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Ostale stranice — usklađivanje sa novim dizajnom */
.pcard, .card { border-radius: var(--radius); }
.pcard__cta.btn--soft { background: var(--accent-soft); color: var(--primary); }
.pill.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.adminnav { background: #10172d; }
.adminnav__label { color: #b9a6ff; }
.consent { bottom: 16px; }
.toast { bottom: 24px; }
.side h3 .ic, .section__head h2 .ic, .section__title .ic, .rules h2 .ic { color: var(--primary); }
.hero2__art { align-self: end; }
