/* =========================
   USER MENU WRAPPER
========================= */

.user-menu-wrapper {
  position: relative;
  padding: 4px 0;
}

/* Button */

.user-menu {
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

/* Small avatar */

.avatar {
  width: 32px;
  height: 32px;
  background-color: #e7e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 500;
}

/* Chevron */

.chevron-icon {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-menu.open .chevron-icon {
  transform: rotate(180deg);
}

/* =========================
   DROPDOWN
========================= */

.user-menu-dropdown {
  font-family: "Inter", sans-serif;
  position: absolute;
  top: calc(100% + 8px);
  right: -4px;

  width: 356px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  padding: 12px;
  z-index: 3000;
}

.user-menu-dropdown.hidden {
  display: none;
}

/* =========================
   USER INFO
========================= */

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;

  padding: 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.user-name {
  font-family: "Satoshi";
  font-size: 24px;
  font-weight: 500;
  color: #0c0c0a;
}

.user-handle {
  font-size: 12px;
  color: #8f8c8b;
}

/* Large avatar */

.user-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #e7e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

/* =========================
   MENU ITEMS
========================= */

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;

  font-size: 14px;
  font-weight: 500;
  color: #0c0c0a;

  cursor: pointer;
  transition: background-color 0.15s ease;
}

.menu-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.menu-item.danger {
  color: #e5484d;
}

/* Divider */

.menu-divider {
  height: 1px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.08);
}

/* Icons */

.menu-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.25;
  flex-shrink: 0;
  opacity: 0.85;
  color: #0c0c0a;
}
