/* =====================================================================
   Najdko - slogi (Bootstrap 5.3 + lastne komponente)
   Barve so spremenljivke; Bootstrap primarno barvo prepišemo s svojo.
   ===================================================================== */

@font-face {
    font-family: "Jakarta";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../lib/font/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Jakarta";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../lib/font/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --nk-primary: #2F6FDE;
    --nk-primary-rgb: 47, 111, 222;
    --nk-primary-dark: #2152B5;
    --nk-primary-soft: #EAF1FE;
    --nk-accent: #FFB800;
    --nk-accent-soft: #FFF6DB;
    --nk-ink: #172033;
    --nk-muted: #5D6679;
    --nk-soft: #8A93A6;
    --nk-bg: #F4F6FB;
    --nk-surface: #FFFFFF;
    --nk-line: #E3E8F1;
    --nk-success: #1F9D63;
    --nk-success-soft: #E4F6EC;
    --nk-warning: #C98A00;
    --nk-warning-soft: #FFF4D6;
    --nk-danger: #D93F45;
    --nk-danger-soft: #FDECEC;
    --nk-radius: 16px;
    --nk-radius-sm: 12px;
    --nk-shadow: 0 1px 2px rgba(23, 32, 51, .04), 0 6px 20px rgba(23, 32, 51, .06);
    --nk-shadow-lg: 0 20px 60px rgba(23, 32, 51, .16);

    --bs-body-font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--nk-ink);
    --bs-body-bg: var(--nk-bg);
    --bs-primary: var(--nk-primary);
    --bs-primary-rgb: var(--nk-primary-rgb);
    --bs-link-color: var(--nk-primary);
    --bs-link-color-rgb: var(--nk-primary-rgb);
    --bs-link-hover-color: var(--nk-primary-dark);
    --bs-border-color: var(--nk-line);
    --bs-secondary-color: var(--nk-muted);
    --bs-border-radius: 12px;
    --bs-border-radius-lg: 16px;
    --bs-focus-ring-color: rgba(var(--nk-primary-rgb), .25);
}

body {
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    font-weight: 800;
    letter-spacing: -0.025em;
}

