.btn-with-flag {
  position: relative; /* ahora la mosca se posiciona respecto al botón */
}

.number-flag {
  position: absolute;
  top: -5px;   /* ajustar según tamaño */
  right: -5px; /* ajustar según tamaño */
  background: rgb(32, 32, 255);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
}

.number-flag.red {
  background: red;
}