/* Shared mobile bottom nav + drawer extras */

:root {
  --app-m-bottom-nav-h: 68px;
}

.app-m-bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: calc(var(--app-m-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding: 0.35rem 0.15rem env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

@media (min-width: 1024px) {
  .app-m-bottom-nav {
    display: none;
  }
}

.app-m-bottom-nav__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  min-height: 48px;
  padding: 0.15rem 0.1rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: #6b7280;
  text-decoration: none;
  font-family: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s ease;
}

.app-m-bottom-nav__item svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.app-m-bottom-nav__item--active {
  color: #141d30;
}

.app-m-bottom-nav__item:hover,
.app-m-bottom-nav__item:focus-visible {
  color: #141d30;
  outline: none;
}

.app-m-bottom-nav__badge {
  position: absolute;
  top: 2px;
  inset-inline-start: 50%;
  margin-inline-start: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}

/* Reserve space for fixed bottom nav only while it is visible */
body.has-app-m-bottom-nav {
  padding-bottom: calc(var(--app-m-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1024px) {
  body.has-app-m-bottom-nav {
    padding-bottom: 0;
  }
}

.app-m-drawer__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  transition: background 0.15s ease;
}

.app-m-drawer__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6b7280;
}

.app-m-drawer__link:hover {
  background: #f3f4f6;
}

.app-m-drawer__link--danger {
  color: #dc2626;
}

.app-m-drawer__link--danger svg {
  color: #dc2626;
}

.app-m-drawer__link--locked {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.app-m-drawer__link-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.app-m-drawer__link-text small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
}

.app-m-drawer__divider {
  height: 1px;
  margin: 0.35rem 0.5rem;
  background: #e5e7eb;
}

.net-menu-sheet__item--locked,
.dash-drawer__link--locked {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.net-menu-sheet__item--locked small,
.dash-drawer__link--locked small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  margin-inline-start: 0.35rem;
}
