/* ============================================================
   DJELATNIK – Ultra Premium Cosmos UI  |  WOW Edition
   ============================================================ */

/* ---- VARIJABLE ---- */
:root {
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --container: 1200px;
  --header-h: 70px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.18s var(--ease-out);
  --transition-med: 0.32s var(--ease-out);
  --transition-slow: 0.55s var(--ease-out);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
body.nav-open, body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
h1,h2,h3,h4,p { margin: 0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---- LAYOUT ---- */
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }
main { flex: 1; }

/* ============================================================
   ANIMATED COSMOS BACKGROUND
   ============================================================ */
#cosmos-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

/* Aurora layers */
.aurora-layer {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.aurora-layer::before {
  content: '';
  position: absolute;
  width: 120vw; height: 90vh;
  top: -35vh; left: -15vw;
  background: radial-gradient(ellipse 65% 55% at 28% 38%,
    rgba(40, 80, 255, 0.11) 0%,
    rgba(90, 40, 255, 0.07) 45%,
    transparent 70%);
  animation: auroraMove1 22s ease-in-out infinite alternate;
  filter: blur(50px);
}
.aurora-layer::after {
  content: '';
  position: absolute;
  width: 110vw; height: 80vh;
  bottom: -25vh; right: -15vw;
  background: radial-gradient(ellipse 60% 55% at 72% 62%,
    rgba(130, 40, 255, 0.10) 0%,
    rgba(255, 40, 130, 0.06) 48%,
    transparent 72%);
  animation: auroraMove2 28s ease-in-out infinite alternate;
  filter: blur(55px);
}
.aurora-mid {
  position: fixed;
  width: 90vw; height: 70vh;
  top: 15%; left: 5%;
  background: radial-gradient(ellipse 55% 55% at 50% 50%,
    rgba(0, 180, 255, 0.05) 0%,
    rgba(100, 0, 255, 0.03) 50%,
    transparent 70%);
  animation: auroraMove3 35s ease-in-out infinite alternate;
  filter: blur(70px);
  pointer-events: none; z-index: 0;
}
@keyframes auroraMove1 {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); }
  100% { transform: translate(6vw, 5vh) scale(1.15) rotate(10deg); }
}
@keyframes auroraMove2 {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); }
  100% { transform: translate(-5vw, -6vh) scale(1.10) rotate(-8deg); }
}
@keyframes auroraMove3 {
  0%   { transform: scale(1) rotate(0deg); opacity: 0.5; }
  100% { transform: scale(1.35) rotate(18deg); opacity: 1; }
}

/* ============================================================
   GLASSMORPHISM BASE
   ============================================================ */
.glass {
  background: var(--panel);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.02; letter-spacing: -0.035em;
  background: linear-gradient(135deg,
    #ffffff 0%,
    #a8d4ff 35%,
    var(--primary) 55%,
    var(--accent) 80%,
    #f472b6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 40px rgba(92,184,255,0.25));
}
.section-text { color: var(--muted); line-height: 1.85; font-size: 1rem; max-width: 62ch; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--primary-dim); color: var(--primary);
  border: 1px solid rgba(92,184,255,0.22); white-space: nowrap;
  box-shadow: 0 0 12px rgba(92,184,255,0.08);
}
.badge-soft { background: var(--accent-dim); color: var(--accent); border-color: rgba(168,85,247,0.22); box-shadow: 0 0 12px rgba(168,85,247,0.08); }
.badge-gold { background: rgba(251,191,36,0.10); color: var(--gold); border-color: rgba(251,191,36,0.22); }

/* ============================================================
   HEADER – PREMIUM GLASSMORPHISM
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 3000; height: var(--header-h);
  background: var(--glass-header);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 0 rgba(92,184,255,0.05), 0 10px 40px rgba(0,0,0,0.45);
}
.site-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(92,184,255,0.3) 30%, rgba(168,85,247,0.3) 70%, transparent 100%);
  pointer-events: none;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; transition: opacity var(--transition-fast); }
.brand:hover { opacity: 0.88; }
.brand-logo {
  height: 38px; width: auto;
  filter: drop-shadow(0 0 12px rgba(92,184,255,0.30));
  transition: filter var(--transition-med);
}
.brand:hover .brand-logo { filter: drop-shadow(0 0 22px rgba(92,184,255,0.55)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-overline { font-size: 0.58rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.brand-copy strong {
  font-size: 0.92rem; font-weight: 800; letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--text), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.site-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: var(--radius-sm); color: var(--muted);
  font-size: 0.80rem; font-weight: 500;
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer; border: none; background: none; white-space: nowrap; position: relative;
}
.nav-link:hover { color: var(--text); background: var(--white-soft); }
.nav-link.is-active { color: var(--primary); }
.nav-link.is-active::after {
  content: ''; position: absolute; bottom: -1px; left: 10px; right: 10px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary), 0 0 20px rgba(92,184,255,0.3);
}
.nav-label { display: flex; align-items: center; gap: 6px; }
.nav-icon { width: 14px; height: 14px; flex-shrink: 0; fill: currentColor; display: flex; align-items: center; }
.nav-icon svg { width: 14px; height: 14px; fill: currentColor; }

.nav-dropdown { position: relative; }
.nav-dropdown-label { display: flex; align-items: center; gap: 6px; }
.nav-dropdown-icon { width: 14px; height: 14px; fill: currentColor; display: flex; align-items: center; }
.nav-dropdown-icon svg { width: 14px; height: 14px; fill: currentColor; }
.chevron { font-size: 9px; margin-left: 2px; transition: transform 0.28s var(--ease-out); display: inline-block; }
.nav-dropdown.open .chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 0; min-width: 230px;
  background: rgba(4, 8, 24, 0.95);
  backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 8px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(92,184,255,0.04), 0 0 40px rgba(92,184,255,0.06);
  opacity: 0; visibility: hidden; transform: translateY(-12px) scale(0.95);
  transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out), visibility 0.24s;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px;
  border-radius: var(--radius-sm); color: var(--muted); font-size: 0.80rem;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-dropdown-menu a:hover { color: var(--text); background: var(--white-soft); }
.nav-dropdown-menu a.is-active { color: var(--primary); background: var(--primary-dim); }
.nav-dropdown-menu .nav-icon { width: 13px; height: 13px; }
.nav-dropdown-menu .nav-icon svg { width: 13px; height: 13px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: none; border: none; cursor: pointer; border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.nav-toggle:hover { background: var(--white-soft); }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--muted); border-radius: 2px;
  transition: transform 0.32s var(--ease-spring), opacity 0.2s, background 0.2s; transform-origin: center;
}
.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--text); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: var(--text); }

/* ============================================================
   PASSWORD GATE – PREMIUM WOW
   ============================================================ */
.password-gate {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(10,20,60,0.95) 0%, rgba(0,0,8,0.97) 100%);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: opacity 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}
.password-gate.is-exit { opacity: 0; filter: blur(30px); pointer-events: none; }

.password-card {
  width: 100%; max-width: 440px; border-radius: var(--radius-xl);
  padding: 52px 44px 44px; text-align: center;
  position: relative; overflow: hidden;
  animation: gateIn 0.7s var(--ease-spring);
  background: rgba(5, 10, 30, 0.90);
  border: 1px solid rgba(92,184,255,0.18);
  box-shadow:
    0 0 0 1px rgba(92,184,255,0.06),
    0 30px 120px rgba(0,0,0,0.80),
    0 0 100px rgba(92,184,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}

/* Shimmer top bar */
.password-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--primary) 25%,
    var(--accent) 50%,
    var(--accent2) 75%,
    transparent 100%);
  background-size: 300% 100%;
  animation: shimmerBar 2.5s linear infinite;
  box-shadow: 0 0 20px rgba(92,184,255,0.5);
}

/* Glow orb top */
.password-card::after {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 340px; height: 240px;
  background: radial-gradient(ellipse, rgba(92,184,255,0.10) 0%, rgba(168,85,247,0.06) 50%, transparent 70%);
  pointer-events: none; animation: orbPulse 5s ease-in-out infinite;
}

@keyframes gateIn {
  from { opacity: 0; transform: translateY(50px) scale(0.92); filter: blur(12px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes shimmerBar {
  0%   { background-position: 300% 0; }
  100% { background-position: -300% 0; }
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.password-brand {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 14px; margin-bottom: 30px; flex-wrap: nowrap;
}
.password-logo {
  height: 48px; width: auto; flex-shrink: 0;
  filter: drop-shadow(0 0 20px rgba(92,184,255,0.40));
  animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(92,184,255,0.40)); }
  50%       { filter: drop-shadow(0 0 32px rgba(92,184,255,0.70)); }
}
.password-brand h1 {
  font-size: 0.88rem; font-weight: 800;
  color: var(--text); -webkit-text-fill-color: var(--text);
  background: none; text-align: left; line-height: 1.35;
}
.password-brand .eyebrow { margin-bottom: 5px; }
.password-text { color: var(--muted); font-size: 0.86rem; margin-bottom: 30px; line-height: 1.7; }

.password-form { display: flex; flex-direction: column; gap: 14px; }
.password-form input {
  width: 100%; padding: 16px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(92,184,255,0.20);
  border-radius: var(--radius-md); color: var(--text); font-size: 1.15rem;
  outline: none; text-align: center; letter-spacing: 0.35em;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}
.password-form input:focus {
  border-color: var(--primary);
  background: rgba(92,184,255,0.06);
  box-shadow: 0 0 0 3px rgba(92,184,255,0.14), 0 0 30px rgba(92,184,255,0.10);
}
.password-message { min-height: 20px; font-size: 0.80rem; margin-top: 6px; }
.password-message.is-error { color: #ff6b6b; }
.password-message.is-success { color: #4ade80; }
.password-note { font-size: 0.68rem; color: var(--muted); margin-top: 26px; opacity: 0.50; line-height: 1.65; }
.password-gate.is-success .password-card {
  border-color: rgba(74,222,128,0.35);
  box-shadow: 0 30px 120px rgba(0,0,0,0.80), 0 0 80px rgba(74,222,128,0.12);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-md);
  font-size: 0.84rem; font-weight: 700; letter-spacing: 0.03em;
  cursor: pointer; border: none;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s, opacity 0.2s;
  text-decoration: none; white-space: nowrap; position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  opacity: 0; transition: opacity 0.22s;
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary) 60%, rgba(168,85,247,0.6) 100%);
  color: #000a1a;
  box-shadow: 0 4px 24px rgba(92,184,255,0.35), 0 0 0 1px rgba(92,184,255,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(92,184,255,0.50), 0 0 0 1px rgba(92,184,255,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-ghost {
  background: var(--white-soft); color: var(--text-secondary);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--white-card); border-color: var(--line-glow); color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.page-hero { padding: 64px 0 48px; position: relative; }
.page-hero--compact { padding: 52px 0 36px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

/* ============================================================
   NOTICE CARDS
   ============================================================ */
.section-soft { padding: 0; }
.featured-notices { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; padding: 40px 0 0; }

.home-section-block { padding-top: 10px; }
.featured-notices--top { padding-top: 22px; }
.home-section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
.home-section-heading-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(92,184,255,0.35) 12%, rgba(168,85,247,0.38) 50%, rgba(92,184,255,0.35) 88%, transparent 100%);
  box-shadow: 0 0 14px rgba(92,184,255,0.16);
}
.home-section-heading-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.home-section-heading-copy .eyebrow { margin-bottom: 10px; }
.home-section-heading-copy h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.portal-card-topline {
  min-height: 20px;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.portal-mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(168,85,247,0.2);
  background: rgba(168,85,247,0.08);
}

.notice-card {
  border-radius: var(--radius-lg); padding: 26px 28px;
  position: relative; overflow: hidden;
  background: rgba(6, 12, 36, 0.75);
  backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}
.notice-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent2));
  box-shadow: 0 0 16px var(--primary);
}
.notice-card::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(92,184,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.notice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(92,184,255,0.10);
  border-color: var(--line-strong);
}
.notice-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.notice-head-left { display: flex; align-items: center; gap: 10px; }
.notice-icon { font-size: 1.3rem; }
.notice-icon--svg { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--primary); }
.notice-icon--svg svg { width: 22px; height: 22px; fill: currentColor; }
.notice-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.notice-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.75; }

/* ============================================================
   PORTAL CARDS – ULTRA PREMIUM WOW
   ============================================================ */
.quick-links { padding: 36px 0 90px; }
.quick-links--only { padding-top: 28px; }
.card-grid { display: grid; gap: 18px; }
.card-grid--primary { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

.portal-card {
  display: flex; align-items: center; gap: 22px; padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(6, 12, 36, 0.70);
  backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04);
  text-decoration: none; color: var(--text);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background var(--transition-med);
  position: relative; overflow: hidden; cursor: pointer;
}

/* Gradient overlay on hover */
.portal-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(92,184,255,0.07) 0%,
    rgba(168,85,247,0.05) 100%);
  opacity: 0; transition: opacity var(--transition-med);
}

/* Inner glow border on hover */
.portal-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(92,184,255,0.30);
  opacity: 0; transition: opacity var(--transition-med);
}

.portal-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(92,184,255,0.12), 0 0 80px rgba(168,85,247,0.06);
  border-color: rgba(92,184,255,0.25);
  background: rgba(8, 16, 48, 0.85);
}
.portal-card:hover::before { opacity: 1; }
.portal-card:hover::after { opacity: 1; }

