/* ================================================================
   TURNIRZONA redesign.css — baziran na potvrđenom dizajnu
   Učitava se NAKON main.css i prepisuje sve što treba
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── VARIJABLE ── */
:root{
  --green:#7ED321 !important;
  --tz-green:#7ED321;
  --dark:#0A0F1A;
  --dark2:#0E1420;
  --dark3:#131925;
  --dark4:#1A2232;
  --dark5:#1E293B;
  --tz-text:#F0F4FF;
  /* v3 19.5.2026 — drasti?no svjetliji tekstovi za ?itljivost na arena/futsal pozadini */
  --tz-text2:#E0E8F5;   /* bilo A8B8D0 — sekundarni tekst (skoro bijeli) */
  --tz-text3:#B8C8DC;   /* bilo 6B7E99 — tercijarni tekst (svjetlosivi, ne tamni) */
  --tz-border:rgba(255,255,255,0.25);   /* bilo 0.07 — borderi UI elemenata */
  --tz-border2:rgba(126,211,33,0.22);
}

/* ── BODY & FONT ── */
body { font-family:'Poppins',sans-serif !important; }

/* ── HEADER — tamni, zauvijek ── */
#appHeader,
header#appHeader {
  background: rgba(10,15,26,0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  height: 64px !important;
}
#appHeader.scrolled,
header#appHeader.scrolled {
  background: rgba(10,15,26,0.97) !important;
  border-bottom-color: rgba(126,211,33,0.15) !important;
}

/* Logo SVG — skriva ⚽, prikazuje SVG TZ logo */
#appHeader .logo-ball,
#appHeader #headerIcon,
#appHeader #headerIconMob {
  font-size: 0 !important;
  color: transparent !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 42px !important;
  height: 42px !important;
  position: relative !important;
  overflow: visible !important;
}
#appHeader .logo-ball::after,
#appHeader #headerIcon::after,
#appHeader #headerIconMob::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/tz-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* Ako postoji uploadani logo — prikaži njega */
#appHeader .logo-ball img,
#appHeader #headerIcon img,
#appHeader #headerIconMob img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
#appHeader .logo-ball:has(img)::after,
#appHeader #headerIcon:has(img)::after,
#appHeader #headerIconMob:has(img)::after { display: none !important; }

/* Logo naziv */
#appHeader .logo-name,
#appHeader #headerTitle {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: 0.5px !important;
}
#appHeader .logo-sub,
#appHeader #headerSub {
  color: rgba(255,255,255,0.45) !important;
  font-family: 'Poppins', sans-serif !important;
}

/* Desk nav gumbi */
#appHeader .desk-nav button,
#appHeader nav button {
  font-family: 'Poppins', sans-serif !important;
  color: var(--tz-text2) !important;
  border-radius: 8px !important;
}
#appHeader .desk-nav button:hover { color: var(--tz-text) !important; background: rgba(255,255,255,0.06) !important; }
#appHeader .desk-nav button.active { color: var(--tz-green) !important; background: rgba(126,211,33,0.1) !important; }

/* Registracija — zeleni gumb */
#navLoggedOut button[onclick*="registerModal"],
#navLoggedOut button[data-i18n="btn_registration"] {
  background: #7ED321 !important;
  color: #060d00 !important;
  border: none !important;
  font-weight: 700 !important;
  font-family: 'Poppins', sans-serif !important;
  border-radius: 8px !important;
}
#navLoggedOut button[onclick*="registerModal"]:hover {
  background: #90e030 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(126,211,33,0.38) !important;
}

/* Prijava gumb */
#navLoggedOut .admin-btn,
#navLoggedOut button[onclick*="showLoginModal"] {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  color: var(--tz-text2) !important;
  font-family: 'Poppins', sans-serif !important;
}

/* Mob toggle */
.mob-toggle {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 8px !important;
  color: var(--tz-text2) !important;
}
.mob-toggle.active, .mob-toggle.open {
  background: rgba(126,211,33,0.1) !important;
  border-color: var(--tz-border2) !important;
  color: #7ED321 !important;
}

/* ── MOBILE NAV — tamna ── */
#mobNav, .mob-nav {
  background: rgba(8,12,20,0.98) !important;
  backdrop-filter: blur(24px) !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
}
#mobNav button, .mob-nav button {
  font-family: 'Poppins', sans-serif !important;
  color: var(--tz-text2) !important;
  border-radius: 10px !important;
}
#mobNav button:hover, .mob-nav button:hover {
  background: rgba(255,255,255,0.05) !important;
  color: var(--tz-text) !important;
}
#mobNavLoggedOut button[onclick*="registerModal"] {
  background: #7ED321 !important;
  color: #060d00 !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  padding: 14px !important;
}

/* ── HERO — arena background ── */
body.home-active {
  background: var(--dark) !important;
}
body.home-active #sec-home {
  background: var(--dark) !important;
}
body.home-active #sec-home .home-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 560px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3.5rem 1.5rem 0 !important;
  text-align: center !important;
  background-image:
    radial-gradient(ellipse 30% 60% at 20% 0%, rgba(126,211,33,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 30% 60% at 80% 0%, rgba(126,211,33,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 100% 30% at 50% 100%, rgba(126,211,33,0.04) 0%, transparent 70%),
    linear-gradient(180deg, #060c14 0%, #0a1220 30%, #080f1c 60%, var(--dark) 100%) !important;
}

/* Hero naslov */
body.home-active #sec-home .home-hero-split-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(2.4rem,8vw,4.8rem) !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
  color: #fff !important;
}
body.home-active #sec-home .home-hero-split-eyebrow {
  color: rgba(255,255,255,0.75) !important;
  font-family: 'Poppins', sans-serif !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85) !important;
}
body.home-active #sec-home .home-hero-split-label {
  color: rgba(255,255,255,0.92) !important;
  font-family: 'Poppins', sans-serif !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85) !important;
}
body.home-active #sec-home .home-hero-sub {
  color: #E8EFFA !important;
  font-family: 'Poppins', sans-serif !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 2px 8px rgba(0,0,0,0.5) !important;
  font-weight: 500 !important;
}

