/* ---------- User Menu ---------- */

.user-menu-login-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.user-menu-login-btn:hover {
  background: var(--accent-bg);
}

.user-menu-container {
  position: relative;
}

.user-menu-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.user-menu-avatar:hover {
  opacity: 0.85;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 6px 0;
  z-index: 200;
  animation: user-menu-in 0.15s ease;
}

@keyframes user-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-menu-email {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-separator {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text-h);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}

.user-menu-item:hover {
  background: var(--accent-bg);
}

.user-menu-signout {
  color: var(--error);
}

@media (max-width: 768px) {
  .user-menu-login-btn {
    font-size: 11px;
    padding: 3px 8px;
  }
}