/* Portal icon */
.portal-icon {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: var(--radius-md);
  background: var(--primary-dim);
  border: 1px solid rgba(92,184,255,0.20);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-med), box-shadow var(--transition-med), transform var(--transition-med);
  position: relative; overflow: hidden;
}
.portal-icon::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 60%);
}
.portal-icon svg { width: 22px; height: 22px; fill: var(--primary); position: relative; z-index: 1; }
.portal-card:hover .portal-icon {
  background: rgba(92,184,255,0.20);
  box-shadow: 0 0 30px rgba(92,184,255,0.30), 0 0 60px rgba(92,184,255,0.10);
  transform: scale(1.10) rotate(-4deg);
}

.portal-card-body { flex: 1; min-width: 0; }
.portal-card-body h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.portal-card-body p { font-size: 0.77rem; color: var(--muted); line-height: 1.6; }
.card-arrow {
  font-size: 1.1rem; color: var(--muted);
  transition: transform 0.22s var(--ease-spring), color 0.22s;
  flex-shrink: 0;
}
.portal-card:hover .card-arrow { transform: translateX(6px); color: var(--primary); }

/* ============================================================
   INNER PAGE SECTIONS
   ============================================================ */
.section { padding: 36px 0 90px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.full-span { grid-column: 1 / -1; }

.content-card {
  background: rgba(5, 10, 28, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 32px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: box-shadow var(--transition-med), border-color var(--transition-med);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.content-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(92,184,255,0.5) 30%,
    rgba(168,85,247,0.5) 70%,
    transparent 100%);
}
.content-card:hover {
  box-shadow: var(--shadow-lg), 0 0 50px rgba(92,184,255,0.08);
  border-color: var(--line-strong);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.card-head h2 { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.3; }

/* ---- TIMELINE ---- */
.timeline-list { display: flex; flex-direction: column; }
.timeline-item {
  display: grid; grid-template-columns: 130px 1fr; gap: 0 28px; padding: 20px 0;
  border-bottom: 1px solid var(--line); position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item::before {
  content: ''; position: absolute; left: 138px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary), 0 0 24px rgba(92,184,255,0.40);
  animation: dotPulse 3s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 10px var(--primary), 0 0 20px rgba(92,184,255,0.35); }
  50%       { box-shadow: 0 0 18px var(--primary), 0 0 36px rgba(92,184,255,0.55); }
}
.timeline-date { font-size: 0.70rem; font-weight: 700; color: var(--primary); padding-top: 2px; line-height: 1.55; }
.timeline-item h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.timeline-item p { font-size: 0.79rem; color: var(--muted); line-height: 1.7; }

/* ---- LIST ---- */
.clean-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.clean-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border-radius: var(--radius-sm); font-size: 0.84rem; color: var(--muted); line-height: 1.65;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.clean-list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0; margin-top: 7px;
  box-shadow: 0 0 8px var(--accent);
}
.clean-list li:hover { background: var(--white-soft); color: var(--text); }
.clean-list-item::before { display: none; }
.clean-list-link {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  color: inherit; text-decoration: none;
}
.list-item-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(92,184,255,0.10); border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.list-item-icon svg { width: 17px; height: 17px; fill: var(--primary); }
.list-item-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-item-title { font-weight: 800; color: var(--text); line-height: 1.45; }
.list-item-text { color: var(--muted); line-height: 1.6; }
.clean-list-item--link:hover .list-item-title,
.clean-list-item--link:hover .list-item-text { color: var(--text); }

.timeline-text { white-space: pre-line; }
.list-item-text { white-space: pre-line; line-height: 1.75; }
.clean-list-item { align-items: flex-start; }
.clean-list-item .list-item-content { display: flex; flex-direction: column; gap: 6px; }
.clean-list-item .list-item-title { font-size: 0.92rem; font-weight: 800; color: var(--text); }
.clean-list-item .list-item-text { font-size: 0.84rem; color: var(--muted); }
body[data-page="godisnji-ispiti"] .two-col { grid-template-columns: 1fr; }
body[data-page="godisnji-ispiti"] .content-card { width: 100%; }
body[data-page="godisnji-ispiti"] .timeline-item { grid-template-columns: minmax(170px, 220px) 1fr; gap: 26px; }
body[data-page="godisnji-ispiti"] .clean-list { gap: 10px; }
body[data-page="godisnji-ispiti"] .clean-list-item { padding: 18px 18px 18px 44px; }
body[data-page="godisnji-ispiti"] .clean-list li::before { top: 24px; }

/* ---- CARDS GRID ---- */
.grid-stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.info-card {
  border-radius: var(--radius-md); padding: 22px;
  background: rgba(6, 12, 36, 0.70);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow), 0 0 24px rgba(92,184,255,0.10);
  border-color: var(--line-strong);
}
.info-card h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.info-card p { font-size: 0.77rem; color: var(--muted); line-height: 1.65; }

/* ---- FEATURE CARD ---- */
.content-card--feature .feature-icon { margin-bottom: 22px; width: 58px; height: 58px; }
.content-card--feature .feature-icon svg { width: 26px; height: 26px; fill: var(--primary); }
.feature-cta { margin-top: 24px; }
.feature-image-wrap { margin: 24px 0; }
.feature-image { max-width: 220px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }

/* ---- PEOPLE LIST ---- */
.people-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.people-list li {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 16px;
  border-radius: var(--radius-sm); border-bottom: 1px solid var(--line);
  transition: background var(--transition-fast);
}
.people-list li:last-child { border-bottom: none; }
.people-list li:hover { background: var(--white-soft); }
.people-list strong { font-size: 0.76rem; color: var(--muted); font-weight: 500; }
.people-list span { font-size: 0.88rem; color: var(--text); font-weight: 600; }

/* ---- ACCORDION ---- */
.accordion-list { display: flex; flex-direction: column; gap: 8px; }
.accordion-item {
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
  background: rgba(255,255,255,0.018);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.accordion-item.is-open {
  border-color: rgba(92,184,255,0.28);
  box-shadow: 0 4px 28px rgba(0,0,0,0.40), 0 0 24px rgba(92,184,255,0.08);
}
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 17px 20px; background: none; border: none; cursor: pointer;
  color: var(--text); text-align: left; transition: background var(--transition-fast);
}
.accordion-trigger:hover { background: var(--white-soft); }
.accordion-title { font-size: 0.87rem; font-weight: 600; flex: 1; }
.accordion-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.accordion-date { font-size: 0.70rem; color: var(--muted); }
.accordion-chevron { font-size: 10px; color: var(--muted); transition: transform 0.28s var(--ease-out); }
.accordion-item.is-open .accordion-chevron { transform: rotate(180deg); }
.accordion-panel { padding: 0 20px 20px; }
.accordion-panel-inner { padding-top: 16px; border-top: 1px solid var(--line); }
.accordion-panel-inner p { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.accordion-link { font-size: 0.82rem; padding: 9px 18px; }

.badge-audience { display: inline-flex; padding: 2px 9px; border-radius: 12px; font-size: 0.60rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.badge-audience--staff { background: var(--primary-dim); color: var(--primary); }
.badge-audience--students { background: var(--accent-dim); color: var(--accent); }
.badge-audience--trip { background: rgba(251,191,36,0.10); color: var(--gold); }
.badge-audience--social { background: rgba(6,214,160,0.10); color: var(--accent3); }


/* ---- EXAM ACCORDION ---- */
.exam-accordion-list { gap: 14px; }
.exam-accordion-item {
  background: rgba(7, 14, 36, 0.84);
}
.exam-accordion-trigger {
  align-items: flex-start;
  padding: 22px 24px;
}
.exam-accordion-main {
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr;
  gap: 22px;
  flex: 1;
  min-width: 0;
}
.exam-accordion-date {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.6;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.exam-accordion-copy {
  min-width: 0;
}
.exam-accordion-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.exam-accordion-text {
  display: block;
  white-space: pre-line;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}
.exam-accordion-meta {
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: flex-start;
}
.exam-badge {
  white-space: nowrap;
}
.exam-accordion-panel {
  padding: 0 24px 24px;
}
.exam-accordion-panel-inner {
  padding-top: 18px;
}
.exam-commission-heading {
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 14px;
}
.exam-commission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.exam-commission-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.exam-commission-card h4 {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.exam-commission-card p {
  font-size: 0.84rem;
  line-height: 1.72;
  color: var(--muted);
  white-space: pre-line;
  margin: 0;
}
body[data-page="godisnji-ispiti"] .content-card {
  padding: 28px;
}
body[data-page="godisnji-ispiti"] .card-head {
  margin-bottom: 18px;
}

/* ---- DOWNLOAD LINK ---- */
.download-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 22px;
  border-radius: var(--radius-sm); background: var(--white-soft); border: 1px solid var(--line);
  color: var(--primary); font-size: 0.82rem; font-weight: 600;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform 0.22s, box-shadow 0.22s;
}
.download-link:hover {
  background: var(--primary-dim); border-color: rgba(92,184,255,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(92,184,255,0.15);
}
.download-link-icon { width: 17px; height: 17px; fill: currentColor; display: flex; }
.download-link-icon svg { width: 17px; height: 17px; fill: currentColor; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line); padding: 34px 0; margin-top: auto;
  background: rgba(2, 4, 14, 0.98); position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(92,184,255,0.35) 30%,
    rgba(168,85,247,0.35) 70%,
    transparent 100%);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer strong { font-size: 0.88rem; font-weight: 800; color: var(--text); display: block; margin-bottom: 3px; }
.site-footer p { font-size: 0.75rem; color: var(--muted); }
.footer-meta { font-size: 0.70rem; color: var(--muted); text-align: right; line-height: 1.75; }

/* ============================================================
   REVEAL ANIMATIONS – PREMIUM
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ============================================================
   INSTALL BANNER
   ============================================================ */
#installBanner {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(150px);
  background: rgba(5, 10, 30, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 15px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(92,184,255,0.10);
  z-index: 400; transition: transform 0.55s var(--ease-spring);
  max-width: calc(100vw - 48px);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
}
#installBanner.show { transform: translateX(-50%) translateY(0); }
.install-text strong { display: block; font-size: 0.84rem; color: var(--text); font-weight: 700; }
.install-text span { font-size: 0.70rem; color: var(--muted); }
.install-dismiss {
  background: none; border: none; color: var(--muted); font-size: 1rem;
  cursor: pointer; padding: 5px 8px; border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.install-dismiss:hover { color: var(--text); background: var(--white-soft); }

/* ============================================================
   SCROLLBAR + SELECTION
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(92,184,255,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(92,184,255,0.45); }
::selection { background: rgba(92,184,255,0.22); color: var(--text); }

/* ============================================================
   PORTAL CARD – COLORED VARIANTS (WOW)
   ============================================================ */
.portal-card:nth-child(1) .portal-icon { background: rgba(92,184,255,0.12); border-color: rgba(92,184,255,0.25); }
.portal-card:nth-child(1) .portal-icon svg { fill: #5cb8ff; }
.portal-card:nth-child(1):hover { box-shadow: var(--shadow-lg), 0 0 60px rgba(92,184,255,0.15); }

.portal-card:nth-child(2) .portal-icon { background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.25); }
.portal-card:nth-child(2) .portal-icon svg { fill: #a855f7; }
.portal-card:nth-child(2):hover { box-shadow: var(--shadow-lg), 0 0 60px rgba(168,85,247,0.15); }

.portal-card:nth-child(3) .portal-icon { background: rgba(6,214,160,0.12); border-color: rgba(6,214,160,0.25); }
.portal-card:nth-child(3) .portal-icon svg { fill: #06d6a0; }
.portal-card:nth-child(3):hover { box-shadow: var(--shadow-lg), 0 0 60px rgba(6,214,160,0.15); }

.portal-card:nth-child(4) .portal-icon { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.25); }
.portal-card:nth-child(4) .portal-icon svg { fill: #fbbf24; }
.portal-card:nth-child(4):hover { box-shadow: var(--shadow-lg), 0 0 60px rgba(251,191,36,0.15); }

.portal-card:nth-child(5) .portal-icon { background: rgba(244,114,182,0.12); border-color: rgba(244,114,182,0.25); }
.portal-card:nth-child(5) .portal-icon svg { fill: #f472b6; }
.portal-card:nth-child(5):hover { box-shadow: var(--shadow-lg), 0 0 60px rgba(244,114,182,0.15); }

.portal-card:nth-child(6) .portal-icon { background: rgba(251,146,60,0.12); border-color: rgba(251,146,60,0.25); }
.portal-card:nth-child(6) .portal-icon svg { fill: #fb923c; }
.portal-card:nth-child(6):hover { box-shadow: var(--shadow-lg), 0 0 60px rgba(251,146,60,0.15); }

/* ============================================================
   HOMEPAGE HERO SECTION
   ============================================================ */
.home-hero {
  padding: 60px 0 20px;
  text-align: center;
  position: relative;
}
.home-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 0%, #a8d4ff 30%, var(--primary) 55%, var(--accent) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 30px rgba(92,184,255,0.20));
}
.home-hero-sub {
  color: var(--muted); font-size: 0.95rem; line-height: 1.7;
  max-width: 50ch; margin: 0 auto;
}

/* ============================================================
   NOTICE CARDS – COLORED VARIANTS
   ============================================================ */
.notice-card:nth-child(1)::before {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 20px rgba(92,184,255,0.4);
}
.notice-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 20px rgba(168,85,247,0.4);
}
.notice-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--accent3), var(--primary));
  box-shadow: 0 0 20px rgba(6,214,160,0.4);
}

/* ============================================================
   SPECIAL GLOW EFFECT FOR ACTIVE NAV
   ============================================================ */
.nav-link.is-active {
  text-shadow: 0 0 20px rgba(92,184,255,0.5);
}

/* ============================================================
   CONTENT CARD – GRADIENT ACCENT COLORS
   ============================================================ */
.content-card:nth-child(1)::before {
  background: linear-gradient(90deg, transparent 0%, rgba(92,184,255,0.6) 40%, rgba(168,85,247,0.6) 70%, transparent 100%);
}
.content-card:nth-child(2)::before {
  background: linear-gradient(90deg, transparent 0%, rgba(168,85,247,0.6) 40%, rgba(244,114,182,0.6) 70%, transparent 100%);
}

/* ============================================================
   FLOATING PARTICLES ANIMATION
   ============================================================ */
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50%  { opacity: 1; }
  100% { transform: translateY(-40px) rotate(180deg); opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .site-header { z-index: 10001; }
  .nav-toggle { display: flex; position: relative; z-index: 10002; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px) 16px 32px;
    background: rgba(12, 19, 39, 0.998);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    transform: translate3d(0, -110%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.34s var(--ease-out), opacity 0.24s var(--ease-out), visibility 0.24s var(--ease-out);
    z-index: 10000;
    border-top: none;
    box-shadow: 0 24px 80px rgba(0,0,0,0.68);
    overscroll-behavior: contain;
  }
  .nav-open .site-nav {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-open main,
  .nav-open .site-shell > *:not(.site-header) {
    pointer-events: none;
  }
  .nav-open .site-header,
  .nav-open .site-nav,
  .nav-open .nav-toggle {
    pointer-events: auto;
  }
  .nav-link { padding: 14px 16px; font-size: 0.94rem; border-radius: var(--radius-md); }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: var(--primary-dim); }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,0.06); border: 1px solid var(--line);
    margin: 6px 0 6px 16px; display: none;
    z-index: 10001;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .two-col { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 5px; }
  .timeline-item::before { display: none; }
  .exam-accordion-trigger { padding: 18px 16px; }
  .exam-accordion-main { grid-template-columns: 1fr; gap: 10px; }
  .exam-accordion-date { font-size: 0.76rem; }
  .exam-accordion-title { font-size: 0.95rem; }
  .exam-accordion-text { font-size: 0.88rem; line-height: 1.7; }
  .exam-accordion-meta { width: auto; }
  .exam-accordion-panel { padding: 0 16px 18px; }
  .exam-commission-grid { grid-template-columns: 1fr; }
  .card-grid--primary { grid-template-columns: 1fr; }
  .featured-notices { grid-template-columns: 1fr; }
  .password-card { padding: 38px 26px 30px; }
  .password-brand { flex-direction: column; gap: 12px; }
  .content-card { padding: 24px 20px; }
  .page-hero { padding: 44px 0 30px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  .brand-overline { display: none; }
  .section { padding: 26px 0 64px; }
}
@media (max-width: 480px) {
  .portal-card { padding: 20px; gap: 15px; }
  .portal-icon { width: 46px; height: 46px; }
  .portal-icon svg { width: 20px; height: 20px; }
  .section-head { flex-direction: column; }
  .container { width: calc(100% - 28px); }
  .page-hero h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
}


.timeline-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.timeline-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  body[data-page="godisnji-ispiti"] .content-card {
    padding: 18px 14px;
    border-radius: 22px;
  }
  .exam-accordion-trigger {
    gap: 10px;
  }
  .exam-accordion-date {
    font-size: 0.72rem;
    line-height: 1.5;
  }
  .exam-accordion-title {
    font-size: 0.92rem;
  }
  .exam-accordion-text {
    font-size: 0.84rem;
    line-height: 1.68;
  }
  .exam-badge {
    display: none;
  }
  .exam-commission-card {
    padding: 14px;
  }
}



/* ============================================================
   FILIP FINAL POLISH – PREČACI, MODALI, PRODUKCIJE
   ============================================================ */

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(99,102,241,0.22), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(14,165,233,0.18), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(168,85,247,0.14), transparent 38%),
    linear-gradient(135deg, #050816 0%, #0b1026 42%, #111827 100%) !important;
}

.home-hero--tight {
  padding-bottom: 22px;
}

.home-hero--tight .home-hero-title {
  margin-bottom: 8px;
}

.home-hero--tight .home-hero-sub {
  margin-bottom: 20px;
}

.mini-shortcut-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 22px auto 0;
  max-width: 1040px;
}