/* Global stats */
body.home-active #sec-home .home-global-stats {
  border-color: rgba(255,255,255,0.18) !important;
}
body.home-active #sec-home .home-gstat-val {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  color: #fff !important;
}
body.home-active #sec-home .home-gstat-lbl {
  font-family: 'Poppins', sans-serif !important;
  color: var(--tz-text3) !important;
  letter-spacing: 1.5px !important;
}

/* Search combo */
body.home-active .search-combo {
  background: rgba(255,255,255,0.04) !important;
  border: 1.5px solid rgba(255,255,255,0.07) !important;
  border-radius: 11px !important;
}
body.home-active .search-combo:focus-within {
  border-color: rgba(126,211,33,0.4) !important;
  box-shadow: 0 0 0 3px rgba(126,211,33,0.08) !important;
}
body.home-active .search-combo-input { color: var(--tz-text) !important; }
body.home-active .search-combo-input::placeholder { color: var(--tz-text3) !important; }
body.home-active .search-combo-select { color: var(--tz-text2) !important; }

/* ── ONBOARDING BANNER ── */
.tz-onboard-banner,
.onboard-banner,
#tzOnboardBanner {
  background: linear-gradient(135deg,rgba(126,211,33,0.08) 0%,rgba(10,15,26,0) 70%) !important;
  border: 1px solid rgba(126,211,33,0.2) !important;
  border-radius: 24px !important;
  padding: 1.25rem 1.75rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  margin-bottom: 2rem !important;
  position: relative !important;
  overflow: hidden !important;
}
.tz-ob-icon, .ob-icon {
  width: 50px !important; height: 50px !important;
  background: rgba(126,211,33,0.12) !important;
  border: 1.5px solid rgba(126,211,33,0.25) !important;
  border-radius: 14px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 1.5rem !important; flex-shrink: 0 !important;
}
.tz-ob-text h3, .ob-text h3 { font-size: 0.95rem !important; font-weight: 700 !important; color: #fff !important; margin-bottom: 2px !important; font-family: 'Poppins',sans-serif !important; }
.tz-ob-text p, .ob-text p { font-size: 0.8rem !important; color: var(--tz-text2) !important; line-height: 1.5 !important; font-family: 'Poppins',sans-serif !important; }
.tz-ob-acts, .ob-actions { display: flex !important; gap: 8px !important; margin-left: auto !important; flex-shrink: 0 !important; }
.tz-btn-main, .ob-btn {
  padding: 9px 18px !important; background: #7ED321 !important; color: #060d00 !important;
  font-family: 'Poppins',sans-serif !important; font-size: 0.8rem !important; font-weight: 700 !important;
  border-radius: 8px !important; border: none !important; cursor: pointer !important; white-space: nowrap !important;
}
.tz-btn-main:hover, .ob-btn:hover { background: #90e030 !important; }
.tz-btn-ghost, .ob-ghost {
  padding: 9px 16px !important; background: none !important; color: var(--tz-text3) !important;
  font-family: 'Poppins',sans-serif !important; font-size: 0.8rem !important;
  border-radius: 8px !important; border: 1px solid rgba(255,255,255,0.07) !important; cursor: pointer !important;
}

/* ── KARTICE TURNIRA (tc2 = produkcijska klasa) ── */
body.home-active #sec-home .tc2 {
  background: var(--dark2) !important;
  border: 1.5px solid rgba(255,255,255,0.18) !important;
  border-radius: 18px !important;
  transition: all 0.22s !important;
  box-shadow: none !important;
}
body.home-active #sec-home .tc2:hover {
  border-color: rgba(126,211,33,0.5) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(126,211,33,0.15) !important;
  background: var(--dark2) !important;
}
body.home-active #sec-home .tc2-name {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.9rem !important; font-weight: 700 !important; color: #fff !important;
}
body.home-active #sec-home .tc2-loc { color: var(--tz-text3) !important; }
body.home-active #sec-home .tc2-desc { color: var(--tz-text2) !important; }
body.home-active #sec-home .tc2-stat { background: var(--dark4) !important; border-radius: 8px !important; }
body.home-active #sec-home .tc2-stat-val { font-family: 'Poppins',sans-serif !important; font-weight: 800 !important; color: #fff !important; }
body.home-active #sec-home .tc2-stat-lbl { font-family: 'Poppins',sans-serif !important; color: var(--tz-text3) !important; }
body.home-active #sec-home .tc2-footer { border-color: rgba(255,255,255,0.18) !important; color: var(--tz-text3) !important; }
body.home-active #sec-home .tc2-progress { background: var(--dark4) !important; }
body.home-active #sec-home .tc2-badge-upcoming { background: rgba(126,211,33,0.1) !important; color: #7ED321 !important; border: 1px solid rgba(126,211,33,0.2) !important; }
body.home-active #sec-home .tc2-badge-live { background: rgba(239,68,68,0.15) !important; color: #f87171 !important; border: 1px solid rgba(239,68,68,0.25) !important; }
body.home-active #sec-home .tc2-badge-done { background: rgba(255,255,255,0.05) !important; color: var(--tz-text3) !important; border: 1px solid rgba(255,255,255,0.18) !important; }

/* ── GLOBALNI GUMBI ── */
.btn, .btn-primary, .btn-sm {
  font-family: 'Poppins', sans-serif !important;
  border-radius: 9px !important;
}
.btn-primary {
  background: #7ED321 !important;
  color: #060d00 !important;
  border: none !important;
  font-weight: 700 !important;
}
.btn-primary:hover {
  background: #90e030 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(126,211,33,0.35) !important;
  color: #060d00 !important;
}

/* ── INPUT FOCUS ZELENI ── */
input:focus, select:focus, textarea:focus {
  border-color: #7ED321 !important;
  box-shadow: 0 0 0 3px rgba(126,211,33,0.12) !important;
  outline: none !important;
}

