/* ============================================================
   Podstranice usluga (/usluge/..., /en/services/...)
   Zajedničke komponente za sve stranice usluga. Učitava se
   nakon style.css i koristi njegove varijable i klase
   (.section-title, .title-underline, .btn--primary, .process-card ...).
   ============================================================ */

.svc-page main { position: relative; z-index: 2; }
.svc-page main [id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* rasklopivi blok (npr. "Prikaži raspored portova") */
.svc-details { margin-top: 1rem; border-top: 1px solid rgba(212, 175, 55, 0.18); }
.svc-details summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  color: var(--electric-blue);
  font-weight: 600;
}
.svc-details summary::marker { color: var(--electric-blue); }
.svc-details ul { margin: 0.25rem 0 0.5rem; padding-left: 1.2rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.75; columns: 2 300px; column-gap: 2rem; }

.svc-section {
  padding: 4.5rem 0;
  scroll-margin-top: 84px;
}
.svc-section--tight { padding-top: 2rem; }
.svc-section + .svc-section { border-top: 1px solid rgba(212, 175, 55, 0.08); }

.svc-head { text-align: center; margin-bottom: 2.5rem; }
.svc-head .section-title { margin-bottom: 1rem; }
.svc-head .title-underline { margin-bottom: 1.5rem; }
.svc-head .section-description { max-width: 820px; margin: 0 auto; }

.svc-text { color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; }
.svc-text p { margin-bottom: 1rem; }
.svc-text strong { color: var(--text-light); font-weight: 650; }
.svc-narrow { max-width: 860px; margin-left: auto; margin-right: auto; }

.svc-h3 {
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--text-light);
  margin: 0 0 0.75rem;
}
.svc-h3 i { color: var(--electric-blue); margin-right: 0.5rem; }
.svc-block { margin-top: 3.5rem; }
.svc-block > .svc-h3 { text-align: center; }
.svc-block > .svc-intro { text-align: center; color: var(--text-muted); max-width: 760px; margin: 0 auto 1.5rem; }

.svc-note { font-size: 0.9rem; color: rgba(233, 202, 165, 0.75); margin-top: 0.75rem; }

/* Vidljivi placeholderi koje treba popuniti */
.ph {
  background: rgba(255, 140, 66, 0.14);
  color: #ffb48a;
  border: 1px dashed rgba(255, 140, 66, 0.6);
  border-radius: 4px;
  padding: 0 0.3em;
  font-weight: 600;
}

/* ---------- Prekidač jezika u navigaciji ---------- */
.svc-lang {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: 0.5rem;
}
.svc-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-base);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.svc-lang a:hover { background: rgba(212, 175, 55, 0.12); color: var(--electric-blue); }
.svc-lang a[aria-current] { background: var(--electric-blue); color: var(--dark-bg); border-color: var(--electric-blue); }
@media (max-width: 991.98px) {
  .svc-lang { margin: 0.5rem 0 0.25rem 1rem; }
}

/* ---------- Hero ---------- */
.svc-hero {
  padding: 7.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.08), transparent 45%),
    var(--gradient-dark);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.svc-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.svc-breadcrumb li + li::before {
  content: '\203A';
  margin-right: 0.5rem;
  color: rgba(212, 175, 55, 0.6);
}
.svc-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.svc-breadcrumb a:hover { color: var(--electric-blue); }
.svc-breadcrumb [aria-current] { color: var(--text-light); }

.svc-hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--electric-blue);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 1.25rem;
}
.svc-hero__title {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.svc-hero__lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2rem;
}
.svc-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.svc-actions .btn--primary { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; }

/* sporedni gumb: obrub, isti oblik kao .btn--primary */
.svc-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--electric-blue);
  border-radius: 25px;
  color: var(--text-light);
  background: transparent;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.svc-btn-ghost:hover { background: rgba(212, 175, 55, 0.12); color: var(--electric-blue); transform: translateY(-2px); }
.svc-btn-ghost i { color: var(--electric-blue); }

