/* 모바일 하단 탭 네비게이션 — 한 번에 바로 이동 */
.mobile-tab-bar {
  display: none;
}

@media (max-width: 980px) {
  .mobile-menu-btn {
    display: none !important;
  }

  .header-nav {
    display: none !important;
  }

  .top-header {
    padding: 10px 14px;
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .brand-logo {
    height: 38px;
  }

  .login-btn {
    font-size: 11px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .icon-bell {
    display: none;
  }

  .mobile-tab-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #e8edf3;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
  }

  .mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 4px 2px;
    text-decoration: none;
    color: #9ca3af;
    border-radius: 10px;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-tab-item:active {
    background: #f3f4f6;
  }

  .mobile-tab-item.active {
    color: #1d4ed8;
  }

  .mobile-tab-icon {
    font-size: 19px;
    line-height: 1;
  }

  .mobile-tab-label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  body.has-mobile-tab-bar {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .home-page {
    padding-bottom: 16px;
  }

  .home-kakao-fab {
    bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .mobile-summary {
    bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .page {
    padding-bottom: calc(200px + env(safe-area-inset-bottom));
  }
}