/* ── ADMIN SIDEBAR ── */
.sb-nav-item { font-family: 'Poppins', sans-serif !important; border-radius: 8px !important; transition: all 0.15s !important; }
.sb-nav-item:hover { background: rgba(255,255,255,0.07) !important; }
.sb-nav-item.active { background: rgba(126,211,33,0.13) !important; color: #7ED321 !important; font-weight: 600 !important; }
.pregled-btn-green { background: #7ED321 !important; color: #060d00 !important; border: none !important; }
.pregled-btn-green:hover { background: #90e030 !important; }

/* ── MOBILE RESPONSIVE ── */
@media(max-width:640px){
  .tz-onboard-banner, .onboard-banner, #tzOnboardBanner {
    flex-direction: column !important; text-align: center !important;
  }
  .tz-ob-acts, .ob-actions { margin-left: 0 !important; width: 100% !important; flex-direction: column !important; }
  .tz-btn-main, .ob-btn, .tz-btn-ghost, .ob-ghost { width: 100% !important; }
}

/* ══════════════════════════════════════════
   TZ HERO — veliki logo, wordmark, gumbi, feature bar
══════════════════════════════════════════ */

/* Hero wrapper — arena pozadina */
body.home-active #sec-home .home-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 580px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3.5rem 1.5rem 0 !important;
  text-align: center !important;
  background-image:
    radial-gradient(ellipse 30% 60% at 20% 0%, rgba(126,211,33,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 30% 60% at 80% 0%, rgba(126,211,33,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 100% 30% at 50% 100%, rgba(126,211,33,0.04) 0%, transparent 70%),
    linear-gradient(180deg, #060c14 0%, #0a1220 30%, #080f1c 60%, #0A0F1A 100%) !important;
}

/* Veliki TZ logo */
.tz-hero-logo-wrap {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  animation: tzLogoIn 0.7s cubic-bezier(0.34,1.4,0.64,1) both;
}
@keyframes tzLogoIn {
  from { opacity:0; transform:scale(0.7) translateY(-20px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.tz-hero-logo-svg {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 30px rgba(126,211,33,0.45)) drop-shadow(0 0 60px rgba(126,211,33,0.2));
  display: none;
}
.tz-hero-logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(126,211,33,0.45)) drop-shadow(0 0 60px rgba(126,211,33,0.2));
}

/* TURNIRZONA wordmark */
.tz-hero-wordmark {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 0.875rem;
  animation: tzFadeUp 0.6s 0.15s ease both;
}
.tz-hero-wordmark .tz-w { color: #fff; }
.tz-hero-wordmark .tz-g { color: #7ED321; }

@keyframes tzFadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Taglines */
.tz-hero-tagline {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem) !important;
  color: #F0F4FF !important;
  font-weight: 500 !important;
  margin-bottom: 0.25rem;
  animation: tzFadeUp 0.6s 0.25s ease both;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 2px 8px rgba(0,0,0,0.5) !important;
}
.tz-hero-tagline-green {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem) !important;
  color: #7ED321 !important;
  font-weight: 700 !important;
  margin-bottom: 2rem;
  animation: tzFadeUp 0.6s 0.3s ease both;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 0 16px rgba(126,211,33,0.3) !important;
}

/* CTA gumbi */
.tz-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: tzFadeUp 0.6s 0.4s ease both;
}
.tz-hero-btn-primary {
  padding: 13px 28px;
  background: #7ED321;
  color: #060d00;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tz-hero-btn-primary:hover {
  background: #90e030;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(126,211,33,0.45);
}
.tz-hero-btn-secondary {
  padding: 13px 24px;
  background: rgba(255,255,255,0.06);
  color: #F0F4FF;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tz-hero-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

/* Feature bar */
.tz-hero-features {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0;
  background: transparent;
  border-top: none;
  animation: tzFadeUp 0.6s 0.5s ease both;
  position: relative;
  z-index: 2;
  margin-top: auto;
}
.tz-hero-feature {
  flex: 1;
  max-width: 180px;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-right: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  cursor: default;
  transition: background 0.2s;
}
.tz-hero-feature:last-child { border-right: none; }
.tz-hero-feature:hover { background: rgba(126,211,33,0.05); }
.tz-feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  transition: all 0.2s;
}
.tz-hero-feature:hover .tz-feature-icon {
  background: rgba(126,211,33,0.14);
  border-color: rgba(126,211,33,0.5);
  box-shadow: 0 0 14px rgba(126,211,33,0.15);
}
.tz-feature-label {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  color: #F0F4FF !important;
  line-height: 1.4 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 2px 8px rgba(0,0,0,0.5) !important;
}

/* Global stats skriveni jer su integrirani u hero */
body.home-active #sec-home .home-global-stats { display: none !important; }

/* Mobile */
@media(max-width:640px){
  .tz-hero-logo-svg { width: 82px; height: 82px; }
  .tz-hero-features { flex-wrap: wrap; }
  .tz-hero-feature { min-width: 50%; max-width: 50%; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .tz-hero-feature:nth-child(even) { border-right: none; }
  body.home-active #sec-home .home-hero { min-height: auto; padding: 2.5rem 1rem 0; }
}

/* ══ HERO FULL WIDTH FIX ══
   Produkcijski #sec-home je unutar main koji ima max-width:1200px
   Moramo ga "probiti" van da bude full screen kao u referentnom HTML-u */

body.home-active #sec-home {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* Main kontejner — ukloni max-width dok je home aktivan */
body.home-active main {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Hero — full width, proteže se cijelom širinom ekrana */
body.home-active #sec-home .home-hero {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-height: 620px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3.5rem 1.5rem 0 !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  background-image:
    linear-gradient(180deg, rgba(6,12,20,0.52) 0%, rgba(8,15,28,0.45) 40%, rgba(8,15,28,0.62) 70%, rgba(6,12,20,0.77) 100%),
    url('/assets/hero-bg.jpg') !important;
  background-size: cover !important;
  background-position: center 30% !important;
  background-repeat: no-repeat !important;
}

/* Feature bar full width */
.tz-hero-features {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
}

/* Stats bar — ispod heroa, full width tamni */
body.home-active #sec-home .home-global-stats {
  display: none !important;
}

/* Search, onboarding i grid — unutar max-width kontejnera */
body.home-active #sec-home #homeGlobalNotice,
body.home-active #sec-home #mobileSearchWrap,
body.home-active #sec-home #tzOnboardBanner,
body.home-active #sec-home .home-tgrid,
body.home-active #sec-home #tournamentGrid,
body.home-active #sec-home #archivedSection {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
}

body.home-active #sec-home #tzOnboardBanner {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

body.home-active #sec-home #tournamentGrid,
body.home-active #sec-home .home-tgrid {
  padding-bottom: 1.5rem !important;
}

/* Logo u headeru — transparentan, bez pozadine */
.logo-ball,
#headerIcon,
#headerIconMob {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

/* Logo img — transparentan */
.logo-ball img,
#headerIcon img,
#headerIconMob img {
  background: transparent !important;
  mix-blend-mode: normal !important;
}

