/* هدر/منوی ادمین — هم‌سبک صفحهٔ خانه (چیپ کاربر + پاپ‌اور) */
.admin-top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #d7e4e0;
  background: rgba(246, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.admin-top .header-inner {
  display: flex;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
}
.admin-top .app-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.admin-top .brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #0d6b6e;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(13, 107, 110, 0.28);
  flex-shrink: 0;
}
.admin-top .app-brand-text { min-width: 0; }
.admin-top .app-brand-text h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f2f2c;
  line-height: 1.15;
}
.admin-top .app-brand-text .brand-tag {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5f7a76;
}
.admin-top .header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.admin-top .home-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid #d0e0dc;
  background: #fff;
  color: #123033;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.admin-top .home-chip:hover {
  background: #eef6f4;
  border-color: #0d6b6e;
  color: #0a5255;
}
.admin-top .more-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.admin-top .user-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #d0e0dc;
  background: #fff;
  color: #123033;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.admin-top .user-chip:hover {
  background: #eef6f4;
  border-color: #0d6b6e;
}
.admin-top .user-chip:active { transform: scale(0.97); }

.more-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: transparent;
}
.more-scrim[hidden] { display: none !important; }

.more-menu {
  position: fixed;
  z-index: 90;
  width: min(13.5rem, calc(100vw - 1rem));
  padding: 0.25rem 0;
  border-radius: 12px;
  border: 1px solid #e5ecea;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 40, 42, 0.14), 0 2px 8px rgba(15, 40, 42, 0.06);
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.more-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-top: 1px solid #e5ecea;
  border-inline-start: 1px solid #e5ecea;
  transform: rotate(45deg);
  pointer-events: none;
}
.more-menu[data-arrow="start"]::before { inset-inline-start: 1.1rem; }
.more-menu[data-arrow="end"]::before { inset-inline-end: 1.1rem; }
.more-menu[hidden] { display: none !important; }

.more-user {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem 0.75rem;
}
.more-user .name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #123033;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.more-user .role {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #7a9094;
}
.more-divider {
  height: 1px;
  margin: 0.15rem 0;
  background: #e8efed;
}
.more-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1a2f33;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.more-item:hover { background: #f3f8f6; }
.more-item i {
  width: 1.05rem;
  text-align: center;
  color: #0d6b6e;
  font-size: 1.05rem;
}
.more-item.active {
  background: #e7f4f2;
  color: #0a5255;
}
.more-item.danger { color: #dc2626; }
.more-item.danger i { color: #dc2626; }