.mini-shortcut {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.045));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  text-align: center;
  color: var(--text);
  font-weight: 750;
  font-size: 0.84rem;
  line-height: 1.22;
  transition: transform .22s var(--ease-out), border-color .22s var(--ease-out), background .22s var(--ease-out);
}

.mini-shortcut:hover {
  transform: translateY(-3px);
  border-color: rgba(92,184,255,0.42);
  background: linear-gradient(180deg, rgba(92,184,255,0.17), rgba(168,85,247,0.08));
}

.mini-shortcut-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(92,184,255,0.24), rgba(168,85,247,0.20));
  border: 1px solid rgba(255,255,255,0.12);
}

.mini-shortcut-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.home-section-block--compact {
  padding-top: 24px;
  padding-bottom: 24px;
}

.compact-notice-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

.compact-notice-row {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255,255,255,0.055);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 14px 38px rgba(0,0,0,0.22);
  transition: transform .2s var(--ease-out), border-color .2s var(--ease-out), background .2s var(--ease-out);
}

.compact-notice-row:hover {
  transform: translateY(-2px);
  border-color: rgba(92,184,255,0.36);
  background: rgba(255,255,255,0.085);
}

.compact-notice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(92,184,255,0.13);
  border: 1px solid rgba(92,184,255,0.18);
  color: #dff4ff;
}

.compact-notice-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.compact-notice-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.compact-notice-date {
  color: var(--primary);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.compact-notice-title {
  font-size: .98rem;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-notice-more {
  color: var(--text-secondary);
  font-size: .78rem;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.portal-modal[hidden] {
  display: none;
}

.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.portal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,8,0.72);
  backdrop-filter: blur(14px);
}

.portal-modal-card {
  position: relative;
  width: min(640px, 100%);
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(8,13,31,0.98));
  border: 1px solid rgba(148,163,184,0.22);
  box-shadow: 0 30px 120px rgba(0,0,0,0.75);
  color: var(--text);
  animation: modalPop .22s var(--ease-out);
}

.portal-modal-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.portal-modal-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  white-space: pre-line;
}

.portal-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  font-size: 1.5rem;
  line-height: 1;
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.content-card.full-span .grid-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card.full-span .info-card {
  min-height: 130px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(92,184,255,0.11), rgba(168,85,247,0.055));
  border: 1px solid rgba(148,163,184,0.16);
}

.content-card--feature.full-span {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.content-card--feature.full-span .card-head,
.content-card--feature.full-span p {
  margin: 0;
}

.content-card--feature.full-span .feature-cta {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .mini-shortcut-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-card.full-span .grid-stack {
    grid-template-columns: 1fr;
  }

  .content-card--feature.full-span {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .mini-shortcut-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mini-shortcut {
    min-height: 94px;
    font-size: .78rem;
    padding: 13px 8px;
  }

  .compact-notice-row {
    grid-template-columns: 40px 1fr;
  }

  .compact-notice-more {
    display: none;
  }

  .compact-notice-title {
    white-space: normal;
  }

  .portal-modal {
    padding: 14px;
  }

  .portal-modal-card {
    padding: 22px;
  }
}


/* ============================================================
   v1.7.0 – PREMIUM DARK MOTION REDESIGN
   - jači kontrast obavijesti/rokova
   - nova animirana tamna pozadina bez "svemirskog" dojma
   - redizajn top bara i navigacije
   ============================================================ */

:root {
  --header-h: 76px;
}

/* Premium animated "liquid glass" background */
body {
  background:
    radial-gradient(circle at 15% 10%, rgba(31, 95, 160, 0.28), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(104, 47, 146, 0.24), transparent 30%),
    linear-gradient(135deg, #050814 0%, #080d1d 36%, #0b1026 68%, #040612 100%) !important;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    conic-gradient(from 110deg at 28% 42%,
      transparent 0deg,
      rgba(34, 211, 238, 0.13) 42deg,
      rgba(99, 102, 241, 0.15) 96deg,
      transparent 156deg,
      rgba(168, 85, 247, 0.11) 218deg,
      transparent 300deg),
    radial-gradient(ellipse at 62% 52%, rgba(14, 165, 233, 0.11), transparent 38%);
  filter: blur(42px) saturate(145%);
  opacity: .82;
  animation: portalLiquidDrift 24s ease-in-out infinite alternate;
}

body::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(0,0,0,0.34) 100%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  mask-image: radial-gradient(circle at 50% 35%, black 0%, transparent 78%);
  opacity: .55;
  animation: portalGridFloat 18s linear infinite;
}

.aurora-layer,
.aurora-mid,
#cosmos-canvas {
  opacity: .18 !important;
  mix-blend-mode: screen;
}

@keyframes portalLiquidDrift {
  0% { transform: translate3d(-2%, -1%, 0) rotate(-4deg) scale(1.02); }
  50% { transform: translate3d(3%, 2%, 0) rotate(5deg) scale(1.08); }
  100% { transform: translate3d(-1%, 3%, 0) rotate(2deg) scale(1.05); }
}

@keyframes portalGridFloat {
  from { background-position: 0 0, 0 0, center; }
  to { background-position: 56px 56px, -56px 56px, center; }
}

/* Top bar: premium command bar */
.site-header {
  height: var(--header-h) !important;
  top: 12px !important;
  width: min(calc(100% - 28px), 1240px);
  margin: 0 auto;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(9, 17, 38, 0.82), rgba(15, 23, 55, 0.70)) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow:
    0 24px 70px rgba(0,0,0,0.48),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(92,184,255,0.04) !important;
  overflow: visible;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.10), transparent 32%, rgba(92,184,255,0.09) 64%, transparent);
  opacity: .75;
}

.site-header::after {
  height: 2px !important;
  left: 26px !important;
  right: 26px !important;
  bottom: -1px !important;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.78), rgba(168,85,247,.60), transparent) !important;
  filter: blur(.2px);
}

.header-inner {
  width: 100% !important;
  padding: 0 18px;
}

.brand {
  min-width: 240px;
  padding: 8px 10px 8px 6px;
  border-radius: 18px;
}

.brand-logo {
  height: 42px !important;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.28)) !important;
}

.brand-overline {
  color: rgba(203,213,225,.72) !important;
}

.brand-copy strong {
  font-size: 1rem !important;
  letter-spacing: .08em !important;
  background: linear-gradient(90deg, #fff, #b7ecff 45%, #d7c6ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.site-nav {
  gap: 7px !important;
  padding: 7px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-link {
  padding: 10px 14px !important;
  border-radius: 14px !important;
  color: rgba(226,232,240,.78) !important;
  font-weight: 760 !important;
  letter-spacing: .01em;
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid transparent !important;
}

.nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.085) !important;
  border-color: rgba(148,163,184,.16) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.nav-link.is-active {
  color: #e9fbff !important;
  background:
    linear-gradient(135deg, rgba(34,211,238,.18), rgba(168,85,247,.14)) !important;
  border-color: rgba(125,211,252,.24) !important;
  box-shadow:
    0 12px 34px rgba(14,165,233,.10),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.nav-link.is-active::after {
  display: none !important;
}

.nav-icon,
.nav-dropdown-icon {
  width: 16px !important;
  height: 16px !important;
  opacity: .95;
}

.nav-dropdown-menu {
  top: calc(100% + 12px) !important;
  min-width: 270px !important;
  padding: 10px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(8,13,31,.96), rgba(4,8,24,.97)) !important;
  border: 1px solid rgba(148,163,184,.18) !important;
  box-shadow: 0 26px 70px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.dropdown-link {
  border-radius: 15px !important;
  padding: 11px 12px !important;
}

.dropdown-link:hover {
  background: rgba(92,184,255,.10) !important;
}

/* Klikabilne obavijesti/rokovi – manje prozirno, čitljivije */
.compact-notice-row {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(10, 18, 38, 0.88)) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  box-shadow:
    0 16px 44px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.07) !important;
}

.compact-notice-row:hover {
  background:
    linear-gradient(135deg, rgba(20, 33, 61, 0.96), rgba(13, 26, 55, 0.94)) !important;
  border-color: rgba(125, 211, 252, 0.44) !important;
  box-shadow:
    0 20px 52px rgba(0,0,0,0.42),
    0 0 0 1px rgba(92,184,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.09) !important;
}

.compact-notice-icon {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.20), rgba(99, 102, 241, 0.16)) !important;
  border-color: rgba(125, 211, 252, 0.30) !important;
}

.compact-notice-more {
  background: rgba(15,23,42,.74) !important;
  border-color: rgba(148,163,184,.18) !important;
  color: rgba(226,232,240,.88) !important;
}

/* Mobile top bar */
@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .site-header {
    top: 8px !important;
    width: min(calc(100% - 16px), 1240px);
    border-radius: 20px;
  }

  .site-header::before { border-radius: 19px; }

  .brand {
    min-width: 0;
    padding-right: 4px;
  }

  .brand-logo {
    height: 38px !important;
  }

  .brand-copy strong {
    font-size: .88rem !important;
  }

  .brand-overline {
    display: none;
  }

  .nav-toggle {
    border-radius: 16px !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }

  .site-nav {
    top: calc(var(--header-h) + 22px) !important;
    border-radius: 24px !important;
    background:
      linear-gradient(180deg, rgba(8,13,31,.98), rgba(4,8,24,.98)) !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    box-shadow: 0 28px 80px rgba(0,0,0,.58) !important;
  }

  .nav-link {
    padding: 13px 14px !important;
    justify-content: flex-start !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
}


