/* Top Navigation Bar Styles */
.top-nav-bar {
  display: flex;
  justify-content: center; /* Center the wrapper */
  align-items: center;
  height: 0.64rem;
  background: #fff;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,21,41,0.08);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  /* margin-bottom removed as it is fixed */
}

.nav-content-wrapper {
  max-width: 1400px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.24rem; /* Match main layout padding */
  box-sizing: border-box;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.16rem;
}

.nav-divider-vertical {
    width: 1px;
    height: 0.32rem;
    background: #E0E0E0;
    margin: 0 0.04rem;
}

.nav-logo {
    height: 0.52rem;
    width: auto;
    cursor: pointer;
}

.nav-logo-icon {
  width: 0.4rem;
  height: 0.4rem;
  background: #7367F0; /* Purple color from mockup */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 0.2rem;
  box-shadow: 0 2px 6px rgba(115, 103, 240, 0.4);
}

.nav-titles {
  display: flex;
  flex-direction: column;
  padding-top: 0.08rem; /* Push text down to align bottom with logo */
  align-items: center; /* Center align children horizontally */
}

.nav-title-main {
  font-size: 0.18rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
  cursor: pointer;
}

.nav-title-sub {
  font-size: 0.12rem;
  color: #9967f0;
  line-height: 1.2;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  height: 100%;
}

