/**
 * Windows fit 7.8.1 — every dialog / sheet / auth surface
 * Desktop: centered, one scroll region, sticky actions
 * Phone: bottom sheet, safe-area, no nested scroll traps
 */

/* —— Body lock when overlays open —— */
body.bu-gate-on,
body.bu-chat-sheet-open,
body.bu-detail-open,
body.bu-post-confirm-open,
body.bu-post-open,
html.bu-post-confirm-open,
body.bu-mshell-open,
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])) {
  overflow: hidden !important;
}

/* —— Shared overlay pattern —— */
.bu-vip-modal,
.bu-pkg-modal,
.bu-offer-modal,
.bu-onboard,
.bu-help-modal,
.bu-post-confirm,
.bu-detail-modal,
.bu-nalog-confirm-backdrop,
.bu-gate {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20050;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.bu-vip-modal[hidden],
.bu-pkg-modal[hidden],
.bu-offer-modal[hidden],
.bu-onboard[hidden],
.bu-help-modal[hidden],
.bu-post-confirm[hidden],
.bu-detail-modal[hidden],
.bu-nalog-confirm-backdrop[hidden],
.bu-gate[hidden] {
  display: none !important;
}

.bu-vip-backdrop,
.bu-offer-backdrop,
.bu-help-backdrop,
.bu-post-confirm-backdrop,
.bu-detail-modal-backdrop,
.bu-gate-bg {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bu-vip-sheet,
.bu-pkg-sheet,
.bu-offer-sheet,
.bu-onboard-sheet,
.bu-help-sheet,
.bu-post-confirm-sheet,
.bu-detail-modal-sheet,
.bu-nalog-confirm-sheet,
.bu-gate-card,
.bu-gate-card-v2 {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  max-height: min(92dvh, 900px);
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 48px rgba(15, 23, 42, 0.22);
}

.bu-vip-head,
.bu-pkg-head,
.bu-offer-head,
.bu-help-sheet > header,
.bu-post-confirm-head,
.bu-detail-modal-head,
.bu-onboard-sheet > header,
.bu-tour-head,
.bu-vip-foot,
.bu-pkg-foot,
.bu-post-confirm-foot,
.bu-offer-actions {
  flex: 0 0 auto;
}

.bu-vip-body,
.bu-pkg-body,
.bu-offer-body,
.bu-help-body,
.bu-post-confirm-body,
.bu-detail-modal-body,
.bu-onboard-fields {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Sticky VIP foot */
.bu-vip-foot,
.bu-pkg-foot {
  display: grid;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.bu-vip-foot .bu-vip-price {
  margin: 0;
  text-align: center;
  font-size: 15px;
}
.bu-vip-foot .bu-vip-pay,
.bu-pkg-foot .bu-vip-pay {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #16a34a;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}
.bu-vip-foot .bu-pkg-later,
.bu-pkg-foot .bu-pkg-later {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
}
.bu-vip-foot .bu-pkg-legal {
  margin: 0;
  text-align: center;
}

.bu-vip-head,
.bu-pkg-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #e2e8f0;
}
.bu-vip-x {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.bu-vip-body,
.bu-pkg-body {
  padding: 14px 16px;
}

/* Gate */
.bu-gate,
.bu-gate-v2 {
  z-index: 20100;
  align-items: flex-end;
  background: rgba(8, 18, 36, 0.55) !important;
}
.bu-gate-card-v2 {
  width: 100%;
  max-height: min(90dvh, 720px);
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow: auto;
}

/* Chat — full height sheet on phone, side drawer desktop */
.bu-chat-drawer-wrap {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20060 !important;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}
.bu-chat-drawer-wrap[hidden] {
  display: none !important;
}
.bu-chat-drawer {
  width: min(100%, 420px);
  height: 100%;
  max-height: 100dvh;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
  background: #fff;
  border-radius: 0;
}
.bu-chat-inbox,
.bu-chat-thread {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bu-chat-list,
.bu-chat-thread-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.bu-chat-form {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.bu-chat-form input {
  min-height: 44px;
  width: 100%;
}
.bu-chat-wa-full {
  margin: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
}

/* Detail modal */
.bu-detail-modal {
  z-index: 20040 !important;
  padding: 0 !important;
}
.bu-detail-modal-sheet {
  width: 100%;
  max-height: min(92dvh, 860px);
}
.bu-detail-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.bu-detail-modal-body {
  display: grid;
  gap: 12px;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
}
.bu-detail-modal-mapwrap {
  min-height: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

/* Post confirm */
.bu-post-confirm {
  z-index: 20070 !important;
}
.bu-post-confirm-sheet {
  width: 100%;
  max-height: min(92dvh, 780px);
}

/* Offer / onboard / help */
.bu-offer-sheet,
.bu-onboard-sheet,
.bu-help-sheet {
  width: 100%;
  max-width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bu-offer-body,
.bu-help-body,
.bu-onboard-fields {
  padding: 12px 14px;
}
.bu-onboard-sheet {
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.bu-help-sheet {
  padding: 0;
}
.bu-help-sheet > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}
.bu-help-close-btn {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
  min-height: 48px;
}

/* Nalog confirm */
.bu-nalog-confirm-backdrop {
  z-index: 20080 !important;
  align-items: center !important;
  padding: 16px !important;
  background: rgba(15, 23, 42, 0.5) !important;
}
.bu-nalog-confirm-sheet {
  width: min(420px, 100%);
  max-height: none;
  border-radius: 18px !important;
  padding: 20px;
  gap: 12px;
  display: grid;
}
.bu-nalog-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bu-nalog-confirm-actions .bu-btn {
  min-height: 46px;
  width: 100%;
  justify-content: center;
}

/* —— Desktop: center sheets —— */
@media (min-width: 720px) {
  .bu-vip-modal,
  .bu-pkg-modal,
  .bu-offer-modal,
  .bu-onboard,
  .bu-help-modal,
  .bu-post-confirm,
  .bu-detail-modal,
  .bu-gate,
  .bu-gate-v2 {
    align-items: center !important;
    padding: 24px !important;
  }
  .bu-vip-sheet,
  .bu-pkg-sheet {
    width: min(720px, 100%);
    border-radius: 20px !important;
  }
  .bu-offer-sheet,
  .bu-onboard-sheet,
  .bu-help-sheet {
    width: min(480px, 100%);
    border-radius: 20px !important;
  }
  .bu-post-confirm-sheet {
    width: min(720px, 100%);
    border-radius: 20px !important;
  }
  .bu-detail-modal-sheet {
    width: min(960px, 100%);
    border-radius: 20px !important;
  }
  .bu-gate-card-v2 {
    width: min(440px, 100%);
    border-radius: 22px !important;
    max-height: min(86dvh, 680px);
  }
  .bu-detail-modal-body {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
  .bu-chat-drawer {
    border-radius: 0;
    box-shadow: -16px 0 48px rgba(15, 23, 42, 0.16);
  }
}

/* —— Auth registration / login —— */
body.bu-auth-chrome {
  min-height: 100dvh;
}
body.bu-auth-chrome .bu-reg-shell,
body.bu-auth-chrome .bu-page.bu-auth {
  width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
}
body.bu-auth-chrome .bu-reg-form,
body.bu-auth-chrome .bu-form-card {
  display: grid;
  gap: 2px;
}
body.bu-auth-chrome .bu-reg-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 10px;
}
body.bu-auth-chrome .bu-phone {
  display: grid !important;
  grid-template-columns: 118px minmax(0, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  align-items: stretch;
}
body.bu-auth-chrome .bu-phone select,
body.bu-auth-chrome .bu-phone input {
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
}
body.bu-auth-chrome .bu-reg-step-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
body.bu-auth-chrome .bu-reg-driver-hint {
  margin: -4px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 13px;
  font-weight: 750;
  color: #166534;
}
body.bu-auth-chrome .bu-field-hint,
body.bu-auth-chrome .bu-vat-msg {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: #64748b;
}
body.bu-auth-chrome .bu-input-bad {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
body.bu-auth-chrome .bu-reg-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid !important;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(244, 247, 251, 0), #f4f7fb 28%, #f4f7fb);
}
body.bu-auth-chrome .bu-reg-actions .bu-btn {
  min-height: 48px !important;
  width: 100%;
  justify-content: center;
}
body.bu-auth-chrome .bu-reg-actions .bu-reg-back[hidden] {
  display: none !important;
}
body.bu-auth-chrome .bu-reg-actions .bu-reg-back[hidden] ~ .bu-reg-next,
body.bu-auth-chrome .bu-reg-actions .bu-reg-back[hidden] ~ .bu-reg-submit {
  grid-column: 1 / -1;
}
body.bu-auth-chrome .bu-reg-actions .bu-reg-next[hidden],
body.bu-auth-chrome .bu-reg-actions .bu-reg-submit[hidden] {
  display: none !important;
}
body.bu-auth-chrome .bu-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
  margin: 8px 0;
}
body.bu-auth-chrome .bu-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

@media (max-width: 899px) {
  body.bu-auth-chrome .bu-page.bu-auth,
  body.bu-auth-chrome .bu-reg-shell {
    padding: 12px 14px calc(20px + var(--bu-phonedock-h, 0px)) !important;
  }
  body.bu-auth-chrome .bu-reg-hero h1,
  body.bu-auth-chrome .bu-page.bu-auth > h1 {
    font-size: 1.55rem;
  }
  body.bu-auth-chrome .bu-reg-lead,
  body.bu-auth-chrome .bu-page.bu-auth > .bu-sub {
    font-size: 14px;
  }
  body.bu-auth-chrome .bu-reg-row {
    grid-template-columns: 1fr;
  }
  body.bu-auth-chrome .bu-phone {
    grid-template-columns: 104px minmax(0, 1fr) !important;
  }
  /* Auth: hide phone dock — focus the form */
  body.bu-auth-chrome .bu-phonedock {
    display: none !important;
  }
  body.bu-auth-chrome {
    padding-bottom: 0 !important;
  }
}

/* —— Post / Objavi panel —— */
#bu-post.bu-chat.is-open:not([hidden]),
body.bu-post-open #bu-post.is-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20055 !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45) !important;
  padding: 0 !important;
}
#bu-post .bu-post-panel,
#bu-post .bu-post-panel-pro {
  width: 100% !important;
  max-width: 520px !important;
  max-height: min(90dvh, 720px) !important;
  overflow: auto !important;
  border-radius: 20px 20px 0 0 !important;
  background: #fff !important;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -16px 48px rgba(15, 23, 42, 0.2) !important;
  margin: 0 !important;
}
@media (min-width: 720px) {
  #bu-post.bu-chat.is-open:not([hidden]),
  body.bu-post-open #bu-post.is-open {
    align-items: center !important;
    padding: 24px !important;
  }
  #bu-post .bu-post-panel,
  #bu-post .bu-post-panel-pro {
    border-radius: 20px !important;
  }
}

#bu-post .bu-post-choices-pro {
  display: grid !important;
  gap: 10px !important;
  margin-top: 12px;
}
#bu-post .bu-tile-pro {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 72px;
  padding: 14px !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
}
#bu-post .bu-tile-pro.blue { box-shadow: inset 0 0 0 1px #93c5fd; }
#bu-post .bu-tile-pro.green { box-shadow: inset 0 0 0 1px #86efac; }
#bu-post .bu-tile-copy strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}
#bu-post .bu-tile-copy p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 650;
}

/* —— Phone dock clearance for overlays already full-screen —— */
@media (max-width: 899px) {
  .bu-vip-sheet,
  .bu-pkg-sheet,
  .bu-offer-sheet,
  .bu-onboard-sheet,
  .bu-help-sheet,
  .bu-post-confirm-sheet,
  .bu-detail-modal-sheet,
  .bu-chat-drawer {
    padding-bottom: 0;
  }
  .bu-chat-drawer {
    width: 100%;
    max-width: none;
    border-radius: 0;
  }
  .bu-chat-drawer-wrap {
    align-items: stretch;
  }
}

/* Homepage: Utovari sidebar + dark hero, never an empty white column */
@media (min-width: 900px) {
  body.bu-landing-page .landing-shell,
  body.bu-landing-page .landing-shell-full {
    display: grid !important;
    grid-template-columns: 3.25rem minmax(0, 1fr) !important;
    height: 100dvh;
    overflow: hidden;
    background: #020817;
  }
  body.bu-landing-page .landing-sidebar,
  body.bu-landing-page .bu-board-sidebar.landing-sidebar {
    display: flex !important;
    position: sticky;
    top: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    width: 3.25rem;
  }
  body.bu-landing-page .landing-shell-main {
    min-width: 0;
    height: 100dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #0b1220;
  }
  body.bu-landing-page .bu-site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    background: rgba(11, 18, 32, 0.82) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px);
  }
  body.bu-landing-page .bu-site-header-inner {
    max-width: none;
    padding-left: 22px;
    padding-right: 22px;
  }
  body.bu-landing-page .bu-site-logo-img {
    display: none !important;
  }
  body.bu-landing-page .bu-site-logo-text {
    display: inline !important;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.03em;
  }
  body.bu-landing-page .bu-site-nav-a {
    color: #cbd5e1;
  }
  body.bu-landing-page .bu-site-nav-a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  body.bu-landing-page .bu-site-nav-a.is-on {
    background: rgba(29, 111, 216, 0.32);
    color: #fff;
  }
  body.bu-landing-page .bu-site-link {
    color: #e2e8f0;
  }
  body.bu-landing-page .landing-page {
    background: #fff;
  }
  .landing-hero-desk {
    min-height: calc(100dvh - 64px) !important;
  }
}
@media (min-width: 1280px) {
  body.bu-landing-page .landing-shell,
  body.bu-landing-page .landing-shell-full {
    grid-template-columns: 9.5rem minmax(0, 1fr) !important;
  }
  body.bu-landing-page .landing-sidebar,
  body.bu-landing-page .bu-board-sidebar.landing-sidebar {
    width: 9.5rem;
  }
}
@media (max-width: 899px) {
  body.bu-landing-page .landing-shell,
  body.bu-landing-page .landing-shell-full {
    display: block !important;
    grid-template-columns: none !important;
    height: auto;
    overflow: visible;
    background: #0b1220;
  }
  body.bu-landing-page .landing-sidebar,
  body.bu-landing-page .bu-board-sidebar.landing-sidebar {
    display: none !important;
  }
}
body.bu-landing-page .landing-shell:not(:has(.landing-sidebar)) {
  display: block !important;
  grid-template-columns: none !important;
}