/* ============================================================
   v1.7.1 – FONT + NO-STARS ANIMATED BACKGROUND
   Tamni "liquid aurora / glass" look bez zvijezda
   ============================================================ */

/* Font polish: moderniji, čišći i ozbiljniji UI */
:root {
  --font-ui: "Aptos", "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Aptos Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --bg-deep-1: #030712;
  --bg-deep-2: #07111f;
  --bg-deep-3: #0a1024;
  --glass-strong: rgba(8, 13, 31, 0.78);
}

html {
  text-rendering: geometricPrecision;
}

body {
  font-family: var(--font-ui) !important;
  letter-spacing: -0.012em;
  background:
    linear-gradient(135deg, #020617 0%, #07101f 38%, #090d22 72%, #030712 100%) !important;
}

/* Zvijezde/canvas ostaju tehnički neaktivne u prikazu */
#cosmos-canvas {
  display: none !important;
}

/* Nova animirana pozadina: aurora, svila, dubina — bez točkica/zvijezda */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -24%;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(ellipse 70% 45% at 18% 22%, rgba(14, 165, 233, 0.30), transparent 58%),
    radial-gradient(ellipse 62% 44% at 84% 18%, rgba(124, 58, 237, 0.28), transparent 58%),
    radial-gradient(ellipse 58% 40% at 56% 78%, rgba(20, 184, 166, 0.15), transparent 58%),
    conic-gradient(from 210deg at 50% 50%,
      rgba(2, 6, 23, 0) 0deg,
      rgba(34, 211, 238, 0.14) 48deg,
      rgba(99, 102, 241, 0.13) 112deg,
      rgba(168, 85, 247, 0.15) 178deg,
      rgba(2, 6, 23, 0) 250deg,
      rgba(20, 184, 166, 0.10) 315deg,
      rgba(2, 6, 23, 0) 360deg);
  filter: blur(58px) saturate(138%);
  opacity: 0.86;
  transform-origin: center;
  animation: usfpAuroraSilk 30s ease-in-out infinite alternate;
}

body::after {
  inset: 0;
  background:
    linear-gradient(115deg,
      transparent 0%,
      rgba(255,255,255,0.035) 18%,
      transparent 34%,
      rgba(125,211,252,0.030) 52%,
      transparent 70%,
      rgba(216,180,254,0.026) 88%,
      transparent 100%),
    radial-gradient(circle at 50% 28%, transparent 0%, rgba(0,0,0,0.18) 52%, rgba(0,0,0,0.56) 100%);
  background-size: 220% 220%, 100% 100%;
  opacity: 0.78;
  animation: usfpGlassSweep 22s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

/* Dodatni "mesh" sloj ako postoji stara aurora struktura */
.aurora-layer {
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.aurora-layer::before,
.aurora-layer::after {
  border-radius: 999px;
  opacity: .64;
  filter: blur(74px) saturate(135%) !important;
}

.aurora-layer::before {
  width: 82vw !important;
  height: 64vh !important;
  top: -16vh !important;
  left: -12vw !important;
  background: radial-gradient(ellipse at center, rgba(34,211,238,.18), rgba(99,102,241,.10) 45%, transparent 70%) !important;
  animation: usfpBlobOne 26s ease-in-out infinite alternate !important;
}

.aurora-layer::after {
  width: 76vw !important;
  height: 58vh !important;
  right: -15vw !important;
  bottom: -12vh !important;
  background: radial-gradient(ellipse at center, rgba(168,85,247,.18), rgba(236,72,153,.08) 48%, transparent 72%) !important;
  animation: usfpBlobTwo 32s ease-in-out infinite alternate !important;
}

.aurora-mid {
  opacity: .72 !important;
  width: 62vw !important;
  height: 54vh !important;
  top: 30% !important;
  left: 18% !important;
  background: radial-gradient(ellipse at center, rgba(20,184,166,.10), rgba(14,165,233,.055) 50%, transparent 72%) !important;
  filter: blur(92px) !important;
  animation: usfpBlobThree 38s ease-in-out infinite alternate !important;
}

/* Typographic hierarchy */
h1, h2, h3, h4,
.page-title,
.section-title,
.hero-title,
.brand-copy strong,
.card-title,
.feature-card h3,
.notice-title,
.compact-notice-title {
  font-family: var(--font-display) !important;
  letter-spacing: -0.035em;
}

.page-title,
.hero-title {
  font-weight: 850 !important;
  line-height: .98 !important;
}

.section-title,
.card-title,
.feature-card h3,
.compact-notice-title {
  font-weight: 780 !important;
}

p,
.card-text,
.feature-card p,
.timeline-text,
.compact-notice-date,
.compact-notice-more {
  letter-spacing: -0.008em;
}

/* Glass surfaces malo ozbiljnije i manje "svemirski" */
.card,
.feature-card,
.section-card,
.panel,
.content-card,
.timeline-card,
.portal-modal-card {
  background:
    linear-gradient(145deg, rgba(15,23,42,0.82), rgba(8,13,31,0.74)) !important;
  border-color: rgba(148,163,184,0.18) !important;
  box-shadow:
    0 22px 68px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.065) !important;
}

/* Obavijesti ostaju jasne i manje transparentne */
.compact-notice-row {
  background:
    linear-gradient(135deg, rgba(17, 25, 44, 0.965), rgba(9, 18, 38, 0.945)) !important;
}

/* Header font i sjaj usklađen s novom pozadinom */
.site-header {
  background:
    linear-gradient(135deg, rgba(6, 13, 30, 0.88), rgba(11, 18, 42, 0.78)) !important;
}

.nav-link {
  font-weight: 720 !important;
  letter-spacing: -0.006em !important;
}

.brand-copy strong {
  font-weight: 860 !important;
}

/* Login pozadina također bez zvijezda */
.login-screen,
.password-screen {
  background:
    radial-gradient(ellipse at 20% 18%, rgba(14,165,233,.24), transparent 44%),
    radial-gradient(ellipse at 82% 22%, rgba(124,58,237,.22), transparent 42%),
    linear-gradient(135deg, #020617, #07101f 48%, #030712) !important;
}

/* Animacije */
@keyframes usfpAuroraSilk {
  0% {
    transform: translate3d(-2%, -2%, 0) rotate(-8deg) scale(1.02);
  }
  45% {
    transform: translate3d(3%, 1%, 0) rotate(5deg) scale(1.08);
  }
  100% {
    transform: translate3d(-1%, 4%, 0) rotate(10deg) scale(1.05);
  }
}

@keyframes usfpGlassSweep {
  0% { background-position: 0% 42%, center; opacity: .56; }
  55% { background-position: 72% 50%, center; opacity: .82; }
  100% { background-position: 100% 58%, center; opacity: .66; }
}

@keyframes usfpBlobOne {
  0% { transform: translate3d(-3%, -2%, 0) rotate(-8deg) scale(1); }
  100% { transform: translate3d(8%, 5%, 0) rotate(8deg) scale(1.15); }
}

@keyframes usfpBlobTwo {
  0% { transform: translate3d(4%, 3%, 0) rotate(8deg) scale(1.04); }
  100% { transform: translate3d(-8%, -4%, 0) rotate(-10deg) scale(1.16); }
}

@keyframes usfpBlobThree {
  0% { transform: translate3d(-4%, 5%, 0) scale(1); }
  100% { transform: translate3d(5%, -5%, 0) scale(1.22); }
}

@media (max-width: 860px) {
  body::before {
    filter: blur(48px) saturate(132%);
    opacity: .78;
  }

  body::after {
    opacity: .62;
  }

  .page-title,
  .hero-title {
    letter-spacing: -0.045em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .aurora-layer::before,
  .aurora-layer::after,
  .aurora-mid {
    animation: none !important;
  }
}

/* v1.8.2 final override - mora biti zadnji sloj */
:root {
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 8px;
  --bg: #07100d;
  --theme-color: #07100d;
  --text: #fbfff9;
  --muted: #a9b5a5;
  --primary: #8bd450;
  --primary-strong: #c8ff6a;
  --accent: #ff8a5b;
  --accent-2: #48d7c2;
  --line: rgba(235, 246, 225, .14);
}

body {
  background: linear-gradient(125deg, #07100d 0%, #102017 36%, #1b2116 66%, #160f0b 100%) !important;
}

body::before,
body::after,
.aurora-layer,
.aurora-mid,
#cosmos-canvas {
  display: none !important;
}

.site-header {
  top: 0 !important;
  width: 100% !important;
  height: 72px !important;
  border-radius: 0 !important;
  background: rgba(7, 16, 13, .94) !important;
  border-bottom: 1px solid rgba(235,246,225,.12) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.26) !important;
}

.site-header::before,
.site-header::after {
  display: none !important;
}

.brand,
.site-nav,
.nav-link,
.nav-dropdown-menu,
.content-card,
.portal-card,
.mini-shortcut,
.compact-notice-row,
.password-card,
.portal-modal-card,
.info-card,
.accordion-item,
.feature-image-wrap,
.tutorial-card,
.editor-guide-step {
  border-radius: 8px !important;
}

.nav-link.is-active,
.compact-notice-more,
.btn-primary {
  background: #c8ff6a !important;
  color: #12200d !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.home-hero-title,
.page-hero h1 {
  color: #fbfff9 !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
}

.portal-command-hero .container {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: end;
}

.portal-command-hero .eyebrow,
.portal-command-hero .home-hero-title,
.portal-command-hero .home-hero-sub {
  grid-column: 1;
  text-align: left !important;
  justify-content: flex-start !important;
}

.portal-command-hero .mini-shortcut-rail {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin-top: 0 !important;
}

.content-card,
.portal-card,
.mini-shortcut,
.compact-notice-row,
.info-card,
.accordion-item {
  background: rgba(16, 27, 22, .90) !important;
  border: 1px solid rgba(235,246,225,.12) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.24) !important;
}

.mini-shortcut-rail {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.mini-shortcut {
  min-height: 86px;
  padding: 16px !important;
  justify-content: flex-start !important;
  font-weight: 820 !important;
}

.mini-shortcut-icon,
.compact-notice-icon,
.portal-icon {
  background: rgba(200,255,106,.12) !important;
  border: 1px solid rgba(200,255,106,.20) !important;
  color: #dfff9a !important;
}

.editor-guide-grid,
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.editor-guide-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(235,246,225,.12);
}

.editor-guide-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #12200d;
  background: #ff8a5b;
  font-weight: 900;
}

.editor-guide-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.editor-guide-step p,
.tutorial-copy p {
  color: rgba(251,255,249,.72);
  line-height: 1.65;
}

body[data-page="tutoriali"] .two-col {
  grid-template-columns: 1fr !important;
}

.content-card--tutorials {
  padding: 22px !important;
}

.tutorial-card {
  overflow: hidden;
  background: rgba(7, 16, 13, .82);
  border: 1px solid rgba(235,246,225,.12);
}

.tutorial-video {
  aspect-ratio: 16 / 9;
  background: #050806;
}

.tutorial-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tutorial-copy {
  padding: 18px;
}

.tutorial-copy h3 {
  margin-top: 14px;
  font-size: 1.15rem;
  line-height: 1.18;
}

.tutorial-steps {
  margin: 14px 0 0 18px;
  color: rgba(251,255,249,.78);
  font-size: .9rem;
  line-height: 1.7;
}

.tutorial-open-link {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .portal-command-hero .container,
  .editor-guide-grid,
  .tutorial-grid {
    grid-template-columns: 1fr !important;
  }

  .portal-command-hero .mini-shortcut-rail {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
  }

  .site-nav {
    top: 76px !important;
    border-radius: 8px !important;
  }

  .mini-shortcut-rail {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   v1.8.2 - DJELATNIK CONTROL ROOM REDESIGN
   Pregledniji backend portal + YouTube tutoriali
   ============================================================ */

:root {
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 8px;
  --bg: #07100d;
  --theme-color: #07100d;
  --text: #fbfff9;
  --text-secondary: #d7e0d4;
  --muted: #a9b5a5;
  --primary: #8bd450;
  --primary-strong: #c8ff6a;
  --accent: #ff8a5b;
  --accent-2: #48d7c2;
  --gold: #ffd166;
  --line: rgba(235, 246, 225, .14);
  --line-strong: rgba(235, 246, 225, .24);
  --glass-header: rgba(7, 16, 13, .88);
  --white-soft: rgba(255,255,255,.07);
  --surface-1: rgba(16, 27, 22, .86);
  --surface-2: rgba(23, 35, 29, .88);
  --surface-3: rgba(36, 43, 32, .88);
}

body {
  background:
    linear-gradient(125deg, #07100d 0%, #102017 36%, #1b2116 66%, #160f0b 100%) !important;
  color: var(--text) !important;
}

body::before,
body::after,
.aurora-layer,
.aurora-mid,
#cosmos-canvas {
  display: none !important;
}

.site-header {
  top: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 72px !important;
  border-radius: 0 !important;
  background: rgba(7, 16, 13, .92) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(235,246,225,.12) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.26) !important;
}

.site-header::before,
.site-header::after {
  display: none !important;
}

.brand,
.site-nav,
.nav-link,
.nav-dropdown-menu,
.content-card,
.portal-card,
.mini-shortcut,
.compact-notice-row,
.password-card,
.portal-modal-card,
.info-card,
.accordion-item,
.feature-image-wrap {
  border-radius: 8px !important;
}

.site-nav {
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(235,246,225,.10) !important;
}

.nav-link.is-active {
  background: #c8ff6a !important;
  color: #12200d !important;
  border-color: transparent !important;
}

.nav-link:hover {
  background: rgba(255,255,255,.10) !important;
}

.home-hero,
.page-hero {
  padding-top: 56px !important;
}

.portal-command-hero {
  min-height: auto !important;
  text-align: left !important;
}

.portal-command-hero .container {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: end;
}

.portal-command-hero .eyebrow,
.portal-command-hero .home-hero-title,
.portal-command-hero .home-hero-sub {
  grid-column: 1;
  text-align: left !important;
  justify-content: flex-start !important;
  margin-left: 0 !important;
}

.portal-command-hero .mini-shortcut-rail {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin-top: 0 !important;
}

.home-hero-title,
.page-hero h1 {
  max-width: 680px;
  color: #fbfff9 !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  font-size: clamp(2.3rem, 7vw, 5.2rem) !important;
}

.home-hero-sub,
.section-text {
  color: rgba(251,255,249,.76) !important;
}

.eyebrow::before {
  background: var(--accent) !important;
  box-shadow: none !important;
}

.badge,
.badge-soft {
  background: rgba(200,255,106,.12) !important;
  border-color: rgba(200,255,106,.26) !important;
  color: #dfff9a !important;
  border-radius: 999px !important;
}

.content-card,
.portal-card,
.mini-shortcut,
.compact-notice-row,
.info-card,
.accordion-item {
  background: rgba(16, 27, 22, .88) !important;
  border: 1px solid rgba(235,246,225,.12) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.24) !important;
}

.content-card::before,
.portal-card::before,
.compact-notice-row::before {
  background: linear-gradient(90deg, #c8ff6a, #48d7c2, #ff8a5b) !important;
}

.mini-shortcut-rail {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.mini-shortcut {
  min-height: 86px;
  padding: 16px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  font-weight: 820 !important;
}

.mini-shortcut-icon,
.compact-notice-icon,
.portal-icon {
  background: rgba(200,255,106,.12) !important;
  border: 1px solid rgba(200,255,106,.20) !important;
  color: #dfff9a !important;
}

.compact-notice-row {
  grid-template-columns: 46px 1fr auto !important;
  min-height: 78px;
}

.compact-notice-date {
  color: #ffd166 !important;
}

.compact-notice-more,
.btn-primary {
  background: #c8ff6a !important;
  color: #12200d !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.portal-editor-guide {
  padding-top: 24px !important;
  padding-bottom: 64px !important;
}

.editor-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.editor-guide-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(235,246,225,.12);
}

.editor-guide-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #12200d;
  background: #ff8a5b;
  font-weight: 900;
}

.editor-guide-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.editor-guide-step p {
  color: rgba(251,255,249,.72);
  font-size: .9rem;
  line-height: 1.65;
}

body[data-page="tutoriali"] .two-col {
  grid-template-columns: 1fr !important;
}

.content-card--tutorials {
  padding: 22px !important;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tutorial-card {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(7, 16, 13, .82);
  border: 1px solid rgba(235,246,225,.12);
}

.tutorial-video {
  aspect-ratio: 16 / 9;
  background: #050806;
}

.tutorial-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tutorial-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  color: rgba(251,255,249,.72);
}

.tutorial-placeholder svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.tutorial-copy {
  padding: 18px;
}

.tutorial-copy h3 {
  margin-top: 14px;
  font-size: 1.15rem;
  line-height: 1.18;
}

.tutorial-copy p {
  margin-top: 10px;
  color: rgba(251,255,249,.72);
  line-height: 1.65;
}

.tutorial-steps {
  margin: 14px 0 0 18px;
  color: rgba(251,255,249,.78);
  font-size: .9rem;
  line-height: 1.7;
}

.tutorial-open-link {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .portal-command-hero .container {
    grid-template-columns: 1fr;
  }

  .portal-command-hero .mini-shortcut-rail {
    grid-column: 1;
    grid-row: auto;
  }

  .editor-guide-grid,
  .tutorial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 68px !important;
  }

  .site-nav {
    top: 76px !important;
    border-radius: 8px !important;
  }

  .mini-shortcut-rail {
    grid-template-columns: 1fr !important;
  }

  .compact-notice-row {
    grid-template-columns: 42px 1fr !important;
  }
}

