*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #E53935;
  --secondary: #FF6A1A;
  --accent: #FF6A1A;
  --gradient-main: linear-gradient(135deg, #E53935 0%, #FF6A1A 100%);
  --gradient-header-footer: var(--gradient-main);
  --bg: #f5f6fa;
  --bg-desktop: url('/assets/images/zupadubrovackabg-original.png');
  --bg-mobile: url('/assets/images/landingbgmobile.jpg');
  --text: #1b1c23;
  --muted: #6f7385;
  --white: #ffffff;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Sve što ima gradient pozadinu – tekst unutar uvijek bijel */
.site-header,
.site-footer,
.mobile-nav-inner,
.app-install-banner,
.map-controls,
.map-legend,
.chat-bubble.right,
.stat-card,
.send-msg-btn,
.strip { color: #fff; }
.site-footer a:hover { color: rgba(255,255,255,0.92); }

::selection {
  background: rgba(255, 106, 0, 0.3);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background-color: #0f131a;
  background-image: var(--bg-desktop);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 1023px), (hover: none) {
  html {
    background-image: var(--bg-mobile);
  }
}

/* Scroll progress bar – premium reading indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-main);
  background-size: 200% 100%;
  z-index: 9999;
  transition: width 0.12s ease-out;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.5);
}

/* App install banner – isti animirani gradient kao header */
.app-install-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 10px 16px;
  background: var(--gradient-main);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9998;
  transition: transform 0.35s var(--ease-premium), opacity 0.3s ease;
}
.app-install-banner.is-hidden {
  display: none;
}
.app-install-banner p {
  margin: 0;
  flex: 1 1 200px;
}
.app-install-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-install-banner .btn-banner {
  display: inline-block;
  padding: 8px 18px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-install-banner .btn-banner:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.app-install-banner .btn-banner-install {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
}
.app-install-banner .btn-banner-install:hover {
  background: rgba(255, 255, 255, 0.35);
}
.app-install-banner .btn-close-banner {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.app-install-banner .btn-close-banner:hover {
  background: rgba(255, 255, 255, 0.4);
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: transparent;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh; /* dinamički viewport za iOS/Android */
  -webkit-tap-highlight-color: transparent;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Fullscreen pozadina – putanja relativna na CSS da radi i na deployu i lokalno */
body::after {
  content: "";
  position: fixed;
  inset: -14vh 0 -14vh 0;
  inset: -14svh 0 -14svh 0;
  background: var(--bg-desktop) center center / cover no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
  z-index: -2;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

@media (max-width: 1023px), (hover: none) {
  body::after {
    inset: -18vh 0 -18vh 0;
    inset: -18svh 0 -18svh 0;
    background-image: var(--bg-mobile);
    background-position: center top;
    background-size: cover;
    -webkit-background-size: cover;
  }
}

/* Bez overlayja – slika čista kao na live serveru */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: -1;
  pointer-events: none;
}

/* Tekst iznad pozadine – bijeli bold */
.hero .eyebrow,
.hero h1,
.hero h1 span,
.hero .lead,
.hero .admin-link-note,
.hero .admin-link-note a,
.hero-badges {
  color: #fff !important;
  font-weight: 700;
}

.hero .eyebrow {
  font-size: 16px;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  animation: heroEyebrowShimmer 3s ease-in-out infinite;
}

@keyframes heroEyebrowShimmer {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 transparent; }
  50% { opacity: 0.95; text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
}

.hero h1 {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.hero h1 .hero-highlight {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: heroGradientShift 4s ease infinite;
}

.hero h1 .hero-line-white {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 .hero-line {
  transition: transform 0.35s var(--ease-premium);
}

.hero h1 .hero-line:hover {
  transform: translateX(4px);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

@keyframes heroGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes heroTextGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#app .section-header p,
#features .section-header p,
#experience .section-header p,
#how .section-header p,
#stats .section-header p,
#map .section-header p,
#contact .contact-header p {
  color: #fff !important;
  font-weight: 700;
}

.experience .glass-card p {
  color: #fff !important;
  font-weight: 700;
}

.experience .glass-card h3 {
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Sakriveno – pozadina je samo fullscreen slika (body::after), bez blobova/grida */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: blobFloat 20s ease-in-out infinite;
}

.bg-blob-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.35), transparent 70%);
  top: -180px;
  left: -120px;
  animation-delay: 0s;
}

.bg-blob-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.3), transparent 70%);
  top: 25%;
  right: -130px;
  animation-delay: -5s;
  animation-duration: 25s;
}

.bg-blob-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.28), transparent 70%);
  bottom: 15%;
  left: -80px;
  animation-delay: -10s;
  animation-duration: 22s;
}

.bg-blob-4 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.25), transparent 70%);
  bottom: -80px;
  right: 15%;
  animation-delay: -7s;
  animation-duration: 18s;
}

.bg-blob-5 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.22), transparent 70%);
  top: 55%;
  left: 35%;
  animation-delay: -12s;
  animation-duration: 15s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 106, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 106, 0, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0;
  animation: gridPulse 8s ease-in-out infinite, gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  animation: glowDrift 30s ease-in-out infinite;
}

.bg-glow-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.3), transparent 65%);
  top: -250px;
  right: -180px;
}

.bg-glow-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.25), transparent 65%);
  bottom: -150px;
  left: -80px;
  animation-delay: -15s;
}

/* Na mobitelu: isključi animacije na pozadini da se ne lomi i ne mrda pri scrollu */
@media (max-width: 1023px), (hover: none) {
  .bg-blob {
    animation: none;
  }
  .bg-grid {
    animation: none;
  }
  .bg-glow {
    animation: none;
  }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(40px, -50px) scale(1.06) rotate(2deg); }
  50% { transform: translate(-30px, 30px) scale(0.96) rotate(-1deg); }
  75% { transform: translate(35px, 15px) scale(1.03) rotate(1deg); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.05); }
  66% { transform: translate(-40px, 60px) scale(0.98); }
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

