/* InProgress – spoločný vzhľad (web, portál, admin) */
:root {
  --bg: #09090B;
  --bg-2: #0D0D0F;
  --surface: #111113;
  --surface-2: #18181B;
  --input: #0B0B0D;
  --line: #27272A;
  --line-2: #3F3F46;
  --text: #EDEDEF;
  --text-2: #D4D4D8;
  --muted: #A1A1AA;
  --dim: #8E8E96;
  --purple: #6D4AFF;
  --purple-text: #A18BFF;
  --purple-soft: #1E1638;
  --purple-light: #C4B8FF;
  --orange: #F2994A;
  --orange-soft: #2A1C10;
  --green: #3DD68C;
  --green-soft: #0F2A1C;
  --red: #FF8A8A;
  --red-soft: #1E1010;
  --sky: #7DD3FC;
  --sky-soft: #0E1F2A;
  --radius: 14px;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --line-soft: #1F1F23;
  --purple-line: #4B3A99;
  --purple-line-soft: #2A2150;
  --purple-bg: #120E22;
  --orange-line: #5A3A1A;
  --green-line: #1F4D35;
  --green-text: #7EE2A8;
  --red-line: #4A2323;
  --sky-line: #1D3B4F;
  --placeholder: #71717A;
  --grid: #17171A;
  --skel-a: #141417;
  --skel-b: #1C1C20;
  --scroll: #2E2E33;
  --logo-bar: #C9C9CF;
  --nav-bg: rgba(9, 9, 11, .72);
  --nav-bg-2: rgba(9, 9, 11, .88);
  --scrim: rgba(5, 5, 7, .65);
  --glass: rgba(17, 17, 19, .85);
  --shadow: rgba(0, 0, 0, .85);
  color-scheme: dark;
}

/* Svetlý režim: podľa systému (ak si ho používateľ neprepol) alebo ručne cez prepínač */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F7F7F4;
    --bg-2: #F0F0EB;
    --surface: #FFFFFF;
    --surface-2: #F2F2EE;
    --input: #FFFFFF;
    --line: #E3E3DE;
    --line-2: #C9C9C2;
    --line-soft: #ECECE7;
    --text: #121214;
    --text-2: #2E2E33;
    --muted: #5B5B63;
    --dim: #626269;
    --purple: #6D4AFF;
    --purple-text: #5B3DF5;
    --purple-soft: #EEEAFF;
    --purple-light: #4A2FD9;
    --purple-line: #CFC4FF;
    --purple-line-soft: #E2DBFF;
    --purple-bg: #F6F3FF;
    --orange: #9A520B;
    --orange-soft: #FDF0E2;
    --orange-line: #F0D2AE;
    --green: #137544;
    --green-soft: #E5F5EC;
    --green-line: #B6E2C8;
    --green-text: #146C41;
    --red: #C2302E;
    --red-soft: #FDECEB;
    --red-line: #F2C4C2;
    --sky: #0A6A93;
    --sky-soft: #E4F2F9;
    --sky-line: #B6DAEA;
    --placeholder: #9A9AA1;
    --grid: #EAEAE5;
    --skel-a: #ECECE7;
    --skel-b: #F6F6F2;
    --scroll: #D2D2CB;
    --logo-bar: #C9C9CF;
    --nav-bg: rgba(247, 247, 244, .78);
    --nav-bg-2: rgba(247, 247, 244, .92);
    --scrim: rgba(20, 20, 26, .35);
    --glass: rgba(255, 255, 255, .88);
    --shadow: rgba(30, 30, 40, .18);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F7F7F4;
  --bg-2: #F0F0EB;
  --surface: #FFFFFF;
  --surface-2: #F2F2EE;
  --input: #FFFFFF;
  --line: #E3E3DE;
  --line-2: #C9C9C2;
  --line-soft: #ECECE7;
  --text: #121214;
  --text-2: #2E2E33;
  --muted: #5B5B63;
  --dim: #626269;
  --purple: #6D4AFF;
  --purple-text: #5B3DF5;
  --purple-soft: #EEEAFF;
  --purple-light: #4A2FD9;
  --purple-line: #CFC4FF;
  --purple-line-soft: #E2DBFF;
  --purple-bg: #F6F3FF;
  --orange: #9A520B;
  --orange-soft: #FDF0E2;
  --orange-line: #F0D2AE;
  --green: #137544;
  --green-soft: #E5F5EC;
  --green-line: #B6E2C8;
  --green-text: #146C41;
  --red: #C2302E;
  --red-soft: #FDECEB;
  --red-line: #F2C4C2;
  --sky: #0A6A93;
  --sky-soft: #E4F2F9;
  --sky-line: #B6DAEA;
  --placeholder: #9A9AA1;
  --grid: #EAEAE5;
  --skel-a: #ECECE7;
  --skel-b: #F6F6F2;
  --scroll: #D2D2CB;
  --logo-bar: #C9C9CF;
  --nav-bg: rgba(247, 247, 244, .78);
  --nav-bg-2: rgba(247, 247, 244, .92);
  --scrim: rgba(20, 20, 26, .35);
  --glass: rgba(255, 255, 255, .88);
  --shadow: rgba(30, 30, 40, .18);
  color-scheme: light;
}
/* Terminál a ukážky kódu ostávajú tmavé aj vo svetlom režime */
.term, .side-term, .hud, .lightbox {
  --bg: #09090B; --bg-2: #0D0D0F; --surface: #111113; --surface-2: #18181B; --input: #0B0B0D; --line: #27272A; --line-2: #3F3F46; --line-soft: #1F1F23;
  --text: #EDEDEF; --text-2: #D4D4D8; --muted: #A1A1AA; --dim: #8E8E96; --purple-text: #A18BFF; --purple-soft: #1E1638; --purple-light: #C4B8FF;
  --orange: #F2994A; --green: #3DD68C; --red: #FF8A8A; --sky: #7DD3FC; --purple-line: #4B3A99; color-scheme: dark;
  color: var(--text);
}


