.hero-title { font-family: 'Permanent Marker', cursive; letter-spacing: 0.01em; }
/* ── Mobile nav: sakrij tekstualne linkove ── */
@media (max-width: 768px) {
  .site-nav a { display: none; }
}
/* ── Ispod 425px: sakrij i lang/filter ── */
@media (max-width: 424px) {
  .lang-switcher, .modules-filter-btn { display: none !important; }
}

/* ── Mobile moduli: lijevi alignment ── */
@media (max-width: 425px) {
  .module-card { text-align: left; }
  .module-icon { text-align: left; }
  .module-group-header { justify-content: flex-start !important; gap: 0.75rem; }
  .module-group-header::after { margin-left: auto; }
}

/* ── Lang switcher ── */
.lang-switcher {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px; padding: 2px;
}
.lang-btn {
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  border: none; background: transparent;
  color: rgba(255,255,255,0.9); line-height: 1;
}
.lang-btn.lang-active {
  background: #1e88e5; color: #fff; cursor: default;
}
.lang-btn.lang-en {
  position: relative; cursor: not-allowed; opacity: 0.45;
}
.lang-btn.lang-en::after {
  content: attr(data-tooltip);
  position: absolute; top: calc(100% + 7px); left: 50%;
  transform: translateX(-50%);
  background: #0d1f2d; color: #90caf9;
  font-size: 0.7rem; font-weight: 500;
  white-space: nowrap; padding: 0.28rem 0.6rem;
  border-radius: 5px; border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none; opacity: 0;
  transition: opacity 0.15s; z-index: 200;
}
.lang-btn.lang-en:hover::after { opacity: 1; }

/* ── Modules filter toggle ── */
.modules-filter-btn {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px; font-size: 0.75rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9);
  cursor: pointer; white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.modules-filter-btn:hover { background: rgba(255,255,255,0.16); }
.modules-filter-btn.filter-active {
  background: rgba(30,136,229,0.25);
  border-color: #1e88e5; color: #fff;
}

/* ── Footer brand name — text stroke oko svakog slova ── */
footer .brand-name {
  -webkit-text-stroke: 0.5px #1e88e5;
  text-stroke: 0.5px #1e88e5;
}

/* ── Hero tag bliže headeru, veći razmak prema naslovu ── */
.hero { padding-top: 3.5rem; }
.hero-tag { margin-bottom: 3rem; }

/* ── Moduli naslov bliže vrhu sekcije ── */
#modules.section { padding-top: 0; }
#modules .section-title { margin-bottom: 3rem; }

/* ── About sekcija ── */
#about.section-alt { padding-top: 0.25rem; scroll-margin-top: 4.5rem; }
#about .section-title { margin-bottom: 5rem; }
#support .section-title { margin-bottom: 5rem; }
#about  { padding-bottom: 2.5rem; }
#support { padding-top: 2.5rem; }
.about-quote-top  { margin-top: 0; margin-bottom: 8rem; }
.about-quote-bottom { margin-top: 8rem; margin-bottom: 0; }

/* ── Stat blokovi — visina prati tekst ── */
#about .about-grid   { grid-template-columns: 2.5fr 0.65fr; align-items: stretch; }
#about .about-stats  { height: 100%; gap: 0.5rem; }
#about .stat         { flex: 1; padding: 0 0.75rem; display: flex; flex-direction: column; justify-content: center; }
#about .stat-num     { font-size: 1.6rem; }
#about .stat-label   { font-size: 0.75rem; margin-top: 0.2rem; }

/* ── Citat 1 → grid: veći razmak ── */
.about-quote-top { margin-bottom: 6rem; }

/* ── About + quote — mobile ── */
@media (max-width: 768px) {
  #about .about-grid   { grid-template-columns: 1fr; }
  #about .about-stats  { flex-direction: row; flex-wrap: wrap; height: auto; gap: 0.5rem; }
  #about .stat         { flex: 1 1 42%; min-width: 80px; padding: 0.6rem 0.5rem; }
  .about-quote-top     { margin-top: 0; margin-bottom: 2rem; }
  .about-quote-bottom  { margin-top: 2rem; margin-bottom: 0; }
}

/* ── Citati u About ── */
.about-quote {
  text-align: center;
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dim);
  margin: 4rem auto;
  max-width: 680px;
  line-height: 1.5;
}
.about-quote + .about-quote { margin-top: 0.2rem; margin-bottom: 1.5rem; }