@media (max-width: 600px) {
  .app-install-banner {
    padding: 10px 12px;
    font-size: 13px;
  }
  .app-install-banner p {
    flex: 1 1 100%;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .section .container {
    width: 100%;
    max-width: 100%;
  }

  .app-preview .container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* Map i graf – 90% na mobitelu */
  .map-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
  }

  .map-wrapper,
  .map-below {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .features,
  .steps,
  .app-panels {
    width: 100%;
    max-width: 100%;
  }

  .features .card,
  .steps .step,
  .experience-grid .glass-card,
  .experience-strip .strip-item,
  .app-panel,
  .stat-chart-card,
  .opcina-rating-card,
  .stat-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }

  .stats {
    width: 100%;
    max-width: 100%;
  }

  .map-below {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
}

/* ========== MOBILE OPTIMIZATION – sve sekcije ========== */
@media (max-width: 600px) {
  /* Header – centriran na mobitelu */
  .header-inner {
    padding: 12px 0;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .brand-title {
    font-size: 16px;
  }
  .brand-subtitle {
    font-size: 11px;
  }

  /* Hero */
  .hero {
    padding: 24px 0 28px;
    min-height: auto;
    align-items: flex-start;
  }
  .hero-grid {
    gap: 28px;
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
    margin: 8px 0 12px;
    line-height: 1.35;
  }
  .hero .lead {
    font-size: 15px;
    line-height: 1.55;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
  }
  .admin-link-note {
    font-size: 13px;
    margin-top: 12px;
  }
  .hero-badges {
    gap: 6px;
  }
  .hero-badges .badge-float {
    font-size: 11px;
    padding: 6px 12px;
  }
  .phone {
    width: min(280px, 85vw);
    height: 578px;
    padding: 10px;
  }
  .phone-top {
    width: 48px;
    margin-bottom: 6px;
  }
  .glow {
    width: 200px;
    height: 200px;
  }

  /* Sekcije */
  .section {
    padding: 20px 0;
  }
  .section-header {
    margin-bottom: 20px;
    padding: 0 4px;
  }
  .section-header h2 {
    font-size: clamp(26px, 7vw, 36px);
  }
  .section-header .eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
  }
  .section-header p {
    font-size: 15px;
    line-height: 1.5;
  }

  /* App preview */
  .app-preview .section-header {
    margin-bottom: 18px;
  }
  .app-panel {
    padding: 16px;
  }
  .app-panel-header {
    gap: 12px;
  }
  .app-panel-header h3 {
    font-size: 16px;
  }
  .app-panel-header p {
    font-size: 13px;
  }
  .mini-card {
    padding: 12px 14px;
  }
  .mini-card strong {
    font-size: 14px;
  }
  .mini-card p {
    font-size: 12px;
  }
  .profile-card {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .profile-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }
  .profile-card strong {
    font-size: 15px;
  }
  .profile-stats {
    gap: 8px;
  }
  .profile-stats div {
    padding: 12px 10px;
  }
  .profile-stats span {
    font-size: 18px;
  }
  .profile-stat-donut {
    width: 40px;
    height: 40px;
  }
  .profile-chart-wrap .stat-donut-total {
    font-size: 18px;
  }
  .chat-bubble {
    padding: 10px 14px;
    font-size: 13px;
  }
  .chat-input {
    padding: 10px 14px;
    font-size: 13px;
  }

  /* Experience */
  .experience .section-header {
    margin-bottom: 18px;
  }
  .experience-grid {
    gap: 14px;
  }
  .glass-card {
    padding: 16px 18px;
  }
  .glass-card h3 {
    font-size: 16px;
  }
  .glass-card p {
    font-size: 13px;
  }
  .experience-strip {
    margin-top: 16px;
    gap: 10px;
  }
  .strip-item {
    padding: 12px 14px;
    flex: 1 1 100%;
    min-width: 0;
  }
  .strip-item strong {
    font-size: 14px;
  }
  .strip-item span {
    font-size: 12px;
  }

  /* Features */
  .features {
    gap: 14px;
  }
  .card {
    padding: 18px 20px;
  }
  .card h3 {
    font-size: 16px;
  }
  .card p {
    font-size: 13px;
  }

  /* How (steps) */
  .steps {
    gap: 14px;
  }
  .step {
    padding: 18px 16px;
  }
  .step h3 {
    font-size: 16px;
  }
  .step p {
    font-size: 13px;
  }
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  /* Stats */
  .stats {
    gap: 14px;
  }
  .stat-card {
    padding: 18px 16px;
  }
  .stat-card span,
  .stat-card .stat-number {
    font-size: 24px;
  }
  .stat-card p {
    font-size: 13px;
  }

  /* Map section */
  .map-section .section-header {
    margin-bottom: 16px;
  }
  .map-section .container {
    padding: 0 24px;
  }
  #live-map {
    min-height: 360px;
    height: 360px;
  }
  .map-wrapper {
    min-height: 360px;
    border-radius: 16px;
  }

  /* Map below (donut + bars) */
  .map-below-inner {
    gap: 16px;
  }
  .stat-chart-title,
  .opcina-rating-title {
    font-size: 16px;
  }

  /* Contact */
  .contact-section .container {
    padding: 0;
  }
  .contact-header {
    margin-bottom: 20px;
  }
  .contact-header h2 {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  /* Footer */
  .site-footer {
    padding: 24px 0 18px;
  }
  .footer-inner {
    gap: 20px;
  }
  .footer-title-row {
    gap: 20px;
  }
  .footer-title {
    font-size: 20px;
  }
  .footer-subtitle {
    font-size: 14px;
  }
  .footer-links a {
    padding: 10px 14px;
    font-size: 13px;
  }
  .partner-logo {
    height: 42px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }
  .section-header h2 {
    font-size: 24px;
  }
  .phone {
    width: min(260px, 92vw);
    height: 535px;
  }
  #live-map {
    min-height: 320px;
    height: 320px;
  }
  .map-wrapper {
    min-height: 320px;
  }
  .stat-chart-card,
  .opcina-rating-card {
    padding: 14px 12px;
  }
  .stat-chart-title,
  .opcina-rating-title {
    font-size: 14px;
    margin: 0 0 10px;
  }
  .stat-donut {
    width: 100px;
    height: 100px;
  }
  .stat-donut-total {
    font-size: 20px;
  }
  .stat-bar-label {
    width: 68px;
    font-size: 11px;
  }
  .opcina-smileys .smiley-icon {
    width: 28px;
    height: 28px;
  }
  .opcina-rating-desc {
    font-size: 10px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--gradient-header-footer);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  border-bottom: none;
  border-radius: 0 0 16px 16px;
  padding-top: env(safe-area-inset-top);
}

.container.header-inner {
  width: min(1460px, 98%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: inherit;
  margin-left: 20px;
  transition: transform 0.3s var(--ease-premium);
}
.brand-link:hover {
  transform: scale(1.02);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  animation: brandMarkBreathe 4s ease-in-out infinite;
}
.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-5deg);
  animation: none;
}

@keyframes brandMarkBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin-left: 0px;
  margin-right: 15px;
}

@keyframes logoBreathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.9; }
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 18px);
  align-items: center;
  font-size: clamp(12px, 0.82vw, 14px);
}

.nav a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1.1;
  transition: color 0.3s var(--ease-premium), transform 0.3s var(--ease-premium);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0.8));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-premium);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav a:hover {
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
  opacity: 1;
  animation: navLinkGlow 1.5s ease-in-out infinite;
}

.nav a:hover::after {
  transform: scaleX(1);
}

@keyframes navLinkGlow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 12px rgba(255, 255, 255, 0.4); }
}