*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--purple-text); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.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; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.grid-bg {
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
}
.section { padding-top: 120px; padding-bottom: 120px; }
.bt { border-top: 1px solid var(--line); }
.bb { border-bottom: 1px solid var(--line); }
.alt { background: var(--bg-2); }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--text); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.logo-mark .lm { width: 100%; height: 100%; display: block; }
.lm-s { fill: var(--accent, var(--purple)); }
/* posledný dielik „načítava“ – bliká ako kurzor */
@keyframes lm-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .25; } }
.lm-b { animation: lm-blink 1.1s steps(1) infinite; }
.logo:hover .lm-b { animation-duration: .45s; }
@media (prefers-reduced-motion: reduce) { .lm-b { animation: none; } }
@media print { .lm-b { animation: none; } }
.logo-text { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; display: inline-flex; align-items: center; }
/* „I“ v InProgress je textový kurzor */
.lt-i { width: .5em; height: 1.06em; color: var(--accent, var(--purple)); margin-right: .02em; flex: none; }

/* Navigácia */
.banner { display: block; border-bottom: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.banner .wrap { padding-top: 11px; padding-bottom: 11px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: center; }
.tag-new { padding: 2px 8px; border-radius: 6px; background: var(--purple-soft); color: var(--purple-text); }
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 12px 0; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent, var(--purple-text)); }
.nav-links .btn { padding: 0 16px; color: var(--text); }
.nav-links .btn-light { color: var(--bg); }

/* Tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); color: inherit; border-color: var(--line-2); }
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-light { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-light:hover:not(:disabled) { color: var(--bg); }
.btn-purple { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-purple:hover:not(:disabled) { color: #fff; }
.btn-orange { background: var(--orange); color: var(--bg); border-color: var(--orange); font-weight: 600; }
.btn-orange:hover:not(:disabled) { color: var(--bg); }
.btn-green { background: #1A7F4E; color: #fff; border-color: #1A7F4E; }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red-line); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-mono { font-family: var(--mono); font-size: 14px; }

/* Štítky */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.pill-purple { background: var(--purple-soft); color: var(--purple-light); }
.pill-orange { background: var(--orange-soft); color: var(--orange); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-sky { background: var(--sky-soft); color: var(--sky); }
.pill-gray { background: var(--surface-2); color: var(--text-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }

.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent-text, var(--purple-text)); }
.h1 { font-size: clamp(46px, 6.6vw, 96px); line-height: .98; font-weight: 600; letter-spacing: -0.05em; }
.h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; }
.h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }
.gray { color: var(--dim); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.card-hover { transition: transform .25s ease, border-color .25s ease; }
.card-hover:hover { transform: translateY(-4px); border-color: var(--line-2); }
.icon-box { width: 40px; height: 40px; border-radius: 10px; background: var(--purple-soft); color: var(--purple-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-box.orange { background: var(--orange-soft); color: var(--orange); }

.row { display: flex; flex-wrap: wrap; gap: 16px; }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.between { justify-content: space-between; }
.center { align-items: center; }
.end { align-items: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }

/* Formuláre */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 14px; font-weight: 500; }
.input, .textarea, .select { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); color: var(--text); font-size: 15px; }
.textarea { padding: 12px 14px; line-height: 1.55; resize: vertical; min-height: 110px; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--purple-text); box-shadow: 0 0 0 3px rgba(161, 139, 255, .25); }
.input.invalid, .textarea.invalid { border-color: var(--red); }
.err { font-size: 13px; color: var(--red); }
.hint { font-size: 13px; color: var(--dim); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--purple); flex-shrink: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--input); color: var(--text-2); font-size: 14px; transition: background-color .2s, color .2s, border-color .2s; }
.seg button:hover { border-color: var(--line-2); }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg.purple button[aria-pressed="true"], .seg.purple button[aria-checked="true"] { background: var(--purple-soft); color: var(--purple-light); border-color: var(--purple); }

/* Pätička */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer a { color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Toast */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 90; max-width: calc(100vw - 48px); padding: 14px 18px; border-radius: 12px; border: 1px solid var(--green-line); background: var(--green-soft); color: var(--green-text); font-size: 14px; animation: toast 3s ease both; }
.toast.error { border-color: var(--red-line); background: var(--red-soft); color: var(--red); }

