/**
 * Last-in CSS: layout, z-index, modals, board chrome, phone.
 * Loaded after overlay-fit so it wins without hunting 12 files.
 */

:root {
  --bu-z-map: 1;
  --bu-z-list: 2;
  --bu-z-filter: 40;
  --bu-z-geo: 520;
  --bu-z-header: 80;
  --bu-z-sidebar: 70;
  --bu-z-dock: 200;
  --bu-z-sheet: 400;
  --bu-z-overlay: 20120;
  --bu-z-overlay-hi: 20140;
}

/* ——— Header tabs: one line, board language ——— */
body.bu-board-page .bu-board-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
body.bu-board-page .bu-board-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
body.bu-board-page .bu-board-tab small,
body.bu-board-page .bu-board-nav-txt small {
  display: none !important;
}
body.bu-board-page .bu-board-tab.is-on {
  border-color: #86efac;
  background: #ecfdf5;
  color: #14532d;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.16);
}
body.bu-board-page .bu-board-header-right {
  min-width: 0;
  flex-wrap: nowrap;
  overflow: visible;
}
body.bu-board-page .bu-header-generate {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #86efac;
  background: #166534;
  color: #ecfdf5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ——— Search tabs + plus in one row ——— */
body.bu-board-page .bu-tabs-chrome .bu-tabs-bar {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
  margin: 0;
}
body.bu-board-page .bu-tabs-scroll-wrap {
  flex: 1 1 auto;
  min-width: 0;
}
body.bu-board-page .bu-tab-add,
body.bu-board-page #bu-stab-add {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 32px !important;
  align-self: flex-end !important;
  margin: 0 4px 0 2px !important;
}

/* ——— Obavijesti full width ——— */
body.bu-board-page .bu-alert-bar,
body.bu-board-page #f-alert-btn.bu-alert-bar {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  justify-content: flex-start;
  gap: 10px;
}
body.bu-board-page .bu-alert-bar-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* ——— Sidebar never leaves the viewport ——— */
body.bu-board-page .bu-board-sidebar,
body.bu-nalog-page .bu-board-sidebar {
  max-height: 100dvh;
  overflow: hidden;
}
body.bu-board-page .bu-board-sidebar-nav,
body.bu-nalog-page .bu-board-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-contain: contain;
  padding-bottom: 8px;
}
body.bu-board-page .bu-board-sidebar-foot,
body.bu-nalog-page .bu-board-sidebar-foot {
  flex: 0 0 auto;
  margin-top: auto;
}

/* ——— Geo suggestions above filters ——— */
body.bu-board-page .bu-geo-list,
.bu-geo-list {
  z-index: var(--bu-z-geo) !important;
}

/* ——— Post preview: viewport lock, centered, one scroll ——— */
html.bu-post-confirm-open,
body.bu-post-confirm-open {
  overflow: hidden !important;
}
.bu-post-confirm:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--bu-z-overlay-hi) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  background: rgba(15, 23, 42, 0.48) !important;
}
.bu-post-confirm-sheet {
  width: min(920px, 100%) !important;
  max-height: min(88dvh, 820px) !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}
.bu-post-confirm-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}

/* Promo / VIP bars never steal board or landing chrome */
body.bu-board-page .bu-free,
body.bu-board-page .bu-vip-status-bar,
body.bu-landing-page .bu-vip-status-bar,
body.bu-board-page .bu-pkg-banner {
  display: none !important;
}

/* Landing timeline: readable labels */
@media (min-width: 1280px) {
  body.bu-landing-page .landing-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 12px 14px 14px;
    border-radius: 20px;
    min-width: 118px;
  }
  body.bu-landing-page .landing-timeline-dot {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    height: auto;
    margin: 0;
    background: transparent;
  }
  body.bu-landing-page .landing-timeline-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
    flex-shrink: 0;
  }
  body.bu-landing-page .landing-timeline-dot.is-on::before {
    background: #1d6fd8;
    box-shadow: 0 0 0 4px rgba(29, 111, 216, 0.2);
  }
  body.bu-landing-page .landing-timeline-dot span {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
  }
  body.bu-landing-page .landing-timeline-dot.is-on span {
    color: #0f172a;
  }
}