body.bu-landing-page .landing-hero-desk-search {
  background: rgba(15, 23, 42, 0.58) !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.bu-landing-page .landing-hero-desk-search input {
  color: #f8fafc !important;
  background: rgba(2, 8, 23, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
body.bu-landing-page .landing-hero-desk-role {
  background: transparent !important;
  color: #fff !important;
}

/* —— 7.8.3 Utovari chrome, geo, detail, chat —— */
@keyframes bu-need-shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-7px); }
  36% { transform: translateX(7px); }
  54% { transform: translateX(-5px); }
  72% { transform: translateX(5px); }
}
.bu-need-shake {
  animation: bu-need-shake 0.48s cubic-bezier(.36,.07,.19,.97) both;
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

body.bu-board-page .bu-board-bar,
body.bu-board-page .bu-filter-chrome,
body.bu-board-page .bu-filters-box {
  overflow: visible;
}
body.bu-board-page .bu-filter-fold.open {
  overflow: visible !important;
}
body.bu-board-page .bu-lanes,
body.bu-board-page .bu-lane,
body.bu-board-page .bu-geo-wrap,
body.bu-board-page .bu-loc {
  overflow: visible;
}
body.bu-board-page .bu-geo-wrap {
  position: relative;
  z-index: 4;
}
body.bu-board-page .bu-geo-wrap:focus-within {
  z-index: 90;
}
body.bu-board-page .bu-geo-list {
  position: absolute !important;
  z-index: 500 !important;
  max-height: min(42vh, 280px);
}

.bu-tabs-chrome {
  order: -1;
  padding: 4px 4px 0 !important;
  background: #e8edf4 !important;
  border-bottom: 0 !important;
}
.bu-tabs-chrome .bu-tabs-bar {
  align-items: stretch !important;
  gap: 0 !important;
}
.bu-tabs-chrome .bu-tabs-scroll-wrap {
  max-width: none !important;
}
.bu-tab-add,
#bu-stab-add {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 30px !important;
  margin: 0 4px 0 2px !important;
  border-radius: 8px 8px 0 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-bottom: 0 !important;
  background: #f1f5f9 !important;
  color: #334155;
  font-size: 16px !important;
  line-height: 1 !important;
  align-self: flex-end;
}
.bu-tab-add:hover,
#bu-stab-add:hover {
  background: #fff !important;
}
.bu-stab {
  border-radius: 8px 8px 0 0;
  align-self: flex-end;
}