/* Animácie */
@keyframes toast { 0% { opacity: 0; transform: translateY(12px); } 10% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, .6); } 70% { box-shadow: 0 0 0 8px rgba(61, 214, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); } }
@keyframes word { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pipe { from { left: -20%; } to { left: 100%; } }
.pop { animation: pop .3s cubic-bezier(.2, .7, .2, 1) both; }
.cursor { display: inline-block; width: 9px; height: 17px; vertical-align: -3px; background: var(--text); animation: blink 1s steps(1) infinite; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin 1.2s linear infinite; }
.pulse { animation: pulse 2s infinite; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .cursor { animation: none; }
}

@media (max-width: 720px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
  .nav-links { gap: 2px 18px; }
}

/* ============ Doladenie (v2) ============ */
:root { color-scheme: dark; --ease: cubic-bezier(.2, .7, .2, 1); }
::selection { background: rgba(109, 74, 255, .45); color: #fff; }
html { scrollbar-color: var(--scroll) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }
body { text-rendering: optimizeLegibility; overflow-x: clip; }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn-purple:hover:not(:disabled) { background: #7B5BFF; box-shadow: 0 8px 24px -10px rgba(109, 74, 255, .8); }
.btn-light:hover:not(:disabled) { background: var(--text-2); border-color: var(--text-2); color: var(--bg); }
.btn .spin { width: 14px; height: 14px; }
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }

/* Sticky navigácia s rozmazaním a mobilným menu */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); transition: border-color .3s, background-color .3s; }
.nav.scrolled { background: var(--nav-bg-2); }
.nav .wrap { flex-wrap: nowrap; }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; flex-shrink: 0; }
.nav-toggle span { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle i { position: absolute; left: 0; width: 18px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle i:nth-child(1) { top: 0; } .nav-toggle i:nth-child(2) { top: 5px; } .nav-toggle i:nth-child(3) { top: 10px; }
.nav.open .nav-toggle i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav.open .nav-toggle i:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: fixed; left: 0; right: 0; top: var(--nav-h, 69px); bottom: 0; z-index: 49; padding: 12px 24px 32px; background: var(--bg); border-top: 1px solid var(--line); flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .nav.open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
  .nav-links a:not(.btn) { color: var(--text); padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
  .nav-links a:not(.btn)::after { content: '→'; position: static; height: auto; background: none; transform: none; color: var(--dim); font-family: var(--mono); font-size: 16px; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--purple-text); }
  .nav-links .btn { margin-top: 16px; min-height: 52px; font-size: 16px; }
  .nav.open .nav-links > * { animation: navIn .4s var(--ease) both; }
  .nav.open .nav-links > *:nth-child(2) { animation-delay: .03s; } .nav.open .nav-links > *:nth-child(3) { animation-delay: .06s; }
  .nav.open .nav-links > *:nth-child(4) { animation-delay: .09s; } .nav.open .nav-links > *:nth-child(5) { animation-delay: .12s; } .nav.open .nav-links > *:nth-child(6) { animation-delay: .15s; }
  body.nav-lock { overflow: hidden; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Polia formulárov */
.input, .textarea, .select { transition: border-color .2s, box-shadow .2s, background-color .2s; }
.input:hover:not(:disabled):not(:focus), .textarea:hover:not(:disabled):not(:focus), .select:hover:not(:disabled):not(:focus) { border-color: var(--line-2); }
.input:disabled, .textarea:disabled, .select:disabled { opacity: .55; cursor: not-allowed; }
.input.invalid, .textarea.invalid, .select.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 138, 138, .12); }
.input.invalid:focus, .textarea.invalid:focus { box-shadow: 0 0 0 3px rgba(255, 138, 138, .22); }
.input.flash { animation: flash .5s ease; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23A1A1AA' stroke-width='1.6'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.field-err { display: block; font-size: 13px; line-height: 1.45; color: var(--red); max-height: 0; opacity: 0; overflow: hidden; margin-top: -8px; transition: max-height .25s var(--ease), opacity .2s, margin-top .25s var(--ease); }
.field-err.on { max-height: 64px; opacity: 1; margin-top: 0; }
.field-err.soft { color: var(--orange); }
.label .opt, label .opt { font-weight: 400; color: var(--dim); }
.req { color: var(--purple-text); margin-left: 2px; }
.counter { align-self: flex-end; margin-top: -2px; font-size: 11px; color: var(--dim); transition: color .2s; }
.counter.warn { color: var(--orange); }
.pw-wrap { position: relative; display: flex; }
.pw-wrap .input { padding-right: 50px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); display: flex; align-items: center; justify-content: center; transition: color .2s, background-color .2s; }
.pw-eye:hover { color: var(--text); background: var(--surface-2); }
.caps { font-size: 12px; color: var(--orange); display: flex; align-items: center; gap: 6px; }
.caps::before { content: '⇪'; font-size: 13px; }
.pw-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--dim); }
.pw-rules li { display: flex; align-items: center; gap: 7px; transition: color .25s; }
.pw-rules i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; transition: background-color .25s, border-color .25s, transform .3s var(--ease); }
.pw-rules i::after { content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--bg); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease) .05s; }
.pw-rules li.ok { color: var(--green); }
.pw-rules li.ok i { background: var(--green); border-color: var(--green); transform: scale(1.08); }
.pw-rules li.ok i::after { transform: rotate(45deg) scale(1); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp .input { height: 60px; padding: 0; text-align: center; font-size: 26px; font-weight: 500; caret-color: var(--purple-text); }
.otp .input.filled { border-color: var(--purple-line); background: var(--purple-bg); animation: pop .2s var(--ease); }
.otp.bad .input { border-color: var(--red); animation: shake .4s ease; }
.otp.ok .input { border-color: var(--green); background: var(--green-soft); transition-delay: calc(var(--i, 0) * 40ms); }
.otp > :nth-child(3) { margin-right: 10px; }
.check input { cursor: pointer; }
.check.invalid-wrap span { color: var(--red); }
.shake { animation: shake .4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px rgba(242, 153, 74, .35); border-color: var(--orange); } }

