/* ============================================================
   Glasanje dijaspore 2026 - Premium Minimalist Light Theme
   ============================================================ */

:root {
  /* Surface & Base */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-hover: #f8fafc;
  --surface-trans: rgba(255, 255, 255, 0.88);

  /* Typography & Ink */
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;

  /* Borders & Hairlines */
  --line-hair: rgba(15, 23, 42, 0.06);
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  /* Brand Accents */
  --brand: #0b4da2;
  --brand-ink: #083875;
  --brand-vibrant: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-border: #bfdbfe;

  --accent-red: #c1272d;
  --accent-red-soft: #fef2f2;
  --accent-red-border: #fecaca;

  /* Status Confidence System:
     1. Potvrđeno od RIK-a  = Zeleno (Emerald)
     2. Najavljeno od DKP-a = Plavo (Royal Blue)
     3. Prijave u toku      = Amber (Warm Gold)
     4. Kandidat iz 2023.   = Sivo (Slate Neutral) */
  --status-potvrdjeno: #059669;
  --status-potvrdjeno-soft: #ecfdf5;
  --status-potvrdjeno-border: #a7f3d0;
  --status-potvrdjeno-ink: #065f46;
  --status-potvrdjeno-glow: rgba(5, 150, 105, 0.16);

  --status-najavljeno: #2563eb;
  --status-najavljeno-soft: #eff6ff;
  --status-najavljeno-border: #bfdbfe;
  --status-najavljeno-ink: #1d4ed8;
  --status-najavljeno-glow: rgba(37, 99, 235, 0.16);

  --status-prijave: #d97706;
  --status-prijave-soft: #fffbeb;
  --status-prijave-border: #fde68a;
  --status-prijave-ink: #92400e;
  --status-prijave-glow: rgba(217, 119, 6, 0.16);

  --status-kandidat: #64748b;
  --status-kandidat-soft: #f8fafc;
  --status-kandidat-border: #e2e8f0;
  --status-kandidat-ink: #334155;
  --status-kandidat-glow: rgba(100, 116, 139, 0.12);

  /* Legacy aliases for compatibility */
  --ok: var(--status-potvrdjeno);
  --ok-soft: var(--status-potvrdjeno-soft);
  --ok-border: var(--status-potvrdjeno-border);
  --ok-ink: var(--status-potvrdjeno-ink);

  --warn: var(--status-prijave);
  --warn-soft: var(--status-prijave-soft);
  --warn-border: var(--status-prijave-border);
  --warn-ink: var(--status-prijave-ink);

  --neutral: var(--status-kandidat);
  --neutral-soft: var(--status-kandidat-soft);
  --neutral-border: var(--status-kandidat-border);
  --neutral-ink: var(--status-kandidat-ink);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-micro: 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 8px 24px -4px rgba(15, 23, 42, 0.07), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-float: 0 12px 36px -4px rgba(15, 23, 42, 0.1), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
  --shadow-active-chip: 0 4px 14px rgba(11, 77, 162, 0.22);

  /* Typography Stacks */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);

  /* Layout */
  --wrap: 1180px;
  --gap: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 700;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 36px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  box-shadow: var(--shadow-float);
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ─────────────── HEADER ─────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-trans);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(11, 77, 162, 0.18);
  transition: transform 0.2s ease;
}
.brand:hover .brand-mark { transform: scale(1.04); }
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-text span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  transition: all 0.16s ease;
}
.site-nav a:hover {
  background: var(--surface-alt);
  color: var(--brand);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-micro);
  white-space: nowrap;
}

.updated-freshness {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 8px;
  margin-left: 2px;
}

@media (max-width: 768px) {
  .updated-freshness {
    display: none;
  }
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--ok);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
  animation: pulse-dot 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
.live-dot-amber {
  background-color: var(--warn);
  box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
  animation: pulse-dot-amber 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

@keyframes pulse-dot-amber {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.mobile-subnav {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--line-hair);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-subnav::-webkit-scrollbar { display: none; }
.mobile-subnav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
}
.mobile-subnav-inner a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  white-space: nowrap;
}