/* ── Footer social icons ── */
.footer-social {
  display: flex; align-items: center; gap: 0.55rem;
}
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  flex-shrink: 0;
}
.social-icon svg { width: 1.15rem; height: 1.15rem; fill: currentColor; display: block; }
.social-icon:hover { transform: translateY(-2px); }
.social-icon.si-hotmail:hover  { background: #0078D4; color: #fff; }
.social-icon.si-gmail:hover    { background: #EA4335; color: #fff; }
.social-icon.si-linkedin:hover { background: #0A66C2; color: #fff; }
.social-icon.si-facebook:hover { background: #1877F2; color: #fff; }
.social-icon.si-instagram:hover{ background: #C13584; color: #fff; }
.social-icon.si-saiyan:hover   { background: #ff6b35; }
.social-icon.si-saiyan img, .social-icon.si-marko img {
  width: 1.15rem; height: 1.15rem; object-fit: contain; display: block; border-radius: 2px;
}
.social-icon.si-marko:hover    { background: #1e88e5; }

/* ── Footer copyright link ── */
.footer-link {
  text-decoration: none; color: inherit; display: block;
  transition: opacity 0.2s;
}
.footer-link:hover { opacity: 0.72; }

/* ── Podrška sekcija ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
.support-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.support-icon svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
.support-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; }
.support-card p  { font-size: 0.82rem; color: var(--text-dim); margin: 0; line-height: 1.5; }
.support-btn {
  display: inline-block;
  margin-top: auto;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--border);
  background: transparent; color: var(--text);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.support-btn:hover { background: var(--border); }
.support-btn.primary { background: #ff6b35; color: #fff; border-color: #ff6b35; }
.support-btn.primary:hover { background: #e85d29; border-color: #e85d29; }
.support-btn.revolut { background: #191c33; color: #fff; border-color: #7b61ff; }
.support-btn.revolut:hover { background: #7b61ff; border-color: #7b61ff; }
.iban-box {
  font-family: monospace; font-size: 0.78rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px; padding: 0.5rem 0.75rem;
  color: var(--text); letter-spacing: 0.04em;
  width: 100%; word-break: break-all;
}
.yt-links {
  display: flex; flex-direction: column; gap: 0.5rem; width: 100%;
  max-height: calc(3 * 2.55rem + 2 * 0.5rem);
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,0,0,0.35) transparent;
  padding-right: 2px;
}
.yt-links::-webkit-scrollbar { width: 4px; }
.yt-links::-webkit-scrollbar-track { background: transparent; }
.yt-links::-webkit-scrollbar-thumb { background: rgba(255,0,0,0.35); border-radius: 4px; }
.yt-link {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255,0,0,0.07);
  border: 1px solid rgba(255,0,0,0.15);
  border-radius: 6px; padding: 0.5rem 0.75rem;
  text-decoration: none; color: var(--text);
  font-size: 0.8rem; font-weight: 500;
  transition: background 0.18s;
}
.yt-link:hover { background: rgba(255,0,0,0.15); }
.yt-link svg  { width: 1.1rem; height: 1.1rem; fill: #FF0000; flex-shrink: 0; }
.yt-pdf-link {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 0.65rem; padding: 0.45rem 0.75rem;
  background: rgba(230,81,0,0.08); border: 1px solid rgba(230,81,0,0.25);
  border-radius: 6px; text-decoration: none;
  color: var(--text); font-size: 0.8rem; font-weight: 500;
  transition: background 0.18s;
}
.yt-pdf-link:hover { background: rgba(230,81,0,0.18); }
.yt-pdf-link svg { width: 1rem; height: 1rem; flex-shrink: 0; fill: #e65100; }

/* ── Barcode modal ── */
#modal-barcode {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.85); z-index: 600;
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
#modal-barcode.open { display: flex; }
#modal-barcode img {
  max-width: 95vw; max-height: 80vh;
  width: auto; height: auto;
  border-radius: 6px;
  image-rendering: pixelated;
}
#modal-barcode .barcode-close {
  position: fixed; top: 1rem; right: 1.25rem;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 1.5rem; line-height: 1;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
#modal-barcode .barcode-close:hover { background: rgba(255,255,255,0.3); }
.btn-zoom-barcode {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.85rem; font-size: 0.78rem;
  background: var(--border); border: none; border-radius: 6px;
  color: var(--text); cursor: pointer; margin-top: -0.25rem;
}
.btn-zoom-barcode:hover { background: #1e88e5; color: #fff; }

/* ── Disclaimer modal ── */
#modal-disclaimer {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 500;
  align-items: center; justify-content: center;
}
#modal-disclaimer.open { display: flex; }
.disclaimer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 560px; width: 90%;
  max-height: 80vh; overflow-y: auto;
}
.disclaimer-box h3 { margin: 0 0 1rem; font-size: 1rem; color: var(--text); }
.disclaimer-box p  { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 0.75rem; }
.disclaimer-box .disc-close {
  display: block; margin: 1.25rem auto 0;
  padding: 0.5rem 1.5rem;
  background: var(--border); border: none;
  border-radius: 6px; color: var(--text);
  font-size: 0.85rem; cursor: pointer;
}
.disclaimer-box .disc-close:hover { background: #1e88e5; color: #fff; }
.footer-disclaimer {
  font-size: 0.75rem; color: var(--text-dim);
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; background: none; border: none;
  padding: 0; margin-top: 0.3rem; display: block; text-align: center;
}
.footer-disclaimer:hover { color: var(--text); }

/* ── Mobile: EC grupe collapsible ── */
@media (max-width: 900px) {
  .module-group-header {
    cursor: pointer; user-select: none;
    justify-content: space-between;
  }
  .module-group-header::after {
    content: '▶';
    font-size: 0.8rem; color: var(--text-dim);
    flex-shrink: 0; transition: transform 0.2s;
  }
  .module-group-header.mg-open::after { transform: rotate(90deg); }
  .module-group .module-grid {
    display: none;
    margin-bottom: 0;
  }
  .module-group .module-grid.mg-open { display: grid; }
  .module-group { margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0; }
  .module-group-header { margin-bottom: 0; padding: 0.75rem 0; border-bottom: none; }
  .module-group .module-grid.mg-open { padding-bottom: 1rem; }
}