.nav-pill {
  padding: 8px 14px;
  border-radius: 18px;
  white-space: nowrap;
  background: var(--gradient-main), linear-gradient(var(--white), var(--white));
  background-size: 100% 100%, 100% 100%;
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  font-weight: 600;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
  -webkit-text-fill-color: transparent;
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

@media (max-width: 1360px) and (min-width: 1181px) {
  .container.header-inner {
    width: min(1380px, 99%);
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .nav-pill {
    padding: 7px 11px;
  }
}

.lang-switcher .lang-current {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 56px;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.86);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(18, 24, 39, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.lang-switcher .lang-current:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 16px 30px rgba(18, 24, 39, 0.22);
}

.lang-switcher .lang-caret {
  font-size: 11px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.lang-switcher.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-switcher .lang-current-flag,
.lang-switcher .lang-flag {
  font-size: 13px;
  /* Neki fontovi/weight-ovi mogu uzrokovati da emoji fallback bude "prazan".
     Forceamo emoji font i normalnu težinu da se zastavice renderaju kao ikone. */
  font-weight: 400;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    "Twemoji Mozilla", sans-serif;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}

.lang-switcher .lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 64px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(229, 57, 53, 0.12);
  box-shadow: 0 18px 34px rgba(18, 24, 39, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.lang-switcher.is-open .lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-switcher .lang-btn {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lang-switcher .lang-current-code,
.lang-switcher .lang-code {
  /* Desktop treba izgledati kao “zastave”: prikazuj samo emoji zastave. */
  display: none;
}

.lang-switcher .lang-btn:hover {
  transform: translateX(2px);
  background: rgba(229, 57, 53, 0.08);
}

.lang-switcher .lang-btn.active {
  background: rgba(229, 57, 53, 0.14);
  color: #b71c1c;
}

.mobile-lang-switcher {
  display: none;
}

.mobile-lang-switcher .lang-current {
  min-width: 60px;
}

.mobile-lang-switcher .lang-menu {
  right: 0;
  left: auto;
  transform: translateY(-4px);
  min-width: 68px;
}

.mobile-lang-switcher.is-open .lang-menu {
  transform: translateY(0);
}

/* Menu toggle – samo na mobitelu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.35s var(--ease-premium), opacity 0.25s ease;
}

.menu-toggle:hover span {
  animation: menuBarPulse 0.8s ease-in-out infinite;
}

.menu-toggle:active span {
  animation: none;
}

@keyframes menuBarPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--gradient-header-footer);
  padding: 104px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.2);
}
.mobile-nav.is-open .mobile-nav-inner {
  transform: translateX(0);
}
.mobile-nav-inner a {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.25s var(--ease-premium);
  transform: translateX(20px);
  opacity: 0;
  text-align: center;
}

.mobile-nav.is-open .mobile-nav-inner a {
  animation: mobileNavSlideIn 0.4s var(--ease-premium) forwards;
}

.mobile-nav.is-open .mobile-nav-inner a:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav.is-open .mobile-nav-inner a:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav.is-open .mobile-nav-inner a:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav.is-open .mobile-nav-inner a:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav.is-open .mobile-nav-inner a:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav.is-open .mobile-nav-inner a:nth-child(6) { animation-delay: 0.3s; }
.mobile-nav.is-open .mobile-nav-inner a:nth-child(7) { animation-delay: 0.35s; }
.mobile-nav.is-open .mobile-nav-inner a:nth-child(8) { animation-delay: 0.4s; }
.mobile-nav.is-open .mobile-nav-inner a:nth-child(9) { animation-delay: 0.45s; }
.mobile-nav.is-open .mobile-nav-inner a:nth-child(10) { animation-delay: 0.5s; }

@keyframes mobileNavSlideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.mobile-nav-inner a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(6px);
}

.mobile-nav-inner .mobile-lang-switcher {
  position: absolute;
  top: 24px;
  right: 24px;
  margin: 0;
  z-index: 5;
  opacity: 0;
  transform: translateX(20px);
}

.mobile-nav.is-open .mobile-nav-inner .mobile-lang-switcher {
  animation: mobileNavSlideIn 0.4s var(--ease-premium) forwards;
}

.mobile-nav.is-open .mobile-nav-inner .mobile-lang-switcher .lang-btn {
  transform: translateX(0);
  opacity: 1;
}
.mobile-nav-pill {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
  text-align: center;
}
#mobile-nav-app,
#mobile-nav-app:hover {
  background: none;
}
.mobile-nav-user {
  margin-top: 16px;
  background: var(--white);
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  font-weight: 600;
  text-align: center;
}

@media (max-width: 1180px) {
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
  .menu-toggle.is-open { transform: translateY(-50%); }
  .nav { display: none; }
  .header-inner {
    justify-content: center;
    position: relative;
    padding-left: 16px;
    padding-right: 16px;
  }
  .header-inner .brand {
    justify-content: center;
  }
  .mobile-nav { display: block; }
}

.hero {
  margin-top: 0;
  margin-bottom: 0;
  padding: 30px 0 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Uklonjeni orb/glow efekti na pozadini hero sekcije (uključujući crveno u donjem desnom kutu) */
.hero::before,
.hero::after {
  display: none;
}

.hero-grid {
  display: grid;
  gap: 60px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.5;
  margin: 12px 0 16px;
}

.hero h1 span {
  display: block;
  line-height: 1.6;
  padding: 2px 0;
}
.hero h1 .hero-highlight {
  color: var(--primary);
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 16px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--gradient-main);
  background-size: 200% 200%;
  color: var(--white);
  position: relative;
  overflow: hidden;
  animation: gradientShift 8s ease infinite;
}

/* Primary btn – Tunatech-style shine sweep */
.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  opacity: 0;
  transition: opacity 0.4s ease, background-position 0.6s var(--ease-premium);
}
.btn.primary:hover::after {
  opacity: 1;
  background-position: -100% 0;
}

.btn.ghost {
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-admin {
  background:
    var(--gradient-main),
    linear-gradient(var(--white), var(--white));
  background-size: 100% 100%, 100% 100%;
  background-clip: text, padding-box;
  -webkit-background-clip: text, padding-box;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease;
}
.btn-admin:hover {
  -webkit-text-fill-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.25);
  animation: btnAdminBorderPulse 1.5s ease-in-out infinite;
}

@keyframes btnAdminBorderPulse {
  0%, 100% { border-color: var(--primary); }
  50% { border-color: #ff8a50; }
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.admin-link-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.admin-link-note a {
  font-weight: 600;
  text-decoration: underline;
}

.admin-link-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

.admin-link-gradient:hover {
  animation: adminLinkGradientShift 1.5s ease infinite;
}

@keyframes adminLinkGradientShift {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.1); }
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 800px;
}

.glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(255, 106, 0, 0.28),
    rgba(229, 57, 53, 0.18),
    transparent
  );
  filter: blur(10px);
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}

.phone {
  width: 328px;
  height: 677px;
  border-radius: 32px;
  background: #101216;
  padding: 12px;
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  animation: phoneFloat 6s ease-in-out infinite, phoneShadow 6s ease-in-out infinite;
}

.phone-top {
  width: 60px;
  height: 6px;
  background: linear-gradient(90deg, #1e2024, #2a2d35 20%, #353940 50%, #2a2d35 80%, #1e2024);
  border-radius: 4px;
  margin: 0 auto 8px;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.15);
  animation: phoneNotchShine 4s ease-in-out infinite;
}

.phone-screen {
  background: #0f1115;
  border-radius: 24px;
  height: calc(100% - 20px);
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  object-position: center top;
  animation: screenshotDrift 8s ease-in-out infinite;
}

.section {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main > section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 960px;
}

.section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.section.alt {
  background: transparent;
}

.section-header {
  max-width: 680px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  margin: 10px 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}
.section-header.revealed h2 {
  animation: gradientShift 8s ease infinite, sectionH2Reveal 0.5s var(--ease-premium) 0.15s both;
}
@keyframes sectionH2Reveal {
  0% { opacity: 0.7; filter: brightness(0.9); }
  100% { opacity: 1; filter: brightness(1); }
}

.section-header p {
  text-align: center;
}

.section-header .eyebrow {
  display: inline-block;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 28px;
  letter-spacing: 3px;
  font-weight: 700;
}

.section-header .eyebrow {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.grid {
  display: grid;
  gap: 16px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 70%;
  max-width: 70%;
  margin: 0 auto;
}

.features-row {
  display: contents;
}

.features .card {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 400px;
}

@media (max-width: 1024px) {
  .features {
    width: 85%;
    max-width: 85%;
  }
}

@media (max-width: 600px) {
  .features {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .features .card {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

.card {
  background: var(--white);
  padding: 24px 22px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.3s ease;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  perspective: 1000px;
  transform-style: preserve-3d;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.3s var(--ease-premium);
  letter-spacing: -0.02em;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.card:hover {
  border-color: rgba(255, 106, 0, 0.25);
}

.card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 44px rgba(255, 106, 0, 0.12);
  border-color: rgba(255, 106, 0, 0.2);
}

.card:hover h3 {
  transform: translateY(-2px);
}

.app-modules {
  width: min(1360px, calc(100% - 96px));
  margin: 34px auto 0;
  padding: 30px 30px 24px;
  border-radius: 26px;
  background:
    linear-gradient(136deg, rgba(255, 255, 255, 0.985) 0%, rgba(246, 249, 255, 0.95) 58%, rgba(255, 248, 244, 0.96) 100%),
    radial-gradient(circle at 12% -4%, rgba(255, 111, 0, 0.16), transparent 56%);
  border: 1px solid rgba(255, 111, 0, 0.16);
  box-shadow: 0 18px 42px rgba(20, 34, 77, 0.13);
  position: relative;
  overflow: hidden;
  animation: modulesPanelGlow 8s ease-in-out infinite;
}

.app-modules::before {
  content: "";
  position: absolute;
  inset: -48% -34%;
  background: conic-gradient(
    from 210deg,
    rgba(255, 128, 61, 0),
    rgba(255, 128, 61, 0.1),
    rgba(59, 95, 179, 0.08),
    rgba(255, 128, 61, 0)
  );
  animation: modulesHalo 13s linear infinite;
  pointer-events: none;
}

.app-modules > * {
  position: relative;
  z-index: 1;
}

.app-modules-header {
  text-align: center;
  margin-bottom: 24px;
}

.app-modules-header .eyebrow {
  font-size: 14px;
  letter-spacing: 1.8px;
  margin: 0 0 10px;
  color: rgba(226, 85, 33, 0.98) !important;
  -webkit-text-fill-color: rgba(226, 85, 33, 0.98) !important;
}

.app-modules-header h3 {
  margin: 0 auto;
  max-width: 20ch;
  font-size: clamp(25px, 2.75vw, 38px);
  line-height: 1.14;
  font-weight: 800;
  background: linear-gradient(118deg, #d94a2d 0%, #ff7f31 44%, #1f4aa8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-modules-header p {
  margin: 14px auto 0;
  max-width: 700px;
  color: #4b5774;
  font-size: 15px;
  line-height: 1.58;
}

.app-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 18px 18px 17px;
  border-radius: 20px;
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 243, 0.93));
  border: 1px solid rgba(234, 99, 44, 0.18);
  box-shadow: 0 10px 24px rgba(30, 54, 112, 0.11);
  display: flex;
  flex-direction: column;
  transition: transform 0.32s var(--ease-premium), box-shadow 0.32s ease, border-color 0.32s ease;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 22%,
    rgba(255, 255, 255, 0.34) 46%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translateX(-140%);
  opacity: 0.72;
  animation: moduleCardShimmer 6.8s ease-in-out infinite;
  pointer-events: none;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -34px auto;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 110, 57, 0.2), rgba(255, 110, 57, 0));
  pointer-events: none;
}

.module-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(235, 98, 40, 0.38);
  box-shadow: 0 18px 34px rgba(25, 70, 168, 0.17);
}

