/* ==========================================================================
   LogicAI - pocetna strana

   Hero preko celog ekrana sa nasim videom (ljubicasta svila sa zutim
   odsjajima), ispod njega "kontrolna tabla" nagnuta u 3D koja se ispravlja
   dok se skroluje, pa moduli u bento mrezi. Tokeni (boje, fontovi,
   radijusi) dolaze iz app.css.
   ========================================================================== */

html { scroll-behavior: smooth; }

body {
    background: var(--bg-base);
    overflow-x: hidden;
}

/* Ambijent iz app.css ovde nije potreban - hero ima video */
body::before { display: none; }

/* clip (ne hidden): nagnuta tabla u 3D bi inace prosirila stranu na
   telefonu, a clip ne pravi novi kontejner za skrol pa sticky i dalje radi */
.lp { position: relative; overflow-x: clip; }

.wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-inline: max(20px, var(--safe-left)) max(20px, var(--safe-right));
}

@media (min-width: 900px) {
    .wrap { padding-inline: 40px; }
}

/* --------------------------------------------------------------------------
   NAVIGACIJA
   -------------------------------------------------------------------------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding-top: var(--safe-top);
    transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
    background: color-mix(in srgb, var(--bg-base) 82%, transparent);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    backdrop-filter: saturate(140%) blur(16px);
    box-shadow: inset 0 -1px 0 var(--separator);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font: 600 1.25rem/1 var(--font-display);
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.nav-logo:hover { opacity: 1; }
.nav-logo .icon-tile { width: 36px; height: 36px; border-radius: 11px; }
.nav-logo .icon-tile .icon { width: 20px; height: 20px; stroke-width: 2.2; }

/* Pilule u sredini - bela pilula klizi ispod linka na koji pokazujes */
.nav-center {
    position: relative;
    display: flex;
    gap: 2px;
    padding: 5px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nav-center a {
    position: relative;
    z-index: 1;
    padding: 10px 20px;
    border-radius: var(--r-pill);
    font: 400 0.9375rem/1 var(--font-display);
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.25s var(--ease-out);
}

.nav-center a:hover { opacity: 1; color: #FFFFFF; }
.nav-center a.on { color: #0B0B0E; }

.nav-pill {
    position: absolute;
    z-index: 0;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 0;
    border-radius: var(--r-pill);
    background: #FFFFFF;
    opacity: 0;
    transition: transform 0.4s var(--ease), width 0.4s var(--ease), opacity 0.25s var(--ease-out);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-ghost {
    padding: 10px 14px;
    font: 400 0.9375rem/1 var(--font-display);
    color: rgba(255, 255, 255, 0.85);
}

.nav-ghost:hover { opacity: 1; color: #FFFFFF; }

.nav-toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: var(--r-xl);
    background: var(--bg-secondary);
    box-shadow: inset 0 0 0 1px var(--glass-stroke), var(--shadow-lg);
}

.nav-mobile a {
    padding: 14px 16px;
    border-radius: var(--r-md);
    font: 400 1rem/1 var(--font-display);
    color: var(--label);
}

.nav-mobile a:hover { background: var(--fill-quaternary); opacity: 1; }
.nav-mobile .cta-link { background: var(--sys-yellow); color: var(--on-yellow); text-align: center; font-weight: 500; }
.nav-mobile .cta-link:hover { background: var(--sys-yellow); }
.nav.open .nav-mobile { display: flex; }
.nav.open { background: var(--bg-base); }

@media (max-width: 980px) {
    .nav-center { display: none; }
}

@media (max-width: 640px) {
    .nav-actions .nav-ghost,
    .nav-actions .nav-solid { display: none; }
    .nav-toggle { display: grid; }
}

/* --------------------------------------------------------------------------
   DUGMAD (pilule)
   -------------------------------------------------------------------------- */

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 8px 0 26px;
    border-radius: var(--r-pill);
    font: 500 1rem/1 var(--font-display);
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.cta:hover { opacity: 1; }
.cta:active { transform: scale(0.97); }

.cta-accent {
    color: var(--on-yellow);
    background: var(--sys-yellow);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 32px rgba(79, 227, 181, 0.22);
}

.cta-accent:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 16px 40px rgba(79, 227, 181, 0.34); }

/* Crni krug sa strelicom na kraju zutog dugmeta */
.cta-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--sys-yellow);
    background: #0B0B0E;
    transition: transform 0.3s var(--ease);
}

.cta-arrow .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.cta:hover .cta-arrow { transform: rotate(45deg); }

.cta-ghost {
    padding: 0 26px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cta-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.nav-solid {
    min-height: 44px;
    padding: 0 20px;
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(120px + var(--safe-top)) 0 180px;
    overflow: hidden;
    color: #FFFFFF;
    /* Hero je uvek taman - video je taman, pa i u svetloj temi */
    background: #070709;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Video se pomera sporije od strane (paralaksa) - vrednost postavlja JS */
    transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.06);
}

/* Zatamnjenje: jace levo gde je tekst i dole gde strana prelazi u tablu */
.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 7, 9, 0.88) 0%, rgba(7, 7, 9, 0.55) 45%, rgba(7, 7, 9, 0.2) 100%),
        linear-gradient(180deg, rgba(7, 7, 9, 0.5) 0%, rgba(7, 7, 9, 0) 30%, rgba(7, 7, 9, 0) 60%, #070709 100%);
}

