/* 7.9.45 — fixed nav, nalog header contrast, phone, auth, map hint */

/* Viewport scrolls — NOT body. Otherwise position:fixed rides up with the page. */
html:has(body.bu-landing-page),
html:has(body.bu-public-inner),
html:has(body.bu-board-page),
html:has(body.bu-nalog-page) {
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  height: auto !important;
}
html body.bu-landing-page,
html body.bu-public-inner,
html body.bu-board-page,
html body.bu-nalog-page {
  overflow: visible !important;
  height: auto !important;
  min-height: 100dvh !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}
html body.bu-landing-page .landing-shell,
html body.bu-public-inner .landing-shell,
html body.bu-board-page .bu-board-shell-wrap,
html body.bu-nalog-page .bu-board-shell-wrap {
  transform: none !important;
  filter: none !important;
  contain: none !important;
  will-change: auto !important;
}

.bu-free, #bu-free, .bu-pkg-force { display: none !important; }

/* —— Sidebar NEVER scrolls with the page —— */
@media (min-width: 1100px) {
  html body.bu-landing-page aside.landing-sidebar,
  html body.bu-landing-page aside.bu-neon-side,
  html body.bu-public-inner aside.landing-sidebar,
  html body.bu-public-inner aside.bu-neon-side,
  html body.bu-board-page aside.bu-board-sidebar,
  html body.bu-nalog-page aside.bu-board-sidebar,
  html body.bu-lista-chrome aside.bu-board-sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 232px !important;
    max-width: 232px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    align-self: auto !important;
    z-index: 80 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transform: none !important;
  }
  html body.bu-landing-page .landing-shell,
  html body.bu-public-inner .landing-shell {
    display: block !important;
    padding-left: 232px !important;
    grid-template-columns: none !important;
  }
  html body.bu-landing-page .landing-shell-main,
  html body.bu-public-inner .landing-shell-main {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.bu-board-page .bu-board-shell-wrap,
  html body.bu-nalog-page .bu-board-shell-wrap,
  html body.bu-lista-chrome .bu-board-shell-wrap {
    padding-left: 232px !important;
    display: block !important;
  }
  html body.bu-landing-page .bu-neon-side-nav,
  html body.bu-public-inner .bu-neon-side-nav,
  html body.bu-board-page .bu-board-sidebar nav,
  html body.bu-nalog-page .bu-board-sidebar nav {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
  }
}

html body .bu-brand-file img,
html body .bu-neon-logo-img,
html body .bu-neon-side-logo-img,
html body .bu-logo-sidebar,
html body .bu-mshell-brand-img,
html body .bu-auth-head-img,
html body .bu-join-logo img {
  max-height: 44px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* —— Nalog header: light text on dark bar, always —— */
html body.bu-nalog-page .bu-board-header,
html body.bu-nalog-page .bu-header-nalog,
html body.bu-nalog-page .bu-board-header-inner,
html body.bu-nalog-page .bu-header-market {
  background: #07111f !important;
  color: #f4fbff !important;
  border-bottom: 1px solid rgba(122, 240, 255, 0.22) !important;
}
html body.bu-nalog-page .bu-board-header *,
html body.bu-nalog-page .bu-board-brand-lab,
html body.bu-nalog-page .bu-board-tab,
html body.bu-nalog-page .bu-nalog-sec-a,
html body.bu-nalog-page .bu-bell,
html body.bu-nalog-page .bu-header-sound,
html body.bu-nalog-page .bu-board-presence-btn,
html body.bu-nalog-page .bu-board-presence-btn span {
  color: #f4fbff !important;
  fill: none;
  stroke: currentColor;
}
html body.bu-nalog-page .bu-board-presence-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(122, 240, 255, 0.35) !important;
}
html body.bu-nalog-page .bu-lang-btn,
html body.bu-nalog-page .bu-lang-btn-code,
html body.bu-nalog-page .bu-lang-flag,
html body.bu-nalog-page .bu-board-userchip,
html body.bu-nalog-page .bu-header-nalog svg {
  color: #f4fbff !important;
  stroke: currentColor;
}
html body.bu-nalog-page .bu-lang-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(122, 240, 255, 0.28) !important;
}

/* —— Map idle hint —— */
.bu-map-hint {
  display: block;
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  max-width: min(360px, 86%);
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.88);
  color: #f4fbff !important;
  font-weight: 750;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.bu-map-hint[hidden] { display: none !important; }