/* Hláška vo formulári (namiesto toastu) */
.alert { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--red-line); background: var(--red-soft); color: var(--red); font-size: 14px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; animation: pop .25s var(--ease) both; }
.alert::before { content: '!'; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--red); color: var(--bg); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.alert.ok { border-color: var(--green-line); background: var(--green-soft); color: var(--green-text); }
.alert.ok::before { content: '✓'; background: var(--green); }
.alert.info { border-color: var(--purple-line-soft); background: var(--purple-bg); color: var(--purple-light); }
.alert.info::before { content: 'i'; background: var(--purple-text); font-style: italic; font-family: Georgia, serif; }
.alert.warn { border-color: var(--orange-line); background: var(--orange-soft); color: var(--orange); }
.alert.warn::before { background: var(--orange); }
.alert a { color: inherit; }

/* Toast – vylepšený */
.toast { display: flex; align-items: center; gap: 10px; box-shadow: 0 20px 40px -20px var(--shadow); animation: toastIn .35s var(--ease) both; }
.toast.out { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 560px) { .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; } }

/* Dialóg */
.dlg { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s ease both; }
.dlg-box { width: min(440px, 100%); padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 40px 80px -30px var(--shadow); display: flex; flex-direction: column; gap: 14px; animation: dlgIn .3s var(--ease) both; }
.dlg-box h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.dlg-box p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.dlg.out { animation: fade .18s ease reverse both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* Skeleton pri načítaní */
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--skel-a) 0%, var(--skel-b) 40%, var(--skel-a) 80%); background-size: 200% 100%; animation: skel 1.3s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Horný ukazovateľ načítania */
.topbar-load { position: fixed; left: 0; top: 0; height: 2px; z-index: 99; background: linear-gradient(90deg, var(--purple), var(--purple-text)); box-shadow: 0 0 10px var(--purple); width: 0; opacity: 0; transition: width .4s var(--ease), opacity .3s; }
.topbar-load.on { opacity: 1; width: 70%; transition: width 4s cubic-bezier(.1, .6, .2, 1), opacity .2s; }
.topbar-load.done { opacity: 0; width: 100%; transition: width .2s, opacity .4s .2s; }

@media (prefers-reduced-motion: reduce) {
  .nav-links, .nav.open .nav-links > * { transition: none !important; animation: none !important; }
}
.nav-links .btn[aria-current="page"] { box-shadow: none; }
.nav-links .btn-light[aria-current="page"] { color: var(--bg); }
/* backdrop-filter by z menu urobil „kontajner“ pre position:fixed – pri otvorenom menu ho vypneme */
@media (max-width: 820px) { .nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); } }
.footer .foot-legal { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.6; }

/* ---- Prepínač vzhľadu ---- */
.theme-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 16px; line-height: 1; transition: border-color .2s, transform .3s var(--ease, ease); }
.theme-btn:hover { border-color: var(--line-2); color: var(--text); }
.theme-btn:active { transform: rotate(-30deg) scale(.92); }
.theme-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s ease, border-color .35s ease, color .25s ease !important; }