.nav-notification {
  cursor: pointer;
  color: #666;
  font-size: 0.2rem;
  display: flex;
  align-items: center;
}
.nav-notification-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-notification-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-notification-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  background: #F56C6C;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  display: none;
  box-sizing: border-box;
}
.nav-notification-dropdown {
  position: absolute;
  right: 0;
  top: 0.52rem;
  width: 3.6rem;
  background: #fff;
  border-radius: 0.08rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0efff;
  padding: 0.12rem 0 0.08rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.06rem);
  transition: all 0.2s ease;
  z-index: 200;
}
.nav-notification-wrapper:hover .nav-notification-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.16rem 0.1rem;
  border-bottom: 1px solid #f0efff;
}
.nav-notification-header-left {
  display: flex;
  align-items: center;
  gap: 0.08rem;
}
.nav-notification-title {
  font-size: 0.14rem;
  color: #333;
  font-weight: 600;
}
.nav-notification-count {
  display: none;
  background: #eef3ff;
  color: #3d7eff;
  font-size: 0.11rem;
  padding: 0 0.08rem;
  border-radius: 0.1rem;
  line-height: 0.18rem;
  height: 0.18rem;
  margin-left: auto;
}
.nav-notification-more {
  font-size: 0.12rem;
  color: #9967f0;
  text-decoration: none;
}
.nav-notification-list {
  max-height: 2.6rem;
  overflow-y: auto;
  padding: 0.08rem 0;
}
.nav-notification-item {
  display: flex;
  gap: 0.12rem;
  padding: 0.12rem 0.16rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eef0f6;
}
.nav-notification-item:last-child {
  border-bottom: none;
}
.nav-notification-item:hover {
  background: #f5f7ff;
}
.nav-notification-item-media {
  width: 0.52rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
  flex-shrink: 0;
}
.nav-notification-item-icon {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #fff3e6;
  color: #ff9f43;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-notification-item-icon svg {
  width: 0.2rem;
  height: 0.2rem;
}
.nav-notification-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}
.nav-notification-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.08rem;
}
.nav-notification-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.08rem;
  min-width: 0;
}
.nav-notification-item-title {
  font-size: 0.13rem;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-notification-item-time {
  font-size: 0.12rem;
  color: #b0b4bf;
  flex-shrink: 0;
}
.nav-notification-item-desc-row {
  position: relative;
  min-height: 0.34rem;
}
.nav-notification-item-desc {
  font-size: 0.12rem;
  color: #8a8f9c;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.nav-notification-item-action {
  font-size: 0.12rem;
  color: #3d7eff;
  position: absolute;
  right: 0;
  bottom: 0;
  background: #fff;
  padding-left: 0.04rem;
}
.nav-notification-item:hover .nav-notification-item-action {
  background: #f5f7ff;
}
.nav-notification-tag {
  background: #e6f1ff;
  color: #3d7eff;
  font-size: 0.11rem;
  padding: 0 0.06rem;
  border-radius: 0.04rem;
  line-height: 0.18rem;
  height: 0.18rem;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-notification-item.unread .nav-notification-item-title {
  color: #3d7eff;
}
.nav-notification-empty {
  padding: 0.16rem;
  font-size: 0.12rem;
  color: #999;
  text-align: center;
  display: none;
}

.a-text {
  color: #171725;
}

.a-text:hover {
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
}

.msg-status {
  margin-right: 0.05rem;
}

.is-read {
  color: #8692b0;
}

.no-read {
  color: var(--color-primary);
}

.notify-dialog .el-dialog__header {
  position: relative;
  text-align: left;
  padding: 0.2rem 0.24rem 0.08rem;
}

.notify-dialog {
  width: 640px !important;
  max-width: 92vw;
  height: auto;
  min-height: 3.4rem;
  max-height: 80vh;
  margin: 0 auto !important;
  top: 50% !important;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.notify-dialog .el-dialog__title {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.16rem;
  font-weight: 600;
  color: #8e6be8;
}

.notify-dialog .el-dialog__headerbtn {
  top: 0.18rem;
  right: 0.2rem;
}

.notify-dialog .el-dialog__body {
  padding: 0.16rem 0.3rem;
  display: flex;
  flex-direction: column;
  max-height: calc(80vh - 0.68rem);
  overflow: hidden;
  flex: 1;
  box-sizing: border-box;
}

.notify-dialog .content_table {
  margin-top: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notify-dialog .el-table {
  font-size: 0.14rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notify-dialog .el-table th {
  background: #fafbff;
}

.notify-dialog .tabledata {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.notify-dialog .el-table__body-wrapper {
  flex: 1;
  overflow-y: auto;
}

.notify-dialog .myPage {
  margin-top: 0;
  padding-top: 0;
  height: 0.56rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.notify-dialog .myPage .el-pagination {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.notify-dialog .notify-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.notify-dialog .notify-detail-title {
  font-size: 0.2rem;
  font-weight: 600;
  color: #2b2b2b;
  padding: 0.04rem 0 0.12rem;
}

.notify-dialog .notify-detail-meta {
  display: flex;
  gap: 0.16rem;
  color: #8f97a6;
  font-size: 0.12rem;
  padding-bottom: 0.08rem;
}

.notify-dialog .notify-detail-content {
  flex: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 0.14rem;
  color: #2b2b2b;
  line-height: 1.6;
  padding: 0.08rem 0 0.12rem;
}

.notify-dialog .notify-detail-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  border-top: 1px solid #eef0f6;
  padding-top: 0.12rem;
  padding-bottom: 0.04rem;
}

.notify-dialog .notify-detail-confirm {
  min-width: 1.1rem;
  height: 0.4rem;
  font-size: 0.14rem;
  border-radius: 0.06rem;
  background: #b69af6;
  border-color: #b69af6;
  color: #fff;
}

.notify-detail-dialog .el-dialog__body {
  padding: 0.24rem 0.4rem;
}
.nav-notification svg {
  width: 0.2rem;
  height: 0.2rem;
}
.nav-notification:hover {
  color: #9967f0;
}
.nav-notification .el-badge__content.is-fixed.is-dot {
    top: auto;
    bottom: 2px;
    right: 2px;
}

body.topnav-notify-open {
  overflow: hidden;
}

.topnav-notify-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.topnav-notify-dialog {
  width: 640px;
  max-width: calc(100vw - 32px);
  min-height: 320px;
  max-height: calc(100vh - 64px);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 34px rgba(64, 49, 108, 0.2);
  position: relative;
  border: 1px solid #ece5ff;
}

.topnav-notify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e8dfff;
  background: linear-gradient(180deg, #f6f2ff 0%, #f1eaff 100%);
}

.topnav-notify-title {
  font-size: 24px;
  color: #7f66cc;
  font-weight: 600;
  line-height: 1.1;
}

.topnav-notify-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #8f72de;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  position: static;
  padding: 0;
}

.topnav-notify-close:hover {
  background: #efe7ff;
  color: #7f66cc;
}

.topnav-notify-body {
  padding: 14px 20px 12px;
  min-height: 220px;
  max-height: calc(100vh - 180px);
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.topnav-notify-list-view,
.topnav-notify-detail-view {
  flex: 1;
  min-height: 0;
}

.topnav-notify-list {
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.topnav-notify-loading,
.topnav-notify-empty {
  text-align: center;
  color: #8f97a6;
  padding: 28px 0;
  font-size: 14px;
}

.topnav-notify-empty {
  display: none;
}

.topnav-notify-row {
  border: 1px solid #edf0f6;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
}

.topnav-notify-row:hover {
  border-color: #cfb5ff;
  box-shadow: 0 3px 10px rgba(146, 112, 223, 0.08);
}

.topnav-notify-row-title {
  font-size: 14px;
  color: #171725;
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.topnav-notify-row-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: #8f97a6;
  font-size: 12px;
}

.topnav-notify-detail-view {
  display: none;
}

.topnav-notify-detail-main {
  height: auto;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.topnav-notify-detail-title {
  font-size: 21px;
  color: #53448f;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 2px;
}

.topnav-notify-detail-meta {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  color: #9ea1bf;
  font-size: 13px;
  line-height: 1.4;
  flex-wrap: wrap;
  align-items: center;
}

.topnav-notify-meta-type {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #efe8ff;
  color: #7654cc;
  border: 1px solid #e1d4ff;
  font-size: 12px;
}

.topnav-notify-detail-content {
  margin-top: 12px;
  flex: none;
  min-height: 68px;
  max-height: 40vh;
  overflow-y: auto;
  color: #5b5577;
  line-height: 1.8;
  font-size: 15px;
}

.topnav-notify-detail-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ece5ff;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.topnav-notify-btn {
  height: 40px;
  min-width: 108px;
  border-radius: 6px;
  border: 1px solid #d9d0ef;
  background: #fff;
  color: #5e5575;
  cursor: pointer;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1;
}

.topnav-notify-btn:hover {
  border-color: #b8a8de;
  color: #4d426b;
}

.topnav-notify-btn-primary {
  background: #9a7de3;
  border-color: #9a7de3;
  color: #fff;
}

.topnav-notify-btn-primary:hover {
  background: #8765d8;
  border-color: #8765d8;
  color: #fff;
}

.topnav-notify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.topnav-notify-mask.topnav-notify-detail-mode .topnav-notify-btn-default {
  display: none;
}

.nav-divider {
  width: 1px;
  height: 0.24rem;
  background: #E0E0E0;
}

.nav-user-profile {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  height: 100%;
}

.nav-avatar {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}

.nav-avatar-text {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FF9F43 0%, #FFC107 100%);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.16rem;
  font-weight: bold;
}

.nav-user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Right align text */
}

.nav-username {
  font-size: 0.14rem;
  font-weight: 500;
  color: #333;
}

.nav-role {
  font-size: 0.12rem;
  color: #888;
}

.nav-logout-btn {
  cursor: pointer;
  width: 0.32rem;
  height: 0.32rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  color: #666;
  font-size: 0.18rem;
  transition: all 0.3s;
}

.nav-logout-btn:hover {
  background: #f5f5f5;
  color: #F56C6C;
}

/* Ensure container has proper spacing */
.new-home-container {
  padding-top: 0; /* Remove top padding if it was handled by margin-bottom of nav */
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    margin-left: 0.4rem;
    height: 100%;
}

.nav-item-link,
.nav-item-title {
    padding: 0 0.2rem;
    height: 0.64rem; /* Match navbar height */
    display: flex;
    align-items: center;
    font-size: 0.14rem;
    color: #666;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    user-select: none;
}

.nav-item-link:hover,
.nav-item-dropdown-wrapper:hover .nav-item-title {
    color: #9967f0;
    background: #f0efff;
}

.nav-item-title i {
    margin-left: 4px;
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-item-dropdown-wrapper:hover .nav-item-title i {
    transform: rotate(180deg);
}

/* Mega Menu */
.nav-item-dropdown-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.mega-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.08);
    border-top: none;
    margin-top: 10px; /* Overlap parent shadow */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-item-dropdown-wrapper:hover .mega-menu-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.24rem;
    height: 60px; /* Fixed height as requested */
    display: flex; /* Use flex to center grid if needed, or just let grid handle it */
    align-items: center;
}

.mega-menu-grid {
    display: flex;
    justify-content: center;
    gap: 0.5rem; /* Increased gap for centered layout */
    width: 100%;
}

.mega-menu-item {
    display: flex;
    align-items: center; /* Center vertically */
    padding: 0 0.1rem;
    height: 30px; /* Fixed height */
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
    gap: 0.08rem;
}

.mega-menu-item:hover {
    background: #f5f7fa;
}

.mega-menu-item .item-icon {
    font-size: 0.16rem; /* Reduced icon size */
    color: #9967f0;
    display: flex;
    margin-top: 0;
}

.mega-menu-item .item-icon svg {
    flex-shrink: 0;
}

.mega-menu-item .item-info {
    display: flex;
    flex-direction: row; /* Horizontal layout for compact size */
    align-items: center;
    gap: 5px;
}

.mega-menu-item .item-title {
    font-size: 0.13rem; /* Reduced font size */
    font-weight: 500;
    color: #333;
    margin-bottom: 0;
    line-height: 1;
}

.mega-menu-item .item-desc {
    display: none; /* Hide description for compact mode */
}

/* User Dropdown */
.user-dropdown-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Hide original avatar when dropdown is hovered */
.user-dropdown-wrapper:hover .nav-user-profile {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Bridge for hover */
.user-dropdown-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px; /* Reduced width */
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1); /* Standard subtle shadow */
    border-radius: 8px;
    padding: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    border: 1px solid #ebeef5; /* Standard border */
}

.user-dropdown-wrapper:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Big Avatar */
.dropdown-big-avatar {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.dropdown-avatar-section {
    position: relative;
    width: 100%;
    height: 100%;
}

.dropdown-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff; /* Will be overridden by inline style */
    box-shadow: none;
    background: #fff;
    font-size: 0;
    display: block;
}

.dropdown-level-badge-crown {
    position: absolute;
    bottom: -6px;
    right: -20px;
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 5;
    overflow: hidden;
}

.dropdown-badge-icon-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.dropdown-big-avatar .dropdown-avatar-text {
    display: none;
}

/* Header */
.dropdown-user-header {
    padding-top: 45px;
    padding-bottom: 15px;
    text-align: center;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.dropdown-username-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dropdown-username {
    font-size: 18px;
    font-weight: 600;
    color: #9967f0; /* Purple text */
}

.dropdown-level-tag {
    background: #9967f0; /* Purple bg */
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    line-height: 1.2;
}

/* Menu List */
.dropdown-menu-list {
    padding: 5px 0 10px;
    border-top: 1px solid #f0efff; /* Pale purple divider */
}

.user-menu-item {
    padding: 10px 24px; /* Adjust padding for alignment */
    cursor: pointer;
    color: #606266;
    font-size: 14px;
    display: flex; /* Flex for icon + text */
    align-items: center;
    justify-content: flex-start; /* Left align */
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.user-menu-item:hover {
    background-color: #f0efff; /* Pale purple hover bg */
    color: #9967f0; /* Purple hover text */
}

.user-menu-item svg {
    font-size: 18px; /* Icon size */
    color: #909399;
    transition: color 0.2s;
}

.user-menu-item .menu-text {
    flex: 1; /* Push arrow to right */
    text-align: left;
}

.user-menu-item .arrow-icon {
    font-size: 14px; /* Smaller arrow */
    color: #c0c4cc;
    transform: rotate(180deg); /* If using chevron-left as base, or just ensure it points right */
    /* Note: SVG used is polyline points="9 18 15 12 9 6" which is a left arrow <, wait.
       Standard feather chevron-right is <polyline points="9 18 15 12 9 6"></polyline> ?
       No, 9,18 -> 15,12 -> 9,6 is a right arrow (>). 
       (9,18) is bottom-left, (15,12) is mid-right, (9,6) is top-left. Yes it is right arrow.
       So no rotation needed. */
    transform: none;
}

.user-menu-item:hover svg {
    color: #9967f0;
}

/* Specific style for arrow on hover if needed, but above covers all SVGs */

.user-menu-divider {
    height: 1px;
    background: #f0efff; /* Pale purple divider */
    margin: 4px 0;
}

/* Avatar Styles from Agent */
.nav-avatar-section {
    position: relative;
    width: 0.48rem;
    height: 0.48rem;
    flex-shrink: 0;
    margin-right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff; /* Will be overridden by inline style */
    box-shadow: none;
    font-size: 0; /* Hide alt text to prevent layout issues if image fails */
    display: block;
}
.nav-level-badge-crown {
    position: absolute;
    bottom: -0.08rem;
    right: -0.15rem;
    width: 0.32rem;
    height: 0.32rem;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 5;
    overflow: hidden;
}
.nav-badge-icon-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