/* ─────────────── HERO ─────────────── */
.hero {
  position: relative;
  padding: clamp(40px, 5.5vw, 68px) 0 clamp(36px, 4.5vw, 56px);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(224, 236, 255, 0.6) 0%, transparent 60%),
    radial-gradient(700px 380px at 94% 2%, rgba(254, 242, 242, 0.55) 0%, transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-micro);
}
.pill-warn {
  background: var(--warn-soft);
  color: var(--warn-ink);
  border: 1px solid var(--warn-border);
}
.pill-final {
  background: var(--ok-soft);
  color: var(--ok-ink);
  border: 1px solid var(--ok-border);
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 .hl {
  color: var(--brand);
  position: relative;
  display: inline-block;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background: rgba(11, 77, 162, 0.12);
  border-radius: 3px;
  z-index: -1;
}

.lede {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-soft);
  max-width: 58ch;
  line-height: 1.62;
}
.lede strong { color: var(--ink); font-weight: 600; }

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-micro);
}
.hero-hl-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-hl-icon {
  font-size: 15px;
  flex: 0 0 auto;
}
.hero-hl-item div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.hero-hl-item strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
}
.hero-hl-item span {
  font-size: 12px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-arrow { width: 15px; height: 15px; transition: transform 0.18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(11, 77, 162, 0.28);
}
.btn-primary:hover {
  background: var(--brand-ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11, 77, 162, 0.35);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-micro);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.btn-sm { padding: 7px 16px; font-size: 13px; }

/* Hero Panel (Countdown Cards) */
.hero-panel { display: grid; gap: 14px; }

.cd-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cd-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cd-accent {
  border-color: var(--brand-border);
  background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(11, 77, 162, 0.06);
}

.cd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cd-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.cd-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-red-soft);
  color: var(--accent-red);
  border: 1px solid var(--accent-red-border);
}
.cd-badge-neutral {
  background: var(--neutral-soft);
  color: var(--neutral-ink);
  border-color: var(--neutral-border);
}

.cd-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cd-value {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cd-accent .cd-value { color: var(--brand); }

.cd-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.cd-sub-icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--muted-light); }

/* ─────────────── SECTIONS ─────────────── */
.section { padding: clamp(48px, 6vw, 76px) 0; }
.section-alt { background: #ffffff; border-block: 1px solid var(--line); }

.section-head { max-width: 68ch; margin-bottom: clamp(24px, 3.2vw, 36px); }
.section-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
.section-head h2 { font-size: clamp(23px, 2.6vw, 32px); letter-spacing: -0.025em; }
.section-head p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ─────────────── TIMELINE ─────────────── */
.timeline {
  list-style: none;
  margin: 0 0 clamp(24px, 3.2vw, 36px);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.tl-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tl-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.tl-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 4px var(--surface-alt);
}
.tl-item.is-done .tl-dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.tl-item.is-active .tl-dot { background: var(--accent-red); box-shadow: 0 0 0 4px var(--accent-red-soft); }

.tl-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--ok-soft);
  color: var(--ok-ink);
  border: 1px solid var(--ok-border);
}
.tl-badge-active {
  background: var(--accent-red-soft);
  color: var(--accent-red);
  border-color: var(--accent-red-border);
}
.tl-badge-upcoming {
  background: var(--surface-alt);
  color: var(--muted);
  border-color: var(--line);
}

.tl-date {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.tl-item.is-active .tl-date { color: var(--accent-red); }
.tl-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.tl-item p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.tl-points, .step-points {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tl-points li, .step-points li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  position: relative;
  padding-left: 14px;
}
.tl-points li::before, .step-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.tl-points strong, .step-points strong {
  color: var(--ink);
  font-weight: 600;
}

/* ─────────────── STATS ─────────────── */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--brand);
  line-height: 1;
}
.stat-icon { font-size: 20px; opacity: 0.85; }

.stat-lab { font-size: 14px; font-weight: 600; color: var(--ink); }
.stat-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}
.stat-note { font-size: 12.5px; color: var(--muted); margin-top: auto; }

/* ─────────────── RIK STATUS TRAKA ─────────────── */
.rik-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-micro);
}

.rik-status-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.rik-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.rik-status-text {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.rik-status-text strong {
  color: var(--ink);
  font-weight: 600;
}

.rik-status-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.rik-status-link:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

@media (max-width: 768px) {
  .rik-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }
  .rik-status-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .rik-status-link {
    align-self: flex-start;
  }
}

/* ─────────────── METRICS OVERVIEW (4-STATUS SUMMARY) ─────────────── */
.metrics-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: opacity 0.2s ease;
}

.metric-potvrdjeno::before { background: var(--status-potvrdjeno); }
.metric-najavljeno::before { background: var(--status-najavljeno); }
.metric-prijave::before { background: var(--status-prijave); }
.metric-kandidat::before { background: var(--status-kandidat); }

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.metric-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.metric-card.is-active {
  box-shadow: 0 0 0 2px var(--brand), var(--shadow-card);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-potvrdjeno .metric-num { color: var(--status-potvrdjeno); }
.metric-najavljeno .metric-num { color: var(--status-najavljeno); }
.metric-prijave .metric-num { color: var(--status-prijave); }
.metric-kandidat .metric-num { color: var(--status-kandidat); }

.metric-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-badge-potvrdjeno {
  background: var(--status-potvrdjeno-soft);
  color: var(--status-potvrdjeno-ink);
  border: 1px solid var(--status-potvrdjeno-border);
}
.metric-badge-najavljeno {
  background: var(--status-najavljeno-soft);
  color: var(--status-najavljeno-ink);
  border: 1px solid var(--status-najavljeno-border);
}
.metric-badge-prijave {
  background: var(--status-prijave-soft);
  color: var(--status-prijave-ink);
  border: 1px solid var(--status-prijave-border);
}
.metric-badge-kandidat {
  background: var(--status-kandidat-soft);
  color: var(--status-kandidat-ink);
  border: 1px solid var(--status-kandidat-border);
}

.metric-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-top: 4px;
}

