/* App-like bottom tabbar — mobile only, Inter + Lucide stroke icons */
.mobile-tabbar {
  display: none;
}

@media (max-width: 768px) {
  body.has-mobile-tabbar .mobile-tabbar {
    display: flex;
  }

  body.has-mobile-tabbar {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-tabbar .cookie-consent {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  align-items: stretch;
  justify-content: space-around;
  gap: 0;
  min-height: 56px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid #e6e8ef;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  font-family: var(--theme-font-family, "Inter", "Segoe UI", sans-serif);
}

.mobile-tabbar__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 4px 2px;
  text-decoration: none;
  color: #8b97b3;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-tabbar__icon-wrap {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-tabbar__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-tabbar__label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-tabbar__item.is-active {
  color: #2f5eff;
}

.mobile-tabbar__item.is-active .mobile-tabbar__icon-wrap {
  background: rgba(47, 94, 255, 0.12);
}

.mobile-tabbar__item.is-active .mobile-tabbar__label {
  font-weight: 600;
  color: #2f5eff;
}

.mobile-tabbar__item:focus-visible {
  outline: 2px solid #2f5eff;
  outline-offset: 2px;
  border-radius: 10px;
}

/* Hide on fullscreen flows */
body.page-auth .mobile-tabbar,
body.page-ad-create .mobile-tabbar,
body.page-ad-preview .mobile-tabbar,
body.page-chat-mobile-clean .mobile-tabbar,
body.post-ad-landing-page .mobile-tabbar,
body.banner-preview-mode .mobile-tabbar {
  display: none !important;
}

body.page-auth,
body.page-ad-create,
body.page-ad-preview,
body.page-chat-mobile-clean,
body.post-ad-landing-page {
  padding-bottom: 0 !important;
}

.mobile-tab-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 60vh;
  padding: 16px 16px 24px;
  box-sizing: border-box;
}

.mobile-tab-skeleton__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-tab-skeleton__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid #e6e8ef;
  border-radius: 14px;
  background: #fff;
}

.mobile-tab-skeleton__title,
.mobile-tab-skeleton__line,
.mobile-tab-skeleton__block {
  display: block;
  border-radius: 999px;
  background: #eef3ff;
}

.mobile-tab-skeleton__title {
  width: min(220px, 46%);
  height: 16px;
  background: #d6e2ff;
}

.mobile-tab-skeleton__line {
  width: min(420px, 72%);
  height: 10px;
}

.mobile-tab-skeleton__line--short {
  width: min(260px, 48%);
}

.mobile-tab-skeleton__block {
  height: 72px;
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-tabbar__item,
  .mobile-tabbar__icon-wrap {
    transition: none;
  }
}