/* ——— Phone board: readable cards, dock, no dead space ——— */
@media (max-width: 899px) {
  body.bu-board-page {
    height: 100dvh;
    overflow: hidden;
  }
  body.bu-board-page .bu-board-header-v8 .bu-board-tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }
  body.bu-board-page .bu-header-generate {
    min-height: 32px;
    padding: 0 8px;
    font-size: 10px;
  }
  body.bu-board-page .bu-feed {
    padding: 8px 10px calc(var(--bu-phonedock-h, 68px) + 18px) !important;
  }
  body.bu-board-page .bu-feed .bu-item.bu-row.compact {
    grid-template-columns: 1fr auto !important;
    gap: 4px 8px !important;
    padding: 12px 12px 10px !important;
    border-radius: 16px !important;
  }
  body.bu-board-page .bu-feed .bu-c-from,
  body.bu-board-page .bu-feed .bu-c-to,
  body.bu-board-page .bu-feed .bu-c-route {
    grid-column: 1 / -1;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.25;
    white-space: normal !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  body.bu-board-page .bu-phonedock,
  .bu-phonedock {
    z-index: var(--bu-z-dock) !important;
  }
  .bu-mshell-drawer,
  .bu-mshell-drawer-bg {
    z-index: 20090 !important;
  }
  .bu-post-confirm:not([hidden]) {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .bu-post-confirm-sheet {
    width: 100% !important;
    max-height: min(92dvh, 100%) !important;
    border-radius: 18px 18px 0 0 !important;
  }
}

/* ——— Theme-wide overlay SSOT (phone ≤899 / desktop ≥900) ——— */
html.bu-post-confirm-open,
body.bu-post-confirm-open,
body.bu-post-open,
body.bu-agent-open,
body.bu-chat-sheet-open,
body.bu-detail-open,
body.bu-notes-open,
body.bu-cal-open,
body.bu-fleet-open,
body.bu-mshell-open,
body.bu-gate-on,
body:has(#bu-vip-modal:not([hidden])),
body:has(#bu-onboarding:not([hidden])),
body:has(#bu-tour:not([hidden])),
body:has(#bu-offer-load:not([hidden])),
body:has(#bu-help-tip:not([hidden])),
body:has(#bu-nalog-confirm:not([hidden])),
body:has(#bu-tool-info:not([hidden])),
body:has(#bu-fleet-modal:not([hidden])),
body:has(#bu-assign-sheet:not([hidden])),
body:has(#bu-agent:not([hidden])),
body:has(#bu-chat:not([hidden])),
body:has(.bu-map-layers-dialog[open]),
body:has(.bu-cmd-dialog[open]) {
  overflow: hidden !important;
}

.bu-free,
.bu-vip-status-bar,
.bu-pkg-banner,
#bu-pkg-banner,
body.bu-nalog-page .bu-free,
body.bu-lista-chrome .bu-vip-status-bar,
body.bu-auth-chrome .bu-vip-status-bar {
  display: none !important;
}

#bu-chat.bu-chat:not([hidden]),
#bu-agent.bu-chat:not([hidden]),
#bu-post.bu-chat.is-open:not([hidden]) {
  z-index: var(--bu-z-overlay-hi) !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  padding: 0 !important;
  background: rgba(15, 23, 42, 0.48) !important;
}
#bu-chat[hidden],
#bu-agent[hidden],
#bu-post[hidden],
#bu-post.bu-chat:not(.is-open) {
  display: none !important;
}
#bu-chat .bu-chat-panel,
#bu-agent .bu-chat-panel,
#bu-post .bu-post-panel {
  width: 100%;
  max-width: 100%;
  max-height: min(92dvh, 820px);
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #fff;
}
#bu-chat .bu-chat-body,
#bu-agent .bu-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
#bu-chat .bu-chat-form,
#bu-agent .bu-chat-form,
#bu-chat .bu-btn.green,
#bu-chat [data-chat-mail] {
  flex: 0 0 auto;
}

.bu-vip-modal:not([hidden]),
.bu-offer-modal:not([hidden]),
.bu-onboard:not([hidden]),
.bu-help-modal:not([hidden]),
.bu-nalog-confirm-backdrop:not([hidden]),
.bu-tool-info-backdrop:not([hidden]),
.bu-fleet-modal:not([hidden]),
.bu-detail-modal:not([hidden]),
.bu-gate:not([hidden]) {
  z-index: var(--bu-z-overlay-hi) !important;
}

.bu-lang-menu,
.bu-tools-pop,
.bu-support-menu,
.bu-veh-drop-menu,
.bu-live-menu,
.bu-live-pop,
.bu-quick {
  z-index: var(--bu-z-overlay) !important;
}

.bu-notes {
  z-index: var(--bu-z-overlay-hi) !important;
}

.bu-fresh-toast {
  z-index: 20160 !important;
  bottom: calc(12px + var(--bu-phonedock-h, 0px) + env(safe-area-inset-bottom, 0px));
}
body.bu-nalog-page .bu-fresh-toast,
body.bu-board-page .bu-fresh-toast {
  bottom: calc(12px + var(--bu-phonedock-h, 68px) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) {
  body.bu-board-page .bu-fresh-toast,
  body.bu-nalog-page .bu-fresh-toast {
    bottom: 20px;
    right: 20px;
  }
}

@media (min-width: 900px) {
  #bu-chat.bu-chat:not([hidden]),
  #bu-agent.bu-chat:not([hidden]),
  #bu-post.bu-chat.is-open:not([hidden]),
  .bu-vip-modal:not([hidden]),
  .bu-offer-modal:not([hidden]),
  .bu-onboard:not([hidden]),
  .bu-help-modal:not([hidden]),
  .bu-detail-modal:not([hidden]),
  .bu-nalog-confirm-backdrop:not([hidden]),
  .bu-tool-info-backdrop:not([hidden]),
  .bu-fleet-modal:not([hidden]),
  .bu-gate:not([hidden]) {
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
  }
  #bu-chat .bu-chat-panel,
  #bu-agent .bu-chat-panel,
  #bu-post .bu-post-panel {
    width: min(440px, 100%);
    border-radius: 20px;
    max-height: min(86dvh, 720px);
  }
  .bu-chat-drawer-wrap:not([hidden]) {
    align-items: stretch !important;
    justify-content: flex-end !important;
  }
  .bu-chat-drawer {
    width: min(420px, 100%) !important;
    height: 100% !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }
  .bu-notes {
    inset: auto 16px auto auto !important;
    top: 72px !important;
    width: min(380px, calc(100vw - 32px)) !important;
    max-height: min(70dvh, 560px) !important;
    border-radius: 16px !important;
  }
  .bu-nalog-confirm-sheet {
    width: min(420px, 100%);
    border-radius: 18px !important;
  }
}

@media (max-width: 899px) {
  .bu-chat-drawer-wrap:not([hidden]) {
    align-items: flex-end !important;
    justify-content: stretch !important;
  }
  .bu-vip-sheet,
  .bu-pkg-sheet,
  .bu-offer-sheet,
  .bu-onboard-sheet,
  .bu-help-sheet,
  .bu-detail-modal-sheet,
  .bu-tool-info-sheet,
  .bu-fleet-modal-sheet,
  .bu-gate-card,
  .bu-nalog-confirm-sheet {
    width: 100% !important;
    max-width: none !important;
    max-height: min(92dvh, 900px) !important;
    border-radius: 20px 20px 0 0 !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .bu-nalog-confirm-backdrop:not([hidden]) {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .bu-notes {
    inset: auto 0 0 !important;
    width: 100% !important;
    max-height: min(78dvh, 560px) !important;
    border-radius: 20px 20px 0 0 !important;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #bu-chat .bu-chat-form input,
  #bu-agent .bu-chat-form input,
  #bu-chat .bu-chat-form .bu-btn,
  #bu-agent .bu-chat-form .bu-btn,
  .bu-vip-pay,
  .bu-help-close-btn,
  .bu-onboard-submit,
  .bu-nalog-confirm-actions .bu-btn {
    min-height: 48px;
  }
  .bu-board-page .bu-filter-fold.open {
    max-height: min(52dvh, 420px);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .bu-lang-menu {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-height: min(70dvh, 480px);
    overflow: auto;
    z-index: var(--bu-z-overlay-hi) !important;
  }
  body.bu-lista-chrome .bu-phonedock,
  body.bu-help-chrome .bu-phonedock {
    z-index: var(--bu-z-dock) !important;
  }
}

body.bu-nalog-chat-docked.bu-chat-sheet-open {
  overflow: auto !important;
}
body.bu-nalog-chat-docked .bu-chat-drawer-wrap {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  display: block !important;
  height: min(62vh, 560px);
}
body.bu-nalog-chat-docked .bu-chat-drawer-backdrop {
  display: none !important;
}
body.bu-nalog-chat-docked .bu-chat-drawer {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

/* ——— Entry windows: jezik / prijava / registracija / paket ——— */
body.bu-auth-chrome {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(29, 111, 216, 0.12), transparent 42%),
    radial-gradient(ellipse at 100% 100%, rgba(5, 150, 105, 0.1), transparent 40%),
    #eef3f8;
}
body.bu-auth-chrome .bu-auth-top {
  display: flex !important;
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}
body.bu-auth-chrome .bu-auth-top-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
body.bu-auth-chrome .bu-lang-pick-compact .bu-lang-btn {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
body.bu-auth-chrome .bu-lang-menu {
  z-index: 20150 !important;
}
body.bu-auth-chrome .bu-auth-top-cta {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}
body.bu-auth-chrome .bu-page.bu-auth-v2 {
  max-width: none;
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 40px;
  display: grid;
  gap: 18px;
}
body.bu-auth-chrome .bu-auth-aside {
  display: none;
}
body.bu-auth-chrome .bu-auth-main {
  min-width: 0;
}
body.bu-auth-chrome .bu-kicker {
  margin: 0 0 4px;
}
body.bu-auth-chrome h1 {
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
body.bu-auth-chrome .bu-sub {
  margin: 0 0 12px;
}
body.bu-auth-chrome .bu-auth-trust {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px !important;
  margin: 0 0 12px !important;
}
body.bu-auth-chrome .bu-auth-trust li {
  padding: 8px 6px !important;
  text-align: center;
  font-size: 11px !important;
  font-weight: 900;
  background: #fff;
}
body.bu-auth-chrome .bu-auth-trust li::before {
  display: none !important;
}
body.bu-auth-chrome .bu-auth-gate {
  margin: 0 0 14px;
}
body.bu-auth-chrome .bu-auth-gate-tab {
  min-height: 46px;
}
body.bu-auth-chrome .bu-form-card {
  padding: 16px 16px 14px;
}
body.bu-auth-chrome .bu-form-card .bu-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}
body.bu-auth-chrome .bu-role-cards {
  gap: 8px;
}
body.bu-auth-chrome .bu-role-card {
  padding: 14px 14px 12px;
  gap: 4px;
}
body.bu-auth-chrome .bu-role-card p {
  font-size: 12px;
}
body.bu-auth-chrome .bu-geo-list {
  z-index: var(--bu-z-geo) !important;
}

.bu-gate-lang .bu-gate-card-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bu-gate-lang .bu-gate-flags {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bu-gate-lang .bu-gate-flag {
  min-height: 56px;
  gap: 8px;
  flex-direction: row;
  justify-content: flex-start;
  padding: 10px 12px;
}
.bu-gate-lang .bu-gate-flag-emoji {
  font-size: 22px;
  line-height: 1;
}
.bu-gate-lang .bu-gate-more {
  margin-top: 10px;
}
.bu-gate-lang .bu-gate-skip-inline {
  margin-top: 12px;
}
.bu-gate-lang .bu-gate-skip-inline .bu-btn {
  width: 100%;
  min-height: 46px;
}

.bu-vip-modal .bu-pkg-cards {
  gap: 8px;
}
.bu-vip-modal .bu-pkg-card {
  padding: 12px;
}
.bu-vip-modal .bu-pkg-card ul {
  margin: 8px 0 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.35;
}
.bu-vip-modal .bu-vip-period,
.bu-vip-modal .bu-vip-gateway {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 12px 0;
}
.bu-vip-modal .bu-vip-period button,
.bu-vip-modal .bu-vip-gateway button {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.bu-vip-modal .bu-vip-period button.is-on,
.bu-vip-modal .bu-vip-gateway button.is-on {
  border-color: #86efac;
  background: #ecfdf5;
}

@media (max-width: 899px) {
  body.bu-auth-chrome {
    padding-bottom: 0 !important;
  }
  body.bu-auth-chrome .bu-mshell,
  body.bu-auth-chrome .bu-phonedock,
  body.bu-auth-chrome .bu-dock {
    display: none !important;
  }
  body.bu-auth-chrome .bu-auth-top-hint {
    display: none;
  }
  body.bu-auth-chrome .bu-auth-top-status {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
  }
  body.bu-auth-chrome .bu-lang-pick-compact .bu-lang-btn span {
    display: none;
  }
  body.bu-auth-chrome .bu-page.bu-auth-v2 {
    width: 100%;
    padding: 10px 12px 28px;
  }
  body.bu-auth-chrome h1 {
    font-size: 1.4rem;
  }
  .bu-gate-v2 {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .bu-gate-card-v2 {
    width: 100% !important;
    max-height: min(92dvh, 760px);
    overflow: auto;
    border-radius: 22px 22px 0 0 !important;
    padding: 18px 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 900px) {
  body.bu-auth-chrome .bu-page.bu-auth-v2 {
    grid-template-columns: minmax(280px, 0.9fr) minmax(380px, 1.1fr);
    align-items: stretch;
    padding: 28px 0 48px;
    min-height: calc(100dvh - 64px);
  }
  body.bu-auth-chrome .bu-auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 28px 26px;
    border-radius: 24px;
    background:
      linear-gradient(165deg, #0b3d7a 0%, #0f4c9a 46%, #14532d 140%);
    color: #fff;
    min-height: 520px;
  }
  body.bu-auth-chrome .bu-auth-aside-kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #93c5fd;
  }
  body.bu-auth-chrome .bu-auth-aside h2 {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
  }
  body.bu-auth-chrome .bu-auth-aside ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
  }
  body.bu-auth-chrome .bu-auth-aside li {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
  }
  body.bu-auth-chrome .bu-auth-main {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 22px 22px 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  }
  body.bu-auth-chrome .bu-form-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .bu-gate-v2 {
    align-items: center !important;
    padding: 24px !important;
  }
  .bu-gate-lang .bu-gate-card-v2 {
    width: min(480px, 100%) !important;
    border-radius: 24px !important;
    padding: 28px 24px 20px !important;
  }
  .bu-vip-modal:not([hidden]) .bu-vip-sheet {
    width: min(720px, 100%);
  }
  .bu-vip-modal .bu-pkg-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Launch: landing chrome, 3D hero, marketing, phone —— */
body.bu-landing-page .landing-shell,
body.bu-landing-page .landing-shell-full {
  display: block !important;
  grid-template-columns: none !important;
  height: auto !important;
  overflow: visible !important;
  background: #f4f7fb;
}
body.bu-landing-page .landing-sidebar,
body.bu-landing-page .bu-board-sidebar.landing-sidebar,
body.bu-landing-page .landing-sidebar-toggle {
  display: none !important;
}
body.bu-landing-page .landing-shell-main {
  max-width: none !important;
  width: 100%;
  height: auto !important;
  overflow: visible !important;
  background: #f4f7fb;
}
body.bu-landing-page .bu-site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 90 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
body.bu-landing-page .bu-site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  min-height: 64px;
  gap: 16px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}
body.bu-landing-page .bu-site-logo-img {
  display: block !important;
  height: 34px !important;
  filter: none !important;
}
body.bu-landing-page .bu-site-link {
  color: #0f172a;
  font-weight: 800;
}
body.bu-landing-page .bu-site-cta {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.22);
}
body.bu-landing-page .bu-site-nav { gap: 2px; justify-content: center; }
body.bu-landing-page .bu-site-nav-a {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  color: #334155;
  font-weight: 800;
}
body.bu-landing-page .bu-site-nav-a.is-on {
  background: #ecfdf5;
  color: #14532d;
}
.bu-site-more {
  position: relative;
}
.bu-site-more summary {
  list-style: none;
  cursor: pointer;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  display: inline-flex;
  align-items: center;
}
.bu-site-more summary::-webkit-details-marker { display: none; }
.bu-site-more[open] summary,
.bu-site-more summary:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.bu-site-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 2px;
  z-index: 20;
}
.bu-site-more-menu a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #0f172a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.bu-site-more-menu a:hover,
.bu-site-more-menu a.is-on {
  background: #ecfdf5;
  color: #14532d;
}

.landing-hero-desk {
  min-height: calc(100dvh - 60px);
}
.landing-hero-desk-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px 40px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100dvh - 64px);
  padding: 36px 32px 44px !important;
}
.landing-hero-desk-search {
  background: rgba(15, 23, 42, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 24px 50px rgba(2, 8, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transform: translateZ(24px);
}
.landing-hero-3d {
  perspective: 1600px;
  padding: 8px 8px 20px 0;
}
.landing-hero-3d-stage {
  position: relative;
  transform-style: preserve-3d;
}
.landing-hero-3d-board {
  transform: rotateY(-14deg) rotateX(9deg) translateZ(12px);
  transform-style: preserve-3d;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(8, 15, 30, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 40px 80px rgba(2, 8, 23, 0.55),
    18px 28px 0 rgba(2, 8, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  backdrop-filter: blur(18px);
}
.landing-hero-3d-board-head {
  display: flex;
  gap: 6px;
  padding: 12px 12px 8px;
  background: rgba(2, 8, 23, 0.45);
}
.landing-hero-3d-board-head span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
}
.landing-hero-3d-board-head .is-on {
  background: #1d6fd8;
  color: #fff;
}
.landing-hero-3d-board-cols {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr 0.7fr;
  gap: 8px;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.landing-hero-3d-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr 0.7fr;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  color: #e2e8f0;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
}
.landing-hero-3d-row:hover { background: rgba(29, 111, 216, 0.16); }
.landing-hero-3d-row em { font-style: normal; color: #93c5fd; }
.landing-hero-3d-row b { color: #86efac; font-weight: 900; }
.landing-hero-3d-float {
  position: absolute;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(2, 8, 23, 0.4);
}
.landing-hero-3d-float.is-a {
  top: -6px;
  right: 12px;
  transform: translateZ(48px);
}
.landing-hero-3d-float.is-b {
  bottom: 18px;
  left: -8px;
  transform: translateZ(36px);
}

body.bu-landing-page .landing-band {
  padding: 48px 0;
}
body.bu-landing-page .landing-content {
  max-width: 1120px;
}
.landing-3d-panel,
body.bu-landing-page .landing-demo-board,
body.bu-landing-page .landing-ai-quote,
body.bu-landing-page .landing-paket,
body.bu-landing-page .landing-product-grid article,
body.bu-landing-page .landing-blog-card,
body.bu-landing-page .landing-entry-card,
body.bu-landing-page .landing-markets-links a {
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
body.bu-landing-page .landing-demo-board {
  border-radius: 22px;
  transform: perspective(1400px) rotateX(3deg);
}
body.bu-landing-page .landing-paket:hover,
body.bu-landing-page .landing-product-grid article:hover,
body.bu-landing-page .landing-blog-card:hover,
body.bu-landing-page .landing-entry-card:hover,
body.bu-landing-page .landing-markets-links a:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}
body.bu-landing-page .landing-entry {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
body.bu-landing-page .bu-appcta-split {
  gap: 14px;
}
body.bu-landing-page .bu-appcta-col {
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.bu-mkt-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.bu-mkt-hero-inner {
  max-width: 920px;
}
.bu-mkt .bu-price-card,
.bu-mkt .bu-mkt-pillar,
.bu-mkt .bu-mkt-feature,
.bu-mkt .bu-mkt-channel,
.bu-pro-tools a {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bu-mkt .bu-price-card:hover,
.bu-mkt .bu-mkt-channel:hover,
.bu-pro-tools a:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
}
.bu-foot {
  padding: 36px 24px 28px;
}
.bu-foot-grid {
  max-width: 1120px;
  margin: 0 auto;
  gap: 28px;
}

@media (max-width: 899px) {
  body.bu-landing-page .bu-site-header {
    display: none !important;
  }
  .landing-hero-desk {
    min-height: calc(100dvh - 52px - var(--bu-phonedock-h, 68px)) !important;
    display: flex !important;
    align-items: stretch;
  }
  .landing-hero-desk .landing-intro-media {
    position: absolute !important;
    inset: 0 !important;
    max-height: none !important;
  }
  .landing-hero-desk .landing-hero-bg {
    height: 100% !important;
    object-fit: cover;
  }
  .landing-hero-desk-veil {
    background:
      linear-gradient(180deg, rgba(8, 15, 30, 0.35) 0%, rgba(8, 15, 30, 0.82) 55%, rgba(8, 15, 30, 0.94) 100%) !important;
  }
  .landing-hero-desk-inner {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px !important;
    min-height: inherit;
    padding: 18px 14px 22px !important;
    background: transparent !important;
    grid-template-columns: none;
  }
  .landing-hero-desk-copy h1 {
    font-size: 1.7rem !important;
    max-width: none;
  }
  .landing-hero-3d {
    perspective: 900px;
    padding: 0;
  }
  .landing-hero-3d-board {
    transform: rotateX(8deg) rotateY(-6deg);
  }
  .landing-hero-3d-board-cols,
  .landing-hero-3d-row {
    grid-template-columns: 1.2fr 1.2fr 0.8fr;
  }
  .landing-hero-3d-board-cols span:nth-child(3),
  .landing-hero-3d-row em {
    display: none;
  }
  .landing-hero-3d-float.is-a { right: 8px; top: -10px; }
  .landing-hero-3d-float.is-b { left: 8px; }
  body.bu-landing-page .landing-band {
    padding: 32px 0;
  }
  body.bu-landing-page .landing-content {
    padding: 0 16px;
  }
  body.bu-landing-page .landing-demo-board {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-3d-board,
  body.bu-landing-page .landing-demo-board,
  .landing-hero-cards > div {
    transform: none !important;
  }
}

/* Lemon overlay above board chrome */
.lemonsqueezy-overlay,
#lemonsqueezy-overlay,
iframe[src*="lemonsqueezy.com"] {
  z-index: 2147483000 !important;
}

@media (min-width: 768px) and (max-width: 1099px) {
  .landing-hero-desk-inner {
    grid-template-columns: 1fr;
    padding: 28px 22px 32px !important;
  }
  .landing-hero-3d-board {
    transform: rotateY(-8deg) rotateX(6deg);
  }
  body.bu-landing-page .bu-site-nav-a {
    padding: 0 8px;
    font-size: 12px;
  }
}

/* —— Desktop Utovari: header + mapa/lista/BU u jednom viewportu —— */
@media (min-width: 1100px) {
  body.bu-board-page .bu-board-header-inner {
    display: grid !important;
    grid-template-columns: minmax(168px, 200px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
    padding: 8px 16px !important;
    min-height: 56px;
  }
  body.bu-board-page .bu-board-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: #0f172a;
  }
  body.bu-board-page .bu-board-logo-img {
    height: 28px !important;
    width: auto;
    display: block;
    filter: none !important;
  }
  body.bu-board-page .bu-board-brand-lab {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.bu-board-page .bu-board-tabs {
    justify-content: flex-start;
  }
  body.bu-board-page .bu-board-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  body.bu-board-page .bu-board-userchip span {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.bu-term .bu-term-grid,
  body.bu-board-page .bu-term-grid {
    grid-template-columns: minmax(280px, 28%) minmax(360px, 48%) minmax(260px, 24%) !important;
  }
  body.bu-board-page .bu-filters-board {
    padding: 8px 12px 10px;
  }
  body.bu-board-page .bu-board-list,
  body.bu-board-page .bu-map-wrap,
  body.bu-board-page .bu-dispo {
    min-height: 0;
  }
}
