body.header-scroll-hidden .main-header {
  transform: translateX(-50%) translateY(-100%);
}

body.header-scroll-hidden .mobile-header {
  transform: translateY(-100%);
}

@media (max-width: 480px) {
  body {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
  }
}


#search-overlay {
  backdrop-filter: none;
}

.auth-btn {
  align-items: center;
  background: #9146ff;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  gap: 0.375rem;
  height: 2.75rem;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  transition: background 0.2s ease;
  width: 8.5rem;
}

.auth-btn-icon {
  flex-shrink: 0;
  height: 1.25rem;
  width: 1.25rem;
}

.auth-btn-text {
  color: #fff;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.auth-btn:hover {
  background: #7d3ad6;
}

.auth-section {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.625rem;
  height: 5rem;
  margin-left: 1rem;
}

.avatar-btn {
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  height: 2.8125rem;
  justify-content: center;
  outline: none;
  padding: 0;
  position: relative;
  top: 0;
  width: 2.8125rem;
}

.avatar-img {
  border-radius: 0.625rem;
  display: block;
  height: 2.8125rem;
  object-fit: cover;
  width: 2.8125rem;
}

.avatar-wrap {
  display: flex;
  height: 2.8125rem;
  justify-content: center;
  position: relative;
  z-index: 200;
}

.dropdown-admin-btn {
  align-items: center;
  background: var(--accent);
  border-radius: var(--ui-curve);
  display: flex;
  height: 1.75rem;
  justify-content: center;
  transition: background 0.15s;
  width: 1.75rem;
}

.dropdown-admin-btn img {
  filter: brightness(0) invert(1);
  height: 1.35rem;
  width: 1.35rem;
}

.dropdown-header {
  align-items: center;
  border-bottom: 0.0625rem solid #333;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.dropdown-item {
  align-items: center;
  color: #ddd;
  display: flex;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.625rem;
  padding: 0.75rem 1.125rem;
  text-decoration: none;
  transition: background 0.15s;
}

.dropdown-item img {
  filter: brightness(0) invert(1);
  height: 1rem;
  width: 1rem;
}

.dropdown-item.logout {
  border-top: 0.0625rem solid #333;
}

.dropdown-item:hover {
  background: #343434;
  color: #fff;
}

.dropdown-menu {
  background: #252525;
  border-radius: 0.625rem;
  border: 0.0625rem solid #333;
  display: none;
  min-width: 12.5rem;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 3.625rem;
  z-index: 10000;
}