.svc-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.svc-fact {
  background: var(--dark-secondary);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  padding: 1.1rem 1.1rem 1rem;
  height: 100%;
}
.svc-fact i { font-size: 1.3rem; color: var(--electric-blue); margin-bottom: 0.6rem; display: block; }
.svc-fact strong { display: block; color: var(--text-light); font-size: 1.02rem; margin-bottom: 0.25rem; }
.svc-fact span { display: block; color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

/* ---------- Kartice ---------- */
.svc-card {
  background: var(--dark-secondary);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  padding: 1.6rem;
  height: 100%;
  position: relative;
}
.svc-card p:last-child, .svc-card ul:last-child { margin-bottom: 0; }
.svc-card p { color: var(--text-muted); line-height: 1.7; }
.svc-card--accent { border-color: rgba(212, 175, 55, 0.45); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.svc-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: 0.5rem;
}

/* pregled usluga s linkovima na sekcije */
.svc-ov {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.svc-ov a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.5rem;
  background: var(--dark-secondary);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.svc-ov a:hover, .svc-ov a:focus-visible {
  transform: translateY(-6px);
  border-color: var(--electric-blue);
  box-shadow: var(--shadow-electric);
}
.svc-ov i { font-size: 1.7rem; color: var(--electric-blue); margin-bottom: 0.5rem; }
.svc-ov h3 { font-size: 1.12rem; font-weight: 650; color: var(--text-light); margin: 0; }
.svc-ov p { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.svc-ov .svc-ov__more { margin-top: auto; padding-top: 0.5rem; color: var(--electric-blue); font-size: 0.9rem; font-weight: 600; }

/* podsekcije (H3) u mreži */
.svc-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.svc-sub {
  background: rgba(44, 44, 44, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-left: 3px solid rgba(212, 175, 55, 0.55);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}
.svc-sub h3 { font-size: 1.08rem; font-weight: 650; color: var(--text-light); margin: 0 0 0.5rem; }
.svc-sub h3 i { color: var(--electric-blue); margin-right: 0.45rem; width: 1.2em; text-align: center; }
.svc-sub p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.7; margin: 0; }
.svc-sub p + p { margin-top: 0.6rem; }

/* liste s kvačicama */
.svc-checks { list-style: none; padding: 0; margin: 0; }
.svc-checks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.svc-checks li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--electric-blue);
}
.svc-checks--no li::before { content: '\f00d'; color: #ff6b57; }

/* numerirani koraci (opremanje ureda) */
.svc-numbered { list-style: none; counter-reset: svcnum; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.svc-numbered li {
  counter-increment: svcnum;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--dark-secondary);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.svc-numbered li::before {
  content: counter(svcnum, decimal-leading-zero);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-2);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1rem;
}
.svc-numbered strong { display: block; color: var(--text-light); margin-bottom: 0.15rem; }
.svc-numbered span { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Tablice ---------- */
.svc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  background: var(--dark-secondary);
}
.svc-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.svc-table caption {
  caption-side: top;
  padding: 1rem 1.1rem 0.25rem;
  color: var(--text-light);
  font-weight: 650;
  text-align: left;
}
.svc-table th, .svc-table td {
  padding: 0.8rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.svc-table thead th {
  color: var(--electric-blue);
  font-size: 0.78rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  font-weight: 650;
}
.svc-table tbody th { color: var(--text-light); font-weight: 650; white-space: nowrap; }
.svc-table td { color: var(--text-muted); }
.svc-table tbody tr:last-child th, .svc-table tbody tr:last-child td { border-bottom: 0; }
.svc-table .is-active { background: rgba(212, 175, 55, 0.08); color: var(--text-light); }

/* oznake (VLAN boje, ključne riječi) */
.svc-dot {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  border-radius: 3px;
  margin-right: 0.45rem;
  vertical-align: -0.05em;
}

.svc-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; justify-content: center; }
.svc-tags li {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--text-light);
  font-size: 0.95rem;
}
.svc-tags--sm { justify-content: flex-start; gap: 0.4rem; }
.svc-tags--sm li { padding: 0.2rem 0.7rem; font-size: 0.8rem; background: rgba(212, 175, 55, 0.14); border-color: rgba(212, 175, 55, 0.28); }

/* ---------- Projekti ---------- */
.svc-project {
  background: var(--dark-secondary);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.svc-project--lead { border-color: rgba(212, 175, 55, 0.45); }
.svc-project__media { position: relative; aspect-ratio: 4 / 3; background: #111; overflow: hidden; }
.svc-project__media > a { display: block; width: 100%; height: 100%; }
.svc-project__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-project__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; background: #111; }
.svc-project__thumbs a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; min-height: 44px; }
.svc-project__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.svc-project__thumbs a:hover img { transform: scale(1.08); }
.svc-project__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.svc-project__body h3 { font-size: 1.15rem; font-weight: 650; color: var(--text-light); margin: 0; }
.svc-project dl { margin: 0; display: grid; gap: 0.6rem; }
.svc-project dt {
  font-size: 0.72rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--gold-3);
}
.svc-project dd { margin: 0.1rem 0 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.svc-project__link { margin-top: auto; color: var(--electric-blue); font-weight: 600; text-decoration: none; }
.svc-project__link:hover { text-decoration: underline; }

/* ---------- FAQ (details/summary) ---------- */
.svc-faq { max-width: 900px; margin: 0 auto; }
.svc-faq details { border-bottom: 1px solid rgba(212, 175, 55, 0.18); }
.svc-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1.15rem 0;
  color: var(--text-light);
  font-size: 1.02rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary:hover, .svc-faq summary:focus-visible { color: var(--electric-blue); }
.svc-faq summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
  transition: transform 0.3s ease, background 0.3s ease;
}
.svc-faq details[open] summary::after { transform: rotate(45deg); background: rgba(212, 175, 55, 0.12); color: var(--electric-blue); border-color: var(--electric-blue); }
.svc-faq details > div { padding: 0 0 1.4rem; color: var(--text-muted); line-height: 1.75; max-width: 780px; }
.svc-faq details > div p { margin: 0; }

/* ---------- Završni poziv ---------- */
.svc-cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.14), transparent 60%),
    var(--dark-secondary);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 3rem 1.5rem;
}
.svc-cta .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.svc-cta .svc-actions { justify-content: center; margin-top: 1.5rem; }
.svc-cta p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.svc-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.svc-others a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 64px;
  padding: 1rem 1.2rem;
  background: var(--dark-secondary);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.svc-others a:hover { border-color: var(--electric-blue); transform: translateY(-3px); color: var(--electric-blue); }