/* Hero logo img — bez crne pozadine */
.tz-hero-logo-img {
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
}

/* ══ SEARCH BAR U HERO ══ */
.tz-hero-search-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 2rem;
  animation: tzFadeUp 0.6s 0.38s ease both;
}
.tz-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 11px;
  padding: 6px 8px 6px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tz-search-inner:focus-within {
  border-color: rgba(126,211,33,0.4);
  box-shadow: 0 0 0 3px rgba(126,211,33,0.08);
}
.tz-search-input {
  background: none !important;
  border: none !important;
  color: #F0F4FF !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.88rem !important;
  flex: 1 !important;
  outline: none !important;
  width: auto !important;
  padding: 6px 0 !important;
  box-shadow: none !important;
}
.tz-search-input::placeholder { color: #6B7E99 !important; }
.tz-search-divider {
  width: 1px; height: 18px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.tz-search-year {
  background: #0E1420 !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 7px !important;
  color: #F0F4FF !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.78rem !important;
  padding: 5px 10px !important;
  cursor: pointer !important;
  outline: none !important;
  width: auto !important;
  box-shadow: none !important;
}
.tz-search-year option {
  background: #0E1420 !important;
  color: #F0F4FF !important;
}

/* ══ KARTICE TURNIRA — referentni dizajn ══ */
body.home-active #sec-home .tc2 {
  background: #0E1420 !important;
  border: 2px solid rgba(255,255,255,0.35) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  transition: all 0.22s !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}
body.home-active #sec-home .tc2:hover {
  border-color: rgba(126,211,33,0.7) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(126,211,33,0.25) !important;
}
/* Accent bar na vrhu kartice */
body.home-active #sec-home .tc2-accent {
  height: 4px !important;
  flex-shrink: 0 !important;
}
body.home-active #sec-home .tc2-body {
  padding: 1.1rem 1.25rem !important;
  flex: 1 !important;
}
body.home-active #sec-home .tc2-head {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 0.875rem !important;
}
body.home-active #sec-home .tc2-logo {
  width: 42px !important; height: 42px !important;
  border-radius: 10px !important;
  background: #1A2232 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
}
body.home-active #sec-home .tc2-name {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.home-active #sec-home .tc2-loc {
  font-size: 0.72rem !important;
  color: #B8C8DC !important;
  margin-top: 3px !important;
  font-weight: 500 !important;
}
body.home-active #sec-home .tc2-dates { color: #B8C8DC !important; font-size: 0.72rem !important; font-weight: 500 !important; }
body.home-active #sec-home .tc2-desc {
  font-size: 1.15rem !important;
  color: #E0E8F5 !important;
  margin-bottom: 0.875rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-align: center !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body.home-active #sec-home .tc2-prize-main {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  justify-content: center !important;
  margin-bottom: 0.5rem !important;
}
body.home-active #sec-home .tc2-prize-main strong {
  font-weight: 800 !important;
}
body.home-active #sec-home .tc2-progress {
  height: 2px !important;
  background: #1A2232 !important;
  border-radius: 1px !important;
  margin-bottom: 0.875rem !important;
}
body.home-active #sec-home .tc2-stats {
  display: grid !important;
  grid-template-columns: repeat(4,1fr) !important;
  gap: 5px !important;
}
body.home-active #sec-home .tc2-stat {
  background: #1A2232 !important;
  border-radius: 8px !important;
  padding: 7px 4px !important;
  text-align: center !important;
}
body.home-active #sec-home .tc2-stat-val {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1 !important;
}
body.home-active #sec-home .tc2-stat-lbl {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.55rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  color: #B8C8DC !important;
  margin-top: 2px !important;
}
body.home-active #sec-home .tc2-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.6rem 1.25rem !important;
  border-top: 1px solid rgba(255,255,255,0.22) !important;
  color: #C8D4E8 !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
}
/* Badge stilovi */
body.home-active #sec-home .tc2-badge-live {
  background: rgba(239,68,68,0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239,68,68,0.25) !important;
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
}
body.home-active #sec-home .tc2-badge-upcoming,
body.home-active #sec-home .tc2-badge-done {
  background: rgba(126,211,33,0.1) !important;
  color: #7ED321 !important;
  border: 1px solid rgba(126,211,33,0.2) !important;
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
}
body.home-active #sec-home .tc2-status-dot { background: #7ED321 !important; }
body.home-active #sec-home .tc2-status-dot.live { background: #ef4444 !important; }