.dropdown-username {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  max-width: 8.125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo {
  height: 3rem;
}

.logo-tablet {
  display: none;
}

.main-header {
  align-items: center;
  background: var(--bg);
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  height: 5rem;
  justify-content: space-between;
  left: 50%;
  max-width: 100%;
  overflow: visible;
  padding: 0 1.25rem;
  position: fixed;
  top: 0;
  transform: translateX(-50%) translateY(0);
  transition: transform 0.28s ease;
  width: 75rem;
  will-change: transform;
  z-index: 100;
}

.mobile-tabbar,
.me-modal-overlay,
.me-modal,
.notif-modal-overlay {
  display: none;
}

.mobile-header {
  background: var(--bg);
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateY(0);
  transition: transform 0.28s ease;
  will-change: transform;
  z-index: 1001;
}

.nav-btn {
  align-items: center;
  border-radius: 0.375rem;
  color: #8f8f8f;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 700;
  min-height: 2.25rem;
  padding: 0.375rem 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-btn img {
  display: inline-block;
  margin-right: 0.375rem;
  object-fit: contain;
  vertical-align: middle;
}

.nav-btn.active {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.nav-btn:hover {
  color: #ffffffcc;
  scale: 1.05;
}

.nav-section {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  gap: clamp(0.75rem,3vw,2.5rem);
  margin-right: clamp(0.75rem,3vw,2rem);
  min-width: 0;
}

.notif-badge {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  justify-content: center;
  min-width: 1.125rem;
  padding: 0 0.25rem;
  position: absolute;
  right: -0.25rem;
  top: -0.25rem;
}

.notif-btn {
  align-items: center;
  background: #2a2a2a;
  border-radius: 0.625rem;
  border: 0.0625rem solid #404040;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 2.8125rem;
  justify-content: center;
  overflow: visible;
  padding: 0;
  position: relative;
  width: 2.8125rem;
}

.notif-btn.has-unread {
  border-color: var(--accent);
  color: var(--accent);
}

.notif-btn:hover {
  background: #333;
  border-color: var(--accent);
  color: var(--accent);
  filter: brightness(1.15);
}

.notif-empty, .notif-loading {
  color: #a3a3a3;
  font-size: 0.95rem;
  padding: 1rem;
}

.notif-filter-btn {
  background: #2e2e2e;
  border-radius: 0.5rem;
  border: 0.0625rem solid #3a3a3a;
  color: #bfbfbf;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.notif-filter-btn.active {
  background: #3a3a3a;
  border-color: #565656;
  color: #fff;
}

.notif-filters {
  align-items: center;
  border-bottom: 0.0625rem solid #333;
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  padding: 0.5rem 0.75rem;
}

.notif-header-actions {
  align-items: center;
  display: inline-flex;
  gap: 0.375rem;
}

.notif-item {
  align-items: flex-start;
  border-bottom: 0.0625rem solid #2f2f2f;
  color: #d7d7d7;
  display: flex;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-icon {
  height: 1rem;
  object-fit: contain;
  width: 1rem;
}

.notif-item-icon-wrap {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  width: 1.25rem;
}

.notif-item-message {
  color: #c9c9c9;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.notif-item-time {
  color: #8f8f8f;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.notif-item-title {
  color: #f0f0f0;
  font-size: 0.95rem;
  font-weight: 700;
}

.notif-item.read {
  background: #242424;
}

.notif-item.read .notif-item-message, .notif-item.read .notif-item-time {
  color: #808080;
}

.notif-item.read .notif-item-title {
  color: #adadad;
}

.notif-item.unread {
  background: #2b2b2b;
  background: #2d3440;
  border-left: 2px solid #5f8cc9;
}





.notif-item:hover {
  background: #303030;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-list {
  max-height: 22rem;
  overflow-y: auto;
}

.notif-header-action-btn {
  align-items: center;
  background: #2d2d2d;
  border-radius: 0.5rem;
  border: 0.0625rem solid #3c3c3c;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 1.75rem;
  justify-content: center;
  padding: 0;
  width: 1.75rem;
}

.notif-header-action-btn img {
  filter: brightness(0) invert(1);
  height: 0.95rem;
  pointer-events: none;
  width: 0.95rem;
}

.notif-header-action-btn:hover {
  background: #3a3a3a;
  border-color: #555;
}

.notif-menu {
  background: #252525;
  border-radius: 0.625rem;
  border: 0.0625rem solid #333;
  display: none;
  min-width: 20rem;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 3.625rem;
  z-index: 10001;
}

.notif-menu-header {
  align-items: center;
  border-bottom: 0.0625rem solid #333;
  color: #fff;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.notif-wrap {
  align-items: center;
  display: flex;
  height: 2.8125rem;
  overflow: visible;
  position: relative;
  z-index: 200;
}

.scroll-top-btn {
  align-items: center;
  background: var(--card-bg,#262626);
  border-radius: var(--ui-curve,0.375rem);
  border: 0.0625rem solid #404040;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  color: #ebebeb;
  cursor: pointer;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  left: calc(1rem + env(safe-area-inset-left));
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: fixed;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  width: 2.75rem;
  z-index: 1300;
}

.scroll-top-btn svg {
  display: block;
  fill: currentColor;
  height: 1.125rem;
  width: 1.125rem;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:focus-visible {
  border-color: var(--accent,#789d2a);
  outline: none;
}

.scroll-top-btn:hover {
  border-color: var(--accent,#789d2a);
  color: #fff;
}

.search-input {
  background-blend-mode: normal;
  background-color: #444;
  background-image: url('/static/image/search-icon.svg');
  background-position: 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.125rem 1.125rem;
  border-radius: 0.5rem;
  border: 0.0625rem solid #404040;
  color: #fff;
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  min-width: 0;
  outline: none;
  padding: 0.75rem 1rem 0.75rem 2.625rem;
  transition: border-color 0.2s;
  width: 100%;
}

.search-input::placeholder {
  color: #8f8f8f;
}

.search-input:focus {
  border-color: var(--accent);
}

.search-section {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  margin-left: auto;
  max-width: 34rem;
  min-width: 10rem;
}

.turnstile-message {
  color: #e2a9b6;
  font-size: 0.85rem;
  margin-top: 0.65rem;
  min-height: 1rem;
  text-align: center;
}

.turnstile-modal {
  background: #242424;
  border-radius: 0.75rem;
  border: 0.0625rem solid #3a3a3a;
  box-sizing: border-box;
  max-width: 28rem;
  padding: 1.25rem;
  width: 100%;
}

.turnstile-overlay {
  align-items: center;
  background: rgba(0,0,0,0.78);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 200000;
}

.turnstile-overlay.show {
  display: flex;
}

.turnstile-text {
  color: #bdbdbd;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.turnstile-title {
  color: #f2f2f2;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.turnstile-widget {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 4.5rem;
}

@media (max-width: 1024px) and (min-width: 481px) {
  .auth-btn {
    gap: 0.375rem;
    height: 2.375rem;
    width: 8.5rem;
  }

  .auth-btn-icon {
    height: 1.25rem;
    width: 1.25rem;
  }

  .auth-btn-text {
    font-size: 1rem;
  }

  .auth-section {
    flex: 0 0 auto;
    gap: 0.5rem;
    margin-left: 0.75rem;
  }

  .auth-section, .avatar-wrap {
    flex: 0 0 auto;
  }

  .logo {
    height: clamp(2rem,5vw,3rem);
    max-width: 7.5rem;
    width: auto;
  }

  .logo-desktop {
    display: none;
  }

  .logo-tablet {
    display: block;
  }

  .main-header {
    align-items: center;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: clamp(0.5rem,2vw,1rem);
    height: 4rem;
    left: 0;
    margin: 0;
    max-width: 100%;
    overflow: visible;
    padding: 0 clamp(0.75rem,3vw,1.5rem);
    position: fixed;
    right: 0;
    top: 0;
    transform: none;
    width: 100%;
    z-index: 100;
  }

  .nav-btn {
    font-size: 1.125rem;
    max-width: 8.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-btn.hide-tablet {
    display: inline-flex !important;
  }

  .nav-section {
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    gap: clamp(0.375rem,1.5vw,0.75rem);
    min-width: 0;
  }

  .nav-section .logo {
    flex: 0 0 auto;
    height: clamp(2rem,5vw,3rem);
    margin-right: 0;
    max-width: 7.5rem;
    width: auto;
  }

  .nav-section a[href="/"].nav-btn {
    display: none !important;
  }

  .search-input {
    background-position: 0.75rem center;
    background-size: 1.125rem 1.125rem;
    box-sizing: border-box;
    font-size: 1rem;
    min-width: 7.5rem;
    padding: 0.625rem 0.75rem 0.625rem 2.5rem;
    width: 100%;
  }

  .search-section {
    flex: 0 1 22rem;
    margin-left: auto;
    margin-right: 0;
    max-width: 22rem;
    min-width: 10rem;
  }
}

@media (max-width: 480px) {
  .main-header {
    display: none;
  }

  .mobile-header {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    height: 4rem;
    justify-content: space-between;
    overflow: visible;
    padding: 0 calc(1rem + env(safe-area-inset-right)) 0 calc(1rem + env(safe-area-inset-left));
    z-index: 1001;
  }

  .mobile-header .mobile-left {
    align-items: center;
    display: flex;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
  }

  .mobile-header .mobile-left img {
    display: block;
    height: 2.5rem;
    object-fit: contain;
    width: 2.5rem;
  }

  .mobile-header .mobile-search {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-header .mobile-search input {
    background-color: #444444;
    background-image: url('/static/image/search-icon.svg');
    background-position: 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.125rem 1.125rem;
    border-radius: 0.625rem;
    border: 0.0625rem solid #404040;
    box-sizing: border-box;
    color: #fff;
    display: block;
    flex: 1 1 auto;
    font-size: 1rem;
    height: 2.5rem;
    min-width: 0;
    outline: none;
    padding: 0 0.75rem 0 2.75rem;
    width: 100%;
  }

  .mobile-header .mobile-search input::placeholder {
    color: #8f8f8f;
  }

  .mobile-header .mobile-fullscreen-btn {
    align-items: center;
    background-color: #444444;
    border-radius: 0.625rem;
    border: 0.0625rem solid #404040;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    justify-content: center;
    outline: none;
    padding: 0;
    width: 2.5rem;
    transition: background-color 0.2s, border-color 0.2s;
  }

  .mobile-header .mobile-fullscreen-btn:hover {
    background-color: #555555;
  }

  .mobile-header .mobile-fullscreen-btn svg {
    display: block;
    height: 1.25rem;
    width: 1.25rem;
  }

  /* ── Tab Bar ── */
  .mobile-tabbar {
    align-items: stretch;
    background: var(--bg);
    border-top: 0.0625rem solid #2a2a2a;
    bottom: 0;
    display: flex;
    height: calc(3.5rem + env(safe-area-inset-bottom));
    left: 0;
    padding-bottom: env(safe-area-inset-bottom);
    position: fixed;
    right: 0;
    z-index: 1002;
  }

  .mobile-tab {
    align-items: center;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    flex: 1;
    flex-direction: column;
    font-family: inherit;
    font-size: 0.625rem;
    font-weight: 600;
    gap: 0.2rem;
    justify-content: center;
    letter-spacing: 0.02em;
    padding: 0.375rem 0 0;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .mobile-tab svg {
    display: block;
    flex-shrink: 0;
    height: 1.375rem;
    width: 1.375rem;
  }

  .mobile-tab span {
    display: block;
    line-height: 1;
  }

  .mobile-tab.active,
  .mobile-tab.has-unread {
    color: var(--accent);
  }

  @media (hover: hover) {
    .mobile-tab:hover {
      color: var(--accent);
    }
    .mobile-tab:hover .mobile-tab-icon {
      background-color: var(--accent);
    }
  }

  /* Plus button in the centre */
  .mobile-tab--new {
    color: var(--accent);
    padding: 0 !important;
  }

  .mobile-tab--new svg {
    background: var(--accent);
    border-radius: 0.5rem;
    color: #fff;
    height: 1.75rem;
    padding: 0.25rem;
    width: 1.75rem;
    display: block;
    margin: auto;
  }

  /* Mobile tab icons using CSS masks */
  .mobile-tab-icon {
    display: block;
    height: 1.375rem;
    width: 1.375rem;
    background-color: #666; /* default color */
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    transition: background-color 0.15s ease;
  }

  .mobile-tab.active .mobile-tab-icon {
    background-color: var(--accent);
  }

  .mobile-tab-icon--feed {
    -webkit-mask-image: url('/static/image/feed-image-icon.svg');
    mask-image: url('/static/image/feed-image-icon.svg');
  }

  .mobile-tab-icon--videos {
    -webkit-mask-image: url('/static/image/suggest.svg');
    mask-image: url('/static/image/suggest.svg');
  }

  .mobile-tab-icon--notif {
    -webkit-mask-image: url('/static/image/notifications.svg');
    mask-image: url('/static/image/notifications.svg');
  }

  /* Avatar tab */
  .mobile-tab-avatar {
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    height: 1.5rem;
    object-fit: cover;
    width: 1.5rem;
  }

  /* Notif badge on tab */
  .mobile-tab-notif-wrap {
    position: relative;
    display: block;
    width: 1.375rem;
    height: 1.375rem;
    margin: 0 auto;
  }

  .mobile-notif-badge {
    align-items: center;
    background: var(--accent);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.625rem;
    font-weight: 700;
    justify-content: center;
    height: 1rem;
    min-width: 1rem;
    padding: 0 0.25rem;
    position: absolute;
    right: -0.5rem;
    top: -0.3rem;
    z-index: 5;
    line-height: 1;
    box-sizing: border-box;
  }

  /* ── Me bottom-sheet modal ── */
  .me-modal-overlay {
    display: block;
    background: rgba(0, 0, 0, 0);
    bottom: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: background 0.25s ease, opacity 0.25s ease;
    z-index: 2000;
  }

  .me-modal-overlay.show {
    background: rgba(0, 0, 0, 0.55);
    opacity: 1;
    pointer-events: auto;
  }

  /* Notifications bottom-sheet overlay */
  .notif-modal-overlay {
    display: block;
    background: rgba(0, 0, 0, 0);
    bottom: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: background 0.25s ease, opacity 0.25s ease;
    z-index: 2000;
  }

  .notif-modal-overlay.show {
    background: rgba(0, 0, 0, 0.55);
    opacity: 1;
    pointer-events: auto;
  }

  .me-modal {
    display: block;
    background: #1e1e1e;
    border-radius: 1rem 1rem 0 0;
    border-top: 0.0625rem solid #333;
    bottom: 0;
    left: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    position: fixed;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
  }

  .me-modal-overlay.show .me-modal {
    transform: translateY(0);
  }

  .me-modal-handle {
    background: #444;
    border-radius: 999px;
    height: 0.25rem;
    margin: 0.625rem auto 0.25rem;
    width: 2.5rem;
  }

  .me-modal-item {
    align-items: center;
    background: none;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 500;
    gap: 0.875rem;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    width: 100%;
  }

  .me-modal-item svg {
    flex-shrink: 0;
    height: 1.25rem;
    width: 1.25rem;
  }

  @media (hover: hover) {
    .me-modal-item:hover {
      background: #2a2a2a;
      color: #fff;
    }
    .me-modal-item--danger:hover {
      background: #2a1418;
      color: #ff3355;
    }
  }

  .me-modal-item:active {
    background: #2a2a2a;
    color: #fff;
  }

  .me-modal-item--danger {
    color: #d4183d;
  }

  .me-modal-item--danger:active {
    background: #2a1418;
    color: #ff3355;
  }

  .scroll-top-btn {
    bottom: calc(4.25rem + env(safe-area-inset-bottom));
    height: 2.5rem;
    left: calc(0.75rem + env(safe-area-inset-left));
    width: 2.5rem;
  }

  @media(max-width: 380px) {
    .mobile-header {
      gap: 0.5rem;
      padding: 0 calc(0.75rem + env(safe-area-inset-right)) 0 calc(0.75rem + env(safe-area-inset-left));
    }

    .mobile-header .mobile-left {
      flex-basis: 2.25rem;
      height: 2.25rem;
      width: 2.25rem;
    }

    .mobile-header .mobile-left img {
      height: 2.25rem;
      width: 2.25rem;
    }

    .mobile-header .mobile-search input {
      background-position: 0.5625rem center;
      background-size: 1rem 1rem;
      font-size: 1rem;
      height: 2.25rem;
      padding: 0 0.625rem 0 2.375rem;
    }
  }

  /* Notifications mobile bottom sheet */
  #notif-menu {
    background: #1e1e1e !important;
    border-radius: 1rem 1rem 0 0 !important;
    border-top: 0.0625rem solid #333 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    left: 0 !important;
    max-height: 75vh !important;
    max-width: 100% !important;
    min-width: 100% !important;
    position: fixed !important;
    right: 0 !important;
    top: auto !important;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), pointer-events 0.28s !important;
    width: 100% !important;
    z-index: 2005 !important;
    pointer-events: none;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  #notif-menu.show {
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  #notif-menu .notif-list {
    max-height: calc(75vh - 7rem) !important;
    overflow-y: auto !important;
  }

  #notif-menu .me-modal-handle {
    display: block !important;
  }
}

@media (max-width: 600px) and (min-width: 481px) {
  .main-header {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .nav-btn {
    font-size: 1rem;
    max-width: 7.25rem;
  }

  .nav-section {
    gap: 0.5rem;
  }

  .search-section {
    flex: 0 1 14rem;
    max-width: 14rem;
    min-width: 8rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .main-header, .mobile-header, .scroll-top-btn, .me-modal, .me-modal-overlay {
    transition: none;
  }
}