/* =========================================================
   메인 사이트 나브용 회원 UI (로그인 링크 / 아바타 / 프로필 드롭다운)
   — :root·전역 box-sizing 미포함, 색상 하드코딩(메인 스타일 오염 방지)
   ========================================================= */
.auth-slot { display: inline-flex; align-items: center; gap: 10px; }

/* 나브 로그인 링크 — 다크 히어로=흰색 / 스크롤=진회색 */
.nav .auth-slot .auth-login-link { font-size: 15px; font-weight: 600; color: #475467; padding: 9px 6px; transition: color .2s ease; }
.nav .auth-slot .auth-login-link:hover { color: #101828; }
.nav.on-hero .auth-slot .auth-login-link { color: rgba(255,255,255,.82); }
.nav.on-hero .auth-slot .auth-login-link:hover { color: #fff; }

/* 아바타 */
.avatar-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: none; }
.avatar-btn .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14.5px; background: linear-gradient(150deg,#1b3aa0,#2962ff); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #dfe7ff; }
.nav.on-hero .avatar-btn .av { box-shadow: 0 0 0 2px rgba(255,255,255,.3); }

/* 프로필 드롭다운 */
.profile-menu { position: fixed; z-index: 2000; width: 264px; box-sizing: border-box; background: #fff; border: 1px solid #eaecf2; border-radius: 18px; box-shadow: 0 20px 50px rgba(16,24,40,.18); padding: 8px; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .14s, transform .14s; font-family: "Pretendard","Apple SD Gothic Neo","Malgun Gothic",sans-serif; }
.profile-menu * { box-sizing: border-box; }
.profile-menu.on { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.profile-menu .pm-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; }
.profile-menu .pm-head .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; background: linear-gradient(150deg,#1b3aa0,#2962ff); flex: none; }
.profile-menu .pm-head .who { min-width: 0; }
.profile-menu .pm-head .who b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; color: #101828; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-menu .pm-head .who span { display: block; font-size: 12px; color: #98a2b3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-menu .pm-div { height: 1px; background: #eaecf2; margin: 4px 6px; }
.profile-menu .pm-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 0; background: none; padding: 11px 12px; border-radius: 11px; font-size: 13.5px; font-weight: 700; color: #101828; cursor: pointer; font-family: inherit; text-decoration: none; }
.profile-menu .pm-item:hover { background: #f6f8fb; }
.profile-menu .pm-item .ic { width: 20px; text-align: center; font-size: 15px; flex: none; }
.profile-menu .pm-item .badge { margin-left: auto; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #f6f8fb; color: #98a2b3; }
.profile-menu .pm-item .badge.soon { background: #fff4e0; color: #b26a00; }
.profile-menu .pm-item.danger { color: #e11d48; }
.profile-menu .pm-item.danger:hover { background: #fef2f4; }

/* 모바일에서도 로그인/아바타는 보이게(ghost-link만 숨는 규칙과 무관) */
@media (max-width: 900px) {
  .nav .auth-slot { display: inline-flex; }
  .profile-menu { width: min(264px, calc(100vw - 24px)); }
}