.module-card:hover::before {
  animation-duration: 2.4s;
}

.module-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.module-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6f3b, #ea4426);
  box-shadow: 0 8px 18px rgba(227, 75, 34, 0.34);
  animation: moduleIconPulse 3.4s ease-in-out infinite;
}

.module-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  transition: transform 0.28s ease;
}

.module-card:hover .module-icon svg {
  transform: rotate(-8deg) scale(1.08);
}

.module-card h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #203561;
}

.module-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.56;
  color: #4c5979;
  max-width: 36ch;
}

.modules-cta {
  margin: 22px auto 2px;
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.modules-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 28%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0) 72%
  );
  transform: translateX(-135%);
  animation: moduleCtaSheen 4.6s ease-in-out infinite;
  pointer-events: none;
}

.module-card:nth-child(1) .module-icon { animation-delay: 0.1s; }
.module-card:nth-child(2) .module-icon { animation-delay: 0.2s; }
.module-card:nth-child(3) .module-icon { animation-delay: 0.3s; }
.module-card:nth-child(4) .module-icon { animation-delay: 0.4s; }
.module-card:nth-child(5) .module-icon { animation-delay: 0.5s; }
.module-card:nth-child(6) .module-icon { animation-delay: 0.6s; }

@keyframes modulesPanelGlow {
  0%, 100% { box-shadow: 0 16px 36px rgba(20, 34, 77, 0.12); }
  50% { box-shadow: 0 22px 42px rgba(20, 34, 77, 0.18); }
}

@keyframes modulesHalo {
  0% { transform: rotate(0deg); opacity: 0.9; }
  50% { transform: rotate(180deg); opacity: 0.45; }
  100% { transform: rotate(360deg); opacity: 0.9; }
}

@keyframes moduleCardShimmer {
  0%, 68%, 100% { transform: translateX(-140%); }
  80% { transform: translateX(160%); }
}

@keyframes moduleIconPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.06); }
}

@keyframes moduleCtaSheen {
  0%, 75%, 100% { transform: translateX(-135%); }
  88% { transform: translateX(135%); }
}

@media (max-width: 980px) {
  .app-modules {
    width: min(100%, calc(100% - 48px));
    padding: 24px 20px 20px;
  }
  .app-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .app-modules {
    width: min(100%, calc(100% - 24px));
    padding: 20px 16px;
    border-radius: 20px;
  }
  .app-modules-header h3 {
    font-size: clamp(22px, 7vw, 28px);
  }
  .app-modules-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .module-card {
    min-height: 0;
    padding: 16px;
  }
  .module-card h4 {
    font-size: 17px;
  }
  .modules-cta {
    width: 100%;
    display: flex;
    text-align: center;
  }
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.steps .step {
  flex: 0 1 280px;
  min-width: 220px;
  max-width: 360px;
}

.step {
  background: var(--bg);
  padding: 20px;
  border-radius: 18px;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease;
  text-align: center;
}

.step:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 44px rgba(255, 106, 0, 0.12);
}

.step:hover .step-number {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(255, 106, 0, 0.35);
}

.step:hover h3 {
  color: var(--primary);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: var(--white);
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  font-weight: 700;
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease;
}

.step h3 {
  transition: color 0.25s ease;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.stats .stat-card {
  flex: 0 1 280px;
  min-width: 220px;
  max-width: 360px;
}

.stat-card {
  background: var(--gradient-main);
  background-size: 200% 200%;
  color: var(--white);
  padding: 20px;
  border-radius: 22px;
  animation: gradientShift 8s ease infinite;
  text-align: center;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.stat-card:hover .stat-number {
  transform: scale(1.08);
}

.stat-card span,
.stat-card .stat-number {
  font-size: 28px;
  font-weight: 700;
  transition: transform 0.3s var(--ease-premium);
}

.contact {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.contact-section {
  margin: 0 auto;
  width: 100%;
  transition: max-width 0.3s ease;
}

#contact.section {
  align-items: stretch;
}

.contact-section-wide {
  width: 65%;
  max-width: 65%;
  margin: 0 auto;
  padding: 0 2%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.contact-section-wide .contact-form {
  width: 100%;
}

/* Experience – širina za jedan red karata kad stane, inače centrirane */
.experience-content-wide {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .contact-section-wide {
    width: 90%;
    max-width: 90%;
  }
  .experience-content-wide {
    width: 90%;
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  .contact-section-wide {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .experience-content-wide {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }
}

@media (max-width: 1024px) {
  .contact-section {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .contact-section {
    max-width: 95%;
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .contact-section {
    max-width: 100%;
    padding: 0 16px;
  }
}

.contact-header {
  margin-bottom: 24px;
  text-align: center;
}

.contact-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.contact-header p {
  text-align: center;
}

.contact-form {
  background: var(--white);
  padding: 32px 40px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease;
}

.contact-form:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 44px rgba(255, 106, 0, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 20px 18px;
  }
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.3s var(--ease-premium), transform 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
  transform: translateY(-1px);
  animation: inputFocusRing 0.4s var(--ease-premium);
}
@keyframes inputFocusRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
  100% { box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15); }
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  align-self: center;
  margin-top: 8px;
}

.contact-card {
  background: var(--white);
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-preview {
  background: transparent;
}

.app-preview .btn-app-cta {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 0;
}

.app-panels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Jedan red kad ima prostora; kad se suzi, prelomljene kartice centrirane u redu */
.app-panels .app-panel {
  flex: 1 1 300px;
  max-width: 408px;
  min-width: 0;
}

.app-panel {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease;
  overflow: hidden;
}

.app-panel:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(198, 40, 40, 0.08);
}

.app-panel:hover .app-panel-icon {
  transform: scale(1.08);
}

.app-panel-header {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

.app-panel-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 18px;
  background: var(--gradient-main);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-premium);
}

.app-panel-icon svg {
  stroke: #fff;
}

.app-panel-header h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.app-panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.app-panel-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-pill {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel-pill:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(198, 40, 40, 0.3);
}

.mini-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fafbfd 0%, #f2f4f8 100%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.mini-card strong {
  font-size: 15px;
  font-weight: 700;
}

.mini-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.status-dot.received {
  background: #2196F3;
  animation: statusDotPulse 2s ease-in-out infinite;
}

.status-dot.progress {
  background: #FFB300;
  animation: statusDotPulse 2s ease-in-out 0.3s infinite;
}

.status-dot.resolved {
  background: #43A047;
  animation: statusDotPulse 2s ease-in-out 0.6s infinite;
}

@keyframes statusDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { transform: scale(1.15); opacity: 0.9; box-shadow: 0 0 6px currentColor; }
}

.chat-panel {
  background: linear-gradient(180deg, #f8f9fc 0%, #f0f2f7 100%);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: bubblePop 0.8s ease both;
}

.chat-bubble.left {
  align-self: flex-start;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-bottom-left-radius: 6px;
}

.chat-bubble.right {
  align-self: flex-end;
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 16px rgba(198, 40, 40, 0.2);
  border-bottom-right-radius: 6px;
}

.chat-bubble.right p {
  color: rgba(255, 255, 255, 0.95);
}

.bubble-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.chat-bubble.right .bubble-name {
  color: rgba(255, 255, 255, 0.9);
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--white);
  padding: 14px 18px;
  border-radius: 20px;
  color: var(--muted);
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.send-dot {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-main);
  transition: transform 0.25s ease;
  animation: pulse 5s ease-in-out infinite;
}

.send-dot:hover {
  transform: scale(1.08);
  animation: none;
}

.profile-panel {
  gap: 16px;
}

.profile-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #fafbfd 0%, #f2f4f8 100%);
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.profile-avatar {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 18px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-premium);
}