/* —— Price: month vs year, readable —— */
.bu-price-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 22px;
}
.bu-price-duo article {
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  padding: 16px 16px 14px;
  background: #fff;
  color: #0b1220;
}
.bu-price-duo article.is-on {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px #0ea5e9;
}
.bu-price-duo small { display: block; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; color: #64748b; }
.bu-price-duo strong { display: block; font-size: 32px; letter-spacing: -0.04em; margin: 4px 0; }
.bu-price-duo em { font-style: normal; color: #64748b; font-weight: 700; }
.bu-price-duo .bu-price-year { color: #047857; font-weight: 800; font-size: 13px; margin: 6px 0 0; }
.bu-price-duo label { cursor: pointer; margin: 0; }
.bu-price-duo input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.bu-price-duo label:has(input:checked),
.bu-pay-duo label:has(input:checked) {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px #0ea5e9;
  background: #f0f9ff;
}
.bu-pay-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 22px;
}
.bu-pay-duo label {
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  color: #0b1220;
}
.bu-pay-duo input { position: absolute; opacity: 0; pointer-events: none; }
.bu-pay-duo strong { display: block; margin-bottom: 4px; }
.bu-pay-duo span { color: #64748b; font-size: 13px; font-weight: 650; }
.bu-join-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

/* —— Auth v45 —— */
body.bu-auth-chrome { background: #071018; }
body.bu-auth-chrome .bu-dock,
body.bu-auth-chrome .bu-support { display: none !important; }
.bu-join-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: #050a14;
  border-bottom: 1px solid rgba(122, 240, 255, 0.16);
}
.bu-join-head a { color: #eaf6ff; font-weight: 800; text-decoration: none; }
.bu-join-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 64px;
  color: #0b1220;
}
.bu-join-card {
  background: #fff;
  border-radius: 22px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.bu-join-card h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.04em; color: #07111f; }
.bu-join-card .bu-join-lead { margin: 0 0 20px; color: #475569; }
.bu-join-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.bu-join-roles a {
  display: block;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #dbe4ef;
  text-decoration: none;
  color: #0b1220;
  background: #f8fafc;
}
.bu-join-roles a.is-on { border-color: #0ea5e9; background: #f0f9ff; }
.bu-join-roles strong { display: block; }
.bu-join-roles span { color: #64748b; font-size: 13px; }
.bu-auth-v44, .bu-auth-v44-aside, .bu-auth-v44-head { display: none !important; }
body.bu-auth-chrome .bu-join-card .bu-form-card,
body.bu-auth-chrome .bu-join-card .bu-reg-form {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border: 0;
}

/* —— Phone shell —— */
@media (max-width: 899px) {
  .bu-mshell-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 8px 10px;
    background: #07111f !important;
    color: #f4fbff !important;
    border-bottom: 1px solid rgba(122, 240, 255, 0.2);
  }
  .bu-mshell-brand-img { max-height: 32px !important; }
  .bu-mshell-menu {
    width: 40px; height: 40px;
    border: 0; background: rgba(255,255,255,0.08);
    border-radius: 12px;
    display: grid; place-items: center; gap: 4px;
  }
  .bu-mshell-menu span {
    display: block; width: 16px; height: 2px; background: #f4fbff; border-radius: 2px;
  }
  .bu-phonedock {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #07111f !important;
    border-top: 1px solid rgba(122, 240, 255, 0.22);
  }
  .bu-phonedock-a, .bu-phonedock-pub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    color: #9fb4c6 !important;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    background: transparent;
    border: 0;
  }
  .bu-phonedock-a.is-on, .bu-phonedock-a.is-on em { color: #7af0ff !important; }
  .bu-phonedock-pub {
    width: 48px; height: 48px; margin: 0 auto;
    border-radius: 16px;
    background: #00b4ff !important;
    color: #041018 !important;
  }
  body.bu-board-page .bu-feed .bu-item,
  body.bu-app-page .bu-feed .bu-item {
    grid-template-columns: 1fr !important;
    gap: 6px;
    padding: 12px !important;
    border-radius: 16px;
    background: #fff;
    margin: 8px 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }
  body.bu-board-page .bu-cols-head { display: none !important; }
  body.bu-board-page .bu-c { min-height: auto; }
  body.bu-board-page .bu-c::before {
    content: attr(data-lab);
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
  }
}

@media (max-width: 720px) {
  .bu-price-duo, .bu-join-roles, .bu-pay-duo { grid-template-columns: 1fr; }
  .bu-join-card { padding: 18px 14px; }
}

/* Cijene: godišnje = 250 € veliko, ne 20.8/mj */
html body.bu-public-inner .bu-price-card.is-featured .bu-price-num {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
  color: #07111f;
}
html body.bu-public-inner .bu-price-was { color: #94a3b8; text-decoration: line-through; }
html body.bu-public-inner .bu-bill-pack.is-year strong,
html body.bu-nalog-page .bu-bill-pack.is-year strong {
  font-size: 2rem;
}

.bu-phonedock-a svg, .bu-phonedock-pub svg, .bu-mshell-ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}
.bu-phonedock-pub svg { stroke: #041018; }

@media (max-width: 899px) {
  body.bu-nalog-page .bu-nalog-win,
  body.bu-nalog-page .bu-form-card,
  body.bu-nalog-page .bu-dash-panel {
    margin: 10px 10px 14px !important;
    border-radius: 18px !important;
  }
  body.bu-board-page .bu-filter-chrome {
    padding: 8px 10px !important;
  }
  .bu-mshell-drawer {
    background: #07111f !important;
    color: #f4fbff !important;
  }
  .bu-mshell-drawer a { color: #eaf6ff !important; }
  .bu-mshell-drawer-kicker {
    color: #7af0ff !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 850;
  }
  .bu-mshell-ico {
    width: 40px; height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #f4fbff;
    display: grid; place-items: center;
  }
}