/* ============================================================
   v1.8.1 - Home headings, living background, menu and login polish
   ============================================================ */

body {
  background:
    linear-gradient(125deg, #020617 0%, #071827 25%, #111143 52%, #082f2d 76%, #050816 100%) !important;
  background-size: 420% 420% !important;
  animation: portalColorWash 24s ease-in-out infinite !important;
}

body::before {
  inset: -30% !important;
  background:
    conic-gradient(from 40deg at 46% 42%,
      rgba(34, 211, 238, .24),
      rgba(99, 102, 241, .20),
      rgba(217, 70, 239, .18),
      rgba(20, 184, 166, .20),
      rgba(59, 130, 246, .18),
      rgba(34, 211, 238, .24)) !important;
  opacity: .78 !important;
  filter: blur(74px) saturate(150%) !important;
  animation: portalHueField 26s ease-in-out infinite alternate !important;
}

body::after {
  background:
    linear-gradient(115deg,
      rgba(255,255,255,.035) 0%,
      transparent 18%,
      rgba(103,232,249,.055) 36%,
      transparent 54%,
      rgba(196,181,253,.050) 72%,
      transparent 100%),
    linear-gradient(180deg, rgba(2,6,23,.08), rgba(0,0,0,.62)) !important;
  background-size: 260% 260%, 100% 100% !important;
  animation: portalGlassDrift 16s ease-in-out infinite alternate !important;
}

.aurora-layer::before,
.aurora-layer::after,
.aurora-mid {
  animation-duration: 18s !important;
  mix-blend-mode: screen !important;
}

.home-section-heading {
  gap: 12px !important;
  margin-bottom: 18px !important;
}

.home-section-heading-line {
  max-width: 100% !important;
  background: linear-gradient(90deg, rgba(103,232,249,.72), rgba(196,181,253,.50), transparent 82%) !important;
}

.home-section-heading-copy {
  display: block !important;
  text-align: left !important;
}

.home-section-heading-copy .eyebrow {
  display: none !important;
}

.home-section-heading-copy h2 {
  text-align: left !important;
  width: 100% !important;
  font-size: clamp(1.85rem, 3.3vw, 2.55rem) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 18px 48px rgba(0,0,0,.35);
}

.site-header {
  overflow: visible !important;
  background:
    linear-gradient(135deg, rgba(7, 13, 32, .92), rgba(10, 22, 48, .82)) !important;
  border-color: rgba(186,247,255,.18) !important;
}

.site-header::before {
  background:
    linear-gradient(115deg, rgba(255,255,255,.13), transparent 30%, rgba(103,232,249,.12) 58%, rgba(196,181,253,.09) 82%, transparent) !important;
}

.site-nav {
  gap: 6px !important;
  padding: 8px !important;
  background:
    linear-gradient(180deg, rgba(15,23,42,.58), rgba(2,6,23,.46)) !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 50px rgba(0,0,0,.28) !important;
}

.nav-link {
  min-height: 44px !important;
  padding: 10px 17px !important;
  border-radius: 18px !important;
  color: rgba(226,232,240,.82) !important;
  letter-spacing: 0 !important;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(103,232,249,.18), rgba(196,181,253,.16));
  opacity: 0;
  transition: opacity .22s var(--ease-out);
}

.nav-link:hover::before,
.nav-link.is-active::before {
  opacity: 1;
}

.nav-link:hover {
  color: #fff !important;
  border-color: rgba(186,247,255,.22) !important;
  transform: translateY(-2px);
}

.nav-link.is-active {
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(56,189,248,.26), rgba(139,92,246,.22)) !important;
  border-color: rgba(125,211,252,.35) !important;
  box-shadow:
    0 16px 42px rgba(14,165,233,.18),
    inset 0 1px 0 rgba(255,255,255,.16) !important;
}

.nav-label,
.nav-dropdown-label,
.nav-link .chevron {
  position: relative;
  z-index: 1;
}

.nav-icon,
.nav-dropdown-icon {
  color: #dffbff !important;
  filter: drop-shadow(0 0 10px rgba(103,232,249,.28));
}

.nav-dropdown-menu {
  left: 50% !important;
  transform: translate(-50%, -10px) scale(.96) !important;
  padding: 12px !important;
  background:
    linear-gradient(180deg, rgba(12,20,44,.98), rgba(4,9,24,.98)) !important;
  border-color: rgba(186,247,255,.18) !important;
}

.nav-dropdown.open .nav-dropdown-menu {
  transform: translate(-50%, 0) scale(1) !important;
}

.nav-dropdown-menu a {
  position: relative;
  min-height: 44px;
  padding: 12px 14px 12px 16px !important;
  border-radius: 17px !important;
  font-weight: 780 !important;
  letter-spacing: 0 !important;
}