/* Tanka mreza preko videa - "tehnicki" sloj, bledi ka ivicama */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%);
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 12px;
    border-radius: var(--r-pill);
    font: 400 0.875rem/1 var(--font-display);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sys-yellow);
    box-shadow: 0 0 0 4px rgba(79, 227, 181, 0.2);
    animation: puls 2.4s ease-in-out infinite;
}

@keyframes puls {
    50% { box-shadow: 0 0 0 7px rgba(79, 227, 181, 0.05); }
}

.hero h1 {
    max-width: 14ch;
    margin: 26px 0 22px;
    font: 500 clamp(2.75rem, 1.4rem + 5.2vw, 5.75rem)/1.02 var(--font-display);
    letter-spacing: -0.035em;
    color: #FFFFFF;
    text-wrap: balance;
}

/* Preliv na naslovu je svetliji od onog iz app.css - stoji preko videa */
.hero h1 .text-hyper {
    background: linear-gradient(100deg, #C4A5FF 0%, #A78BFA 40%, #4FE3B5 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-sub {
    max-width: 560px;
    font: 400 clamp(1rem, 0.95rem + 0.3vw, 1.1875rem)/1.6 var(--font);
    color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 30px;
    font: 400 0.875rem/1 var(--font-display);
    color: rgba(255, 255, 255, 0.62);
}

.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { width: 16px; height: 16px; color: var(--sys-yellow); stroke-width: 2.4; }

/* Ulazak hero sadrzaja, redom */
.rise { animation: rise 0.9s var(--ease) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.22s; }
.rise-4 { animation-delay: 0.32s; }
.rise-5 { animation-delay: 0.42s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
}

/* --------------------------------------------------------------------------
   KONTROLNA TABLA U 3D
   Nagnuta unazad kad se tek pojavi, ispravi se dok skrolujes (--tilt 0..1
   postavlja JS), a na misu se blago okrece za kursorom.
   -------------------------------------------------------------------------- */

.board-sec {
    position: relative;
    z-index: 2;
    margin-top: -150px;
    padding-bottom: 40px;
}

.board-stage {
    perspective: 1800px;
    perspective-origin: 50% 0%;
}

.board {
    --tilt: 1;
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    padding: 22px 24px 26px;
    border-radius: 30px;
    color: #F4F4F6;
    background:
        radial-gradient(90% 60% at 50% -10%, rgba(142, 108, 255, 0.14), transparent 60%),
        #0B0B0E;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 -20px 80px rgba(142, 108, 255, 0.16),
        0 60px 120px rgba(0, 0, 0, 0.6);
    transform-origin: 50% 0%;
    transform:
        rotateX(calc(var(--tilt) * 22deg + var(--rx)))
        rotateY(var(--ry))
        scale(calc(1 - var(--tilt) * 0.06));
    transition: transform 0.12s linear;
    will-change: transform;
}

/* Tanka svetla ivica po vrhu - kao na ekranu uredjaja */
.board::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(196, 165, 255, 0.5), rgba(255, 255, 255, 0.04) 30%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.board-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.board-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 600 1.0625rem/1 var(--font-display);
}

.board-logo .icon-tile { width: 30px; height: 30px; }
.board-logo .icon-tile .icon { width: 17px; height: 17px; }

