/* Journey v2 — origin gate, landing, auth, packages, board density */

/* —— Origin gate (not a language cube) —— */
.bu-gate-origin {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: #071018;
}
.bu-gate-origin-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.bu-gate-origin-map {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(29, 111, 216, 0.28), transparent 42%),
    radial-gradient(ellipse at 70% 70%, rgba(5, 150, 105, 0.22), transparent 38%),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.07) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.07) 0 1px, transparent 1px 72px);
  transform: perspective(1200px) rotateX(12deg) scale(1.12);
}
.bu-gate-origin-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 24, 0.2), rgba(7, 16, 24, 0.88));
}
.bu-gate-origin-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 28px 28px 22px;
  border-radius: 8px 28px 8px 28px;
  background: linear-gradient(165deg, rgba(255,255,255,0.98), #f8fafc 55%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 40px 90px rgba(0,0,0,0.45);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.bu-gate-origin-stamp { text-align: left; }
.bu-gate-origin-kicker {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}
.bu-gate-origin-title {
  margin: 14px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
}
.bu-gate-origin-lead {
  margin: 0 0 18px;
  max-width: 46ch;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #475569;
}
.bu-gate-origin-label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}
.bu-gate-origin-label input {
  height: 52px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  background: #fff;
}
.bu-gate-origin-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  max-height: 240px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.bu-gate-origin-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
}
.bu-gate-origin-list li:hover { background: #eff6ff; }
.bu-gate-origin-list span { color: #64748b; font-size: 12px; }
.bu-gate-origin-picked {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #047857;
}
.bu-gate-origin-go {
  margin-top: 14px;
  width: 100%;
  min-height: 48px;
}
.bu-gate-origin-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* —— Landing header + cut-corner hero —— */
.bu-site-header-v2 {
  background: rgba(255,255,255,0.86) !important;
  backdrop-filter: blur(16px);
  border-bottom: 0 !important;
  box-shadow: 0 1px 0 rgba(15,23,42,0.06), inset 0 -2px 0 #16a34a;
}
.bu-site-header-v2 .bu-site-header-inner { min-height: 70px; }
.bu-site-header-v2 .bu-site-nav {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px;
}
.bu-site-header-v2 .bu-site-nav-a { border-radius: 999px; }
.landing-hero-desk-frame {
  display: flex;
  align-items: flex-end;
  width: 100%;
  gap: 32px;
  padding: 8px;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  outline: 1px solid rgba(255,255,255,0.22);
  outline-offset: -1px;
}
.landing-hero-desk-search {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important;
  max-width: 640px !important;
  overflow: hidden;
}
.landing-hero-desk-search button {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}
.landing-hero-3d {
  position: relative;
  z-index: 2;
  flex: 1 1 380px;
  min-width: 0;
  overflow: visible;
}
.landing-hero-3d-float { z-index: 3; pointer-events: none; }
@media (max-width: 980px) {
  .landing-hero-desk-frame { flex-direction: column; align-items: stretch; }
  .landing-hero-desk-search {
    grid-template-columns: 1fr !important;
  }
  .landing-hero-desk-search button { width: 100%; }
}

/* —— Auth / register —— */
body.bu-auth-chrome .bu-auth-aside-v4 {
  display: none !important;
}
body.bu-auth-chrome .bu-auth-aside-v4 h2 { color: #fff; font-size: 1.5rem; letter-spacing: -0.03em; }
.bu-auth-aside-steps {
  margin: 0;
  padding: 0 0 0 18px;
  font-weight: 800;
  color: #93c5fd;
}
.bu-auth-aside-note { margin: 0; font-size: 13px; font-weight: 600; color: #cbd5e1; line-height: 1.45; }
.bu-reg-tabs-v4 .bu-reg-tab {
  display: grid !important;
  gap: 2px;
  padding: 10px 12px;
  text-align: left;
  min-height: 64px;
}
.bu-reg-tabs-v4 .bu-reg-tab strong { font-size: 14px; }
.bu-reg-tabs-v4 .bu-reg-tab span { font-size: 12px; font-weight: 650; color: #64748b; }
body.bu-auth-chrome .bu-pass {
  position: relative;
  isolation: isolate;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
body.bu-auth-chrome .bu-pass input {
  border: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.bu-auth-chrome .bu-pass-toggle {
  background: #f8fafc;
  z-index: 2;
}
body.bu-auth-chrome .bu-reg-terms {
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
body.bu-auth-chrome .bu-input-ok { border-color: #22c55e !important; background: #f0fdf4 !important; }
body.bu-auth-chrome .bu-hint-ok { color: #047857 !important; font-weight: 800; }
.bu-auth-spam { margin: 8px 0 0; font-size: 12px; font-weight: 600; color: #64748b; line-height: 1.4; }

@media (min-width: 900px) {
  body.bu-auth-chrome .bu-auth-aside-v4 {
    display: grid !important;
    align-content: start;
    gap: 12px;
    padding: 28px 24px;
    border-radius: 22px;
    background:
      linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72)),
      radial-gradient(circle at 20% 0%, #1d6fd8, transparent 50%);
    color: #e2e8f0;
    min-height: 520px;
  }
}

/* —— Packages —— */
.bu-pkg-v2 .bu-pkg-sheet { width: min(720px, 96vw); }
.bu-pkg-must { margin: 0 0 14px; font-size: 14px; font-weight: 650; color: #334155; line-height: 1.45; }
.bu-pkg-period-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bu-pkg-invoice-line { margin: 14px 0 0; font-size: 13px; font-weight: 650; color: #475569; }
.bu-pkg-v2 .bu-pkg-later { display: none !important; }
@media (max-width: 640px) {
  .bu-pkg-period-cards { grid-template-columns: 1fr; }
}

/* —— Nalog —— */
.bu-mailwarn-card {
  margin: 0 16px 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #78350f;
}
.bu-mailwarn-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.bu-mailwarn-card p { margin: 0; font-size: 13px; font-weight: 650; line-height: 1.4; }
.bu-pay-facts { margin: 0 0 14px; padding-left: 18px; font-size: 14px; font-weight: 650; color: #334155; line-height: 1.5; }

/* —— Board density / chat / header —— */
body.bu-board-page .bu-board-brand-lab {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: nowrap;
  max-width: none !important;
  font-size: 14px !important;
}
body.bu-board-page .bu-c,
body.bu-board-page .bu-row,
body.bu-board-page .bu-term-row {
  font-size: 12.5px;
}
body.bu-board-page .bu-c-from,
body.bu-board-page .bu-c-to,
body.bu-board-page .bu-c-route b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
body.bu-board-page .bu-c-route { display: none; }
body.bu-board-page .bu-c-chev { display: none; }
@media (max-width: 1280px) {
  body.bu-board-page .bu-c-eurkm { display: none !important; }
  body.bu-board-page .bu-cols-head span:last-child { display: none; }
}

.bu-chat-drawer-wrap { z-index: 1800 !important; }
.bu-chat-drawer {
  max-width: min(420px, 100vw) !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  font-size: 14px;
}
.bu-chat-inbox,
.bu-chat-thread {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.bu-chat-list,
.bu-chat-thread-body {
  flex: 1 1 auto;
  min-height: 160px;
  overflow: auto;
}
.bu-chat-form {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.bu-chat-compose {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.bu-chat-compose input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  width: auto !important;
  font-size: 15px;
  padding: 0 12px;
}
.bu-chat-compose .bu-btn {
  flex: 0 0 auto;
  min-height: 44px;
}
.bu-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bu-chat-quick button {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.bu-pop-slim h3 { font-size: 14px; margin: 4px 0; }
.bu-pop-meta { margin: 0; font-size: 12px; font-weight: 700; color: #334155; }
.bu-pop-hint { margin: 6px 0 0; font-size: 11px; color: #64748b; }
.leaflet-control-attribution { font-size: 10px !important; opacity: 0.45; }

.bu-dpro-row {
  grid-template-columns: 108px minmax(0, 1fr) !important;
  font-size: 13px !important;
}
.bu-dpro-row dt { color: #475569 !important; }
.bu-dpro-row dd { color: #0f172a !important; font-weight: 800 !important; }
.bu-dpro-addr { font-size: 15px !important; }

.bu-onboard-sheet { width: min(460px, 94vw); border-radius: 22px; }
.bu-tour-sheet { max-width: 440px; }
.bu-tour-body { font-size: 15px !important; line-height: 1.55 !important; color: #334155 !important; font-weight: 600; }
.bu-tour-head h2 { font-size: 1.35rem; letter-spacing: -0.03em; }

.bu-place-layers { display: grid; gap: 10px; margin-bottom: 10px; }
.bu-place-cityzip { display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 8px; }
.bu-place-live { min-height: 1.4em; font-size: 13px; font-weight: 800; color: #047857; }
.bu-post-map.is-picking { outline: 3px solid #1d6fd8; outline-offset: 2px; }

.bu-offer-sheet { width: min(480px, 96vw); border-radius: 20px; }
.bu-offer-card { border-radius: 14px; padding: 12px; }

.bu-app-primary-next { margin-top: 8px; }

.bu-lemon-pay-panel {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #eff6ff, #fff);
}
.bu-pay-perfect h3 { margin: 0 0 8px; letter-spacing: -0.02em; }

.bu-legal-page .bu-content {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 28px 24px 40px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 40px rgba(15,23,42,0.06);
}
.bu-legal-page .bu-content h2 { margin-top: 1.4em; letter-spacing: -0.02em; }

.landing-hero-3d { z-index: 4; }
.landing-hero-3d-float { z-index: 5; }

@media (max-width: 899px) {
  body.bu-board-page .bu-chat-drawer,
  body.bu-app-page .bu-chat-drawer { max-width: 100% !important; }
  .landing-hero-3d { display: none; }
  body.bu-board-page .bu-c-route { display: flex !important; }
  body.bu-board-page .bu-feed .bu-item.bu-row.compact,
  body.bu-app-page .bu-feed .bu-item.bu-row.compact {
    padding: 12px !important;
    margin: 0 10px 8px !important;
  }
  body.bu-board-page .bu-feed .bu-c-route,
  body.bu-app-page .bu-feed .bu-c-route {
    font-size: 14px !important;
    white-space: normal !important;
    max-width: calc(100% - 72px);
  }
  body.bu-app-page .bu-appshell-nav span { font-size: 10px; }
}

@media (min-width: 900px) and (max-width: 1280px) {
  body.bu-term .bu-term-grid,
  body.bu-board-page .bu-term-grid {
    grid-template-columns: minmax(220px, 28%) minmax(0, 48%) minmax(220px, 24%) !important;
  }
}

/* —— Overlay ladder 7.9.19: one scale, one sheet language —— */
:root {
  --bu-z-gate: 20600;
  --bu-z-onboard: 20700;
  --bu-z-tour: 20720;
  --bu-z-offer: 20740;
  --bu-z-vip: 20800;
  --bu-z-help: 20840;
  --bu-z-post: 20880;
  --bu-z-detail: 20900;
  --bu-z-chat: 20940;
  --bu-z-confirm: 21000;
  --bu-z-lemon: 22000;
  --bu-z-toast: 22100;
}
.bu-gate,
.bu-gate-origin { z-index: var(--bu-z-gate) !important; }
#bu-onboarding.bu-onboard { z-index: var(--bu-z-onboard) !important; }
#bu-tour.bu-onboard { z-index: var(--bu-z-tour) !important; }
.bu-offer-modal,
#bu-offer-load { z-index: var(--bu-z-offer) !important; }
.bu-vip-modal,
.bu-pkg-modal { z-index: var(--bu-z-vip) !important; }
.bu-help-modal,
#bu-help-tip { z-index: var(--bu-z-help) !important; }
#bu-post.bu-chat { z-index: var(--bu-z-post) !important; }
.bu-detail-modal { z-index: var(--bu-z-detail) !important; }
.bu-chat-drawer-wrap { z-index: var(--bu-z-chat) !important; }
.bu-post-confirm,
body.bu-nalog-page .bu-post-confirm,
.bu-nalog-confirm-backdrop { z-index: var(--bu-z-confirm) !important; }
.bu-lemon-lock { z-index: var(--bu-z-lemon) !important; }

.bu-vip-sheet,
.bu-pkg-sheet,
.bu-offer-sheet,
.bu-onboard-sheet,
.bu-help-sheet,
.bu-post-confirm-sheet,
.bu-detail-modal-sheet,
.bu-gate-origin-card,
#bu-post .bu-post-panel {
  border-radius: 22px !important;
  overflow: auto;
  max-height: min(92dvh, 780px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}
@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-gate-origin-card,
  #bu-post .bu-post-panel {
    border-radius: 20px 20px 0 0 !important;
    max-height: min(94dvh, 860px);
  }
}

.bu-job-post { max-width: 640px; margin: 0 auto; padding-bottom: 4rem; }
.bu-job-post-card,
.bu-public-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 22px 20px 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}
.bu-public-profile { max-width: 640px; margin: 0 auto; padding: 24px 16px 4rem; }
.bu-welcome-banner {
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}