.profile-card:hover .profile-avatar {
  transform: scale(1.05) rotate(3deg);
  animation: profileAvatarGlow 1.5s ease-in-out infinite;
}

@keyframes profileAvatarGlow {
  0%, 100% { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)); }
  50% { filter: drop-shadow(0 6px 12px rgba(255, 106, 0, 0.2)); }
}

.profile-card strong {
  font-size: 16px;
  font-weight: 800;
}

.profile-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-stats div {
  background: linear-gradient(135deg, #fafbfd 0%, #f2f4f8 100%);
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease;
}

.profile-stats div:hover {
  transform: translateY(-2px);
}

.profile-stats span {
  font-weight: 800;
  font-size: 20px;
  display: block;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-stats p {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.profile-chart-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 4px;
}

.profile-chart-wrap .stat-donut-wrap {
  flex-shrink: 0;
}

/* Profil donut – manji na desktopu, usklađen s grafom ispod mape */
.profile-stat-donut {
  width: 40px;
  height: 40px;
}

.profile-chart-wrap .stat-donut-total {
  font-size: 18px;
}

.profile-chart-wrap .stat-donut-label {
  font-size: 8px;
}

.profile-chart-wrap .stat-bars-wrap {
  flex: 1;
  min-width: 140px;
}

.profile-chart-wrap .stat-bar-label {
  width: 76px;
  font-size: 12px;
}

.profile-chart-wrap .stat-bar-val {
  width: 24px;
  font-size: 13px;
}

.profile-chart-wrap .stat-bar-track {
  height: 8px;
}

.profile-opcina-rating {
  background: linear-gradient(135deg, #fafbfd 0%, #f2f4f8 100%);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-opcina-rating .opcina-rating-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.profile-smileys {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.profile-smileys .smiley-icon {
  width: 28px;
  height: 28px;
  color: rgba(0, 0, 0, 0.08);
}

.profile-smileys .smiley-icon.active {
  color: var(--secondary);
  transform: scale(1.15);
}

.profile-opcina-rating .opcina-rating-desc {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 700px) {
  .app-panels {
    gap: 20px;
  }

  .app-panel {
    padding: 20px;
  }
}

.experience {
  background: transparent;
}

.experience-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 18px;
  width: 100%;
}

.experience-grid .glass-card {
  flex: 0 1 280px;
  min-width: 220px;
  max-width: 360px;
}

.glass-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.3s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 44px rgba(255, 106, 0, 0.14);
  border-color: rgba(255, 106, 0, 0.3);
}

.glass-card:hover .glass-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.35);
}

.glass-card:hover h3 {
  transform: translateY(-1px);
}

.glass-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: var(--gradient-main);
  color: #fff;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease;
}

.glass-card h3 {
  transition: transform 0.3s var(--ease-premium);
}

.glass-icon svg {
  stroke: #fff;
}

.experience-strip {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.experience-strip .strip-item {
  flex: 0 1 220px;
  min-width: 200px;
  max-width: 340px;
}

.strip-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  display: grid;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.3s ease;
  gap: 4px;
  text-align: center;
  border: 1px solid transparent;
}

.strip-item:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 44px rgba(255, 106, 0, 0.14);
  border-color: rgba(255, 106, 0, 0.15);
}

.strip-item:hover strong {
  transform: scale(1.05);
}

.strip-item strong {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  transition: transform 0.3s var(--ease-premium);
}

.strip-item span {
  color: var(--muted);
  font-size: 13px;
}
.strip-item:nth-child(1) { animation-delay: 0.1s; }
.strip-item:nth-child(2) { animation-delay: 0.2s; }
.strip-item:nth-child(3) { animation-delay: 0.3s; }

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}

/* Live map section */
.map-section {
  background: transparent;
}

.map-section .container {
  max-width: none;
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
}

.map-wrapper {
  position: relative;
  width: 65%;
  max-width: 65%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  min-height: 480px;
  background: #e8eae8;
  transition: width 0.45s var(--ease-premium), max-width 0.45s var(--ease-premium),
    margin 0.45s var(--ease-premium), height 0.45s var(--ease-premium), max-height 0.45s var(--ease-premium),
    border-radius 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium),
    background 0.45s ease, opacity 0.35s ease, transform 0.45s var(--ease-premium);
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.map-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.map-wrapper.is-fullscreen {
  margin: 1cm;
  width: calc(100vw - 2cm);
  height: calc(100vh - 2cm);
  max-width: calc(100vw - 2cm);
  max-height: calc(100vh - 2cm);
  border-radius: 28px;
  background: #1a1a1a;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: mapFullscreenIn 0.5s var(--ease-premium) both;
}
@keyframes mapFullscreenIn {
  0% { opacity: 0.85; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}
/* Izlazak iz fullscreena */
.map-wrapper.fullscreen-exiting {
  animation: mapFullscreenOut 0.35s var(--ease-premium) both;
}
@keyframes mapFullscreenOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.9; transform: scale(0.98); }
}

.map-wrapper.is-fullscreen #live-map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 28px;
}

#live-map {
  width: 100%;
  min-width: 100%;
  height: 480px;
  min-height: 480px;
  border-radius: inherit;
  z-index: 0;
  display: block;
}

@media (min-width: 768px) {
  .map-wrapper { min-height: 520px; }
  #live-map { height: 520px; }
}

/* Map overlays - kontrole u gornjem desnom kutu */
.map-overlay-top {
  position: absolute;
  top: 12px;
  left: auto;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  z-index: 1000;
}

.map-stats-overlay {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.map-controls {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  background: var(--gradient-main);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  padding: 6px 8px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.3);
}

.map-ctrl-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.map-ctrl-btn svg {
  stroke: #fff;
}

.map-ctrl-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: mapBtnHoverPulse 1s ease-in-out infinite;
}

.map-ctrl-btn:active {
  transform: translateY(0) scale(0.95);
  animation: mapBtnRipple 0.4s ease;
}

@keyframes mapBtnHoverPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
  50% { box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2); }
}