.metric-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* ─────────────── LEGEND ─────────────── */
.legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
@media (min-width: 600px) {
  .legend { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .legend { grid-template-columns: repeat(4, 1fr); }
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-micro);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.legend-item:hover {
  background: #ffffff;
  border-color: var(--line-strong);
}
.legend-item div { display: flex; flex-direction: column; min-width: 0; }
.legend-item strong { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.legend-item span { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--status-kandidat);
}
.dot-potvrdjeno { background: var(--status-potvrdjeno); box-shadow: 0 0 0 3px var(--status-potvrdjeno-soft); }
.dot-najavljeno { background: var(--status-najavljeno); box-shadow: 0 0 0 3px var(--status-najavljeno-soft); }
.dot-prijave { background: var(--status-prijave); box-shadow: 0 0 0 3px var(--status-prijave-soft); }
.dot-kandidat { background: var(--status-kandidat); box-shadow: 0 0 0 3px var(--status-kandidat-soft); }

/* ─────────────── CONTROLS (SEARCH & FILTERS) ─────────────── */
.controls-sticky-wrap {
  position: relative;
  z-index: 20;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}

.search {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  pointer-events: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 10px 42px 10px 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--bg);
  transition: all 0.16s ease;
}
.search input::placeholder { color: var(--muted-light); }
.search input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 77, 162, 0.12);
}
.search input::-webkit-search-cancel-button { display: none; }

.search-kbd {
  position: absolute;
  right: 14px;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 2px 6px;
  pointer-events: none;
  line-height: 1;
}