.board-tabs,
.board-filters,
.seg {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* Tabla se moze kliknuti (Nikola, 2026-09-23): delovi gore, filteri i
   prekidac perioda su prava dugmad */
.board-tabs button,
.board-filters button,
.seg button {
    flex-shrink: 0;
    padding: 9px 18px;
    border: none;
    border-radius: var(--r-pill);
    background: none;
    font: 400 0.875rem/1 var(--font-display);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.board-tabs button:hover,
.board-filters button:hover,
.seg button:hover { color: #FFFFFF; }

.board-tabs button[aria-selected="true"],
.board-filters button[aria-pressed="true"],
.seg button[aria-pressed="true"] { background: #FFFFFF; color: #0B0B0E; font-weight: 500; }

.board-filters { flex-wrap: wrap; background: none; box-shadow: none; padding: 0; gap: 8px; }
.board-filters button { background: rgba(255, 255, 255, 0.06); }

.seg button { padding: 7px 14px; font-size: 0.8125rem; }

.board button:focus-visible,
.board input:focus-visible,
.board select:focus-visible { outline: 2px solid #4FE3B5; outline-offset: 2px; }

.board-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    border-radius: var(--r-pill);
    font: 400 0.875rem/1 var(--font-display);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.board-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 600;
    color: #0B0B0E;
    background: linear-gradient(135deg, #C4A5FF, #4FE3B5);
}

.board-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 4px 20px;
}

.board-head h3 {
    font: 500 clamp(1.5rem, 1rem + 1.6vw, 2.5rem)/1.1 var(--font-display);
    letter-spacing: -0.025em;
}

.board-head p { margin-top: 6px; font: 400 0.875rem/1.4 var(--font-display); color: rgba(255, 255, 255, 0.45); }

.board-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.bcard {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-column: span 4;
    padding: 20px 22px;
    border-radius: 24px;
    background: #141418;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.bcard-hi {
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(142, 108, 255, 0.26), transparent 60%),
        #141418;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.45), 0 20px 50px rgba(142, 108, 255, 0.16);
}

.bcard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font: 400 1rem/1.2 var(--font-display);
    color: rgba(255, 255, 255, 0.85);
}

.bcard-go {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    color: inherit;
    background: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.bcard-go:hover { background: #FFFFFF; color: #0B0B0E; }

.bcard-hi .bcard-go { background: #FFFFFF; color: #0B0B0E; box-shadow: none; }
.bcard-go .icon { width: 16px; height: 16px; }

.bcard .big {
    margin-top: 6px;
    font: 600 clamp(1.75rem, 1rem + 2vw, 2.75rem)/1 var(--font-display);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.bcard .mid {
    font: 600 clamp(1.25rem, 0.9rem + 1vw, 1.75rem)/1 var(--font-display);
    letter-spacing: -0.02em;
}

.bcard small { font: 400 0.8125rem/1.4 var(--font-display); color: rgba(255, 255, 255, 0.5); }
.bcard em { font-style: normal; font-weight: 600; }
.bcard em.up { color: var(--sys-green); }

.limit-bar {
    position: relative;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 8px), rgba(255, 255, 255, 0.04);
}

.limit-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 12px;
    background:
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, 0.14) 46px 48px),
        linear-gradient(90deg, #8E6CFF, #A78BFA);
}

.legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 400 0.75rem/1 var(--font-display);
    color: rgba(255, 255, 255, 0.5);
}

.legend i { width: 7px; height: 7px; border-radius: 50%; margin-left: 8px; }
.legend i:first-child { margin-left: 0; }
.legend .l1 { background: #A78BFA; }
.legend .l2 { background: rgba(255, 255, 255, 0.3); }

.bcard-chart { grid-column: span 5; min-height: 300px; }
.bcard-heat { grid-column: span 4; }
.bcard-due { grid-column: span 3; }

/* Stubici: sivi srafirani, jedan istaknut - kao na uzoru */
.bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding-top: 36px;
    background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 25%);
    background-size: 100% 100%;
}

.bar {
    position: relative;
    flex: 1;
    height: var(--h);
    padding: 0;
    border: none;
    border-radius: 16px;
    color: #F4F4F6;
    font: inherit;
    cursor: pointer;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 7px), rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    transform-origin: bottom;
    animation: bar-rast 1s var(--ease) both;
}

.bar i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -24px;
    font: 400 0.75rem/1 var(--font-display);
    font-style: normal;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
}

