/**
 * Mobile Tab Bar — visible only on small screens, minimalist Apple-style
 */
.mobile-tabbar {
  display: none; /* shown only in @media below */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147482000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.mobile-tabbar .mobile-tabbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 6px 8px 10px;
  max-width: 100%;
}

.mobile-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px 6px;
  min-height: 52px;
  text-decoration: none !important;
  color: #8e8e93 !important; /* iOS-style inactive gray — no blue */
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-tabbar a:hover {
  color: #636366 !important;
}
.mobile-tabbar a:active {
  opacity: 0.8;
}

.mobile-tabbar a .icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.mobile-tabbar a .icon {
  font-size: 22px;
  line-height: 1;
  color: inherit !important;
}
.mobile-tabbar a .label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: inherit !important;
}

/* Active state: accent orange only (no blue) */
.mobile-tabbar a.active {
  color: #f07a1a !important;
  background: rgba(240, 122, 26, 0.06);
}
.mobile-tabbar a.active .icon,
.mobile-tabbar a.active .label {
  color: #f07a1a !important;
}

.mobile-tabbar .badge-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #f07a1a;
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mobile-tabbar .icon-wrap {
  position: relative;
}

/* Visible only on small screens (< 768px) */
@media (max-width: 767.98px) {
  .mobile-tabbar {
    display: block;
  }
  body {
    padding-bottom: 72px;
  }
}

@media (min-width: 768px) {
  .mobile-tabbar {
    display: none !important;
  }
}