.clear {
  position: absolute;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: var(--neutral-soft);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.clear:hover { background: var(--line-strong); }

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0;
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
.chip .dot { margin-top: 0; }
.chip:hover {
  border-color: var(--brand-border);
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}
.chip.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-active-chip);
}
.chip.is-on .dot { background: #ffffff; box-shadow: none; }

.chip-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: all 0.16s ease;
}
.chip.is-on .chip-count {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 18px 0 14px;
}
.results-meta-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-count-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.result-count { font-size: 13.5px; color: var(--muted); margin: 0; }
.result-count b { color: var(--ink); font-weight: 600; }
.unconfirmed-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2.5px 9px;
  text-decoration: none;
  box-shadow: var(--shadow-micro);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.unconfirmed-badge-link:hover {
  background: #f1f5f9;
  color: var(--ink);
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.unconfirmed-badge-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.unconfirmed-dot {
  font-size: 11px;
  line-height: 1;
}
.result-subnote {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* ─────────────── GRID & REDESIGNED COUNTRY CARDS ─────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.grid:has(> .card:only-child) {
  grid-template-columns: minmax(min(340px, 100%), 680px);
  justify-content: center;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Confidence stripe po statusu */
.card-status-potvrdjeno { border-left-color: var(--status-potvrdjeno); }
.card-status-najavljeno { border-left-color: var(--status-najavljeno); }
.card-status-prijave { border-left-color: var(--status-prijave); }
.card-status-kandidat { border-left-color: var(--status-kandidat); }

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  border-color: #cbd5e1;
}
.card-status-potvrdjeno:hover {
  border-left-color: var(--status-potvrdjeno);
  box-shadow: 0 12px 30px -4px rgba(5, 150, 105, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}
.card-status-najavljeno:hover {
  border-left-color: var(--status-najavljeno);
  box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}
.card-status-prijave:hover {
  border-left-color: var(--status-prijave);
  box-shadow: 0 12px 30px -4px rgba(217, 119, 6, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}
.card-status-kandidat:hover {
  border-left-color: var(--status-kandidat);
  box-shadow: 0 12px 30px -4px rgba(100, 116, 139, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}

/* Card Header */
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.card-flag-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--brand-soft), #ffffff);
  border: 1px solid var(--brand-border);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--brand);
}

.card-title { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.card-title h3 {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.card-subtitle {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Dominant Status Badge */
.card-badge-wrap {
  flex: 0 1 auto;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.badge-potvrdjeno {
  background: var(--status-potvrdjeno-soft);
  color: var(--status-potvrdjeno-ink);
  border: 1px solid var(--status-potvrdjeno-border);
}
.badge-potvrdjeno .badge-dot { background: var(--status-potvrdjeno); }

.badge-najavljeno {
  background: var(--status-najavljeno-soft);
  color: var(--status-najavljeno-ink);
  border: 1px solid var(--status-najavljeno-border);
}
.badge-najavljeno .badge-dot { background: var(--status-najavljeno); }

.badge-prijave {
  background: var(--status-prijave-soft);
  color: var(--status-prijave-ink);
  border: 1px solid var(--status-prijave-border);
}
.badge-prijave .badge-dot { background: var(--status-prijave); }

.badge-kandidat {
  background: var(--status-kandidat-soft);
  color: var(--status-kandidat-ink);
  border: 1px solid var(--status-kandidat-border);
}
.badge-kandidat .badge-dot { background: var(--status-kandidat); }

.badge-mixed {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.badge-mixed .badge-dot {
  background: linear-gradient(135deg, var(--status-najavljeno) 50%, var(--status-prijave) 50%);
}
.badge-mixed-breakdown {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

/* Note / DKP Bulletin Block */
.card-note-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.card:hover .card-note-block {
  background: #ffffff;
  border-color: #cbd5e1;
}

.card-note-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.card-note-icon {
  width: 13px;
  height: 13px;
  color: var(--brand);
  flex: 0 0 auto;
}
.card-note-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}
.card-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.48;
}

/* Locations List (Stacked Rows / Mini Cards) */
.card-cities-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.card-cities-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-cities-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.loc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.loc-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.loc-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transform: translateX(2px);
}

.loc-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.loc-name-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.loc-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.loc-indicator-potvrdjeno { background: var(--status-potvrdjeno); }
.loc-indicator-najavljeno { background: var(--status-najavljeno); }
.loc-indicator-prijave { background: var(--status-prijave); }
.loc-indicator-kandidat { background: var(--status-kandidat); }

.loc-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.loc-status-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  flex: 0 0 auto;
  white-space: nowrap;
}
.loc-status-chip-potvrdjeno {
  background: var(--status-potvrdjeno-soft);
  color: var(--status-potvrdjeno-ink);
  border: 1px solid var(--status-potvrdjeno-border);
}
.loc-status-chip-najavljeno {
  background: var(--status-najavljeno-soft);
  color: var(--status-najavljeno-ink);
  border: 1px solid var(--status-najavljeno-border);
}
.loc-status-chip-prijave {
  background: var(--status-prijave-soft);
  color: var(--status-prijave-ink);
  border: 1px solid var(--status-prijave-border);
}
.loc-status-chip-kandidat {
  background: var(--status-kandidat-soft);
  color: var(--status-kandidat-ink);
  border: 1px solid var(--status-kandidat-border);
}

.loc-detail {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding-left: 15px;
  line-height: 1.4;
}
.loc-detail-icon {
  font-size: 11px;
  flex: 0 0 auto;
  opacity: 0.85;
}
.loc-detail-text {
  font-weight: 500;
  color: var(--ink-soft);
}

.loc-navigation-block {
  margin: 7px 0 5px 15px;
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}
.loc-navigation-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.loc-navigation-heading-icon {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  color: #fff;
  background: var(--brand);
  border-radius: 9px;
  box-shadow: 0 2px 5px rgba(11, 77, 162, 0.2);
}
.loc-navigation-heading-icon svg {
  width: 18px;
  height: 18px;
}
.loc-navigation-heading-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}
.loc-navigation-heading-copy strong {
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}
.loc-navigation-heading-copy span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}
.loc-navigation-count {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: var(--brand-ink);
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.loc-navigation-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 7px;
  margin-top: 9px;
}
.polling-station-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 58px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbdcf5;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.polling-station-navigation:hover {
  background: #f8fbff;
  border-color: var(--brand-vibrant);
  box-shadow: 0 4px 12px rgba(11, 77, 162, 0.12);
  transform: translateY(-1px);
}
.loc-navigation-target {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.loc-navigation-target-label {
  color: var(--brand-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
}
.loc-navigation-station-name,
.loc-navigation-station-address {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.loc-navigation-station-name {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}
.loc-navigation-station-address {
  color: var(--muted);
  font-size: 10px;
}
.loc-navigation-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 10px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
  transition: background 0.16s ease;
}
.polling-station-navigation:hover .loc-navigation-cta { background: #083875; }
.loc-navigation-cta svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.polling-station-navigation:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
  border-color: var(--brand);
}

.loc-polling-stations {
  margin: 2px 0 2px 15px;
  color: var(--ink-soft);
}
.loc-polling-stations summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}
.polling-station-summary-action {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.polling-station-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 7px 0 2px;
  padding: 0;
}
.polling-station-item {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow-wrap: anywhere;
}
.polling-station-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 11px;
}
.polling-station-heading span {
  color: var(--status-potvrdjeno-ink, #166534);
  font-size: 10px;
  font-weight: 700;
}
.polling-station-name,
.polling-station-address,
.polling-station-coverage,
.polling-station-missing {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}
.polling-station-name { font-weight: 650; }
.polling-station-address { font-style: normal; }
.polling-station-missing { color: var(--muted); }
.loc-source {
  padding-left: 15px;
  margin-top: 4px;
}
.loc-source-link {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.loc-source-link:hover {
  text-decoration: underline;
}

.loc-item.is-hit {
  border-color: var(--brand-vibrant);
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.18);
}

/* Legacy city classes compatibility */
.city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.city {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13.5px;
}
.city-potvrdjeno { border-left: 3px solid var(--status-potvrdjeno); }
.city-najavljeno { border-left: 3px solid var(--status-najavljeno); }
.city-prijave { border-left: 3px solid var(--status-prijave); }
.city-kandidat { border-left: 3px solid var(--status-kandidat); }

.card-expand-btn {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 5px 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  margin: 4px 0 6px;
  transition: color 0.14s ease, transform 0.14s ease;
}
.card-expand-btn:hover {
  color: var(--brand-vibrant);
  text-decoration: underline;
  transform: translateX(2px);
}

/* Card Foot */
.card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.card-foot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.card-foot .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.card-foot .tag .dot { margin-top: 0; }
.card-foot .tag-potvrdjeno { border-color: var(--status-potvrdjeno-border); color: var(--status-potvrdjeno-ink); background: var(--status-potvrdjeno-soft); }
.card-foot .tag-najavljeno { border-color: var(--status-najavljeno-border); color: var(--status-najavljeno-ink); background: var(--status-najavljeno-soft); }
.card-foot .tag-prijave { border-color: var(--status-prijave-border); color: var(--status-prijave-ink); background: var(--status-prijave-soft); }
.card-foot .tag-kandidat { border-color: var(--status-kandidat-border); color: var(--status-kandidat-ink); background: var(--status-kandidat-soft); }

.card-source-wrap {
  margin-left: auto;
  flex: 0 0 auto;
}
.card-source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  transition: all 0.16s ease;
  text-decoration: none;
}
.card-source-link:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(11, 77, 162, 0.2);
}
.source-ext-icon {
  width: 10px;
  height: 10px;
  transition: transform 0.16s ease;
}
.card-source-link:hover .source-ext-icon {
  transform: translate(1px, -1px);
}

.empty {
  margin-top: 8px;
  padding: 44px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.empty-icon { font-size: 30px; margin-bottom: 2px; }
.empty h3 { font-size: 17px; color: var(--ink); }
.empty p { font-size: 14px; color: var(--muted); max-width: 40ch; }

/* ─────────────── STEPS / PROCEDURA ─────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-bottom: clamp(24px, 3vw, 36px);
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.step-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.step-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
}

.step h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ─────────────── ELEVATED CALLOUT BOX (COMPACT & STRUCTURED) ─────────────── */
.callout {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 60%, #eef5ff 100%);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand);
}

.callout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(11, 77, 162, 0.1);
  padding-bottom: 14px;
}

.callout-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.callout-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-micro);
  flex: 0 0 auto;
}

