/* ── 레벨 배지 ── */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
  border-radius: 3px;
  background: #e91e63;
  color: #fff;
  border: 1px solid #000;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  width: 42px;
  height: 20px;
}

/* ── 네비 플레어 드롭다운 ── */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }
.nav-dropdown { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--gray-100); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.14); padding: 10px; z-index: 500; display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 2px; opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0.15s; pointer-events: none; min-width: 120px; }
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-dropdown-item { font-size: 12px; font-weight: 600; padding: 5px 8px; border-radius: 6px; text-decoration: none; text-align: center; display: block; transition: background 0.1s; white-space: nowrap; }
.nav-dropdown-item:hover { background: #e2e6ea; }

/* ── 닉네임 팝업 ── */
.user-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.16);
  min-width: 180px;
  overflow: hidden;
}
.user-popup .popup-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #e8f1fb 0%, #f0f5fc 100%);
  border-bottom: 1px solid var(--border);
}
.user-popup .popup-nick {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-popup .popup-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: background 0.1s;
}
.user-popup .popup-btn:hover { background: var(--gray-50); }
.user-popup .popup-arrow { color: var(--gray-400); font-size: 14px; }

/* ── 알림 팝업 ── */
.bell-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.16);
  width: 280px;
  overflow: hidden;
}
.bell-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.bell-popup-list {
  max-height: 300px;
  overflow-y: auto;
}
.bell-popup-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
}
.bell-popup-item:hover { background: var(--gray-50); }
.bell-popup-empty {
  padding: 20px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-400);
}
