.admin-top-navbar {
  position: relative;
  z-index: 1200;
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.admin-top-navbar__start,
.admin-top-navbar__end {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.admin-top-navbar__end {
  margin-inline-start: auto;
}

.admin-language-dropdown {
  flex: 0 0 auto;
}

.admin-language-trigger {
  min-height: 2.85rem;
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border: 1px solid #e3e8ef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  color: #334155;
}

.admin-language-trigger:hover,
.admin-language-trigger:focus {
  color: #2c7be5;
}

.admin-language-trigger__icon {
  color: #2c7be5;
  font-size: 0.95rem;
}

.admin-language-trigger__code {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-language-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-language-option__badge {
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e7f1ff;
  color: #2c7be5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-language-option__label {
  font-weight: 600;
}

.admin-top-navbar .navbar-brand {
  margin: 0;
  flex: 0 0 auto;
}

.admin-top-navbar .dropdown-menu {
  border: 1px solid #e3e8ef;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.admin-profile-dropdown {
  min-width: 17rem;
  overflow: hidden;
}

.admin-profile-dropdown__header strong {
  color: #334155;
}

.admin-profile-dropdown__logout {
  padding-block: 0.9rem;
  margin: 0;
}

.admin-modules-trigger {
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 2.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e3e8ef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.profile-avatar-link {
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-user-avatar-shell {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  position: relative;
}

.admin-user-avatar-image,
.admin-user-avatar-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-user-avatar-image {
  object-fit: cover;
  border: 2px solid rgba(84, 112, 198, 0.14);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 2;
}

.admin-user-avatar-fallback {
  background: linear-gradient(135deg, #5470c6 0%, #20a5a0 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(84, 112, 198, 0.2);
}

.admin-user-avatar-fallback--standby {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.avatar-name.admin-user-avatar-fallback {
  min-width: 2rem;
  min-height: 2rem;
}

.admin-user-copy {
  max-width: 190px;
  min-width: 0;
}

.admin-user-copy strong {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-copy span {
  color: #7b8794;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-shell {
  position: relative;
}

.auth-login-copy {
  font-size: 0.95rem;
  line-height: 1.65;
}

.auth-login-submit {
  min-height: 3rem;
  border-radius: 1rem;
}

.open-media-manager-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.header-action-icon {
  width: 1rem;
  height: 1rem;
}

.media-card-preview {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.media-card-image,
.media-card-file {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-file {
  background: #eef4fb;
  color: #2c7be5;
}

html[dir="rtl"] .admin-user-copy {
  text-align: right;
}

@media (max-width: 991.98px) {
  .admin-top-navbar {
    gap: 0.75rem;
    padding-inline: 0.85rem;
  }

  .admin-top-navbar__end {
    gap: 0.65rem;
  }

  .admin-language-trigger {
    min-width: 2.85rem;
    justify-content: center;
    padding-inline: 0.8rem !important;
  }

  .admin-language-trigger__code {
    display: none;
  }
}