.callout-header h3 {
  font-size: 17.5px;
  color: var(--brand-ink);
  letter-spacing: -0.015em;
}
.callout-subtitle {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-top: 1px;
}

.callout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.callout-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.callout-block {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 77, 162, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.callout-col-highlight .callout-block {
  background: #ffffff;
  border-color: var(--brand-border);
  box-shadow: var(--shadow-micro);
  height: 100%;
  justify-content: space-between;
}

.callout-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.callout-block p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.callout-block strong { color: var(--ink); }

.callout-tip {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid #bfdbfe;
  font-size: 13px;
  color: var(--brand-ink);
  line-height: 1.5;
}

/* ─────────────── ELEVATED NOTES SECTION (STRUCTURED & BALANCED) ─────────────── */
.notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 768px) {
  .notes { grid-template-columns: repeat(2, 1fr); }
}

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.note:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.note-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.note-icon-wrap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.note-icon-blue {
  background: var(--brand-soft);
  color: var(--brand-vibrant);
  border-color: var(--brand-border);
}
.note-icon-amber {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: var(--warn-border);
}
.note-icon-emerald {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: var(--ok-border);
}
.note-icon-red {
  background: var(--accent-red-soft);
  color: var(--accent-red);
  border-color: var(--accent-red-border);
}

.note-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.note h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}

.note-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-list li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  position: relative;
  padding-left: 14px;
}
.note-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.note-list strong {
  color: var(--ink);
  font-weight: 600;
}