.nav-dropdown-menu a::before {
  content: "";
  width: 3px;
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(180deg, #67e8f9, #c4b5fd);
  opacity: .38;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: linear-gradient(135deg, rgba(103,232,249,.14), rgba(196,181,253,.10)) !important;
  color: #fff !important;
}

.password-gate {
  background:
    linear-gradient(125deg, rgba(2,6,23,.96), rgba(6,18,37,.94), rgba(17,24,75,.92), rgba(4,47,46,.94)) !important;
  background-size: 360% 360% !important;
  animation: portalColorWash 20s ease-in-out infinite !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
}

.password-card {
  max-width: 520px !important;
  padding: 36px !important;
  text-align: left !important;
  border-radius: 36px !important;
  background:
    linear-gradient(145deg, rgba(15,23,42,.92), rgba(8,13,31,.80)) !important;
  border: 1px solid rgba(186,247,255,.20) !important;
  box-shadow:
    0 42px 130px rgba(0,0,0,.60),
    0 0 0 1px rgba(103,232,249,.06),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}

.password-card::before {
  height: 100% !important;
  background:
    linear-gradient(120deg, rgba(255,255,255,.10), transparent 34%, rgba(103,232,249,.08) 58%, transparent 82%) !important;
  opacity: .78 !important;
  animation: passwordSheen 8s ease-in-out infinite alternate !important;
  box-shadow: none !important;
}

.password-card::after {
  inset: auto 20px 20px 20px !important;
  width: auto !important;
  height: 1px !important;
  transform: none !important;
  background: linear-gradient(90deg, transparent, rgba(103,232,249,.55), rgba(196,181,253,.45), transparent) !important;
  animation: none !important;
}

.password-brand {
  position: relative;
  z-index: 1;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 16px !important;
  margin-bottom: 24px !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}

.password-logo {
  height: 56px !important;
}

.password-brand .eyebrow {
  display: inline-flex !important;
  margin-bottom: 6px !important;
  letter-spacing: .09em !important;
}

.password-brand h1 {
  font-size: 1.05rem !important;
  letter-spacing: 0 !important;
}

.password-text {
  position: relative;
  z-index: 1;
  margin-bottom: 18px !important;
  color: rgba(226,232,240,.88) !important;
  font-size: 1rem !important;
}

.password-form {
  position: relative;
  z-index: 1;
  gap: 12px !important;
}

.password-form input {
  text-align: left !important;
  padding: 17px 18px !important;
  letter-spacing: .16em !important;
  border-radius: 20px !important;
  background: rgba(2,6,23,.45) !important;
  border-color: rgba(186,247,255,.20) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.password-form input:focus {
  background: rgba(8,20,38,.62) !important;
  border-color: rgba(103,232,249,.70) !important;
  box-shadow:
    0 0 0 4px rgba(103,232,249,.14),
    0 18px 46px rgba(14,165,233,.16),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.password-form .btn-primary {
  min-height: 52px !important;
  border-radius: 20px !important;
  color: #02111f !important;
  font-weight: 880 !important;
  letter-spacing: 0 !important;
  background:
    linear-gradient(135deg, #67e8f9 0%, #60a5fa 52%, #c4b5fd 100%) !important;
}

.password-message,
.password-note {
  position: relative;
  z-index: 1;
}

.password-note {
  margin-top: 22px !important;
  opacity: .68 !important;
  color: rgba(203,213,225,.78) !important;
}

@keyframes portalColorWash {
  0% { background-position: 0% 45%; }
  35% { background-position: 65% 30%; }
  70% { background-position: 100% 70%; }
  100% { background-position: 12% 55%; }
}

@keyframes portalHueField {
  0% { transform: translate3d(-3%, -2%, 0) rotate(-10deg) scale(1.02); filter: blur(74px) hue-rotate(0deg) saturate(145%); }
  50% { transform: translate3d(4%, 2%, 0) rotate(6deg) scale(1.09); filter: blur(78px) hue-rotate(42deg) saturate(165%); }
  100% { transform: translate3d(-1%, 5%, 0) rotate(14deg) scale(1.06); filter: blur(74px) hue-rotate(92deg) saturate(155%); }
}

@keyframes portalGlassDrift {
  0% { background-position: 0% 50%, center; opacity: .56; }
  100% { background-position: 100% 52%, center; opacity: .84; }
}

@keyframes passwordSheen {
  0% { opacity: .48; transform: translateX(-8%); }
  100% { opacity: .82; transform: translateX(8%); }
}

@media (max-width: 860px) {
  .home-section-heading-copy h2 {
    font-size: clamp(1.55rem, 8vw, 2.15rem) !important;
  }

  .nav-link::before {
    opacity: .05;
  }

  .nav-dropdown-menu {
    left: 0 !important;
    transform: translateY(-8px) scale(.98) !important;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    transform: translateY(0) scale(1) !important;
  }

  .password-card {
    padding: 24px !important;
    border-radius: 28px !important;
  }

  .password-brand {
    padding: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .password-gate,
  body::before,
  body::after,
  .password-card::before {
    animation: none !important;
  }
}


/* ============================================================
   v1.8.0 – COMPLETE UI REDESIGN: DARK LIQUID DASHBOARD
   Novi vizualni smjer: tamni premium portal, bez zvijezda
   ============================================================ */

:root {
  --font-ui: "Aptos", "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Aptos Display", "Inter Tight", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;

  --bg: #07100d;
  --theme-color: #07100d;

  --text: #f8fbff;
  --text-secondary: #c8d2e3;
  --muted: #91a0b8;
  --primary: #8bd450;
  --accent: #ff8a5b;
  --accent-2: #48d7c2;

  --line: rgba(193, 214, 255, 0.13);
  --line-strong: rgba(203, 213, 225, 0.21);

  --surface-1: rgba(8, 13, 31, 0.78);
  --surface-2: rgba(13, 21, 45, 0.76);
  --surface-3: rgba(18, 29, 58, 0.78);

  --glass-header: rgba(7, 12, 28, 0.78);
  --white-soft: rgba(255,255,255,.075);

  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 8px;
  --header-h: 78px;

  --shadow-lg: 0 34px 100px rgba(0,0,0,.46);
  --shadow-md: 0 24px 70px rgba(0,0,0,.34);
  --shadow-sm: 0 16px 40px rgba(0,0,0,.25);
}

html {
  text-rendering: geometricPrecision;
}

body {
  font-family: var(--font-ui) !important;
  color: var(--text) !important;
  letter-spacing: -0.014em;
  background:
    linear-gradient(125deg, #07100d 0%, #102017 36%, #1b2116 66%, #160f0b 100%) !important;
}

/* Makni zvijezde / canvas */
#cosmos-canvas {
  display: none !important;
}

/* Novi background: liquid gradient + elegantni moving panels */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: -28%;
  background:
    radial-gradient(ellipse 42% 34% at 20% 16%, rgba(14, 165, 233, .33), transparent 68%),
    radial-gradient(ellipse 36% 30% at 82% 20%, rgba(139, 92, 246, .32), transparent 70%),
    radial-gradient(ellipse 34% 28% at 68% 86%, rgba(20, 184, 166, .20), transparent 66%),
    conic-gradient(from 145deg at 50% 46%,
      transparent 0deg,
      rgba(34, 211, 238, .18) 58deg,
      rgba(99, 102, 241, .13) 118deg,
      rgba(168, 85, 247, .18) 190deg,
      transparent 258deg,
      rgba(45, 212, 191, .12) 320deg,
      transparent 360deg);
  filter: blur(64px) saturate(140%);
  opacity: .90;
  animation: uiLiquidField 28s ease-in-out infinite alternate;
}

body::after {
  inset: 0;
  background:
    linear-gradient(120deg,
      transparent 0%,
      rgba(255,255,255,.035) 12%,
      transparent 25%,
      rgba(103,232,249,.035) 46%,
      transparent 62%,
      rgba(196,181,253,.030) 80%,
      transparent 100%),
    radial-gradient(circle at 50% 25%, transparent 0%, rgba(3,7,18,.08) 45%, rgba(0,0,0,.55) 100%);
  background-size: 240% 240%, 100% 100%;
  opacity: .72;
  animation: uiGlassSweep 18s ease-in-out infinite alternate;
}

/* Reuse old aurora nodes as blobs, no star look */
.aurora-layer {
  opacity: 1 !important;
  overflow: hidden;
  mix-blend-mode: normal !important;
}

.aurora-layer::before,
.aurora-layer::after,
.aurora-mid {
  border-radius: 999px !important;
  filter: blur(86px) saturate(145%) !important;
  opacity: .62 !important;
}

.aurora-layer::before {
  width: 66vw !important;
  height: 56vh !important;
  top: -18vh !important;
  left: -12vw !important;
  background: radial-gradient(ellipse at center, rgba(103,232,249,.19), rgba(99,102,241,.08) 54%, transparent 74%) !important;
  animation: uiBlobA 24s ease-in-out infinite alternate !important;
}

.aurora-layer::after {
  width: 72vw !important;
  height: 60vh !important;
  right: -18vw !important;
  bottom: -16vh !important;
  background: radial-gradient(ellipse at center, rgba(168,85,247,.20), rgba(244,114,182,.07) 52%, transparent 74%) !important;
  animation: uiBlobB 31s ease-in-out infinite alternate !important;
}

.aurora-mid {
  width: 58vw !important;
  height: 48vh !important;
  top: 34% !important;
  left: 20% !important;
  background: radial-gradient(ellipse at center, rgba(45,212,191,.12), rgba(14,165,233,.06) 52%, transparent 76%) !important;
  animation: uiBlobC 38s ease-in-out infinite alternate !important;
}

/* Global type */
h1, h2, h3, h4,
.page-title, .hero-title, .section-title,
.brand-copy strong, .card-title, .feature-card h3,
.compact-notice-title, .portal-modal-card h2, .portal-modal-card h3 {
  font-family: var(--font-display) !important;
  letter-spacing: -0.045em;
}

p, li, a, button, input, .timeline-text {
  letter-spacing: -0.012em;
}

.page-title, .hero-title {
  font-weight: 880 !important;
  line-height: .96 !important;
}

.section-title, .content-card h2, .card-head h2 {
  font-weight: 830 !important;
}

/* Layout spacing polish */
.container {
  width: min(calc(100% - 44px), 1220px) !important;
}

.site-shell {
  position: relative;
  z-index: 1;
}

main {
  padding-top: 14px;
}

/* Header becomes floating command center */
.site-header {
  height: var(--header-h) !important;
  top: 0 !important;
  width: 100% !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  background:
    linear-gradient(135deg, rgba(7, 12, 28, .84), rgba(12, 19, 43, .72)) !important;
  border: 1px solid rgba(203,213,225,.16) !important;
  box-shadow:
    0 30px 90px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.09),
    0 0 0 1px rgba(103,232,249,.035) !important;
  backdrop-filter: blur(28px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(165%) !important;
}

.site-header::before {
  display: none !important;
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255,255,255,.11), transparent 28%, rgba(103,232,249,.08) 58%, transparent 82%);
}

.site-header::after {
  display: none !important;
  left: 28px !important;
  right: 28px !important;
  bottom: -1px !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(103,232,249,.92), rgba(196,181,253,.70), transparent) !important;
  box-shadow: 0 0 24px rgba(103,232,249,.28);
}

.header-inner {
  padding: 0 16px !important;
}

.brand {
  gap: 13px !important;
  padding: 8px 12px 8px 7px !important;
  border-radius: 8px !important;
}

.brand-logo {
  height: 44px !important;
  filter: drop-shadow(0 0 18px rgba(103,232,249,.24)) !important;
}

.brand-overline {
  font-size: .60rem !important;
  color: rgba(203,213,225,.70) !important;
  letter-spacing: .11em !important;
}

.brand-copy strong {
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  letter-spacing: .075em !important;
  background: linear-gradient(90deg, #ffffff 0%, #baf7ff 44%, #ddd6fe 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.site-nav {
  gap: 8px !important;
  padding: 7px !important;
  border-radius: 21px !important;
  background: rgba(2, 6, 23, .32) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.nav-link {
  padding: 10px 15px !important;
  border-radius: 8px !important;
  color: rgba(226,232,240,.78) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  font-weight: 780 !important;
  transition: .22s cubic-bezier(.16,1,.3,1) !important;
}

.nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.085) !important;
  border-color: rgba(203,213,225,.13) !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.26);
}

.nav-link.is-active {
  color: #ecfeff !important;
  background:
    #c8ff6a !important;
  color: #12200d !important;
  border-color: transparent !important;
  box-shadow:
    0 16px 42px rgba(14,165,233,.12),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.nav-link.is-active::after {
  display: none !important;
}

.nav-dropdown-menu {
  top: calc(100% + 14px) !important;
  min-width: 286px !important;
  padding: 10px !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(8,13,31,.97), rgba(5,10,24,.98)) !important;
  border: 1px solid rgba(203,213,225,.16) !important;
  box-shadow:
    0 30px 90px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.07) !important;
}

.dropdown-link {
  border-radius: 16px !important;
  padding: 12px 13px !important;
  font-weight: 720 !important;
}

.dropdown-link:hover {
  background: rgba(103,232,249,.10) !important;
}

/* Hero / page heading redesign */
.home-hero,
.page-hero,
.hero,
.section-hero {
  position: relative;
}

.home-hero .container,
.page-hero .container,
.hero .container {
  position: relative;
}

.eyebrow,
.badge,
.badge-soft,
.portal-card-topline,
.compact-notice-date {
  letter-spacing: .075em !important;
  font-weight: 850 !important;
}

.eyebrow {
  color: rgba(186,247,255,.86) !important;
}

/* Cards / sections: one coherent glass system */
.content-card,
.portal-card,
.feature-card,
.quick-card,
.info-card,
.timeline-card,
.section-card,
.card,
.panel {
  border-radius: 8px !important;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .82), rgba(8, 13, 31, .72)) !important;
  border: 1px solid rgba(203,213,225,.15) !important;
  box-shadow:
    0 28px 80px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.065) !important;
  backdrop-filter: blur(20px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(135%) !important;
}

.content-card:hover,
.portal-card:hover,
.feature-card:hover,
.quick-card:hover,
.info-card:hover {
  border-color: rgba(103,232,249,.25) !important;
  box-shadow:
    0 34px 92px rgba(0,0,0,.42),
    0 0 0 1px rgba(103,232,249,.05),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

/* Mini shortcuts redesigned as clean icon rail */
.mini-shortcut {
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(12, 21, 45, .86), rgba(7, 12, 28, .78)) !important;
  border: 1px solid rgba(203,213,225,.15) !important;
  box-shadow:
    0 22px 60px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.07) !important;
  color: rgba(248,251,255,.92) !important;
}

.mini-shortcut:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(103,232,249,.30) !important;
  background:
    linear-gradient(145deg, rgba(15, 29, 60, .92), rgba(11, 18, 42, .86)) !important;
}

.mini-shortcut-icon {
  background:
    linear-gradient(135deg, rgba(103,232,249,.22), rgba(196,181,253,.16)) !important;
  border: 1px solid rgba(103,232,249,.25) !important;
  box-shadow: 0 14px 38px rgba(14,165,233,.10);
}

/* Obavijesti / rokovi as premium list rows */
.compact-notice-list {
  gap: 12px !important;
}

.compact-notice-row {
  grid-template-columns: 50px 1fr auto !important;
  padding: 15px 16px !important;
  border-radius: 23px !important;
  background:
    linear-gradient(135deg, rgba(14, 23, 46, .96), rgba(7, 15, 34, .94)) !important;
  border: 1px solid rgba(203,213,225,.18) !important;
  box-shadow:
    0 18px 50px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.07) !important;
}

.compact-notice-row:hover {
  transform: translateY(-3px) !important;
  background:
    linear-gradient(135deg, rgba(18, 34, 67, .98), rgba(9, 22, 50, .96)) !important;
  border-color: rgba(103,232,249,.35) !important;
  box-shadow:
    0 26px 68px rgba(0,0,0,.44),
    0 0 0 1px rgba(103,232,249,.065),
    inset 0 1px 0 rgba(255,255,255,.09) !important;
}

.compact-notice-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(103,232,249,.22), rgba(196,181,253,.15)) !important;
  border: 1px solid rgba(103,232,249,.26) !important;
  color: #eaffff !important;
}

.compact-notice-title {
  font-size: 1.02rem !important;
  font-weight: 820 !important;
}

.compact-notice-more {
  border-radius: 999px !important;
  padding: 8px 12px !important;
  background: rgba(255,255,255,.075) !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  color: rgba(226,232,240,.92) !important;
}

/* Modal redesign */
.portal-modal-backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgba(103,232,249,.12), transparent 34%),
    rgba(0, 2, 10, .78) !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
}

.portal-modal-card {
  border-radius: 32px !important;
  padding: 32px !important;
  background:
    linear-gradient(145deg, rgba(15,23,42,.98), rgba(6,12,28,.98)) !important;
  border: 1px solid rgba(203,213,225,.18) !important;
  box-shadow:
    0 42px 120px rgba(0,0,0,.64),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.portal-modal-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem) !important;
  line-height: 1.02 !important;
  margin-top: 14px !important;
}

.portal-modal-item-title {
  margin-top: 12px !important;
  font-size: 1.16rem !important;
  line-height: 1.25 !important;
  color: #eaf7ff !important;
  letter-spacing: -0.03em !important;
}

.portal-modal-card p {
  margin-top: 14px !important;
  color: rgba(226,232,240,.86) !important;
  font-size: 1.02rem !important;
  line-height: 1.72 !important;
}

.portal-modal-close {
  border-radius: 16px !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
}

/* Buttons / links */
.timeline-link,
.card-cta,
.feature-link,
.btn,
a[class*="link"] {
  border-radius: 999px;
}

/* Footer */
.site-footer,
.footer {
  background: rgba(2,6,23,.36) !important;
  border-top: 1px solid rgba(203,213,225,.10) !important;
  backdrop-filter: blur(16px);
}

