export const getClientIp = (req: Request) => {
  const forwarded = req.headers.get("x-forwarded-for") || req.headers.get("x-real-ip");
  if (!forwarded) return "unknown";
  return forwarded.split(",")[0].trim() || "unknown";
};