.bar.on {
    background: linear-gradient(180deg, #4FE3B5 0%, #C4A5FF 55%, #8E6CFF 100%);
    box-shadow: 0 0 40px rgba(196, 165, 255, 0.35);
}

.bar.on i { color: #FFFFFF; font-weight: 500; }

.bar .tip {
    position: absolute;
    left: 50%;
    top: 34%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 14px;
    transform: translateX(-50%);
    white-space: nowrap;
    font: 600 1.375rem/1 var(--font-display);
    letter-spacing: -0.02em;
    background: rgba(20, 20, 24, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 30px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.bar .tip small { font-size: 0.6875rem; font-weight: 400; color: rgba(255, 255, 255, 0.55); letter-spacing: 0; }

.bar .flag {
    position: absolute;
    left: 50%;
    top: -34px;
    padding: 6px 10px;
    border-radius: var(--r-pill);
    transform: translateX(-50%);
    font: 600 0.75rem/1 var(--font-display);
    color: #0B0B0E;
    background: #4FE3B5;
    white-space: nowrap;
}

.bar .flag.los { color: #FFFFFF; background: #F0555A; }

/* Uz ivicu grafikona oblacic se ne centrira, da ne izadje iz kartice */
.bar.levo .tip { left: 0; transform: none; }
.bar.desno .tip { left: auto; right: 0; transform: none; }

.bars.godina { gap: 6px; }
.bars.godina .bar { border-radius: 10px; }
.bars.godina .bar i { font-size: 0.625rem; }
.bars.godina .bar .tip { font-size: 1rem; padding: 8px 10px; }

@keyframes bar-rast { from { transform: scaleY(0.1); opacity: 0; } }

/* Toplotna mapa troskova - pune ljubicaste i srafirane celije */
.heat {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    flex: 1;
}

.heat span {
    min-height: 26px;
    border-radius: 8px;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 6px), rgba(255, 255, 255, 0.03);
}

.heat span.h1 { background: #5B3FC4; }
.heat span.h2 { background: #8E6CFF; }
.heat span.h3 { background: #C4A5FF; }
.heat span.h4 { background: #4FE3B5; }

.due {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.due > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.due b { font: 500 0.875rem/1.2 var(--font-display); }
.due small { font-size: 0.75rem; }

.due-d {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    font: 600 1.125rem/1 var(--font-display);
    background: rgba(142, 108, 255, 0.18);
    color: #C4A5FF;
}

.due-d small { display: block; font-size: 0.625rem; font-weight: 500; text-transform: uppercase; color: inherit; }

.due-plus {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    color: #0B0B0E;
    background: #4FE3B5;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.due-plus:hover { transform: scale(1.06); }
.due-plus.gotovo { background: rgba(79, 227, 181, 0.35); }
.due-plus.veci { width: 42px; height: 42px; box-shadow: 0 8px 22px rgba(79, 227, 181, 0.22); }

.due-plus .icon { width: 16px; height: 16px; stroke-width: 2.4; }

/* ---------- ostali delovi table: Budzet, Fakture, Chat ---------- */

.board-view[hidden] { display: none; }
.board-view { animation: prikaz-ulaz 0.3s var(--ease-out) both; }
@keyframes prikaz-ulaz { from { opacity: 0; transform: translateY(6px); } }

.board-grid[data-prikaz="prihodi"] [data-g]:not([data-g="prihodi"]),
.board-grid[data-prikaz="troskovi"] [data-g]:not([data-g="troskovi"]),
.board-grid[data-prikaz="porezi"] [data-g]:not([data-g="porezi"]) { display: none; }

/* bez filtera koji krije ostale, blok iz filtera zauzme ceo red */
.board-grid[data-prikaz]:not([data-prikaz="sve"]) > .bcard { grid-column: span 6; }
.board-grid[data-prikaz]:not([data-prikaz="sve"]) > .bcard-chart,
.board-grid[data-prikaz]:not([data-prikaz="sve"]) > .bcard-heat,
.board-grid[data-prikaz]:not([data-prikaz="sve"]) > .bcard-due { grid-column: 1 / -1; }

.limit-bar.zuta span {
    background:
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, 0.14) 46px 48px),
        #4FE3B5;
}
.legend .l3 { background: #4FE3B5; }

.bcard-chart.siroka,
.bcard-fakture { grid-column: span 7; }
.bcard-list,
.bcard-detalj { grid-column: span 5; }
[data-strana="budzet"] .bcard-chart { grid-column: span 7; }

.blist { display: flex; flex-direction: column; gap: 8px; }

.brow {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 16px;
    color: inherit;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    font: inherit;
}

button.brow { cursor: pointer; transition: background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
button.brow:hover { background: rgba(255, 255, 255, 0.07); }
button.brow[aria-current="true"] { box-shadow: inset 0 0 0 1px rgba(196, 165, 255, 0.6); background: rgba(142, 108, 255, 0.1); }

.brow > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.brow b { overflow: hidden; font: 500 0.875rem/1.25 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.brow small { font-size: 0.75rem; }
.brow .iznos { flex-shrink: 0; display: grid; justify-items: end; gap: 5px; font: 600 0.875rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.brow .due-d { width: 42px; height: 42px; font-size: 1rem; }

.bznacka { padding: 3px 9px; border-radius: var(--r-pill); font: 600 0.6875rem/1.3 var(--font-display); white-space: nowrap; }
.bznacka.ceka { color: #0B0B0E; background: #4FE3B5; }
.bznacka.ok { color: #4ADE80; background: rgba(74, 222, 128, 0.14); }

.bdetalj { display: flex; flex-direction: column; }
.bdetalj div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font: 400 0.8125rem/1.3 var(--font-display); }
.bdetalj div span:first-child { color: rgba(255, 255, 255, 0.5); }
.bdetalj div span:last-child { text-align: right; font-weight: 500; }
.bdugmad { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }

/* Dugmad na tabli: bela pilula glavno, tamna sporedno - kao u aplikaciji */
.bbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: var(--r-pill);
    color: #0B0B0E;
    background: #FFFFFF;
    font: 500 0.8125rem/1 var(--font-display);
    cursor: pointer;
    transition: background 0.2s var(--ease-out);
}

.bbtn:hover { background: #E4E4EA; }
.bbtn .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.bbtn.tamno { color: #F4F4F6; background: rgba(255, 255, 255, 0.08); }
.bbtn.tamno:hover { background: rgba(255, 255, 255, 0.14); }

.bform { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bform input,
.bform select {
    flex: 1 1 110px;
    min-width: 0;
    min-height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 14px;
    color: #F4F4F6;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    font: 400 0.875rem/1 var(--font);
    color-scheme: dark;
}

.bmodel { padding: 6px 12px; border-radius: var(--r-pill); font: 500 0.75rem/1 var(--font-display); color: #C4A5FF; background: rgba(142, 108, 255, 0.16); }

.bchat { gap: 14px; min-height: 420px; }
.bporuke { display: flex; flex: 1; flex-direction: column; gap: 12px; max-height: 360px; overflow-y: auto; }
.bmsg { max-width: min(80%, 560px); padding: 11px 15px; border-radius: 20px; font: 400 0.9063rem/1.55 var(--font); }
.bmsg.me { align-self: flex-end; color: #0B0B0E; background: #FFFFFF; border-bottom-right-radius: 6px; }
.bmsg.ai { align-self: flex-start; background: rgba(255, 255, 255, 0.07); border-bottom-left-radius: 6px; }
.bmsg.ai b { color: #C4A5FF; font-weight: 600; }
.bchips { display: flex; flex-wrap: wrap; gap: 8px; }
.bchips button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--r-pill);
    color: #F4F4F6;
    background: rgba(255, 255, 255, 0.06);
    font: 400 0.8125rem/1 var(--font-display);
    cursor: pointer;
}
.bchips button:hover { background: rgba(255, 255, 255, 0.12); }
.bunos { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 18px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.bunos input { flex: 1; min-width: 0; min-height: 40px; border: none; outline: none; color: #F4F4F6; background: none; font: 400 0.9375rem/1 var(--font); }

/* Ulaganja, Kupovina i Navike na tabli (2026-11-06) */
[data-strana="ulaganja"] .bcard-chart { grid-column: span 7; }
[data-strana="ulaganja"] .bcard-list { grid-column: span 5; }
.brow .icon-tile { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; }
.brow .icon-tile .icon { width: 18px; height: 18px; }
.bcard em.down { color: var(--sys-red); }

.bcard-cena { grid-column: span 8; }
.bcard-prodavnice { grid-column: span 7; }
.bcard-javi { grid-column: span 5; }
.kcilj-oznaka { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.55); }
.kcilj-oznaka b { color: var(--sys-yellow); font-weight: 600; }
.kgrafik { position: relative; flex: 1; min-height: 150px; display: flex; flex-direction: column; gap: 8px; }
.kplot { position: relative; height: 150px; }
.kgrafik svg { display: block; width: 100%; height: 150px; overflow: visible; }
.klinija { stroke: #C4A5FF; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.kcilj { stroke: var(--sys-yellow); stroke-width: 1.5; stroke-dasharray: 6 6; }
.ktacka {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sys-yellow);
    box-shadow: 0 0 0 5px rgba(79, 227, 181, 0.22);
    transform: translate(-50%, -50%);
    margin-top: 0;
}
.kose { display: flex; justify-content: space-between; font: 400 0.6875rem/1 var(--font-display); color: rgba(255, 255, 255, 0.4); }
.bcard-javi .bform input { flex: 1 1 140px; }
.bcard-javi small em { font-style: normal; }
.kprati { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.kprati span { padding: 8px 12px; border-radius: var(--r-pill); font: 400 0.8125rem/1 var(--font-display); color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.kprati span b { color: var(--sys-yellow); font-weight: 600; }

.bcard-navika .big .od { font-size: 1rem; font-weight: 400; color: rgba(255, 255, 255, 0.5); }
.ncase { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.ncase span { height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: background 0.25s var(--ease-out); }
.ncase span.puna { background: linear-gradient(180deg, #4FE3B5, #2FB98F); box-shadow: none; }
.niz-broj { color: var(--sys-yellow); font-weight: 600; }
.bcard-lekovi { grid-column: span 5; }
.bcard-mesec { grid-column: span 7; }
.bcard-mesec .bcard-top .legend { margin: 0; font-size: 0.75rem; }
.ndani { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ndani i { font: 500 0.6875rem/1 var(--font-display); font-style: normal; text-align: center; color: rgba(255, 255, 255, 0.4); padding-bottom: 2px; }
.ndani span { aspect-ratio: 1.6; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.ndani span.d1 { background: #A78BFA; opacity: 0.75; }
.ndani span.d2 { background: var(--sys-yellow); }
.ndani span.danas { box-shadow: 0 0 0 2px #FFFFFF; }

@media (max-width: 1080px) {
    [data-strana="ulaganja"] .bcard-chart,
    [data-strana="ulaganja"] .bcard-list,
    .bcard-cena,
    .bcard-prodavnice,
    .bcard-javi,
    .bcard-lekovi,
    .bcard-mesec { grid-column: 1 / -1; }
}

.board-hint { margin-top: 16px; text-align: center; font: 400 0.8125rem/1.5 var(--font-display); color: rgba(255, 255, 255, 0.45); }

@media (max-width: 1080px) {
    .bcard-fakture,
    .bcard-detalj,
    .bcard-list,
    [data-strana="budzet"] .bcard-chart { grid-column: 1 / -1; }
    .bcard-chart { grid-column: span 7; }
    .bcard-heat { grid-column: span 5; }
    .bcard-due { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .bcard-due .bcard-top { width: 100%; }
    .bcard-due .due { flex: 1 1 240px; }
}

@media (max-width: 820px) {
    /* delovi ostaju vidljivi i na telefonu - to je ono sto se klikce */
    .board-top { flex-wrap: wrap; }
    .board-user { display: none; }
    .board-tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
    .board-tabs button { flex: 1 0 auto; padding: 9px 12px; }
    .board-grid > .bcard { grid-column: 1 / -1; }
    .board-grid > .bcard:nth-child(2),
    .board-grid > .bcard:nth-child(3) { grid-column: span 6; }
    .board-grid[data-prikaz]:not([data-prikaz="sve"]) > .bcard { grid-column: 1 / -1; }
    .bmsg { max-width: 90%; }
}

@media (max-width: 560px) {
    .board-sec { margin-top: -110px; }
    .board { padding: 16px 14px 18px; border-radius: 24px; }
    .board-head { margin: 18px 4px 14px; }
    .board-head { flex-direction: column; align-items: flex-start; }
    .board-tabs button { padding: 9px 8px; }
    .board-filters button { padding: 8px 14px; font-size: 0.8125rem; }
    .board-grid { gap: 10px; }
    .board-grid > .bcard:nth-child(2),
    .board-grid > .bcard:nth-child(3) { grid-column: 1 / -1; }
    .bcard { padding: 16px 18px; border-radius: 20px; }
    .bcard-chart { min-height: 260px; }
    .bars { gap: 7px; }
    .bar .tip { font-size: 1.0625rem; padding: 8px 10px; }
}

/* --------------------------------------------------------------------------
   BROJEVI
   -------------------------------------------------------------------------- */

.numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 80px 0 20px;
    border-radius: var(--r-xl);
    box-shadow: inset 0 0 0 1px var(--separator);
}

.numbers > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 28px;
}

.numbers > div + div { box-shadow: inset 1px 0 0 var(--separator); }

.numbers b {
    font: 500 clamp(2rem, 1.4rem + 1.8vw, 3rem)/1 var(--font-display);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.numbers > div:first-child b { color: var(--sys-yellow); }
body.light-mode .numbers > div:first-child b { color: var(--sys-indigo); }
.numbers span { font: 400 0.9375rem/1.4 var(--font-display); color: var(--label-tertiary); }

@media (max-width: 760px) {
    .numbers { grid-template-columns: 1fr 1fr; }
    .numbers > div:nth-child(3) { box-shadow: inset 0 1px 0 var(--separator); }
    .numbers > div:nth-child(4) { box-shadow: inset 1px 1px 0 var(--separator); }
    .numbers > div { padding: 22px 20px; }
}

/* --------------------------------------------------------------------------
   SEKCIJE
   -------------------------------------------------------------------------- */

.sec { padding: 110px 0 20px; }

.sec-head { max-width: 720px; margin-bottom: 44px; }

.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 500 0.8125rem/1 var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sys-purple);
}

.sec-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sys-yellow);
}

body.light-mode .sec-label::before { background: var(--sys-indigo); }

.sec-title {
    margin: 16px 0 14px;
    font: 500 clamp(2rem, 1.3rem + 2.6vw, 3.5rem)/1.08 var(--font-display);
    letter-spacing: -0.03em;
}

.sec-sub {
    font: 400 1.0625rem/1.6 var(--font);
    color: var(--label-secondary);
    max-width: 58ch;
}

/* --------------------------------------------------------------------------
   MODULI - bento mreza
   -------------------------------------------------------------------------- */

/* Filter grupa: Sve / Novac / Ucenje i karijera / Svakodnevica / Radi sam */
.mod-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -14px 0 34px;
}

.mod-filter button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--r-pill);
    font: 500 0.9063rem/1 var(--font-display);
    color: var(--label-secondary);
    background: var(--fill-tertiary);
    box-shadow: inset 0 0 0 1px var(--separator);
    cursor: pointer;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.mod-filter button span {
    padding: 3px 7px;
    border-radius: var(--r-pill);
    font-size: 0.75rem;
    color: var(--label-tertiary);
    background: var(--fill-tertiary);
}

.mod-filter button:hover { color: var(--label); }
.mod-filter button[aria-pressed="true"] { color: var(--pill-on-text); background: var(--pill-on); box-shadow: none; }
.mod-filter button[aria-pressed="true"] span { color: var(--on-yellow); background: var(--sys-yellow); }
.mod-filter button:focus-visible { outline: 2px solid var(--sys-yellow); outline-offset: 2px; }

.mgrupa + .mgrupa { margin-top: 56px; }
.mgrupa[hidden] { display: none; }
.mod-filter[data-izbor]:not([data-izbor="sve"]) ~ .mgrupa { margin-top: 0; }

.mgrupa-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    margin-bottom: 18px;
}

.mgrupa-head h3 { font: 500 1.375rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.mgrupa-head p { color: var(--label-tertiary); font: 400 0.9375rem/1.5 var(--font); }

/* Broj kolona zavisi od broja modula u grupi, da nijedan red ne ostane sa rupom */
.mmreza { display: grid; gap: 16px; }
.mmreza[data-n="6"] { grid-template-columns: repeat(3, 1fr); }
.mmreza[data-n="4"] { grid-template-columns: repeat(4, 1fr); }
.mmreza[data-n="5"] { grid-template-columns: repeat(6, 1fr); }
.mmreza[data-n="5"] .tile { grid-column: span 2; }
.mmreza[data-n="5"] .tile:nth-child(-n+2) { grid-column: span 3; }
.mmreza[data-n="3"] { grid-template-columns: repeat(4, 1fr); }
.mmreza .tile { grid-column: auto; }
.mmreza .tile-wide { grid-column: span 2; }

.mtile { padding: 24px; }
.mtile .tile-top { gap: 10px; margin-bottom: 8px; }
.mtile .tile-go { margin-left: auto; }
.mtile h3 { font-size: 1.25rem; }
.mtile p { font-size: 0.9375rem; }

.mnovo {
    padding: 5px 10px;
    border-radius: var(--r-pill);
    font: 600 0.6875rem/1 var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--on-yellow);
    background: var(--sys-yellow);
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-column: span 2;
    padding: 26px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
        var(--bg-secondary);
    box-shadow: inset 0 0 0 1px var(--glass-stroke);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease-out);
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sys-purple) 45%, transparent), 0 24px 60px rgba(0, 0, 0, 0.3);
}

body.light-mode .tile { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--glass-stroke), 0 10px 30px rgba(11, 11, 20, 0.05); }

.tile-wide { grid-column: span 4; }
.tile-accent { grid-column: span 2; }


.tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tile .icon-tile { width: 48px; height: 48px; border-radius: 50%; }
.tile .icon-tile .icon { width: 22px; height: 22px; }

.tile-go {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--label);
    box-shadow: inset 0 0 0 1px var(--fill);
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.3s var(--ease);
}

.tile-go .icon { width: 18px; height: 18px; }
.tile:hover .tile-go { background: var(--pill-on); color: var(--pill-on-text); transform: rotate(45deg); }

.tile h3 {
    font: 500 1.5rem/1.2 var(--font-display);
    letter-spacing: -0.02em;
}

.tile p { font: 400 0.9688rem/1.6 var(--font); color: var(--label-secondary); max-width: 52ch; }

/* E-Knjigovodja - mint kartica, jedina te boje na strani */
.tile-accent {
    color: #0B0B0E;
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 60%),
        #4FE3B5;
    box-shadow: 0 24px 60px rgba(79, 227, 181, 0.14);
}

body.light-mode .tile-accent { background: radial-gradient(90% 70% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 60%), #4FE3B5; }
.tile-accent p { color: rgba(11, 11, 14, 0.72); }
.tile-accent .tile-go { color: #0B0B0E; box-shadow: inset 0 0 0 1px rgba(11, 11, 14, 0.25); }
.tile-accent:hover .tile-go { background: #0B0B0E; color: #4FE3B5; }
.tile-accent:hover { box-shadow: 0 28px 70px rgba(79, 227, 181, 0.22); }
.icon-tile.dark { --c: #0B0B0E; color: #4FE3B5; background: #0B0B0E; box-shadow: none; }

.tile-num {
    margin-top: auto;
    font: 600 clamp(2rem, 1.4rem + 1.6vw, 2.75rem)/1 var(--font-display);
    letter-spacing: -0.03em;
}

.tile-accent small { font: 400 0.875rem/1.4 var(--font-display); color: rgba(11, 11, 14, 0.6); }

/* Mali razgovor u kartici "AI razgovor" */
.tile-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

.msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 20px;
    font: 400 0.9375rem/1.45 var(--font);
}

.msg.me {
    align-self: flex-end;
    color: #FFFFFF;
    background: var(--sys-indigo);
    border-bottom-right-radius: 6px;
}

.msg.ai {
    align-self: flex-start;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--fill-quaternary);
    box-shadow: inset 0 0 0 1px var(--separator);
    border-bottom-left-radius: 6px;
}

.msg.ai .icon {
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    flex-shrink: 0;
    color: #0B0B0E;
    background: var(--sys-yellow);
    stroke-width: 2.6;
}

@media (max-width: 980px) {
    .mmreza[data-n] { grid-template-columns: 1fr 1fr; }
    .mmreza[data-n] .tile,
    .mmreza[data-n] .tile:nth-child(n) { grid-column: span 1; }
    .mmreza[data-n] .tile-wide,
    .mmreza[data-n="5"] .tile:last-child { grid-column: 1 / -1; }
    .mmreza[data-n="3"] .tile-wide { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .mmreza[data-n] { grid-template-columns: 1fr; }
    .mmreza[data-n] .tile:nth-child(n) { grid-column: 1 / -1; }
    .tile { padding: 22px; border-radius: 24px; }
    .mod-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
    .mod-filter button { flex: 0 0 auto; }
}

/* --------------------------------------------------------------------------
   JEDAN DAN - vremenska linija
   -------------------------------------------------------------------------- */

.dan {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dan-stavka {
    display: grid;
    grid-template-columns: 64px 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 16px 20px 16px 18px;
    border-radius: 24px;
    background: var(--bg-secondary);
    box-shadow: inset 0 0 0 1px var(--glass-stroke);
}

body.light-mode .dan-stavka { background: #FFFFFF; }

.dan-stavka time {
    font: 600 1.125rem/1 var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    color: var(--label);
}

.dan-stavka .icon-tile { width: 44px; height: 44px; border-radius: 50%; }
.dan-stavka .icon-tile .icon { width: 20px; height: 20px; }
.dan-stavka b { display: block; margin-bottom: 3px; font: 500 0.9375rem/1.3 var(--font-display); }
.dan-stavka p { font: 400 0.9063rem/1.5 var(--font); color: var(--label-secondary); }

@media (max-width: 820px) {
    .dan { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .dan-stavka { grid-template-columns: 52px minmax(0, 1fr); padding: 14px 16px; }
    .dan-stavka .icon-tile { display: none; }
    .dan-stavka time { font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   KAKO RADI
   -------------------------------------------------------------------------- */

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

.step {
    padding: 28px;
    border-radius: 28px;
    background: var(--bg-secondary);
    box-shadow: inset 0 0 0 1px var(--glass-stroke);
}

body.light-mode .step { background: #FFFFFF; }

.step-n {
    display: inline-block;
    margin-bottom: 40px;
    font: 500 0.875rem/1 var(--font-display);
    color: var(--label-tertiary);
    font-variant-numeric: tabular-nums;
}

.step h3 { font: 500 1.375rem/1.2 var(--font-display); letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { font: 400 0.9688rem/1.6 var(--font); color: var(--label-secondary); }

.step:nth-child(2) .step-n { color: var(--sys-purple); }
.step:nth-child(3) .step-n { color: var(--sys-yellow); }
body.light-mode .step:nth-child(3) .step-n { color: var(--sys-indigo); }

.models {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font: 400 0.9375rem/1 var(--font-display);
    color: var(--label-tertiary);
}

.models span { margin-right: 6px; }

.models b {
    padding: 11px 18px;
    border-radius: var(--r-pill);
    font-weight: 400;
    color: var(--label);
    box-shadow: inset 0 0 0 1px var(--fill);
}

@media (max-width: 820px) {
    .steps { grid-template-columns: 1fr; }
    .step-n { margin-bottom: 20px; }
}

/* --------------------------------------------------------------------------
   PITANJA
   -------------------------------------------------------------------------- */

.faq-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.faq-wrap .sec-head { position: sticky; top: 110px; }

.faq { display: flex; flex-direction: column; gap: 10px; }

.q-item {
    border-radius: 22px;
    background: var(--bg-secondary);
    box-shadow: inset 0 0 0 1px var(--glass-stroke);
    transition: box-shadow 0.3s var(--ease-out);
}

body.light-mode .q-item { background: #FFFFFF; }
.q-item.open { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sys-purple) 45%, transparent); }

.q-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 20px 20px 24px;
    border: none;
    background: none;
    color: var(--label);
    font: 400 1.0625rem/1.4 var(--font-display);
    text-align: left;
    cursor: pointer;
}

.q-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--fill);
    transition: transform 0.35s var(--ease), background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.q-mark .icon { width: 17px; height: 17px; }

.q-item.open .q-mark {
    transform: rotate(45deg);
    color: var(--on-yellow);
    background: var(--sys-yellow);
    box-shadow: none;
}

.q-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease);
}

.q-body > div { overflow: hidden; }
.q-item.open .q-body { grid-template-rows: 1fr; }

.q-body p {
    padding: 0 24px 22px;
    font: 400 0.9688rem/1.65 var(--font);
    color: var(--label-secondary);
}

@media (max-width: 900px) {
    .faq-wrap { grid-template-columns: 1fr; gap: 0; }
    .faq-wrap .sec-head { position: static; }
}

/* --------------------------------------------------------------------------
   ZAVRSNI POZIV
   -------------------------------------------------------------------------- */

.final {
    position: relative;
    overflow: hidden;
    margin: 120px 0 40px;
    padding: 90px 32px;
    border-radius: 36px;
    text-align: center;
    color: #FFFFFF;
    background: #0B0B0E;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Isti kadar iz videa kao pozadina, bez samog videa - drugi video na
   istoj strani bi bio samo trosak */
.final-media {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 50% 50%, rgba(11, 11, 14, 0.35), rgba(11, 11, 14, 0.9)),
        url(media/hero-poster.jpg) center / cover;
}

.final > *:not(.final-media) { position: relative; }

.final h2 {
    font: 500 clamp(2rem, 1.2rem + 3vw, 3.75rem)/1.05 var(--font-display);
    letter-spacing: -0.035em;
    color: #FFFFFF;
}

.final p {
    margin: 16px 0 32px;
    font: 400 1.0625rem/1.5 var(--font);
    color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   PODNOZJE
   -------------------------------------------------------------------------- */

.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    padding: 28px 0 calc(36px + var(--safe-bottom));
    border-top: 1px solid var(--separator);
    font: 400 0.875rem/1.4 var(--font-display);
    color: var(--label-tertiary);
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 600 1rem/1 var(--font-display);
    color: var(--label);
}

.foot-brand .icon-tile { width: 28px; height: 28px; }
.foot-brand .icon-tile .icon { width: 16px; height: 16px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--label-secondary); }
.foot-links a:hover { color: var(--label); opacity: 1; }

/* --------------------------------------------------------------------------
   OTKRIVANJE NA SKROL
   -------------------------------------------------------------------------- */

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .rise, .bar, .hero-badge .dot { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .board { transform: none; transition: none; }
    .hero-video { transform: none; }
}

/* --------------------------------------------------------------------------
   TELEFON
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .nav-inner { height: 64px; }
    .hero { padding: calc(100px + var(--safe-top)) 0 150px; align-items: flex-start; }
    .hero h1 { margin: 22px 0 18px; }
    .hero-actions .cta { flex: 1 1 100%; }
    .hero-actions .cta-ghost { display: none; }
    .hero-shade {
        background:
            linear-gradient(180deg, rgba(7, 7, 9, 0.55) 0%, rgba(7, 7, 9, 0.7) 50%, #070709 100%);
    }
    .sec { padding-top: 80px; }
    .final { padding: 64px 22px; border-radius: 28px; margin-top: 80px; }
}

/* Grupe sa dve plocice (2026-11-11: manje, spojenih modula) */
.mmreza[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