/* Login redesign */
.login-screen,
.password-screen {
  background:
    radial-gradient(ellipse at 18% 20%, rgba(103,232,249,.22), transparent 42%),
    radial-gradient(ellipse at 84% 24%, rgba(196,181,253,.19), transparent 40%),
    linear-gradient(135deg, #020617, #07101f 50%, #030712) !important;
}

.login-card,
.password-card {
  border-radius: 34px !important;
  background:
    linear-gradient(145deg, rgba(15,23,42,.86), rgba(7,12,28,.76)) !important;
  border: 1px solid rgba(203,213,225,.16) !important;
  box-shadow: 0 36px 120px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

/* Animations */
@keyframes uiLiquidField {
  0% { transform: translate3d(-2%, -2%, 0) rotate(-7deg) scale(1.02); }
  45% { transform: translate3d(4%, 1%, 0) rotate(5deg) scale(1.09); }
  100% { transform: translate3d(-1%, 4%, 0) rotate(9deg) scale(1.06); }
}

@keyframes uiGlassSweep {
  0% { background-position: 0% 45%, center; opacity: .56; }
  50% { background-position: 72% 50%, center; opacity: .82; }
  100% { background-position: 100% 55%, center; opacity: .66; }
}

@keyframes uiBlobA {
  from { transform: translate3d(-3%, -2%, 0) rotate(-8deg) scale(1); }
  to { transform: translate3d(8%, 6%, 0) rotate(8deg) scale(1.16); }
}

@keyframes uiBlobB {
  from { transform: translate3d(4%, 4%, 0) rotate(8deg) scale(1.04); }
  to { transform: translate3d(-9%, -4%, 0) rotate(-10deg) scale(1.17); }
}

@keyframes uiBlobC {
  from { transform: translate3d(-4%, 5%, 0) scale(1); }
  to { transform: translate3d(5%, -5%, 0) scale(1.22); }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .container {
    width: min(calc(100% - 26px), 1220px) !important;
  }

  .site-header {
    top: 8px !important;
    width: min(calc(100% - 16px), 1250px) !important;
    border-radius: 22px !important;
  }

  .site-header::before {
    border-radius: 21px !important;
  }

  .brand-logo {
    height: 38px !important;
  }

  .brand-overline {
    display: none !important;
  }

  .brand-copy strong {
    font-size: .92rem !important;
  }

  .nav-toggle {
    border-radius: 17px !important;
    background: rgba(255,255,255,.09) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
  }

  .site-nav {
    top: calc(var(--header-h) + 20px) !important;
    border-radius: 26px !important;
    background:
      linear-gradient(180deg, rgba(8,13,31,.98), rgba(4,8,24,.98)) !important;
    box-shadow: 0 34px 100px rgba(0,0,0,.62) !important;
  }

  .nav-link {
    padding: 14px 15px !important;
  }

  .compact-notice-row {
    grid-template-columns: 46px 1fr !important;
  }

  .compact-notice-more {
    grid-column: 2;
    width: fit-content;
    margin-top: 4px;
  }

  .portal-modal-card {
    padding: 26px !important;
    border-radius: 28px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .aurora-layer::before,
  .aurora-layer::after,
  .aurora-mid {
    animation: none !important;
  }
}

/* v1.8.2 FINAL LAYER - Djelatnik Control Room */
:root {
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 8px;
  --bg: #07100d;
  --theme-color: #07100d;
  --text: #fbfff9;
  --muted: #a9b5a5;
  --primary: #8bd450;
  --primary-strong: #c8ff6a;
  --accent: #ff8a5b;
  --accent-2: #48d7c2;
  --line: rgba(235, 246, 225, .14);
}

body {
  background: linear-gradient(125deg, #07100d 0%, #102017 36%, #1b2116 66%, #160f0b 100%) !important;
}

body::before,
body::after,
.aurora-layer,
.aurora-mid,
#cosmos-canvas {
  display: none !important;
}

.site-header {
  top: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 72px !important;
  border-radius: 0 !important;
  background: rgba(7, 16, 13, .94) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(235,246,225,.12) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.26) !important;
}

.site-header::before,
.site-header::after {
  display: none !important;
}

.brand,
.site-nav,
.nav-link,
.nav-dropdown-menu,
.content-card,
.portal-card,
.mini-shortcut,
.compact-notice-row,
.password-card,
.portal-modal-card,
.info-card,
.accordion-item,
.feature-image-wrap,
.tutorial-card,
.editor-guide-step {
  border-radius: 8px !important;
}

.nav-link.is-active,
.compact-notice-more,
.btn-primary {
  background: #c8ff6a !important;
  color: #12200d !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.home-hero-title,
.page-hero h1 {
  color: #fbfff9 !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
}

.portal-command-hero .container {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: end;
}

.portal-command-hero .eyebrow,
.portal-command-hero .home-hero-title,
.portal-command-hero .home-hero-sub {
  grid-column: 1;
  text-align: left !important;
  justify-content: flex-start !important;
}

.portal-command-hero .mini-shortcut-rail {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin-top: 0 !important;
}

.content-card,
.portal-card,
.mini-shortcut,
.compact-notice-row,
.info-card,
.accordion-item {
  background: rgba(16, 27, 22, .90) !important;
  border: 1px solid rgba(235,246,225,.12) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.24) !important;
}

.mini-shortcut-rail {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.mini-shortcut {
  min-height: 86px;
  padding: 16px !important;
  justify-content: flex-start !important;
  font-weight: 820 !important;
}

.mini-shortcut-icon,
.compact-notice-icon,
.portal-icon {
  background: rgba(200,255,106,.12) !important;
  border: 1px solid rgba(200,255,106,.20) !important;
  color: #dfff9a !important;
}

.editor-guide-grid,
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.editor-guide-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(235,246,225,.12);
}

.editor-guide-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #12200d;
  background: #ff8a5b;
  font-weight: 900;
}

.editor-guide-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.editor-guide-step p,
.tutorial-copy p {
  color: rgba(251,255,249,.72);
  line-height: 1.65;
}

body[data-page="tutoriali"] .two-col {
  grid-template-columns: 1fr !important;
}

.content-card--tutorials {
  padding: 22px !important;
}

.tutorial-card {
  overflow: hidden;
  background: rgba(7, 16, 13, .82);
  border: 1px solid rgba(235,246,225,.12);
}

.tutorial-video {
  aspect-ratio: 16 / 9;
  background: #050806;
}

.tutorial-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tutorial-copy {
  padding: 18px;
}

.tutorial-copy h3 {
  margin-top: 14px;
  font-size: 1.15rem;
  line-height: 1.18;
}

.tutorial-steps {
  margin: 14px 0 0 18px;
  color: rgba(251,255,249,.78);
  font-size: .9rem;
  line-height: 1.7;
}

.tutorial-open-link {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .portal-command-hero .container,
  .editor-guide-grid,
  .tutorial-grid {
    grid-template-columns: 1fr !important;
  }

  .portal-command-hero .mini-shortcut-rail {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
  }

  .site-nav {
    top: 76px !important;
    border-radius: 8px !important;
  }

  .mini-shortcut-rail {
    grid-template-columns: 1fr !important;
  }
}

/* v1.8.4 final polish - live background and compact shortcuts */
:root {
  --theme-color: #07100d;
}

body {
  background:
    radial-gradient(circle at 12% 18%, rgba(200,255,106,.20), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(72,215,194,.20), transparent 30%),
    radial-gradient(circle at 72% 84%, rgba(255,138,91,.18), transparent 30%),
    linear-gradient(125deg, #07100d 0%, #102017 36%, #1b2116 66%, #160f0b 100%) !important;
  background-size: 160% 160%, 180% 180%, 170% 170%, 240% 240% !important;
  animation: djelatnikColorFlow 20s ease-in-out infinite alternate !important;
}

body::before,
body::after {
  content: "" !important;
  display: block !important;
  position: fixed;
  inset: -24%;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    conic-gradient(from 120deg at 50% 50%,
      rgba(200,255,106,.16),
      rgba(72,215,194,.14),
      rgba(255,138,91,.13),
      rgba(139,213,80,.12),
      rgba(200,255,106,.16));
  filter: blur(72px) saturate(145%);
  opacity: .78;
  animation: djelatnikAuroraTurn 28s ease-in-out infinite alternate;
}

body::after {
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.045) 18%, transparent 38%, rgba(200,255,106,.040) 56%, transparent 78%),
    radial-gradient(circle at 50% 0%, transparent 0%, rgba(0,0,0,.22) 62%, rgba(0,0,0,.46) 100%);
  background-size: 260% 260%, 100% 100%;
  opacity: .70;
  animation: djelatnikLightSweep 16s ease-in-out infinite alternate;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.password-gate {
  position: fixed !important;
  z-index: 500 !important;
}

@keyframes djelatnikColorFlow {
  0% { background-position: 0% 30%, 90% 10%, 60% 90%, 0% 50%; }
  45% { background-position: 34% 48%, 56% 38%, 84% 58%, 56% 44%; }
  100% { background-position: 88% 20%, 20% 70%, 18% 36%, 100% 62%; }
}

@keyframes djelatnikAuroraTurn {
  0% { transform: translate3d(-3%, -2%, 0) rotate(-8deg) scale(1.02); }
  100% { transform: translate3d(4%, 3%, 0) rotate(10deg) scale(1.12); }
}

@keyframes djelatnikLightSweep {
  0% { background-position: 0% 45%, center; }
  100% { background-position: 100% 58%, center; }
}

.shortcut-panel {
  grid-column: 2;
  grid-row: 1 / span 3;
  padding: 16px;
  border-radius: 8px;
  background: rgba(16, 27, 22, .72);
  border: 1px solid rgba(235,246,225,.13);
  box-shadow: 0 18px 48px rgba(0,0,0,.23);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.shortcut-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.shortcut-panel-kicker {
  color: #c8ff6a;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shortcut-panel-head strong {
  font-size: .95rem;
  color: rgba(251,255,249,.84);
}

.portal-command-hero .shortcut-panel .mini-shortcut-rail {
  grid-column: auto;
  grid-row: auto;
  margin-top: 0 !important;
}

.portal-command-hero .mini-shortcut-rail {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.portal-command-hero .mini-shortcut {
  min-height: 78px;
}

.portal-editor-guide,
.editor-guide-grid,
.editor-guide-step {
  display: none !important;
}

@media (max-width: 980px) {
  .shortcut-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .home-hero,
  .page-hero {
    padding-top: 34px !important;
  }

  .shortcut-panel {
    padding: 12px;
  }

  .shortcut-panel-head {
    margin-bottom: 10px;
  }

  .portal-command-hero .mini-shortcut-rail,
  .mini-shortcut-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .portal-command-hero .mini-shortcut,
  .mini-shortcut {
    min-height: 78px !important;
    padding: 10px 8px !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 7px !important;
    font-size: .72rem !important;
    line-height: 1.15 !important;
  }

  .mini-shortcut-icon {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }

  .mini-shortcut-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
}

@media (max-width: 430px) {
  .portal-command-hero .mini-shortcut-rail,
  .mini-shortcut-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .portal-command-hero .mini-shortcut,
  .mini-shortcut {
    min-height: 72px !important;
    font-size: .66rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before,
  body::after {
    animation: none !important;
  }
}

/* v1.8.5 - Production layout, useful links drawer and unlock experience */
.portal-command-hero .container {
  display: block !important;
}

.portal-command-hero .eyebrow,
.portal-command-hero .home-hero-title,
.portal-command-hero .home-hero-sub {
  width: 100%;
  max-width: 1180px;
  text-align: left !important;
  justify-content: flex-start !important;
}

.portal-command-hero .home-hero-title {
  margin-top: 92px;
}

.portal-command-hero .home-hero-sub {
  max-width: 720px;
  margin-top: 22px;
}

.shortcut-panel {
  width: 100%;
  margin-top: 42px !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

.portal-command-hero .mini-shortcut-rail {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.mini-shortcut--button {
  border: 1px solid rgba(235,246,225,.12);
  cursor: pointer;
  color: inherit;
}

.mini-shortcut--button.is-open {
  background: rgba(200,255,106,.18) !important;
  border-color: rgba(200,255,106,.36) !important;
}

.portal-command-hero .mini-shortcut-rail--launcher {
  grid-template-columns: minmax(220px, 360px) !important;
  justify-content: end;
}

.mini-shortcut--launcher {
  min-height: 96px !important;
  background: rgba(200,255,106,.16) !important;
  border-color: rgba(200,255,106,.34) !important;
}

.mini-shortcut--launcher small {
  display: block;
  margin-top: 2px;
  color: rgba(251,255,249,.58);
  font-size: .72rem;
  font-weight: 800;
}

.useful-links-drawer {
  margin-top: 14px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(7, 16, 13, .72);
  border: 1px solid rgba(235,246,225,.12);
  animation: usefulDrawerIn .28s ease-out both;
}

.useful-links-drawer[hidden] {
  display: none !important;
}

.useful-links-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.useful-links-head strong {
  color: #fbfff9;
  font-size: 1rem;
}

.useful-links-head span {
  color: rgba(251,255,249,.62);
  font-size: .82rem;
}

.useful-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.useful-link-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(235,246,225,.10);
}

.useful-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #dfff9a;
  background: rgba(200,255,106,.12);
}

.useful-link-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.useful-link-item strong,
.useful-link-item small {
  display: block;
}

.useful-link-item small {
  margin-top: 2px;
  color: rgba(251,255,249,.62);
  line-height: 1.35;
}

@keyframes usefulDrawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

body[data-page="tutoriali"] .tutorial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tutorial-video {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(200,255,106,.22), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(72,215,194,.18), transparent 32%),
    linear-gradient(135deg, rgba(16,27,22,.96), rgba(7,16,13,.96)) !important;
}

.tutorial-placeholder {
  position: relative;
  display: grid !important;
  place-items: center !important;
  color: rgba(251,255,249,.86) !important;
  text-align: center;
}

.tutorial-placeholder::before {
  content: "USKORO";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #12200d;
  background: #c8ff6a;
  font-weight: 950;
  letter-spacing: .10em;
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.tutorial-placeholder svg,
.tutorial-placeholder span {
  display: none !important;
}

.password-gate {
  z-index: 9000 !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(200,255,106,.18), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(72,215,194,.18), transparent 30%),
    linear-gradient(135deg, rgba(4,9,7,.98), rgba(8,20,15,.98)) !important;
}

.password-card {
  max-width: 430px !important;
  padding: 30px !important;
  text-align: left !important;
  border-radius: 22px !important;
  background: rgba(8, 17, 13, .88) !important;
  border: 1px solid rgba(235,246,225,.14) !important;
  box-shadow: 0 38px 120px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.password-card::before,
.password-card::after {
  display: none !important;
}

.login-orb {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(235,246,225,.14);
  display: grid;
  place-items: center;
}

.login-orb-ring {
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 3px solid rgba(200,255,106,.72);
  box-shadow: 0 0 32px rgba(200,255,106,.22);
}

.login-orb-face {
  width: 30px;
  height: 18px;
  border: 3px solid #c8ff6a;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  transform: translateY(5px);
}

.login-orb-face::before,
.login-orb-face::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #c8ff6a;
}

.login-orb-face::before { left: 4px; }
.login-orb-face::after { right: 4px; }

.password-gate.is-success .login-orb {
  animation: loginUnlockPop .72s cubic-bezier(.2,1.4,.28,1) both;
}

.password-gate.is-success .login-orb-ring {
  border-color: #c8ff6a;
  animation: loginRingScan .82s ease-out both;
}

.password-brand {
  justify-content: center !important;
  text-align: center !important;
  margin-bottom: 18px !important;
}

.password-brand h1,
.password-brand .eyebrow {
  text-align: center !important;
}

.login-user-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(235,246,225,.12);
}

.login-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #12200d;
  background: #c8ff6a;
  font-weight: 950;
}

.login-user-label {
  display: block;
  color: rgba(251,255,249,.54);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.login-user-card strong {
  display: block;
  margin-top: 2px;
  font-size: 1.15rem;
  color: #fbfff9;
}

.password-text {
  text-align: center;
  margin-bottom: 14px !important;
}

.password-form input {
  text-align: center !important;
  border-radius: 14px !important;
  letter-spacing: .28em !important;
}

.password-form .btn-primary {
  border-radius: 14px !important;
}

.password-note {
  text-align: center;
}

body:not(.portal-unlocked) .site-shell {
  opacity: 0;
  transform: scale(.985);
  filter: blur(10px);
}

body.portal-unlocked .site-shell {
  animation: portalAppsAppear .78s cubic-bezier(.16,1,.3,1) both;
}

body.portal-unlocked .site-header,
body.portal-unlocked .home-hero-title,
body.portal-unlocked .home-hero-sub,
body.portal-unlocked .shortcut-panel,
body.portal-unlocked .content-card,
body.portal-unlocked .compact-notice-row {
  animation: portalIconRise .62s cubic-bezier(.16,1,.3,1) both;
}

body.portal-unlocked .shortcut-panel { animation-delay: .10s; }
body.portal-unlocked .compact-notice-row:nth-child(2) { animation-delay: .16s; }
body.portal-unlocked .compact-notice-row:nth-child(3) { animation-delay: .22s; }
body.portal-unlocked .compact-notice-row:nth-child(4) { animation-delay: .28s; }

@keyframes loginUnlockPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); box-shadow: 0 0 0 0 rgba(200,255,106,.34); }
  100% { transform: scale(1); box-shadow: 0 0 0 18px rgba(200,255,106,0); }
}

