/* 로그인 완료 후 상단 유저 바 — 정글 배경 위 글래스 패널 + 골드 포인트 */
.header.mw {
  position: relative;
  z-index: 5;
}

.rich7-user-bar {
  width: 100%;
  max-width: min(960px, 94vw);
  margin: 0 auto 0.75rem;
  padding: 0;
}

.rich7-user-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(18, 22, 28, 0.88) 0%, rgba(8, 10, 14, 0.92) 100%);
  border: 1px solid rgba(255, 210, 120, 0.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rich7-user-bar__avatar {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255, 196, 81, 0.28) 0%, rgba(40, 36, 28, 0.6) 100%);
  border: 1px solid rgba(255, 196, 81, 0.45);
  color: #ffd36b;
  font-size: 1.15rem;
}

.rich7-user-bar__stats {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.15rem;
  min-width: 0;
}

.rich7-user-bar__stat {
  font-size: 0.8rem;
  color: rgba(232, 234, 238, 0.92);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rich7-user-bar__label {
  color: rgba(200, 204, 212, 0.85);
  margin-right: 0.35rem;
}

.rich7-user-bar__val,
.rich7-user-bar__val #navBalance,
.rich7-user-bar__val #navPoint,
.rich7-user-bar__val #rich7-memo-count {
  color: #ffe08a;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 196, 81, 0.25);
}

.rich7-user-bar__unit {
  color: rgba(255, 224, 160, 0.92);
  font-weight: 600;
  margin-left: 1px;
}

.rich7-user-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.rich7-user-bar__userid {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffe8a8;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 81, 0.35);
  background: rgba(0, 0, 0, 0.25);
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rich7-user-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rich7-user-bar__btn--partner {
  background: linear-gradient(180deg, rgba(52, 58, 68, 0.95) 0%, rgba(28, 32, 38, 1) 100%);
  color: #ffd36b;
  border: 1px solid rgba(255, 196, 81, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.rich7-user-bar__btn--partner:hover {
  filter: brightness(1.08);
  color: #ffe9b0;
}

.rich7-user-bar__btn--profile {
  background: linear-gradient(180deg, rgba(40, 44, 52, 0.95) 0%, rgba(22, 26, 32, 1) 100%);
  color: #e8f0ff;
  border: 1px solid rgba(255, 196, 81, 0.38);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rich7-user-bar__btn--profile:hover {
  filter: brightness(1.08);
  color: #fff;
}

.rich7-user-bar__btn--logout {
  background: linear-gradient(180deg, #3b82d9 0%, #2563b8 55%, #1d4ed8 100%);
  color: #fff;
  border: 1px solid rgba(100, 180, 255, 0.35);
  box-shadow: 0 2px 12px rgba(37, 99, 184, 0.4);
}

.rich7-user-bar__btn--logout:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* 테마7 하단 메뉴 — 미확인 쪽지: 전체 빨간 btn 대신 작은 뱃지만 */
.header_menuItem#nav-message .header_menuItem--icon {
  position: relative;
}

.header_menuItem#nav-message.rich7-nav-message--unread .header_menuItem--icon::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5c5c;
  box-shadow: 0 0 0 2px rgba(12, 14, 18, 0.95);
  animation: rich7-nav-msg-dot 1.4s ease-in-out infinite;
}

.header_menuItem#nav-message.rich7-nav-message--unread .header_menuItem--text {
  color: #ffd0a8 !important;
  font-weight: 700;
}

@keyframes rich7-nav-msg-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.88);
    opacity: 0.85;
  }
}

@media (max-width: 640px) {
  .rich7-user-bar__inner {
    border-radius: 1rem;
    padding: 0.75rem 0.85rem;
  }

  .rich7-user-bar__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .rich7-user-bar__stat {
    font-size: 0.74rem;
  }

  .rich7-user-bar__userid {
    max-width: 7rem;
  }
}