/* ══ LOGO TRANSPARENTNOST ══ */
.logo-ball, #headerIcon, #headerIconMob {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.logo-ball img, #headerIcon img, #headerIconMob img,
.tz-hero-logo-img {
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* ══ OBOJENI BORDERI PO STATUSU — data-status atribut ══ */

/* AKTIVNI kartice — zeleni border */
body.home-active #sec-home .tc2[data-status="active"] {
  border-color: rgba(126,211,33,0.55) !important;
}
body.home-active #sec-home .tc2[data-status="active"]:hover {
  border-color: rgba(126,211,33,0.85) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(126,211,33,0.25) !important;
}

/* ZAVRŠENI kartice — sivi border */
body.home-active #sec-home .tc2[data-status="done"] {
  border-color: rgba(148,168,192,0.55) !important;
  opacity: 0.95 !important;
}
body.home-active #sec-home .tc2[data-status="done"] .tc2-accent {
  background: #475569 !important;
}
body.home-active #sec-home .tc2[data-status="done"]:hover {
  border-color: rgba(148,168,192,0.85) !important;
  opacity: 1 !important;
}

/* ══ ARHIVIRANI TURNIRI ══ */
body.home-active #sec-home #archivedSection {
  margin-top: 0.5rem !important;
}

/* Toggle gumb — stiliziran u HTML-u inline, CSS samo hover */
body.home-active #sec-home .tz-archive-toggle:hover {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.12) !important;
}

/* Arhivirane kartice */
body.home-active #sec-home #archivedGrid .tc2 {
  opacity: 0.78 !important;
  border-color: rgba(100,116,139,0.22) !important;
}
body.home-active #sec-home #archivedGrid .tc2:hover {
  opacity: 1 !important;
  border-color: rgba(100,116,139,0.45) !important;
}
body.home-active #sec-home #archivedGrid .tc2-stat-val {
  color: #94a3b8 !important;
}

/* ══ HERO SUBTITLE — ispod CTA gumba ══ */
.tz-hero-subtitle {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.92rem !important;
  color: #E8EFFA !important;
  font-weight: 500 !important;
  margin-top: -1.25rem !important;
  margin-bottom: 1.5rem !important;
  text-align: center !important;
  max-width: 520px !important;
  line-height: 1.5 !important;
  animation: tzFadeUp 0.6s 0.45s ease both !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 2px 8px rgba(0,0,0,0.5) !important;
}

/* ══ PRIJAVI EKIPU GUMB — tamni tekst kao na primarnom gumbu ══ */
.tc2-reg-btn {
  background: #7ED321 !important;
  color: #060d00 !important;
  font-weight: 700 !important;
}
.tc2-reg-btn:hover {
  background: #90e030 !important;
  color: #060d00 !important;
}

/* ══ RAZMAK — feature bar i kartice turnira ══ */
.tz-hero-features {
  margin-bottom: 1.5rem !important;
}

/* ══ FEATURE BAR — separatori iste boje kao ikone ══ */
.tz-hero-feature {
  border-right-color: rgba(126,211,33,0.25) !important;
}

/* ══ MOBILE — feature bar u jednom redu, bez separatora ══ */
@media (max-width: 640px) {
  .tz-hero-features {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0 !important;
    padding: 0.5rem 1rem !important;
    scrollbar-width: none !important;
    width: 100vw !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
  }
  .tz-hero-features::-webkit-scrollbar { display: none !important; }
  .tz-hero-feature {
    border-right: none !important;
    border-bottom: none !important;
    min-width: 72px !important;
    max-width: 90px !important;
    flex: 0 0 auto !important;
    padding: 0.5rem 0.5rem !important;
  }
  .tz-feature-label {
    font-size: 0.55rem !important;
    letter-spacing: 0.3px !important;
  }
}

/* ══ ARHIVA — padding na dnu stranice da bude vidljiva ══ */
body.home-active #sec-home {
  padding-bottom: 1rem !important;
}

/* ══ FOOTER — legal linkovi ══ */
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-legal-link {
  font-size: 0.65rem !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.45) !important;
  text-decoration: none !important;
  letter-spacing: 0.5px !important;
  transition: color 0.15s !important;
}
.footer-legal-link:hover {
  color: rgba(126,211,33,0.8) !important;
}

/* Mobilni — linkovi ispod copyrighta */
@media (max-width: 640px) {
  footer > div {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
  .footer-legal-links {
    order: 3 !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 1.25rem !important;
    padding: 2px 0 !important;
  }
  .footer-legal-link {
    font-size: 0.6rem !important;
  }
}

/* ══ MOBILE — kartice turnira šire, manje margine ══ */
@media (max-width: 640px) {
  body.home-active #sec-home #tournamentGrid,
  body.home-active #sec-home #archivedGrid,
  body.home-active #sec-home .home-tgrid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  body.home-active #sec-home #mobileSearchWrap,
  body.home-active #sec-home #tzOnboardBanner,
  body.home-active #sec-home #homeGlobalNotice {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    box-sizing: border-box !important;
  }
  body.home-active #sec-home .tc2 {
    border-radius: 12px !important;
  }
}

/* ══ FREEMIUM — plan badge i UI ══ */
.sb-pro-badge {
  margin-left: auto;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7ED321, #5fa818);
  color: #060d00;
  flex-shrink: 0;
}
.sb-pro-badge.is-pro {
  background: rgba(126,211,33,0.15);
  color: #7ED321;
}
.sb-free-badge {
  margin-left: auto;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
/* Lock overlay za Pro feature u admin sekcijama */
.pro-lock-overlay {
  position: relative;
}
.pro-lock-overlay::after {
  content: '🔒 PRO';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.85);
  color: #7ED321;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(126,211,33,0.3);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}
.pro-lock-overlay > * {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

/* ══ REGISTRACIJA — plan odabir kartice ══ */
/* ══ REGISTRACIJA — plan odabir kartice ══ */
#regPlanGrid {
  position: relative;
}
.reg-plan-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
}
.reg-plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #e2e8f0;
  transition: background 0.18s;
}
.reg-plan-card:hover {
  border-color: #7ED321;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126,211,33,0.12);
}
.reg-plan-card:hover::before {
  background: #7ED321;
}
.reg-plan-card.reg-plan-selected {
  border-color: #7ED321;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(126,211,33,0.15), 0 4px 16px rgba(126,211,33,0.1);
  transform: translateY(-2px);
}
.reg-plan-card.reg-plan-selected::before {
  background: #7ED321;
}
.reg-plan-card .reg-plan-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
  filter: grayscale(0.3);
}
.reg-plan-card .reg-plan-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
  font-family: 'Poppins', sans-serif;
}
.reg-plan-card .reg-plan-price {
  font-size: 0.65rem;
  color: #64748b;
  font-family: 'Poppins', sans-serif;
}
.reg-plan-card.reg-plan-selected .reg-plan-name {
  color: #166534;
}
.reg-plan-card.reg-plan-selected .reg-plan-price {
  color: #16a34a;
}
#regPlanNote {
  font-size: 0.75rem !important;
  color: #374151 !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
}
#regPlanNote strong { color: #15803d !important; }