@keyframes loginRingScan {
  0% { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes portalAppsAppear {
  from { opacity: 0; transform: scale(.985); filter: blur(10px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes portalIconRise {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 860px) {
  .portal-command-hero .home-hero-title {
    margin-top: 42px;
  }

  .shortcut-panel {
    margin-top: 28px !important;
  }

  .portal-command-hero .mini-shortcut-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .portal-command-hero .mini-shortcut-rail--launcher {
    grid-template-columns: 1fr !important;
  }

  .mini-shortcut--launcher {
    min-height: 86px !important;
  }

  .useful-links-grid {
    grid-template-columns: 1fr;
  }

  .useful-links-head {
    display: block;
  }

  .useful-links-head span {
    display: block;
    margin-top: 4px;
  }

  .password-card {
    padding: 24px !important;
    border-radius: 18px !important;
  }

  .login-orb {
    width: 78px;
    height: 78px;
    border-radius: 24px;
  }
}

/* v1.8.6 - Organizacija contact polish */
body[data-page="organizacija"] .two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="organizacija"] .content-card:nth-child(1),
body[data-page="organizacija"] .content-card:nth-child(3),
body[data-page="organizacija"] .content-card:nth-child(4) {
  grid-column: 1 / -1;
}

body[data-page="organizacija"] .people-list {
  gap: 10px;
}

body[data-page="organizacija"] .people-list li {
  padding: 16px;
  gap: 7px;
  border: 1px solid rgba(235,246,225,.10);
  background: rgba(255,255,255,.045);
}

body[data-page="organizacija"] .people-list strong {
  color: #c8ff6a;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body[data-page="organizacija"] .person-name {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 1rem;
  color: #fbfff9;
  font-weight: 850;
}

body[data-page="organizacija"] .person-name em {
  color: rgba(251,255,249,.68);
  font-size: .88rem;
  font-style: normal;
  font-weight: 650;
}

.person-contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.person-contact-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(251,255,249,.86) !important;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(235,246,225,.10);
  font-size: .84rem;
  font-weight: 700;
}

.person-contact-link:hover {
  color: #12200d !important;
  background: #c8ff6a;
}

@media (max-width: 860px) {
  body[data-page="organizacija"] .two-col {
    grid-template-columns: 1fr;
  }

  .person-contact-lines {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* v1.8.7 - Dark command UI and focused quick links */
body {
  background:
    radial-gradient(circle at 14% 22%, rgba(24, 97, 115, .28), transparent 32%),
    radial-gradient(circle at 84% 12%, rgba(69, 42, 109, .22), transparent 34%),
    radial-gradient(circle at 54% 92%, rgba(118, 43, 74, .16), transparent 38%),
    linear-gradient(135deg, #05070c 0%, #08101b 42%, #0d111a 100%) !important;
}

body::before {
  opacity: .34 !important;
  background:
    linear-gradient(115deg, rgba(255,255,255,.035), transparent 28%, rgba(103,232,249,.04) 58%, transparent 76%),
    radial-gradient(circle at 18% 28%, rgba(20,184,166,.10), transparent 32%) !important;
}

body::after {
  opacity: .28 !important;
  background:
    radial-gradient(circle at 78% 20%, rgba(167,139,250,.12), transparent 30%),
    radial-gradient(circle at 30% 86%, rgba(244,114,182,.08), transparent 32%) !important;
}

.portal-command-hero {
  background: transparent !important;
}

.shortcut-panel {
  margin-top: 38px !important;
  padding: 22px !important;
  background: rgba(4, 8, 14, .76) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.shortcut-panel-head {
  align-items: center !important;
  margin-bottom: 16px !important;
}

.shortcut-panel-kicker {
  color: #67e8f9 !important;
}

.shortcut-panel-head strong {
  margin-right: auto;
  color: #f8fafc !important;
  font-size: 1.08rem !important;
}

.portal-command-hero .mini-shortcut-rail,
.mini-shortcut-rail {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.mini-shortcut {
  min-height: 122px !important;
  padding: 18px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 14px !important;
  border-radius: 8px !important;
  background: rgba(14, 20, 30, .88) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.mini-shortcut:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(103,232,249,.42) !important;
  background: rgba(17, 27, 40, .94) !important;
}

.mini-shortcut-icon,
.useful-link-icon {
  border-radius: 8px !important;
  color: #67e8f9 !important;
  background: rgba(103,232,249,.12) !important;
  border-color: rgba(103,232,249,.22) !important;
}

.mini-shortcut-copy {
  min-width: 0;
}

.mini-shortcut-copy strong {
  display: block;
  color: #f8fafc;
  font-size: .98rem;
  line-height: 1.2;
}

.mini-shortcut-copy small {
  display: -webkit-box;
  margin-top: 8px;
  color: rgba(226,232,240,.68);
  font-size: .78rem;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quick-more-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 8px;
  border-radius: 8px;
  color: #f8fafc;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
}

.quick-more-button:hover {
  border-color: rgba(103,232,249,.42);
  background: rgba(103,232,249,.10);
}

.quick-more-button .mini-shortcut-icon {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px !important;
}

.quick-links-modal {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.quick-links-modal[hidden] {
  display: none !important;
}

.quick-links-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.quick-links-modal-card {
  position: relative;
  width: min(760px, 100%);
  padding: 28px;
  border-radius: 12px;
  color: #f8fafc;
  background: linear-gradient(145deg, rgba(13, 20, 32, .98), rgba(5, 8, 14, .98));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 120px rgba(0,0,0,.58);
  animation: usefulDrawerIn .22s ease-out both;
}

.quick-links-modal-card h2 {
  margin-top: 8px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.quick-links-modal-card > p {
  max-width: 58ch;
  margin: 12px 0 22px;
  color: rgba(226,232,240,.68);
}

.quick-links-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #f8fafc;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.quick-links-modal-close:hover {
  background: rgba(255,255,255,.12);
}

.quick-links-modal .useful-links-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-links-modal .useful-link-item {
  min-height: 118px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.12);
}

.quick-links-modal .useful-link-item:hover {
  border-color: rgba(103,232,249,.42);
  background: rgba(103,232,249,.09);
}

@media (max-width: 860px) {
  .shortcut-panel-head {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .portal-command-hero .mini-shortcut-rail,
  .mini-shortcut-rail {
    grid-template-columns: 1fr !important;
  }

  .mini-shortcut {
    min-height: 100px !important;
    flex-direction: row !important;
  }

  .quick-more-button {
    width: 100%;
    justify-content: center;
  }

  .quick-links-modal-card {
    padding: 22px;
  }

  .quick-links-modal .useful-links-grid {
    grid-template-columns: 1fr;
  }
}

/* v1.8.8 - All quick links visible, calmer motion and login cleanup */
:root {
  --transition-fast: 0.28s var(--ease-out);
  --transition-med: 0.52s var(--ease-out);
  --transition-slow: 0.9s var(--ease-out);
}

.site-shell {
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), filter .55s var(--ease-out);
}

body.page-leaving .site-shell {
  opacity: 0;
  transform: translateY(10px) scale(.992);
  filter: blur(8px);
}

.reveal {
  transition-duration: 1.05s !important;
  transition-timing-function: cubic-bezier(.16, 1, .3, 1) !important;
}

.delay-1 { transition-delay: .18s !important; }
.delay-2 { transition-delay: .34s !important; }
.delay-3 { transition-delay: .50s !important; }

body.portal-unlocked .site-shell {
  animation: portalAppsAppear 1.15s cubic-bezier(.16,1,.3,1) both !important;
}

body.portal-unlocked .site-header,
body.portal-unlocked .home-hero-title,
body.portal-unlocked .home-hero-sub,
body.portal-unlocked .shortcut-panel,
body.portal-unlocked .content-card,
body.portal-unlocked .compact-notice-row {
  animation: portalIconRise .98s cubic-bezier(.16,1,.3,1) both !important;
}

.portal-command-hero .mini-shortcut-rail,
.mini-shortcut-rail {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.mini-shortcut {
  min-height: 150px !important;
  flex-direction: column !important;
}

.mini-shortcut-copy small {
  -webkit-line-clamp: 4;
}

.shortcut-panel-head {
  grid-template-columns: auto 1fr !important;
}

.quick-more-button,
.quick-links-modal {
  display: none !important;
}

.password-brand {
  display: flex !important;
  justify-content: center !important;
  padding: 22px !important;
}

.password-brand .eyebrow,
.password-brand h1 {
  display: none !important;
}

.password-logo {
  width: min(100%, 360px) !important;
  max-height: 120px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.password-form {
  gap: 12px !important;
}

.password-text {
  order: 2;
  margin: 0 0 8px !important;
  text-align: center !important;
  color: rgba(226,232,240,.76) !important;
}

.password-form input {
  order: 1;
}

.password-form .btn-primary {
  order: 3;
}

body[data-page="tutoriali"] .page-hero,
body[data-page="tutoriali"] .page-hero .intro,
body[data-page="tutoriali"] .page-hero .badge,
body[data-page="tutoriali"] .card-head,
body[data-page="tutoriali"] .tutorial-grid,
body[data-page="tutoriali"] .tutorial-card,
body[data-page="tutoriali"] .tutorial-copy {
  display: none !important;
}

.tutorial-soon {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
}

body[data-page="tutoriali"] .content-card--tutorials {
  background: rgba(4, 8, 14, .72) !important;
  border-color: rgba(255,255,255,.12) !important;
  margin-top: 90px;
}

@media (max-width: 1180px) {
  .portal-command-hero .mini-shortcut-rail,
  .mini-shortcut-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .portal-command-hero .mini-shortcut-rail,
  .mini-shortcut-rail {
    grid-template-columns: 1fr !important;
  }

  .mini-shortcut {
    min-height: 104px !important;
    flex-direction: row !important;
  }

  .password-logo {
    max-height: 92px !important;
  }
}