.note-featured {
  background: linear-gradient(180deg, #ffffff 0%, #fffcfc 100%);
  border-color: #fecaca;
  box-shadow: 0 4px 18px rgba(193, 39, 45, 0.06), var(--shadow-micro);
}
.note-featured:hover {
  border-color: #f87171;
  box-shadow: 0 8px 24px rgba(193, 39, 45, 0.12);
}
.note-tag-red {
  background: #fef2f2;
  color: var(--accent-red);
  border-color: var(--accent-red-border);
}
.note-featured h3 { color: #991b1b; }
.note-featured .note-list li::before { color: var(--accent-red); }

/* ─────────────── FOOTER ─────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 40px 0 52px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}
.footer-mark svg {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.footer-brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.footer-brand-info strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  transition: all 0.16s ease;
}
.footer-links a:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-border);
}

.footer-disclaimer {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-disclaimer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}
.footer-disclaimer p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}
.footer-copy {
  color: var(--muted);
}
.footer-top-text-link {
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-top-text-link:hover {
  color: var(--brand);
}

/* ─────────────── BACK TO TOP BUTTON ─────────────── */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  box-shadow: var(--shadow-float);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.15s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

/* ─────────────── RESPONSIVE RULES ─────────────── */
@media (min-width: 640px) {
  .timeline, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .timeline, .stats, .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-panel { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .site-nav { display: none; }
  .mobile-subnav { display: block; }
}

@media (max-width: 768px) {
  .callout-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 116px; }

  .wrap { padding-inline: 18px; }
  .section { padding: 42px 0; }

  .header-inner { min-height: 58px; }
  .updated { font-size: 11px; padding: 5px 10px; }

  .hero { padding: 34px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; padding: 13px; }

  .controls { padding: 10px; gap: 10px; }
  .search { flex: 1 1 100%; }
  .search-kbd { display: none; }

  .filters { width: 100%; padding-bottom: 4px; }
  .chip { padding: 7px 12px; font-size: 12.5px; }

  .grid,
  .grid:has(> .card:only-child) { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px 16px; border-radius: var(--radius-lg); }

  .card-head { gap: 8px 10px; }
  .loc-name-group { flex: 1 1 auto; }
  .loc-detail-text { overflow-wrap: anywhere; }
  .card-note { overflow-wrap: anywhere; }
  .card-source-wrap { margin-left: 0; }

  .callout { padding: 18px 16px; border-radius: var(--radius-lg); }

  /* Mobile footer refinement */
  .site-footer {
    padding: 32px 0 88px; /* Safe space to prevent overlap with floating back-to-top button */
    border-top: 1px solid var(--line);
    background: #ffffff;
  }
  .footer-inner {
    gap: 16px;
  }
  .footer-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .footer-brand {
    align-items: center;
    gap: 12px;
  }
  .footer-mark {
    width: 36px;
    height: 36px;
  }
  .footer-brand-info strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
  }
  .footer-badge {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
  }
  .footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-align: center;
  }
  .footer-links a:active {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: var(--brand-border);
  }
  .footer-disclaimer {
    padding: 13px 15px;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    gap: 6px;
  }
  .footer-disclaimer-tag {
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }
  .footer-disclaimer p {
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px;
    padding-top: 10px;
  }
  .footer-top-text-link {
    font-size: 12px;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .header-inner { gap: 10px; }
  .brand { gap: 9px; min-width: 0; }
  .brand-mark, .brand-mark svg { width: 34px; height: 34px; border-radius: 10px; }
  .brand-text strong { font-size: 14px; }
  .brand-text span { font-size: 11px; }
  .updated { gap: 6px; font-size: 10.5px; padding: 4px 9px; }
  .live-dot { width: 6px; height: 6px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 360px) {
  .wrap { padding-inline: 14px; }
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark, .brand-mark svg { width: 30px; height: 30px; border-radius: 9px; }
  .brand-text strong { font-size: 13px; }
  .brand-text span { font-size: 10.5px; }
  .updated { font-size: 10px; padding: 3px 7px; }
  .updated .live-dot { display: none; }
}

/* ============================================================
   Korisni alati i lokalne zajednice dijaspore
   ============================================================ */

/* 1. Brzi pristup pri vrhu (.quick-hub) */
.quick-hub {
  padding: 8px 0 32px;
}

.quick-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hub-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
  user-select: none;
}

.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border-color: var(--line-strong);
}

.hub-card:focus-visible {
  outline: 2px solid var(--brand-vibrant);
  outline-offset: 3px;
}

.hub-card-tools:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.hub-card-community:hover {
  border-color: rgba(15, 23, 42, 0.3);
}

.hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hub-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hub-badge-tools {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.hub-badge-community {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.hub-badge-icon {
  width: 14px;
  height: 14px;
}

.live-dot-slate,
.live-dot-violet {
  background: #475569;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.2);
}

.hub-count-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-alt);
  padding: 3px 8px;
  border-radius: 6px;
}

.hub-ext-arrow {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hub-ext-arrow svg {
  width: 14px;
  height: 14px;
}

.hub-card:hover .hub-ext-arrow {
  background: var(--ink);
  color: #fff;
  transform: translate(2px, -2px);
}

.hub-card-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hub-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hub-icon-box svg {
  width: 22px;
  height: 22px;
}

.hub-icon-blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.hub-icon-slate,
.hub-icon-violet {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.hub-text-block h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.35;
}

.hub-text-block p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.hub-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-hair);
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 12px;
  transition: all 0.15s ease;
}

.hub-btn-tools {
  background: #eff6ff;
  color: #1d4ed8;
}

.hub-btn-community {
  background: #f1f5f9;
  color: #1e293b;
}

.hub-card:hover .hub-btn-tools {
  background: #2563eb;
  color: #ffffff;
}

.hub-card:hover .hub-btn-community {
  background: #0f172a;
  color: #ffffff;
}

.hub-note {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* 2. Diskretni Instagram link u kartici lokacije (.loc-community) */
.loc-community {
  margin-top: 6px;
  display: flex;
  align-items: center;
}

.loc-community-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.loc-community-link:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
  text-decoration: none;
  transform: translateY(-0.5px);
}