/* ══ DESKTOP — feature bar ikone 50% veće ══ */
@media (min-width: 641px) {
  .tz-feature-icon {
    width: 63px !important;
    height: 63px !important;
  }
  .tz-feature-icon svg {
    width: 32px !important;
    height: 32px !important;
  }
}

/* ══ SUPER ADMIN — sakrij Arhiva gumb ══ */
body.superadmin-active #navArchiveBtn,
body.superadmin-active #navArchiveBtnIn,
body.superadmin-active #mobNavArchiveBtn {
  display: none !important;
}

/* ══ HEADER — logged user name bijeli ══ */
#navUserName {
  color: #fff !important;
}

/* ══ SUPER ADMIN — sakrij Arhiva gumb ══ */
body.sa-active #navArchiveBtn,
body.sa-active #navArchiveBtnIn,
body.sa-active #mobNavArchiveBtn {
  display: none !important;
}

/* ══ HEADER — ime prijavljenog korisnika bijelo ══ */
#navUserName {
  color: #fff !important;
}

/* ══ TOURNAMENT HERO — background slika ══ */
#tHero {
  background-image:
    linear-gradient(180deg, rgba(6,12,20,0.55) 0%, rgba(8,15,28,0.45) 40%, rgba(8,15,28,0.75) 80%, rgba(6,12,20,0.95) 100%),
    url('/assets/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transition: background-image 0.3s;
}

/* ══ TOURNAMENT — stadion background fiksiran ══ */
body.tournament-active {
  background-image:
    linear-gradient(180deg, rgba(6,12,20,0.68) 0%, rgba(8,15,28,0.72) 100%),
    url('/assets/hero-bg.jpg') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.tournament-active main {
  background: transparent !important;
}

/* Hero sekcija — bez dodatnog overlaya */
#tHero {
  background-image: none !important;
  background: transparent !important;
}

/* ══ HOME LIVE TICKER — mobilni prikaz ══ */
@media (max-width: 640px) {
  #homeLiveTicker {
    padding: 0 .75rem !important;
  }
  #homeLiveTickerList > div {
    flex-wrap: wrap !important;
    gap: .5rem !important;
    padding: .5rem .75rem !important;
  }
  #homeLiveTickerList > div > div:first-of-type {
    width: 100% !important;
  }
  #homeLiveTickerList .live-ticker-teams {
    width: 100% !important;
    justify-content: center !important;
  }
  #homeLiveTickerList [style*="font-size:.82rem"] {
    font-size: .72rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px !important;
  }
}

/* ══ ZAPISNIK HEADER — mobilni prikaz ══ */
@media (max-width: 640px) {
  /* Sprječava overflow cijele kartice */
  #zMatchHeader {
    overflow: hidden !important;
    padding: .5rem .75rem !important;
  }
  /* Header row — kolona, centrirano */
  #zMatchHeaderRow {
    flex-direction: column !important;
    align-items: center !important;
    gap: .3rem !important;
  }
  /* Timovi row */
  #zTeamsRow {
    justify-content: center !important;
    width: 100% !important;
    overflow: hidden !important;
    flex: unset !important;
  }
  /* Nazivi ekipa — skrati s ... */
  #zHeaderTeam1, #zHeaderTeam2 {
    max-width: 36vw !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
  }
  /* Rezultat + badge — centriran red */
  #zResultBadgeWrap {
    justify-content: center !important;
    width: 100% !important;
  }
  /* Rezultat veći */
  #zResultDisplay {
    font-size: 1.6rem !important;
  }
  /* Badge desno */
  #zapisnik-format-badge {
    margin-left: auto !important;
    font-size: 9px !important;
  }
}

/* === FIX HAMBURGER VISIBILITY ===
   Hamburger meni mora biti uvijek vidljiv na mobilnom prikazu, bez obzira na body klasu
   (admin-active, sa-active, tournament-active, home-active) */
@media (max-width: 640px) {
  .mob-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.admin-active .mob-toggle,
  body.sa-active .mob-toggle,
  body.tournament-active .mob-toggle,
  body.home-active .mob-toggle {
    display: flex !important;
  }
}

/* ══ SUPER ADMIN — Upravljanje planovima ══ */
.sa-plan-card {
  background: #0E1420;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.sa-plan-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.sa-plan-card-info { flex: 1; min-width: 0; }
.sa-plan-card-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  word-break: break-word;
}
.sa-plan-card-meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  word-break: break-word;
}
.sa-plan-card-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.sa-plan-card-exp { font-size: 0.65rem; }
.sa-plan-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.sa-plan-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.sa-plan-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.sa-plan-btn {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.sa-plan-btn-bold {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
}

/* Mobile layout (≤700px) — restrukturiraj karticu vertikalno */
@media (max-width: 700px) {
  .sa-plan-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
  }
  .sa-plan-card-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
  }
  .sa-plan-card-status {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
  }
  .sa-plan-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .sa-plan-card-actions .sa-plan-pill {
    grid-column: 1 / -1;
    text-align: center;
  }
  .sa-plan-btn,
  .sa-plan-btn-bold {
    width: 100%;
    text-align: center;
    padding: 8px 6px;
    font-size: 0.72rem;
  }
}