.svc-others i { color: var(--electric-blue); font-size: 1.3rem; width: 1.6rem; text-align: center; }

/* ---------- Lightbox (dialog) ---------- */
.svc-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  margin: 0;
}
.svc-lightbox::backdrop { background: rgba(10, 10, 10, 0.92); }
.svc-lightbox figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4rem 1.5rem;
}
.svc-lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: 8px; background: #fff; }
.svc-lightbox figcaption { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.75rem; text-align: center; max-width: 760px; }
.svc-lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(26, 26, 26, 0.85);
  color: var(--text-light);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.svc-lightbox button:hover, .svc-lightbox button:focus-visible { color: var(--electric-blue); border-color: var(--electric-blue); }
.svc-lightbox__close { top: 1rem; right: 1rem; }
.svc-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.svc-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.svc-lightbox[data-single] .svc-lightbox__prev,
.svc-lightbox[data-single] .svc-lightbox__next { display: none; }
@media (max-width: 576px) {
  .svc-lightbox figure { padding: 4rem 0.5rem 1rem; }
  .svc-lightbox__prev, .svc-lightbox__next { top: auto; bottom: 1rem; transform: none; }
}

@media (max-width: 768px) {
  .svc-hero { padding: 6.5rem 0 2.5rem; }
  .svc-section { padding: 3.25rem 0; }
  .svc-block { margin-top: 2.5rem; }
}
@media (max-width: 420px) {
  .svc-facts { grid-template-columns: 1fr; }
  .svc-actions > * { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-ov a, .svc-others a, .svc-btn-ghost, .svc-project__thumbs img, .svc-faq summary::after { transition: none !important; transform: none !important; }
}

/* ============================================================
   Interaktivni prikazi (zajedničko za sve stranice usluga):
   okvir .viz, kontrole, status, legenda, oblačići
   ============================================================ */
:root {
  --viz-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --viz-line: rgba(255, 255, 255, 0.09);
}
/* ---------- Okvir prikaza ---------- */
/* blok s prikazom je uži od stranice, da dijagram ne zauzme cijeli ekran */
.svc-block:has(> .viz) { max-width: 880px; margin-left: auto; margin-right: auto; }
.viz {
  margin: 0 auto;
  background: #1e1e1e;
  border: 1px solid var(--viz-line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.1rem;
}
.viz + .viz { margin-top: 1.5rem; }
.viz-svg { display: block; width: 100%; height: auto; font-family: var(--font-family-base); }
.viz figcaption, .viz .viz-cap { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-top: 0.8rem; }
.viz { position: relative; }
.viz-stage { position: relative; }
.viz-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.viz-scroll > .viz-stage { min-width: 640px; }

/* kontrole: oznaka + segmentirana grupa gumba */
.viz-controls { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; margin-bottom: 0.8rem; }
.viz-controls + .viz-controls { margin-top: -0.25rem; }
.viz-controls--end { justify-content: flex-end; }
.viz-controls__label { font-size: 0.82rem; color: var(--text-muted); min-width: 4.8rem; }
.viz-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #151515;
}
.viz-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text-light);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.viz-seg .viz-btn { border-color: transparent; border-radius: 7px; }
.viz-btn:hover { background: rgba(255, 255, 255, 0.06); }
.viz-btn:focus-visible { outline: 2px solid var(--electric-blue); outline-offset: 2px; }
.viz-btn[aria-pressed="true"] { background: rgba(212, 175, 55, 0.16); color: #f3d77e; box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.55); }
.viz-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.viz-btn .svc-dot { margin-right: 0; }
.viz-btn--icon { padding: 0; width: 44px; border-radius: 50%; margin-left: auto; color: var(--text-muted); }
.viz-btn--icon:hover { color: var(--text-light); }

.viz-status {
  margin: 0.8rem 0 0;
  padding: 0.15rem 0 0.15rem 0.85rem;
  border-left: 2px solid rgba(212, 175, 55, 0.7);
  color: #e8e2cf;
  font-size: 0.92rem;
  line-height: 1.55;
  min-height: 3.1em;
}

.viz-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; list-style: none; padding: 0; margin: 0.8rem 0 0; font-size: 0.82rem; color: var(--text-muted); }
.viz-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.viz-legend .svc-dot { width: 0.7em; height: 0.7em; }
.viz-legend .lg-ok { color: var(--ok); font-weight: 700; }
.viz-legend .lg-no { color: var(--bad); font-weight: 700; }
.viz-legend .lg-stripe {
  width: 1.5em; height: 0.75em; border-radius: 2px;
  background: repeating-linear-gradient(135deg, var(--vlan-10) 0 4px, var(--vlan-20) 4px 8px, var(--vlan-30) 8px 12px);
}
.viz-legend .lg-off { width: 0.9em; height: 0.75em; border-radius: 3px; background: #0e0e0e; box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.6); }
.viz-legend .lg-led { width: 0.9em; height: 0.4em; border-radius: 1px; }
.viz-legend .lg-led--link { background: #3ecf6e; }
.viz-legend .lg-led--poe { background: var(--poe); }
.viz-legend .lg-pkt { width: 1em; height: 0.5em; border-radius: 1px; background: #efe9d8; }
.viz-legend .lg-pkt--up { background: var(--electric-blue); }
.viz-legend .lg-poe { width: 1.5em; height: 3px; background: repeating-linear-gradient(90deg, var(--poe) 0 3px, transparent 3px 8px); }

/* SVG tekst i oblici, zajedničko */
.svg-label { fill: var(--text-light); font-size: 14px; font-weight: 600; }
.svg-sub { fill: var(--text-muted); font-size: 12px; }
.svg-small { fill: var(--text-muted); font-size: 11px; }
.svg-mono { fill: #a9a291; font-family: var(--viz-mono); font-size: 11px; }
.svg-box { fill: #262626; stroke: rgba(233, 202, 165, 0.35); stroke-width: 1.2; }
.svg-icon { fill: none; stroke: var(--text-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-cable { fill: none; stroke: #4f4b3f; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.svg-halo { paint-order: stroke; stroke: #1e1e1e; stroke-width: 4px; stroke-linejoin: round; }

/* oblačići i aktivne zone preko SVG-a */
.viz-hotspots { position: absolute; inset: 0; pointer-events: none; }
.viz-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.viz-hotspot:focus-visible { outline: 2px solid var(--electric-blue); outline-offset: 2px; }
.viz-tip {
  position: absolute;
  z-index: 5;
  max-width: min(300px, 90%);
  padding: 0.5rem 0.7rem;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}
.viz-tip[hidden] { display: none; }
.viz-tip.is-below { transform: translate(-50%, 10px); }