.community-icon {
  font-size: 11px;
  opacity: 0.85;
}

.community-handle {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

.community-tag {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  opacity: 0.95;
  padding-left: 2px;
  border-left: 1px solid #cbd5e1;
  margin-left: 2px;
}

.community-ext-icon {
  width: 10px;
  height: 10px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Ostale zajednice na nivou države (.card-extra-comm) */
.card-extra-comm {
  margin: 10px 14px 4px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.extra-comm-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.extra-comm-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #334155;
  background: #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
}

.extra-comm-note {
  font-size: 11.5px;
  color: var(--muted);
}

.extra-comm-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.extra-comm-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 11.5px;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.extra-comm-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  text-decoration: none;
}

.extra-comm-handle {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
}

.extra-comm-city {
  font-size: 11px;
  color: var(--muted);
}

.extra-comm-ext {
  width: 9px;
  height: 9px;
  opacity: 0.7;
}

.extra-comm-pill-fb:hover {
  background: #f0f7ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.extra-comm-pill-fb .extra-comm-handle {
  font-family: inherit;
  font-weight: 600;
}

.extra-comm-icon-fb {
  width: 12px;
  height: 12px;
  color: #1877f2;
  flex-shrink: 0;
}

.comm-card-handle-fb {
  font-family: inherit;
  font-weight: 600;
  color: #1877f2;
}

/* 3. Statička sekcija Alati (#alati) */
.section-tools {
  background: var(--bg);
}

.tools-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.tool-feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-feature-card:hover {
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  border-color: var(--line-strong);
}

.tool-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-type-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.tool-type-amber {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.tool-verified-tag {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.tool-card-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.tool-url-preview {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-bottom: 14px;
}

.tool-summary-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.tool-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-bullet-list li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  position: relative;
  padding-left: 18px;
}

.tool-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--brand);
  font-weight: bold;
}

.tool-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-hair);
}

.tool-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
}

.tool-foot-meta {
  font-size: 12px;
  color: var(--muted);
}

/* Callout za otvaranje baze zajednica */
.community-banner-callout {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.comm-callout-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.comm-callout-text h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.comm-callout-text p {
  font-size: 14px;
  color: #334155;
  margin: 0;
  max-width: 680px;
  line-height: 1.5;
}

.comm-callout-btn {
  flex-shrink: 0;
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.comm-callout-btn:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

/* 4. Pop-up Modal (.hub-modal-backdrop) */
.hub-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.hub-modal-backdrop[hidden] {
  display: none;
  opacity: 0;
}

body.modal-open {
  overflow: hidden;
}

.hub-modal-container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hub-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.hub-modal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-vibrant);
  background: var(--brand-soft);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.hub-modal-title-wrap h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.hub-modal-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.hub-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.hub-modal-close:hover {
  background: var(--line);
  color: var(--ink);
  transform: scale(1.05);
}

.hub-disclaimer-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 24px;
  background: #fffbeb;
  border-bottom: 1px solid #fef3c7;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.45;
}

.hub-disc-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.hub-disclaimer-banner p {
  margin: 0;
}

.hub-modal-tabs {
  display: flex;
  padding: 12px 28px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  gap: 8px;
}

.hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hub-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.hub-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  border-color: var(--line);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.hub-tab-pane {
  display: none;
  padding: 24px 28px;
  overflow-y: auto;
  max-height: 54vh;
}

.hub-tab-pane.is-active {
  display: block;
}

/* Modal Alati grid */
.modal-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.modal-tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.tool-brand-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  margin-bottom: 4px;
}

.tool-brand-amber {
  background: #fffbeb;
  color: #b45309;
}

.modal-tool-brand h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.modal-tool-sub {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.modal-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.modal-tool-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.modal-tool-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tool-features li {
  font-size: 12px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.modal-tool-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: #fffbeb;
  border-radius: 8px;
  font-size: 12px;
  color: #92400e;
  margin-top: 10px;
}

/* Modal Zajednice controls */
.modal-comm-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.modal-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.modal-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.modal-search-input {
  width: 100%;
  padding: 9px 36px 9px 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: 13.5px;
  color: var(--ink);
  transition: all 0.15s ease;
}

.modal-search-input:focus {
  outline: none;
  border-color: #0b4da2;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 77, 162, 0.12);
}

.modal-comm-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
}

.modal-comm-count {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

/* Modal Zajednice grid */
.modal-comm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-comm-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s ease;
}

.modal-comm-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  text-decoration: none;
}