/* --- v44: Modal border-radius smanjen na 8px --- */
.modal {
  border-radius: 8px !important;
}
@media(max-width:480px) {
  .modal {
    border-radius: 8px !important;
  }
}

/* --- v45: Setup Wizard --- */
.wiz-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg3);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  border: 2px solid var(--border);
  transition: all .2s;
}
.wiz-dot.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.wiz-dot.done {
  background: var(--green-light);
  color: var(--green);
  border-color: var(--green);
}
.wiz-line {
  flex: 0 0 40px;
  height: 2px;
  background: var(--border);
}
.wiz-fmt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  cursor: pointer;
  transition: all .15s;
}
.wiz-fmt-card:hover {
  border-color: var(--green);
  background: var(--green-light);
}
.wiz-fmt-card.selected {
  border-color: var(--green);
  background: var(--green-light);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, .15);
}
.wiz-fmt-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.wiz-fmt-body {
  flex: 1;
  min-width: 0;
}
.wiz-fmt-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  margin-bottom: 2px;
}
.wiz-fmt-desc {
  font-size: .75rem;
  color: var(--muted);
}
.wiz-fmt-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: .82rem;
  font-weight: 700;
}
.wiz-fmt-card.selected .wiz-fmt-check {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.wiz-level-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.wiz-level-row input[type="checkbox"] {
  width: auto;
}
.wiz-level-row label {
  flex: 1;
  margin: 0;
  font-size: .88rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.wiz-custom-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: .82rem;
  font-weight: 600;
}
.wiz-custom-tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

/* ══ v47: Setup Wizard — vidljivost teksta u svim kontekstima ══ */
#setupWizardModal .modal {
  background: #FFFFFF !important;
  color: #0F172A !important;
}
#setupWizardModal .modal * {
  color: #0F172A;
}
#setupWizardModal .modal [style*="color:var(--muted)"],
#setupWizardModal .modal [style*="color: var(--muted)"] {
  color: #475569 !important;
}
#setupWizardModal .wiz-fmt-desc {
  color: #64748B !important;
}

/* ══ v49: Toggle-on (crveni) gumbi za deaktivaciju funkcija ══ */
.btn.btn-toggle-on {
  background: #DC2626 !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.25) !important;
  border: none !important;
}
.btn.btn-toggle-on:hover {
  background: #B91C1C !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35) !important;
  color: #fff !important;
}

/* ══ v50: Status badge-ovi — vidljiv tamni font ══ */
#publishStatusWrap > div,
#finishStatusWrap > div,
#scoreboardPublicWrap > div {
  color: #064E3B !important;
}

/* ══ v51: Bijeli naslovi sekcija u admin/SA panelu (čitljivost) ══ */
body.admin-active .card-label,
body.sa-active .card-label,
body.superadmin-active .card-label,
#adminPanel .card-label,
#saMainContent .card-label,
[id^="atab-"] .card-label,
[id^="sa-"] .card-label {
  color: #ffffff !important;
}

/* ── Hero "Prijavi ekipu" gumb (vibrant zeleni) ── */
.hero-btn-reg {
  background: #7ED321 !important;
  border-color: #7ED321 !important;
  color: #060d00 !important;
  font-weight: 800 !important;
  letter-spacing: .3px !important;
  box-shadow: 0 2px 10px rgba(126,211,33,0.35) !important;
}
.hero-btn-reg:hover {
  background: #8fe030 !important;
  border-color: #8fe030 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(126,211,33,0.5) !important;
}

/* ── MOBILE: Hero — logo lijevo, gumbi vidljivi ── */
@media (max-width: 768px) {
  #sec-tournament #heroActions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    justify-content: flex-start !important;
    margin-top: 0.5rem !important;
  }
  #sec-tournament #heroActions .hero-btn-dark {
    font-size: 0.7rem !important;
    padding: 5px 10px !important;
  }
}
@media (max-width: 640px) {
  /* Vrati horizontalni layout — logo lijevo, tekst desno */
  #sec-tournament .hero-top {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 0.875rem !important;
  }
  #sec-tournament .hero-logo-wrap,
  #sec-tournament #heroLogo {
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  #sec-tournament .hero-text-wrap {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
  }
  /* Gumbi u jedan red ispod naslova, lijevo poravnati */
  #sec-tournament .hero-right {
    flex-basis: 100% !important;
    width: 100% !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin-top: 0.25rem !important;
  }
}

