@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-display: swap; src: url(fonts/inter-tight-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-display: swap; src: url(fonts/inter-tight-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #05040a;
  --glass: rgba(20, 17, 32, .62);
  --glass2: rgba(30, 26, 46, .7);
  --field: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #f6f3ff;
  --muted: #d4cde6;
  --dim: #a69fbd;
  --accent: #c4b5fd;
  --err: #fda4af;
  --good: #6ee7b7;
  --gold: #f5d08a;
  --v: #8b5cf6; --p: #ec4899; --a: #f59e0b;
  --grad: linear-gradient(110deg, #7c3aed 0%, #c026d3 50%, #ec4899 100%);
  --grad3: linear-gradient(90deg, #a78bfa, #f472b6 55%, #fbbf24);
  --ring: linear-gradient(135deg, rgba(167,139,250,.55), rgba(244,114,182,.25) 40%, rgba(255,255,255,.04) 70%, rgba(251,191,36,.35));
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 50px -20px rgba(0,0,0,.8);
  --r: 20px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 500 17px/1.5 "Inter Tight", system-ui, -apple-system, sans-serif; min-height: 100vh; font-feature-settings: "tnum" 1, "ss01" 1; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(236,72,153,.35); }

/* Ozadje: počasi premikajoč se sij */
.aurora { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; background: radial-gradient(120% 80% at 50% -20%, #120c24 0%, var(--bg) 60%); }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1.2px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .32; animation: plavaj 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #6d28d9; top: -30vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: #be185d; top: -25vmax; right: -25vmax; opacity: .22; animation-duration: 32s; animation-delay: -8s; }
.aurora i:nth-child(3) { background: #b45309; bottom: -45vmax; left: 20vmax; opacity: .12; animation-duration: 40s; animation-delay: -16s; }
@keyframes plavaj { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vmax, 4vmax) scale(1.08); } 100% { transform: translate(-4vmax, 7vmax) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .aurora i, .seal-ring { animation: none !important; } }

main { max-width: 760px; margin: 0 auto; padding: 0 16px calc(env(safe-area-inset-bottom) + 110px); animation: pojavi .35s ease both; }
@keyframes pojavi { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; font-weight: 750; margin: 6px 0 8px; }
h2 { font-size: 13px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .22em; margin: 28px 0 10px; display: flex; align-items: center; gap: 10px; }
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
a { color: var(--accent); text-decoration: none; word-break: break-all; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; background: none; }
button:disabled { opacity: .5; cursor: default; }
.center { text-align: center; }
.grad { background: var(--grad3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.left { text-align: left !important; }
.dim { color: var(--dim); }
.fine { color: var(--dim); font-size: 14.5px; text-align: center; margin-top: 18px; }
.err { color: var(--err); min-height: 1em; margin: 10px 0 0; font-size: 16px; }
.ok { color: var(--good); font-size: 16px; }
.warn { color: var(--err) !important; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.ik { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Glava */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 12px) 0 12px; margin-bottom: 8px; background: linear-gradient(to bottom, rgba(5,4,10,.92), rgba(5,4,10,.6) 70%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.logo { display: flex; align-items: center; gap: 10px; }
.mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff; background: var(--grad); box-shadow: 0 6px 20px -4px rgba(236,72,153,.55), 0 0 0 1px rgba(255,255,255,.15) inset; position: relative; }
.mark::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.wordmark { font-weight: 800; letter-spacing: .14em; font-size: 16px; display: flex; flex-direction: column; line-height: 1.05; }
.wordmark small { font-weight: 600; letter-spacing: .3em; font-size: 11.5px; color: var(--dim); text-transform: uppercase; margin-top: 3px; }
.iconbtn, .pill { height: 40px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; transition: background .2s, border-color .2s, transform .1s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.iconbtn { width: 40px; }
.pill { padding: 0 14px; font-size: 16px; font-weight: 600; }
.iconbtn:hover, .pill:hover { background: var(--glass2); border-color: rgba(255,255,255,.24); }
.iconbtn:active, .pill:active, .btn:active, .chip:active, .item:active, .stat:active { transform: scale(.98); }

/* Kartice in steklo */
.card, .glass { background: var(--glass); border: 1px solid var(--line); border-radius: 24px; padding: 26px 22px; box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); position: relative; }
.narrow { max-width: 420px; margin: 7vh auto 0; }
.login::before { content: ""; position: absolute; inset: -1px; border-radius: 25px; padding: 1px; background: var(--ring); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* Pečat na prijavi */
.seal { position: relative; width: 84px; height: 84px; margin: 4px auto 18px; display: grid; place-items: center; }
.seal-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #8b5cf6, #ec4899, #f59e0b, #8b5cf6); animation: vrti 8s linear infinite; filter: blur(.3px); }
.seal-ring::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #0d0a18; }
.seal::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(236,72,153,.35), transparent 65%); filter: blur(8px); }
.seal-ik { position: relative; width: 34px; height: 34px; stroke: #fff; stroke-width: 1.6; }
@keyframes vrti { to { transform: rotate(360deg); } }

/* Polja */
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { border-color: rgba(167,139,250,.7); box-shadow: 0 0 0 4px rgba(139,92,246,.18); background: rgba(255,255,255,.06); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
option { background: #15121f; }
textarea { resize: vertical; }
label { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin: 16px 0 7px; letter-spacing: .01em; }
label > input, label > select, label > textarea, label > .row { margin-top: 7px; color: var(--text); font-weight: 400; }
.codefield { position: relative; margin-top: 18px; }
.codefield input { padding: 16px 52px 16px 18px; font-size: 18px; letter-spacing: .08em; border-radius: 16px; text-align: center; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--dim); }
.eye.on { color: var(--accent); }
.search { position: relative; }
.search .ik { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search input { border-radius: 999px; padding: 13px 16px 13px 44px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
input[type=search]::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }

/* Gumbi */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: var(--grad); background-size: 160% 100%; color: #fff; font-weight: 700; letter-spacing: .01em; border-radius: 999px; padding: 15px; margin-top: 14px; box-shadow: 0 12px 34px -10px rgba(236,72,153,.6), 0 0 0 1px rgba(255,255,255,.12) inset; transition: background-position .4s, transform .1s, box-shadow .2s; }
.btn:hover { background-position: 100% 0; box-shadow: 0 14px 40px -10px rgba(236,72,153,.75), 0 0 0 1px rgba(255,255,255,.18) inset; }
.btn.ghost { background: rgba(255,255,255,.03); box-shadow: none; border: 1px solid var(--line2); color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,.07); }
.danger { color: var(--err) !important; }
.btn.ghost.danger { border-color: rgba(253,164,175,.3); }
.mini { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 12px; font-size: 15px; font-weight: 600; white-space: nowrap; flex: none; transition: background .2s; }
.mini:hover { background: rgba(255,255,255,.1); }
.mini.icon { width: 36px; height: 36px; padding: 0; justify-content: center; }
.mini .ik { width: 15px; height: 15px; }
.linkbtn { color: var(--dim); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; display: block; margin: 12px auto 0; }
.linkbtn.inline { display: inline; margin: 0; font-size: inherit; }

/* Pozdrav in zavihki */
.pozdrav { margin: 6px 0 16px; }
.pozdrav .datum { color: var(--dim); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; }
.pozdrav .hello { font-size: 30px; font-weight: 760; letter-spacing: -.035em; line-height: 1.15; margin-top: 4px; }
.tabs { display: flex; gap: 4px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px; font-weight: 650; color: var(--muted); transition: background .25s, color .25s; }
.tabs button.on { background: #fff; color: #0a0712; box-shadow: 0 6px 18px -6px rgba(255,255,255,.35); }
.tabs.small button { padding: 7px 8px; font-size: 15px; }

/* Nadzorna plošča */
.overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { text-align: left; position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: border-color .2s, transform .1s; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stat:hover { border-color: var(--line2); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: currentColor; opacity: .16; filter: blur(22px); }
.stat-ik { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); margin-bottom: 8px; }
.stat .lbl { color: var(--dim); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.stat .num { color: var(--text); font-size: 19px; font-weight: 760; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .overview { gap: 8px; } .stat { padding: 11px; border-radius: 17px; } .stat-ik { width: 28px; height: 28px; margin-bottom: 6px; } .stat-ik .ik { width: 16px; height: 16px; } .stat .lbl { font-size: 11.5px; letter-spacing: .06em; } .stat .num { font-size: 15.5px; } .stat .sub { font-size: 13px; } .hide-xs { display: none; } .pill { width: 40px; padding: 0; } .pozdrav .hello { font-size: 27px; } }

/* Kategorije */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; gap: 7px; align-items: center; background: rgba(255,255,255,.03); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; font-size: 16px; font-weight: 550; white-space: nowrap; color: var(--muted); transition: all .2s; }
.chip .ik { width: 15px; height: 15px; }
.chip .n { color: var(--dim); font-size: 14px; }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.chip.on { background: #fff; color: #0a0712; border-color: #fff; }
.chip.on .n { color: #6b6480; }

/* Seznam */
.list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.item { display: flex; align-items: center; gap: 13px; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 12px 12px; cursor: pointer; transition: border-color .2s, background .2s, transform .1s; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: pojavi .3s ease both; }
.item:hover { border-color: var(--line2); background: var(--glass2); }
.item .t { font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .s { color: var(--muted); font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.av { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; }
.av .ik { width: 20px; height: 20px; }
.clip { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 14.5px; flex: none; }
.clip .ik { width: 14px; height: 14px; }
.empty { color: var(--muted); text-align: center; padding: 44px 0; }

.k-gesla { color: #c4b5fd; } .k-gesla.av, .k-gesla .stat-ik, .tag.k-gesla { background: rgba(139,92,246,.18); }
.k-podjetje { color: #f9a8d4; } .k-podjetje.av, .k-podjetje .stat-ik, .tag.k-podjetje { background: rgba(236,72,153,.16); }
.k-banka { color: #86efac; } .k-banka.av, .k-banka .stat-ik, .tag.k-banka { background: rgba(34,197,94,.15); }
.k-trgovanje { color: #fcd38a; } .k-trgovanje.av, .k-trgovanje .stat-ik, .tag.k-trgovanje { background: rgba(245,158,11,.16); }
.k-opombe { color: #7dd3fc; } .k-opombe.av, .k-opombe .stat-ik, .tag.k-opombe { background: rgba(56,189,248,.15); }
.k-dokumenti { color: #fde68a; } .k-dokumenti.av, .k-dokumenti .stat-ik, .tag.k-dokumenti { background: rgba(250,204,21,.13); }
.k-denar { color: #6ee7b7; } .k-denar.av, .k-denar .stat-ik, .tag.k-denar { background: rgba(16,185,129,.15); }
.stat .num, .stat .lbl, .stat .sub { color: inherit; } .stat .num { color: var(--text); } .stat .lbl { color: var(--dim); } .stat .sub { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.tag .ik { width: 13px; height: 13px; }

.fab { position: fixed; right: max(16px, calc(50vw - 364px)); bottom: calc(env(safe-area-inset-bottom) + 20px); z-index: 6; display: inline-flex; align-items: center; gap: 8px; background: var(--grad); color: #fff; font-weight: 700; border-radius: 999px; padding: 15px 22px; box-shadow: 0 16px 40px -10px rgba(236,72,153,.7), 0 0 0 1px rgba(255,255,255,.18) inset; transition: transform .15s, box-shadow .2s; }
.fab:hover { transform: translateY(-2px); }

/* Listi (podrobnosti, urejanje) */
.sheet { position: fixed; inset: 0; background: rgba(3,2,8,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: flex-end; justify-content: center; z-index: 10; animation: zatemni .2s ease both; }
@keyframes zatemni { from { opacity: 0; } to { opacity: 1; } }
.sheet .panel { background: linear-gradient(180deg, rgba(28,24,44,.96), rgba(14,12,24,.98)); border: 1px solid var(--line2); border-bottom: 0; border-radius: 28px 28px 0 0; width: 100%; max-width: 680px; max-height: 92vh; overflow: auto; padding: 10px 20px calc(env(safe-area-inset-bottom) + 26px); box-shadow: 0 -30px 80px -20px rgba(0,0,0,.8); animation: gor .32s cubic-bezier(.2,.9,.25,1) both; }
@keyframes gor { from { transform: translateY(40px); } to { transform: none; } }
.grip { width: 42px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); margin: 0 auto 12px; }
@media (min-width: 720px) { .sheet { align-items: center; } .sheet .panel { border-radius: 28px; border-bottom: 1px solid var(--line2); } .grip { display: none; } .sheet .panel { padding-top: 22px; } }
.panel h1 { margin-top: 12px; }
.field { padding: 13px 0; border-top: 1px solid var(--line); }
.lbl { color: var(--dim); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.val { word-break: break-word; font-size: 16px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.pre { white-space: pre-wrap; }
.extra { border: 1px solid var(--line); background: rgba(255,255,255,.02); border-radius: 16px; padding: 10px; margin-bottom: 8px; display: grid; gap: 8px; }
.extra .row { justify-content: space-between; }
.check { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: #a855f7; }
.file { padding: 8px 0; }
details { margin: 12px 0; }
summary { cursor: pointer; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 90px); transform: translateX(-50%); background: rgba(255,255,255,.95); color: #0a0712; font-weight: 650; padding: 11px 20px; border-radius: 999px; z-index: 20; font-size: 16px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.6); animation: gor .25s ease both; }
.spin { width: 28px; height: 28px; margin: 40px auto; border-radius: 50%; border: 3px solid var(--line2); border-top-color: #f472b6; animation: vrti .8s linear infinite; }
.ime-izbira { display: flex; gap: 10px; margin-top: 16px; }
.ime-izbira button { flex: 1; }

/* Denar */
.sum { padding: 14px 16px; margin-top: 12px; }
.sumrow { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 8px 0; font-size: 16px; border-top: 1px solid var(--line); }
.sumrow span:not(:first-child) { text-align: right; }
.sumrow.head { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; border-top: 0; }
.plus { color: var(--good); }

/* Statistika */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 14px; min-width: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tile:first-child { background: linear-gradient(135deg, rgba(124,58,237,.28), rgba(236,72,153,.14)); border-color: rgba(167,139,250,.3); }
.tile .lbl { margin: 0 0 6px; font-size: 12.5px; }
.tile .num { font-size: 21px; font-weight: 780; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub { color: var(--dim); font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos { color: #34d399; } .neg { color: #fb7185; }
.chart { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 16px 14px 10px; margin: 12px 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chart h3 { margin: 0 0 4px 4px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.chart .note { color: var(--dim); font-size: 14px; margin: 0 4px 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl td, .tbl th { padding: 9px 4px; border-top: 1px solid var(--line); text-align: right; }
.tbl th { color: var(--dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 650; border-top: 0; }
.tbl td:first-child, .tbl th:first-child { text-align: left; }
.insight { position: relative; background: linear-gradient(120deg, rgba(124,58,237,.2), rgba(236,72,153,.12) 60%, rgba(245,158,11,.08)); border: 1px solid rgba(196,181,253,.25); border-radius: 22px; padding: 16px 18px; margin: 12px 0; font-size: 16.5px; }
.insight b { font-size: 15px; }
.insight ul { margin: 8px 0 0; padding-left: 18px; }
.insight li { margin: 4px 0; color: #e9e3ff; }
.insight li::marker { color: #f472b6; }

.graf { width: 100%; height: auto; display: block; }
.g-os { fill: var(--dim); font-size: 19px; font-weight: 600; font-family: inherit; }
.g-mreza { stroke: rgba(255,255,255,.06); stroke-width: 1; stroke-dasharray: 3 4; }
.g-nic { stroke: rgba(255,255,255,.22); stroke-width: 1; }
.g-plus { fill: #34d399; }
.g-minus { fill: #fb7185; }
.g-linija { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.g-linija.plus { stroke: #34d399; } .g-linija.minus { stroke: #fb7185; }
.g-povrsina { opacity: .16; } .g-povrsina.plus { fill: #34d399; } .g-povrsina.minus { fill: #fb7185; }

/* Nalaganje datotek */
.option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px; margin-top: 10px; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.option:hover { border-color: rgba(196,181,253,.4); background: var(--glass2); transform: translateY(-1px); }
.option b { font-weight: 650; display: block; }
.option-ik { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(236,72,153,.4)); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
.drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; margin-top: 8px; background: rgba(139,92,246,.06); border: 1.5px dashed rgba(196,181,253,.4); border-radius: 20px; color: var(--accent); font: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.drop:hover { background: rgba(139,92,246,.12); border-color: rgba(196,181,253,.7); }
.drop .ik { width: 26px; height: 26px; }
.upl { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 8px; }
.upl-ik { color: var(--accent); display: inline-flex; }
.hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15.5px; color: var(--good); background: rgba(110,231,183,.07); border: 1px solid rgba(110,231,183,.28); border-radius: 14px; padding: 8px 10px; }

/* Izboljšave */
.tile { transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--line2); transform: translateY(-1px); }
.g-linija.plus { filter: drop-shadow(0 4px 10px rgba(52,211,153,.35)); } .g-linija.minus { filter: drop-shadow(0 4px 10px rgba(251,113,133,.35)); }
.g-povrsina { opacity: .2; }
.tbl tr:hover td { background: rgba(255,255,255,.025); }
button:focus-visible, a:focus-visible, .item:focus-visible { outline: 2px solid rgba(196,181,253,.7); outline-offset: 2px; }
.g-prazno { fill: rgba(255,255,255,.035); }

/* Coach in simulator */
.coach { display: grid; gap: 10px; margin: 12px 0; }
@media (min-width: 640px) { .coach { grid-template-columns: 1fr 1fr; } }
.coach-col { background: linear-gradient(135deg, rgba(251,113,133,.12), rgba(124,58,237,.08)); border: 1px solid rgba(251,113,133,.25); border-radius: 22px; padding: 16px 18px; font-size: 16px; }
.coach-col.dobro { background: linear-gradient(135deg, rgba(52,211,153,.12), rgba(124,58,237,.08)); border-color: rgba(52,211,153,.25); }
.coach-col ul { margin: 8px 0 0; padding-left: 18px; }
.coach-col li { margin: 5px 0; color: #e9e3ff; }
.coach-col li::marker { color: #fb7185; } .coach-col.dobro li::marker { color: #34d399; }
.sim { display: grid; gap: 4px 12px; margin: 6px 4px; }
@media (min-width: 640px) { .sim { grid-template-columns: 1fr 1fr; } }
.chart .tiles { margin: 10px 0; }

/* REMAKO skupaj */
.g-serija { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.s-skupaj { --c: #f6f3ff; } .s-teo { --c: #a78bfa; } .s-tim { --c: #fbbf24; } .s-algo { --c: #22d3ee; } .s-drugi { --c: #f472b6; }
.g-serija.s-skupaj, .g-serija.s-teo, .g-serija.s-tim, .g-serija.s-algo, .g-serija.s-drugi { stroke: var(--c); }
.g-serija.s-skupaj { stroke-width: 3; filter: drop-shadow(0 4px 10px rgba(255,255,255,.2)); }
.g-s, .g-del { fill: var(--c); stroke: var(--c); }
.g-s { stroke: none; }
.g-krog { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 26; }
.g-del { fill: none; stroke-width: 26; }
.krof { max-width: 220px; margin: 0 auto; }
.g-krof-napis { fill: var(--text); font-size: 18px; font-weight: 750; font-family: inherit; }
.g-dan { fill: var(--muted); font-size: 16px; font-weight: 600; font-family: inherit; }
.g-znesek { fill: #fff; font-size: 15px; font-weight: 700; font-family: inherit; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 4px 10px; font-size: 15px; color: var(--muted); }
.legenda span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.dva { display: grid; gap: 12px; }
@media (min-width: 640px) { .dva { grid-template-columns: 1fr 1fr; } .dva .chart { margin: 0; } }
.tile.s-teo, .tile.s-tim, .tile.s-algo { border-top: 2px solid var(--c); }
.tabs.tri button { flex: 1; }

/* Berljivost: debelejša pisava */
.item .t, .tile .num, h1, h3 { font-weight: 750; }
.tbl td { font-weight: 550; }
.tile .sub, .chart .note, .stat .sub, .item .s { font-weight: 500; }
.insight li, .coach-col li { font-weight: 550; line-height: 1.45; }
.coach.tri { grid-template-columns: 1fr; }
@media (min-width: 900px) { .coach.tri { grid-template-columns: 1fr 1fr 1fr; } }
.coach-col.srednje { background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(124,58,237,.08)); border-color: rgba(251,191,36,.28); }
.coach-col.srednje li::marker { color: #fbbf24; }

/* Vizualne kartice */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(124,58,237,.3), rgba(236,72,153,.14) 60%, rgba(245,158,11,.08)); border: 1px solid rgba(196,181,253,.3); border-radius: 24px; padding: 18px 18px 0; margin: 14px 0 10px; }
.hero .lbl { margin: 0; }
.hero .velik { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-top: 4px; }
.hero .pod { color: var(--muted); font-size: 15px; font-weight: 600; margin-top: 2px; }
.hero .iskrica { margin: 10px -18px 0; width: calc(100% + 36px); height: 90px; }
.iskrica { display: block; width: 100%; height: 56px; }
.viz { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 12px; }
@media (min-width: 700px) { .viz { grid-template-columns: repeat(4, 1fr); } }
.vk { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 14px; min-width: 0; display: flex; flex-direction: column; gap: 6px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.vk.siroka { grid-column: span 2; }
.vk .lbl { margin: 0; }
.vk .vrednost { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.vk .pod { color: var(--muted); font-size: 14px; font-weight: 600; }
.obroc { width: 100%; max-width: 120px; margin: 0 auto; display: block; }
.o-ozadje, .m-ozadje { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 12; stroke-linecap: round; }
.o-del, .m-del { fill: none; stroke-width: 12; stroke-linecap: round; }
.o-del.plus, .m-del.plus { stroke: #34d399; } .o-del.minus, .m-del.minus { stroke: #fb7185; } .o-del.vij { stroke: #a78bfa; } .o-del.zlata { stroke: #fbbf24; }
.o-napis { fill: var(--text); font-size: 24px; font-weight: 800; font-family: inherit; }
.merilnik { width: 100%; max-width: 150px; margin: 0 auto; display: block; }
.m-kazalec { fill: #fff; }
.par { display: grid; gap: 8px; }
.par .vrsta { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.par .bar { height: 12px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.par .bar i { display: block; height: 100%; border-radius: 99px; }
.par .bar i.plus { background: linear-gradient(90deg, #059669, #34d399); } .par .bar i.minus { background: linear-gradient(90deg, #e11d48, #fb7185); }
.par b { color: var(--text); font-weight: 750; }
.pike { display: flex; flex-wrap: wrap; gap: 5px; }
.pike i { width: 14px; height: 14px; border-radius: 4px; }
.pike i.plus { background: #34d399; } .pike i.minus { background: #fb7185; } .pike i.nic { background: rgba(255,255,255,.12); }
.barlist { display: grid; gap: 10px; }
.bl { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: 10px; align-items: center; }
.bl .ime { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl .ime small { display: block; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.bl .os { position: relative; height: 22px; }
.bl .os::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.18); }
.bl .os i { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; }
.bl .os i.plus { left: 50%; background: linear-gradient(90deg, rgba(52,211,153,.55), #34d399); }
.bl .os i.minus { right: 50%; background: linear-gradient(270deg, rgba(251,113,133,.55), #fb7185); }
.bl .zn { font-weight: 750; font-size: 15px; text-align: right; min-width: 74px; }
.znacke { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.znacka { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 14.5px; font-weight: 650; }
.znacka .ik { width: 17px; height: 17px; }
.znacka.plus { border-color: rgba(52,211,153,.35); } .znacka.plus .ik { color: #34d399; }
.znacka.minus { border-color: rgba(251,113,133,.35); } .znacka.minus .ik { color: #fb7185; }

/* Široka postavitev statistike in oddelki */
main.siroko { max-width: 1320px; }
@media (min-width: 900px) { main.siroko { padding-left: 28px; padding-right: 28px; } }
.mreza { display: grid; gap: 12px; margin: 12px 0; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.mreza.dve { grid-template-columns: 1fr; }
@media (min-width: 900px) { .mreza.dve { grid-template-columns: 1fr 1fr; } }
.mreza > .chart, .mreza > .hero, .mreza > .viz { margin: 0; }
.mreza.dve > .viz { align-self: stretch; }
.statglava { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 900px) { .statglava { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 20px; } }
.oddelki { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 4px; margin: 6px 0 4px; scrollbar-width: none; position: sticky; top: 0; z-index: 3; }
.oddelki::-webkit-scrollbar { display: none; }
.oddelki button { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 10px 15px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: all .2s; }
.oddelki button .ik { width: 17px; height: 17px; }
.oddelki button.on { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px -10px rgba(236,72,153,.7); }
.uvoz { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.uvoz:first-child { border-top: 0; }
.chart .viz { margin: 10px 0; }
.siroko .tabs:not(.small) { max-width: 620px; }
.vk.oseba { border-top: 3px solid var(--c); }
.vrstaosebe { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.vrstaosebe .obroc { max-width: 96px; }
.vk .krof { max-width: 140px; }

/* Računalnik: cela širina, nič skritega ob robu */
@media (min-width: 760px) {
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding-left: 0; padding-right: 0; }
  .oddelki { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1000px) {
  main { max-width: 1320px; padding-left: 28px; padding-right: 28px; }
  main > .tabs:not(.small) { max-width: 620px; }
  .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 10px; }
  .overview { max-width: 100%; }
}
.graf.toplota { max-width: 780px; margin: 0 auto; }

/* ---------- REMAKO nadzorna plošča (ločena podstran #remako) ---------- */
main.dash-mode { max-width: none; padding: 0; margin: 0; }
.dash { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.dash-stran { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 12px) 16px 10px; position: sticky; top: 0; z-index: 5; background: rgba(5,4,10,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dash-stran::-webkit-scrollbar { display: none; }
.dash-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.dash-logo .mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff; background: var(--grad); box-shadow: 0 8px 24px -8px rgba(236,72,153,.7); }
.dash-logo b { display: block; font-size: 16px; letter-spacing: .14em; font-weight: 850; }
.dash-logo small { display: block; color: var(--dim); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.dash-nav { display: flex; gap: 6px; flex: none; }
.dash-nav button, .dash-nazaj { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.dash-nav button .ik, .dash-nazaj .ik { width: 19px; height: 19px; flex: none; }
.dash-nav button:hover, .dash-nazaj:hover { background: rgba(255,255,255,.05); color: var(--text); }
.dash-nav button.on { color: #fff; background: linear-gradient(110deg, rgba(124,58,237,.45), rgba(236,72,153,.3)); border-color: rgba(196,181,253,.35); }
.dash-dno { display: flex; gap: 4px; flex: none; margin-left: auto; }
.dash-dno .dash-nazaj span { display: none; }
.dash-glavno { min-width: 0; padding: 0 16px calc(env(safe-area-inset-bottom) + 40px); }
.dash-vrh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 22px 0 8px; }
.dash-naslov h1 { margin: 0; font-size: 30px; font-weight: 850; letter-spacing: -.03em; }
.dash-naslov p { margin: 4px 0 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.dash-orodja { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-orodja .tabs { margin: 0; min-width: 300px; }
.dash-zivo { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); }
.dash-zivo i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
@media (min-width: 1000px) {
  .dash { grid-template-columns: 250px 1fr; }
  .dash-stran { position: sticky; top: 0; height: 100vh; flex-direction: column; align-items: stretch; gap: 26px; padding: 26px 16px; border-bottom: 0; border-right: 1px solid var(--line); overflow: visible; background: rgba(10,8,18,.7); }
  .dash-logo { padding: 0 6px; }
  .dash-nav { flex-direction: column; }
  .dash-dno { flex-direction: column; margin: auto 0 0; }
  .dash-dno .dash-nazaj span { display: inline; }
  .dash-glavno { padding: 0 36px 48px; }
  .dash-vrh { padding-top: 30px; }
  .dash-naslov h1 { font-size: 36px; }
}
@media (min-width: 1700px) { .dash-glavno { max-width: 1500px; } }

/* ---------- Banka REMAKO: moderna steklena stolpnica ---------- */
main.banka-mode { max-width: 1100px; }
.b-nivo { display: flex; align-items: center; gap: 16px; margin: 4px 0 14px; padding: 14px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.b-nivo-zn { display: flex; flex-direction: column; flex: none; }
.b-nivo-zn b { font-size: 22px; font-weight: 850; background: var(--grad3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-nivo-zn span { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.b-xp { flex: 1; min-width: 0; }
.b-xp-bar, .soba-xp { height: 10px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.b-xp-bar i, .soba-xp i { display: block; height: 100%; border-radius: 99px; background: var(--grad3); box-shadow: 0 0 14px rgba(244,114,182,.6); }
.b-xp-t { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 14px; font-weight: 650; color: var(--muted); }

.banka { position: relative; margin: 0 auto 30px; max-width: 980px; }
.b-streha { display: block; width: 72%; margin: 0 auto -2px; height: auto; }
.b-tabla { fill: rgba(12,10,22,.9); stroke: rgba(196,181,253,.35); stroke-width: 1.5; }
.b-ime { font: 900 50px "Inter Tight", sans-serif; letter-spacing: .32em; fill: url(#b-neon); }
.b-krona { fill: rgba(20,16,34,.95); stroke: rgba(255,255,255,.1); }
.b-krona-t { font: 800 20px "Inter Tight", sans-serif; letter-spacing: .4em; fill: #fbbf24; }
.b-antena { stroke: rgba(255,255,255,.35); stroke-width: 3; }
.b-antena-luc { fill: #fb7185; animation: utrip 1.6s ease-in-out infinite; filter: drop-shadow(0 0 6px #fb7185); }
@keyframes utrip { 50% { opacity: .25; } }

.b-nadstropja, .b-telo { position: relative; margin: 0 auto; border-left: 1px solid rgba(196,181,253,.35); border-right: 1px solid rgba(196,181,253,.35); background:
  linear-gradient(90deg, rgba(167,139,250,.08), transparent 18%, transparent 82%, rgba(244,114,182,.08)),
  linear-gradient(180deg, rgba(22,18,40,.92), rgba(10,8,20,.96)); }
.b-nadstropja { width: 84%; }
.b-telo { width: 100%; padding: 10px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 40px 100px -30px rgba(124,58,237,.35); }
.b-okna { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.b-okna i { height: 14px; border-radius: 3px; background: rgba(255,255,255,.05); }
.b-okna i.lucka { background: linear-gradient(180deg, rgba(251,191,36,.75), rgba(244,114,182,.35)); box-shadow: 0 0 10px rgba(251,191,36,.35); }

.b-nad { display: flex; gap: 10px; }
.b-nad.zaklenjeno { border: 1px dashed rgba(255,255,255,.14); border-radius: 18px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 10px, transparent 10px 20px); }
.b-zaklep { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 16px 18px; color: var(--dim); }
.b-zaklep .ik { grid-row: span 2; width: 26px; height: 26px; color: var(--dim); }
.b-zaklep b { color: var(--muted); font-size: 17px; }
.b-zaklep span { font-size: 14px; font-weight: 600; }
.b-zaklep .soba-xp { grid-column: 1 / -1; margin-top: 8px; }

.soba { position: relative; flex: 1 1 0; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; color: var(--text); font: inherit; cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .25s cubic-bezier(.2,.9,.25,1), border-color .25s, box-shadow .25s; overflow: hidden; }
.soba::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c, var(--grad)); opacity: .9; }
.soba:hover { transform: translateY(-3px); border-color: rgba(196,181,253,.45); box-shadow: 0 18px 40px -18px var(--sij, rgba(167,139,250,.7)); }
.soba-vrh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.soba-ime { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.soba-nivo, .soba-oz { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--text); }
.soba-oz:empty { display: none; }
.soba-ilu { min-height: 58px; display: flex; align-items: flex-end; }
.soba-ilu .b-ilu { height: 56px; width: auto; max-width: 100%; }
.soba-ilu .b-graf { width: 100%; }
.soba-glavno { font-size: 24px; font-weight: 850; letter-spacing: -.02em; }
.soba-pod { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.soba.velika { padding: 18px 20px; }
.soba.velika .soba-glavno { font-size: 30px; }
.soba.velika .soba-ilu .b-ilu { height: 70px; }
.s-uprava { --c: linear-gradient(90deg, #a78bfa, #f472b6, #fbbf24); --sij: rgba(244,114,182,.6); }
.s-teo { --c: #a78bfa; --sij: rgba(167,139,250,.7); } .s-tim { --c: #fbbf24; --sij: rgba(251,191,36,.6); }
.s-algo { --c: #22d3ee; --sij: rgba(34,211,238,.6); } .s-analitika { --c: #34d399; --sij: rgba(52,211,153,.6); }
.s-papir { --c: #93c5fd; } .s-payout { --c: #fbbf24; } .s-sef { --c: #f472b6; }

.b-lobi { position: relative; border-radius: 20px; padding: 14px 12px 0; background: linear-gradient(180deg, rgba(167,139,250,.08), rgba(244,114,182,.05)); border: 1px solid rgba(196,181,253,.22); }
.b-lobi-napis { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 10px; }
.b-lobi-napis span { font-size: 15px; font-weight: 850; letter-spacing: .3em; text-transform: uppercase; }
.b-lobi-napis small { color: var(--dim); font-size: 13px; font-weight: 650; }
.b-lobi-mreza { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .b-lobi-mreza { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .b-lobi-mreza { grid-template-columns: repeat(4, 1fr); } }
.b-vhod { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0 0; }
.b-vrata { width: 140px; height: 54px; border-radius: 12px 12px 0 0; border: 1px solid rgba(196,181,253,.4); border-bottom: 0; background: linear-gradient(90deg, rgba(167,139,250,.25), rgba(255,255,255,.04) 49%, rgba(255,255,255,.18) 50%, rgba(244,114,182,.25)); box-shadow: 0 0 40px rgba(167,139,250,.35); }
.b-vhod span { order: -1; font-size: 12px; font-weight: 800; letter-spacing: .3em; color: var(--dim); }
.b-stopnice { display: block; width: 100%; height: 40px; }
.b-st1 { fill: rgba(196,181,253,.5); }

.b-trak { overflow: hidden; margin: 0 0 12px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.b-trak-v { display: inline-flex; gap: 28px; padding: 9px 0; white-space: nowrap; animation: trak 60s linear infinite; font: 650 14px "Inter Tight", sans-serif; }
.b-trak-v b { color: var(--muted); }
@keyframes trak { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .b-trak-v, .b-antena-luc { animation: none; } }

/* Ilustracije */
.b-zaslon { fill: #0b0a14; stroke: rgba(196,181,253,.55); stroke-width: 1.5; }
.b-crta { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .b-crta.plus { stroke: #34d399; } .b-crta.minus { stroke: #fb7185; }
.b-noga { fill: rgba(255,255,255,.25); } .b-miza { fill: rgba(196,181,253,.3); }
.b-kovanec { fill: #fbbf24; stroke: #b45309; stroke-width: 1; }
.b-robot { fill: rgba(34,211,238,.18); stroke: #22d3ee; stroke-width: 1.5; } .b-oko { fill: #22d3ee; } .b-anten { stroke: #22d3ee; stroke-width: 2; } .b-luc { fill: #f472b6; }
.b-prazno { opacity: .35; }
.b-mapa { fill: rgba(147,197,253,.35); stroke: #93c5fd; stroke-width: 1; } .b-mapa2 { fill: rgba(196,181,253,.3); stroke: #c4b5fd; }
.b-sef { fill: rgba(244,114,182,.12); stroke: #f472b6; stroke-width: 2; } .b-sef-k { fill: none; stroke: #f472b6; stroke-width: 2; } .b-sef-r { stroke: rgba(244,114,182,.6); stroke-width: 1.5; }
.s-podatki { --c: #c4b5fd; }
.b-ilu-ik { width: 52px; height: 52px; color: #c4b5fd; stroke-width: 1.4; }

/* ---------- 3D banka ---------- */
main.igra-mode { max-width: 1500px; }
.igra { position: relative; height: calc(100dvh - 170px); min-height: 440px; border-radius: 24px; overflow: hidden; background: #07060d;
  border: 1px solid var(--line2); box-shadow: 0 30px 80px -30px rgba(139,92,246,.45); touch-action: none; user-select: none; -webkit-user-select: none; }
.igra-platno { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
.igra-platno:active { cursor: grabbing; }
.igra-nalaganje { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-weight: 700; }
.igra-hud { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.igra-hud > * { pointer-events: auto; }
.igra-nivo { display: grid; gap: 4px; padding: 12px 16px; min-width: 210px; border-radius: 18px; background: rgba(10,8,20,.55);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid var(--line2); }
.igra-nivo b { font-size: 20px; font-weight: 850; background: var(--grad3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.igra-nivo span { font-size: 14px; color: var(--muted); font-weight: 600; }
.igra-xp { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 4px; }
.igra-xp div { height: 100%; background: var(--grad3); border-radius: 6px; }
.igra-gumb { font: inherit; font-weight: 750; font-size: 15px; color: var(--text); padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(10,8,20,.55); border: 1px solid var(--line2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.igra-gumb:hover { border-color: var(--accent); }
.igra-pomoc { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(10,8,20,.6); border: 1px solid var(--line2); color: var(--muted); font-size: 14px; font-weight: 650;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .8s; pointer-events: none; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; }
.igra-pomoc.skrij { opacity: 0; }
.igra-poziv { --b: #a78bfa; position: absolute; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(10,8,20,.72);
  border: 1.5px solid var(--b); box-shadow: 0 0 34px -6px var(--b); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: opacity .25s, transform .25s; z-index: 2; }
.igra-poziv.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.igra-poziv b { font-size: 18px; font-weight: 850; white-space: nowrap; }
.igra-vstop { font: inherit; font-weight: 800; font-size: 16px; color: #0b0912; background: var(--b); border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; white-space: nowrap; }
.igra-dvigalo { position: absolute; right: 14px; top: 50%; transform: translate(20px, -50%); opacity: 0; pointer-events: none; width: min(340px, calc(100% - 28px));
  display: grid; gap: 8px; padding: 16px; border-radius: 22px; background: rgba(10,8,20,.78); border: 1px solid rgba(251,191,36,.45);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: opacity .25s, transform .25s; z-index: 3; }
.igra-dvigalo.on { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.igra-dvigalo h3 { margin: 0 0 4px; font-size: 18px; color: var(--gold); }
.igra-nad { font: inherit; text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; cursor: pointer; color: var(--text);
  background: rgba(255,255,255,.05); border: 1px solid var(--line2); }
.igra-nad b { font-size: 17px; font-weight: 800; }
.igra-nad span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.igra-nad:hover:not(:disabled) { border-color: var(--gold); background: rgba(251,191,36,.08); }
.igra-nad.zaklenjeno { opacity: .55; cursor: not-allowed; }
.igra-nad.zaklenjeno b::before { content: "🔒 "; }
.igra-zatemni { position: absolute; inset: 0; background: #07060d; opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 4; }
.igra-zatemni.on { opacity: 1; }
.igra-joy { position: absolute; left: 22px; bottom: 22px; width: 124px; height: 124px; border-radius: 50%; touch-action: none; z-index: 2;
  background: radial-gradient(circle, rgba(167,139,250,.14), rgba(10,8,20,.4)); border: 1.5px solid rgba(196,181,253,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.igra-joy-g { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 24px rgba(236,72,153,.55); pointer-events: none; }
.igra-joy ~ .igra-poziv { left: auto; right: 14px; transform: translate(0, 20px); }
.igra-joy ~ .igra-poziv.on { transform: none; }
.b-3d { margin: 0 auto 12px; display: flex; }
@media (max-width: 640px) {
  .igra { height: calc(100dvh - 150px); border-radius: 18px; margin: 0 -8px; }
  .igra-nivo { min-width: 0; padding: 9px 12px; }
  .igra-nivo b { font-size: 17px; } .igra-nivo span { font-size: 12.5px; }
  .igra-gumb { font-size: 13px; padding: 8px 12px; }
  .igra-poziv b { font-size: 15px; } .igra-vstop { font-size: 15px; padding: 10px 16px; }
}
.igra.dotik .igra-pomoc { bottom: auto; top: 112px; font-size: 13px; }
.nazaj-banka { position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; font: inherit; font-weight: 800; font-size: 16px;
  color: #0b0912; background: #f4f1ea; border: 0; border-radius: 999px; padding: 13px 20px; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(0,0,0,.7); }
.nazaj-banka:hover { background: #fff; }
.igra-soba { --b: #a78bfa; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); opacity: 0; pointer-events: none; z-index: 3;
  width: min(460px, calc(100% - 28px)); display: grid; gap: 14px; padding: 20px; border-radius: 24px; color: #15161b;
  background: rgba(250,248,244,.94); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 30px 80px -20px rgba(0,0,0,.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: opacity .22s, transform .22s; }
.igra-soba.on { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.igra-soba-glava { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.igra-soba h3, .igra-dvigalo h3 { margin: 0; font-size: 22px; font-weight: 850; }
.igra-soba h3::before { content: ""; display: inline-block; width: 6px; height: 20px; border-radius: 3px; background: var(--b); margin-right: 10px; vertical-align: -2px; }
.igra-x { font: inherit; font-size: 18px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0,0,0,.06); color: inherit; }
.igra-soba-mreza { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.igra-soba-pl { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(0,0,0,.06); }
.igra-soba-pl span { font-size: 13.5px; font-weight: 650; color: #6b6e78; }
.igra-soba-pl b { font-size: 24px; font-weight: 850; letter-spacing: -.01em; }
.igra-soba-pl b.pos { color: #15803d; } .igra-soba-pl b.neg { color: #be123c; }
.igra-soba-op { margin: 0; font-size: 15px; color: #4b4e57; font-weight: 550; }
.igra-soba-gumbi { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.igra-soba .igra-gumb { color: #15161b; background: rgba(0,0,0,.06); border-color: transparent; backdrop-filter: none; }
.igra-soba .igra-vstop { background: #15161b; color: #fff; }
.igra-dvigalo .igra-soba-glava { margin-bottom: 4px; }
.igra-dvigalo .igra-x { background: rgba(255,255,255,.08); }