@keyframes mapBtnRipple {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

/* Google Maps controls - zoom skriven (zoomControl: false u API) */
.map-wrapper .gm-bundled-control {
  display: none !important;
}
.map-wrapper .gm-style-cc {
  margin: 4px !important;
  border-radius: 8px !important;
}

.map-wrapper .gm-style > div:first-child {
  border-radius: 0;
}

/* InfoWindow balon – custom dizajn */
.map-wrapper .gm-ui-hover-effect,
.map-wrapper .gm-style-iw + button {
  display: none !important;
}
.map-wrapper .gm-style-iw-t::after {
  background: transparent !important;
  box-shadow: none !important;
}
.map-wrapper .gm-style-iw-c {
  padding: 0 !important;
  max-width: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.map-wrapper .gm-style-iw-d {
  overflow: auto !important;
}

.map-info-bubble {
  min-width: 240px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  animation: infoBubbleIn 0.35s var(--ease-premium) both;
}
@keyframes infoBubbleIn {
  0% { opacity: 0; transform: scale(0.92) translateY(-8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.map-info-header {
  height: 6px;
  min-height: 6px;
}

.map-info-body {
  padding: 14px 16px;
}

.map-info-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.map-info-status {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.map-info-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  max-height: 120px;
  overflow-y: auto;
}

.map-info-close {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.map-info-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}
.map-info-close:active {
  transform: scale(0.96);
}

.map-wrapper.is-fullscreen .gm-style-cc,
.map-wrapper.is-fullscreen .gm-bundled-control {
  margin: 4px !important;
}

.map-wrapper.is-fullscreen .map-overlay-top {
  top: 20px;
  left: auto;
  right: 20px;
}

.map-wrapper.is-fullscreen .map-stats-overlay {
  display: flex;
}

.map-wrapper.is-fullscreen .map-legend {
  bottom: 20px;
}

/* Grafovi i ocjena općine ispod mape */
.map-below {
  margin-top: 32px;
  width: 65%;
  max-width: 65%;
  margin-left: auto;
  margin-right: auto;
}

.map-below-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 901px) {
  .map-below-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .stat-chart-card {
    display: flex;
    flex-direction: column;
  }
  .stat-chart-card .stat-chart-row {
    flex: 1;
  }
  .opcina-rating-card {
    width: 280px;
    min-width: 260px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .map-below-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .map-wrapper {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .map-below {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .map-wrapper {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .map-below {
    max-width: 90%;
    width: 90%;
    margin-top: 20px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }
  .map-below-inner {
    gap: 14px;
  }
  .stat-chart-card,
  .opcina-rating-card {
    padding: 16px 14px;
    border-radius: 16px;
  }
  .stat-chart-title,
  .opcina-rating-title {
    margin: 0 0 12px;
    font-size: 15px;
  }
  .stat-chart-row {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .stat-donut-wrap {
    width: 100%;
    justify-content: center;
  }
  .stat-donut {
    width: 120px;
    height: 120px;
  }
  .stat-donut-total {
    font-size: 22px;
  }
  .stat-donut-label {
    font-size: 10px;
  }
  .stat-bars-wrap {
    width: 100%;
    min-width: 0;
    gap: 10px;
  }
  .stat-bar-row {
    gap: 10px;
  }
  .stat-bar-label {
    width: 76px;
    font-size: 12px;
  }
  .stat-bar-track {
    height: 8px;
  }
  .stat-bar-val {
    width: 24px;
    font-size: 13px;
  }
  .opcina-rating-card {
    width: 100%;
    min-width: 0;
  }
  .opcina-rating-card .opcina-rating-title {
    margin: 0 0 10px;
  }
  .opcina-smileys {
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .opcina-smileys .smiley-icon {
    width: 32px;
    height: 32px;
  }
  .opcina-smileys .smiley-icon.active {
    transform: scale(1.15);
  }
  .opcina-rating-desc {
    font-size: 11px;
    line-height: 1.4;
  }
}

.stat-chart-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease;
}

.stat-chart-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 44px rgba(255, 106, 0, 0.12);
}

.opcina-rating-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.08);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.3s ease;
}

.opcina-rating-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 44px rgba(255, 106, 0, 0.12);
  border-color: rgba(255, 106, 0, 0.2);
}

.stat-chart-title,
.opcina-rating-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.stat-chart-card .stat-chart-title {
  text-align: center;
}

.opcina-rating-card .opcina-rating-title {
  text-align: center;
}

/* Donut + bar chart row */
.stat-chart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.stat-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Horizontal bar chart (linije) */
.stat-bars-wrap {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-bar-label {
  width: 90px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text);
}

.stat-bar-track {
  flex: 1;
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.9s var(--ease-premium);
  position: relative;
  overflow: hidden;
}
.stat-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  pointer-events: none;
}
.map-below.charts-visible .stat-bar-fill::after {
  animation: barFillShine 1.8s ease-in-out 0.6s both;
}
@keyframes barFillShine {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.stat-bar-fill.received { background: #2196F3; }
.stat-bar-fill.progress { background: #FFB300; }
.stat-bar-fill.resolved { background: #43A047; }
.stat-bar-fill.total { background: #5C6BC0; }

.stat-bar-val {
  width: 28px;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  color: var(--text);
}

/* Donut chart */

.stat-donut {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.stat-donut svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.stat-donut .donut-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 14;
}

.stat-donut .donut-segment {
  transition: stroke-dasharray 0.6s ease, stroke-dashoffset 0.6s ease;
}

.stat-donut .donut-received { stroke: #2196F3; }
.stat-donut .donut-progress { stroke: #FFB300; }
.stat-donut .donut-resolved { stroke: #43A047; }

.stat-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.stat-donut-total {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-donut-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-donut-legend {
  font-size: 14px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-donut-legend .legend-dot {
  display: inline-block;
  width: 1em;
  text-align: center;
}

.stat-donut-legend .legend-dot.received { color: #2196F3; }
.stat-donut-legend .legend-dot.progress { color: #FFB300; }
.stat-donut-legend .legend-dot.resolved { color: #43A047; }

/* Ocjena sa smajlićima */
.opcina-rating-card {
  min-width: 220px;
  text-align: center;
}

.opcina-rating-card .opcina-rating-title {
  margin: 0 0 16px;
}

.opcina-smileys {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.opcina-smileys .smiley-icon {
  width: 40px;
  height: 40px;
  color: rgba(0, 0, 0, 0.15);
  transition: all 0.35s var(--ease-premium);
}

.opcina-smileys .smiley-icon.active {
  color: var(--secondary);
  transform: scale(1.2);
  filter: drop-shadow(0 2px 8px rgba(255, 106, 26, 0.35));
  animation: smileyPulse 2s ease-in-out infinite;
}

@keyframes smileyPulse {
  0%, 100% { opacity: 1; transform: scale(1.2); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.opcina-smileys .smiley-icon.inactive {
  color: rgba(0, 0, 0, 0.08);
}

.opcina-smileys .smiley-icon.active path,
.opcina-smileys .smiley-icon.active circle {
  stroke: currentColor;
}

.opcina-rating-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.map-stat {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.map-stat:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.map-stat-value {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

.map-stat-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* Boje prema pinovima: Ukupno plava, Prijavljeno crvena, U obradi žuta, Riješeno zelena */
.map-stat-total { border-left: 4px solid #2196F3; }
.map-stat-total .map-stat-value { background: none; -webkit-text-fill-color: #2196F3; color: #2196F3; }
.map-stat-received { border-left: 4px solid #E53935; }
.map-stat-received .map-stat-value { background: none; -webkit-text-fill-color: #E53935; color: #E53935; }
.map-stat-progress { border-left: 4px solid #FFB300; }
.map-stat-progress .map-stat-value { background: none; -webkit-text-fill-color: #FFB300; color: #FFB300; }
.map-stat-resolved { border-left: 4px solid #43A047; }
.map-stat-resolved .map-stat-value { background: none; -webkit-text-fill-color: #43A047; color: #43A047; }

.map-legend {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--gradient-main);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  padding: 10px 18px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.25);
  z-index: 1000;
  font-size: 13px;
  color: #fff;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Točke za status – zadržavaju boju, tekst ostaje bijel */
.legend-received .dot { color: #ff1744; animation: legendDotPulse 2s ease-in-out infinite; }
.legend-progress .dot { color: #ffe082; animation: legendDotPulse 2s ease-in-out 0.2s infinite; }
.legend-resolved .dot { color: #a5d6a7; animation: legendDotPulse 2s ease-in-out 0.4s infinite; }

@keyframes legendDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.85; }
}


@media (max-width: 600px) {
  .map-overlay-top {
    top: 8px;
    left: auto;
    right: 8px;
    gap: 8px;
  }
  .map-controls {
    padding: 4px 6px;
    gap: 6px;
  }
  .map-ctrl-btn {
    width: 38px;
    height: 38px;
  }
  .map-stats-overlay {
    gap: 6px;
  }
  .map-stat {
    padding: 8px 12px;
  }
  .map-stat-value { font-size: 16px; }
  .map-stat-label { font-size: 10px; }
  .map-legend {
    bottom: 12px;
    gap: 12px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

.site-footer {
  padding: 28px 0 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: var(--gradient-header-footer);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  border-radius: 16px 16px 0 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-title-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
}

.footer-partner-left {
  flex: 1 1 0;
  min-width: 120px;
  justify-content: flex-start;
  order: 1;
}
.footer-partner-right {
  flex: 1 1 0;
  min-width: 120px;
  justify-content: flex-end;
  order: 3;
}

.footer-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: footerTitleGlow 4s ease-in-out infinite;
}

@keyframes footerTitleGlow {
  0%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15); }
  50% { opacity: 0.92; text-shadow: 0 0 28px rgba(255, 255, 255, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15); }
}

.footer-subtitle {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 400px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  align-items: center;
}

/* Partneri: lijevo Hrvatsko Oko, desno Tuna Tech */
.footer-title-row .footer-partner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* Footer stagger – kad uđe u viewport */
.footer-title-row .footer-partner-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s var(--ease-premium) 0.1s, transform 0.5s var(--ease-premium) 0.1s;
}
.footer-title-row .footer-brand {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-premium) 0.2s, transform 0.5s var(--ease-premium) 0.2s;
}
.footer-title-row .footer-partner-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s var(--ease-premium) 0.3s, transform 0.5s var(--ease-premium) 0.3s;
}
.footer-title-row.footer-visible .footer-partner-left,
.footer-title-row.footer-visible .footer-brand,
.footer-title-row.footer-visible .footer-partner-right {
  opacity: 1;
  transform: translate(0);
}

.footer-brand {
  order: 2;
}

.footer-brand .footer-links {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 12px 0 10px;
  }
  .footer-inner {
    gap: 10px;
  }
  .footer-title-row {
    flex-direction: column;
    gap: 8px;
  }
  .footer-partner-left,
  .footer-partner-right {
    flex: none;
    justify-content: center;
  }
  .footer-partner-left { order: 1; }
  .footer-brand { order: 2; gap: 2px; }
  .footer-brand .footer-links { margin-top: 8px; }
  .footer-partner-right { order: 3; }
  .footer-partner-left .partner-logo {
    height: min(72px, 22vw);
  }
  .footer-partner-left .partner-social-desktop {
    display: none;
  }
  .footer-partner-right .partner-logo-block {
    gap: 8px;
  }
  .footer-title { font-size: 18px; }
  .footer-subtitle { font-size: 12px; margin: 0; }
  .footer-links {
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .footer-links::-webkit-scrollbar { display: none; }
  .footer-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 14px;
  }
  .footer-copyright { padding-top: 8px; }
  .footer-copyright p { font-size: 12px; }
  .footer-copyright .footer-legal { margin-top: 2px; font-size: 11px; }
}

/* Copyright i legal */
.footer-copyright {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  animation: footerFadeIn 1s var(--ease-premium) 0.3s both;
}

@keyframes footerFadeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.footer-copyright p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-copyright .footer-legal {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-copyright .footer-legal a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.footer-copyright .footer-legal a:hover {
  text-decoration: underline;
}

.footer-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  -webkit-text-fill-color: var(--white);
  transition: transform 0.25s ease, background 0.25s ease;
}

.footer-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.25);
  -webkit-text-fill-color: var(--white);
}

.footer-links a:active {
  transform: scale(0.97);
}

.partner-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-partner .partner-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.partner-logo-link {
  display: block;
  line-height: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: partnerLogoIdle 4s ease-in-out infinite;
}

.partner-logo-link:hover {
  transform: scale(1.08) translateY(-2px);
  animation: none;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

@keyframes partnerLogoIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.partner-logo {
  height: 48px;
  width: auto;
  opacity: 0.95;
  transition: opacity 0.25s ease, filter 0.3s ease;
}

/* Hrvatsko Oko – posebno pozicioniranje */
.partner-logo-hrvatsko-oko {
  margin-left: 65px;
  margin-right: 65px;
}

/* Tuna Technologies – posebno pozicioniranje (prilagodi po potrebi) */
.partner-logo-tunatech {
  margin-left: 0;
  margin-right: 0;
}

.partner-logo-link:hover .partner-logo {
  opacity: 1;
}

.footer-partner .partner-social .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.15);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.footer-partner .partner-social .social-icon:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-partner .partner-social .social-icon svg {
  flex-shrink: 0;
}

.hero-content {
  animation: fadeUp 0.8s ease both;
}

.hero-visual {
  animation: fadeUp 1s ease both;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  50% {
    transform: translateY(18px) translateX(12px) scale(1.05);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Floating phone – 3D sway, float */
@keyframes phoneFloat {
  0%, 100% {
    transform: translateY(0) translateX(0) rotateY(-1.5deg);
  }
  25% {
    transform: translateY(-12px) translateX(3px) rotateY(1deg);
  }
  50% {
    transform: translateY(-6px) translateX(-2px) rotateY(1.5deg);
  }
  75% {
    transform: translateY(-14px) translateX(2px) rotateY(-1deg);
  }
}

@keyframes phoneShadow {
  0%, 100% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 106, 0, 0.05);
  }
  50% {
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3), 0 0 50px rgba(255, 106, 0, 0.12);
  }
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1) translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.12) translateY(-8px);
    opacity: 1;
  }
}

@keyframes phoneNotchShine {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.1);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 106, 0, 0.25);
    opacity: 0.95;
  }
}

@keyframes screenshotDrift {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-4px) scale(1.01);
  }
  70% {
    transform: translateY(5px) scale(0.995);
  }
}

@keyframes bubblePop {
  0% {
    transform: scale(0.98);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hero & page load – Tunatech-style easing */
.anim-fade-in {
  animation: fadeIn 0.9s var(--ease-out-expo) both;
}
.anim-fade-up {
  animation: fadeUp 0.9s var(--ease-premium) both;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Badge floating – isti pattern kao kartice: anim-done nakon fadeUp da hover radi */
.badge-float {
  position: relative;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: badgeFloat 4s ease-in-out infinite;
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease;
}
.badge-float::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: var(--gradient-main);
  background-size: 200% 200%;
  opacity: 0.25;
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}
.badge-float:not(.anim-done)::before {
  animation: gradientShift 8s ease infinite;
}
.badge-float.anim-done::before {
  animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { opacity: 0.2; filter: blur(12px); }
  50% { opacity: 0.4; filter: blur(14px); }
}
.badge-float:nth-child(1) { animation-delay: 0s; }
.badge-float:nth-child(2) { animation-delay: 0.2s; }
.badge-float:nth-child(3) { animation-delay: 0.4s; }
.badge-float.anim-done {
  animation: none;
  transform: translateY(0) scale(1);
}
.badge-float.anim-done::before {
  animation: badgeGlow 3s ease-in-out infinite;
}
.badge-float.anim-done:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 24px rgba(198, 40, 40, 0.35), 0 4px 12px rgba(255, 106, 0, 0.2);
}
.badge-float.anim-done:hover::before {
  opacity: 0.45;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

/* Scroll reveal – Tunatech-style: scale + fade + slide */
.anim-reveal {
  animation: revealUp 0.85s var(--ease-premium) both;
}
.anim-reveal.anim-done {
  animation: none;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.anim-reveal:not(.revealed) {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  visibility: hidden;
}
@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Section header accent line (Tunatech-style) */
.section-header .eyebrow {
  position: relative;
  display: inline-block;
}
.section-header.revealed .eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--gradient-main);
  border-radius: 2px;
  animation: lineReveal 0.6s var(--ease-premium) 0.3s both;
}
@keyframes lineReveal {
  0% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* Icon animations */
.icon-bounce {
  animation: iconBounce 2s ease-in-out infinite;
}
.icon-pulse {
  animation: iconPulse 2.5s ease-in-out infinite;
}
@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes iconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

/* Step animations – pulse kreće nakon reveal-a (0.8s), bounce bez konflikta s hover */
.step .step-pulse {
  animation: stepPulse 2.5s ease-in-out infinite;
  animation-delay: 0.8s;
  animation-fill-mode: both;
}
@keyframes stepPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Stat card glow */
.stat-glow {
  position: relative;
  overflow: hidden;
}
.stat-glow::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 60%
  );
  animation: statShimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes statShimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
.stat-number {
  font-size: 28px;
  font-weight: 700;
  animation: statPop 0.6s ease both;
}
@keyframes statPop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* Card hover with scale */
/* Mini card – staggered entrance + hover */
.app-panel.revealed .mini-card {
  animation: miniCardSlideIn 0.5s var(--ease-premium) both;
}
.app-panel.revealed .mini-card:nth-child(1) { animation-delay: 0.15s; }
.app-panel.revealed .mini-card:nth-child(2) { animation-delay: 0.22s; }
.app-panel.revealed .mini-card:nth-child(3) { animation-delay: 0.29s; }
.app-panel.revealed .mini-card:nth-child(4) { animation-delay: 0.36s; }
.app-panel.revealed .mini-card:nth-child(5) { animation-delay: 0.43s; }

@keyframes miniCardSlideIn {
  0% { opacity: 0; transform: translateX(-12px); }
  100% { opacity: 1; transform: translateX(0); }
}

.mini-card {
  transition: transform 0.25s ease, background 0.25s ease;
}
.mini-card:hover {
  transform: translateX(6px) scale(1.01);
  background: #eef0f5 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Chat bubble entrance */
.chat-bubble.left {
  animation: bubbleSlideLeft 0.6s ease both;
}
.chat-bubble.right {
  animation: bubbleSlideRight 0.6s ease 0.2s both;
}
@keyframes bubbleSlideLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes bubbleSlideRight {
  0% {
    opacity: 0;
    transform: translateX(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Contact form input focus */
.form-group input:focus,
.form-group textarea:focus {
  animation: inputFocusPulse 2s ease-in-out infinite;
}
@keyframes inputFocusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15); }
  50% { box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.2); }
}

/* Eyebrow letter spacing animation */
.section-header .eyebrow {
  animation: eyebrowReveal 1s ease both;
}
@keyframes eyebrowReveal {
  0% {
    opacity: 0;
    letter-spacing: 8px;
  }
  100% {
    opacity: 1;
    letter-spacing: 3px;
  }
}

/* Primary button shine */
.btn.primary {
  position: relative;
  overflow: hidden;
}
.btn.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

/* Panel pill pulse */
.panel-pill {
  animation: pillPulse 2s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 106, 0, 0); }
}

/* Send button pulse stronger */
.send-dot {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.send-dot:hover {
  transform: scale(1.15);
  animation: sendPulse 0.6s ease infinite;
}
@keyframes sendPulse {
  0%, 100% { transform: scale(1.15); }
  50% { transform: scale(1.25); }
}

/* ========== DODATNE ANIMACIJE ========== */
/* Map legend pulse */
.map-legend .legend-item {
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.map-legend .legend-item:hover {
  transform: scale(1.05);
  opacity: 1;
}
/* Map stat cards hover */
.map-stat {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Footer links stagger */
.footer-links a {
  transition: transform 0.25s var(--ease-premium), background 0.25s ease;
}
.footer-links a:hover {
  transform: translateY(-2px) scale(1.02);
}
/* Nav pill bounce */
.nav-pill:hover,
.mobile-nav-pill:hover {
  animation: pillBounce 0.5s ease;
}
@keyframes pillBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
/* Section stagger children */
.experience-grid .glass-card:nth-child(1) { animation-delay: 0.05s; }
.experience-grid .glass-card:nth-child(2) { animation-delay: 0.15s; }
.experience-grid .glass-card:nth-child(3) { animation-delay: 0.25s; }
.experience-strip .strip-item:nth-child(1) { animation-delay: 0.1s; }
.experience-strip .strip-item:nth-child(2) { animation-delay: 0.2s; }
.experience-strip .strip-item:nth-child(3) { animation-delay: 0.3s; }
/* Donut segment draw */
.stat-donut .donut-segment {
  transition: stroke-dasharray 0.8s var(--ease-premium), stroke-dashoffset 0.8s var(--ease-premium);
}

/* Donut center pulse when in view */
.stat-donut-center,
.stat-donut .stat-donut-center {
  animation: donutCenterPulse 3s ease-in-out infinite;
}

@keyframes donutCenterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
/* Form submit button press */
.contact-form .btn.primary:active {
  transform: scale(0.96);
  animation: btnSubmitRipple 0.4s ease;
}

@keyframes btnSubmitRipple {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  100% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}
/* Hero CTA hover lift */
.hero-actions .btn {
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease;
}
.hero-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(198, 40, 40, 0.3);
}

html.perf-lite .scroll-progress {
  transition: none;
  box-shadow: none;
}

html.perf-lite .bg-animated,
html.perf-lite .bg-blob,
html.perf-lite .bg-grid,
html.perf-lite .bg-glow,
html.perf-lite .hero-visual .glow {
  display: none !important;
}

html.perf-lite .site-header,
html.perf-lite .app-install-banner,
html.perf-lite .site-footer,
html.perf-lite .section-header h2,
html.perf-lite .card h3,
html.perf-lite .hero .eyebrow,
html.perf-lite .hero h1,
html.perf-lite .hero h1 .hero-highlight,
html.perf-lite .admin-link-gradient,
html.perf-lite .phone,
html.perf-lite .phone-top,
html.perf-lite .phone-screenshot,
html.perf-lite .app-modules,
html.perf-lite .app-modules::before,
html.perf-lite .module-card::before,
html.perf-lite .module-icon,
html.perf-lite .badge-float,
html.perf-lite .map-ctrl-btn,
html.perf-lite .legend-received .dot,
html.perf-lite .legend-progress .dot,
html.perf-lite .legend-resolved .dot,
html.perf-lite .partner-logo,
html.perf-lite .status-dot {
  animation: none !important;
}

html.perf-lite .lang-switcher .lang-menu,
html.perf-lite .badge-float,
html.perf-lite .glass-card,
html.perf-lite .map-stats-overlay {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.perf-lite .card,
html.perf-lite .module-card,
html.perf-lite .app-modules,
html.perf-lite .phone,
html.perf-lite .mobile-nav-inner,
html.perf-lite .site-header,
html.perf-lite .site-footer,
html.perf-lite .map-stats-overlay,
html.perf-lite .map-controls {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14) !important;
}

html.perf-lite .nav a:hover,
html.perf-lite .menu-toggle:hover span,
html.perf-lite .map-ctrl-btn:hover,
html.perf-lite .map-ctrl-btn:active {
  animation: none !important;
}

html.perf-lite .hero h1,
html.perf-lite .section-header h2,
html.perf-lite .card h3 {
  background-size: 100% 100%;
}

/* Chip/badge hover – prije anim-done koristi badgePop; nakon anim-done hover je preko transition */
.badge-float:not(.anim-done):hover {
  animation: badgePop 0.4s ease;
}
@keyframes badgePop {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.08); }
  100% { transform: translateY(-6px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .header-inner > .lang-switcher {
    display: none;
  }
  .mobile-lang-switcher {
    display: inline-flex;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