/* ── MOBILE Hero: razdvajanje gornjeg dijela (logo + ime + lokacija) ── */
@media (max-width: 640px) {
  /* Hero-top postaje grid: gornji red logo + naziv, donji red full width */
  #sec-tournament .hero-top {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 0 12px !important;
    align-items: start !important;
  }
  /* Logo: gornji red, prva kolona, manji */
  #sec-tournament .hero-logo-wrap,
  #sec-tournament #heroLogo {
    grid-row: 1 !important;
    grid-column: 1 !important;
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  /* Text wrap: gornji red, druga kolona, smije rasti */
  #sec-tournament .hero-text-wrap {
    grid-row: 1 !important;
    grid-column: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    text-align: left !important;
    position: relative !important;
  }
  /* Hero-right: drugi red, span obe kolone (full width) */
  #sec-tournament .hero-right {
    grid-row: 2 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
  }

  /* Unutar text-wrap-a: desc i meta IZLAZE iz desnog stupca, koriste full width */
  #sec-tournament .hero-text-wrap > .hero-eyebrow,
  #sec-tournament .hero-text-wrap > .hero-title,
  #sec-tournament .hero-text-wrap > .hero-loc {
    text-align: center !important;
  }

  /* heroDesc i meta-row — pomaknemo ih lijevo da preuzmu cijelu širinu (overhang preko loga) */
  #sec-tournament .hero-text-wrap > #heroDesc,
  #sec-tournament .hero-text-wrap > .hero-meta-row {
    margin-left: -72px !important;  /* -(60px logo + 12px gap) */
    width: calc(100% + 72px) !important;
  }

  /* MIROSLAV MICO STIJEPIĆ 2026 — separator iznad + +20% font, bold, centrirano */
  #sec-tournament #heroDesc {
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    font-style: normal !important;
    color: rgba(255,255,255,0.85) !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
    letter-spacing: 0.3px !important;
  }

  /* Hero meta — Nagradni fond + Kotizacija centrirani, 1/2/3 lijevi */
  #sec-tournament .hero-meta-row {
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 8px !important;
    align-items: stretch !important;
  }
  /* Nagradni fond — istaknut (zeleni accent, veći, centriran) */
  #sec-tournament #heroPrizeFund {
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #7ED321 !important;
  }
  /* 1./2./3. mjesto — manji, lijevi */
  #sec-tournament #heroPrize1,
  #sec-tournament #heroPrize2,
  #sec-tournament #heroPrize3 {
    text-align: left !important;
    font-size: 0.82rem !important;
    color: rgba(255,255,255,0.75) !important;
    padding-left: 1rem !important;
  }
  /* Kotizacija + sponzor — centrirani */
  #sec-tournament #heroEntryFee,
  #sec-tournament #heroMainSponsor {
    text-align: center !important;
    font-size: 0.82rem !important;
  }
}

/* ── EXPORT zapisnik dugmiće ── */
.export-btn {
  padding: 8px 0;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}
.export-btn-empty {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
}
.export-btn-empty:hover:not(:disabled) {
  background: #334155;
  border-color: #64748b;
  color: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.export-btn-full {
  background: #064e3b;
  color: #6ee7b7;
  border: 1px solid #047857;
}
.export-btn-full:hover:not(:disabled) {
  background: #047857;
  border-color: #10b981;
  color: #ecfdf5;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16,185,129,0.4);
}
.export-btn:active:not(:disabled) {
  transform: translateY(0);
}
.export-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.export-btn.loading {
  pointer-events: none;
}
.export-btn.loading span:first-child {
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Plakat thumb na kartici turnira ── */
.tc2-prize-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.tc2-prize-col {
  flex: 1;
  min-width: 0;
}
.tc2-poster-thumb {
  flex-shrink: 0;
  width: 110px;
  min-height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .18s ease, box-shadow .18s ease;
  align-self: center;
  background: rgba(255,255,255,0.04);
}
.tc2-poster-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.tc2-poster-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 640px) {
  .tc2-poster-thumb {
    width: 96px;
    min-height: 70px;
  }
}

/* ── Modal close gumb — uvijek dostupan na mobilnom (sticky umjesto da nestane pri scrollu) ── */
@media (max-width: 640px) {
  .overlay.open {
    align-items: flex-start;
  }
  .modal {
    position: relative;
  }
  .modal-close {
    position: fixed !important;
    top: auto !important;
    bottom: 18px !important;
    right: 18px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.3rem !important;
    background: var(--green, #16a34a) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
    z-index: 10000 !important;
  }
}

/* ── Banner caption (opcionalni tekst ispod) ── */
.banner-slide.has-caption {
  flex-direction: column;
  aspect-ratio: auto;
  max-height: none;
}
.banner-caption {
  margin-top: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
  line-height: 1.35;
  width: 100%;
  word-break: break-word;
}
.banner-slide.has-caption img {
  max-height: 200px;
}
.banner-slide.has-caption a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Statistika tablice: čitljiv hover (tekst ne blijedi) ── */
#ssec-strijelci tbody tr:hover td,
#ssec-kartoni tbody tr:hover td,
#ssec-ekipe tbody tr:hover td {
  background: rgba(255,255,255,0.07) !important;
  color: #f1f5f9 !important;
}
#sec-tournament #ssec-strijelci tbody tr:hover td,
#sec-tournament #ssec-kartoni tbody tr:hover td,
#sec-tournament #ssec-ekipe tbody tr:hover td,
#sec-tournament .stats-table-v2 tbody tr:hover td {
  background: rgba(255,255,255,0.07) !important;
  color: #f1f5f9 !important;
}
#sec-tournament .stats-table-v2 tbody tr:hover {
  background: rgba(255,255,255,0.07) !important;
}

/* ── Arhiv prijava (SA): čitljive ćelije na tamnoj temi ── */
#saRegTable td {
  color: #e2e8f0 !important;
}
#saRegTable td a {
  color: #60a5fa !important;
}
#saRegTable th {
  color: #94a3b8 !important;
}
#saRegTable tbody tr:hover td,
#sec-superadmin #saRegTable tbody tr:hover td {
  background: rgba(255,255,255,0.07) !important;
  color: #f1f5f9 !important;
}
#saRegTable tbody tr:hover {
  background: rgba(255,255,255,0.07) !important;
}

/* ── Gumbi u kartici ekipe (admin) — jednake veličine, mobile 2x2 ── */
.team-card-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.team-card-actions .tca-btn,
.team-card-actions .tca-del {
  width: 100%;
  font-size: .68rem;
  padding-left: 4px;
  padding-right: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: center;
}
@media (max-width: 640px) {
  .team-card-actions {
    grid-template-columns: 1fr 1fr;
  }
  .team-card-actions .tca-btn,
  .team-card-actions .tca-del {
    font-size: .76rem;
  }
}

/* ── Hero gumbi: jednaka visina + vidljiv Podijeli ── */
#heroActions {
  align-items: stretch;
}
#heroActions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: 38px;
  margin: 0 !important;
  padding: 8px 16px !important;
  font-size: .82rem !important;
  border-radius: 8px !important;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}
#heroShareBtn {
  background: #3b82f6 !important;
  border: 1px solid #3b82f6 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}
#heroShareBtn:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}
