/* 7.9.30 — alert reset, phone chrome, inbox, auth, landing dock. */

/* —— Phone: Lista/Mapa live in the header. Overlay switch is gone. —— */
@media (max-width: 899px) {
  body.bu-board-page .bu-switch,
  body.bu-app-page .bu-switch,
  body.bu-board-page .bu-switch.bu-mobile-only,
  body.bu-app-page .bu-switch.bu-mobile-only,
  body.bu-board-page .bu-board-bar > .bu-switch {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .bu-mshell-bar {
    gap: 8px;
  }
  .bu-mshell-end {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .bu-mshell-views {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    gap: 2px;
    border-radius: 999px;
    background: #e2e8f0;
    flex: 0 0 auto;
  }
  .bu-mshell-view {
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 12px;
    font-weight: 850;
    color: #475569;
  }
  .bu-mshell-view.is-on {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  }
  body.bu-board-page .bu-board-list,
  body.bu-board-page .bu-board-map,
  body.bu-board-page .bu-feed {
    padding-bottom: calc(var(--bu-phonedock-h, 64px) + 8px);
  }
  body.bu-board-page .bu-twin-bars {
    position: relative;
    z-index: 4;
  }
}

/* —— Inbox: one title, phone full sheet —— */
.bu-chat-drawer-head {
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
}
.bu-chat-drawer-titles .bu-kicker { display: none; }
.bu-chat-drawer-titles strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}
.bu-chat-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bu-chat-cats::-webkit-scrollbar { display: none; }
.bu-chat-cats button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}
.bu-chat-cats button.is-on {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.bu-notes-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bu-notes header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

@media (max-width: 899px) {
  body.bu-chat-sheet-open {
    overflow: hidden;
  }
  .bu-chat-drawer-wrap:not([hidden]) {
    display: flex !important;
    align-items: stretch;
  }
  .bu-chat-drawer {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0);
    display: flex;
    flex-direction: column;
  }
  .bu-chat-inbox,
  .bu-chat-thread {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .bu-chat-list,
  .bu-chat-thread-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bu-chat-tabs button { min-height: 44px; }
  .bu-chat-search input,
  .bu-chat-compose input {
    min-height: 48px;
    font-size: 16px !important;
  }
  .bu-chat-compose .bu-btn { min-height: 48px; }
  .bu-notes {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 18px 18px 0 0 !important;
    max-height: min(78dvh, 560px);
    z-index: 80 !important;
  }
  .bu-notes-legend { font-size: 12px; padding: 0 14px 6px; }
  .bu-notes-list { max-height: min(56dvh, 420px); }
}

/* —— Auth / registracija —— */
@media (max-width: 899px) {
  body.bu-auth-chrome .bu-auth-aside,
  .bu-auth-aside {
    display: none !important;
  }
  body.bu-auth-chrome .bu-auth-top-mid { display: none !important; }
  body.bu-auth-chrome .bu-phonedock { display: none !important; }
  .bu-auth.bu-auth-v2,
  .bu-reg-pro {
    max-width: none !important;
    margin: 0 !important;
    padding: 8px 14px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    display: block !important;
  }
  .bu-auth-main,
  .bu-reg-shell {
    width: 100%;
    padding: 0 !important;
  }
  .bu-reg-hero h1 { font-size: 22px; }
  .bu-reg-lead { font-size: 14px; }
  .bu-reg-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .bu-reg-tab {
    min-height: 64px;
    padding: 10px 12px;
    border-radius: 14px;
  }
  .bu-auth-gate {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 14px;
  }
  .bu-auth-gate-tab {
    min-height: 44px;
    border-radius: 12px;
    font-weight: 800;
  }
  .bu-form-card input,
  .bu-reg-form input,
  .bu-reg-form select,
  .bu-form input,
  .bu-form select {
    min-height: 48px !important;
    font-size: 16px !important;
  }
  .bu-form-card .bu-btn,
  .bu-reg-form .bu-btn,
  .bu-form .bu-btn {
    min-height: 48px;
    width: 100%;
  }
  body.bu-nalog-page .bu-page,
  body.bu-nalog-page .bu-nalog {
    padding-bottom: calc(var(--bu-phonedock-h, 64px) + 12px);
  }
  body.bu-nalog-page input,
  body.bu-nalog-page select,
  body.bu-nalog-page textarea {
    font-size: 16px !important;
  }
}

/* —— Landing: mock mix (full-width search dock, tape, phone peek) —— */
.bu-shot-brandline {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}
.bu-shot-script {
  font-family: Caveat, "Segoe Script", cursive !important;
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  font-weight: 700;
  color: #b9e9ff !important;
  margin: 0 12px 12px 0 !important;
  transform: rotate(-6deg);
  transform-origin: right center;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.bu-shot-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  margin-right: 6px;
}
.bu-shot-aside {
  position: relative;
}
.bu-shot-phone {
  position: absolute;
  right: -4px;
  top: 78px;
  width: 148px;
  margin: 0;
  transform: rotate(8deg);
  background: linear-gradient(180deg, #0c1422, #070b12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 12px 10px 14px;
  box-shadow: 18px 24px 40px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
  display: grid;
  gap: 2px;
  z-index: 2;
}
.bu-shot-phone-bar {
  width: 48px;
  height: 5px;
  border-radius: 99px;
  background: #1c2a3e;
  margin: 0 auto 8px;
}
.bu-shot-phone p {
  margin: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ecfff;
}
.bu-shot-phone strong {
  font-size: 12px;
  margin: 4px 0;
}
.bu-shot-phone span {
  font-size: 10px;
  color: #94a3b8;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.bu-shot-hero-stats {
  display: inline-flex;
  gap: 18px;
  align-items: baseline;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.bu-shot-hero-stats span { display: grid; gap: 2px; }
.bu-shot-hero-stats b {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}
.bu-shot-tape {
  overflow: hidden;
  margin: 10px 16px 0;
  border-radius: 999px;
  background: rgba(0, 40, 90, 0.35);
  border: 1px solid rgba(90, 208, 255, 0.2);
  padding: 0;
}
.bu-shot-tape-track {
  display: flex;
  gap: 36px;
  width: max-content;
  padding: 12px 0;
  animation: bu-tape 28s linear infinite;
  color: #c9ecff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
@keyframes bu-tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
body.bu-landing-page .bu-shot-hero-inner {
  padding-bottom: 4px;
}
body.bu-landing-page .bu-shot-search.bu-shot-dock {
  position: relative;
  z-index: 3;
  margin: 8px 24px 12px;
  padding: 16px;
  border-radius: 28px;
  backdrop-filter: blur(24px);
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.82), rgba(6, 10, 18, 0.72)) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
body.bu-landing-page .bu-shot-search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
body.bu-landing-page .bu-shot-search-tabs a,
body.bu-landing-page .bu-shot-search-tabs button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(230, 242, 255, 0.7);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
body.bu-landing-page .bu-shot-search-tabs a.is-on,
body.bu-landing-page .bu-shot-search-tabs button.is-on {
  color: #fff;
  background: rgba(0, 132, 255, 0.22);
  border-color: rgba(90, 208, 255, 0.35);
  box-shadow: none;
}
body.bu-landing-page .bu-shot-search-row label {
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  color: #5d7390 !important;
}
body.bu-landing-page .bu-shot-search-row input {
  border: 0 !important;
  background: transparent !important;
  height: 28px;
  font-size: 14.5px;
}
body.bu-landing-page .bu-shot-search-row label.has-ico input { padding-left: 22px; }
body.bu-landing-page .bu-shot-search-row button[type="submit"] {
  min-height: 56px;
  border-radius: 16px;
}
body.bu-landing-page .bu-shot-card {
  width: min(340px, calc(100% - 48px));
  margin-right: 56px;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.78), rgba(6, 10, 18, 0.6)) !important;
  border: 1px solid rgba(180, 220, 255, 0.18) !important;
}

@media (max-width: 899px) {
  .bu-shot-phone { display: none; }
  .bu-shot-script { transform: none; margin: 0 0 10px !important; font-size: 1.5rem !important; }
  .bu-shot-hero-foot {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 10px 16px 16px;
  }
  .bu-shot-hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }
  body.bu-landing-page .bu-shot-search.bu-shot-dock {
    margin: 0 12px 12px;
    padding: 12px;
    border-radius: 20px;
  }
  body.bu-landing-page .bu-shot-search-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  body.bu-landing-page .bu-shot-search-row {
    grid-template-columns: 1fr;
  }
  body.bu-landing-page .bu-shot-search-row input {
    font-size: 16px !important;
    height: 40px;
  }
  body.bu-landing-page .bu-shot-card {
    width: 100%;
    margin-right: 0;
  }
  .bu-shot-tape {
    margin: 8px 12px 0;
    border-radius: 16px;
  }
  body.bu-landing-page .landing-timeline { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bu-shot-tape-track { animation: none; }
}