.comm-card-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.comm-card-city {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comm-card-country {
  font-size: 11.5px;
  color: var(--muted);
}

.comm-card-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.comm-card-handle {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #0b4da2;
}

.comm-card-arrow {
  width: 14px;
  height: 14px;
  color: #0b4da2;
  transition: transform 0.15s ease;
}

.modal-comm-card:hover .comm-card-arrow {
  transform: translate(2px, -2px);
}

/* Globalne građanske inicijative sekcija */
.modal-umbrella-section {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.modal-umbrella-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.modal-umbrella-kicker {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0b4da2;
}

.modal-umbrella-note {
  font-size: 11.5px;
  color: var(--muted);
}

.modal-umbrella-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-comm-card-umbrella {
  background: #ffffff;
  border-color: #cbd5e1;
}

.modal-comm-independent-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 77, 162, 0.04);
  border: 1px solid rgba(11, 77, 162, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 14px;
}

.modal-comm-independent-notice svg {
  flex-shrink: 0;
  color: #0b4da2;
}

.hub-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.hub-modal-foot-note {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .modal-umbrella-grid {
    grid-template-columns: 1fr;
  }
  .quick-hub-grid {
    grid-template-columns: 1fr;
  }
  .tools-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .community-banner-callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .comm-callout-btn {
    width: 100%;
    justify-content: center;
  }
  .modal-comm-grid {
    grid-template-columns: 1fr;
  }
  .hub-modal-container {
    max-height: 94vh;
  }
  .hub-modal-header {
    padding: 18px 20px 14px;
  }
  .hub-tab-pane {
    padding: 18px 20px;
  }
  .hub-modal-footer {
    padding: 14px 20px;
  }
}

/* Uski ekrani: zajednice i kartice alata ne smeju da probiju širinu */
.loc-community,
.loc-item,
.loc-list,
.card-cities-wrap,
.tool-feature-card,
.tool-card-head,
.tool-card-body,
.tool-card-foot { min-width: 0; }

.loc-community-link,
.extra-comm-pill {
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.tool-url-preview { overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .loc-navigation-block { margin-left: 0; padding: 9px; }
  .loc-navigation-actions { grid-template-columns: minmax(0, 1fr); }
  .polling-station-navigation { align-items: stretch; flex-direction: column; gap: 8px; }
  .loc-navigation-cta { width: 100%; min-height: 42px; }
  .tool-feature-card { padding: 20px 16px; }
  .tool-card-foot { flex-wrap: wrap; gap: 8px; }
}


/* Coverage i nerezidentno pokrivanje */
.coverage-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2.5px 9px;
  text-decoration: none;
  box-shadow: var(--shadow-micro);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.coverage-badge-link:hover {
  background: #ffffff;
  border-color: var(--brand);
  transform: translateY(-1px);
}
.coverage-badge-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.coverage-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  background: var(--brand-soft);
}
.coverage-info > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.coverage-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}
.coverage-info strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.coverage-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.nonresident-section {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px dashed var(--line-strong);
}
.nonresident-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-border);
}
.nonresident-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.nonresident-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nonresident-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.nonresident-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.nonresident-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.nonresident-route {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  min-width: 0;
}
.nonresident-route-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.nonresident-route strong {
  font-size: 13.5px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.nonresident-route span:last-child {
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.pending-card-subtitle,
.pending-note-text,
.pending-email-link,
.pending-alt-email,
.pending-source-link,
.nonresident-card,
.nonresident-route {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .coverage-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .coverage-info > div {
    width: 100%;
    justify-content: space-between;
  }
  .nonresident-card-header,
  .pending-card-header {
    flex-direction: column;
  }
  .nonresident-status-chip,
  .pending-status-chip {
    align-self: flex-start;
    white-space: normal;
  }
}

/* ─────────────── SEKCIJA: ČEKA SE ZVANIČNA POTVRDA ─────────────── */
.pending-section {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px dashed var(--line-strong);
}

.pending-section-head {
  margin-bottom: 20px;
}

.pending-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.pending-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #cbd5e1;
}

.pending-kicker-icon {
  font-size: 12px;
  line-height: 1;
}

.pending-counter-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.pending-section-head h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.pending-section-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 820px;
}

.pending-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.pending-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pending-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #94a3b8;
}

.pending-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pending-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pending-card-flag {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.pending-card-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.pending-card-subtitle {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.pending-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
  flex-shrink: 0;
}

.pending-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}

.pending-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.pending-card-summary {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

.pending-card-note-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.pending-note-icon {
  font-size: 14px;
  line-height: 1.4;
  flex-shrink: 0;
}

.pending-note-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.pending-card-contact-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}

.pending-contact-icon {
  font-size: 14px;
  line-height: 1.4;
  flex-shrink: 0;
}

.pending-contact-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pending-contact-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.pending-email-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 13.5px;
  line-height: 1.4;
}

.pending-email-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.15s ease;
}

.pending-email-link:hover {
  color: var(--brand-vibrant);
  text-decoration: underline;
}

.pending-alt-email {
  font-size: 12.5px;
  color: var(--muted);
  word-break: break-all;
}

.pending-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.pending-date-tag {
  font-size: 12px;
  color: var(--muted-light);
  font-weight: 500;
}

.pending-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

.pending-source-link:hover {
  text-decoration: underline;
  color: var(--brand-vibrant);
}

.pending-source-link .source-ext-icon {
  width: 10px;
  height: 10px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