.text-muted { color: var(--nk-muted) !important; }
.fs-sm { font-size: .875rem; }
.fs-xs { font-size: .78rem; }
.fw-800 { font-weight: 800; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Gumbi ---------- */
.btn {
    --bs-btn-font-weight: 700;
    --bs-btn-padding-y: .62rem;
    --bs-btn-padding-x: 1.1rem;
    --bs-btn-border-radius: var(--nk-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.btn-lg { --bs-btn-padding-y: .85rem; --bs-btn-padding-x: 1.5rem; --bs-btn-font-size: 1.05rem; }
.btn-sm { --bs-btn-padding-y: .38rem; --bs-btn-padding-x: .75rem; --bs-btn-border-radius: 10px; gap: .35rem; }

.btn-primary {
    --bs-btn-bg: var(--nk-primary);
    --bs-btn-border-color: var(--nk-primary);
    --bs-btn-hover-bg: var(--nk-primary-dark);
    --bs-btn-hover-border-color: var(--nk-primary-dark);
    --bs-btn-active-bg: var(--nk-primary-dark);
    --bs-btn-active-border-color: var(--nk-primary-dark);
    --bs-btn-disabled-bg: var(--nk-primary);
    --bs-btn-disabled-border-color: var(--nk-primary);
    box-shadow: 0 6px 16px rgba(var(--nk-primary-rgb), .25);
}

.btn-accent {
    --bs-btn-color: #2B1D00;
    --bs-btn-bg: var(--nk-accent);
    --bs-btn-border-color: var(--nk-accent);
    --bs-btn-hover-color: #2B1D00;
    --bs-btn-hover-bg: #F0AD00;
    --bs-btn-hover-border-color: #F0AD00;
    --bs-btn-active-bg: #E0A200;
    box-shadow: 0 6px 16px rgba(255, 184, 0, .3);
}

.btn-light {
    --bs-btn-bg: var(--nk-surface);
    --bs-btn-border-color: var(--nk-line);
    --bs-btn-hover-bg: #F0F3F9;
    --bs-btn-hover-border-color: #D6DDEA;
    --bs-btn-color: var(--nk-ink);
}

.btn-soft {
    --bs-btn-color: var(--nk-primary);
    --bs-btn-bg: var(--nk-primary-soft);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--nk-primary-dark);
    --bs-btn-hover-bg: #DCE8FD;
    --bs-btn-active-bg: #D1E1FC;
}

.btn-outline-danger { --bs-btn-color: var(--nk-danger); --bs-btn-border-color: #F2C4C6; --bs-btn-hover-bg: var(--nk-danger); --bs-btn-hover-border-color: var(--nk-danger); }

.btn-icon { width: 44px; height: 44px; padding: 0; }
.btn-icon.btn-sm { width: 36px; height: 36px; }

/* ---------- Obrazci ---------- */
.form-control, .form-select {
    border-radius: var(--nk-radius-sm);
    border-color: var(--nk-line);
    padding: .7rem .9rem;
    min-height: 48px;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(var(--nk-primary-rgb), .6);
    box-shadow: 0 0 0 .22rem rgba(var(--nk-primary-rgb), .15);
}

textarea.form-control { min-height: 96px; }
.form-label { font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.form-text { color: var(--nk-muted); }
.form-check-input:checked { background-color: var(--nk-primary); border-color: var(--nk-primary); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }
.form-switch .form-check-label { padding-top: .15rem; }
.nk-switch { display: flex; gap: .85rem; align-items: flex-start; padding-left: 0; }
.nk-switch .form-check-input { float: none; flex: none; margin: .1rem 0 0; }
.nk-switch-text { flex: 1; min-width: 0; }

.field-validation-error, .text-danger { color: var(--nk-danger) !important; }
.validation-summary-errors ul { padding-left: 1rem; margin-bottom: 0; }

/* Izbira s karticami (vrstni red, vrsta nagrade) */
.nk-choice { position: relative; display: block; cursor: pointer; }
.nk-choice input { position: absolute; opacity: 0; }
.nk-choice-body {
    display: flex; gap: .75rem; align-items: flex-start;
    border: 2px solid var(--nk-line); border-radius: var(--nk-radius-sm);
    padding: .85rem 1rem; background: var(--nk-surface); height: 100%;
    transition: border-color .15s, background .15s;
}
.nk-choice-body i { font-size: 1.35rem; color: var(--nk-muted); line-height: 1.2; }
.nk-choice input:checked + .nk-choice-body { border-color: var(--nk-primary); background: var(--nk-primary-soft); }
.nk-choice input:checked + .nk-choice-body i { color: var(--nk-primary); }
.nk-choice input:focus-visible + .nk-choice-body { box-shadow: 0 0 0 .22rem rgba(var(--nk-primary-rgb), .2); }

/* ---------- Kartice ---------- */
.nk-card {
    background: var(--nk-surface);
    border: 1px solid var(--nk-line);
    border-radius: var(--nk-radius);
    box-shadow: var(--nk-shadow);
}

.nk-card-body { padding: 1.25rem; }
@media (min-width: 768px) { .nk-card-body { padding: 1.5rem; } }

.nk-card-title { font-size: 1.05rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: .5rem; }
.nk-card-title i { color: var(--nk-primary); }

.nk-kicker {
    font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--nk-soft);
}

.nk-divider { border-top: 1px solid var(--nk-line); margin: 1.25rem 0; }

/* ---------- Aplikacija: glava in navigacija ---------- */
.nk-app { min-height: 100vh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { .nk-app { padding-bottom: 2rem; } }

.nk-topbar {
    position: sticky; top: 0; z-index: 1020;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--nk-line);
    padding-top: env(safe-area-inset-top);
}

.nk-topbar-inner { display: flex; align-items: center; gap: 1rem; height: 64px; }

.nk-logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--nk-ink); text-decoration: none; letter-spacing: -0.03em; }
.nk-logo img { width: 34px; height: 34px; }
.nk-logo:hover { color: var(--nk-ink); }
.nk-logo-lg { font-size: 1.6rem; }
.nk-logo-lg img { width: 44px; height: 44px; }

.nk-org { font-size: .8rem; color: var(--nk-muted); border-left: 1px solid var(--nk-line); padding-left: 1rem; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nk-nav { display: none; gap: .25rem; margin-left: auto; }
@media (min-width: 992px) { .nk-nav { display: flex; } }

.nk-nav a {
    display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 10px;
    color: var(--nk-muted); font-weight: 700; text-decoration: none; font-size: .92rem;
}
.nk-nav a:hover { background: #F0F3F9; color: var(--nk-ink); }
.nk-nav a.active { background: var(--nk-primary-soft); color: var(--nk-primary); }

.nk-user { margin-left: auto; }
@media (min-width: 992px) { .nk-user { margin-left: .5rem; } }
.nk-avatar {
    width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--nk-primary-soft); color: var(--nk-primary); font-weight: 800; border: 0;
}

.dropdown-menu { border-radius: var(--nk-radius-sm); border-color: var(--nk-line); box-shadow: var(--nk-shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .55rem .75rem; display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.dropdown-item:active { background: var(--nk-primary); }

/* Spodnja navigacija (telefon) */
.nk-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--nk-line);
    padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 992px) { .nk-bottom-nav { display: none; } }

.nk-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem 0 .55rem;
    color: var(--nk-soft); font-size: .72rem; font-weight: 700; text-decoration: none;
}
.nk-bottom-nav a i { font-size: 1.35rem; line-height: 1; }
.nk-bottom-nav a.active { color: var(--nk-primary); }

.nk-main { padding-top: 1.25rem; }
@media (min-width: 768px) { .nk-main { padding-top: 2rem; } }

/* Glava strani */
.nk-page-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.nk-page-head h1 { font-size: 1.6rem; margin: 0; line-height: 1.15; }
@media (min-width: 768px) { .nk-page-head h1 { font-size: 2rem; } }
.nk-page-head p { margin: .35rem 0 0; color: var(--nk-muted); }
.nk-back { display: inline-flex; align-items: center; gap: .35rem; color: var(--nk-muted); font-weight: 700; text-decoration: none; font-size: .88rem; margin-bottom: .6rem; }
.nk-back:hover { color: var(--nk-primary); }

/* Obvestila */
.nk-alert {
    display: flex; gap: .75rem; align-items: flex-start; border-radius: var(--nk-radius-sm); padding: .85rem 1rem;
    font-weight: 600; border: 1px solid transparent; margin-bottom: 1rem;
}
.nk-alert i { font-size: 1.15rem; line-height: 1.3; }
.nk-alert-success { background: var(--nk-success-soft); color: #11663F; border-color: #BFE8D2; }
.nk-alert-warning { background: var(--nk-warning-soft); color: #6E4B00; border-color: #F5DE9E; }
.nk-alert-danger { background: var(--nk-danger-soft); color: #9B1F24; border-color: #F6C9CB; }
.nk-alert-info { background: var(--nk-primary-soft); color: #1B4796; border-color: #CFDDF9; }

/* Oznake */
.nk-badge {
    display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 800;
    padding: .28rem .6rem; border-radius: 999px; white-space: nowrap;
}
.nk-badge-live { background: var(--nk-success-soft); color: var(--nk-success); }
.nk-badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--nk-success); box-shadow: 0 0 0 3px rgba(31, 157, 99, .18); }
.nk-badge-draft { background: #EEF0F5; color: var(--nk-muted); }
.nk-badge-soft { background: var(--nk-primary-soft); color: var(--nk-primary); }
.nk-badge-warn { background: var(--nk-warning-soft); color: var(--nk-warning); }

/* ---------- Nadzorna plošča ---------- */
.nk-game-card { display: block; text-decoration: none; color: inherit; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.nk-game-card:hover { transform: translateY(-2px); box-shadow: var(--nk-shadow-lg); color: inherit; }
.nk-game-cover {
    height: 132px; background: linear-gradient(135deg, var(--igra, #2F6FDE), #1B2F66);
    background-size: cover; background-position: center; position: relative;
}
.nk-game-cover .nk-badge { position: absolute; top: .75rem; left: .75rem; background: rgba(255, 255, 255, .95); }
.nk-game-cover-mark { position: absolute; right: 1rem; bottom: -22px; width: 48px; height: 48px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--nk-shadow); color: var(--igra, #2F6FDE); font-size: 1.4rem; }

.nk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.nk-stat { background: var(--nk-bg); border-radius: 12px; padding: .6rem .7rem; }
.nk-stat-value { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.nk-stat-label { font-size: .72rem; color: var(--nk-muted); font-weight: 600; }

.nk-plan { background: linear-gradient(135deg, #1D2B55, #2F4FA8); color: #fff; border: 0; }
.nk-plan .text-muted { color: rgba(255, 255, 255, .7) !important; }
.nk-meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.nk-meter > span { display: block; height: 100%; background: var(--nk-accent); border-radius: 999px; }

.nk-empty { text-align: center; padding: 2.5rem 1.25rem; }
.nk-empty-icon {
    width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
    background: var(--nk-primary-soft); color: var(--nk-primary); font-size: 2rem;
}

/* ---------- Pregled igre: koraki ---------- */
.nk-steps { list-style: none; padding: 0; margin: 0; position: relative; }
.nk-step {
    display: flex; align-items: center; gap: .85rem; padding: .75rem; border-radius: 14px;
    border: 1px solid var(--nk-line); background: var(--nk-surface); margin-bottom: .6rem; position: relative;
}
.nk-step-num {
    flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--nk-primary); color: #fff;
    font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center;
}
.nk-step-thumb {
    flex: none; width: 60px; height: 60px; border-radius: 12px; background: #EEF1F7 center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; color: var(--nk-soft); font-size: 1.4rem;
}
.nk-step-body { flex: 1; min-width: 0; }
.nk-step-title { font-weight: 800; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.nk-step-meta { font-size: .78rem; color: var(--nk-muted); display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .15rem; }
.nk-step-meta .ok { color: var(--nk-success); }
.nk-step-meta .miss { color: var(--nk-warning); }
.nk-step-link { position: absolute; inset: 0; border-radius: 14px; }
.nk-step-actions { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .25rem; }
.nk-step-actions .btn { width: 36px; height: 32px; min-height: 0; padding: 0; }
@media (min-width: 576px) { .nk-step-actions { flex-direction: row; } .nk-step-actions .btn { width: 40px; height: 40px; } }
@media (max-width: 575px) { .nk-step { gap: .6rem; } .nk-step-thumb { width: 52px; height: 52px; } }

.nk-step-add {
    display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: 1.1rem;
    border: 2px dashed #C9D3E6; border-radius: 14px; color: var(--nk-primary); font-weight: 800; text-decoration: none; background: transparent;
}
.nk-step-add:hover { background: var(--nk-primary-soft); border-color: var(--nk-primary); color: var(--nk-primary); }
.nk-step-add.disabled { color: var(--nk-soft); pointer-events: none; }

.nk-publish { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nk-checklist { list-style: none; padding: 0; margin: 0; }
.nk-checklist li { display: flex; gap: .6rem; padding: .35rem 0; font-size: .9rem; }
.nk-checklist li i { color: var(--nk-warning); }

.nk-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .nk-tiles { grid-template-columns: repeat(4, 1fr); } }
.nk-tile {
    display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border-radius: 14px; border: 1px solid var(--nk-line);
    background: var(--nk-surface); text-decoration: none; color: var(--nk-ink); font-weight: 800; transition: border-color .15s, transform .15s;
}
.nk-tile i { font-size: 1.4rem; color: var(--nk-primary); }
.nk-tile small { font-weight: 600; color: var(--nk-muted); }
.nk-tile:hover { border-color: var(--nk-primary); color: var(--nk-ink); transform: translateY(-1px); }

/* ---------- Korak: fotografije ---------- */
.nk-camera {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    width: 100%; min-height: 148px; border-radius: var(--nk-radius); cursor: pointer; text-align: center;
    border: 2px dashed rgba(var(--nk-primary-rgb), .45); background: var(--nk-primary-soft); color: var(--nk-primary);
    font-weight: 800; transition: background .15s;
}
.nk-camera:hover { background: #DFEAFE; }
.nk-camera i { font-size: 2.2rem; }
.nk-camera small { font-weight: 600; color: var(--nk-muted); }
.nk-camera.busy { opacity: .6; pointer-events: none; }

.nk-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (min-width: 576px) { .nk-photos { grid-template-columns: repeat(4, 1fr); } }
.nk-photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #EEF1F7; }
.nk-photo img { width: 100%; height: 100%; object-fit: cover; }
.nk-photo-star {
    position: absolute; left: .4rem; top: .4rem; font-size: .7rem; font-weight: 800; padding: .15rem .45rem; border-radius: 999px;
    background: var(--nk-accent); color: #2B1D00;
}
.nk-photo-actions { position: absolute; right: .35rem; top: .35rem; display: flex; flex-direction: column; gap: .3rem; }
.nk-photo-actions button {
    width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(23, 32, 51, .7); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.nk-photo-uploading { display: flex; align-items: center; justify-content: center; }

.nk-test-result { border-radius: 14px; padding: 1rem; display: flex; gap: .85rem; align-items: center; }
.nk-test-result i { font-size: 1.8rem; }
.nk-test-ok { background: var(--nk-success-soft); color: #11663F; }
.nk-test-mid { background: var(--nk-warning-soft); color: #6E4B00; }
.nk-test-bad { background: var(--nk-danger-soft); color: #9B1F24; }
.nk-gauge { height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .08); position: relative; overflow: visible; margin-top: .4rem; }
.nk-gauge > span { display: block; height: 100%; border-radius: 999px; background: currentColor; }
.nk-gauge > b { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--nk-ink); border-radius: 2px; }

/* Jezikovni zavihki */
.nk-langs { display: flex; gap: .4rem; flex-wrap: wrap; }
.nk-lang {
    display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; font-weight: 800; font-size: .85rem;
    border: 1px solid var(--nk-line); background: var(--nk-surface); color: var(--nk-muted); text-decoration: none;
}
.nk-lang.active { background: var(--nk-ink); border-color: var(--nk-ink); color: #fff; }
.nk-lang .miss { width: 7px; height: 7px; border-radius: 50%; background: var(--nk-accent); }
.nk-ref { background: var(--nk-bg); border-radius: 10px; padding: .55rem .75rem; font-size: .85rem; color: var(--nk-muted); margin-top: .4rem; }
.nk-ref b { color: var(--nk-soft); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-right: .35rem; }

/* Lepljiva vrstica za shranjevanje (telefon) */
.nk-savebar {
    position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 1010; margin-top: 1.25rem;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border: 1px solid var(--nk-line);
    border-radius: var(--nk-radius); padding: .6rem; box-shadow: var(--nk-shadow-lg); display: flex; gap: .5rem;
}
@media (min-width: 992px) { .nk-savebar { bottom: 1rem; } }
.nk-savebar .btn { flex: 1; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .nk-savebar .btn { font-size: .92rem; padding-left: .7rem; padding-right: .7rem; } }
.nk-savebar .btn-light { flex: 0 0 auto; padding-left: 1rem; padding-right: 1rem; }

/* ---------- QR ---------- */
.nk-qr-row { display: flex; gap: 1rem; align-items: center; }
.nk-qr-thumb { flex: none; width: 88px; height: 88px; border-radius: 12px; border: 1px solid var(--nk-line); padding: 6px; background: #fff; }
.nk-qr-thumb canvas, .nk-qr-thumb img { width: 100%; height: 100%; image-rendering: pixelated; }
.nk-link { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .78rem; color: var(--nk-muted); word-break: break-all; }

/* ---------- Statistika ---------- */
.nk-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .nk-kpis { grid-template-columns: repeat(4, 1fr); } }
.nk-kpi { padding: 1rem 1.1rem; }
.nk-kpi-value { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.nk-kpi-label { color: var(--nk-muted); font-size: .8rem; font-weight: 700; margin-top: .2rem; }

.nk-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: .5rem; }
.nk-chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; min-width: 0; }
.nk-chart-bar { background: rgba(var(--nk-primary-rgb), .22); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.nk-chart-bar > span { position: absolute; left: 0; right: 0; bottom: 0; background: var(--nk-primary); border-radius: 4px 4px 0 0; }
.nk-chart-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--nk-soft); margin-top: .4rem; font-weight: 600; }
.nk-legend { display: flex; gap: 1rem; font-size: .78rem; color: var(--nk-muted); font-weight: 600; }
.nk-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.nk-legend .l1::before { background: rgba(var(--nk-primary-rgb), .22); }
.nk-legend .l2::before { background: var(--nk-primary); }

.nk-funnel-row { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .6rem; align-items: center; margin-bottom: .7rem; }
.nk-funnel-num { font-weight: 800; color: var(--nk-soft); text-align: right; }
.nk-funnel-bar { height: 34px; border-radius: 10px; background: #EEF1F7; position: relative; overflow: hidden; }
.nk-funnel-bar > span { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--nk-primary), #5B8FEA); border-radius: 10px; }
.nk-funnel-bar > em { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; font-size: .85rem; color: #fff; white-space: nowrap; max-width: calc(100% - 1.5rem); overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.nk-funnel-bar.light > em { color: var(--nk-ink); text-shadow: none; }
.nk-funnel-val { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 3.2rem; text-align: right; }

.nk-seg { display: inline-flex; background: #E9EDF5; border-radius: 12px; padding: 3px; gap: 2px; }
.nk-seg a { padding: .38rem .75rem; border-radius: 9px; font-weight: 800; font-size: .82rem; color: var(--nk-muted); text-decoration: none; }
.nk-seg a.active { background: #fff; color: var(--nk-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.table-nk { --bs-table-bg: transparent; margin: 0; }
.table-nk th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--nk-soft); font-weight: 800; border-bottom-width: 1px; }
.table-nk td { vertical-align: middle; font-weight: 600; }

/* ---------- Unovčenje ---------- */
.nk-code-input { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: .2em; text-align: center; text-transform: uppercase; min-height: 64px; }
.nk-result { border-radius: var(--nk-radius); padding: 1.5rem; text-align: center; }
.nk-result i { font-size: 3rem; }

/* ---------- Prijava / registracija ---------- */
.nk-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .nk-auth { grid-template-columns: 1fr 1fr; } }
.nk-auth-form { display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.25rem; }
.nk-auth-form > div { width: 100%; max-width: 420px; margin: 0 auto; }
.nk-auth-side {
    display: none; position: relative; overflow: hidden; color: #fff; padding: 3rem;
    background: radial-gradient(1200px 600px at 100% 0%, #5B8FEA 0%, transparent 60%), linear-gradient(160deg, #2F6FDE, #1B2F66);
}
@media (min-width: 992px) { .nk-auth-side { display: flex; flex-direction: column; justify-content: flex-end; } }
.nk-auth-side h2 { font-size: 2.2rem; max-width: 460px; }
.nk-auth-side p { color: rgba(255, 255, 255, .8); max-width: 440px; }

/* ---------- Landing ---------- */
.nk-landing { background: #fff; }
.nk-landing-nav { position: sticky; top: 0; z-index: 1020; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nk-landing-nav.scrolled { border-bottom-color: var(--nk-line); }

.nk-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(91, 143, 234, .35), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(255, 184, 0, .18), transparent 60%),
        linear-gradient(180deg, #F3F7FF 0%, #FFFFFF 100%);
}
.nk-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.04em; }
.nk-hero h1 em { font-style: normal; background: linear-gradient(90deg, #2F6FDE, #7B5CF0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nk-hero-lead { font-size: 1.15rem; color: var(--nk-muted); max-width: 540px; }
.nk-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; background: #fff; border: 1px solid var(--nk-line); font-weight: 700; font-size: .85rem; box-shadow: var(--nk-shadow); }
.nk-pill b { background: var(--nk-accent); color: #2B1D00; border-radius: 999px; padding: .1rem .5rem; font-size: .72rem; }

/* Telefon v heroju */
.nk-phone-wrap { position: relative; display: flex; justify-content: center; padding: 1rem 0 2rem; }
.nk-phone {
    width: 290px; border-radius: 44px; padding: 12px; background: #11172A; box-shadow: var(--nk-shadow-lg), 0 0 0 2px #2A3350 inset;
    position: relative; z-index: 2; transform: rotate(-3deg);
}
.nk-phone-screen { border-radius: 34px; overflow: hidden; background: #F4F6FB; height: 560px; display: flex; flex-direction: column; }
.nk-phone-top { background: var(--nk-primary); color: #fff; padding: 2.2rem 1.1rem 1rem; }
.nk-phone-progress { display: flex; gap: 5px; margin-top: .7rem; }
.nk-phone-progress span { flex: 1; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.nk-phone-progress span.on { background: var(--nk-accent); }
.nk-phone-card { margin: -.2rem .9rem 0; background: #fff; border-radius: 22px; box-shadow: var(--nk-shadow); overflow: hidden; }
.nk-phone-img { height: 190px; background: linear-gradient(135deg, #FFE3A3, #F7B267 55%, #E2703A); position: relative; display: flex; align-items: center; justify-content: center; font-size: 4.2rem; }
.nk-phone-found { position: absolute; left: .7rem; top: .7rem; background: #fff; color: var(--nk-success); font-weight: 800; font-size: .72rem; padding: .25rem .55rem; border-radius: 999px; }
.nk-phone-btn { margin: auto .9rem 1.1rem; background: var(--nk-primary); color: #fff; border-radius: 16px; padding: .9rem; text-align: center; font-weight: 800; }
.nk-float {
    position: absolute; z-index: 3; background: #fff; border-radius: 16px; box-shadow: var(--nk-shadow-lg); padding: .7rem .9rem;
    display: flex; gap: .6rem; align-items: center; font-weight: 700; font-size: .85rem;
}
.nk-float i { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.nk-float-1 { left: 0; top: 40%; }
.nk-float-2 { right: 0; bottom: 18%; }
@media (max-width: 575px) { .nk-float-1 { left: -4px; } .nk-float-2 { right: -4px; } }

.nk-section { padding: 5rem 0; }
.nk-section-sm { padding: 3.5rem 0; }
.nk-section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.035em; }
.nk-section-lead { color: var(--nk-muted); font-size: 1.08rem; max-width: 620px; }

.nk-usecases { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.nk-usecase { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: var(--nk-bg); font-weight: 700; color: var(--nk-muted); }
.nk-usecase i { color: var(--nk-primary); }

.nk-howto { counter-reset: korak; }
.nk-howto-item { position: relative; padding: 1.5rem; height: 100%; }
.nk-howto-num { width: 44px; height: 44px; border-radius: 14px; background: var(--nk-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 1rem; box-shadow: 0 8px 18px rgba(var(--nk-primary-rgb), .3); }

.nk-feature { padding: 1.5rem; height: 100%; }
.nk-feature-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--nk-primary-soft); color: var(--nk-primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.nk-feature h3 { font-size: 1.1rem; }
.nk-feature p { color: var(--nk-muted); margin: 0; }

.nk-dark { background: #111A33; color: #fff; }
.nk-dark .nk-section-lead, .nk-dark .text-muted { color: rgba(255, 255, 255, .7) !important; }

.nk-price { padding: 2rem; height: 100%; display: flex; flex-direction: column; }
.nk-price-name { font-weight: 800; font-size: 1.1rem; }
.nk-price-value { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; }
.nk-price ul { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; }
.nk-price li { display: flex; gap: .6rem; padding: .35rem 0; font-weight: 600; }
.nk-price li i { color: var(--nk-success); }
.nk-price-featured { border: 2px solid var(--nk-primary); position: relative; }
.nk-price-tag { position: absolute; top: -13px; left: 2rem; background: var(--nk-primary); color: #fff; font-weight: 800; font-size: .75rem; padding: .25rem .7rem; border-radius: 999px; }

.accordion-nk .accordion-item { border: 1px solid var(--nk-line); border-radius: 14px !important; margin-bottom: .6rem; overflow: hidden; }
.accordion-nk .accordion-button { font-weight: 800; padding: 1.1rem 1.25rem; }
.accordion-nk .accordion-button:not(.collapsed) { background: var(--nk-primary-soft); color: var(--nk-ink); box-shadow: none; }
.accordion-nk .accordion-button:focus { box-shadow: none; }
.accordion-nk .accordion-body { color: var(--nk-muted); }

.nk-cta { border-radius: 28px; padding: 3rem 1.5rem; background: radial-gradient(700px 300px at 90% 0%, #5B8FEA, transparent 70%), linear-gradient(135deg, #2F6FDE, #1B2F66); color: #fff; text-align: center; }
.nk-cta p { color: rgba(255, 255, 255, .8); }

.nk-footer { padding: 2.5rem 0; border-top: 1px solid var(--nk-line); color: var(--nk-muted); font-size: .9rem; }

/* Izbira jezika (javne strani) */
.nk-lang-switch { display: inline-flex; gap: 2px; }
.nk-lang-switch button { border: 0; background: transparent; font-weight: 800; font-size: .8rem; color: var(--nk-soft); padding: .35rem .5rem; border-radius: 8px; }
.nk-lang-switch button.active { background: var(--nk-bg); color: var(--nk-ink); }

/* ---------- Tisk QR ---------- */
@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; }
}

/* ---------- Urejanje prevodov (samo za urednike - _PrevodiUrejanje.cshtml) ---------- */
.prevod { position: relative; border-radius: 3px; }
.prevod:hover { outline: 1px dashed var(--nk-primary); outline-offset: 2px; }
.prevod-uredi {
    display: none; position: absolute; top: -12px; right: -12px; z-index: 1060; width: 22px; height: 22px;
    align-items: center; justify-content: center; border-radius: 50%; background: var(--nk-primary); color: #fff;
    font-size: 12px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.prevod:hover .prevod-uredi, .prevod-uredi:focus { display: inline-flex; }
.prevod-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.prevod-modal[hidden] { display: none; }
.prevod-modal-ozadje { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.prevod-modal-okno { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; }
body.prevod-modal-odprt { overflow: hidden; }

[x-cloak] { display: none !important; }

@media (min-width:768px){.w-md-auto{width:auto!important}}
@media (max-width: 575px) { .table-nk th, .table-nk td { padding-left: .4rem; padding-right: .4rem; } .table-nk th { letter-spacing: .04em; } }