.bu-alert-bar:disabled,
.bu-alert-bar.is-blocked {
  cursor: pointer;
  opacity: 0.92;
}

body.bu-board-page .bu-board-brand-text {
  text-decoration: none;
  color: inherit;
  font-weight: 800;
}
body.bu-board-page .bu-board-brand-text .bu-logo-board,
body.bu-board-page .bu-board-brand-text picture {
  display: none !important;
}

body.bu-board-page,
body.bu-board-page .bu-board-shell-wrap,
body.bu-board-page .bu-board-main-col,
body.bu-board-page .bu-board-main-col > .bu-board {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
body.bu-board-page .bu-term-grid,
body.bu-board-page .bu-board-stage {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
}

.bu-chat-drawer-wrap {
  z-index: 20120 !important;
}
.bu-chat-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.bu-chat-thread-body {
  order: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.bu-chat-listing-preview {
  order: 2;
  padding: 8px 12px 0;
  flex: 0 0 auto;
}
.bu-chat-form {
  order: 3;
}
.bu-chat-ad-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #eff6ff, #fff);
  border-radius: 12px;
}
.bu-chat-ad-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
}
.bu-chat-ad-card strong { font-size: 14px; }
.bu-chat-ad-card a { font-size: 12px; font-weight: 700; }
.bu-chat-cats {
  display: flex;
  gap: 6px;
  margin: 8px 0 0;
}
.bu-chat-cats button {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.bu-chat-cats button.is-on {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.bu-detail-modal-sheet {
  max-height: min(94dvh, 920px) !important;
}
.bu-detail-modal-body {
  min-height: 0;
  overflow: hidden !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.bu-detail-modal-info {
  overflow: auto;
  min-height: 0;
  padding-right: 4px;
}
.bu-detail-modal-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 8px;
}
.bu-detail-modal-mapwrap {
  flex: 1 1 auto;
  min-height: 180px;
}
.bu-detail-hud {
  position: static !important;
  flex: 0 0 auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
}
.bu-detail-modal-profile {
  flex: 0 0 auto;
  max-height: 42%;
  overflow: auto;
}
.bu-detail-fuel-km { margin: 0 0 6px; }
@media (min-width: 900px) {
  .bu-detail-modal-body {
    grid-template-columns: 0.95fr 1.05fr !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }
  .bu-detail-modal-mapwrap {
    min-height: 240px;
  }
}

.landing-hero-app-banner {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
}
.landing-hero-app-banner strong { font-size: 13px; }
.landing-hero-app-banner span { font-size: 12px; opacity: 0.9; line-height: 1.4; }
.landing-hero-app-banner a {
  color: #93c5fd;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
}
.landing-hero-search-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: end;
}
.landing-hero-search-arrow {
  padding-bottom: 12px;
  color: #64748b;
  font-weight: 800;
}
@media (max-width: 520px) {
  .landing-hero-search-grid {
    grid-template-columns: 1fr;
  }
  .landing-hero-search-arrow { display: none; }
}

/* —— 7.8.4 chrome leftovers —— */
.bu-board-sidebar,
body.bu-landing-page .landing-sidebar {
  max-height: 100dvh !important;
  overflow: hidden !important;
}
.bu-board-sidebar-nav,
body.bu-landing-page .landing-sidebar-nav {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
.bu-board-sidebar-foot,
body.bu-landing-page .landing-sidebar-foot {
  flex-shrink: 0 !important;
  margin-top: auto;
}
@media (min-width: 720px) {
  .bu-post-confirm {
    align-items: center !important;
    justify-content: center !important;
  }
  .bu-post-confirm-sheet {
    margin: auto !important;
    max-height: min(86dvh, 720px) !important;
  }
}
body.bu-board-page .bu-vip-status-bar,
body.bu-landing-page .bu-vip-status-bar,
body.bu-board-page .bu-pkg-banner,
#bu-pkg-banner {
  display: none !important;
}
body.bu-board-page .bu-header-generate {
  display: inline-flex !important;
  visibility: visible !important;
}

